Fixed country flags for Turkish localization
[amule.git] / configure
blob636eba1de7c7a85d832723308e6cf0854ed9b2bd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and admin@amule.org
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
237 $0: have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 # Initializations.
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='aMule'
554 PACKAGE_TARNAME='amule'
555 PACKAGE_VERSION='SVN'
556 PACKAGE_STRING='aMule SVN'
557 PACKAGE_BUGREPORT='admin@amule.org'
558 PACKAGE_URL=''
560 ac_unique_file="src/amule.cpp"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 # include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 # include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
597 ac_header_list=
598 ac_subst_vars='am__EXEEXT_FALSE
599 am__EXEEXT_TRUE
600 LTLIBOBJS
601 READLINE_LIBS
602 COMPILE_LIB_EC_FALSE
603 COMPILE_LIB_EC_TRUE
604 COMPILE_LIB_COMMON_FALSE
605 COMPILE_LIB_COMMON_TRUE
606 PLASMAMULE_FALSE
607 PLASMAMULE_TRUE
608 INSTALL_SKINS_FALSE
609 INSTALL_SKINS_TRUE
610 GENERATE_FLEX_HEADER_FALSE
611 GENERATE_FLEX_HEADER_TRUE
612 COMPILE_NLS_FALSE
613 COMPILE_NLS_TRUE
614 NEED_CORESERVICES_FALSE
615 NEED_CORESERVICES_TRUE
616 NEED_RC_FALSE
617 NEED_RC_TRUE
618 SYS_WIN32_FALSE
619 SYS_WIN32_TRUE
620 DEBUGFLAG
621 KDE_MIME_PATH
622 KDE_ICON_PATH
623 KDE_MODULE_PATH
624 KDE_SERVICE_PATH
625 KDE_APPLNK_PATH
626 KDE_HEADER_DIR
627 KDE4_CONFIG
628 QT_GUI_LIBS
629 QT_GUI_CXXFLAGS
630 QT_CORE_LIBS
631 QT_CORE_CXXFLAGS
632 QT_DBUS_LDFLAGS
633 QT_MOC
634 SVNDATE
635 BFD_LIBS
636 BFD_CPPFLAGS
637 INCINTL
638 MONOLITHIC_MANPAGES
639 ALCC_MANPAGES
640 ALC_MANPAGES
641 ED2K_MANPAGES
642 WXCAS_MANPAGES
643 CAS_MANPAGES
644 AMULE_GUI_MANPAGES
645 WEBSERVER_MANPAGES
646 AMULECMD_MANPAGES
647 AMULE_DAEMON_MANPAGES
648 POSUB
649 LTLIBINTL
650 LIBINTL
651 INTLLIBS
652 INTL_LIBTOOL_SUFFIX_PREFIX
653 GENCAT
654 INSTOBJEXT
655 DATADIRNAME
656 INTLOBJS
657 CATOBJEXT
658 USE_INCLUDED_LIBINTL
659 BUILD_INCLUDED_LIBINTL
660 USE_NLS
661 INTLBISON
662 LTLIBICONV
663 LIBICONV
664 GLIBC21
665 MSGMERGE
666 XGETTEXT
667 GMSGFMT
668 MSGFMT
669 MKINSTALLDIRS
670 POW_LIB
671 LIBOBJS
672 ALLOCA
673 CRYPTOPP_LIBS
674 CRYPTOPP_LDFLAGS
675 CRYPTOPP_CPPFLAGS
676 LIBUPNP_LIBS
677 LIBUPNP_LDFLAGS
678 LIBUPNP_CFLAGS
679 LIBUPNP_CPPFLAGS
680 PKG_CONFIG
681 RCFLAGS
683 WXBASE_CPPFLAGS
684 WXBASE_LIBS
685 WX_PORT
686 WX_SHARED
687 WX_DEBUG
688 WX_UNICODE
689 WX_VERSION_MINOR
690 WX_VERSION_MAJOR
691 WX_RESCOMP
692 WX_VERSION_FULL
693 WX_LIBS
694 WX_CXXFLAGS_ONLY
695 WX_CFLAGS_ONLY
696 WX_CXXFLAGS
697 WX_CFLAGS
698 WX_CPPFLAGS
699 WX_CONFIG_PATH
700 AMULEWEB_DEFS
701 LIBPNG_LIBS
702 LIBPNG_LDFLAGS
703 LIBPNG_CFLAGS
704 LIBPNG_CONFIG_PATH
705 CAS_DEFS
706 GDLIB_LIBS
707 GDLIB_LDFLAGS
708 GDLIB_CFLAGS
709 GDLIB_CONFIG_PATH
710 ZLIB_LIBS
711 ZLIB_LDFLAGS
712 ZLIB_CPPFLAGS
713 FILEVIEW_FALSE
714 FILEVIEW_TRUE
715 XAS_FALSE
716 XAS_TRUE
717 ALCC_FALSE
718 ALCC_TRUE
719 ALC_FALSE
720 ALC_TRUE
721 ED2K_FALSE
722 ED2K_TRUE
723 WXCAS_FALSE
724 WXCAS_TRUE
725 CAS_FALSE
726 CAS_TRUE
727 AMULE_GUI_FALSE
728 AMULE_GUI_TRUE
729 WEB_FALSE
730 WEB_TRUE
731 COMPILE_CMD_FALSE
732 COMPILE_CMD_TRUE
733 AMULE_DAEMON_FALSE
734 AMULE_DAEMON_TRUE
735 MONOLITHIC_FALSE
736 MONOLITHIC_TRUE
739 YFLAGS
740 YACC
741 RANLIB
742 LEXLIB
743 LEX_OUTPUT_ROOT
745 EGREP
746 GREP
747 BUILD_LDFLAGS
748 BUILD_CFLAGS
749 BUILD_CPPFLAGS
750 BUILD_EXEEXT
751 ac_ct_BUILD_CC
752 BUILD_CC
754 am__fastdepCC_FALSE
755 am__fastdepCC_TRUE
756 CCDEPMODE
757 ac_ct_CC
758 CFLAGS
760 CXXCPP
761 am__fastdepCXX_FALSE
762 am__fastdepCXX_TRUE
763 CXXDEPMODE
764 AMDEPBACKSLASH
765 AMDEP_FALSE
766 AMDEP_TRUE
767 am__quote
768 am__include
769 DEPDIR
770 OBJEXT
771 EXEEXT
772 ac_ct_CXX
773 CPPFLAGS
774 LDFLAGS
775 CXXFLAGS
777 MULERCFLAGS
778 MULELDFLAGS
779 MULECXXFLAGS
780 MULECFLAGS
781 MULECPPFLAGS
782 RESOLV_LIB
783 host_os
784 host_vendor
785 host_cpu
786 host
787 build_os
788 build_vendor
789 build_cpu
790 build
791 MAINT
792 MAINTAINER_MODE_FALSE
793 MAINTAINER_MODE_TRUE
794 AM_BACKSLASH
795 AM_DEFAULT_VERBOSITY
796 am__untar
797 am__tar
798 AMTAR
799 am__leading_dot
800 SET_MAKE
802 mkdir_p
803 MKDIR_P
804 INSTALL_STRIP_PROGRAM
805 STRIP
806 install_sh
807 MAKEINFO
808 AUTOHEADER
809 AUTOMAKE
810 AUTOCONF
811 ACLOCAL
812 VERSION
813 PACKAGE
814 CYGPATH_W
815 am__isrc
816 INSTALL_DATA
817 INSTALL_SCRIPT
818 INSTALL_PROGRAM
819 target_alias
820 host_alias
821 build_alias
822 LIBS
823 ECHO_T
824 ECHO_N
825 ECHO_C
826 DEFS
827 mandir
828 localedir
829 libdir
830 psdir
831 pdfdir
832 dvidir
833 htmldir
834 infodir
835 docdir
836 oldincludedir
837 includedir
838 localstatedir
839 sharedstatedir
840 sysconfdir
841 datadir
842 datarootdir
843 libexecdir
844 sbindir
845 bindir
846 program_transform_name
847 prefix
848 exec_prefix
849 PACKAGE_URL
850 PACKAGE_BUGREPORT
851 PACKAGE_STRING
852 PACKAGE_VERSION
853 PACKAGE_TARNAME
854 PACKAGE_NAME
855 PATH_SEPARATOR
856 SHELL
857 GEOIP_LIBS
858 GEOIP_LDFLAGS
859 GEOIP_CPPFLAGS'
860 ac_subst_files=''
861 ac_user_opts='
862 enable_option_checking
863 enable_silent_rules
864 enable_maintainer_mode
865 enable_dependency_tracking
866 enable_monolithic
867 enable_amule_daemon
868 enable_amulecmd
869 enable_webserver
870 enable_amule_gui
871 enable_cas
872 enable_wxcas
873 enable_ed2k
874 enable_alc
875 enable_alcc
876 enable_xas
877 enable_fileview
878 enable_plasmamule
879 enable_static
880 with_kde4_config
881 enable_kde_in_home
882 with_moc
883 with_gnu_malloc
884 with_zlib
885 with_gdlib_prefix
886 with_gdlib_config
887 with_libpng_prefix
888 with_libpng_config
889 enable_geoip
890 with_geoip_headers
891 with_geoip_lib
892 with_geoip_static
893 with_wxdir
894 with_wx_config
895 with_wx_prefix
896 with_wx_exec_prefix
897 with_toolkit
898 with_wxshared
899 with_wxdebug
900 with_wxversion
901 enable_upnp
902 with_libupnp_prefix
903 with_crypto_prefix
904 enable_mmap
905 with_language
906 with_gnu_ld
907 enable_rpath
908 with_libiconv_prefix
909 enable_nls
910 with_included_gettext
911 with_libintl_prefix
912 enable_debug
913 enable_profile
914 enable_optimize
915 with_denoise_level
916 enable_ccache
917 with_ccache_prefix
919 ac_precious_vars='build_alias
920 host_alias
921 target_alias
923 CXXFLAGS
924 LDFLAGS
925 LIBS
926 CPPFLAGS
928 CXXCPP
930 CFLAGS
932 YACC
933 YFLAGS
935 RCFLAGS
936 PKG_CONFIG'
939 # Initialize some variables set by options.
940 ac_init_help=
941 ac_init_version=false
942 ac_unrecognized_opts=
943 ac_unrecognized_sep=
944 # The variables have the same names as the options, with
945 # dashes changed to underlines.
946 cache_file=/dev/null
947 exec_prefix=NONE
948 no_create=
949 no_recursion=
950 prefix=NONE
951 program_prefix=NONE
952 program_suffix=NONE
953 program_transform_name=s,x,x,
954 silent=
955 site=
956 srcdir=
957 verbose=
958 x_includes=NONE
959 x_libraries=NONE
961 # Installation directory options.
962 # These are left unexpanded so users can "make install exec_prefix=/foo"
963 # and all the variables that are supposed to be based on exec_prefix
964 # by default will actually change.
965 # Use braces instead of parens because sh, perl, etc. also accept them.
966 # (The list follows the same order as the GNU Coding Standards.)
967 bindir='${exec_prefix}/bin'
968 sbindir='${exec_prefix}/sbin'
969 libexecdir='${exec_prefix}/libexec'
970 datarootdir='${prefix}/share'
971 datadir='${datarootdir}'
972 sysconfdir='${prefix}/etc'
973 sharedstatedir='${prefix}/com'
974 localstatedir='${prefix}/var'
975 includedir='${prefix}/include'
976 oldincludedir='/usr/include'
977 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
978 infodir='${datarootdir}/info'
979 htmldir='${docdir}'
980 dvidir='${docdir}'
981 pdfdir='${docdir}'
982 psdir='${docdir}'
983 libdir='${exec_prefix}/lib'
984 localedir='${datarootdir}/locale'
985 mandir='${datarootdir}/man'
987 ac_prev=
988 ac_dashdash=
989 for ac_option
991 # If the previous option needs an argument, assign it.
992 if test -n "$ac_prev"; then
993 eval $ac_prev=\$ac_option
994 ac_prev=
995 continue
998 case $ac_option in
999 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1000 *) ac_optarg=yes ;;
1001 esac
1003 # Accept the important Cygnus configure options, so we can diagnose typos.
1005 case $ac_dashdash$ac_option in
1007 ac_dashdash=yes ;;
1009 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1010 ac_prev=bindir ;;
1011 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1012 bindir=$ac_optarg ;;
1014 -build | --build | --buil | --bui | --bu)
1015 ac_prev=build_alias ;;
1016 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1017 build_alias=$ac_optarg ;;
1019 -cache-file | --cache-file | --cache-fil | --cache-fi \
1020 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1021 ac_prev=cache_file ;;
1022 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1023 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1024 cache_file=$ac_optarg ;;
1026 --config-cache | -C)
1027 cache_file=config.cache ;;
1029 -datadir | --datadir | --datadi | --datad)
1030 ac_prev=datadir ;;
1031 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1032 datadir=$ac_optarg ;;
1034 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1035 | --dataroo | --dataro | --datar)
1036 ac_prev=datarootdir ;;
1037 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1038 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1039 datarootdir=$ac_optarg ;;
1041 -disable-* | --disable-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error "invalid feature name: $ac_useropt"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "enable_$ac_useropt"
1051 "*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval enable_$ac_useropt=no ;;
1057 -docdir | --docdir | --docdi | --doc | --do)
1058 ac_prev=docdir ;;
1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060 docdir=$ac_optarg ;;
1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063 ac_prev=dvidir ;;
1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065 dvidir=$ac_optarg ;;
1067 -enable-* | --enable-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error "invalid feature name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval enable_$ac_useropt=\$ac_optarg ;;
1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085 | --exec | --exe | --ex)
1086 ac_prev=exec_prefix ;;
1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089 | --exec=* | --exe=* | --ex=*)
1090 exec_prefix=$ac_optarg ;;
1092 -gas | --gas | --ga | --g)
1093 # Obsolete; use --with-gas.
1094 with_gas=yes ;;
1096 -help | --help | --hel | --he | -h)
1097 ac_init_help=long ;;
1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099 ac_init_help=recursive ;;
1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101 ac_init_help=short ;;
1103 -host | --host | --hos | --ho)
1104 ac_prev=host_alias ;;
1105 -host=* | --host=* | --hos=* | --ho=*)
1106 host_alias=$ac_optarg ;;
1108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109 ac_prev=htmldir ;;
1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111 | --ht=*)
1112 htmldir=$ac_optarg ;;
1114 -includedir | --includedir | --includedi | --included | --include \
1115 | --includ | --inclu | --incl | --inc)
1116 ac_prev=includedir ;;
1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118 | --includ=* | --inclu=* | --incl=* | --inc=*)
1119 includedir=$ac_optarg ;;
1121 -infodir | --infodir | --infodi | --infod | --info | --inf)
1122 ac_prev=infodir ;;
1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124 infodir=$ac_optarg ;;
1126 -libdir | --libdir | --libdi | --libd)
1127 ac_prev=libdir ;;
1128 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129 libdir=$ac_optarg ;;
1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132 | --libexe | --libex | --libe)
1133 ac_prev=libexecdir ;;
1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135 | --libexe=* | --libex=* | --libe=*)
1136 libexecdir=$ac_optarg ;;
1138 -localedir | --localedir | --localedi | --localed | --locale)
1139 ac_prev=localedir ;;
1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141 localedir=$ac_optarg ;;
1143 -localstatedir | --localstatedir | --localstatedi | --localstated \
1144 | --localstate | --localstat | --localsta | --localst | --locals)
1145 ac_prev=localstatedir ;;
1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148 localstatedir=$ac_optarg ;;
1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151 ac_prev=mandir ;;
1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153 mandir=$ac_optarg ;;
1155 -nfp | --nfp | --nf)
1156 # Obsolete; use --without-fp.
1157 with_fp=no ;;
1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160 | --no-cr | --no-c | -n)
1161 no_create=yes ;;
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 no_recursion=yes ;;
1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169 | --oldin | --oldi | --old | --ol | --o)
1170 ac_prev=oldincludedir ;;
1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174 oldincludedir=$ac_optarg ;;
1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177 ac_prev=prefix ;;
1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179 prefix=$ac_optarg ;;
1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182 | --program-pre | --program-pr | --program-p)
1183 ac_prev=program_prefix ;;
1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186 program_prefix=$ac_optarg ;;
1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189 | --program-suf | --program-su | --program-s)
1190 ac_prev=program_suffix ;;
1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193 program_suffix=$ac_optarg ;;
1195 -program-transform-name | --program-transform-name \
1196 | --program-transform-nam | --program-transform-na \
1197 | --program-transform-n | --program-transform- \
1198 | --program-transform | --program-transfor \
1199 | --program-transfo | --program-transf \
1200 | --program-trans | --program-tran \
1201 | --progr-tra | --program-tr | --program-t)
1202 ac_prev=program_transform_name ;;
1203 -program-transform-name=* | --program-transform-name=* \
1204 | --program-transform-nam=* | --program-transform-na=* \
1205 | --program-transform-n=* | --program-transform-=* \
1206 | --program-transform=* | --program-transfor=* \
1207 | --program-transfo=* | --program-transf=* \
1208 | --program-trans=* | --program-tran=* \
1209 | --progr-tra=* | --program-tr=* | --program-t=*)
1210 program_transform_name=$ac_optarg ;;
1212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213 ac_prev=pdfdir ;;
1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215 pdfdir=$ac_optarg ;;
1217 -psdir | --psdir | --psdi | --psd | --ps)
1218 ac_prev=psdir ;;
1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 psdir=$ac_optarg ;;
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 silent=yes ;;
1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227 ac_prev=sbindir ;;
1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229 | --sbi=* | --sb=*)
1230 sbindir=$ac_optarg ;;
1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234 | --sharedst | --shareds | --shared | --share | --shar \
1235 | --sha | --sh)
1236 ac_prev=sharedstatedir ;;
1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240 | --sha=* | --sh=*)
1241 sharedstatedir=$ac_optarg ;;
1243 -site | --site | --sit)
1244 ac_prev=site ;;
1245 -site=* | --site=* | --sit=*)
1246 site=$ac_optarg ;;
1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249 ac_prev=srcdir ;;
1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251 srcdir=$ac_optarg ;;
1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254 | --syscon | --sysco | --sysc | --sys | --sy)
1255 ac_prev=sysconfdir ;;
1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258 sysconfdir=$ac_optarg ;;
1260 -target | --target | --targe | --targ | --tar | --ta | --t)
1261 ac_prev=target_alias ;;
1262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263 target_alias=$ac_optarg ;;
1265 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 verbose=yes ;;
1268 -version | --version | --versio | --versi | --vers | -V)
1269 ac_init_version=: ;;
1271 -with-* | --with-*)
1272 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 as_fn_error "invalid package name: $ac_useropt"
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1280 "with_$ac_useropt"
1281 "*) ;;
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1284 esac
1285 eval with_$ac_useropt=\$ac_optarg ;;
1287 -without-* | --without-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 as_fn_error "invalid package name: $ac_useropt"
1292 ac_useropt_orig=$ac_useropt
1293 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294 case $ac_user_opts in
1296 "with_$ac_useropt"
1297 "*) ;;
1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1299 ac_unrecognized_sep=', ';;
1300 esac
1301 eval with_$ac_useropt=no ;;
1303 --x)
1304 # Obsolete; use --with-x.
1305 with_x=yes ;;
1307 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1308 | --x-incl | --x-inc | --x-in | --x-i)
1309 ac_prev=x_includes ;;
1310 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1311 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1312 x_includes=$ac_optarg ;;
1314 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1315 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1316 ac_prev=x_libraries ;;
1317 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1318 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1319 x_libraries=$ac_optarg ;;
1321 -*) as_fn_error "unrecognized option: \`$ac_option'
1322 Try \`$0 --help' for more information."
1325 *=*)
1326 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1327 # Reject names that are not valid shell variable names.
1328 case $ac_envvar in #(
1329 '' | [0-9]* | *[!_$as_cr_alnum]* )
1330 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1331 esac
1332 eval $ac_envvar=\$ac_optarg
1333 export $ac_envvar ;;
1336 # FIXME: should be removed in autoconf 3.0.
1337 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1338 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1339 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1340 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343 esac
1344 done
1346 if test -n "$ac_prev"; then
1347 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1348 as_fn_error "missing argument to $ac_option"
1351 if test -n "$ac_unrecognized_opts"; then
1352 case $enable_option_checking in
1353 no) ;;
1354 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1355 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1356 esac
1359 # Check all directory arguments for consistency.
1360 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1365 eval ac_val=\$$ac_var
1366 # Remove trailing slashes.
1367 case $ac_val in
1368 */ )
1369 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1370 eval $ac_var=\$ac_val;;
1371 esac
1372 # Be sure to have absolute directory names.
1373 case $ac_val in
1374 [\\/$]* | ?:[\\/]* ) continue;;
1375 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1376 esac
1377 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1378 done
1380 # There might be people who depend on the old broken behavior: `$host'
1381 # used to hold the argument of --host etc.
1382 # FIXME: To remove some day.
1383 build=$build_alias
1384 host=$host_alias
1385 target=$target_alias
1387 # FIXME: To remove some day.
1388 if test "x$host_alias" != x; then
1389 if test "x$build_alias" = x; then
1390 cross_compiling=maybe
1391 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1392 If a cross compiler is detected then cross compile mode will be used." >&2
1393 elif test "x$build_alias" != "x$host_alias"; then
1394 cross_compiling=yes
1398 ac_tool_prefix=
1399 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401 test "$silent" = yes && exec 6>/dev/null
1404 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1405 ac_ls_di=`ls -di .` &&
1406 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1407 as_fn_error "working directory cannot be determined"
1408 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1409 as_fn_error "pwd does not report name of working directory"
1412 # Find the source files, if location was not specified.
1413 if test -z "$srcdir"; then
1414 ac_srcdir_defaulted=yes
1415 # Try the directory containing this script, then the parent directory.
1416 ac_confdir=`$as_dirname -- "$as_myself" ||
1417 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1418 X"$as_myself" : 'X\(//\)[^/]' \| \
1419 X"$as_myself" : 'X\(//\)$' \| \
1420 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1421 $as_echo X"$as_myself" |
1422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1423 s//\1/
1426 /^X\(\/\/\)[^/].*/{
1427 s//\1/
1430 /^X\(\/\/\)$/{
1431 s//\1/
1434 /^X\(\/\).*/{
1435 s//\1/
1438 s/.*/./; q'`
1439 srcdir=$ac_confdir
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441 srcdir=..
1443 else
1444 ac_srcdir_defaulted=no
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1448 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1450 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1451 ac_abs_confdir=`(
1452 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1453 pwd)`
1454 # When building in place, set srcdir=.
1455 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 srcdir=.
1458 # Remove unnecessary trailing slashes from srcdir.
1459 # Double slashes in file names in object file debugging info
1460 # mess up M-x gdb in Emacs.
1461 case $srcdir in
1462 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463 esac
1464 for ac_var in $ac_precious_vars; do
1465 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_env_${ac_var}_value=\$${ac_var}
1467 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1469 done
1472 # Report the --help message.
1474 if test "$ac_init_help" = "long"; then
1475 # Omit some internal or obsolete options to make the list less imposing.
1476 # This message is too long to be a string in the A/UX 3.1 sh.
1477 cat <<_ACEOF
1478 \`configure' configures aMule SVN to adapt to many kinds of systems.
1480 Usage: $0 [OPTION]... [VAR=VALUE]...
1482 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1483 VAR=VALUE. See below for descriptions of some of the useful variables.
1485 Defaults for the options are specified in brackets.
1487 Configuration:
1488 -h, --help display this help and exit
1489 --help=short display options specific to this package
1490 --help=recursive display the short help of all the included packages
1491 -V, --version display version information and exit
1492 -q, --quiet, --silent do not print \`checking...' messages
1493 --cache-file=FILE cache test results in FILE [disabled]
1494 -C, --config-cache alias for \`--cache-file=config.cache'
1495 -n, --no-create do not create output files
1496 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1498 Installation directories:
1499 --prefix=PREFIX install architecture-independent files in PREFIX
1500 [$ac_default_prefix]
1501 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1502 [PREFIX]
1504 By default, \`make install' will install all the files in
1505 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1506 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1507 for instance \`--prefix=\$HOME'.
1509 For better control, use the options below.
1511 Fine tuning of the installation directories:
1512 --bindir=DIR user executables [EPREFIX/bin]
1513 --sbindir=DIR system admin executables [EPREFIX/sbin]
1514 --libexecdir=DIR program executables [EPREFIX/libexec]
1515 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1516 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1517 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1518 --libdir=DIR object code libraries [EPREFIX/lib]
1519 --includedir=DIR C header files [PREFIX/include]
1520 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1521 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1522 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1523 --infodir=DIR info documentation [DATAROOTDIR/info]
1524 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1525 --mandir=DIR man documentation [DATAROOTDIR/man]
1526 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1527 --htmldir=DIR html documentation [DOCDIR]
1528 --dvidir=DIR dvi documentation [DOCDIR]
1529 --pdfdir=DIR pdf documentation [DOCDIR]
1530 --psdir=DIR ps documentation [DOCDIR]
1531 _ACEOF
1533 cat <<\_ACEOF
1535 Program names:
1536 --program-prefix=PREFIX prepend PREFIX to installed program names
1537 --program-suffix=SUFFIX append SUFFIX to installed program names
1538 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1540 System types:
1541 --build=BUILD configure for building on BUILD [guessed]
1542 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1543 _ACEOF
1546 if test -n "$ac_init_help"; then
1547 case $ac_init_help in
1548 short | recursive ) echo "Configuration of aMule SVN:";;
1549 esac
1550 cat <<\_ACEOF
1552 Optional Features:
1553 --disable-option-checking ignore unrecognized --enable/--with options
1554 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1555 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1556 --enable-silent-rules less verbose build output (undo: `make V=1')
1557 --disable-silent-rules verbose build output (undo: `make V=0')
1558 --enable-maintainer-mode enable make rules and dependencies not useful
1559 (and sometimes confusing) to the casual installer
1560 --disable-dependency-tracking speeds up one-time build
1561 --enable-dependency-tracking do not reject slow dependency extractors
1562 --disable-monolithic disable building of the monolithic aMule app
1563 --enable-amule-daemon compile aMule daemon version
1564 --enable-amulecmd compile aMule command line client
1565 --enable-webserver compile aMule WebServer
1566 --enable-amule-gui compile aMule remote GUI
1567 --enable-cas compile C aMule Statistics
1568 --enable-wxcas compile aMule GUI Statistics
1569 --disable-ed2k don't compile aMule ed2k links handler
1570 --enable-alc compile aMuleLinkCreator GUI version
1571 --enable-alcc compile aMuleLinkCreator for console
1572 --enable-xas install xas XChat2 plugin
1573 --enable-fileview compile aMule file viewer for console (EXPERIMENTAL)
1574 --enable-plasmamule compile aMule plasma applet and engine
1575 --enable-static produce a statically linked executable
1576 --enable-kde-in-home install KDE related stuff in your home dir
1577 --enable-geoip compile with GeoIP IP2Country library
1578 --disable-upnp do not compile UPnP code
1579 --enable-mmap enable using mapped memory if supported
1580 --disable-rpath do not hardcode runtime library paths
1581 --disable-nls do not use Native Language Support
1582 --disable-debug disable additional debugging output
1583 --enable-profile enable code profiling
1584 --enable-optimize enable code optimization
1585 --enable-ccache enable ccache support for fast recompilation
1587 Optional Packages:
1588 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1589 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1590 --with-kde4-config=PATH kde4-config script to use
1591 --with-moc=PATH Search in PATH for Qt's meta object compiler
1592 --without-gnu-malloc Don't assume that we use GNU libc compatible
1593 malloc/realloc when cross-compiling
1594 --with-zlib=PREFIX use zlib in PREFIX
1595 --with-gdlib-prefix=PREFIX
1596 prefix where gdlib is installed (optional)
1597 --with-gdlib-config=CONFIG
1598 gdlib-config script to use (optional)
1599 --with-libpng-prefix=PREFIX
1600 prefix where libpng is installed (optional)
1601 --with-libpng-config=CONFIG
1602 libpng-config script to use (optional)
1603 --with-geoip-headers=DIR
1604 GeoIP include files location
1605 --with-geoip-lib=DIR GeoIP library location
1606 --with-geoip-static Explicitly link GeoIP statically (default=no)
1607 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
1608 --with-wx-config=CONFIG wx-config script to use (optional)
1609 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1610 --with-wx-exec-prefix=PREFIX
1611 Exec prefix where wxWidgets is installed (optional)
1612 --with-toolkit Build against a specific wxWidgets toolkit (default
1613 is auto)
1614 --with-wxshared Force building against a shared build of wxWidgets,
1615 even if --disable-shared is given (default is auto)
1616 --with-wxdebug Force building against a debug build of wxWidgets,
1617 even if --disable-debug is given (default is auto)
1618 --with-wxversion Build against a specific version of wxWidgets
1619 (default is auto)
1620 --with-libupnp-prefix=PREFIX
1621 UPnP library location
1622 --with-crypto-prefix=PREFIX
1623 prefix where crypto++ is installed
1624 --with-language=<langs> Specify a comma-separated list of languages you want
1625 to have installed. See po/LINGUAS for available
1626 languages
1627 --with-gnu-ld assume the C compiler uses GNU ld default=no
1628 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1629 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1630 --with-included-gettext use the GNU gettext library included here
1631 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1632 --without-libintl-prefix don't search for libintl in includedir and libdir
1633 --with-denoise-level=<level>
1634 Specifies denoising level (0-4):
1635 0 - Do nothing
1636 4 - Suppress all normal output
1637 (for more information see
1638 src/utils/scripts/denoiser.rules)
1640 --with-ccache-prefix=PREFIX
1641 prefix where ccache is installed
1643 Some influential environment variables:
1644 CXX C++ compiler command
1645 CXXFLAGS C++ compiler flags
1646 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1647 nonstandard directory <lib dir>
1648 LIBS libraries to pass to the linker, e.g. -l<library>
1649 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1650 you have headers in a nonstandard directory <include dir>
1651 CXXCPP C++ preprocessor
1652 CC C compiler command
1653 CFLAGS C compiler flags
1654 CPP C preprocessor
1655 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1656 the first program found out of: `bison -y', `byacc', `yacc'.
1657 YFLAGS The list of arguments that will be passed by default to $YACC.
1658 This script will default YFLAGS to the empty string to avoid a
1659 default value of `-d' given by some make applications.
1660 RC Resource Compiler
1661 RCFLAGS Resource Compiler Flags
1662 PKG_CONFIG path to pkg-config utility
1664 Use these variables to override the choices made by `configure' or to help
1665 it to find libraries and programs with nonstandard names/locations.
1667 Report bugs to <admin@amule.org>.
1668 _ACEOF
1669 ac_status=$?
1672 if test "$ac_init_help" = "recursive"; then
1673 # If there are subdirs, report their specific --help.
1674 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1675 test -d "$ac_dir" ||
1676 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1677 continue
1678 ac_builddir=.
1680 case "$ac_dir" in
1681 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1683 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1684 # A ".." for each directory in $ac_dir_suffix.
1685 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1686 case $ac_top_builddir_sub in
1687 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1688 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1689 esac ;;
1690 esac
1691 ac_abs_top_builddir=$ac_pwd
1692 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1693 # for backward compatibility:
1694 ac_top_builddir=$ac_top_build_prefix
1696 case $srcdir in
1697 .) # We are building in place.
1698 ac_srcdir=.
1699 ac_top_srcdir=$ac_top_builddir_sub
1700 ac_abs_top_srcdir=$ac_pwd ;;
1701 [\\/]* | ?:[\\/]* ) # Absolute name.
1702 ac_srcdir=$srcdir$ac_dir_suffix;
1703 ac_top_srcdir=$srcdir
1704 ac_abs_top_srcdir=$srcdir ;;
1705 *) # Relative name.
1706 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1707 ac_top_srcdir=$ac_top_build_prefix$srcdir
1708 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1709 esac
1710 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1712 cd "$ac_dir" || { ac_status=$?; continue; }
1713 # Check for guested configure.
1714 if test -f "$ac_srcdir/configure.gnu"; then
1715 echo &&
1716 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1717 elif test -f "$ac_srcdir/configure"; then
1718 echo &&
1719 $SHELL "$ac_srcdir/configure" --help=recursive
1720 else
1721 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1722 fi || ac_status=$?
1723 cd "$ac_pwd" || { ac_status=$?; break; }
1724 done
1727 test -n "$ac_init_help" && exit $ac_status
1728 if $ac_init_version; then
1729 cat <<\_ACEOF
1730 aMule configure SVN
1731 generated by GNU Autoconf 2.65
1733 Copyright (C) 2009 Free Software Foundation, Inc.
1734 This configure script is free software; the Free Software Foundation
1735 gives unlimited permission to copy, distribute and modify it.
1736 _ACEOF
1737 exit
1740 ## ------------------------ ##
1741 ## Autoconf initialization. ##
1742 ## ------------------------ ##
1744 # ac_fn_cxx_try_compile LINENO
1745 # ----------------------------
1746 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1747 ac_fn_cxx_try_compile ()
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 rm -f conftest.$ac_objext
1751 if { { ac_try="$ac_compile"
1752 case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_compile") 2>conftest.err
1759 ac_status=$?
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && {
1767 test -z "$ac_cxx_werror_flag" ||
1768 test ! -s conftest.err
1769 } && test -s conftest.$ac_objext; then :
1770 ac_retval=0
1771 else
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1775 ac_retval=1
1777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778 as_fn_set_status $ac_retval
1780 } # ac_fn_cxx_try_compile
1782 # ac_fn_cxx_try_cpp LINENO
1783 # ------------------------
1784 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_cxx_try_cpp ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 if { { ac_try="$ac_cpp conftest.$ac_ext"
1789 case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1796 ac_status=$?
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } >/dev/null && {
1804 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1805 test ! -s conftest.err
1806 }; then :
1807 ac_retval=0
1808 else
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1812 ac_retval=1
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 as_fn_set_status $ac_retval
1817 } # ac_fn_cxx_try_cpp
1819 # ac_fn_c_try_compile LINENO
1820 # --------------------------
1821 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_c_try_compile ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext
1826 if { { ac_try="$ac_compile"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_compile") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest.$ac_objext; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1850 ac_retval=1
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 as_fn_set_status $ac_retval
1855 } # ac_fn_c_try_compile
1857 # ac_fn_c_try_cpp LINENO
1858 # ----------------------
1859 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1860 ac_fn_c_try_cpp ()
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if { { ac_try="$ac_cpp conftest.$ac_ext"
1864 case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1871 ac_status=$?
1872 if test -s conftest.err; then
1873 grep -v '^ *+' conftest.err >conftest.er1
1874 cat conftest.er1 >&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } >/dev/null && {
1879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1880 test ! -s conftest.err
1881 }; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1887 ac_retval=1
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890 as_fn_set_status $ac_retval
1892 } # ac_fn_c_try_cpp
1894 # ac_fn_c_try_link LINENO
1895 # -----------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_c_try_link ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext conftest$ac_exeext
1901 if { { ac_try="$ac_link"
1902 case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_link") 2>conftest.err
1909 ac_status=$?
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_c_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest$ac_exeext && {
1920 test "$cross_compiling" = yes ||
1921 $as_test_x conftest$ac_exeext
1922 }; then :
1923 ac_retval=0
1924 else
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1928 ac_retval=1
1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932 # interfere with the next link command; also delete a directory that is
1933 # left behind by Apple's compiler. We do this before executing the actions.
1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1936 as_fn_set_status $ac_retval
1938 } # ac_fn_c_try_link
1940 # ac_fn_c_try_run LINENO
1941 # ----------------------
1942 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1943 # that executables *can* be run.
1944 ac_fn_c_try_run ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 if { { ac_try="$ac_link"
1948 case "(($ac_try" in
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1951 esac
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_link") 2>&5
1955 ac_status=$?
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1958 { { case "(($ac_try" in
1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960 *) ac_try_echo=$ac_try;;
1961 esac
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 $as_echo "$ac_try_echo"; } >&5
1964 (eval "$ac_try") 2>&5
1965 ac_status=$?
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; }; }; then :
1968 ac_retval=0
1969 else
1970 $as_echo "$as_me: program exited with status $ac_status" >&5
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1974 ac_retval=$ac_status
1976 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1978 as_fn_set_status $ac_retval
1980 } # ac_fn_c_try_run
1982 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1983 # -------------------------------------------------------
1984 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1985 # the include files in INCLUDES and setting the cache variable VAR
1986 # accordingly.
1987 ac_fn_c_check_header_mongrel ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 $as_echo_n "(cached) " >&6
1996 eval ac_res=\$$3
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 else
2000 # Is the header compilable?
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2002 $as_echo_n "checking $2 usability... " >&6; }
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2006 #include <$2>
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009 ac_header_compiler=yes
2010 else
2011 ac_header_compiler=no
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2015 $as_echo "$ac_header_compiler" >&6; }
2017 # Is the header present?
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2019 $as_echo_n "checking $2 presence... " >&6; }
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 #include <$2>
2023 _ACEOF
2024 if ac_fn_c_try_cpp "$LINENO"; then :
2025 ac_header_preproc=yes
2026 else
2027 ac_header_preproc=no
2029 rm -f conftest.err conftest.$ac_ext
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2031 $as_echo "$ac_header_preproc" >&6; }
2033 # So? What about this header?
2034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2035 yes:no: )
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2037 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2039 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2041 no:yes:* )
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2043 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2045 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2047 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2049 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2051 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2052 ( cat <<\_ASBOX
2053 ## ------------------------------ ##
2054 ## Report this to admin@amule.org ##
2055 ## ------------------------------ ##
2056 _ASBOX
2057 ) | sed "s/^/$as_me: WARNING: /" >&2
2059 esac
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2063 $as_echo_n "(cached) " >&6
2064 else
2065 eval "$3=\$ac_header_compiler"
2067 eval ac_res=\$$3
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 $as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073 } # ac_fn_c_check_header_mongrel
2075 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2076 # -------------------------------------------------------
2077 # Tests whether HEADER exists and can be compiled using the include files in
2078 # INCLUDES, setting the cache variable VAR accordingly.
2079 ac_fn_c_check_header_compile ()
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2085 $as_echo_n "(cached) " >&6
2086 else
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2090 #include <$2>
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093 eval "$3=yes"
2094 else
2095 eval "$3=no"
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 eval ac_res=\$$3
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104 } # ac_fn_c_check_header_compile
2106 # ac_fn_cxx_try_run LINENO
2107 # ------------------------
2108 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2109 # that executables *can* be run.
2110 ac_fn_cxx_try_run ()
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 if { { ac_try="$ac_link"
2114 case "(($ac_try" in
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2117 esac
2118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2119 $as_echo "$ac_try_echo"; } >&5
2120 (eval "$ac_link") 2>&5
2121 ac_status=$?
2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2124 { { case "(($ac_try" in
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2127 esac
2128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129 $as_echo "$ac_try_echo"; } >&5
2130 (eval "$ac_try") 2>&5
2131 ac_status=$?
2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2133 test $ac_status = 0; }; }; then :
2134 ac_retval=0
2135 else
2136 $as_echo "$as_me: program exited with status $ac_status" >&5
2137 $as_echo "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2140 ac_retval=$ac_status
2142 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2143 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2144 as_fn_set_status $ac_retval
2146 } # ac_fn_cxx_try_run
2148 # ac_fn_cxx_try_link LINENO
2149 # -------------------------
2150 # Try to link conftest.$ac_ext, and return whether this succeeded.
2151 ac_fn_cxx_try_link ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 rm -f conftest.$ac_objext conftest$ac_exeext
2155 if { { ac_try="$ac_link"
2156 case "(($ac_try" in
2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158 *) ac_try_echo=$ac_try;;
2159 esac
2160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2161 $as_echo "$ac_try_echo"; } >&5
2162 (eval "$ac_link") 2>conftest.err
2163 ac_status=$?
2164 if test -s conftest.err; then
2165 grep -v '^ *+' conftest.err >conftest.er1
2166 cat conftest.er1 >&5
2167 mv -f conftest.er1 conftest.err
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } && {
2171 test -z "$ac_cxx_werror_flag" ||
2172 test ! -s conftest.err
2173 } && test -s conftest$ac_exeext && {
2174 test "$cross_compiling" = yes ||
2175 $as_test_x conftest$ac_exeext
2176 }; then :
2177 ac_retval=0
2178 else
2179 $as_echo "$as_me: failed program was:" >&5
2180 sed 's/^/| /' conftest.$ac_ext >&5
2182 ac_retval=1
2184 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2185 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2186 # interfere with the next link command; also delete a directory that is
2187 # left behind by Apple's compiler. We do this before executing the actions.
2188 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2189 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2190 as_fn_set_status $ac_retval
2192 } # ac_fn_cxx_try_link
2194 # ac_fn_c_check_func LINENO FUNC VAR
2195 # ----------------------------------
2196 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2197 ac_fn_c_check_func ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2201 $as_echo_n "checking for $2... " >&6; }
2202 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2203 $as_echo_n "(cached) " >&6
2204 else
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2207 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2209 #define $2 innocuous_$2
2211 /* System header to define __stub macros and hopefully few prototypes,
2212 which can conflict with char $2 (); below.
2213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2214 <limits.h> exists even on freestanding compilers. */
2216 #ifdef __STDC__
2217 # include <limits.h>
2218 #else
2219 # include <assert.h>
2220 #endif
2222 #undef $2
2224 /* Override any GCC internal prototype to avoid an error.
2225 Use char because int might match the return type of a GCC
2226 builtin and then its argument prototype would still apply. */
2227 #ifdef __cplusplus
2228 extern "C"
2229 #endif
2230 char $2 ();
2231 /* The GNU C library defines this for functions which it implements
2232 to always fail with ENOSYS. Some functions are actually named
2233 something starting with __ and the normal name is an alias. */
2234 #if defined __stub_$2 || defined __stub___$2
2235 choke me
2236 #endif
2239 main ()
2241 return $2 ();
2243 return 0;
2245 _ACEOF
2246 if ac_fn_c_try_link "$LINENO"; then :
2247 eval "$3=yes"
2248 else
2249 eval "$3=no"
2251 rm -f core conftest.err conftest.$ac_objext \
2252 conftest$ac_exeext conftest.$ac_ext
2254 eval ac_res=\$$3
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2259 } # ac_fn_c_check_func
2261 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2262 # -------------------------------------------
2263 # Tests whether TYPE exists after having included INCLUDES, setting cache
2264 # variable VAR accordingly.
2265 ac_fn_c_check_type ()
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2269 $as_echo_n "checking for $2... " >&6; }
2270 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2271 $as_echo_n "(cached) " >&6
2272 else
2273 eval "$3=no"
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2278 main ()
2280 if (sizeof ($2))
2281 return 0;
2283 return 0;
2285 _ACEOF
2286 if ac_fn_c_try_compile "$LINENO"; then :
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2291 main ()
2293 if (sizeof (($2)))
2294 return 0;
2296 return 0;
2298 _ACEOF
2299 if ac_fn_c_try_compile "$LINENO"; then :
2301 else
2302 eval "$3=yes"
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 eval ac_res=\$$3
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 $as_echo "$ac_res" >&6; }
2311 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2313 } # ac_fn_c_check_type
2315 # ac_fn_c_check_decl LINENO SYMBOL VAR
2316 # ------------------------------------
2317 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2318 ac_fn_c_check_decl ()
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2322 $as_echo_n "checking whether $2 is declared... " >&6; }
2323 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2324 $as_echo_n "(cached) " >&6
2325 else
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2330 main ()
2332 #ifndef $2
2333 (void) $2;
2334 #endif
2337 return 0;
2339 _ACEOF
2340 if ac_fn_c_try_compile "$LINENO"; then :
2341 eval "$3=yes"
2342 else
2343 eval "$3=no"
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 eval ac_res=\$$3
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2352 } # ac_fn_c_check_decl
2353 cat >config.log <<_ACEOF
2354 This file contains any messages produced by compilers while
2355 running configure, to aid debugging if configure makes a mistake.
2357 It was created by aMule $as_me SVN, which was
2358 generated by GNU Autoconf 2.65. Invocation command line was
2360 $ $0 $@
2362 _ACEOF
2363 exec 5>>config.log
2365 cat <<_ASUNAME
2366 ## --------- ##
2367 ## Platform. ##
2368 ## --------- ##
2370 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2371 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2372 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2373 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2374 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2376 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2377 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2379 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2380 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2381 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2382 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2383 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2384 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2385 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2387 _ASUNAME
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2392 IFS=$as_save_IFS
2393 test -z "$as_dir" && as_dir=.
2394 $as_echo "PATH: $as_dir"
2395 done
2396 IFS=$as_save_IFS
2398 } >&5
2400 cat >&5 <<_ACEOF
2403 ## ----------- ##
2404 ## Core tests. ##
2405 ## ----------- ##
2407 _ACEOF
2410 # Keep a trace of the command line.
2411 # Strip out --no-create and --no-recursion so they do not pile up.
2412 # Strip out --silent because we don't want to record it for future runs.
2413 # Also quote any args containing shell meta-characters.
2414 # Make two passes to allow for proper duplicate-argument suppression.
2415 ac_configure_args=
2416 ac_configure_args0=
2417 ac_configure_args1=
2418 ac_must_keep_next=false
2419 for ac_pass in 1 2
2421 for ac_arg
2423 case $ac_arg in
2424 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2425 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2426 | -silent | --silent | --silen | --sile | --sil)
2427 continue ;;
2428 *\'*)
2429 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2430 esac
2431 case $ac_pass in
2432 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2434 as_fn_append ac_configure_args1 " '$ac_arg'"
2435 if test $ac_must_keep_next = true; then
2436 ac_must_keep_next=false # Got value, back to normal.
2437 else
2438 case $ac_arg in
2439 *=* | --config-cache | -C | -disable-* | --disable-* \
2440 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2441 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2442 | -with-* | --with-* | -without-* | --without-* | --x)
2443 case "$ac_configure_args0 " in
2444 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2445 esac
2447 -* ) ac_must_keep_next=true ;;
2448 esac
2450 as_fn_append ac_configure_args " '$ac_arg'"
2452 esac
2453 done
2454 done
2455 { ac_configure_args0=; unset ac_configure_args0;}
2456 { ac_configure_args1=; unset ac_configure_args1;}
2458 # When interrupted or exit'd, cleanup temporary files, and complete
2459 # config.log. We remove comments because anyway the quotes in there
2460 # would cause problems or look ugly.
2461 # WARNING: Use '\'' to represent an apostrophe within the trap.
2462 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2463 trap 'exit_status=$?
2464 # Save into config.log some information that might help in debugging.
2466 echo
2468 cat <<\_ASBOX
2469 ## ---------------- ##
2470 ## Cache variables. ##
2471 ## ---------------- ##
2472 _ASBOX
2473 echo
2474 # The following way of writing the cache mishandles newlines in values,
2476 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2477 eval ac_val=\$$ac_var
2478 case $ac_val in #(
2479 *${as_nl}*)
2480 case $ac_var in #(
2481 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2482 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2483 esac
2484 case $ac_var in #(
2485 _ | IFS | as_nl) ;; #(
2486 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2487 *) { eval $ac_var=; unset $ac_var;} ;;
2488 esac ;;
2489 esac
2490 done
2491 (set) 2>&1 |
2492 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2493 *${as_nl}ac_space=\ *)
2494 sed -n \
2495 "s/'\''/'\''\\\\'\'''\''/g;
2496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2497 ;; #(
2499 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2501 esac |
2502 sort
2504 echo
2506 cat <<\_ASBOX
2507 ## ----------------- ##
2508 ## Output variables. ##
2509 ## ----------------- ##
2510 _ASBOX
2511 echo
2512 for ac_var in $ac_subst_vars
2514 eval ac_val=\$$ac_var
2515 case $ac_val in
2516 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2517 esac
2518 $as_echo "$ac_var='\''$ac_val'\''"
2519 done | sort
2520 echo
2522 if test -n "$ac_subst_files"; then
2523 cat <<\_ASBOX
2524 ## ------------------- ##
2525 ## File substitutions. ##
2526 ## ------------------- ##
2527 _ASBOX
2528 echo
2529 for ac_var in $ac_subst_files
2531 eval ac_val=\$$ac_var
2532 case $ac_val in
2533 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2534 esac
2535 $as_echo "$ac_var='\''$ac_val'\''"
2536 done | sort
2537 echo
2540 if test -s confdefs.h; then
2541 cat <<\_ASBOX
2542 ## ----------- ##
2543 ## confdefs.h. ##
2544 ## ----------- ##
2545 _ASBOX
2546 echo
2547 cat confdefs.h
2548 echo
2550 test "$ac_signal" != 0 &&
2551 $as_echo "$as_me: caught signal $ac_signal"
2552 $as_echo "$as_me: exit $exit_status"
2553 } >&5
2554 rm -f core *.core core.conftest.* &&
2555 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2556 exit $exit_status
2558 for ac_signal in 1 2 13 15; do
2559 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2560 done
2561 ac_signal=0
2563 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2564 rm -f -r conftest* confdefs.h
2566 $as_echo "/* confdefs.h */" > confdefs.h
2568 # Predefined preprocessor variables.
2570 cat >>confdefs.h <<_ACEOF
2571 #define PACKAGE_NAME "$PACKAGE_NAME"
2572 _ACEOF
2574 cat >>confdefs.h <<_ACEOF
2575 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2576 _ACEOF
2578 cat >>confdefs.h <<_ACEOF
2579 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2580 _ACEOF
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_STRING "$PACKAGE_STRING"
2584 _ACEOF
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2588 _ACEOF
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_URL "$PACKAGE_URL"
2592 _ACEOF
2595 # Let the site file select an alternate cache file if it wants to.
2596 # Prefer an explicitly selected file to automatically selected ones.
2597 ac_site_file1=NONE
2598 ac_site_file2=NONE
2599 if test -n "$CONFIG_SITE"; then
2600 ac_site_file1=$CONFIG_SITE
2601 elif test "x$prefix" != xNONE; then
2602 ac_site_file1=$prefix/share/config.site
2603 ac_site_file2=$prefix/etc/config.site
2604 else
2605 ac_site_file1=$ac_default_prefix/share/config.site
2606 ac_site_file2=$ac_default_prefix/etc/config.site
2608 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2610 test "x$ac_site_file" = xNONE && continue
2611 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2613 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2614 sed 's/^/| /' "$ac_site_file" >&5
2615 . "$ac_site_file"
2617 done
2619 if test -r "$cache_file"; then
2620 # Some versions of bash will fail to source /dev/null (special files
2621 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2622 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2624 $as_echo "$as_me: loading cache $cache_file" >&6;}
2625 case $cache_file in
2626 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2627 *) . "./$cache_file";;
2628 esac
2630 else
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2632 $as_echo "$as_me: creating cache $cache_file" >&6;}
2633 >$cache_file
2636 as_fn_append ac_header_list " stdlib.h"
2637 as_fn_append ac_header_list " unistd.h"
2638 as_fn_append ac_header_list " sys/param.h"
2639 # Check that the precious variables saved in the cache have kept the same
2640 # value.
2641 ac_cache_corrupted=false
2642 for ac_var in $ac_precious_vars; do
2643 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2644 eval ac_new_set=\$ac_env_${ac_var}_set
2645 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2646 eval ac_new_val=\$ac_env_${ac_var}_value
2647 case $ac_old_set,$ac_new_set in
2648 set,)
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2650 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2651 ac_cache_corrupted=: ;;
2652 ,set)
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2654 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2655 ac_cache_corrupted=: ;;
2656 ,);;
2658 if test "x$ac_old_val" != "x$ac_new_val"; then
2659 # differences in whitespace do not lead to failure.
2660 ac_old_val_w=`echo x $ac_old_val`
2661 ac_new_val_w=`echo x $ac_new_val`
2662 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2664 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2665 ac_cache_corrupted=:
2666 else
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2668 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2669 eval $ac_var=\$ac_old_val
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2672 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2674 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2675 fi;;
2676 esac
2677 # Pass precious variables to config.status.
2678 if test "$ac_new_set" = set; then
2679 case $ac_new_val in
2680 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2681 *) ac_arg=$ac_var=$ac_new_val ;;
2682 esac
2683 case " $ac_configure_args " in
2684 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2685 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2686 esac
2688 done
2689 if $ac_cache_corrupted; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2693 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2694 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2696 ## -------------------- ##
2697 ## Main body of script. ##
2698 ## -------------------- ##
2700 ac_ext=c
2701 ac_cpp='$CPP $CPPFLAGS'
2702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707 am__api_version='1.11'
2709 ac_aux_dir=
2710 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2711 for ac_t in install-sh install.sh shtool; do
2712 if test -f "$ac_dir/$ac_t"; then
2713 ac_aux_dir=$ac_dir
2714 ac_install_sh="$ac_aux_dir/$ac_t -c"
2715 break 2
2717 done
2718 done
2719 if test -z "$ac_aux_dir"; then
2720 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2723 # These three variables are undocumented and unsupported,
2724 # and are intended to be withdrawn in a future Autoconf release.
2725 # They can cause serious problems if a builder's source tree is in a directory
2726 # whose full name contains unusual characters.
2727 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2728 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2729 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2732 # Find a good install program. We prefer a C program (faster),
2733 # so one script is as good as another. But avoid the broken or
2734 # incompatible versions:
2735 # SysV /etc/install, /usr/sbin/install
2736 # SunOS /usr/etc/install
2737 # IRIX /sbin/install
2738 # AIX /bin/install
2739 # AmigaOS /C/install, which installs bootblocks on floppy discs
2740 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2741 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2742 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2743 # OS/2's system install, which has a completely different semantic
2744 # ./install, which can be erroneously created by make from ./install.sh.
2745 # Reject install programs that cannot install multiple files.
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2747 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2748 if test -z "$INSTALL"; then
2749 if test "${ac_cv_path_install+set}" = set; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 # Account for people who put trailing slashes in PATH elements.
2758 case $as_dir/ in #((
2759 ./ | .// | /[cC]/* | \
2760 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2761 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2762 /usr/ucb/* ) ;;
2764 # OSF1 and SCO ODT 3.0 have their own names for install.
2765 # Don't use installbsd from OSF since it installs stuff as root
2766 # by default.
2767 for ac_prog in ginstall scoinst install; do
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2770 if test $ac_prog = install &&
2771 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2772 # AIX install. It has an incompatible calling convention.
2774 elif test $ac_prog = install &&
2775 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2776 # program-specific install script used by HP pwplus--don't use.
2778 else
2779 rm -rf conftest.one conftest.two conftest.dir
2780 echo one > conftest.one
2781 echo two > conftest.two
2782 mkdir conftest.dir
2783 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2784 test -s conftest.one && test -s conftest.two &&
2785 test -s conftest.dir/conftest.one &&
2786 test -s conftest.dir/conftest.two
2787 then
2788 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2789 break 3
2793 done
2794 done
2796 esac
2798 done
2799 IFS=$as_save_IFS
2801 rm -rf conftest.one conftest.two conftest.dir
2804 if test "${ac_cv_path_install+set}" = set; then
2805 INSTALL=$ac_cv_path_install
2806 else
2807 # As a last resort, use the slow shell script. Don't cache a
2808 # value for INSTALL within a source directory, because that will
2809 # break other packages using the cache if that directory is
2810 # removed, or if the value is a relative name.
2811 INSTALL=$ac_install_sh
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2815 $as_echo "$INSTALL" >&6; }
2817 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2818 # It thinks the first close brace ends the variable substitution.
2819 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2821 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2823 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2826 $as_echo_n "checking whether build environment is sane... " >&6; }
2827 # Just in case
2828 sleep 1
2829 echo timestamp > conftest.file
2830 # Reject unsafe characters in $srcdir or the absolute working directory
2831 # name. Accept space and tab only in the latter.
2832 am_lf='
2834 case `pwd` in
2835 *[\\\"\#\$\&\'\`$am_lf]*)
2836 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2837 esac
2838 case $srcdir in
2839 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2840 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2841 esac
2843 # Do `set' in a subshell so we don't clobber the current shell's
2844 # arguments. Must try -L first in case configure is actually a
2845 # symlink; some systems play weird games with the mod time of symlinks
2846 # (eg FreeBSD returns the mod time of the symlink's containing
2847 # directory).
2848 if (
2849 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2850 if test "$*" = "X"; then
2851 # -L didn't work.
2852 set X `ls -t "$srcdir/configure" conftest.file`
2854 rm -f conftest.file
2855 if test "$*" != "X $srcdir/configure conftest.file" \
2856 && test "$*" != "X conftest.file $srcdir/configure"; then
2858 # If neither matched, then we have a broken ls. This can happen
2859 # if, for instance, CONFIG_SHELL is bash and it inherits a
2860 # broken ls alias from the environment. This has actually
2861 # happened. Such a system could not be considered "sane".
2862 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2863 alias in your environment" "$LINENO" 5
2866 test "$2" = conftest.file
2868 then
2869 # Ok.
2871 else
2872 as_fn_error "newly created file is older than distributed files!
2873 Check your system clock" "$LINENO" 5
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2876 $as_echo "yes" >&6; }
2877 test "$program_prefix" != NONE &&
2878 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2879 # Use a double $ so make ignores it.
2880 test "$program_suffix" != NONE &&
2881 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2882 # Double any \ or $.
2883 # By default was `s,x,x', remove it if useless.
2884 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2885 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2887 # expand $ac_aux_dir to an absolute path
2888 am_aux_dir=`cd $ac_aux_dir && pwd`
2890 if test x"${MISSING+set}" != xset; then
2891 case $am_aux_dir in
2892 *\ * | *\ *)
2893 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2895 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2896 esac
2898 # Use eval to expand $SHELL
2899 if eval "$MISSING --run true"; then
2900 am_missing_run="$MISSING --run "
2901 else
2902 am_missing_run=
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2904 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2907 if test x"${install_sh}" != xset; then
2908 case $am_aux_dir in
2909 *\ * | *\ *)
2910 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2912 install_sh="\${SHELL} $am_aux_dir/install-sh"
2913 esac
2916 # Installed binaries are usually stripped using `strip' when the user
2917 # run `make install-strip'. However `strip' might not be the right
2918 # tool to use in cross-compilation environments, therefore Automake
2919 # will honor the `STRIP' environment variable to overrule this program.
2920 if test "$cross_compiling" != no; then
2921 if test -n "$ac_tool_prefix"; then
2922 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2923 set dummy ${ac_tool_prefix}strip; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if test "${ac_cv_prog_STRIP+set}" = set; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 if test -n "$STRIP"; then
2930 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2943 done
2944 done
2945 IFS=$as_save_IFS
2949 STRIP=$ac_cv_prog_STRIP
2950 if test -n "$STRIP"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2952 $as_echo "$STRIP" >&6; }
2953 else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2960 if test -z "$ac_cv_prog_STRIP"; then
2961 ac_ct_STRIP=$STRIP
2962 # Extract the first word of "strip", so it can be a program name with args.
2963 set dummy strip; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 if test -n "$ac_ct_STRIP"; then
2970 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979 ac_cv_prog_ac_ct_STRIP="strip"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2983 done
2984 done
2985 IFS=$as_save_IFS
2989 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2990 if test -n "$ac_ct_STRIP"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2992 $as_echo "$ac_ct_STRIP" >&6; }
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2998 if test "x$ac_ct_STRIP" = x; then
2999 STRIP=":"
3000 else
3001 case $cross_compiling:$ac_tool_warned in
3002 yes:)
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005 ac_tool_warned=yes ;;
3006 esac
3007 STRIP=$ac_ct_STRIP
3009 else
3010 STRIP="$ac_cv_prog_STRIP"
3014 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3017 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3018 if test -z "$MKDIR_P"; then
3019 if test "${ac_cv_path_mkdir+set}" = set; then :
3020 $as_echo_n "(cached) " >&6
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 for ac_prog in mkdir gmkdir; do
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3030 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3031 'mkdir (GNU coreutils) '* | \
3032 'mkdir (coreutils) '* | \
3033 'mkdir (fileutils) '4.1*)
3034 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3035 break 3;;
3036 esac
3037 done
3038 done
3039 done
3040 IFS=$as_save_IFS
3044 test -d ./--version && rmdir ./--version
3045 if test "${ac_cv_path_mkdir+set}" = set; then
3046 MKDIR_P="$ac_cv_path_mkdir -p"
3047 else
3048 # As a last resort, use the slow shell script. Don't cache a
3049 # value for MKDIR_P within a source directory, because that will
3050 # break other packages using the cache if that directory is
3051 # removed, or if the value is a relative name.
3052 MKDIR_P="$ac_install_sh -d"
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3056 $as_echo "$MKDIR_P" >&6; }
3058 mkdir_p="$MKDIR_P"
3059 case $mkdir_p in
3060 [\\/$]* | ?:[\\/]*) ;;
3061 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3062 esac
3064 for ac_prog in gawk mawk nawk awk
3066 # Extract the first word of "$ac_prog", so it can be a program name with args.
3067 set dummy $ac_prog; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if test "${ac_cv_prog_AWK+set}" = set; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 if test -n "$AWK"; then
3074 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083 ac_cv_prog_AWK="$ac_prog"
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 break 2
3087 done
3088 done
3089 IFS=$as_save_IFS
3093 AWK=$ac_cv_prog_AWK
3094 if test -n "$AWK"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3096 $as_echo "$AWK" >&6; }
3097 else
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3103 test -n "$AWK" && break
3104 done
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3107 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3108 set x ${MAKE-make}
3109 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3110 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3111 $as_echo_n "(cached) " >&6
3112 else
3113 cat >conftest.make <<\_ACEOF
3114 SHELL = /bin/sh
3115 all:
3116 @echo '@@@%%%=$(MAKE)=@@@%%%'
3117 _ACEOF
3118 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3119 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3120 *@@@%%%=?*=@@@%%%*)
3121 eval ac_cv_prog_make_${ac_make}_set=yes;;
3123 eval ac_cv_prog_make_${ac_make}_set=no;;
3124 esac
3125 rm -f conftest.make
3127 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3129 $as_echo "yes" >&6; }
3130 SET_MAKE=
3131 else
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3134 SET_MAKE="MAKE=${MAKE-make}"
3137 rm -rf .tst 2>/dev/null
3138 mkdir .tst 2>/dev/null
3139 if test -d .tst; then
3140 am__leading_dot=.
3141 else
3142 am__leading_dot=_
3144 rmdir .tst 2>/dev/null
3146 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3147 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3148 # is not polluted with repeated "-I."
3149 am__isrc=' -I$(srcdir)'
3150 # test to see if srcdir already configured
3151 if test -f $srcdir/config.status; then
3152 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3156 # test whether we have cygpath
3157 if test -z "$CYGPATH_W"; then
3158 if (cygpath --version) >/dev/null 2>/dev/null; then
3159 CYGPATH_W='cygpath -w'
3160 else
3161 CYGPATH_W=echo
3166 # Define the identity of the package.
3167 PACKAGE='amule'
3168 VERSION='SVN'
3171 cat >>confdefs.h <<_ACEOF
3172 #define PACKAGE "$PACKAGE"
3173 _ACEOF
3176 cat >>confdefs.h <<_ACEOF
3177 #define VERSION "$VERSION"
3178 _ACEOF
3180 # Some tools Automake needs.
3182 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3185 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3188 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3191 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3194 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3196 # We need awk for the "check" target. The system "awk" is bad on
3197 # some platforms.
3198 # Always define AMTAR for backward compatibility.
3200 AMTAR=${AMTAR-"${am_missing_run}tar"}
3202 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3208 # Check whether --enable-silent-rules was given.
3209 if test "${enable_silent_rules+set}" = set; then :
3210 enableval=$enable_silent_rules;
3213 case $enable_silent_rules in
3214 yes) AM_DEFAULT_VERBOSITY=0;;
3215 no) AM_DEFAULT_VERBOSITY=1;;
3216 *) AM_DEFAULT_VERBOSITY=1;;
3217 esac
3218 AM_BACKSLASH='\'
3224 ac_config_headers="$ac_config_headers config.h"
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3228 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3229 # Check whether --enable-maintainer-mode was given.
3230 if test "${enable_maintainer_mode+set}" = set; then :
3231 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3232 else
3233 USE_MAINTAINER_MODE=no
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3237 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3238 if test $USE_MAINTAINER_MODE = yes; then
3239 MAINTAINER_MODE_TRUE=
3240 MAINTAINER_MODE_FALSE='#'
3241 else
3242 MAINTAINER_MODE_TRUE='#'
3243 MAINTAINER_MODE_FALSE=
3246 MAINT=$MAINTAINER_MODE_TRUE
3250 # Make sure we can run config.sub.
3251 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3252 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3255 $as_echo_n "checking build system type... " >&6; }
3256 if test "${ac_cv_build+set}" = set; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 ac_build_alias=$build_alias
3260 test "x$ac_build_alias" = x &&
3261 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3262 test "x$ac_build_alias" = x &&
3263 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3264 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3265 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3269 $as_echo "$ac_cv_build" >&6; }
3270 case $ac_cv_build in
3271 *-*-*) ;;
3272 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3273 esac
3274 build=$ac_cv_build
3275 ac_save_IFS=$IFS; IFS='-'
3276 set x $ac_cv_build
3277 shift
3278 build_cpu=$1
3279 build_vendor=$2
3280 shift; shift
3281 # Remember, the first character of IFS is used to create $*,
3282 # except with old shells:
3283 build_os=$*
3284 IFS=$ac_save_IFS
3285 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3289 $as_echo_n "checking host system type... " >&6; }
3290 if test "${ac_cv_host+set}" = set; then :
3291 $as_echo_n "(cached) " >&6
3292 else
3293 if test "x$host_alias" = x; then
3294 ac_cv_host=$ac_cv_build
3295 else
3296 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3297 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3302 $as_echo "$ac_cv_host" >&6; }
3303 case $ac_cv_host in
3304 *-*-*) ;;
3305 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3306 esac
3307 host=$ac_cv_host
3308 ac_save_IFS=$IFS; IFS='-'
3309 set x $ac_cv_host
3310 shift
3311 host_cpu=$1
3312 host_vendor=$2
3313 shift; shift
3314 # Remember, the first character of IFS is used to create $*,
3315 # except with old shells:
3316 host_os=$*
3317 IFS=$ac_save_IFS
3318 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3322 case "${host_os}" in
3323 darwin*)
3324 SYS=darwin
3325 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3326 MULELDFLAGS="-bind_at_load"
3327 touch src/Scanner.cpp
3329 openbsd*)
3330 SYS=openbsd
3331 LIBS="$LIBS -L/usr/local/lib"
3332 MULECPPFLAGS="-D__OPENBSD__"
3334 *cygwin* | *mingw32*)
3335 SYS=win32
3336 MULECPPFLAGS="-DNOMINMAX"
3338 solaris*)
3339 SYS=solaris
3340 RESOLV_LIB="-lresolv -lnsl"
3341 LIBS="$LIBS -lrt"
3343 *netbsd*)
3344 SYS=netbsd
3345 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3346 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3347 # Still, we prepend them, instead of adding, so the user may override them.
3348 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
3349 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3351 *irix*)
3352 SYS=irix
3353 MULECPPFLAGS="-D__IRIX__"
3356 SYS=unknown
3358 esac
3360 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3361 if test ${SYS:-unknown} != win32; then :
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3364 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3365 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then :
3367 MULELDFLAGS="$MULELDFLAGS -pthread"
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369 $as_echo "yes" >&6; }
3371 else
3373 MULELDFLAGS="$MULELDFLAGS -lpthread"
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3383 mule_backup_CFLAGS="$CFLAGS"
3384 mule_backup_CXXFLAGS="$CXXFLAGS"
3385 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
3386 ac_ext=cpp
3387 ac_cpp='$CXXCPP $CPPFLAGS'
3388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3391 if test -z "$CXX"; then
3392 if test -n "$CCC"; then
3393 CXX=$CCC
3394 else
3395 if test -n "$ac_tool_prefix"; then
3396 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if test "${ac_cv_prog_CXX+set}" = set; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 if test -n "$CXX"; then
3406 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2
3419 done
3420 done
3421 IFS=$as_save_IFS
3425 CXX=$ac_cv_prog_CXX
3426 if test -n "$CXX"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3428 $as_echo "$CXX" >&6; }
3429 else
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3435 test -n "$CXX" && break
3436 done
3438 if test -z "$CXX"; then
3439 ac_ct_CXX=$CXX
3440 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3442 # Extract the first word of "$ac_prog", so it can be a program name with args.
3443 set dummy $ac_prog; ac_word=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3447 $as_echo_n "(cached) " >&6
3448 else
3449 if test -n "$ac_ct_CXX"; then
3450 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3451 else
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3455 IFS=$as_save_IFS
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3459 ac_cv_prog_ac_ct_CXX="$ac_prog"
3460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3463 done
3464 done
3465 IFS=$as_save_IFS
3469 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3470 if test -n "$ac_ct_CXX"; then
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3472 $as_echo "$ac_ct_CXX" >&6; }
3473 else
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3479 test -n "$ac_ct_CXX" && break
3480 done
3482 if test "x$ac_ct_CXX" = x; then
3483 CXX="g++"
3484 else
3485 case $cross_compiling:$ac_tool_warned in
3486 yes:)
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3489 ac_tool_warned=yes ;;
3490 esac
3491 CXX=$ac_ct_CXX
3497 # Provide some information about the compiler.
3498 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3499 set X $ac_compile
3500 ac_compiler=$2
3501 for ac_option in --version -v -V -qversion; do
3502 { { ac_try="$ac_compiler $ac_option >&5"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3510 ac_status=$?
3511 if test -s conftest.err; then
3512 sed '10a\
3513 ... rest of stderr output deleted ...
3514 10q' conftest.err >conftest.er1
3515 cat conftest.er1 >&5
3517 rm -f conftest.er1 conftest.err
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }
3520 done
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3526 main ()
3530 return 0;
3532 _ACEOF
3533 ac_clean_files_save=$ac_clean_files
3534 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3535 # Try to create an executable without -o first, disregard a.out.
3536 # It will help us diagnose broken compilers, and finding out an intuition
3537 # of exeext.
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3539 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3540 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3542 # The possible output files:
3543 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3545 ac_rmfiles=
3546 for ac_file in $ac_files
3548 case $ac_file in
3549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3550 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3551 esac
3552 done
3553 rm -f $ac_rmfiles
3555 if { { ac_try="$ac_link_default"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_link_default") 2>&5
3563 ac_status=$?
3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565 test $ac_status = 0; }; then :
3566 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3567 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3568 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3569 # so that the user can short-circuit this test for compilers unknown to
3570 # Autoconf.
3571 for ac_file in $ac_files ''
3573 test -f "$ac_file" || continue
3574 case $ac_file in
3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3577 [ab].out )
3578 # We found the default executable, but exeext='' is most
3579 # certainly right.
3580 break;;
3581 *.* )
3582 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3583 then :; else
3584 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3586 # We set ac_cv_exeext here because the later test for it is not
3587 # safe: cross compilers may not add the suffix if given an `-o'
3588 # argument, so we may need to know it at that point already.
3589 # Even if this section looks crufty: it has the advantage of
3590 # actually working.
3591 break;;
3593 break;;
3594 esac
3595 done
3596 test "$ac_cv_exeext" = no && ac_cv_exeext=
3598 else
3599 ac_file=''
3601 if test -z "$ac_file"; then :
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3604 $as_echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 { as_fn_set_status 77
3610 as_fn_error "C++ compiler cannot create executables
3611 See \`config.log' for more details." "$LINENO" 5; }; }
3612 else
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3614 $as_echo "yes" >&6; }
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3617 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3619 $as_echo "$ac_file" >&6; }
3620 ac_exeext=$ac_cv_exeext
3622 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3623 ac_clean_files=$ac_clean_files_save
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3625 $as_echo_n "checking for suffix of executables... " >&6; }
3626 if { { ac_try="$ac_link"
3627 case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630 esac
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633 (eval "$ac_link") 2>&5
3634 ac_status=$?
3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636 test $ac_status = 0; }; then :
3637 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3638 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3639 # work properly (i.e., refer to `conftest.exe'), while it won't with
3640 # `rm'.
3641 for ac_file in conftest.exe conftest conftest.*; do
3642 test -f "$ac_file" || continue
3643 case $ac_file in
3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3645 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3646 break;;
3647 * ) break;;
3648 esac
3649 done
3650 else
3651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3653 as_fn_error "cannot compute suffix of executables: cannot compile and link
3654 See \`config.log' for more details." "$LINENO" 5; }
3656 rm -f conftest conftest$ac_cv_exeext
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3658 $as_echo "$ac_cv_exeext" >&6; }
3660 rm -f conftest.$ac_ext
3661 EXEEXT=$ac_cv_exeext
3662 ac_exeext=$EXEEXT
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665 #include <stdio.h>
3667 main ()
3669 FILE *f = fopen ("conftest.out", "w");
3670 return ferror (f) || fclose (f) != 0;
3673 return 0;
3675 _ACEOF
3676 ac_clean_files="$ac_clean_files conftest.out"
3677 # Check that the compiler produces executables we can run. If not, either
3678 # the compiler is broken, or we cross compile.
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3680 $as_echo_n "checking whether we are cross compiling... " >&6; }
3681 if test "$cross_compiling" != yes; then
3682 { { ac_try="$ac_link"
3683 case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_link") 2>&5
3690 ac_status=$?
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }
3693 if { ac_try='./conftest$ac_cv_exeext'
3694 { { case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 $as_echo "$ac_try_echo"; } >&5
3700 (eval "$ac_try") 2>&5
3701 ac_status=$?
3702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703 test $ac_status = 0; }; }; then
3704 cross_compiling=no
3705 else
3706 if test "$cross_compiling" = maybe; then
3707 cross_compiling=yes
3708 else
3709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3711 as_fn_error "cannot run C++ compiled programs.
3712 If you meant to cross compile, use \`--host'.
3713 See \`config.log' for more details." "$LINENO" 5; }
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3718 $as_echo "$cross_compiling" >&6; }
3720 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3721 ac_clean_files=$ac_clean_files_save
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3723 $as_echo_n "checking for suffix of object files... " >&6; }
3724 if test "${ac_cv_objext+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3726 else
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3731 main ()
3735 return 0;
3737 _ACEOF
3738 rm -f conftest.o conftest.obj
3739 if { { ac_try="$ac_compile"
3740 case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3743 esac
3744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745 $as_echo "$ac_try_echo"; } >&5
3746 (eval "$ac_compile") 2>&5
3747 ac_status=$?
3748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3749 test $ac_status = 0; }; then :
3750 for ac_file in conftest.o conftest.obj conftest.*; do
3751 test -f "$ac_file" || continue;
3752 case $ac_file in
3753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3754 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3755 break;;
3756 esac
3757 done
3758 else
3759 $as_echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error "cannot compute suffix of object files: cannot compile
3765 See \`config.log' for more details." "$LINENO" 5; }
3767 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3770 $as_echo "$ac_cv_objext" >&6; }
3771 OBJEXT=$ac_cv_objext
3772 ac_objext=$OBJEXT
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3774 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3775 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3782 main ()
3784 #ifndef __GNUC__
3785 choke me
3786 #endif
3789 return 0;
3791 _ACEOF
3792 if ac_fn_cxx_try_compile "$LINENO"; then :
3793 ac_compiler_gnu=yes
3794 else
3795 ac_compiler_gnu=no
3797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3802 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3803 if test $ac_compiler_gnu = yes; then
3804 GXX=yes
3805 else
3806 GXX=
3808 ac_test_CXXFLAGS=${CXXFLAGS+set}
3809 ac_save_CXXFLAGS=$CXXFLAGS
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3811 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3812 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
3814 else
3815 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3816 ac_cxx_werror_flag=yes
3817 ac_cv_prog_cxx_g=no
3818 CXXFLAGS="-g"
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3823 main ()
3827 return 0;
3829 _ACEOF
3830 if ac_fn_cxx_try_compile "$LINENO"; then :
3831 ac_cv_prog_cxx_g=yes
3832 else
3833 CXXFLAGS=""
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3838 main ()
3842 return 0;
3844 _ACEOF
3845 if ac_fn_cxx_try_compile "$LINENO"; then :
3847 else
3848 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3849 CXXFLAGS="-g"
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3854 main ()
3858 return 0;
3860 _ACEOF
3861 if ac_fn_cxx_try_compile "$LINENO"; then :
3862 ac_cv_prog_cxx_g=yes
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3872 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3873 if test "$ac_test_CXXFLAGS" = set; then
3874 CXXFLAGS=$ac_save_CXXFLAGS
3875 elif test $ac_cv_prog_cxx_g = yes; then
3876 if test "$GXX" = yes; then
3877 CXXFLAGS="-g -O2"
3878 else
3879 CXXFLAGS="-g"
3881 else
3882 if test "$GXX" = yes; then
3883 CXXFLAGS="-O2"
3884 else
3885 CXXFLAGS=
3888 ac_ext=c
3889 ac_cpp='$CPP $CPPFLAGS'
3890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3893 DEPDIR="${am__leading_dot}deps"
3895 ac_config_commands="$ac_config_commands depfiles"
3898 am_make=${MAKE-make}
3899 cat > confinc << 'END'
3900 am__doit:
3901 @echo this is the am__doit target
3902 .PHONY: am__doit
3904 # If we don't find an include directive, just comment out the code.
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3906 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3907 am__include="#"
3908 am__quote=
3909 _am_result=none
3910 # First try GNU make style include.
3911 echo "include confinc" > confmf
3912 # Ignore all kinds of additional output from `make'.
3913 case `$am_make -s -f confmf 2> /dev/null` in #(
3914 *the\ am__doit\ target*)
3915 am__include=include
3916 am__quote=
3917 _am_result=GNU
3919 esac
3920 # Now try BSD make style include.
3921 if test "$am__include" = "#"; then
3922 echo '.include "confinc"' > confmf
3923 case `$am_make -s -f confmf 2> /dev/null` in #(
3924 *the\ am__doit\ target*)
3925 am__include=.include
3926 am__quote="\""
3927 _am_result=BSD
3929 esac
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3934 $as_echo "$_am_result" >&6; }
3935 rm -f confinc confmf
3937 # Check whether --enable-dependency-tracking was given.
3938 if test "${enable_dependency_tracking+set}" = set; then :
3939 enableval=$enable_dependency_tracking;
3942 if test "x$enable_dependency_tracking" != xno; then
3943 am_depcomp="$ac_aux_dir/depcomp"
3944 AMDEPBACKSLASH='\'
3946 if test "x$enable_dependency_tracking" != xno; then
3947 AMDEP_TRUE=
3948 AMDEP_FALSE='#'
3949 else
3950 AMDEP_TRUE='#'
3951 AMDEP_FALSE=
3956 depcc="$CXX" am_compiler_list=
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3959 $as_echo_n "checking dependency style of $depcc... " >&6; }
3960 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
3962 else
3963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3964 # We make a subdir and do the tests there. Otherwise we can end up
3965 # making bogus files that we don't know about and never remove. For
3966 # instance it was reported that on HP-UX the gcc test will end up
3967 # making a dummy file named `D' -- because `-MD' means `put the output
3968 # in D'.
3969 mkdir conftest.dir
3970 # Copy depcomp to subdir because otherwise we won't find it if we're
3971 # using a relative directory.
3972 cp "$am_depcomp" conftest.dir
3973 cd conftest.dir
3974 # We will build objects and dependencies in a subdirectory because
3975 # it helps to detect inapplicable dependency modes. For instance
3976 # both Tru64's cc and ICC support -MD to output dependencies as a
3977 # side effect of compilation, but ICC will put the dependencies in
3978 # the current directory while Tru64 will put them in the object
3979 # directory.
3980 mkdir sub
3982 am_cv_CXX_dependencies_compiler_type=none
3983 if test "$am_compiler_list" = ""; then
3984 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3986 am__universal=false
3987 case " $depcc " in #(
3988 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3989 esac
3991 for depmode in $am_compiler_list; do
3992 # Setup a source with many dependencies, because some compilers
3993 # like to wrap large dependency lists on column 80 (with \), and
3994 # we should not choose a depcomp mode which is confused by this.
3996 # We need to recreate these files for each test, as the compiler may
3997 # overwrite some of them when testing with obscure command lines.
3998 # This happens at least with the AIX C compiler.
3999 : > sub/conftest.c
4000 for i in 1 2 3 4 5 6; do
4001 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4002 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4003 # Solaris 8's {/usr,}/bin/sh.
4004 touch sub/conftst$i.h
4005 done
4006 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4008 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4009 # mode. It turns out that the SunPro C++ compiler does not properly
4010 # handle `-M -o', and we need to detect this. Also, some Intel
4011 # versions had trouble with output in subdirs
4012 am__obj=sub/conftest.${OBJEXT-o}
4013 am__minus_obj="-o $am__obj"
4014 case $depmode in
4015 gcc)
4016 # This depmode causes a compiler race in universal mode.
4017 test "$am__universal" = false || continue
4019 nosideeffect)
4020 # after this tag, mechanisms are not by side-effect, so they'll
4021 # only be used when explicitly requested
4022 if test "x$enable_dependency_tracking" = xyes; then
4023 continue
4024 else
4025 break
4028 msvisualcpp | msvcmsys)
4029 # This compiler won't grok `-c -o', but also, the minuso test has
4030 # not run yet. These depmodes are late enough in the game, and
4031 # so weak that their functioning should not be impacted.
4032 am__obj=conftest.${OBJEXT-o}
4033 am__minus_obj=
4035 none) break ;;
4036 esac
4037 if depmode=$depmode \
4038 source=sub/conftest.c object=$am__obj \
4039 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4040 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4041 >/dev/null 2>conftest.err &&
4042 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4043 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4044 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4045 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4046 # icc doesn't choke on unknown options, it will just issue warnings
4047 # or remarks (even with -Werror). So we grep stderr for any message
4048 # that says an option was ignored or not supported.
4049 # When given -MP, icc 7.0 and 7.1 complain thusly:
4050 # icc: Command line warning: ignoring option '-M'; no argument required
4051 # The diagnosis changed in icc 8.0:
4052 # icc: Command line remark: option '-MP' not supported
4053 if (grep 'ignoring option' conftest.err ||
4054 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4055 am_cv_CXX_dependencies_compiler_type=$depmode
4056 break
4059 done
4061 cd ..
4062 rm -rf conftest.dir
4063 else
4064 am_cv_CXX_dependencies_compiler_type=none
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4069 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4070 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4073 test "x$enable_dependency_tracking" != xno \
4074 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4075 am__fastdepCXX_TRUE=
4076 am__fastdepCXX_FALSE='#'
4077 else
4078 am__fastdepCXX_TRUE='#'
4079 am__fastdepCXX_FALSE=
4083 ac_ext=cpp
4084 ac_cpp='$CXXCPP $CPPFLAGS'
4085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4089 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4090 if test -z "$CXXCPP"; then
4091 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4092 $as_echo_n "(cached) " >&6
4093 else
4094 # Double quotes because CXXCPP needs to be expanded
4095 for CXXCPP in "$CXX -E" "/lib/cpp"
4097 ac_preproc_ok=false
4098 for ac_cxx_preproc_warn_flag in '' yes
4100 # Use a header file that comes with gcc, so configuring glibc
4101 # with a fresh cross-compiler works.
4102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4103 # <limits.h> exists even on freestanding compilers.
4104 # On the NeXT, cc -E runs the code through the compiler's parser,
4105 # not just through cpp. "Syntax error" is here to catch this case.
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108 #ifdef __STDC__
4109 # include <limits.h>
4110 #else
4111 # include <assert.h>
4112 #endif
4113 Syntax error
4114 _ACEOF
4115 if ac_fn_cxx_try_cpp "$LINENO"; then :
4117 else
4118 # Broken: fails on valid input.
4119 continue
4121 rm -f conftest.err conftest.$ac_ext
4123 # OK, works on sane cases. Now check whether nonexistent headers
4124 # can be detected and how.
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127 #include <ac_nonexistent.h>
4128 _ACEOF
4129 if ac_fn_cxx_try_cpp "$LINENO"; then :
4130 # Broken: success on invalid input.
4131 continue
4132 else
4133 # Passes both tests.
4134 ac_preproc_ok=:
4135 break
4137 rm -f conftest.err conftest.$ac_ext
4139 done
4140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4141 rm -f conftest.err conftest.$ac_ext
4142 if $ac_preproc_ok; then :
4143 break
4146 done
4147 ac_cv_prog_CXXCPP=$CXXCPP
4150 CXXCPP=$ac_cv_prog_CXXCPP
4151 else
4152 ac_cv_prog_CXXCPP=$CXXCPP
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4155 $as_echo "$CXXCPP" >&6; }
4156 ac_preproc_ok=false
4157 for ac_cxx_preproc_warn_flag in '' yes
4159 # Use a header file that comes with gcc, so configuring glibc
4160 # with a fresh cross-compiler works.
4161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4162 # <limits.h> exists even on freestanding compilers.
4163 # On the NeXT, cc -E runs the code through the compiler's parser,
4164 # not just through cpp. "Syntax error" is here to catch this case.
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4167 #ifdef __STDC__
4168 # include <limits.h>
4169 #else
4170 # include <assert.h>
4171 #endif
4172 Syntax error
4173 _ACEOF
4174 if ac_fn_cxx_try_cpp "$LINENO"; then :
4176 else
4177 # Broken: fails on valid input.
4178 continue
4180 rm -f conftest.err conftest.$ac_ext
4182 # OK, works on sane cases. Now check whether nonexistent headers
4183 # can be detected and how.
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #include <ac_nonexistent.h>
4187 _ACEOF
4188 if ac_fn_cxx_try_cpp "$LINENO"; then :
4189 # Broken: success on invalid input.
4190 continue
4191 else
4192 # Passes both tests.
4193 ac_preproc_ok=:
4194 break
4196 rm -f conftest.err conftest.$ac_ext
4198 done
4199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4200 rm -f conftest.err conftest.$ac_ext
4201 if $ac_preproc_ok; then :
4203 else
4204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4206 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4207 See \`config.log' for more details." "$LINENO" 5; }
4210 ac_ext=c
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216 ac_ext=c
4217 ac_cpp='$CPP $CPPFLAGS'
4218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221 if test -n "$ac_tool_prefix"; then
4222 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4223 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if test "${ac_cv_prog_CC+set}" = set; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 if test -n "$CC"; then
4230 ac_cv_prog_CC="$CC" # Let the user override the test.
4231 else
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4239 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 break 2
4243 done
4244 done
4245 IFS=$as_save_IFS
4249 CC=$ac_cv_prog_CC
4250 if test -n "$CC"; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4252 $as_echo "$CC" >&6; }
4253 else
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4260 if test -z "$ac_cv_prog_CC"; then
4261 ac_ct_CC=$CC
4262 # Extract the first word of "gcc", so it can be a program name with args.
4263 set dummy gcc; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if test -n "$ac_ct_CC"; then
4270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_prog_ac_ct_CC="gcc"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4283 done
4284 done
4285 IFS=$as_save_IFS
4289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4290 if test -n "$ac_ct_CC"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4292 $as_echo "$ac_ct_CC" >&6; }
4293 else
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4298 if test "x$ac_ct_CC" = x; then
4299 CC=""
4300 else
4301 case $cross_compiling:$ac_tool_warned in
4302 yes:)
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305 ac_tool_warned=yes ;;
4306 esac
4307 CC=$ac_ct_CC
4309 else
4310 CC="$ac_cv_prog_CC"
4313 if test -z "$CC"; then
4314 if test -n "$ac_tool_prefix"; then
4315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4316 set dummy ${ac_tool_prefix}cc; ac_word=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if test "${ac_cv_prog_CC+set}" = set; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 if test -n "$CC"; then
4323 ac_cv_prog_CC="$CC" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332 ac_cv_prog_CC="${ac_tool_prefix}cc"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4336 done
4337 done
4338 IFS=$as_save_IFS
4342 CC=$ac_cv_prog_CC
4343 if test -n "$CC"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4345 $as_echo "$CC" >&6; }
4346 else
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4354 if test -z "$CC"; then
4355 # Extract the first word of "cc", so it can be a program name with args.
4356 set dummy cc; ac_word=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if test "${ac_cv_prog_CC+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 if test -n "$CC"; then
4363 ac_cv_prog_CC="$CC" # Let the user override the test.
4364 else
4365 ac_prog_rejected=no
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4374 ac_prog_rejected=yes
4375 continue
4377 ac_cv_prog_CC="cc"
4378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4379 break 2
4381 done
4382 done
4383 IFS=$as_save_IFS
4385 if test $ac_prog_rejected = yes; then
4386 # We found a bogon in the path, so make sure we never use it.
4387 set dummy $ac_cv_prog_CC
4388 shift
4389 if test $# != 0; then
4390 # We chose a different compiler from the bogus one.
4391 # However, it has the same basename, so the bogon will be chosen
4392 # first if we set CC to just the basename; use the full file name.
4393 shift
4394 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4399 CC=$ac_cv_prog_CC
4400 if test -n "$CC"; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4402 $as_echo "$CC" >&6; }
4403 else
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4410 if test -z "$CC"; then
4411 if test -n "$ac_tool_prefix"; then
4412 for ac_prog in cl.exe
4414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if test "${ac_cv_prog_CC+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 if test -n "$CC"; then
4422 ac_cv_prog_CC="$CC" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4435 done
4436 done
4437 IFS=$as_save_IFS
4441 CC=$ac_cv_prog_CC
4442 if test -n "$CC"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4444 $as_echo "$CC" >&6; }
4445 else
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4451 test -n "$CC" && break
4452 done
4454 if test -z "$CC"; then
4455 ac_ct_CC=$CC
4456 for ac_prog in cl.exe
4458 # Extract the first word of "$ac_prog", so it can be a program name with args.
4459 set dummy $ac_prog; ac_word=$2
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if test -n "$ac_ct_CC"; then
4466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_ac_ct_CC="$ac_prog"
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4479 done
4480 done
4481 IFS=$as_save_IFS
4485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4486 if test -n "$ac_ct_CC"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4488 $as_echo "$ac_ct_CC" >&6; }
4489 else
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4495 test -n "$ac_ct_CC" && break
4496 done
4498 if test "x$ac_ct_CC" = x; then
4499 CC=""
4500 else
4501 case $cross_compiling:$ac_tool_warned in
4502 yes:)
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4505 ac_tool_warned=yes ;;
4506 esac
4507 CC=$ac_ct_CC
4514 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4516 as_fn_error "no acceptable C compiler found in \$PATH
4517 See \`config.log' for more details." "$LINENO" 5; }
4519 # Provide some information about the compiler.
4520 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4521 set X $ac_compile
4522 ac_compiler=$2
4523 for ac_option in --version -v -V -qversion; do
4524 { { ac_try="$ac_compiler $ac_option >&5"
4525 case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4528 esac
4529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530 $as_echo "$ac_try_echo"; } >&5
4531 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4532 ac_status=$?
4533 if test -s conftest.err; then
4534 sed '10a\
4535 ... rest of stderr output deleted ...
4536 10q' conftest.err >conftest.er1
4537 cat conftest.er1 >&5
4539 rm -f conftest.er1 conftest.err
4540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4541 test $ac_status = 0; }
4542 done
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4545 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4546 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4553 main ()
4555 #ifndef __GNUC__
4556 choke me
4557 #endif
4560 return 0;
4562 _ACEOF
4563 if ac_fn_c_try_compile "$LINENO"; then :
4564 ac_compiler_gnu=yes
4565 else
4566 ac_compiler_gnu=no
4568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4573 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4574 if test $ac_compiler_gnu = yes; then
4575 GCC=yes
4576 else
4577 GCC=
4579 ac_test_CFLAGS=${CFLAGS+set}
4580 ac_save_CFLAGS=$CFLAGS
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4582 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4583 if test "${ac_cv_prog_cc_g+set}" = set; then :
4584 $as_echo_n "(cached) " >&6
4585 else
4586 ac_save_c_werror_flag=$ac_c_werror_flag
4587 ac_c_werror_flag=yes
4588 ac_cv_prog_cc_g=no
4589 CFLAGS="-g"
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4594 main ()
4598 return 0;
4600 _ACEOF
4601 if ac_fn_c_try_compile "$LINENO"; then :
4602 ac_cv_prog_cc_g=yes
4603 else
4604 CFLAGS=""
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4609 main ()
4613 return 0;
4615 _ACEOF
4616 if ac_fn_c_try_compile "$LINENO"; then :
4618 else
4619 ac_c_werror_flag=$ac_save_c_werror_flag
4620 CFLAGS="-g"
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4625 main ()
4629 return 0;
4631 _ACEOF
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_prog_cc_g=yes
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 ac_c_werror_flag=$ac_save_c_werror_flag
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4643 $as_echo "$ac_cv_prog_cc_g" >&6; }
4644 if test "$ac_test_CFLAGS" = set; then
4645 CFLAGS=$ac_save_CFLAGS
4646 elif test $ac_cv_prog_cc_g = yes; then
4647 if test "$GCC" = yes; then
4648 CFLAGS="-g -O2"
4649 else
4650 CFLAGS="-g"
4652 else
4653 if test "$GCC" = yes; then
4654 CFLAGS="-O2"
4655 else
4656 CFLAGS=
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4660 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4661 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 ac_cv_prog_cc_c89=no
4665 ac_save_CC=$CC
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668 #include <stdarg.h>
4669 #include <stdio.h>
4670 #include <sys/types.h>
4671 #include <sys/stat.h>
4672 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4673 struct buf { int x; };
4674 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4675 static char *e (p, i)
4676 char **p;
4677 int i;
4679 return p[i];
4681 static char *f (char * (*g) (char **, int), char **p, ...)
4683 char *s;
4684 va_list v;
4685 va_start (v,p);
4686 s = g (p, va_arg (v,int));
4687 va_end (v);
4688 return s;
4691 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4692 function prototypes and stuff, but not '\xHH' hex character constants.
4693 These don't provoke an error unfortunately, instead are silently treated
4694 as 'x'. The following induces an error, until -std is added to get
4695 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4696 array size at least. It's necessary to write '\x00'==0 to get something
4697 that's true only with -std. */
4698 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4700 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4701 inside strings and character constants. */
4702 #define FOO(x) 'x'
4703 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4705 int test (int i, double x);
4706 struct s1 {int (*f) (int a);};
4707 struct s2 {int (*f) (double a);};
4708 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4709 int argc;
4710 char **argv;
4712 main ()
4714 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4716 return 0;
4718 _ACEOF
4719 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4720 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4722 CC="$ac_save_CC $ac_arg"
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 ac_cv_prog_cc_c89=$ac_arg
4726 rm -f core conftest.err conftest.$ac_objext
4727 test "x$ac_cv_prog_cc_c89" != "xno" && break
4728 done
4729 rm -f conftest.$ac_ext
4730 CC=$ac_save_CC
4733 # AC_CACHE_VAL
4734 case "x$ac_cv_prog_cc_c89" in
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4737 $as_echo "none needed" >&6; } ;;
4738 xno)
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4740 $as_echo "unsupported" >&6; } ;;
4742 CC="$CC $ac_cv_prog_cc_c89"
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4744 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4745 esac
4746 if test "x$ac_cv_prog_cc_c89" != xno; then :
4750 ac_ext=c
4751 ac_cpp='$CPP $CPPFLAGS'
4752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4756 depcc="$CC" am_compiler_list=
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4759 $as_echo_n "checking dependency style of $depcc... " >&6; }
4760 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4764 # We make a subdir and do the tests there. Otherwise we can end up
4765 # making bogus files that we don't know about and never remove. For
4766 # instance it was reported that on HP-UX the gcc test will end up
4767 # making a dummy file named `D' -- because `-MD' means `put the output
4768 # in D'.
4769 mkdir conftest.dir
4770 # Copy depcomp to subdir because otherwise we won't find it if we're
4771 # using a relative directory.
4772 cp "$am_depcomp" conftest.dir
4773 cd conftest.dir
4774 # We will build objects and dependencies in a subdirectory because
4775 # it helps to detect inapplicable dependency modes. For instance
4776 # both Tru64's cc and ICC support -MD to output dependencies as a
4777 # side effect of compilation, but ICC will put the dependencies in
4778 # the current directory while Tru64 will put them in the object
4779 # directory.
4780 mkdir sub
4782 am_cv_CC_dependencies_compiler_type=none
4783 if test "$am_compiler_list" = ""; then
4784 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4786 am__universal=false
4787 case " $depcc " in #(
4788 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4789 esac
4791 for depmode in $am_compiler_list; do
4792 # Setup a source with many dependencies, because some compilers
4793 # like to wrap large dependency lists on column 80 (with \), and
4794 # we should not choose a depcomp mode which is confused by this.
4796 # We need to recreate these files for each test, as the compiler may
4797 # overwrite some of them when testing with obscure command lines.
4798 # This happens at least with the AIX C compiler.
4799 : > sub/conftest.c
4800 for i in 1 2 3 4 5 6; do
4801 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4802 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4803 # Solaris 8's {/usr,}/bin/sh.
4804 touch sub/conftst$i.h
4805 done
4806 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4808 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4809 # mode. It turns out that the SunPro C++ compiler does not properly
4810 # handle `-M -o', and we need to detect this. Also, some Intel
4811 # versions had trouble with output in subdirs
4812 am__obj=sub/conftest.${OBJEXT-o}
4813 am__minus_obj="-o $am__obj"
4814 case $depmode in
4815 gcc)
4816 # This depmode causes a compiler race in universal mode.
4817 test "$am__universal" = false || continue
4819 nosideeffect)
4820 # after this tag, mechanisms are not by side-effect, so they'll
4821 # only be used when explicitly requested
4822 if test "x$enable_dependency_tracking" = xyes; then
4823 continue
4824 else
4825 break
4828 msvisualcpp | msvcmsys)
4829 # This compiler won't grok `-c -o', but also, the minuso test has
4830 # not run yet. These depmodes are late enough in the game, and
4831 # so weak that their functioning should not be impacted.
4832 am__obj=conftest.${OBJEXT-o}
4833 am__minus_obj=
4835 none) break ;;
4836 esac
4837 if depmode=$depmode \
4838 source=sub/conftest.c object=$am__obj \
4839 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4840 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4841 >/dev/null 2>conftest.err &&
4842 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4843 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4844 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4845 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4846 # icc doesn't choke on unknown options, it will just issue warnings
4847 # or remarks (even with -Werror). So we grep stderr for any message
4848 # that says an option was ignored or not supported.
4849 # When given -MP, icc 7.0 and 7.1 complain thusly:
4850 # icc: Command line warning: ignoring option '-M'; no argument required
4851 # The diagnosis changed in icc 8.0:
4852 # icc: Command line remark: option '-MP' not supported
4853 if (grep 'ignoring option' conftest.err ||
4854 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4855 am_cv_CC_dependencies_compiler_type=$depmode
4856 break
4859 done
4861 cd ..
4862 rm -rf conftest.dir
4863 else
4864 am_cv_CC_dependencies_compiler_type=none
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4869 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4870 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4873 test "x$enable_dependency_tracking" != xno \
4874 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4875 am__fastdepCC_TRUE=
4876 am__fastdepCC_FALSE='#'
4877 else
4878 am__fastdepCC_TRUE='#'
4879 am__fastdepCC_FALSE=
4883 ac_ext=c
4884 ac_cpp='$CPP $CPPFLAGS'
4885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4889 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4890 # On Suns, sometimes $CPP names a directory.
4891 if test -n "$CPP" && test -d "$CPP"; then
4892 CPP=
4894 if test -z "$CPP"; then
4895 if test "${ac_cv_prog_CPP+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 # Double quotes because CPP needs to be expanded
4899 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4901 ac_preproc_ok=false
4902 for ac_c_preproc_warn_flag in '' yes
4904 # Use a header file that comes with gcc, so configuring glibc
4905 # with a fresh cross-compiler works.
4906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4907 # <limits.h> exists even on freestanding compilers.
4908 # On the NeXT, cc -E runs the code through the compiler's parser,
4909 # not just through cpp. "Syntax error" is here to catch this case.
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 #ifdef __STDC__
4913 # include <limits.h>
4914 #else
4915 # include <assert.h>
4916 #endif
4917 Syntax error
4918 _ACEOF
4919 if ac_fn_c_try_cpp "$LINENO"; then :
4921 else
4922 # Broken: fails on valid input.
4923 continue
4925 rm -f conftest.err conftest.$ac_ext
4927 # OK, works on sane cases. Now check whether nonexistent headers
4928 # can be detected and how.
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4931 #include <ac_nonexistent.h>
4932 _ACEOF
4933 if ac_fn_c_try_cpp "$LINENO"; then :
4934 # Broken: success on invalid input.
4935 continue
4936 else
4937 # Passes both tests.
4938 ac_preproc_ok=:
4939 break
4941 rm -f conftest.err conftest.$ac_ext
4943 done
4944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4945 rm -f conftest.err conftest.$ac_ext
4946 if $ac_preproc_ok; then :
4947 break
4950 done
4951 ac_cv_prog_CPP=$CPP
4954 CPP=$ac_cv_prog_CPP
4955 else
4956 ac_cv_prog_CPP=$CPP
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4959 $as_echo "$CPP" >&6; }
4960 ac_preproc_ok=false
4961 for ac_c_preproc_warn_flag in '' yes
4963 # Use a header file that comes with gcc, so configuring glibc
4964 # with a fresh cross-compiler works.
4965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4966 # <limits.h> exists even on freestanding compilers.
4967 # On the NeXT, cc -E runs the code through the compiler's parser,
4968 # not just through cpp. "Syntax error" is here to catch this case.
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971 #ifdef __STDC__
4972 # include <limits.h>
4973 #else
4974 # include <assert.h>
4975 #endif
4976 Syntax error
4977 _ACEOF
4978 if ac_fn_c_try_cpp "$LINENO"; then :
4980 else
4981 # Broken: fails on valid input.
4982 continue
4984 rm -f conftest.err conftest.$ac_ext
4986 # OK, works on sane cases. Now check whether nonexistent headers
4987 # can be detected and how.
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990 #include <ac_nonexistent.h>
4991 _ACEOF
4992 if ac_fn_c_try_cpp "$LINENO"; then :
4993 # Broken: success on invalid input.
4994 continue
4995 else
4996 # Passes both tests.
4997 ac_preproc_ok=:
4998 break
5000 rm -f conftest.err conftest.$ac_ext
5002 done
5003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5004 rm -f conftest.err conftest.$ac_ext
5005 if $ac_preproc_ok; then :
5007 else
5008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5010 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5011 See \`config.log' for more details." "$LINENO" 5; }
5014 ac_ext=c
5015 ac_cpp='$CPP $CPPFLAGS'
5016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020 ac_build_prefix=
5021 test -n "$build_alias" && ac_build_prefix=$build_alias-
5023 if test "$cross_compiling" = yes; then :
5025 # Even if we're cross-compiling, we want a compiler here
5026 # that is not a cross-compiler.
5027 saved_cross=$cross_compiling
5028 cross_compiling=no
5030 ac_ext=c
5031 ac_cpp='$CPP $BUILD_CPPFLAGS'
5032 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5033 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5035 if test -n "$ac_build_prefix"; then
5036 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5037 set dummy ${ac_build_prefix}gcc; ac_word=$2
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039 $as_echo_n "checking for $ac_word... " >&6; }
5040 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 if test -n "$BUILD_CC"; then
5044 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5057 done
5058 done
5059 IFS=$as_save_IFS
5063 BUILD_CC=$ac_cv_prog_BUILD_CC
5064 if test -n "$BUILD_CC"; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5066 $as_echo "$BUILD_CC" >&6; }
5067 else
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5074 if test -z "$ac_cv_prog_BUILD_CC"; then
5075 ac_ct_BUILD_CC=$BUILD_CC
5076 # Extract the first word of "gcc", so it can be a program name with args.
5077 set dummy gcc; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 if test -n "$ac_ct_BUILD_CC"; then
5084 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5085 else
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_prog_ac_ct_BUILD_CC="gcc"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5097 done
5098 done
5099 IFS=$as_save_IFS
5103 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5104 if test -n "$ac_ct_BUILD_CC"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5106 $as_echo "$ac_ct_BUILD_CC" >&6; }
5107 else
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5112 if test "x$ac_ct_BUILD_CC" = x; then
5113 BUILD_CC=""
5114 else
5115 case $cross_compiling:$ac_tool_warned in
5116 yes:)
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5119 ac_tool_warned=yes ;;
5120 esac
5121 BUILD_CC=$ac_ct_BUILD_CC
5123 else
5124 BUILD_CC="$ac_cv_prog_BUILD_CC"
5127 if test -z "$BUILD_CC"; then
5128 if test -n "$ac_build_prefix"; then
5129 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5130 set dummy ${ac_build_prefix}cc; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 if test -n "$BUILD_CC"; then
5137 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5146 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5150 done
5151 done
5152 IFS=$as_save_IFS
5156 BUILD_CC=$ac_cv_prog_BUILD_CC
5157 if test -n "$BUILD_CC"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5159 $as_echo "$BUILD_CC" >&6; }
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5167 if test -z "$ac_cv_prog_BUILD_CC"; then
5168 ac_ct_BUILD_CC=$BUILD_CC
5169 # Extract the first word of "cc", so it can be a program name with args.
5170 set dummy cc; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 if test -n "$ac_ct_BUILD_CC"; then
5177 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186 ac_cv_prog_ac_ct_BUILD_CC="cc"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5190 done
5191 done
5192 IFS=$as_save_IFS
5196 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5197 if test -n "$ac_ct_BUILD_CC"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5199 $as_echo "$ac_ct_BUILD_CC" >&6; }
5200 else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5205 if test "x$ac_ct_BUILD_CC" = x; then
5206 BUILD_CC=""
5207 else
5208 case $cross_compiling:$ac_tool_warned in
5209 yes:)
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212 ac_tool_warned=yes ;;
5213 esac
5214 BUILD_CC=$ac_ct_BUILD_CC
5216 else
5217 BUILD_CC="$ac_cv_prog_BUILD_CC"
5221 if test -z "$BUILD_CC"; then
5222 # Extract the first word of "cc", so it can be a program name with args.
5223 set dummy cc; ac_word=$2
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225 $as_echo_n "checking for $ac_word... " >&6; }
5226 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 if test -n "$BUILD_CC"; then
5230 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5231 else
5232 ac_prog_rejected=no
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5241 ac_prog_rejected=yes
5242 continue
5244 ac_cv_prog_BUILD_CC="cc"
5245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 break 2
5248 done
5249 done
5250 IFS=$as_save_IFS
5252 if test $ac_prog_rejected = yes; then
5253 # We found a bogon in the path, so make sure we never use it.
5254 set dummy $ac_cv_prog_BUILD_CC
5255 shift
5256 if test $# != 0; then
5257 # We chose a different compiler from the bogus one.
5258 # However, it has the same basename, so the bogon will be chosen
5259 # first if we set BUILD_CC to just the basename; use the full file name.
5260 shift
5261 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
5266 BUILD_CC=$ac_cv_prog_BUILD_CC
5267 if test -n "$BUILD_CC"; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5269 $as_echo "$BUILD_CC" >&6; }
5270 else
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 $as_echo "no" >&6; }
5277 if test -z "$BUILD_CC"; then
5278 if test -n "$ac_build_prefix"; then
5279 for ac_prog in cl
5281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5282 set dummy $ac_build_prefix$ac_prog; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 if test -n "$BUILD_CC"; then
5289 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5290 else
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5302 done
5303 done
5304 IFS=$as_save_IFS
5308 BUILD_CC=$ac_cv_prog_BUILD_CC
5309 if test -n "$BUILD_CC"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5311 $as_echo "$BUILD_CC" >&6; }
5312 else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5318 test -n "$BUILD_CC" && break
5319 done
5321 if test -z "$BUILD_CC"; then
5322 ac_ct_BUILD_CC=$BUILD_CC
5323 for ac_prog in cl
5325 # Extract the first word of "$ac_prog", so it can be a program name with args.
5326 set dummy $ac_prog; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 if test -n "$ac_ct_BUILD_CC"; then
5333 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5342 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 break 2
5346 done
5347 done
5348 IFS=$as_save_IFS
5352 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5353 if test -n "$ac_ct_BUILD_CC"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5355 $as_echo "$ac_ct_BUILD_CC" >&6; }
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5362 test -n "$ac_ct_BUILD_CC" && break
5363 done
5365 if test "x$ac_ct_BUILD_CC" = x; then
5366 BUILD_CC=""
5367 else
5368 case $cross_compiling:$ac_tool_warned in
5369 yes:)
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5372 ac_tool_warned=yes ;;
5373 esac
5374 BUILD_CC=$ac_ct_BUILD_CC
5381 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5383 as_fn_error "no acceptable C compiler found in \$PATH
5384 See \`config.log' for more details." "$LINENO" 5; }
5386 # Provide some information about the compiler.
5387 echo "$as_me:$LINENO:" \
5388 "checking for C compiler version" >&5
5389 ac_compiler=`set X $ac_compile; echo $2`
5390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5391 (eval $ac_compiler --version </dev/null >&5) 2>&5
5392 ac_status=$?
5393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5394 test $ac_status = 0; }
5395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5396 (eval $ac_compiler -v </dev/null >&5) 2>&5
5397 ac_status=$?
5398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5399 test $ac_status = 0; }
5400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5401 (eval $ac_compiler -V </dev/null >&5) 2>&5
5402 ac_status=$?
5403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5404 test $ac_status = 0; }
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5410 main ()
5414 return 0;
5416 _ACEOF
5417 ac_clean_files_save=$ac_clean_files
5418 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5419 # Try to create an executable without -o first, disregard a.out.
5420 # It will help us diagnose broken compilers, and finding out an intuition
5421 # of exeext.
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5423 $as_echo_n "checking whether the C compiler works... " >&6; }
5424 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5426 # The possible output files:
5427 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5429 ac_rmfiles=
5430 for ac_file in $ac_files
5432 case $ac_file in
5433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5434 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5435 esac
5436 done
5437 rm -f $ac_rmfiles
5439 if { { ac_try="$ac_link_default"
5440 case "(($ac_try" in
5441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442 *) ac_try_echo=$ac_try;;
5443 esac
5444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5445 $as_echo "$ac_try_echo"; } >&5
5446 (eval "$ac_link_default") 2>&5
5447 ac_status=$?
5448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5449 test $ac_status = 0; }; then :
5450 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5451 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5452 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5453 # so that the user can short-circuit this test for compilers unknown to
5454 # Autoconf.
5455 for ac_file in $ac_files ''
5457 test -f "$ac_file" || continue
5458 case $ac_file in
5459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5461 [ab].out )
5462 # We found the default executable, but exeext='' is most
5463 # certainly right.
5464 break;;
5465 *.* )
5466 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5467 then :; else
5468 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5470 # We set ac_cv_exeext here because the later test for it is not
5471 # safe: cross compilers may not add the suffix if given an `-o'
5472 # argument, so we may need to know it at that point already.
5473 # Even if this section looks crufty: it has the advantage of
5474 # actually working.
5475 break;;
5477 break;;
5478 esac
5479 done
5480 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5482 else
5483 ac_file=''
5485 if test -z "$ac_file"; then :
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 $as_echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5493 { as_fn_set_status 77
5494 as_fn_error "C compiler cannot create executables
5495 See \`config.log' for more details." "$LINENO" 5; }; }
5496 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5498 $as_echo "yes" >&6; }
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5501 $as_echo_n "checking for C compiler default output file name... " >&6; }
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5503 $as_echo "$ac_file" >&6; }
5504 ac_build_exeext=$ac_cv_build_exeext
5506 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5507 ac_clean_files=$ac_clean_files_save
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5509 $as_echo_n "checking for suffix of executables... " >&6; }
5510 if { { ac_try="$ac_link"
5511 case "(($ac_try" in
5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513 *) ac_try_echo=$ac_try;;
5514 esac
5515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5516 $as_echo "$ac_try_echo"; } >&5
5517 (eval "$ac_link") 2>&5
5518 ac_status=$?
5519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5520 test $ac_status = 0; }; then :
5521 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5522 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5523 # work properly (i.e., refer to `conftest.exe'), while it won't with
5524 # `rm'.
5525 for ac_file in conftest.exe conftest conftest.*; do
5526 test -f "$ac_file" || continue
5527 case $ac_file in
5528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5529 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5530 break;;
5531 * ) break;;
5532 esac
5533 done
5534 else
5535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5537 as_fn_error "cannot compute suffix of executables: cannot compile and link
5538 See \`config.log' for more details." "$LINENO" 5; }
5540 rm -f conftest conftest$ac_cv_build_exeext
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
5542 $as_echo "$ac_cv_build_exeext" >&6; }
5544 rm -f conftest.$ac_ext
5545 BUILD_EXEEXT=$ac_cv_build_exeext
5546 ac_build_exeext=$BUILD_EXEEXT
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549 #include <stdio.h>
5551 main ()
5553 FILE *f = fopen ("conftest.out", "w");
5554 return ferror (f) || fclose (f) != 0;
5557 return 0;
5559 _ACEOF
5560 ac_clean_files="$ac_clean_files conftest.out"
5561 # Check that the compiler produces executables we can run. If not, either
5562 # the compiler is broken, or we cross compile.
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5564 $as_echo_n "checking whether we are cross compiling... " >&6; }
5565 if test "$cross_compiling" != yes; then
5566 { { ac_try="$ac_link"
5567 case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5570 esac
5571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5572 $as_echo "$ac_try_echo"; } >&5
5573 (eval "$ac_link") 2>&5
5574 ac_status=$?
5575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5576 test $ac_status = 0; }
5577 if { ac_try='./conftest$ac_cv_build_exeext'
5578 { { case "(($ac_try" in
5579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580 *) ac_try_echo=$ac_try;;
5581 esac
5582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5583 $as_echo "$ac_try_echo"; } >&5
5584 (eval "$ac_try") 2>&5
5585 ac_status=$?
5586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5587 test $ac_status = 0; }; }; then
5588 cross_compiling=no
5589 else
5590 if test "$cross_compiling" = maybe; then
5591 cross_compiling=yes
5592 else
5593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5595 as_fn_error "cannot run C compiled programs.
5596 If you meant to cross compile, use \`--host'.
5597 See \`config.log' for more details." "$LINENO" 5; }
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5602 $as_echo "$cross_compiling" >&6; }
5604 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
5605 ac_clean_files=$ac_clean_files_save
5608 # Restore configuration environment
5609 cross_compiling=$saved_cross
5611 ac_ext=c
5612 ac_cpp='$CPP $CPPFLAGS'
5613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5617 else
5618 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
5620 CFLAGS="$mule_backup_CFLAGS"
5621 CXXFLAGS="$mule_backup_CXXFLAGS"
5622 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
5623 for ac_prog in gawk mawk nawk awk
5625 # Extract the first word of "$ac_prog", so it can be a program name with args.
5626 set dummy $ac_prog; ac_word=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if test "${ac_cv_prog_AWK+set}" = set; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 if test -n "$AWK"; then
5633 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5634 else
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5638 IFS=$as_save_IFS
5639 test -z "$as_dir" && as_dir=.
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642 ac_cv_prog_AWK="$ac_prog"
5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 break 2
5646 done
5647 done
5648 IFS=$as_save_IFS
5652 AWK=$ac_cv_prog_AWK
5653 if test -n "$AWK"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5655 $as_echo "$AWK" >&6; }
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5662 test -n "$AWK" && break
5663 done
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5666 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5667 if test "${ac_cv_path_GREP+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 if test -z "$GREP"; then
5671 ac_path_GREP_found=false
5672 # Loop through the user's path and test for each of PROGNAME-LIST
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_prog in grep ggrep; do
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5681 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5682 # Check for GNU ac_path_GREP and select it if it is found.
5683 # Check for GNU $ac_path_GREP
5684 case `"$ac_path_GREP" --version 2>&1` in
5685 *GNU*)
5686 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5688 ac_count=0
5689 $as_echo_n 0123456789 >"conftest.in"
5690 while :
5692 cat "conftest.in" "conftest.in" >"conftest.tmp"
5693 mv "conftest.tmp" "conftest.in"
5694 cp "conftest.in" "conftest.nl"
5695 $as_echo 'GREP' >> "conftest.nl"
5696 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5698 as_fn_arith $ac_count + 1 && ac_count=$as_val
5699 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5700 # Best one so far, save it but keep looking for a better one
5701 ac_cv_path_GREP="$ac_path_GREP"
5702 ac_path_GREP_max=$ac_count
5704 # 10*(2^10) chars as input seems more than enough
5705 test $ac_count -gt 10 && break
5706 done
5707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5708 esac
5710 $ac_path_GREP_found && break 3
5711 done
5712 done
5713 done
5714 IFS=$as_save_IFS
5715 if test -z "$ac_cv_path_GREP"; then
5716 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5718 else
5719 ac_cv_path_GREP=$GREP
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5724 $as_echo "$ac_cv_path_GREP" >&6; }
5725 GREP="$ac_cv_path_GREP"
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5729 $as_echo_n "checking for egrep... " >&6; }
5730 if test "${ac_cv_path_EGREP+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5734 then ac_cv_path_EGREP="$GREP -E"
5735 else
5736 if test -z "$EGREP"; then
5737 ac_path_EGREP_found=false
5738 # Loop through the user's path and test for each of PROGNAME-LIST
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5742 IFS=$as_save_IFS
5743 test -z "$as_dir" && as_dir=.
5744 for ac_prog in egrep; do
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5747 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5748 # Check for GNU ac_path_EGREP and select it if it is found.
5749 # Check for GNU $ac_path_EGREP
5750 case `"$ac_path_EGREP" --version 2>&1` in
5751 *GNU*)
5752 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5754 ac_count=0
5755 $as_echo_n 0123456789 >"conftest.in"
5756 while :
5758 cat "conftest.in" "conftest.in" >"conftest.tmp"
5759 mv "conftest.tmp" "conftest.in"
5760 cp "conftest.in" "conftest.nl"
5761 $as_echo 'EGREP' >> "conftest.nl"
5762 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5764 as_fn_arith $ac_count + 1 && ac_count=$as_val
5765 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5766 # Best one so far, save it but keep looking for a better one
5767 ac_cv_path_EGREP="$ac_path_EGREP"
5768 ac_path_EGREP_max=$ac_count
5770 # 10*(2^10) chars as input seems more than enough
5771 test $ac_count -gt 10 && break
5772 done
5773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5774 esac
5776 $ac_path_EGREP_found && break 3
5777 done
5778 done
5779 done
5780 IFS=$as_save_IFS
5781 if test -z "$ac_cv_path_EGREP"; then
5782 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5784 else
5785 ac_cv_path_EGREP=$EGREP
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5791 $as_echo "$ac_cv_path_EGREP" >&6; }
5792 EGREP="$ac_cv_path_EGREP"
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5796 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5797 set x ${MAKE-make}
5798 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5799 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 cat >conftest.make <<\_ACEOF
5803 SHELL = /bin/sh
5804 all:
5805 @echo '@@@%%%=$(MAKE)=@@@%%%'
5806 _ACEOF
5807 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5808 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5809 *@@@%%%=?*=@@@%%%*)
5810 eval ac_cv_prog_make_${ac_make}_set=yes;;
5812 eval ac_cv_prog_make_${ac_make}_set=no;;
5813 esac
5814 rm -f conftest.make
5816 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5818 $as_echo "yes" >&6; }
5819 SET_MAKE=
5820 else
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5823 SET_MAKE="MAKE=${MAKE-make}"
5827 for ac_prog in flex lex
5829 # Extract the first word of "$ac_prog", so it can be a program name with args.
5830 set dummy $ac_prog; ac_word=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if test "${ac_cv_prog_LEX+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
5835 else
5836 if test -n "$LEX"; then
5837 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5838 else
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5842 IFS=$as_save_IFS
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_prog_LEX="$ac_prog"
5847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848 break 2
5850 done
5851 done
5852 IFS=$as_save_IFS
5856 LEX=$ac_cv_prog_LEX
5857 if test -n "$LEX"; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5859 $as_echo "$LEX" >&6; }
5860 else
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5866 test -n "$LEX" && break
5867 done
5868 test -n "$LEX" || LEX=":"
5870 if test "x$LEX" != "x:"; then
5871 cat >conftest.l <<_ACEOF
5873 a { ECHO; }
5874 b { REJECT; }
5875 c { yymore (); }
5876 d { yyless (1); }
5877 e { yyless (input () != 0); }
5878 f { unput (yytext[0]); }
5879 . { BEGIN INITIAL; }
5881 #ifdef YYTEXT_POINTER
5882 extern char *yytext;
5883 #endif
5885 main (void)
5887 return ! yylex () + ! yywrap ();
5889 _ACEOF
5890 { { ac_try="$LEX conftest.l"
5891 case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894 esac
5895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5896 $as_echo "$ac_try_echo"; } >&5
5897 (eval "$LEX conftest.l") 2>&5
5898 ac_status=$?
5899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5900 test $ac_status = 0; }
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5902 $as_echo_n "checking lex output file root... " >&6; }
5903 if test "${ac_cv_prog_lex_root+set}" = set; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5907 if test -f lex.yy.c; then
5908 ac_cv_prog_lex_root=lex.yy
5909 elif test -f lexyy.c; then
5910 ac_cv_prog_lex_root=lexyy
5911 else
5912 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5916 $as_echo "$ac_cv_prog_lex_root" >&6; }
5917 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5919 if test -z "${LEXLIB+set}"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5921 $as_echo_n "checking lex library... " >&6; }
5922 if test "${ac_cv_lib_lex+set}" = set; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5926 ac_save_LIBS=$LIBS
5927 ac_cv_lib_lex='none needed'
5928 for ac_lib in '' -lfl -ll; do
5929 LIBS="$ac_lib $ac_save_LIBS"
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5932 `cat $LEX_OUTPUT_ROOT.c`
5933 _ACEOF
5934 if ac_fn_c_try_link "$LINENO"; then :
5935 ac_cv_lib_lex=$ac_lib
5937 rm -f core conftest.err conftest.$ac_objext \
5938 conftest$ac_exeext conftest.$ac_ext
5939 test "$ac_cv_lib_lex" != 'none needed' && break
5940 done
5941 LIBS=$ac_save_LIBS
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5945 $as_echo "$ac_cv_lib_lex" >&6; }
5946 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5951 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5952 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 # POSIX says lex can declare yytext either as a pointer or an array; the
5956 # default is implementation-dependent. Figure out which it is, since
5957 # not all implementations provide the %pointer and %array declarations.
5958 ac_cv_prog_lex_yytext_pointer=no
5959 ac_save_LIBS=$LIBS
5960 LIBS="$LEXLIB $ac_save_LIBS"
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5963 #define YYTEXT_POINTER 1
5964 `cat $LEX_OUTPUT_ROOT.c`
5965 _ACEOF
5966 if ac_fn_c_try_link "$LINENO"; then :
5967 ac_cv_prog_lex_yytext_pointer=yes
5969 rm -f core conftest.err conftest.$ac_objext \
5970 conftest$ac_exeext conftest.$ac_ext
5971 LIBS=$ac_save_LIBS
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5975 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5976 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5978 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5981 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5985 if test -n "$ac_tool_prefix"; then
5986 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5987 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5989 $as_echo_n "checking for $ac_word... " >&6; }
5990 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5993 if test -n "$RANLIB"; then
5994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5995 else
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH
5999 IFS=$as_save_IFS
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6003 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6005 break 2
6007 done
6008 done
6009 IFS=$as_save_IFS
6013 RANLIB=$ac_cv_prog_RANLIB
6014 if test -n "$RANLIB"; then
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6016 $as_echo "$RANLIB" >&6; }
6017 else
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019 $as_echo "no" >&6; }
6024 if test -z "$ac_cv_prog_RANLIB"; then
6025 ac_ct_RANLIB=$RANLIB
6026 # Extract the first word of "ranlib", so it can be a program name with args.
6027 set dummy ranlib; ac_word=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6031 $as_echo_n "(cached) " >&6
6032 else
6033 if test -n "$ac_ct_RANLIB"; then
6034 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6043 ac_cv_prog_ac_ct_RANLIB="ranlib"
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 break 2
6047 done
6048 done
6049 IFS=$as_save_IFS
6053 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6054 if test -n "$ac_ct_RANLIB"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6056 $as_echo "$ac_ct_RANLIB" >&6; }
6057 else
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059 $as_echo "no" >&6; }
6062 if test "x$ac_ct_RANLIB" = x; then
6063 RANLIB=":"
6064 else
6065 case $cross_compiling:$ac_tool_warned in
6066 yes:)
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6069 ac_tool_warned=yes ;;
6070 esac
6071 RANLIB=$ac_ct_RANLIB
6073 else
6074 RANLIB="$ac_cv_prog_RANLIB"
6077 for ac_prog in 'bison -y' byacc
6079 # Extract the first word of "$ac_prog", so it can be a program name with args.
6080 set dummy $ac_prog; ac_word=$2
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082 $as_echo_n "checking for $ac_word... " >&6; }
6083 if test "${ac_cv_prog_YACC+set}" = set; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6086 if test -n "$YACC"; then
6087 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_YACC="$ac_prog"
6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 break 2
6100 done
6101 done
6102 IFS=$as_save_IFS
6106 YACC=$ac_cv_prog_YACC
6107 if test -n "$YACC"; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6109 $as_echo "$YACC" >&6; }
6110 else
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6116 test -n "$YACC" && break
6117 done
6118 test -n "$YACC" || YACC="yacc"
6121 if test -n "$ac_tool_prefix"; then
6122 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6123 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6127 $as_echo_n "(cached) " >&6
6128 else
6129 if test -n "$RANLIB"; then
6130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6131 else
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 for as_dir in $PATH
6135 IFS=$as_save_IFS
6136 test -z "$as_dir" && as_dir=.
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6139 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 break 2
6143 done
6144 done
6145 IFS=$as_save_IFS
6149 RANLIB=$ac_cv_prog_RANLIB
6150 if test -n "$RANLIB"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6152 $as_echo "$RANLIB" >&6; }
6153 else
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6160 if test -z "$ac_cv_prog_RANLIB"; then
6161 ac_ct_RANLIB=$RANLIB
6162 # Extract the first word of "ranlib", so it can be a program name with args.
6163 set dummy ranlib; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 if test -n "$ac_ct_RANLIB"; then
6170 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6179 ac_cv_prog_ac_ct_RANLIB="ranlib"
6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 break 2
6183 done
6184 done
6185 IFS=$as_save_IFS
6189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6190 if test -n "$ac_ct_RANLIB"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6192 $as_echo "$ac_ct_RANLIB" >&6; }
6193 else
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6198 if test "x$ac_ct_RANLIB" = x; then
6199 RANLIB=""
6200 else
6201 case $cross_compiling:$ac_tool_warned in
6202 yes:)
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6205 ac_tool_warned=yes ;;
6206 esac
6207 RANLIB=$ac_ct_RANLIB
6209 else
6210 RANLIB="$ac_cv_prog_RANLIB"
6213 if test -n "$ac_tool_prefix"; then
6214 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6215 set dummy ${ac_tool_prefix}strip; ac_word=$2
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217 $as_echo_n "checking for $ac_word... " >&6; }
6218 if test "${ac_cv_prog_STRIP+set}" = set; then :
6219 $as_echo_n "(cached) " >&6
6220 else
6221 if test -n "$STRIP"; then
6222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6223 else
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 for as_dir in $PATH
6227 IFS=$as_save_IFS
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6231 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 break 2
6235 done
6236 done
6237 IFS=$as_save_IFS
6241 STRIP=$ac_cv_prog_STRIP
6242 if test -n "$STRIP"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6244 $as_echo "$STRIP" >&6; }
6245 else
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247 $as_echo "no" >&6; }
6252 if test -z "$ac_cv_prog_STRIP"; then
6253 ac_ct_STRIP=$STRIP
6254 # Extract the first word of "strip", so it can be a program name with args.
6255 set dummy strip; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 if test -n "$ac_ct_STRIP"; then
6262 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6263 else
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_prog_ac_ct_STRIP="strip"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6275 done
6276 done
6277 IFS=$as_save_IFS
6281 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6282 if test -n "$ac_ct_STRIP"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6284 $as_echo "$ac_ct_STRIP" >&6; }
6285 else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6290 if test "x$ac_ct_STRIP" = x; then
6291 STRIP=""
6292 else
6293 case $cross_compiling:$ac_tool_warned in
6294 yes:)
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6297 ac_tool_warned=yes ;;
6298 esac
6299 STRIP=$ac_ct_STRIP
6301 else
6302 STRIP="$ac_cv_prog_STRIP"
6305 if test -n "$ac_tool_prefix"; then
6306 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6307 set dummy ${ac_tool_prefix}ar; ac_word=$2
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309 $as_echo_n "checking for $ac_word... " >&6; }
6310 if test "${ac_cv_prog_AR+set}" = set; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 if test -n "$AR"; then
6314 ac_cv_prog_AR="$AR" # Let the user override the test.
6315 else
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6323 ac_cv_prog_AR="${ac_tool_prefix}ar"
6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 break 2
6327 done
6328 done
6329 IFS=$as_save_IFS
6333 AR=$ac_cv_prog_AR
6334 if test -n "$AR"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6336 $as_echo "$AR" >&6; }
6337 else
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6344 if test -z "$ac_cv_prog_AR"; then
6345 ac_ct_AR=$AR
6346 # Extract the first word of "ar", so it can be a program name with args.
6347 set dummy ar; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 if test -n "$ac_ct_AR"; then
6354 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_prog_ac_ct_AR="ar"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 break 2
6367 done
6368 done
6369 IFS=$as_save_IFS
6373 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6374 if test -n "$ac_ct_AR"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6376 $as_echo "$ac_ct_AR" >&6; }
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6382 if test "x$ac_ct_AR" = x; then
6383 AR=""
6384 else
6385 case $cross_compiling:$ac_tool_warned in
6386 yes:)
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6389 ac_tool_warned=yes ;;
6390 esac
6391 AR=$ac_ct_AR
6393 else
6394 AR="$ac_cv_prog_AR"
6397 if test -n "$ac_tool_prefix"; then
6398 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6399 set dummy ${ac_tool_prefix}ld; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if test "${ac_cv_prog_LD+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 if test -n "$LD"; then
6406 ac_cv_prog_LD="$LD" # Let the user override the test.
6407 else
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6415 ac_cv_prog_LD="${ac_tool_prefix}ld"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 break 2
6419 done
6420 done
6421 IFS=$as_save_IFS
6425 LD=$ac_cv_prog_LD
6426 if test -n "$LD"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6428 $as_echo "$LD" >&6; }
6429 else
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6436 if test -z "$ac_cv_prog_LD"; then
6437 ac_ct_LD=$LD
6438 # Extract the first word of "ld", so it can be a program name with args.
6439 set dummy ld; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 if test -n "$ac_ct_LD"; then
6446 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_prog_ac_ct_LD="ld"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6459 done
6460 done
6461 IFS=$as_save_IFS
6465 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6466 if test -n "$ac_ct_LD"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6468 $as_echo "$ac_ct_LD" >&6; }
6469 else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6474 if test "x$ac_ct_LD" = x; then
6475 LD=""
6476 else
6477 case $cross_compiling:$ac_tool_warned in
6478 yes:)
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481 ac_tool_warned=yes ;;
6482 esac
6483 LD=$ac_ct_LD
6485 else
6486 LD="$ac_cv_prog_LD"
6490 # Check whether --enable-monolithic was given.
6491 if test "${enable_monolithic+set}" = set; then :
6492 enableval=$enable_monolithic;
6495 if test ${enable_monolithic:-yes} = yes; then
6496 MONOLITHIC_TRUE=
6497 MONOLITHIC_FALSE='#'
6498 else
6499 MONOLITHIC_TRUE='#'
6500 MONOLITHIC_FALSE=
6504 # Check whether --enable-amule-daemon was given.
6505 if test "${enable_amule_daemon+set}" = set; then :
6506 enableval=$enable_amule_daemon;
6509 if test ${enable_amule_daemon:-no} = yes; then
6510 AMULE_DAEMON_TRUE=
6511 AMULE_DAEMON_FALSE='#'
6512 else
6513 AMULE_DAEMON_TRUE='#'
6514 AMULE_DAEMON_FALSE=
6518 # Check whether --enable-amulecmd was given.
6519 if test "${enable_amulecmd+set}" = set; then :
6520 enableval=$enable_amulecmd;
6523 if test ${enable_amulecmd:-no} = yes; then
6524 COMPILE_CMD_TRUE=
6525 COMPILE_CMD_FALSE='#'
6526 else
6527 COMPILE_CMD_TRUE='#'
6528 COMPILE_CMD_FALSE=
6532 # Check whether --enable-webserver was given.
6533 if test "${enable_webserver+set}" = set; then :
6534 enableval=$enable_webserver;
6537 if test ${enable_webserver:-no} = yes; then
6538 WEB_TRUE=
6539 WEB_FALSE='#'
6540 else
6541 WEB_TRUE='#'
6542 WEB_FALSE=
6546 # Check whether --enable-amule-gui was given.
6547 if test "${enable_amule_gui+set}" = set; then :
6548 enableval=$enable_amule_gui;
6551 if test ${enable_amule_gui:-no} = yes; then
6552 AMULE_GUI_TRUE=
6553 AMULE_GUI_FALSE='#'
6554 else
6555 AMULE_GUI_TRUE='#'
6556 AMULE_GUI_FALSE=
6560 # Check whether --enable-cas was given.
6561 if test "${enable_cas+set}" = set; then :
6562 enableval=$enable_cas;
6565 if test ${enable_cas:-no} = yes; then
6566 CAS_TRUE=
6567 CAS_FALSE='#'
6568 else
6569 CAS_TRUE='#'
6570 CAS_FALSE=
6574 # Check whether --enable-wxcas was given.
6575 if test "${enable_wxcas+set}" = set; then :
6576 enableval=$enable_wxcas;
6579 if test ${enable_wxcas:-no} = yes; then
6580 WXCAS_TRUE=
6581 WXCAS_FALSE='#'
6582 else
6583 WXCAS_TRUE='#'
6584 WXCAS_FALSE=
6588 # Check whether --enable-ed2k was given.
6589 if test "${enable_ed2k+set}" = set; then :
6590 enableval=$enable_ed2k;
6593 if test ${enable_ed2k:-yes} = yes; then
6594 ED2K_TRUE=
6595 ED2K_FALSE='#'
6596 else
6597 ED2K_TRUE='#'
6598 ED2K_FALSE=
6602 # Check whether --enable-alc was given.
6603 if test "${enable_alc+set}" = set; then :
6604 enableval=$enable_alc;
6607 if test ${enable_alc:-no} = yes; then
6608 ALC_TRUE=
6609 ALC_FALSE='#'
6610 else
6611 ALC_TRUE='#'
6612 ALC_FALSE=
6616 # Check whether --enable-alcc was given.
6617 if test "${enable_alcc+set}" = set; then :
6618 enableval=$enable_alcc;
6621 if test ${enable_alcc:-no} = yes; then
6622 ALCC_TRUE=
6623 ALCC_FALSE='#'
6624 else
6625 ALCC_TRUE='#'
6626 ALCC_FALSE=
6630 # Check whether --enable-xas was given.
6631 if test "${enable_xas+set}" = set; then :
6632 enableval=$enable_xas;
6635 if test ${enable_xas:-no} = yes; then
6636 XAS_TRUE=
6637 XAS_FALSE='#'
6638 else
6639 XAS_TRUE='#'
6640 XAS_FALSE=
6644 # Check whether --enable-fileview was given.
6645 if test "${enable_fileview+set}" = set; then :
6646 enableval=$enable_fileview;
6649 if test ${enable_fileview:-no} = yes; then
6650 FILEVIEW_TRUE=
6651 FILEVIEW_FALSE='#'
6652 else
6653 FILEVIEW_TRUE='#'
6654 FILEVIEW_FALSE=
6658 # Check whether --enable-plasmamule was given.
6659 if test "${enable_plasmamule+set}" = set; then :
6660 enableval=$enable_plasmamule;
6665 # Run all the tests with static linkage if we want a statically linked binary
6666 # Check whether --enable-static was given.
6667 if test "${enable_static+set}" = set; then :
6668 enableval=$enable_static;
6672 if test ${enable_static:-no} = yes; then :
6673 LDFLAGS="$LDFLAGS -static"
6678 # Check whether --with-kde4-config was given.
6679 if test "${with_kde4_config+set}" = set; then :
6680 withval=$with_kde4_config; KDE4_CONFIG=$withval
6681 else
6682 KDE4_CONFIG=""
6685 # Check whether --enable-kde-in-home was given.
6686 if test "${enable_kde_in_home+set}" = set; then :
6687 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
6688 else
6689 KDE_IN_HOME=no
6695 # Check whether --with-moc was given.
6696 if test "${with_moc+set}" = set; then :
6697 withval=$with_moc; QT_MOC=$withval
6698 else
6699 QT_MOC=""
6704 # Default is yes, because they're most likely compatible.
6705 # However, this is only used when cross-compiling.
6707 # Check whether --with-gnu-malloc was given.
6708 if test "${with_gnu_malloc+set}" = set; then :
6709 withval=$with_gnu_malloc; gnumalloc=$withval
6710 else
6711 gnumalloc=yes
6716 # Checking for libs before all other stuff to break
6717 # configure as soon as possible in case of a missing one
6718 # to avoid losing too much time
6720 # Check for zlib
6721 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 :
6724 # Check whether --with-zlib was given.
6725 if test "${with_zlib+set}" = set; then :
6726 withval=$with_zlib;
6730 case "${with_zlib:-yes}" in
6732 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
6734 yes | sys)
6737 zlib_prefix="$with_zlib"
6738 esac
6740 mule_backup_CPPFLAGS="$CPPFLAGS"
6741 mule_backup_LDFLAGS="$LDFLAGS"
6742 mule_backup_LIBS="$LIBS"
6743 if test -n "$zlib_prefix"; then :
6745 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
6746 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
6747 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
6748 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
6750 else
6752 ZLIB_CPPFLAGS=
6753 ZLIB_LDFLAGS=
6756 ZLIB_LIBS="-lz"
6757 LIBS="$ZLIB_LIBS $LIBS"
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
6760 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
6761 if test "$cross_compiling" = yes; then :
6763 result=no
6764 z_version=
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6769 #include <zlib.h>
6770 #include <stdio.h>
6773 main ()
6776 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
6777 zlibVersion();
6780 return 0;
6783 _ACEOF
6784 if ac_fn_c_try_link "$LINENO"; then :
6786 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
6787 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
6788 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
6789 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
6790 if test "$cross_zver_max" -gt "1"; then
6791 result=yes
6792 elif test "$cross_zver_max" -eq "1"; then
6794 if test "$cross_zver_mid" -gt "1"; then
6795 result=yes
6796 elif test "$cross_zver_mid" -eq "1"; then
6797 if test "$cross_zver_min" -ge "4"; then
6798 result=yes
6806 if test ${result:-no} = yes; then :
6807 z_version=" (version $ZLIB_VERSION)"
6811 rm -f core conftest.err conftest.$ac_objext \
6812 conftest$ac_exeext conftest.$ac_ext
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
6814 $as_echo "$result$z_version" >&6; }
6816 else
6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h. */
6821 #include <zlib.h>
6822 #include <stdio.h>
6825 main ()
6827 char *zver = zlibVersion();
6828 FILE *f=fopen("conftestval", "w");
6829 if (!f) return 1;
6830 fprintf(f, "%s",
6831 zver[0] > '1' ||
6832 (zver[0] == '1' &&
6833 (zver[2] > '1' ||
6834 (zver[2] == '1' &&
6835 zver[4] >= '4'))) ? "yes" : "no");
6836 fclose(f);
6837 f=fopen("conftestver", "w");
6838 if (f) {
6839 fprintf(f, "%s", ZLIB_VERSION);
6840 fclose(f);
6844 return 0;
6847 _ACEOF
6848 if ac_fn_c_try_run "$LINENO"; then :
6850 if test -f conftestval; then :
6851 result=`cat conftestval`
6852 else
6853 result=no
6855 if test ${result:-no} = yes; then :
6857 if test -f conftestver; then :
6859 ZLIB_VERSION=`cat conftestver`
6860 z_version=" (version $ZLIB_VERSION)"
6862 else
6863 z_version=
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
6868 $as_echo "$result$z_version" >&6; }
6870 else
6872 result=no
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6874 $as_echo "$result" >&6; }
6877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6878 conftest.$ac_objext conftest.beam conftest.$ac_ext
6882 CPPFLAGS="$mule_backup_CPPFLAGS"
6883 LDFLAGS="$mule_backup_LDFLAGS"
6884 LIBS="$mule_backup_LIBS"
6886 if test ${result:-no} = no; then :
6888 ZLIB_CPPFLAGS=
6889 ZLIB_LDFLAGS=
6890 ZLIB_LIBS=
6891 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6900 $as_echo_n "checking for ANSI C header files... " >&6; }
6901 if test "${ac_cv_header_stdc+set}" = set; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6906 #include <stdlib.h>
6907 #include <stdarg.h>
6908 #include <string.h>
6909 #include <float.h>
6912 main ()
6916 return 0;
6918 _ACEOF
6919 if ac_fn_c_try_compile "$LINENO"; then :
6920 ac_cv_header_stdc=yes
6921 else
6922 ac_cv_header_stdc=no
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6926 if test $ac_cv_header_stdc = yes; then
6927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6930 #include <string.h>
6932 _ACEOF
6933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6934 $EGREP "memchr" >/dev/null 2>&1; then :
6936 else
6937 ac_cv_header_stdc=no
6939 rm -f conftest*
6943 if test $ac_cv_header_stdc = yes; then
6944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6947 #include <stdlib.h>
6949 _ACEOF
6950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6951 $EGREP "free" >/dev/null 2>&1; then :
6953 else
6954 ac_cv_header_stdc=no
6956 rm -f conftest*
6960 if test $ac_cv_header_stdc = yes; then
6961 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6962 if test "$cross_compiling" = yes; then :
6964 else
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6967 #include <ctype.h>
6968 #include <stdlib.h>
6969 #if ((' ' & 0x0FF) == 0x020)
6970 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6971 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6972 #else
6973 # define ISLOWER(c) \
6974 (('a' <= (c) && (c) <= 'i') \
6975 || ('j' <= (c) && (c) <= 'r') \
6976 || ('s' <= (c) && (c) <= 'z'))
6977 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6978 #endif
6980 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6982 main ()
6984 int i;
6985 for (i = 0; i < 256; i++)
6986 if (XOR (islower (i), ISLOWER (i))
6987 || toupper (i) != TOUPPER (i))
6988 return 2;
6989 return 0;
6991 _ACEOF
6992 if ac_fn_c_try_run "$LINENO"; then :
6994 else
6995 ac_cv_header_stdc=no
6997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6998 conftest.$ac_objext conftest.beam conftest.$ac_ext
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7004 $as_echo "$ac_cv_header_stdc" >&6; }
7005 if test $ac_cv_header_stdc = yes; then
7007 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7013 inttypes.h stdint.h unistd.h
7014 do :
7015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7016 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7018 eval as_val=\$$as_ac_Header
7019 if test "x$as_val" = x""yes; then :
7020 cat >>confdefs.h <<_ACEOF
7021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7022 _ACEOF
7026 done
7029 if test ${enable_cas:-no} = yes; then :
7031 # Check for gd
7034 # Check whether --with-gdlib-prefix was given.
7035 if test "${with_gdlib_prefix+set}" = set; then :
7036 withval=$with_gdlib_prefix;
7040 # Check whether --with-gdlib-config was given.
7041 if test "${with_gdlib_config+set}" = set; then :
7042 withval=$with_gdlib_config;
7046 GDLIB_VERSION=
7048 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7049 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7050 GDLIB_CONFIG_NAME=gdlib-config
7052 if test -n "$with_gdlib_config"; then :
7053 GDLIB_CONFIG_NAME="$with_gdlib_config"
7056 # deal with optional prefix
7057 if test -n "$with_gdlib_prefix"; then :
7058 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7061 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7062 if test -x "$GDLIB_CONFIG_NAME"; then :
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7065 $as_echo_n "checking for gdlib-config... " >&6; }
7066 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7068 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7070 else
7071 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7072 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7078 case $GDLIB_CONFIG_PATH in
7079 [\\/]* | ?:[\\/]*)
7080 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7085 for as_dir in $as_dummy
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 break 2
7095 done
7096 done
7097 IFS=$as_save_IFS
7099 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7101 esac
7103 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7104 if test -n "$GDLIB_CONFIG_PATH"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7106 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7107 else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7115 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7118 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7119 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7121 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7122 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7123 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7124 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7126 gdlib_ver_ok=
7127 if test $gdlib_config_major_version -gt 2; then
7128 gdlib_ver_ok=yes
7129 elif test $gdlib_config_major_version -eq 2; then
7131 if test $gdlib_config_minor_version -gt 0; then
7132 gdlib_ver_ok=yes
7133 elif test $gdlib_config_minor_version -eq 0; then
7134 if test $gdlib_config_micro_version -ge 0; then
7135 gdlib_ver_ok=yes
7144 if test -z "$gdlib_ver_ok"; then :
7146 if test -z "$GDLIB_VERSION"; then :
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148 $as_echo "no" >&6; }
7149 else
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7152 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7153 GDLIB_VERSION=
7157 else
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7160 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7161 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7162 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7163 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7164 mule_backup_CFLAGS="$CFLAGS"
7165 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7166 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7167 if test "x$ac_cv_header_gd_h" = x""yes; then :
7169 else
7170 GDLIB_VERSION=
7174 CFLAGS="$mule_backup_CFLAGS"
7180 if test -n "$GDLIB_VERSION"; then :
7182 CAS_DEFS="-D__GD__"
7183 GDLIB_LIBS="-lgd $GDLIB_LIBS"
7185 else
7186 CAS_DEFS=
7191 if test -z "$CAS_DEFS"; then :
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7193 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7194 Please check that gdlib-config is in your default path, check out
7195 LD_LIBRARY_PATH or equivalent variable.
7196 Or this might also be that your gdlib-config has other name.
7197 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7198 (replace /usr/bin/gdlib-config with a valid path to your
7199 gdlib-config).
7200 If you use compiled packages check if you have devel pack installed.
7201 To download the latest version check http://www.boutell.com/gd for
7202 sources." >&5
7203 $as_echo "$as_me: WARNING:
7204 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7205 Please check that gdlib-config is in your default path, check out
7206 LD_LIBRARY_PATH or equivalent variable.
7207 Or this might also be that your gdlib-config has other name.
7208 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7209 (replace /usr/bin/gdlib-config with a valid path to your
7210 gdlib-config).
7211 If you use compiled packages check if you have devel pack installed.
7212 To download the latest version check http://www.boutell.com/gd for
7213 sources." >&2;}
7214 _mule_warning_0=yes
7215 _mule_has_warnings=yes
7221 if test ${enable_webserver:-no} = yes; then :
7224 # Check whether --with-libpng-prefix was given.
7225 if test "${with_libpng_prefix+set}" = set; then :
7226 withval=$with_libpng_prefix;
7230 # Check whether --with-libpng-config was given.
7231 if test "${with_libpng_config+set}" = set; then :
7232 withval=$with_libpng_config;
7236 LIBPNG_VERSION=
7238 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
7239 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
7240 LIBPNG_CONFIG_NAME=libpng-config
7242 if test -n "$with_libpng_config"; then :
7243 LIBPNG_CONFIG_NAME="$with_libpng_config"
7246 # deal with optional prefix
7247 if test -n "$with_libpng_prefix"; then :
7248 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
7251 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
7252 if test -x "$LIBPNG_CONFIG_NAME"; then :
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
7255 $as_echo_n "checking for libpng-config... " >&6; }
7256 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7258 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7260 else
7261 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
7262 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then :
7266 $as_echo_n "(cached) " >&6
7267 else
7268 case $LIBPNG_CONFIG_PATH in
7269 [\\/]* | ?:[\\/]*)
7270 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
7275 for as_dir in $as_dummy
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7281 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7285 done
7286 done
7287 IFS=$as_save_IFS
7289 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
7291 esac
7293 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
7294 if test -n "$LIBPNG_CONFIG_PATH"; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7296 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7297 else
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 $as_echo "no" >&6; }
7305 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
7308 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
7310 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
7312 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
7313 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7314 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7315 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7317 libpng_ver_ok=
7318 if test $libpng_config_major_version -gt 1; then
7319 libpng_ver_ok=yes
7320 elif test $libpng_config_major_version -eq 1; then
7322 if test $libpng_config_minor_version -gt 2; then
7323 libpng_ver_ok=yes
7324 elif test $libpng_config_minor_version -eq 2; then
7325 if test $libpng_config_micro_version -ge 0; then
7326 libpng_ver_ok=yes
7335 if test -z "$libpng_ver_ok"; then :
7337 if test -z "$LIBPNG_VERSION"; then :
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7340 else
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
7343 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
7344 LIBPNG_VERSION=
7348 else
7350 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
7351 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
7352 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
7354 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
7357 $as_echo_n "checking if libpng is usable... " >&6; }
7359 SAVED_CFLAGS=$CFLAGS
7360 SAVED_LDFLAGS=$LDFLAGS
7361 SAVED_LIBS=$LIBS
7363 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
7364 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS"
7365 LIBS="$LIBS $LIBPNG_LIBS"
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h. */
7371 #include <png.h>
7372 #include <stdio.h>
7375 main ()
7378 png_uint_32 libpng_vn = png_access_version_number();
7379 printf("\nlibpng version %i\n\n", libpng_vn);
7382 return 0;
7385 _ACEOF
7386 if ac_fn_c_try_link "$LINENO"; then :
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7389 $as_echo "yes" >&6; }
7391 else
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
7394 $as_echo "no (failed to compile and link test program)" >&6; }
7395 LIBPNG_LIBS=
7396 LIBPNG_LDFLAGS=
7397 LIBPNG_CFLAGS=
7398 LIBPNG_VERSION=
7401 rm -f core conftest.err conftest.$ac_objext \
7402 conftest$ac_exeext conftest.$ac_ext
7404 CFLAGS=$SAVED_CFLAGS
7405 LDFLAGS=$SAVED_LDFLAGS
7406 LIBS=$SAVED_LIBS
7412 if test -n "$LIBPNG_VERSION"; then :
7413 AMULEWEB_DEFS="-DWITH_LIBPNG"
7414 else
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7417 libpng >= 1.2.0 not found.
7418 amuleweb will be compiled but file download progress bar images will
7419 NOT be generated." >&5
7420 $as_echo "$as_me: WARNING:
7421 libpng >= 1.2.0 not found.
7422 amuleweb will be compiled but file download progress bar images will
7423 NOT be generated." >&2;}
7424 _mule_warning_1=yes
7425 _mule_has_warnings=yes
7435 # Check for perl File::Copy
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
7437 $as_echo_n "checking for File::Copy... " >&6; }
7438 if perl -e "require File::Copy" 2>/dev/null; then :
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7440 $as_echo "ok" >&6; }
7441 else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7443 File::Copy perl module is required by the mldonkey_importer script.
7444 If you want to use this script please install File::Copy from CPAN." >&5
7445 $as_echo "$as_me: WARNING:
7446 File::Copy perl module is required by the mldonkey_importer script.
7447 If you want to use this script please install File::Copy from CPAN." >&2;}
7448 _mule_warning_2=yes
7449 _mule_has_warnings=yes
7453 # Check if we need to install skins
7454 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
7455 INSTALL_SKINS=yes
7456 else
7457 INSTALL_SKINS=no
7460 # Check for GeoIP (required for IP2Country capability)
7461 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
7463 # Check whether --enable-geoip was given.
7464 if test "${enable_geoip+set}" = set; then :
7465 enableval=$enable_geoip;
7470 if test ${enable_geoip:-no} = yes; then :
7473 # Check whether --with-geoip-headers was given.
7474 if test "${with_geoip_headers+set}" = set; then :
7475 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
7479 # Check whether --with-geoip-lib was given.
7480 if test "${with_geoip_lib+set}" = set; then :
7481 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
7485 mule_backup_CPPFLAGS="$CPPFLAGS"
7486 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
7487 mule_backup_LDFLAGS="$LDFLAGS"
7488 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
7490 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
7491 if test "x$ac_cv_header_GeoIP_h" = x""yes; then :
7493 if test x$SYS = xwin32; then :
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
7496 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
7497 # Actually, we might not need any if GeoIP is linked as a .dll
7498 # - but that's even harder to check for
7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h. */
7503 #include <GeoIP.h>
7504 #ifdef _WINSOCK2_H
7505 I do know it's not the best approach, but at least works with MinGW stock headers.
7506 (tested with w32api-3.12)
7507 #endif
7510 main ()
7514 return 0;
7517 _ACEOF
7518 if ac_fn_c_try_compile "$LINENO"; then :
7520 GEOIP_WINSOCK_LIB="-lwsock32"
7522 else
7524 GEOIP_WINSOCK_LIB="-lws2_32"
7527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
7529 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
7533 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
7534 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 ac_check_lib_save_LIBS=$LIBS
7538 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7542 /* Override any GCC internal prototype to avoid an error.
7543 Use char because int might match the return type of a GCC
7544 builtin and then its argument prototype would still apply. */
7545 #ifdef __cplusplus
7546 extern "C"
7547 #endif
7548 char GeoIP_open ();
7550 main ()
7552 return GeoIP_open ();
7554 return 0;
7556 _ACEOF
7557 if ac_fn_c_try_link "$LINENO"; then :
7558 ac_cv_lib_GeoIP_GeoIP_open=yes
7559 else
7560 ac_cv_lib_GeoIP_GeoIP_open=no
7562 rm -f core conftest.err conftest.$ac_objext \
7563 conftest$ac_exeext conftest.$ac_ext
7564 LIBS=$ac_check_lib_save_LIBS
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7567 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
7568 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = x""yes; then :
7571 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
7573 GEOIP_LIBS="-lGeoIP"
7574 if test x$SYS = xwin32; then :
7575 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
7577 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7579 # Check whether --with-geoip-static was given.
7580 if test "${with_geoip_static+set}" = set; then :
7581 withval=$with_geoip_static;
7582 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
7584 mule_backup_LIBS="$LIBS"
7585 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7590 #include <GeoIP.h>
7593 main ()
7596 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7599 return 0;
7602 _ACEOF
7603 if ac_fn_c_try_link "$LINENO"; then :
7605 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7607 else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7610 Cannot link GeoIP statically, because your linker ($LD) does not
7611 support it." >&5
7612 $as_echo "$as_me: WARNING:
7613 Cannot link GeoIP statically, because your linker ($LD) does not
7614 support it." >&2;}
7615 _mule_warning_3=yes
7616 _mule_has_warnings=yes
7620 rm -f core conftest.err conftest.$ac_objext \
7621 conftest$ac_exeext conftest.$ac_ext
7622 LIBS="$mule_backup_LIBS"
7629 else
7631 enable_geoip=disabled
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7633 GeoIP support has been disabled because the GeoIP libraries were not
7634 found" >&5
7635 $as_echo "$as_me: WARNING:
7636 GeoIP support has been disabled because the GeoIP libraries were not
7637 found" >&2;}
7638 _mule_warning_4=yes
7639 _mule_has_warnings=yes
7645 else
7647 enable_geoip=disabled
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7649 GeoIP support has been disabled because the GeoIP header files were
7650 not found" >&5
7651 $as_echo "$as_me: WARNING:
7652 GeoIP support has been disabled because the GeoIP header files were
7653 not found" >&2;}
7654 _mule_warning_5=yes
7655 _mule_has_warnings=yes
7662 CPPFLAGS="$mule_backup_CPPFLAGS"
7663 LDFLAGS="$mule_backup_LDFLAGS"
7669 # Check for wx
7670 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 :
7673 # Check whether --with-wxdir was given.
7674 if test "${with_wxdir+set}" = set; then :
7675 withval=$with_wxdir; wx_config_name="$withval/wx-config"
7676 wx_config_args="--inplace"
7680 # Check whether --with-wx-config was given.
7681 if test "${with_wx_config+set}" = set; then :
7682 withval=$with_wx_config; wx_config_name="$withval"
7686 # Check whether --with-wx-prefix was given.
7687 if test "${with_wx_prefix+set}" = set; then :
7688 withval=$with_wx_prefix; wx_config_prefix="$withval"
7689 else
7690 wx_config_prefix=""
7694 # Check whether --with-wx-exec-prefix was given.
7695 if test "${with_wx_exec_prefix+set}" = set; then :
7696 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
7697 else
7698 wx_config_exec_prefix=""
7713 # Check whether --with-toolkit was given.
7714 if test "${with_toolkit+set}" = set; then :
7715 withval=$with_toolkit;
7716 else
7717 withval="auto"
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
7722 $as_echo_n "checking for the --with-toolkit option... " >&6; }
7723 if test "$withval" = "auto" ; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7725 $as_echo "will be automatically detected" >&6; }
7726 TOOLKIT="auto"
7727 else
7728 TOOLKIT="$withval"
7730 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7731 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7732 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7733 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7734 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
7735 "$TOOLKIT" != "osx_cocoa"; then
7736 as_fn_error "
7737 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7738 " "$LINENO" 5
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
7742 $as_echo "$TOOLKIT" >&6; }
7749 # Check whether --with-wxshared was given.
7750 if test "${with_wxshared+set}" = set; then :
7751 withval=$with_wxshared;
7752 else
7753 withval="auto"
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
7758 $as_echo_n "checking for the --with-wxshared option... " >&6; }
7759 if test "$withval" = "yes" ; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7761 $as_echo "yes" >&6; }
7762 WX_SHARED=1
7764 elif test "1" = "1" -a "$withval" = "no" ; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7767 WX_SHARED=0
7768 elif test "$withval" = "auto" ; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7770 $as_echo "will be automatically detected" >&6; }
7771 WX_SHARED="auto"
7772 else
7773 as_fn_error "
7774 Unrecognized option value (allowed values: yes, auto)
7775 " "$LINENO" 5
7782 # Check whether --with-wxdebug was given.
7783 if test "${with_wxdebug+set}" = set; then :
7784 withval=$with_wxdebug;
7785 else
7786 withval="auto"
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
7791 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
7792 if test "$withval" = "yes" ; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7794 $as_echo "yes" >&6; }
7795 WX_DEBUG=1
7797 elif test "1" = "1" -a "$withval" = "no" ; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7800 WX_DEBUG=0
7801 elif test "$withval" = "auto" ; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7803 $as_echo "will be automatically detected" >&6; }
7804 WX_DEBUG="auto"
7805 else
7806 as_fn_error "
7807 Unrecognized option value (allowed values: yes, auto)
7808 " "$LINENO" 5
7815 # Check whether --with-wxversion was given.
7816 if test "${with_wxversion+set}" = set; then :
7817 withval=$with_wxversion;
7818 else
7819 withval="auto"
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
7824 $as_echo_n "checking for the --with-wxversion option... " >&6; }
7825 if test "$withval" = "auto" ; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7827 $as_echo "will be automatically detected" >&6; }
7828 WX_VERSION="auto"
7829 else
7831 wx_requested_major_version=`echo $withval | \
7832 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7833 wx_requested_minor_version=`echo $withval | \
7834 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7836 if test "${#wx_requested_major_version}" != "1" -o \
7837 "${#wx_requested_minor_version}" != "1" ; then
7838 as_fn_error "
7839 Unrecognized option value (allowed values: auto, 2.8, 2.9)
7840 " "$LINENO" 5
7843 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_VERSION" >&5
7845 $as_echo "$WX_VERSION" >&6; }
7849 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7850 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7851 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7852 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7853 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7854 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7857 # Force using a static wxWidgets library if the executable is to be linked statically.
7858 if test ${enable_static:-no} = yes; then :
7859 WX_SHARED=0
7861 # Force using a unicode build of the library
7862 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 :
7863 WX_UNICODE=1
7865 DEBUG=$WX_DEBUG
7867 if test "$WX_SHARED" = "1" ; then
7868 WXCONFIG_FLAGS="--static=no "
7869 elif test "$WX_SHARED" = "0" ; then
7870 WXCONFIG_FLAGS="--static=yes "
7873 if test "$WX_DEBUG" = "1" ; then
7874 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7875 elif test "$WX_DEBUG" = "0" ; then
7876 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7879 if test "$WX_UNICODE" = "1" ; then
7880 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7881 elif test "$WX_UNICODE" = "0" ; then
7882 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7885 if test "$TOOLKIT" != "auto" ; then
7886 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7889 if test "$WX_VERSION" != "auto" ; then
7890 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7893 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7895 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7896 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7900 if test x${WX_CONFIG_NAME+set} != xset ; then
7901 WX_CONFIG_NAME=wx-config
7904 if test "x$wx_config_name" != x ; then
7905 WX_CONFIG_NAME="$wx_config_name"
7908 if test x$wx_config_exec_prefix != x ; then
7909 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7910 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7912 if test x$wx_config_prefix != x ; then
7913 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7914 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7916 if test "$cross_compiling" = "yes"; then
7917 wx_config_args="$wx_config_args --host=$host_alias"
7920 if test -x "$WX_CONFIG_NAME" ; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
7922 $as_echo_n "checking for wx-config... " >&6; }
7923 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
7925 $as_echo "$WX_CONFIG_PATH" >&6; }
7926 else
7927 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7928 set dummy $WX_CONFIG_NAME; ac_word=$2
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 $as_echo_n "checking for $ac_word... " >&6; }
7931 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then :
7932 $as_echo_n "(cached) " >&6
7933 else
7934 case $WX_CONFIG_PATH in
7935 [\\/]* | ?:[\\/]*)
7936 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7941 for as_dir in $as_dummy
7943 IFS=$as_save_IFS
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7947 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 break 2
7951 done
7952 done
7953 IFS=$as_save_IFS
7955 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7957 esac
7959 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7960 if test -n "$WX_CONFIG_PATH"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
7962 $as_echo "$WX_CONFIG_PATH" >&6; }
7963 else
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7971 if test "$WX_CONFIG_PATH" != "no" ; then
7972 WX_VERSION_FULL=""
7974 min_wx_version=2.8.12
7975 if test -z "$WXCONFIG_FLAGS" ; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
7977 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
7978 else
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7980 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
7983 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7985 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7986 wx_config_major_version=`echo $WX_VERSION_FULL | \
7987 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7988 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7989 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7990 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7991 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7993 wx_requested_major_version=`echo $min_wx_version | \
7994 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7995 wx_requested_minor_version=`echo $min_wx_version | \
7996 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7997 wx_requested_micro_version=`echo $min_wx_version | \
7998 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8001 wx_ver_ok=""
8002 if test "x$WX_VERSION_FULL" != x ; then
8003 if test $wx_config_major_version -gt $wx_requested_major_version; then
8004 wx_ver_ok=yes
8005 else
8006 if test $wx_config_major_version -eq $wx_requested_major_version; then
8007 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
8008 wx_ver_ok=yes
8009 else
8010 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
8011 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
8012 wx_ver_ok=yes
8021 if test -n "$wx_ver_ok"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION_FULL)" >&5
8024 $as_echo "yes (version $WX_VERSION_FULL)" >&6; }
8025 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
8027 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
8029 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
8030 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
8031 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
8033 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
8034 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
8036 wxWin=1
8038 else
8040 if test "x$WX_VERSION_FULL" = x; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8043 else
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION_FULL is not new enough)" >&5
8045 $as_echo "no (version $WX_VERSION_FULL is not new enough)" >&6; }
8048 WX_CFLAGS=""
8049 WX_CPPFLAGS=""
8050 WX_CXXFLAGS=""
8051 WX_LIBS=""
8052 WX_RESCOMP=""
8054 if test ! -z "$WXCONFIG_FLAGS"; then
8056 wx_error_message="
8057 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
8058 build with the following settings:
8059 $WXCONFIG_FLAGS
8060 but such build is not available.
8062 To see the wxWidgets builds available on this system, please use
8063 'wx-config --list' command. To use the default build, returned by
8064 'wx-config --selected-config', use the options with their 'auto'
8065 default values."
8069 wx_error_message="
8070 The requested wxWidgets build couldn't be found.
8071 $wx_error_message
8073 If you still get this error, then check that 'wx-config' is
8074 in path, the directory where wxWidgets libraries are installed
8075 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8076 or equivalent variable and wxWidgets version is 2.8.12 or above."
8078 as_fn_error "$wx_error_message" "$LINENO" 5
8081 else
8083 WX_CFLAGS=""
8084 WX_CPPFLAGS=""
8085 WX_CXXFLAGS=""
8086 WX_LIBS=""
8087 WX_RESCOMP=""
8102 WX_VERSION_MAJOR="$wx_config_major_version"
8103 WX_VERSION_MINOR="$wx_config_minor_version"
8107 if test "$wxWin" != 1; then :
8108 as_fn_error "
8109 wxWidgets must be installed on your system but wx-config
8110 script couldn't be found. Please check that wx-config is
8111 in path or specified by --with-wx-config=path flag, the
8112 directory where wxWidgets libraries are installed (returned
8113 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8114 equivalent variable and wxWidgets version is 2.8.12 or above.
8115 " "$LINENO" 5
8118 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8119 as_fn_error "
8120 This version of wxWidgets is known to not work with aMule.
8121 Please upgrade to a newer version.
8122 " "$LINENO" 5
8126 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8128 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8130 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8131 echo "[dbg] Using wx-config --selected-config"
8132 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8136 if test $WX_SHARED = "1"; then
8137 STATIC=0
8138 elif test $WX_SHARED = "0"; then
8139 STATIC=1
8140 elif test $WX_SHARED = "auto"; then
8141 STATIC="auto"
8145 if test "$UNICODE" = "auto" ; then
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8148 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8150 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8152 if test "$WX_UNICODE" != "0"; then
8153 WX_UNICODE=1
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8155 $as_echo "yes" >&6; }
8157 else
8158 WX_UNICODE=0
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8163 else
8165 WX_UNICODE=$UNICODE
8169 if test "$DEBUG" = "auto" ; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
8172 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
8174 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
8176 if test "$WX_DEBUG" != "0"; then
8177 WX_DEBUG=1
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8179 $as_echo "yes" >&6; }
8181 else
8182 WX_DEBUG=0
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8187 else
8189 WX_DEBUG=$DEBUG
8193 if test "$STATIC" = "auto" ; then
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
8196 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
8198 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
8200 if test "$WX_STATIC" != "0"; then
8201 WX_STATIC=1
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8203 $as_echo "yes" >&6; }
8205 else
8206 WX_STATIC=0
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8211 else
8213 WX_STATIC=$STATIC
8217 if test "$WX_STATIC" != "0"; then
8218 WX_SHARED=0
8219 else
8220 WX_SHARED=1
8227 if test "$TOOLKIT" = "auto" ; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
8230 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
8232 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
8233 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
8234 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
8235 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
8236 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
8237 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
8238 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
8239 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
8240 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
8241 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
8242 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
8244 WX_PORT="unknown"
8245 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
8246 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
8247 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
8248 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
8249 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
8250 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
8251 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
8252 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
8253 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
8254 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
8255 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
8258 if test "$WX_PORT" = "unknown" ; then
8259 as_fn_error "
8260 Cannot detect the currently installed wxWidgets port !
8261 Please check your 'wx-config --cxxflags'...
8262 " "$LINENO" 5
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
8266 $as_echo "$WX_PORT" >&6; }
8267 else
8269 if test -n "$TOOLKIT" ; then
8270 WX_PORT=$TOOLKIT
8271 else
8272 WX_PORT=$PORT
8278 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8279 echo "[dbg] Values of all WX_* options after final detection:"
8280 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8281 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8282 echo "[dbg] WX_SHARED: $WX_SHARED"
8283 echo "[dbg] WX_VERSION: $WX_VERSION"
8284 echo "[dbg] WX_PORT: $WX_PORT"
8287 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8288 as_fn_error "
8289 Cannot build shared library against a static build of wxWidgets !
8290 This error happens because the wxWidgets build which was selected
8291 has been detected as static while you asked to build $PACKAGE_NAME
8292 as shared library and this is not possible.
8293 Use the '--disable-shared' option to build $PACKAGE_NAME
8294 as static library or '--with-wxshared' to use wxWidgets as shared library.
8295 " "$LINENO" 5
8298 if test "$DEBUG" = "auto"; then
8299 DEBUG=$WX_DEBUG
8301 if test "$DEBUG" = "1"; then
8302 BUILD="debug"
8303 elif test "$DEBUG" = ""; then
8304 BUILD="release"
8307 if test "$UNICODE" = "auto"; then
8308 UNICODE=$WX_UNICODE
8310 if test "$SHARED" = "auto"; then
8311 SHARED=$WX_SHARED
8313 if test "$TOOLKIT" = "auto"; then
8314 TOOLKIT=$WX_PORT
8318 # We also need wxBase
8319 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8320 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
8321 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8323 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8327 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
8328 if test "${WX_PORT}" = base; then :
8329 as_fn_error "
8330 The selected components need a wxWidgets library with GUI,
8331 but your installation is base-only. Please install a GUI
8332 enabled version of wxWidgets and then retry.
8333 " "$LINENO" 5
8338 if test ${SYS:-unknown} = win32; then :
8339 if test -n "$ac_tool_prefix"; then
8340 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8341 set dummy ${ac_tool_prefix}windres; ac_word=$2
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343 $as_echo_n "checking for $ac_word... " >&6; }
8344 if test "${ac_cv_prog_RC+set}" = set; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 if test -n "$RC"; then
8348 ac_cv_prog_RC="$RC" # Let the user override the test.
8349 else
8350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 for as_dir in $PATH
8353 IFS=$as_save_IFS
8354 test -z "$as_dir" && as_dir=.
8355 for ac_exec_ext in '' $ac_executable_extensions; do
8356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8357 ac_cv_prog_RC="${ac_tool_prefix}windres"
8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8359 break 2
8361 done
8362 done
8363 IFS=$as_save_IFS
8367 RC=$ac_cv_prog_RC
8368 if test -n "$RC"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
8370 $as_echo "$RC" >&6; }
8371 else
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8378 if test -z "$ac_cv_prog_RC"; then
8379 ac_ct_RC=$RC
8380 # Extract the first word of "windres", so it can be a program name with args.
8381 set dummy windres; ac_word=$2
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
8385 $as_echo_n "(cached) " >&6
8386 else
8387 if test -n "$ac_ct_RC"; then
8388 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8389 else
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 for as_dir in $PATH
8393 IFS=$as_save_IFS
8394 test -z "$as_dir" && as_dir=.
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8397 ac_cv_prog_ac_ct_RC="windres"
8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8399 break 2
8401 done
8402 done
8403 IFS=$as_save_IFS
8407 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8408 if test -n "$ac_ct_RC"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
8410 $as_echo "$ac_ct_RC" >&6; }
8411 else
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8416 if test "x$ac_ct_RC" = x; then
8417 RC=":"
8418 else
8419 case $cross_compiling:$ac_tool_warned in
8420 yes:)
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8423 ac_tool_warned=yes ;;
8424 esac
8425 RC=$ac_ct_RC
8427 else
8428 RC="$ac_cv_prog_RC"
8434 # Check for libupnp
8435 # Check whether --enable-upnp was given.
8436 if test "${enable_upnp+set}" = set; then :
8437 enableval=$enable_upnp;
8441 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
8443 else
8444 enable_upnp=no
8448 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8449 if test -n "$ac_tool_prefix"; then
8450 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8451 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453 $as_echo_n "checking for $ac_word... " >&6; }
8454 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8455 $as_echo_n "(cached) " >&6
8456 else
8457 case $PKG_CONFIG in
8458 [\\/]* | ?:[\\/]*)
8459 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 for as_dir in $PATH
8465 IFS=$as_save_IFS
8466 test -z "$as_dir" && as_dir=.
8467 for ac_exec_ext in '' $ac_executable_extensions; do
8468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8469 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8471 break 2
8473 done
8474 done
8475 IFS=$as_save_IFS
8478 esac
8480 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8481 if test -n "$PKG_CONFIG"; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8483 $as_echo "$PKG_CONFIG" >&6; }
8484 else
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8491 if test -z "$ac_cv_path_PKG_CONFIG"; then
8492 ac_pt_PKG_CONFIG=$PKG_CONFIG
8493 # Extract the first word of "pkg-config", so it can be a program name with args.
8494 set dummy pkg-config; ac_word=$2
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8499 else
8500 case $ac_pt_PKG_CONFIG in
8501 [\\/]* | ?:[\\/]*)
8502 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506 for as_dir in $PATH
8508 IFS=$as_save_IFS
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8512 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 break 2
8516 done
8517 done
8518 IFS=$as_save_IFS
8521 esac
8523 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8524 if test -n "$ac_pt_PKG_CONFIG"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8526 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8527 else
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8532 if test "x$ac_pt_PKG_CONFIG" = x; then
8533 PKG_CONFIG=""
8534 else
8535 case $cross_compiling:$ac_tool_warned in
8536 yes:)
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8539 ac_tool_warned=yes ;;
8540 esac
8541 PKG_CONFIG=$ac_pt_PKG_CONFIG
8543 else
8544 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8548 if test -n "$PKG_CONFIG"; then
8549 _pkg_min_version=0.9.0
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8551 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8552 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8554 $as_echo "yes" >&6; }
8555 else
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8557 $as_echo "no" >&6; }
8558 PKG_CONFIG=""
8562 if test ${enable_upnp:-yes} = yes; then :
8566 # Check whether --with-libupnp-prefix was given.
8567 if test "${with_libupnp_prefix+set}" = set; then :
8568 withval=$with_libupnp_prefix; export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8572 if test $cross_compiling = no; then :
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
8575 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
8576 if test -n "$PKG_CONFIG"; then :
8578 if $PKG_CONFIG libupnp --exists; then :
8580 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8581 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
8583 result=yes
8584 resultstr=" (version $LIBUPNP_VERSION)"
8585 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8586 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8587 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8588 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8589 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8591 else
8593 result=no
8594 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8598 else
8600 result=no
8601 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8605 else
8607 result=no
8608 resultstr=" (pkg-config not found)"
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8612 $as_echo "$result$resultstr" >&6; }
8613 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8615 else
8617 result=no
8618 libupnp_error="cross compiling"
8622 if test ${result:-no} = yes; then :
8623 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8624 else
8625 enable_upnp=disabled
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8627 UPnP code has been disabled because ${libupnp_error}." >&5
8628 $as_echo "$as_me: WARNING:
8629 UPnP code has been disabled because ${libupnp_error}." >&2;}
8630 _mule_warning_6=yes
8631 _mule_has_warnings=yes
8640 # Check for Crypto++
8641 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
8644 # Check whether --with-crypto-prefix was given.
8645 if test "${with_crypto_prefix+set}" = set; then :
8646 withval=$with_crypto_prefix;
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
8651 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
8653 cryptopp_file_with_version="cryptlib.h"
8655 CRYPTOPP_STYLE="unknown"
8656 CRYPTOPP_LIB_NAME="unknown"
8657 cryptopp_includedir="unknown"
8658 CRYPTOPP_INCLUDE_PREFIX="unknown"
8659 cryptopp_libdir="unknown"
8661 if test -n "$with_crypto_prefix"; then :
8663 CRYPTOPP_PREFIX="$with_crypto_prefix"
8664 # Find the Cryptopp header in the user-provided location
8665 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8667 CRYPTOPP_STYLE="sources"
8668 CRYPTOPP_LIB_NAME="cryptopp"
8669 cryptopp_includedir=
8670 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8671 cryptopp_libdir=
8673 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8675 CRYPTOPP_STYLE="installed"
8676 CRYPTOPP_LIB_NAME="cryptopp"
8677 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8678 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8679 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8681 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8683 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8684 CRYPTOPP_STYLE="gentoo_debian"
8685 CRYPTOPP_LIB_NAME="crypto++"
8686 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8687 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8688 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8693 else
8695 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8696 # Find the Cryptopp header in system locations
8697 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8699 CRYPTOPP_STYLE="sources"
8700 CRYPTOPP_LIB_NAME="cryptopp"
8701 cryptopp_includedir=
8702 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8703 cryptopp_libdir=
8704 break
8706 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8708 CRYPTOPP_STYLE="installed"
8709 CRYPTOPP_LIB_NAME="cryptopp"
8710 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8711 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8712 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8713 break
8715 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8717 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8718 CRYPTOPP_STYLE="gentoo_debian"
8719 CRYPTOPP_LIB_NAME="crypto++"
8720 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8721 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8722 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8723 break
8727 done
8731 if test $CRYPTOPP_STYLE = "unknown"; then :
8732 result=no; resultstr=""
8733 else
8735 # Find out the crypto++ version and check against the minimum required
8736 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8737 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8738 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8739 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8741 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
8743 result=yes
8744 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8745 if test -n "$cryptopp_includedir"; then :
8746 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8747 else
8748 CRYPTOPP_CPPFLAGS=
8750 if test -n "$cryptopp_libdir"; then :
8752 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8753 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8755 else
8757 CRYPTOPP_LDFLAGS=
8758 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8762 cat >>confdefs.h <<_ACEOF
8763 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8764 _ACEOF
8767 else
8769 result=no
8770 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8777 $as_echo "$result$resultstr" >&6; }
8779 if test ${result:-no} = yes; then :
8781 # Check for CryptoPP >= 5.5
8782 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
8783 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8786 else
8788 as_fn_error "
8789 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8790 Please try again with --with-crypto-prefix=/my_crypto_prefix
8791 (replace /my_crypto_prefix with a valid path to your crypto++
8792 installation directory)." "$LINENO" 5
8801 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 :
8802 ac_ext=cpp
8803 ac_cpp='$CXXCPP $CPPFLAGS'
8804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're using the GNU C++ library" >&5
8810 $as_echo_n "checking if we're using the GNU C++ library... " >&6; }
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8815 #include <string>
8816 #ifndef __GLIBCXX__
8817 #error Non-GNU C++ library found.
8818 #endif
8821 _ACEOF
8822 if ac_fn_cxx_try_cpp "$LINENO"; then :
8823 GLIBCXX=yes
8824 else
8825 GLIBCXX=no
8827 rm -f conftest.err conftest.$ac_ext
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIBCXX" >&5
8829 $as_echo "$GLIBCXX" >&6; }
8831 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
8833 mule_backup_CPPFLAGS="$CPPFLAGS"
8834 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
8837 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8842 #include <wx/wx.h>
8843 #include <wx/filefn.h>
8844 #ifndef wxHAS_LARGE_FILES
8845 #error No LargeFile support!
8846 #endif
8849 _ACEOF
8850 if ac_fn_cxx_try_cpp "$LINENO"; then :
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8853 $as_echo "yes" >&6; }
8855 else
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858 $as_echo "no" >&6; }
8859 as_fn_error "
8860 Support for large files in wxWidgets is required by aMule.
8861 To continue you must recompile wxWidgets with support for
8862 large files enabled." "$LINENO" 5
8865 rm -f conftest.err conftest.$ac_ext
8867 CPPFLAGS="$mule_backup_CPPFLAGS"
8871 # Check if the compiler is broken, wrt. exceptions.
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
8874 $as_echo_n "checking for exception-handling... " >&6; }
8875 if test "$cross_compiling" = yes; then :
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
8878 $as_echo "undeterminable" >&6; }
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8880 Cross-compilation detected, so exception handling cannot be tested.
8881 Note that broken exception handling in your compiler may lead to
8882 unexpected crashes." >&5
8883 $as_echo "$as_me: WARNING:
8884 Cross-compilation detected, so exception handling cannot be tested.
8885 Note that broken exception handling in your compiler may lead to
8886 unexpected crashes." >&2;}
8887 _mule_warning_7=yes
8888 _mule_has_warnings=yes
8891 else
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8897 main ()
8900 try {
8901 throw 1;
8902 } catch (int) {
8903 return 0;
8905 return 1;
8908 return 0;
8911 _ACEOF
8912 if ac_fn_cxx_try_run "$LINENO"; then :
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8915 $as_echo "yes" >&6; }
8917 else
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920 $as_echo "no" >&6; }
8921 as_fn_error "Exception handling does not work. Broken compiler?" "$LINENO" 5
8924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8925 conftest.$ac_objext conftest.beam conftest.$ac_ext
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
8932 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8937 #include <cxxabi.h>
8940 main ()
8943 int status;
8944 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8945 std::type_info *ti = abi::__cxa_current_exception_type();
8948 return 0;
8951 _ACEOF
8952 if ac_fn_cxx_try_link "$LINENO"; then :
8955 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8958 $as_echo "yes" >&6; }
8960 else
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963 $as_echo "no" >&6; }
8966 rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
8969 ac_ext=c
8970 ac_cpp='$CPP $CPPFLAGS'
8971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8978 # Ok, we have all needed libs, now checking for other stuff
8979 if test "$LEX" = "flex"; then :
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
8982 $as_echo_n "checking for extended flex capabilities... " >&6; }
8984 extended_flex=`flex --help | grep header-file`
8985 if test -n "$extended_flex"; then :
8986 HAVE_FLEX_EXTENDED=yes
8987 else
8988 HAVE_FLEX_EXTENDED=no
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
8991 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
8993 if test $HAVE_FLEX_EXTENDED = no; then :
8994 { $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
8995 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8998 else
8999 HAVE_FLEX_EXTENDED=no
9002 # Flush standard test results for speeding cache
9003 cat >confcache <<\_ACEOF
9004 # This file is a shell script that caches the results of configure
9005 # tests run on this system so they can be shared between configure
9006 # scripts and configure runs, see configure's option --config-cache.
9007 # It is not useful on other systems. If it contains results you don't
9008 # want to keep, you may remove or edit it.
9010 # config.status only pays attention to the cache file if you give it
9011 # the --recheck option to rerun configure.
9013 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9014 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9015 # following values.
9017 _ACEOF
9019 # The following way of writing the cache mishandles newlines in values,
9020 # but we know of no workaround that is simple, portable, and efficient.
9021 # So, we kill variables containing newlines.
9022 # Ultrix sh set writes to stderr and can't be redirected directly,
9023 # and sets the high bit in the cache file unless we assign to the vars.
9025 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9026 eval ac_val=\$$ac_var
9027 case $ac_val in #(
9028 *${as_nl}*)
9029 case $ac_var in #(
9030 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9031 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9032 esac
9033 case $ac_var in #(
9034 _ | IFS | as_nl) ;; #(
9035 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9036 *) { eval $ac_var=; unset $ac_var;} ;;
9037 esac ;;
9038 esac
9039 done
9041 (set) 2>&1 |
9042 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9043 *${as_nl}ac_space=\ *)
9044 # `set' does not quote correctly, so add quotes: double-quote
9045 # substitution turns \\\\ into \\, and sed turns \\ into \.
9046 sed -n \
9047 "s/'/'\\\\''/g;
9048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9049 ;; #(
9051 # `set' quotes correctly as required by POSIX, so do not add quotes.
9052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9054 esac |
9055 sort
9057 sed '
9058 /^ac_cv_env_/b end
9059 t clear
9060 :clear
9061 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9062 t end
9063 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9064 :end' >>confcache
9065 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9066 if test -w "$cache_file"; then
9067 test "x$cache_file" != "x/dev/null" &&
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9069 $as_echo "$as_me: updating cache $cache_file" >&6;}
9070 cat confcache >$cache_file
9071 else
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9073 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9076 rm -f confcache
9078 # Checks for header files.
9079 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9080 # for constant arguments. Useless!
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9082 $as_echo_n "checking for working alloca.h... " >&6; }
9083 if test "${ac_cv_working_alloca_h+set}" = set; then :
9084 $as_echo_n "(cached) " >&6
9085 else
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9088 #include <alloca.h>
9090 main ()
9092 char *p = (char *) alloca (2 * sizeof (int));
9093 if (p) return 0;
9095 return 0;
9097 _ACEOF
9098 if ac_fn_c_try_link "$LINENO"; then :
9099 ac_cv_working_alloca_h=yes
9100 else
9101 ac_cv_working_alloca_h=no
9103 rm -f core conftest.err conftest.$ac_objext \
9104 conftest$ac_exeext conftest.$ac_ext
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9107 $as_echo "$ac_cv_working_alloca_h" >&6; }
9108 if test $ac_cv_working_alloca_h = yes; then
9110 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9115 $as_echo_n "checking for alloca... " >&6; }
9116 if test "${ac_cv_func_alloca_works+set}" = set; then :
9117 $as_echo_n "(cached) " >&6
9118 else
9119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120 /* end confdefs.h. */
9121 #ifdef __GNUC__
9122 # define alloca __builtin_alloca
9123 #else
9124 # ifdef _MSC_VER
9125 # include <malloc.h>
9126 # define alloca _alloca
9127 # else
9128 # ifdef HAVE_ALLOCA_H
9129 # include <alloca.h>
9130 # else
9131 # ifdef _AIX
9132 #pragma alloca
9133 # else
9134 # ifndef alloca /* predefined by HP cc +Olibcalls */
9135 char *alloca ();
9136 # endif
9137 # endif
9138 # endif
9139 # endif
9140 #endif
9143 main ()
9145 char *p = (char *) alloca (1);
9146 if (p) return 0;
9148 return 0;
9150 _ACEOF
9151 if ac_fn_c_try_link "$LINENO"; then :
9152 ac_cv_func_alloca_works=yes
9153 else
9154 ac_cv_func_alloca_works=no
9156 rm -f core conftest.err conftest.$ac_objext \
9157 conftest$ac_exeext conftest.$ac_ext
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9160 $as_echo "$ac_cv_func_alloca_works" >&6; }
9162 if test $ac_cv_func_alloca_works = yes; then
9164 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9166 else
9167 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9168 # that cause trouble. Some versions do not even contain alloca or
9169 # contain a buggy version. If you still want to use their alloca,
9170 # use ar to extract alloca.o from them instead of compiling alloca.c.
9172 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9174 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9178 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9179 if test "${ac_cv_os_cray+set}" = set; then :
9180 $as_echo_n "(cached) " >&6
9181 else
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184 #if defined CRAY && ! defined CRAY2
9185 webecray
9186 #else
9187 wenotbecray
9188 #endif
9190 _ACEOF
9191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9192 $EGREP "webecray" >/dev/null 2>&1; then :
9193 ac_cv_os_cray=yes
9194 else
9195 ac_cv_os_cray=no
9197 rm -f conftest*
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9201 $as_echo "$ac_cv_os_cray" >&6; }
9202 if test $ac_cv_os_cray = yes; then
9203 for ac_func in _getb67 GETB67 getb67; do
9204 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9205 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9206 eval as_val=\$$as_ac_var
9207 if test "x$as_val" = x""yes; then :
9209 cat >>confdefs.h <<_ACEOF
9210 #define CRAY_STACKSEG_END $ac_func
9211 _ACEOF
9213 break
9216 done
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9220 $as_echo_n "checking stack direction for C alloca... " >&6; }
9221 if test "${ac_cv_c_stack_direction+set}" = set; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224 if test "$cross_compiling" = yes; then :
9225 ac_cv_c_stack_direction=0
9226 else
9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9229 $ac_includes_default
9231 find_stack_direction ()
9233 static char *addr = 0;
9234 auto char dummy;
9235 if (addr == 0)
9237 addr = &dummy;
9238 return find_stack_direction ();
9240 else
9241 return (&dummy > addr) ? 1 : -1;
9245 main ()
9247 return find_stack_direction () < 0;
9249 _ACEOF
9250 if ac_fn_c_try_run "$LINENO"; then :
9251 ac_cv_c_stack_direction=1
9252 else
9253 ac_cv_c_stack_direction=-1
9255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9256 conftest.$ac_objext conftest.beam conftest.$ac_ext
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9261 $as_echo "$ac_cv_c_stack_direction" >&6; }
9262 cat >>confdefs.h <<_ACEOF
9263 #define STACK_DIRECTION $ac_cv_c_stack_direction
9264 _ACEOF
9269 ac_header_dirent=no
9270 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9271 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9273 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9275 $as_echo_n "(cached) " >&6
9276 else
9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9279 #include <sys/types.h>
9280 #include <$ac_hdr>
9283 main ()
9285 if ((DIR *) 0)
9286 return 0;
9288 return 0;
9290 _ACEOF
9291 if ac_fn_c_try_compile "$LINENO"; then :
9292 eval "$as_ac_Header=yes"
9293 else
9294 eval "$as_ac_Header=no"
9296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9298 eval ac_res=\$$as_ac_Header
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9300 $as_echo "$ac_res" >&6; }
9301 eval as_val=\$$as_ac_Header
9302 if test "x$as_val" = x""yes; then :
9303 cat >>confdefs.h <<_ACEOF
9304 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9305 _ACEOF
9307 ac_header_dirent=$ac_hdr; break
9310 done
9311 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9312 if test $ac_header_dirent = dirent.h; then
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9314 $as_echo_n "checking for library containing opendir... " >&6; }
9315 if test "${ac_cv_search_opendir+set}" = set; then :
9316 $as_echo_n "(cached) " >&6
9317 else
9318 ac_func_search_save_LIBS=$LIBS
9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9322 /* Override any GCC internal prototype to avoid an error.
9323 Use char because int might match the return type of a GCC
9324 builtin and then its argument prototype would still apply. */
9325 #ifdef __cplusplus
9326 extern "C"
9327 #endif
9328 char opendir ();
9330 main ()
9332 return opendir ();
9334 return 0;
9336 _ACEOF
9337 for ac_lib in '' dir; do
9338 if test -z "$ac_lib"; then
9339 ac_res="none required"
9340 else
9341 ac_res=-l$ac_lib
9342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9344 if ac_fn_c_try_link "$LINENO"; then :
9345 ac_cv_search_opendir=$ac_res
9347 rm -f core conftest.err conftest.$ac_objext \
9348 conftest$ac_exeext
9349 if test "${ac_cv_search_opendir+set}" = set; then :
9350 break
9352 done
9353 if test "${ac_cv_search_opendir+set}" = set; then :
9355 else
9356 ac_cv_search_opendir=no
9358 rm conftest.$ac_ext
9359 LIBS=$ac_func_search_save_LIBS
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9362 $as_echo "$ac_cv_search_opendir" >&6; }
9363 ac_res=$ac_cv_search_opendir
9364 if test "$ac_res" != no; then :
9365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9369 else
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9371 $as_echo_n "checking for library containing opendir... " >&6; }
9372 if test "${ac_cv_search_opendir+set}" = set; then :
9373 $as_echo_n "(cached) " >&6
9374 else
9375 ac_func_search_save_LIBS=$LIBS
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9379 /* Override any GCC internal prototype to avoid an error.
9380 Use char because int might match the return type of a GCC
9381 builtin and then its argument prototype would still apply. */
9382 #ifdef __cplusplus
9383 extern "C"
9384 #endif
9385 char opendir ();
9387 main ()
9389 return opendir ();
9391 return 0;
9393 _ACEOF
9394 for ac_lib in '' x; do
9395 if test -z "$ac_lib"; then
9396 ac_res="none required"
9397 else
9398 ac_res=-l$ac_lib
9399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9401 if ac_fn_c_try_link "$LINENO"; then :
9402 ac_cv_search_opendir=$ac_res
9404 rm -f core conftest.err conftest.$ac_objext \
9405 conftest$ac_exeext
9406 if test "${ac_cv_search_opendir+set}" = set; then :
9407 break
9409 done
9410 if test "${ac_cv_search_opendir+set}" = set; then :
9412 else
9413 ac_cv_search_opendir=no
9415 rm conftest.$ac_ext
9416 LIBS=$ac_func_search_save_LIBS
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9419 $as_echo "$ac_cv_search_opendir" >&6; }
9420 ac_res=$ac_cv_search_opendir
9421 if test "$ac_res" != no; then :
9422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9429 $as_echo_n "checking for ANSI C header files... " >&6; }
9430 if test "${ac_cv_header_stdc+set}" = set; then :
9431 $as_echo_n "(cached) " >&6
9432 else
9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h. */
9435 #include <stdlib.h>
9436 #include <stdarg.h>
9437 #include <string.h>
9438 #include <float.h>
9441 main ()
9445 return 0;
9447 _ACEOF
9448 if ac_fn_c_try_compile "$LINENO"; then :
9449 ac_cv_header_stdc=yes
9450 else
9451 ac_cv_header_stdc=no
9453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9455 if test $ac_cv_header_stdc = yes; then
9456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9458 /* end confdefs.h. */
9459 #include <string.h>
9461 _ACEOF
9462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9463 $EGREP "memchr" >/dev/null 2>&1; then :
9465 else
9466 ac_cv_header_stdc=no
9468 rm -f conftest*
9472 if test $ac_cv_header_stdc = yes; then
9473 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9476 #include <stdlib.h>
9478 _ACEOF
9479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9480 $EGREP "free" >/dev/null 2>&1; then :
9482 else
9483 ac_cv_header_stdc=no
9485 rm -f conftest*
9489 if test $ac_cv_header_stdc = yes; then
9490 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9491 if test "$cross_compiling" = yes; then :
9493 else
9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9496 #include <ctype.h>
9497 #include <stdlib.h>
9498 #if ((' ' & 0x0FF) == 0x020)
9499 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9500 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9501 #else
9502 # define ISLOWER(c) \
9503 (('a' <= (c) && (c) <= 'i') \
9504 || ('j' <= (c) && (c) <= 'r') \
9505 || ('s' <= (c) && (c) <= 'z'))
9506 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9507 #endif
9509 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9511 main ()
9513 int i;
9514 for (i = 0; i < 256; i++)
9515 if (XOR (islower (i), ISLOWER (i))
9516 || toupper (i) != TOUPPER (i))
9517 return 2;
9518 return 0;
9520 _ACEOF
9521 if ac_fn_c_try_run "$LINENO"; then :
9523 else
9524 ac_cv_header_stdc=no
9526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9527 conftest.$ac_objext conftest.beam conftest.$ac_ext
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9533 $as_echo "$ac_cv_header_stdc" >&6; }
9534 if test $ac_cv_header_stdc = yes; then
9536 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9540 for ac_header in argz.h arpa/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet/in.h stddef.h nl_types.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/mntent.h sys/mnttab.h sys/mount.h sys/param.h sys/resource.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h sys/types.h unistd.h errno.h signal.h
9541 do :
9542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9543 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9544 eval as_val=\$$as_ac_Header
9545 if test "x$as_val" = x""yes; then :
9546 cat >>confdefs.h <<_ACEOF
9547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9548 _ACEOF
9552 done
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9555 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9556 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9561 #include <sys/types.h>
9562 #include <sys/wait.h>
9563 #ifndef WEXITSTATUS
9564 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9565 #endif
9566 #ifndef WIFEXITED
9567 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9568 #endif
9571 main ()
9573 int s;
9574 wait (&s);
9575 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9577 return 0;
9579 _ACEOF
9580 if ac_fn_c_try_compile "$LINENO"; then :
9581 ac_cv_header_sys_wait_h=yes
9582 else
9583 ac_cv_header_sys_wait_h=no
9585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9588 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9589 if test $ac_cv_header_sys_wait_h = yes; then
9591 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9596 # Checks for typedefs, structures, and compiler characteristics.
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9598 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9599 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9605 #include <stdbool.h>
9606 #ifndef bool
9607 "error: bool is not defined"
9608 #endif
9609 #ifndef false
9610 "error: false is not defined"
9611 #endif
9612 #if false
9613 "error: false is not 0"
9614 #endif
9615 #ifndef true
9616 "error: true is not defined"
9617 #endif
9618 #if true != 1
9619 "error: true is not 1"
9620 #endif
9621 #ifndef __bool_true_false_are_defined
9622 "error: __bool_true_false_are_defined is not defined"
9623 #endif
9625 struct s { _Bool s: 1; _Bool t; } s;
9627 char a[true == 1 ? 1 : -1];
9628 char b[false == 0 ? 1 : -1];
9629 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9630 char d[(bool) 0.5 == true ? 1 : -1];
9631 bool e = &s;
9632 char f[(_Bool) 0.0 == false ? 1 : -1];
9633 char g[true];
9634 char h[sizeof (_Bool)];
9635 char i[sizeof s.t];
9636 enum { j = false, k = true, l = false * true, m = true * 256 };
9637 /* The following fails for
9638 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9639 _Bool n[m];
9640 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9641 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9642 # if defined __xlc__ || defined __GNUC__
9643 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9644 reported by James Lemley on 2005-10-05; see
9645 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9646 This test is not quite right, since xlc is allowed to
9647 reject this program, as the initializer for xlcbug is
9648 not one of the forms that C requires support for.
9649 However, doing the test right would require a runtime
9650 test, and that would make cross-compilation harder.
9651 Let us hope that IBM fixes the xlc bug, and also adds
9652 support for this kind of constant expression. In the
9653 meantime, this test will reject xlc, which is OK, since
9654 our stdbool.h substitute should suffice. We also test
9655 this with GCC, where it should work, to detect more
9656 quickly whether someone messes up the test in the
9657 future. */
9658 char digs[] = "0123456789";
9659 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9660 # endif
9661 /* Catch a bug in an HP-UX C compiler. See
9662 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9663 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9665 _Bool q = true;
9666 _Bool *pq = &q;
9669 main ()
9672 *pq |= q;
9673 *pq |= ! q;
9674 /* Refer to every declared value, to avoid compiler optimizations. */
9675 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9676 + !m + !n + !o + !p + !q + !pq);
9679 return 0;
9681 _ACEOF
9682 if ac_fn_c_try_compile "$LINENO"; then :
9683 ac_cv_header_stdbool_h=yes
9684 else
9685 ac_cv_header_stdbool_h=no
9687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9690 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9691 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9692 if test "x$ac_cv_type__Bool" = x""yes; then :
9694 cat >>confdefs.h <<_ACEOF
9695 #define HAVE__BOOL 1
9696 _ACEOF
9701 if test $ac_cv_header_stdbool_h = yes; then
9703 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9708 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9709 if test "${ac_cv_c_const+set}" = set; then :
9710 $as_echo_n "(cached) " >&6
9711 else
9712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713 /* end confdefs.h. */
9716 main ()
9718 /* FIXME: Include the comments suggested by Paul. */
9719 #ifndef __cplusplus
9720 /* Ultrix mips cc rejects this. */
9721 typedef int charset[2];
9722 const charset cs;
9723 /* SunOS 4.1.1 cc rejects this. */
9724 char const *const *pcpcc;
9725 char **ppc;
9726 /* NEC SVR4.0.2 mips cc rejects this. */
9727 struct point {int x, y;};
9728 static struct point const zero = {0,0};
9729 /* AIX XL C 1.02.0.0 rejects this.
9730 It does not let you subtract one const X* pointer from another in
9731 an arm of an if-expression whose if-part is not a constant
9732 expression */
9733 const char *g = "string";
9734 pcpcc = &g + (g ? g-g : 0);
9735 /* HPUX 7.0 cc rejects these. */
9736 ++pcpcc;
9737 ppc = (char**) pcpcc;
9738 pcpcc = (char const *const *) ppc;
9739 { /* SCO 3.2v4 cc rejects this. */
9740 char *t;
9741 char const *s = 0 ? (char *) 0 : (char const *) 0;
9743 *t++ = 0;
9744 if (s) return 0;
9746 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9747 int x[] = {25, 17};
9748 const int *foo = &x[0];
9749 ++foo;
9751 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9752 typedef const int *iptr;
9753 iptr p = 0;
9754 ++p;
9756 { /* AIX XL C 1.02.0.0 rejects this saying
9757 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9758 struct s { int j; const int *ap[3]; };
9759 struct s *b; b->j = 5;
9761 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9762 const int foo = 10;
9763 if (!foo) return 0;
9765 return !cs[0] && !zero.x;
9766 #endif
9769 return 0;
9771 _ACEOF
9772 if ac_fn_c_try_compile "$LINENO"; then :
9773 ac_cv_c_const=yes
9774 else
9775 ac_cv_c_const=no
9777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9780 $as_echo "$ac_cv_c_const" >&6; }
9781 if test $ac_cv_c_const = no; then
9783 $as_echo "#define const /**/" >>confdefs.h
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9788 $as_echo_n "checking for inline... " >&6; }
9789 if test "${ac_cv_c_inline+set}" = set; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792 ac_cv_c_inline=no
9793 for ac_kw in inline __inline__ __inline; do
9794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h. */
9796 #ifndef __cplusplus
9797 typedef int foo_t;
9798 static $ac_kw foo_t static_foo () {return 0; }
9799 $ac_kw foo_t foo () {return 0; }
9800 #endif
9802 _ACEOF
9803 if ac_fn_c_try_compile "$LINENO"; then :
9804 ac_cv_c_inline=$ac_kw
9806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9807 test "$ac_cv_c_inline" != no && break
9808 done
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9812 $as_echo "$ac_cv_c_inline" >&6; }
9814 case $ac_cv_c_inline in
9815 inline | yes) ;;
9817 case $ac_cv_c_inline in
9818 no) ac_val=;;
9819 *) ac_val=$ac_cv_c_inline;;
9820 esac
9821 cat >>confdefs.h <<_ACEOF
9822 #ifndef __cplusplus
9823 #define inline $ac_val
9824 #endif
9825 _ACEOF
9827 esac
9829 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9830 if test "x$ac_cv_type_mode_t" = x""yes; then :
9832 else
9834 cat >>confdefs.h <<_ACEOF
9835 #define mode_t int
9836 _ACEOF
9840 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9841 if test "x$ac_cv_type_off_t" = x""yes; then :
9843 else
9845 cat >>confdefs.h <<_ACEOF
9846 #define off_t long int
9847 _ACEOF
9851 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9852 if test "x$ac_cv_type_size_t" = x""yes; then :
9854 else
9856 cat >>confdefs.h <<_ACEOF
9857 #define size_t unsigned int
9858 _ACEOF
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9863 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9864 if test "${ac_cv_header_time+set}" = set; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9868 /* end confdefs.h. */
9869 #include <sys/types.h>
9870 #include <sys/time.h>
9871 #include <time.h>
9874 main ()
9876 if ((struct tm *) 0)
9877 return 0;
9879 return 0;
9881 _ACEOF
9882 if ac_fn_c_try_compile "$LINENO"; then :
9883 ac_cv_header_time=yes
9884 else
9885 ac_cv_header_time=no
9887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9890 $as_echo "$ac_cv_header_time" >&6; }
9891 if test $ac_cv_header_time = yes; then
9893 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9898 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9899 if test "${ac_cv_struct_tm+set}" = set; then :
9900 $as_echo_n "(cached) " >&6
9901 else
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9904 #include <sys/types.h>
9905 #include <time.h>
9908 main ()
9910 struct tm tm;
9911 int *p = &tm.tm_sec;
9912 return !p;
9914 return 0;
9916 _ACEOF
9917 if ac_fn_c_try_compile "$LINENO"; then :
9918 ac_cv_struct_tm=time.h
9919 else
9920 ac_cv_struct_tm=sys/time.h
9922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9925 $as_echo "$ac_cv_struct_tm" >&6; }
9926 if test $ac_cv_struct_tm = sys/time.h; then
9928 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9933 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9934 if test "${ac_cv_type_uid_t+set}" = set; then :
9935 $as_echo_n "(cached) " >&6
9936 else
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9939 #include <sys/types.h>
9941 _ACEOF
9942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9943 $EGREP "uid_t" >/dev/null 2>&1; then :
9944 ac_cv_type_uid_t=yes
9945 else
9946 ac_cv_type_uid_t=no
9948 rm -f conftest*
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9952 $as_echo "$ac_cv_type_uid_t" >&6; }
9953 if test $ac_cv_type_uid_t = no; then
9955 $as_echo "#define uid_t int" >>confdefs.h
9958 $as_echo "#define gid_t int" >>confdefs.h
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9963 $as_echo_n "checking for working volatile... " >&6; }
9964 if test "${ac_cv_c_volatile+set}" = set; then :
9965 $as_echo_n "(cached) " >&6
9966 else
9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h. */
9971 main ()
9974 volatile int x;
9975 int * volatile y = (int *) 0;
9976 return !x && !y;
9978 return 0;
9980 _ACEOF
9981 if ac_fn_c_try_compile "$LINENO"; then :
9982 ac_cv_c_volatile=yes
9983 else
9984 ac_cv_c_volatile=no
9986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9989 $as_echo "$ac_cv_c_volatile" >&6; }
9990 if test $ac_cv_c_volatile = no; then
9992 $as_echo "#define volatile /**/" >>confdefs.h
9996 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
9997 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
9999 cat >>confdefs.h <<_ACEOF
10000 #define HAVE_PTRDIFF_T 1
10001 _ACEOF
10007 # Checks for library functions.
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
10009 $as_echo_n "checking whether closedir returns void... " >&6; }
10010 if test "${ac_cv_func_closedir_void+set}" = set; then :
10011 $as_echo_n "(cached) " >&6
10012 else
10013 if test "$cross_compiling" = yes; then :
10014 ac_cv_func_closedir_void=yes
10015 else
10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10018 $ac_includes_default
10019 #include <$ac_header_dirent>
10020 #ifndef __cplusplus
10021 int closedir ();
10022 #endif
10025 main ()
10027 return closedir (opendir (".")) != 0;
10029 return 0;
10031 _ACEOF
10032 if ac_fn_c_try_run "$LINENO"; then :
10033 ac_cv_func_closedir_void=no
10034 else
10035 ac_cv_func_closedir_void=yes
10037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10038 conftest.$ac_objext conftest.beam conftest.$ac_ext
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
10043 $as_echo "$ac_cv_func_closedir_void" >&6; }
10044 if test $ac_cv_func_closedir_void = yes; then
10046 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
10050 if test $ac_cv_c_compiler_gnu = yes; then
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
10052 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
10053 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
10054 $as_echo_n "(cached) " >&6
10055 else
10056 ac_pattern="Autoconf.*'x'"
10057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058 /* end confdefs.h. */
10059 #include <sgtty.h>
10060 Autoconf TIOCGETP
10061 _ACEOF
10062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10063 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10064 ac_cv_prog_gcc_traditional=yes
10065 else
10066 ac_cv_prog_gcc_traditional=no
10068 rm -f conftest*
10071 if test $ac_cv_prog_gcc_traditional = no; then
10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h. */
10074 #include <termio.h>
10075 Autoconf TCGETA
10076 _ACEOF
10077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10078 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10079 ac_cv_prog_gcc_traditional=yes
10081 rm -f conftest*
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10086 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10087 if test $ac_cv_prog_gcc_traditional = yes; then
10088 CC="$CC -traditional"
10092 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10093 if test "x$ac_cv_type_pid_t" = x""yes; then :
10095 else
10097 cat >>confdefs.h <<_ACEOF
10098 #define pid_t int
10099 _ACEOF
10103 for ac_header in vfork.h
10104 do :
10105 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10106 if test "x$ac_cv_header_vfork_h" = x""yes; then :
10107 cat >>confdefs.h <<_ACEOF
10108 #define HAVE_VFORK_H 1
10109 _ACEOF
10113 done
10115 for ac_func in fork vfork
10116 do :
10117 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10118 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10119 eval as_val=\$$as_ac_var
10120 if test "x$as_val" = x""yes; then :
10121 cat >>confdefs.h <<_ACEOF
10122 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10123 _ACEOF
10126 done
10128 if test "x$ac_cv_func_fork" = xyes; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10130 $as_echo_n "checking for working fork... " >&6; }
10131 if test "${ac_cv_func_fork_works+set}" = set; then :
10132 $as_echo_n "(cached) " >&6
10133 else
10134 if test "$cross_compiling" = yes; then :
10135 ac_cv_func_fork_works=cross
10136 else
10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10139 $ac_includes_default
10141 main ()
10144 /* By Ruediger Kuhlmann. */
10145 return fork () < 0;
10148 return 0;
10150 _ACEOF
10151 if ac_fn_c_try_run "$LINENO"; then :
10152 ac_cv_func_fork_works=yes
10153 else
10154 ac_cv_func_fork_works=no
10156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10157 conftest.$ac_objext conftest.beam conftest.$ac_ext
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10162 $as_echo "$ac_cv_func_fork_works" >&6; }
10164 else
10165 ac_cv_func_fork_works=$ac_cv_func_fork
10167 if test "x$ac_cv_func_fork_works" = xcross; then
10168 case $host in
10169 *-*-amigaos* | *-*-msdosdjgpp*)
10170 # Override, as these systems have only a dummy fork() stub
10171 ac_cv_func_fork_works=no
10174 ac_cv_func_fork_works=yes
10176 esac
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10178 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10180 ac_cv_func_vfork_works=$ac_cv_func_vfork
10181 if test "x$ac_cv_func_vfork" = xyes; then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10183 $as_echo_n "checking for working vfork... " >&6; }
10184 if test "${ac_cv_func_vfork_works+set}" = set; then :
10185 $as_echo_n "(cached) " >&6
10186 else
10187 if test "$cross_compiling" = yes; then :
10188 ac_cv_func_vfork_works=cross
10189 else
10190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191 /* end confdefs.h. */
10192 /* Thanks to Paul Eggert for this test. */
10193 $ac_includes_default
10194 #include <sys/wait.h>
10195 #ifdef HAVE_VFORK_H
10196 # include <vfork.h>
10197 #endif
10198 /* On some sparc systems, changes by the child to local and incoming
10199 argument registers are propagated back to the parent. The compiler
10200 is told about this with #include <vfork.h>, but some compilers
10201 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10202 static variable whose address is put into a register that is
10203 clobbered by the vfork. */
10204 static void
10205 #ifdef __cplusplus
10206 sparc_address_test (int arg)
10207 # else
10208 sparc_address_test (arg) int arg;
10209 #endif
10211 static pid_t child;
10212 if (!child) {
10213 child = vfork ();
10214 if (child < 0) {
10215 perror ("vfork");
10216 _exit(2);
10218 if (!child) {
10219 arg = getpid();
10220 write(-1, "", 0);
10221 _exit (arg);
10227 main ()
10229 pid_t parent = getpid ();
10230 pid_t child;
10232 sparc_address_test (0);
10234 child = vfork ();
10236 if (child == 0) {
10237 /* Here is another test for sparc vfork register problems. This
10238 test uses lots of local variables, at least as many local
10239 variables as main has allocated so far including compiler
10240 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10241 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10242 reuse the register of parent for one of the local variables,
10243 since it will think that parent can't possibly be used any more
10244 in this routine. Assigning to the local variable will thus
10245 munge parent in the parent process. */
10246 pid_t
10247 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10248 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10249 /* Convince the compiler that p..p7 are live; otherwise, it might
10250 use the same hardware register for all 8 local variables. */
10251 if (p != p1 || p != p2 || p != p3 || p != p4
10252 || p != p5 || p != p6 || p != p7)
10253 _exit(1);
10255 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10256 from child file descriptors. If the child closes a descriptor
10257 before it execs or exits, this munges the parent's descriptor
10258 as well. Test for this by closing stdout in the child. */
10259 _exit(close(fileno(stdout)) != 0);
10260 } else {
10261 int status;
10262 struct stat st;
10264 while (wait(&status) != child)
10266 return (
10267 /* Was there some problem with vforking? */
10268 child < 0
10270 /* Did the child fail? (This shouldn't happen.) */
10271 || status
10273 /* Did the vfork/compiler bug occur? */
10274 || parent != getpid()
10276 /* Did the file descriptor bug occur? */
10277 || fstat(fileno(stdout), &st) != 0
10281 _ACEOF
10282 if ac_fn_c_try_run "$LINENO"; then :
10283 ac_cv_func_vfork_works=yes
10284 else
10285 ac_cv_func_vfork_works=no
10287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10288 conftest.$ac_objext conftest.beam conftest.$ac_ext
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10293 $as_echo "$ac_cv_func_vfork_works" >&6; }
10296 if test "x$ac_cv_func_fork_works" = xcross; then
10297 ac_cv_func_vfork_works=$ac_cv_func_vfork
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10299 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10302 if test "x$ac_cv_func_vfork_works" = xyes; then
10304 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10306 else
10308 $as_echo "#define vfork fork" >>confdefs.h
10311 if test "x$ac_cv_func_fork_works" = xyes; then
10313 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10318 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10319 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10320 $as_echo_n "(cached) " >&6
10321 else
10322 rm -f conftest.sym conftest.file
10323 echo >conftest.file
10324 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10325 if test "$cross_compiling" = yes; then :
10326 ac_cv_func_lstat_dereferences_slashed_symlink=no
10327 else
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10330 $ac_includes_default
10332 main ()
10334 struct stat sbuf;
10335 /* Linux will dereference the symlink and fail, as required by POSIX.
10336 That is better in the sense that it means we will not
10337 have to compile and use the lstat wrapper. */
10338 return lstat ("conftest.sym/", &sbuf) == 0;
10340 return 0;
10342 _ACEOF
10343 if ac_fn_c_try_run "$LINENO"; then :
10344 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10345 else
10346 ac_cv_func_lstat_dereferences_slashed_symlink=no
10348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10349 conftest.$ac_objext conftest.beam conftest.$ac_ext
10352 else
10353 # If the `ln -s' command failed, then we probably don't even
10354 # have an lstat function.
10355 ac_cv_func_lstat_dereferences_slashed_symlink=no
10357 rm -f conftest.sym conftest.file
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10361 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10363 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10365 cat >>confdefs.h <<_ACEOF
10366 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10367 _ACEOF
10370 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10371 case " $LIBOBJS " in
10372 *" lstat.$ac_objext "* ) ;;
10373 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10375 esac
10379 if test x$SYS != xwin32; then :
10381 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10382 # -lseq on Dynix/PTX, -lgen on Unixware.
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
10384 $as_echo_n "checking for library containing getmntent... " >&6; }
10385 if test "${ac_cv_search_getmntent+set}" = set; then :
10386 $as_echo_n "(cached) " >&6
10387 else
10388 ac_func_search_save_LIBS=$LIBS
10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390 /* end confdefs.h. */
10392 /* Override any GCC internal prototype to avoid an error.
10393 Use char because int might match the return type of a GCC
10394 builtin and then its argument prototype would still apply. */
10395 #ifdef __cplusplus
10396 extern "C"
10397 #endif
10398 char getmntent ();
10400 main ()
10402 return getmntent ();
10404 return 0;
10406 _ACEOF
10407 for ac_lib in '' sun seq gen; do
10408 if test -z "$ac_lib"; then
10409 ac_res="none required"
10410 else
10411 ac_res=-l$ac_lib
10412 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10414 if ac_fn_c_try_link "$LINENO"; then :
10415 ac_cv_search_getmntent=$ac_res
10417 rm -f core conftest.err conftest.$ac_objext \
10418 conftest$ac_exeext
10419 if test "${ac_cv_search_getmntent+set}" = set; then :
10420 break
10422 done
10423 if test "${ac_cv_search_getmntent+set}" = set; then :
10425 else
10426 ac_cv_search_getmntent=no
10428 rm conftest.$ac_ext
10429 LIBS=$ac_func_search_save_LIBS
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
10432 $as_echo "$ac_cv_search_getmntent" >&6; }
10433 ac_res=$ac_cv_search_getmntent
10434 if test "$ac_res" != no; then :
10435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10436 ac_cv_func_getmntent=yes
10438 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
10440 else
10441 ac_cv_func_getmntent=no
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
10446 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
10447 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
10448 $as_echo_n "(cached) " >&6
10449 else
10450 if test "$cross_compiling" = yes; then :
10451 ac_cv_func_lstat_empty_string_bug=yes
10452 else
10453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10455 $ac_includes_default
10457 main ()
10459 struct stat sbuf;
10460 return lstat ("", &sbuf) == 0;
10462 return 0;
10464 _ACEOF
10465 if ac_fn_c_try_run "$LINENO"; then :
10466 ac_cv_func_lstat_empty_string_bug=no
10467 else
10468 ac_cv_func_lstat_empty_string_bug=yes
10470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10471 conftest.$ac_objext conftest.beam conftest.$ac_ext
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
10476 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
10477 if test $ac_cv_func_lstat_empty_string_bug = yes; then
10478 case " $LIBOBJS " in
10479 *" lstat.$ac_objext "* ) ;;
10480 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10482 esac
10485 cat >>confdefs.h <<_ACEOF
10486 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
10487 _ACEOF
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10492 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10493 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10494 $as_echo_n "(cached) " >&6
10495 else
10496 rm -f conftest.sym conftest.file
10497 echo >conftest.file
10498 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10499 if test "$cross_compiling" = yes; then :
10500 ac_cv_func_lstat_dereferences_slashed_symlink=no
10501 else
10502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h. */
10504 $ac_includes_default
10506 main ()
10508 struct stat sbuf;
10509 /* Linux will dereference the symlink and fail, as required by POSIX.
10510 That is better in the sense that it means we will not
10511 have to compile and use the lstat wrapper. */
10512 return lstat ("conftest.sym/", &sbuf) == 0;
10514 return 0;
10516 _ACEOF
10517 if ac_fn_c_try_run "$LINENO"; then :
10518 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10519 else
10520 ac_cv_func_lstat_dereferences_slashed_symlink=no
10522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10523 conftest.$ac_objext conftest.beam conftest.$ac_ext
10526 else
10527 # If the `ln -s' command failed, then we probably don't even
10528 # have an lstat function.
10529 ac_cv_func_lstat_dereferences_slashed_symlink=no
10531 rm -f conftest.sym conftest.file
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10535 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10537 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10539 cat >>confdefs.h <<_ACEOF
10540 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10541 _ACEOF
10544 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10545 case " $LIBOBJS " in
10546 *" lstat.$ac_objext "* ) ;;
10547 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10549 esac
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
10556 $as_echo_n "checking for working memcmp... " >&6; }
10557 if test "${ac_cv_func_memcmp_working+set}" = set; then :
10558 $as_echo_n "(cached) " >&6
10559 else
10560 if test "$cross_compiling" = yes; then :
10561 ac_cv_func_memcmp_working=no
10562 else
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10565 $ac_includes_default
10567 main ()
10570 /* Some versions of memcmp are not 8-bit clean. */
10571 char c0 = '\100', c1 = '\200', c2 = '\201';
10572 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10573 return 1;
10575 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10576 or more and with at least one buffer not starting on a 4-byte boundary.
10577 William Lewis provided this test program. */
10579 char foo[21];
10580 char bar[21];
10581 int i;
10582 for (i = 0; i < 4; i++)
10584 char *a = foo + i;
10585 char *b = bar + i;
10586 strcpy (a, "--------01111111");
10587 strcpy (b, "--------10000000");
10588 if (memcmp (a, b, 16) >= 0)
10589 return 1;
10591 return 0;
10595 return 0;
10597 _ACEOF
10598 if ac_fn_c_try_run "$LINENO"; then :
10599 ac_cv_func_memcmp_working=yes
10600 else
10601 ac_cv_func_memcmp_working=no
10603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10604 conftest.$ac_objext conftest.beam conftest.$ac_ext
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
10609 $as_echo "$ac_cv_func_memcmp_working" >&6; }
10610 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10611 *" memcmp.$ac_objext "* ) ;;
10612 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10614 esac
10617 for ac_header in sys/select.h sys/socket.h
10618 do :
10619 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10620 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10621 eval as_val=\$$as_ac_Header
10622 if test "x$as_val" = x""yes; then :
10623 cat >>confdefs.h <<_ACEOF
10624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10625 _ACEOF
10629 done
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
10632 $as_echo_n "checking types of arguments for select... " >&6; }
10633 if test "${ac_cv_func_select_args+set}" = set; then :
10634 $as_echo_n "(cached) " >&6
10635 else
10636 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10637 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10638 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h. */
10641 $ac_includes_default
10642 #ifdef HAVE_SYS_SELECT_H
10643 # include <sys/select.h>
10644 #endif
10645 #ifdef HAVE_SYS_SOCKET_H
10646 # include <sys/socket.h>
10647 #endif
10650 main ()
10652 extern int select ($ac_arg1,
10653 $ac_arg234, $ac_arg234, $ac_arg234,
10654 $ac_arg5);
10656 return 0;
10658 _ACEOF
10659 if ac_fn_c_try_compile "$LINENO"; then :
10660 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10663 done
10664 done
10665 done
10666 # Provide a safe default value.
10667 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10671 $as_echo "$ac_cv_func_select_args" >&6; }
10672 ac_save_IFS=$IFS; IFS=','
10673 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10674 IFS=$ac_save_IFS
10675 shift
10677 cat >>confdefs.h <<_ACEOF
10678 #define SELECT_TYPE_ARG1 $1
10679 _ACEOF
10682 cat >>confdefs.h <<_ACEOF
10683 #define SELECT_TYPE_ARG234 ($2)
10684 _ACEOF
10687 cat >>confdefs.h <<_ACEOF
10688 #define SELECT_TYPE_ARG5 ($3)
10689 _ACEOF
10691 rm -f conftest*
10693 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
10694 $as_echo_n "(cached) " >&6
10695 else
10696 ac_cv_func_setvbuf_reversed=no
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10701 $as_echo_n "checking return type of signal handlers... " >&6; }
10702 if test "${ac_cv_type_signal+set}" = set; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10707 #include <sys/types.h>
10708 #include <signal.h>
10711 main ()
10713 return *(signal (0, 0)) (0) == 1;
10715 return 0;
10717 _ACEOF
10718 if ac_fn_c_try_compile "$LINENO"; then :
10719 ac_cv_type_signal=int
10720 else
10721 ac_cv_type_signal=void
10723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10726 $as_echo "$ac_cv_type_signal" >&6; }
10728 cat >>confdefs.h <<_ACEOF
10729 #define RETSIGTYPE $ac_cv_type_signal
10730 _ACEOF
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
10734 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
10735 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
10736 $as_echo_n "(cached) " >&6
10737 else
10738 if test "$cross_compiling" = yes; then :
10739 ac_cv_func_stat_empty_string_bug=yes
10740 else
10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10743 $ac_includes_default
10745 main ()
10747 struct stat sbuf;
10748 return stat ("", &sbuf) == 0;
10750 return 0;
10752 _ACEOF
10753 if ac_fn_c_try_run "$LINENO"; then :
10754 ac_cv_func_stat_empty_string_bug=no
10755 else
10756 ac_cv_func_stat_empty_string_bug=yes
10758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10759 conftest.$ac_objext conftest.beam conftest.$ac_ext
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
10764 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
10765 if test $ac_cv_func_stat_empty_string_bug = yes; then
10766 case " $LIBOBJS " in
10767 *" stat.$ac_objext "* ) ;;
10768 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10770 esac
10773 cat >>confdefs.h <<_ACEOF
10774 #define HAVE_STAT_EMPTY_STRING_BUG 1
10775 _ACEOF
10779 for ac_func in strftime
10780 do :
10781 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
10782 if test "x$ac_cv_func_strftime" = x""yes; then :
10783 cat >>confdefs.h <<_ACEOF
10784 #define HAVE_STRFTIME 1
10785 _ACEOF
10787 else
10788 # strftime is in -lintl on SCO UNIX.
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
10790 $as_echo_n "checking for strftime in -lintl... " >&6; }
10791 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
10792 $as_echo_n "(cached) " >&6
10793 else
10794 ac_check_lib_save_LIBS=$LIBS
10795 LIBS="-lintl $LIBS"
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10799 /* Override any GCC internal prototype to avoid an error.
10800 Use char because int might match the return type of a GCC
10801 builtin and then its argument prototype would still apply. */
10802 #ifdef __cplusplus
10803 extern "C"
10804 #endif
10805 char strftime ();
10807 main ()
10809 return strftime ();
10811 return 0;
10813 _ACEOF
10814 if ac_fn_c_try_link "$LINENO"; then :
10815 ac_cv_lib_intl_strftime=yes
10816 else
10817 ac_cv_lib_intl_strftime=no
10819 rm -f core conftest.err conftest.$ac_objext \
10820 conftest$ac_exeext conftest.$ac_ext
10821 LIBS=$ac_check_lib_save_LIBS
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
10824 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
10825 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
10826 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
10828 LIBS="-lintl $LIBS"
10832 done
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
10835 $as_echo_n "checking for working strtod... " >&6; }
10836 if test "${ac_cv_func_strtod+set}" = set; then :
10837 $as_echo_n "(cached) " >&6
10838 else
10839 if test "$cross_compiling" = yes; then :
10840 ac_cv_func_strtod=no
10841 else
10842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h. */
10845 $ac_includes_default
10846 #ifndef strtod
10847 double strtod ();
10848 #endif
10850 main()
10853 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10854 char *string = " +69";
10855 char *term;
10856 double value;
10857 value = strtod (string, &term);
10858 if (value != 69 || term != (string + 4))
10859 return 1;
10863 /* Under Solaris 2.4, strtod returns the wrong value for the
10864 terminating character under some conditions. */
10865 char *string = "NaN";
10866 char *term;
10867 strtod (string, &term);
10868 if (term != string && *(term - 1) == 0)
10869 return 1;
10871 return 0;
10874 _ACEOF
10875 if ac_fn_c_try_run "$LINENO"; then :
10876 ac_cv_func_strtod=yes
10877 else
10878 ac_cv_func_strtod=no
10880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10881 conftest.$ac_objext conftest.beam conftest.$ac_ext
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
10886 $as_echo "$ac_cv_func_strtod" >&6; }
10887 if test $ac_cv_func_strtod = no; then
10888 case " $LIBOBJS " in
10889 *" strtod.$ac_objext "* ) ;;
10890 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10892 esac
10894 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
10895 if test "x$ac_cv_func_pow" = x""yes; then :
10899 if test $ac_cv_func_pow = no; then
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
10901 $as_echo_n "checking for pow in -lm... " >&6; }
10902 if test "${ac_cv_lib_m_pow+set}" = set; then :
10903 $as_echo_n "(cached) " >&6
10904 else
10905 ac_check_lib_save_LIBS=$LIBS
10906 LIBS="-lm $LIBS"
10907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10910 /* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
10913 #ifdef __cplusplus
10914 extern "C"
10915 #endif
10916 char pow ();
10918 main ()
10920 return pow ();
10922 return 0;
10924 _ACEOF
10925 if ac_fn_c_try_link "$LINENO"; then :
10926 ac_cv_lib_m_pow=yes
10927 else
10928 ac_cv_lib_m_pow=no
10930 rm -f core conftest.err conftest.$ac_objext \
10931 conftest$ac_exeext conftest.$ac_ext
10932 LIBS=$ac_check_lib_save_LIBS
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
10935 $as_echo "$ac_cv_lib_m_pow" >&6; }
10936 if test "x$ac_cv_lib_m_pow" = x""yes; then :
10937 POW_LIB=-lm
10938 else
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
10940 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10947 for ac_func in vprintf
10948 do :
10949 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10950 if test "x$ac_cv_func_vprintf" = x""yes; then :
10951 cat >>confdefs.h <<_ACEOF
10952 #define HAVE_VPRINTF 1
10953 _ACEOF
10955 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10956 if test "x$ac_cv_func__doprnt" = x""yes; then :
10958 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10963 done
10966 if test $cross_compiling = yes -a $gnumalloc = yes; then :
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10969 configure cannot check whether malloc() and realloc() are GNU libc
10970 compatible. You have to be ABSOLUTELY sure that they are, otherwise
10971 run configure with the --without-gnu-malloc switch." >&5
10972 $as_echo "$as_me: WARNING:
10973 configure cannot check whether malloc() and realloc() are GNU libc
10974 compatible. You have to be ABSOLUTELY sure that they are, otherwise
10975 run configure with the --without-gnu-malloc switch." >&2;}
10976 _mule_warning_8=yes
10977 _mule_has_warnings=yes
10979 ac_cv_func_malloc_0_nonnull=yes
10980 ac_cv_func_realloc_0_nonnull=yes
10983 for ac_header in stdlib.h
10984 do :
10985 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10986 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
10987 cat >>confdefs.h <<_ACEOF
10988 #define HAVE_STDLIB_H 1
10989 _ACEOF
10993 done
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10996 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
10997 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
10998 $as_echo_n "(cached) " >&6
10999 else
11000 if test "$cross_compiling" = yes; then :
11001 ac_cv_func_malloc_0_nonnull=no
11002 else
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11005 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11006 # include <stdlib.h>
11007 #else
11008 char *malloc ();
11009 #endif
11012 main ()
11014 return ! malloc (0);
11016 return 0;
11018 _ACEOF
11019 if ac_fn_c_try_run "$LINENO"; then :
11020 ac_cv_func_malloc_0_nonnull=yes
11021 else
11022 ac_cv_func_malloc_0_nonnull=no
11024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11025 conftest.$ac_objext conftest.beam conftest.$ac_ext
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11030 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11031 if test $ac_cv_func_malloc_0_nonnull = yes; then :
11033 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
11035 else
11036 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
11038 case " $LIBOBJS " in
11039 *" malloc.$ac_objext "* ) ;;
11040 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
11042 esac
11045 $as_echo "#define malloc rpl_malloc" >>confdefs.h
11050 for ac_header in stdlib.h
11051 do :
11052 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11053 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
11054 cat >>confdefs.h <<_ACEOF
11055 #define HAVE_STDLIB_H 1
11056 _ACEOF
11060 done
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
11063 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
11064 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
11066 else
11067 if test "$cross_compiling" = yes; then :
11068 ac_cv_func_realloc_0_nonnull=no
11069 else
11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11072 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11073 # include <stdlib.h>
11074 #else
11075 char *realloc ();
11076 #endif
11079 main ()
11081 return ! realloc (0, 0);
11083 return 0;
11085 _ACEOF
11086 if ac_fn_c_try_run "$LINENO"; then :
11087 ac_cv_func_realloc_0_nonnull=yes
11088 else
11089 ac_cv_func_realloc_0_nonnull=no
11091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11092 conftest.$ac_objext conftest.beam conftest.$ac_ext
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
11097 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
11098 if test $ac_cv_func_realloc_0_nonnull = yes; then :
11100 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
11102 else
11103 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
11105 case " $LIBOBJS " in
11106 *" realloc.$ac_objext "* ) ;;
11107 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
11109 esac
11112 $as_echo "#define realloc rpl_realloc" >>confdefs.h
11117 for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset nl_langinfo pow select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul sigaction
11118 do :
11119 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11120 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11121 eval as_val=\$$as_ac_var
11122 if test "x$as_val" = x""yes; then :
11123 cat >>confdefs.h <<_ACEOF
11124 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11125 _ACEOF
11128 done
11130 #-------------------------------------------------------------------------------
11131 # End of autoscan stuff
11132 #-------------------------------------------------------------------------------
11134 for ac_func in mkdir getrlimit setrlimit getopt_long
11135 do :
11136 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11137 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11138 eval as_val=\$$as_ac_var
11139 if test "x$as_val" = x""yes; then :
11140 cat >>confdefs.h <<_ACEOF
11141 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11142 _ACEOF
11145 done
11151 for ac_header in $ac_header_list
11152 do :
11153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11154 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11156 eval as_val=\$$as_ac_Header
11157 if test "x$as_val" = x""yes; then :
11158 cat >>confdefs.h <<_ACEOF
11159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11160 _ACEOF
11164 done
11172 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
11174 # Check whether --enable-mmap was given.
11175 if test "${enable_mmap+set}" = set; then :
11176 enableval=$enable_mmap;
11181 if test ${enable_mmap:-no} = yes; then :
11183 for ac_header in sys/mman.h
11184 do :
11185 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11186 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11187 cat >>confdefs.h <<_ACEOF
11188 #define HAVE_SYS_MMAN_H 1
11189 _ACEOF
11193 done
11196 for ac_func in getpagesize
11197 do :
11198 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11199 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11200 cat >>confdefs.h <<_ACEOF
11201 #define HAVE_GETPAGESIZE 1
11202 _ACEOF
11205 done
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11208 $as_echo_n "checking for working mmap... " >&6; }
11209 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11212 if test "$cross_compiling" = yes; then :
11213 ac_cv_func_mmap_fixed_mapped=no
11214 else
11215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11216 /* end confdefs.h. */
11217 $ac_includes_default
11218 /* malloc might have been renamed as rpl_malloc. */
11219 #undef malloc
11221 /* Thanks to Mike Haertel and Jim Avera for this test.
11222 Here is a matrix of mmap possibilities:
11223 mmap private not fixed
11224 mmap private fixed at somewhere currently unmapped
11225 mmap private fixed at somewhere already mapped
11226 mmap shared not fixed
11227 mmap shared fixed at somewhere currently unmapped
11228 mmap shared fixed at somewhere already mapped
11229 For private mappings, we should verify that changes cannot be read()
11230 back from the file, nor mmap's back from the file at a different
11231 address. (There have been systems where private was not correctly
11232 implemented like the infamous i386 svr4.0, and systems where the
11233 VM page cache was not coherent with the file system buffer cache
11234 like early versions of FreeBSD and possibly contemporary NetBSD.)
11235 For shared mappings, we should conversely verify that changes get
11236 propagated back to all the places they're supposed to be.
11238 Grep wants private fixed already mapped.
11239 The main things grep needs to know about mmap are:
11240 * does it exist and is it safe to write into the mmap'd area
11241 * how to use it (BSD variants) */
11243 #include <fcntl.h>
11244 #include <sys/mman.h>
11246 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11247 char *malloc ();
11248 #endif
11250 /* This mess was copied from the GNU getpagesize.h. */
11251 #ifndef HAVE_GETPAGESIZE
11252 # ifdef _SC_PAGESIZE
11253 # define getpagesize() sysconf(_SC_PAGESIZE)
11254 # else /* no _SC_PAGESIZE */
11255 # ifdef HAVE_SYS_PARAM_H
11256 # include <sys/param.h>
11257 # ifdef EXEC_PAGESIZE
11258 # define getpagesize() EXEC_PAGESIZE
11259 # else /* no EXEC_PAGESIZE */
11260 # ifdef NBPG
11261 # define getpagesize() NBPG * CLSIZE
11262 # ifndef CLSIZE
11263 # define CLSIZE 1
11264 # endif /* no CLSIZE */
11265 # else /* no NBPG */
11266 # ifdef NBPC
11267 # define getpagesize() NBPC
11268 # else /* no NBPC */
11269 # ifdef PAGESIZE
11270 # define getpagesize() PAGESIZE
11271 # endif /* PAGESIZE */
11272 # endif /* no NBPC */
11273 # endif /* no NBPG */
11274 # endif /* no EXEC_PAGESIZE */
11275 # else /* no HAVE_SYS_PARAM_H */
11276 # define getpagesize() 8192 /* punt totally */
11277 # endif /* no HAVE_SYS_PARAM_H */
11278 # endif /* no _SC_PAGESIZE */
11280 #endif /* no HAVE_GETPAGESIZE */
11283 main ()
11285 char *data, *data2, *data3;
11286 int i, pagesize;
11287 int fd, fd2;
11289 pagesize = getpagesize ();
11291 /* First, make a file with some known garbage in it. */
11292 data = (char *) malloc (pagesize);
11293 if (!data)
11294 return 1;
11295 for (i = 0; i < pagesize; ++i)
11296 *(data + i) = rand ();
11297 umask (0);
11298 fd = creat ("conftest.mmap", 0600);
11299 if (fd < 0)
11300 return 2;
11301 if (write (fd, data, pagesize) != pagesize)
11302 return 3;
11303 close (fd);
11305 /* Next, check that the tail of a page is zero-filled. File must have
11306 non-zero length, otherwise we risk SIGBUS for entire page. */
11307 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11308 if (fd2 < 0)
11309 return 4;
11310 data2 = "";
11311 if (write (fd2, data2, 1) != 1)
11312 return 5;
11313 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11314 if (data2 == MAP_FAILED)
11315 return 6;
11316 for (i = 0; i < pagesize; ++i)
11317 if (*(data2 + i))
11318 return 7;
11319 close (fd2);
11320 if (munmap (data2, pagesize))
11321 return 8;
11323 /* Next, try to mmap the file at a fixed address which already has
11324 something else allocated at it. If we can, also make sure that
11325 we see the same garbage. */
11326 fd = open ("conftest.mmap", O_RDWR);
11327 if (fd < 0)
11328 return 9;
11329 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11330 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11331 return 10;
11332 for (i = 0; i < pagesize; ++i)
11333 if (*(data + i) != *(data2 + i))
11334 return 11;
11336 /* Finally, make sure that changes to the mapped area do not
11337 percolate back to the file as seen by read(). (This is a bug on
11338 some variants of i386 svr4.0.) */
11339 for (i = 0; i < pagesize; ++i)
11340 *(data2 + i) = *(data2 + i) + 1;
11341 data3 = (char *) malloc (pagesize);
11342 if (!data3)
11343 return 12;
11344 if (read (fd, data3, pagesize) != pagesize)
11345 return 13;
11346 for (i = 0; i < pagesize; ++i)
11347 if (*(data + i) != *(data3 + i))
11348 return 14;
11349 close (fd);
11350 return 0;
11352 _ACEOF
11353 if ac_fn_c_try_run "$LINENO"; then :
11354 ac_cv_func_mmap_fixed_mapped=yes
11355 else
11356 ac_cv_func_mmap_fixed_mapped=no
11358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11359 conftest.$ac_objext conftest.beam conftest.$ac_ext
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11364 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11365 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11367 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11370 rm -f conftest.mmap conftest.txt
11372 for ac_func in munmap sysconf
11373 do :
11374 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11375 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11376 eval as_val=\$$as_ac_var
11377 if test "x$as_val" = x""yes; then :
11378 cat >>confdefs.h <<_ACEOF
11379 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11380 _ACEOF
11383 done
11385 if test $ac_cv_func_sysconf = yes; then :
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
11388 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h. */
11393 #include <unistd.h>
11396 main ()
11399 return sysconf(_SC_PAGESIZE);
11402 return 0;
11405 _ACEOF
11406 if ac_fn_c_try_link "$LINENO"; then :
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
11409 $as_echo "_SC_PAGESIZE" >&6; }
11411 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
11414 else
11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11420 #include <unistd.h>
11423 main ()
11426 return sysconf(_SC_PAGE_SIZE);
11429 return 0;
11432 _ACEOF
11433 if ac_fn_c_try_link "$LINENO"; then :
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
11436 $as_echo "_SC_PAGE_SIZE" >&6; }
11438 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
11441 else
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11444 $as_echo "none" >&6; }
11447 rm -f core conftest.err conftest.$ac_objext \
11448 conftest$ac_exeext conftest.$ac_ext
11451 rm -f core conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
11456 else
11458 # fake the result of the test for munmap() for the gettext macros
11459 ac_cv_func_munmap=no
11465 mule_backup_CPPFLAGS="$CPPFLAGS"
11466 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
11467 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
11468 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
11469 ac_have_decl=1
11470 else
11471 ac_have_decl=0
11474 cat >>confdefs.h <<_ACEOF
11475 #define HAVE_DECL_STRERROR_R $ac_have_decl
11476 _ACEOF
11478 for ac_func in strerror_r
11479 do :
11480 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
11481 if test "x$ac_cv_func_strerror_r" = x""yes; then :
11482 cat >>confdefs.h <<_ACEOF
11483 #define HAVE_STRERROR_R 1
11484 _ACEOF
11487 done
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
11490 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
11491 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
11492 $as_echo_n "(cached) " >&6
11493 else
11495 ac_cv_func_strerror_r_char_p=no
11496 if test $ac_cv_have_decl_strerror_r = yes; then
11497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498 /* end confdefs.h. */
11499 $ac_includes_default
11501 main ()
11504 char buf[100];
11505 char x = *strerror_r (0, buf, sizeof buf);
11506 char *p = strerror_r (0, buf, sizeof buf);
11507 return !p || x;
11510 return 0;
11512 _ACEOF
11513 if ac_fn_c_try_compile "$LINENO"; then :
11514 ac_cv_func_strerror_r_char_p=yes
11516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11517 else
11518 # strerror_r is not declared. Choose between
11519 # systems that have relatively inaccessible declarations for the
11520 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
11521 # former has a strerror_r that returns char*, while the latter
11522 # has a strerror_r that returns `int'.
11523 # This test should segfault on the DEC system.
11524 if test "$cross_compiling" = yes; then :
11526 else
11527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h. */
11529 $ac_includes_default
11530 extern char *strerror_r ();
11532 main ()
11534 char buf[100];
11535 char x = *strerror_r (0, buf, sizeof buf);
11536 return ! isalpha (x);
11538 return 0;
11540 _ACEOF
11541 if ac_fn_c_try_run "$LINENO"; then :
11542 ac_cv_func_strerror_r_char_p=yes
11544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11545 conftest.$ac_objext conftest.beam conftest.$ac_ext
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
11552 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
11553 if test $ac_cv_func_strerror_r_char_p = yes; then
11555 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
11559 CPPFLAGS="$mule_backup_CPPFLAGS"
11561 # Look for a way to preallocate disk space for files.
11562 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
11565 $as_echo_n "checking for fallocate... " >&6; }
11566 mule_backup_CPPFLAGS="$CPPFLAGS"
11567 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
11568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h. */
11572 #define _GNU_SOURCE
11573 #ifdef HAVE_FCNTL_H
11574 # include <fcntl.h>
11575 #endif
11576 #include <linux/falloc.h>
11579 main ()
11582 fallocate(0, 0, 0, 0);
11585 return 0;
11588 _ACEOF
11589 if ac_fn_c_try_link "$LINENO"; then :
11592 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11595 $as_echo "yes" >&6; }
11597 else
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600 $as_echo "no" >&6; }
11603 rm -f core conftest.err conftest.$ac_objext \
11604 conftest$ac_exeext conftest.$ac_ext
11605 CPPFLAGS="$mule_backup_CPPFLAGS"
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
11609 $as_echo_n "checking for SYS_fallocate... " >&6; }
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11614 #include <sys/syscall.h>
11615 #include <sys/types.h>
11616 #include <unistd.h>
11619 main ()
11622 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
11625 return 0;
11628 _ACEOF
11629 if ac_fn_c_try_link "$LINENO"; then :
11632 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11635 $as_echo "yes" >&6; }
11637 else
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 $as_echo "no" >&6; }
11643 rm -f core conftest.err conftest.$ac_objext \
11644 conftest$ac_exeext conftest.$ac_ext
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
11647 $as_echo_n "checking for posix_fallocate... " >&6; }
11648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11649 /* end confdefs.h. */
11652 #define _XOPEN_SOURCE 600
11653 #include <stdlib.h>
11654 #ifdef HAVE_FCNTL_H
11655 # include <fcntl.h>
11656 #endif
11659 main ()
11662 posix_fallocate(0, 0, 0);
11665 return 0;
11668 _ACEOF
11669 if ac_fn_c_try_link "$LINENO"; then :
11672 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11675 $as_echo "yes" >&6; }
11677 else
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11680 $as_echo "no" >&6; }
11683 rm -f core conftest.err conftest.$ac_objext \
11684 conftest$ac_exeext conftest.$ac_ext
11688 # Checking Native Language Support
11691 MKINSTALLDIRS=
11692 if test -n "$ac_aux_dir"; then
11693 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
11695 if test -z "$MKINSTALLDIRS"; then
11696 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11703 # Extract the first word of "msgfmt", so it can be a program name with args.
11704 set dummy msgfmt; ac_word=$2
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11706 $as_echo_n "checking for $ac_word... " >&6; }
11707 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 case "$MSGFMT" in
11712 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11716 for ac_dir in $PATH; do
11717 test -z "$ac_dir" && ac_dir=.
11718 if test -f $ac_dir/$ac_word; then
11719 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11720 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11721 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11722 break
11725 done
11726 IFS="$ac_save_ifs"
11727 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11729 esac
11731 MSGFMT="$ac_cv_path_MSGFMT"
11732 if test "$MSGFMT" != ":"; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11734 $as_echo "$MSGFMT" >&6; }
11735 else
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; }
11740 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11741 set dummy gmsgfmt; ac_word=$2
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11743 $as_echo_n "checking for $ac_word... " >&6; }
11744 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11745 $as_echo_n "(cached) " >&6
11746 else
11747 case $GMSGFMT in
11748 [\\/]* | ?:[\\/]*)
11749 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753 for as_dir in $PATH
11755 IFS=$as_save_IFS
11756 test -z "$as_dir" && as_dir=.
11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11759 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11761 break 2
11763 done
11764 done
11765 IFS=$as_save_IFS
11767 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11769 esac
11771 GMSGFMT=$ac_cv_path_GMSGFMT
11772 if test -n "$GMSGFMT"; then
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11774 $as_echo "$GMSGFMT" >&6; }
11775 else
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777 $as_echo "no" >&6; }
11782 # Extract the first word of "xgettext", so it can be a program name with args.
11783 set dummy xgettext; ac_word=$2
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11785 $as_echo_n "checking for $ac_word... " >&6; }
11786 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 case "$XGETTEXT" in
11791 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11795 for ac_dir in $PATH; do
11796 test -z "$ac_dir" && ac_dir=.
11797 if test -f $ac_dir/$ac_word; then
11798 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
11799 (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
11800 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11801 break
11804 done
11805 IFS="$ac_save_ifs"
11806 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11808 esac
11810 XGETTEXT="$ac_cv_path_XGETTEXT"
11811 if test "$XGETTEXT" != ":"; then
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11813 $as_echo "$XGETTEXT" >&6; }
11814 else
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816 $as_echo "no" >&6; }
11819 rm -f messages.po
11821 # Extract the first word of "msgmerge", so it can be a program name with args.
11822 set dummy msgmerge; ac_word=$2
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11824 $as_echo_n "checking for $ac_word... " >&6; }
11825 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11826 $as_echo_n "(cached) " >&6
11827 else
11828 case "$MSGMERGE" in
11830 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11834 for ac_dir in $PATH; do
11835 test -z "$ac_dir" && ac_dir=.
11836 if test -f $ac_dir/$ac_word; then
11837 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11838 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
11839 break
11842 done
11843 IFS="$ac_save_ifs"
11844 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11846 esac
11848 MSGMERGE="$ac_cv_path_MSGMERGE"
11849 if test "$MSGMERGE" != ":"; then
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11851 $as_echo "$MSGMERGE" >&6; }
11852 else
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11858 if test "$GMSGFMT" != ":"; then
11859 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11860 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11862 else
11863 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11865 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11866 GMSGFMT=":"
11870 if test "$XGETTEXT" != ":"; then
11871 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
11872 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11874 else
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11876 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11877 XGETTEXT=":"
11879 rm -f messages.po
11882 ac_config_commands="$ac_config_commands default-1"
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
11887 $as_echo_n "checking for strerror in -lcposix... " >&6; }
11888 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
11889 $as_echo_n "(cached) " >&6
11890 else
11891 ac_check_lib_save_LIBS=$LIBS
11892 LIBS="-lcposix $LIBS"
11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11894 /* end confdefs.h. */
11896 /* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
11899 #ifdef __cplusplus
11900 extern "C"
11901 #endif
11902 char strerror ();
11904 main ()
11906 return strerror ();
11908 return 0;
11910 _ACEOF
11911 if ac_fn_c_try_link "$LINENO"; then :
11912 ac_cv_lib_cposix_strerror=yes
11913 else
11914 ac_cv_lib_cposix_strerror=no
11916 rm -f core conftest.err conftest.$ac_objext \
11917 conftest$ac_exeext conftest.$ac_ext
11918 LIBS=$ac_check_lib_save_LIBS
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
11921 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
11922 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
11923 LIBS="$LIBS -lcposix"
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
11930 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
11931 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11933 else
11934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h. */
11937 #include <features.h>
11938 #ifdef __GNU_LIBRARY__
11939 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11940 Lucky GNU user
11941 #endif
11942 #endif
11944 _ACEOF
11945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11946 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
11947 ac_cv_gnu_library_2_1=yes
11948 else
11949 ac_cv_gnu_library_2_1=no
11951 rm -f conftest*
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11957 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11959 GLIBC21="$ac_cv_gnu_library_2_1"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
11965 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
11966 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
11967 $as_echo_n "(cached) " >&6
11968 else
11970 if test "$cross_compiling" = yes; then :
11972 # Guess based on the CPU.
11973 case "$host_cpu" in
11974 alpha* | i3456786 | m68k | s390*)
11975 gt_cv_int_divbyzero_sigfpe="guessing yes";;
11977 gt_cv_int_divbyzero_sigfpe="guessing no";;
11978 esac
11980 else
11981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11984 #include <stdlib.h>
11985 #include <signal.h>
11987 static void
11988 #ifdef __cplusplus
11989 sigfpe_handler (int sig)
11990 #else
11991 sigfpe_handler (sig) int sig;
11992 #endif
11994 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
11995 exit (sig != SIGFPE);
11998 int x = 1;
11999 int y = 0;
12000 int z;
12001 int nan;
12003 int main ()
12005 signal (SIGFPE, sigfpe_handler);
12006 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
12007 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
12008 signal (SIGTRAP, sigfpe_handler);
12009 #endif
12010 /* Linux/SPARC yields signal SIGILL. */
12011 #if defined (__sparc__) && defined (__linux__)
12012 signal (SIGILL, sigfpe_handler);
12013 #endif
12015 z = x / y;
12016 nan = y / y;
12017 exit (1);
12020 _ACEOF
12021 if ac_fn_c_try_run "$LINENO"; then :
12022 gt_cv_int_divbyzero_sigfpe=yes
12023 else
12024 gt_cv_int_divbyzero_sigfpe=no
12026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12027 conftest.$ac_objext conftest.beam conftest.$ac_ext
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
12033 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
12034 case "$gt_cv_int_divbyzero_sigfpe" in
12035 *yes) value=1;;
12036 *) value=0;;
12037 esac
12039 cat >>confdefs.h <<_ACEOF
12040 #define INTDIV0_RAISES_SIGFPE $value
12041 _ACEOF
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12046 $as_echo_n "checking for inttypes.h... " >&6; }
12047 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
12048 $as_echo_n "(cached) " >&6
12049 else
12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12052 #include <sys/types.h>
12053 #include <inttypes.h>
12055 main ()
12057 uintmax_t i = (uintmax_t) -1;
12059 return 0;
12061 _ACEOF
12062 if ac_fn_c_try_compile "$LINENO"; then :
12063 jm_ac_cv_header_inttypes_h=yes
12064 else
12065 jm_ac_cv_header_inttypes_h=no
12067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
12070 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
12071 if test $jm_ac_cv_header_inttypes_h = yes; then
12073 cat >>confdefs.h <<_ACEOF
12074 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
12075 _ACEOF
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
12081 $as_echo_n "checking for stdint.h... " >&6; }
12082 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
12083 $as_echo_n "(cached) " >&6
12084 else
12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h. */
12087 #include <sys/types.h>
12088 #include <stdint.h>
12090 main ()
12092 uintmax_t i = (uintmax_t) -1;
12094 return 0;
12096 _ACEOF
12097 if ac_fn_c_try_compile "$LINENO"; then :
12098 jm_ac_cv_header_stdint_h=yes
12099 else
12100 jm_ac_cv_header_stdint_h=no
12102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
12105 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
12106 if test $jm_ac_cv_header_stdint_h = yes; then
12108 cat >>confdefs.h <<_ACEOF
12109 #define HAVE_STDINT_H_WITH_UINTMAX 1
12110 _ACEOF
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
12116 $as_echo_n "checking for unsigned long long... " >&6; }
12117 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h. */
12122 unsigned long long ull = 1; int i = 63;
12124 main ()
12126 unsigned long long ullmax = (unsigned long long) -1;
12127 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
12129 return 0;
12131 _ACEOF
12132 if ac_fn_c_try_link "$LINENO"; then :
12133 ac_cv_type_unsigned_long_long=yes
12134 else
12135 ac_cv_type_unsigned_long_long=no
12137 rm -f core conftest.err conftest.$ac_objext \
12138 conftest$ac_exeext conftest.$ac_ext
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
12141 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
12142 if test $ac_cv_type_unsigned_long_long = yes; then
12144 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
12151 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
12153 test $ac_cv_type_unsigned_long_long = yes \
12154 && ac_type='unsigned long long' \
12155 || ac_type='unsigned long'
12157 cat >>confdefs.h <<_ACEOF
12158 #define uintmax_t $ac_type
12159 _ACEOF
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12165 $as_echo_n "checking for inttypes.h... " >&6; }
12166 if test "${gt_cv_header_inttypes_h+set}" = set; then :
12167 $as_echo_n "(cached) " >&6
12168 else
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h. */
12172 #include <sys/types.h>
12173 #include <inttypes.h>
12175 main ()
12179 return 0;
12181 _ACEOF
12182 if ac_fn_c_try_compile "$LINENO"; then :
12183 gt_cv_header_inttypes_h=yes
12184 else
12185 gt_cv_header_inttypes_h=no
12187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
12191 $as_echo "$gt_cv_header_inttypes_h" >&6; }
12192 if test $gt_cv_header_inttypes_h = yes; then
12194 cat >>confdefs.h <<_ACEOF
12195 #define HAVE_INTTYPES_H 1
12196 _ACEOF
12202 if test $gt_cv_header_inttypes_h = yes; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
12204 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
12205 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12211 #include <inttypes.h>
12212 #ifdef PRId32
12213 char *p = PRId32;
12214 #endif
12217 main ()
12221 return 0;
12223 _ACEOF
12224 if ac_fn_c_try_compile "$LINENO"; then :
12225 gt_cv_inttypes_pri_broken=no
12226 else
12227 gt_cv_inttypes_pri_broken=yes
12229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
12233 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
12235 if test "$gt_cv_inttypes_pri_broken" = yes; then
12237 cat >>confdefs.h <<_ACEOF
12238 #define PRI_MACROS_BROKEN 1
12239 _ACEOF
12244 if test "X$prefix" = "XNONE"; then
12245 acl_final_prefix="$ac_default_prefix"
12246 else
12247 acl_final_prefix="$prefix"
12249 if test "X$exec_prefix" = "XNONE"; then
12250 acl_final_exec_prefix='${prefix}'
12251 else
12252 acl_final_exec_prefix="$exec_prefix"
12254 acl_save_prefix="$prefix"
12255 prefix="$acl_final_prefix"
12256 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12257 prefix="$acl_save_prefix"
12260 # Check whether --with-gnu-ld was given.
12261 if test "${with_gnu_ld+set}" = set; then :
12262 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12263 else
12264 with_gnu_ld=no
12267 ac_prog=ld
12268 if test "$GCC" = yes; then
12269 # Check if gcc -print-prog-name=ld gives a path.
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12271 $as_echo_n "checking for ld used by GCC... " >&6; }
12272 case $host in
12273 *-*-mingw*)
12274 # gcc leaves a trailing carriage return which upsets mingw
12275 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12277 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12278 esac
12279 case $ac_prog in
12280 # Accept absolute paths.
12281 [\\/]* | [A-Za-z]:[\\/]*)
12282 re_direlt='/[^/][^/]*/\.\./'
12283 # Canonicalize the path of ld
12284 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12285 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12286 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12287 done
12288 test -z "$LD" && LD="$ac_prog"
12291 # If it fails, then pretend we aren't using GCC.
12292 ac_prog=ld
12295 # If it is relative, then search for the first ld in PATH.
12296 with_gnu_ld=unknown
12298 esac
12299 elif test "$with_gnu_ld" = yes; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12301 $as_echo_n "checking for GNU ld... " >&6; }
12302 else
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12304 $as_echo_n "checking for non-GNU ld... " >&6; }
12306 if test "${acl_cv_path_LD+set}" = set; then :
12307 $as_echo_n "(cached) " >&6
12308 else
12309 if test -z "$LD"; then
12310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12311 for ac_dir in $PATH; do
12312 test -z "$ac_dir" && ac_dir=.
12313 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12314 acl_cv_path_LD="$ac_dir/$ac_prog"
12315 # Check to see if the program is GNU ld. I'd rather use --version,
12316 # but apparently some GNU ld's only accept -v.
12317 # Break only if it was the GNU/non-GNU ld that we prefer.
12318 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12319 test "$with_gnu_ld" != no && break
12320 else
12321 test "$with_gnu_ld" != yes && break
12324 done
12325 IFS="$ac_save_ifs"
12326 else
12327 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12331 LD="$acl_cv_path_LD"
12332 if test -n "$LD"; then
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12334 $as_echo "$LD" >&6; }
12335 else
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337 $as_echo "no" >&6; }
12339 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12341 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12342 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
12343 $as_echo_n "(cached) " >&6
12344 else
12345 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12346 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12347 acl_cv_prog_gnu_ld=yes
12348 else
12349 acl_cv_prog_gnu_ld=no
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12353 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12354 with_gnu_ld=$acl_cv_prog_gnu_ld
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12359 $as_echo_n "checking for shared library run path origin... " >&6; }
12360 if test "${acl_cv_rpath+set}" = set; then :
12361 $as_echo_n "(cached) " >&6
12362 else
12364 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12365 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12366 . ./conftest.sh
12367 rm -f ./conftest.sh
12368 acl_cv_rpath=done
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12372 $as_echo "$acl_cv_rpath" >&6; }
12373 wl="$acl_cv_wl"
12374 libext="$acl_cv_libext"
12375 shlibext="$acl_cv_shlibext"
12376 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12377 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12378 hardcode_direct="$acl_cv_hardcode_direct"
12379 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12380 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
12381 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
12382 # Check whether --enable-rpath was given.
12383 if test "${enable_rpath+set}" = set; then :
12384 enableval=$enable_rpath; :
12385 else
12386 enable_rpath=yes
12396 use_additional=yes
12398 acl_save_prefix="$prefix"
12399 prefix="$acl_final_prefix"
12400 acl_save_exec_prefix="$exec_prefix"
12401 exec_prefix="$acl_final_exec_prefix"
12403 eval additional_includedir=\"$includedir\"
12404 eval additional_libdir=\"$libdir\"
12406 exec_prefix="$acl_save_exec_prefix"
12407 prefix="$acl_save_prefix"
12410 # Check whether --with-libiconv-prefix was given.
12411 if test "${with_libiconv_prefix+set}" = set; then :
12412 withval=$with_libiconv_prefix;
12413 if test "X$withval" = "Xno"; then
12414 use_additional=no
12415 else
12416 if test "X$withval" = "X"; then
12418 acl_save_prefix="$prefix"
12419 prefix="$acl_final_prefix"
12420 acl_save_exec_prefix="$exec_prefix"
12421 exec_prefix="$acl_final_exec_prefix"
12423 eval additional_includedir=\"$includedir\"
12424 eval additional_libdir=\"$libdir\"
12426 exec_prefix="$acl_save_exec_prefix"
12427 prefix="$acl_save_prefix"
12429 else
12430 additional_includedir="$withval/include"
12431 additional_libdir="$withval/lib"
12437 LIBICONV=
12438 LTLIBICONV=
12439 INCICONV=
12440 rpathdirs=
12441 ltrpathdirs=
12442 names_already_handled=
12443 names_next_round='iconv '
12444 while test -n "$names_next_round"; do
12445 names_this_round="$names_next_round"
12446 names_next_round=
12447 for name in $names_this_round; do
12448 already_handled=
12449 for n in $names_already_handled; do
12450 if test "$n" = "$name"; then
12451 already_handled=yes
12452 break
12454 done
12455 if test -z "$already_handled"; then
12456 names_already_handled="$names_already_handled $name"
12457 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12458 eval value=\"\$HAVE_LIB$uppername\"
12459 if test -n "$value"; then
12460 if test "$value" = yes; then
12461 eval value=\"\$LIB$uppername\"
12462 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12463 eval value=\"\$LTLIB$uppername\"
12464 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12465 else
12468 else
12469 found_dir=
12470 found_la=
12471 found_so=
12472 found_a=
12473 if test $use_additional = yes; then
12474 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12475 found_dir="$additional_libdir"
12476 found_so="$additional_libdir/lib$name.$shlibext"
12477 if test -f "$additional_libdir/lib$name.la"; then
12478 found_la="$additional_libdir/lib$name.la"
12480 else
12481 if test -f "$additional_libdir/lib$name.$libext"; then
12482 found_dir="$additional_libdir"
12483 found_a="$additional_libdir/lib$name.$libext"
12484 if test -f "$additional_libdir/lib$name.la"; then
12485 found_la="$additional_libdir/lib$name.la"
12490 if test "X$found_dir" = "X"; then
12491 for x in $LDFLAGS $LTLIBICONV; do
12493 acl_save_prefix="$prefix"
12494 prefix="$acl_final_prefix"
12495 acl_save_exec_prefix="$exec_prefix"
12496 exec_prefix="$acl_final_exec_prefix"
12497 eval x=\"$x\"
12498 exec_prefix="$acl_save_exec_prefix"
12499 prefix="$acl_save_prefix"
12501 case "$x" in
12502 -L*)
12503 dir=`echo "X$x" | sed -e 's/^X-L//'`
12504 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12505 found_dir="$dir"
12506 found_so="$dir/lib$name.$shlibext"
12507 if test -f "$dir/lib$name.la"; then
12508 found_la="$dir/lib$name.la"
12510 else
12511 if test -f "$dir/lib$name.$libext"; then
12512 found_dir="$dir"
12513 found_a="$dir/lib$name.$libext"
12514 if test -f "$dir/lib$name.la"; then
12515 found_la="$dir/lib$name.la"
12520 esac
12521 if test "X$found_dir" != "X"; then
12522 break
12524 done
12526 if test "X$found_dir" != "X"; then
12527 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12528 if test "X$found_so" != "X"; then
12529 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12530 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12531 else
12532 haveit=
12533 for x in $ltrpathdirs; do
12534 if test "X$x" = "X$found_dir"; then
12535 haveit=yes
12536 break
12538 done
12539 if test -z "$haveit"; then
12540 ltrpathdirs="$ltrpathdirs $found_dir"
12542 if test "$hardcode_direct" = yes; then
12543 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12544 else
12545 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12546 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12547 haveit=
12548 for x in $rpathdirs; do
12549 if test "X$x" = "X$found_dir"; then
12550 haveit=yes
12551 break
12553 done
12554 if test -z "$haveit"; then
12555 rpathdirs="$rpathdirs $found_dir"
12557 else
12558 haveit=
12559 for x in $LDFLAGS $LIBICONV; do
12561 acl_save_prefix="$prefix"
12562 prefix="$acl_final_prefix"
12563 acl_save_exec_prefix="$exec_prefix"
12564 exec_prefix="$acl_final_exec_prefix"
12565 eval x=\"$x\"
12566 exec_prefix="$acl_save_exec_prefix"
12567 prefix="$acl_save_prefix"
12569 if test "X$x" = "X-L$found_dir"; then
12570 haveit=yes
12571 break
12573 done
12574 if test -z "$haveit"; then
12575 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12577 if test "$hardcode_minus_L" != no; then
12578 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12579 else
12580 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12585 else
12586 if test "X$found_a" != "X"; then
12587 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12588 else
12589 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12592 additional_includedir=
12593 case "$found_dir" in
12594 */lib | */lib/)
12595 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12596 additional_includedir="$basedir/include"
12598 esac
12599 if test "X$additional_includedir" != "X"; then
12600 if test "X$additional_includedir" != "X/usr/include"; then
12601 haveit=
12602 if test "X$additional_includedir" = "X/usr/local/include"; then
12603 if test -n "$GCC"; then
12604 case $host_os in
12605 linux*) haveit=yes;;
12606 esac
12609 if test -z "$haveit"; then
12610 for x in $CPPFLAGS $INCICONV; do
12612 acl_save_prefix="$prefix"
12613 prefix="$acl_final_prefix"
12614 acl_save_exec_prefix="$exec_prefix"
12615 exec_prefix="$acl_final_exec_prefix"
12616 eval x=\"$x\"
12617 exec_prefix="$acl_save_exec_prefix"
12618 prefix="$acl_save_prefix"
12620 if test "X$x" = "X-I$additional_includedir"; then
12621 haveit=yes
12622 break
12624 done
12625 if test -z "$haveit"; then
12626 if test -d "$additional_includedir"; then
12627 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12633 if test -n "$found_la"; then
12634 save_libdir="$libdir"
12635 case "$found_la" in
12636 */* | *\\*) . "$found_la" ;;
12637 *) . "./$found_la" ;;
12638 esac
12639 libdir="$save_libdir"
12640 for dep in $dependency_libs; do
12641 case "$dep" in
12642 -L*)
12643 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12644 if test "X$additional_libdir" != "X/usr/lib"; then
12645 haveit=
12646 if test "X$additional_libdir" = "X/usr/local/lib"; then
12647 if test -n "$GCC"; then
12648 case $host_os in
12649 linux*) haveit=yes;;
12650 esac
12653 if test -z "$haveit"; then
12654 haveit=
12655 for x in $LDFLAGS $LIBICONV; do
12657 acl_save_prefix="$prefix"
12658 prefix="$acl_final_prefix"
12659 acl_save_exec_prefix="$exec_prefix"
12660 exec_prefix="$acl_final_exec_prefix"
12661 eval x=\"$x\"
12662 exec_prefix="$acl_save_exec_prefix"
12663 prefix="$acl_save_prefix"
12665 if test "X$x" = "X-L$additional_libdir"; then
12666 haveit=yes
12667 break
12669 done
12670 if test -z "$haveit"; then
12671 if test -d "$additional_libdir"; then
12672 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12675 haveit=
12676 for x in $LDFLAGS $LTLIBICONV; do
12678 acl_save_prefix="$prefix"
12679 prefix="$acl_final_prefix"
12680 acl_save_exec_prefix="$exec_prefix"
12681 exec_prefix="$acl_final_exec_prefix"
12682 eval x=\"$x\"
12683 exec_prefix="$acl_save_exec_prefix"
12684 prefix="$acl_save_prefix"
12686 if test "X$x" = "X-L$additional_libdir"; then
12687 haveit=yes
12688 break
12690 done
12691 if test -z "$haveit"; then
12692 if test -d "$additional_libdir"; then
12693 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12699 -R*)
12700 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12701 if test "$enable_rpath" != no; then
12702 haveit=
12703 for x in $rpathdirs; do
12704 if test "X$x" = "X$dir"; then
12705 haveit=yes
12706 break
12708 done
12709 if test -z "$haveit"; then
12710 rpathdirs="$rpathdirs $dir"
12712 haveit=
12713 for x in $ltrpathdirs; do
12714 if test "X$x" = "X$dir"; then
12715 haveit=yes
12716 break
12718 done
12719 if test -z "$haveit"; then
12720 ltrpathdirs="$ltrpathdirs $dir"
12724 -l*)
12725 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12727 *.la)
12728 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12731 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12732 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12734 esac
12735 done
12737 else
12738 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12739 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12743 done
12744 done
12745 if test "X$rpathdirs" != "X"; then
12746 if test -n "$hardcode_libdir_separator"; then
12747 alldirs=
12748 for found_dir in $rpathdirs; do
12749 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12750 done
12751 acl_save_libdir="$libdir"
12752 libdir="$alldirs"
12753 eval flag=\"$hardcode_libdir_flag_spec\"
12754 libdir="$acl_save_libdir"
12755 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12756 else
12757 for found_dir in $rpathdirs; do
12758 acl_save_libdir="$libdir"
12759 libdir="$found_dir"
12760 eval flag=\"$hardcode_libdir_flag_spec\"
12761 libdir="$acl_save_libdir"
12762 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12763 done
12766 if test "X$ltrpathdirs" != "X"; then
12767 for found_dir in $ltrpathdirs; do
12768 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12769 done
12775 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12776 stdlib.h string.h unistd.h sys/param.h
12777 do :
12778 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12779 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12780 eval as_val=\$$as_ac_Header
12781 if test "x$as_val" = x""yes; then :
12782 cat >>confdefs.h <<_ACEOF
12783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12784 _ACEOF
12788 done
12790 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
12791 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
12792 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12793 do :
12794 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12795 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12796 eval as_val=\$$as_ac_var
12797 if test "x$as_val" = x""yes; then :
12798 cat >>confdefs.h <<_ACEOF
12799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12800 _ACEOF
12803 done
12811 am_save_CPPFLAGS="$CPPFLAGS"
12813 for element in $INCICONV; do
12814 haveit=
12815 for x in $CPPFLAGS; do
12817 acl_save_prefix="$prefix"
12818 prefix="$acl_final_prefix"
12819 acl_save_exec_prefix="$exec_prefix"
12820 exec_prefix="$acl_final_exec_prefix"
12821 eval x=\"$x\"
12822 exec_prefix="$acl_save_exec_prefix"
12823 prefix="$acl_save_prefix"
12825 if test "X$x" = "X$element"; then
12826 haveit=yes
12827 break
12829 done
12830 if test -z "$haveit"; then
12831 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12833 done
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12837 $as_echo_n "checking for iconv... " >&6; }
12838 if test "${am_cv_func_iconv+set}" = set; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12842 am_cv_func_iconv="no, consider installing GNU libiconv"
12843 am_cv_lib_iconv=no
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12846 #include <stdlib.h>
12847 #include <iconv.h>
12849 main ()
12851 iconv_t cd = iconv_open("","");
12852 iconv(cd,NULL,NULL,NULL,NULL);
12853 iconv_close(cd);
12855 return 0;
12857 _ACEOF
12858 if ac_fn_c_try_link "$LINENO"; then :
12859 am_cv_func_iconv=yes
12861 rm -f core conftest.err conftest.$ac_objext \
12862 conftest$ac_exeext conftest.$ac_ext
12863 if test "$am_cv_func_iconv" != yes; then
12864 am_save_LIBS="$LIBS"
12865 LIBS="$LIBS $LIBICONV"
12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h. */
12868 #include <stdlib.h>
12869 #include <iconv.h>
12871 main ()
12873 iconv_t cd = iconv_open("","");
12874 iconv(cd,NULL,NULL,NULL,NULL);
12875 iconv_close(cd);
12877 return 0;
12879 _ACEOF
12880 if ac_fn_c_try_link "$LINENO"; then :
12881 am_cv_lib_iconv=yes
12882 am_cv_func_iconv=yes
12884 rm -f core conftest.err conftest.$ac_objext \
12885 conftest$ac_exeext conftest.$ac_ext
12886 LIBS="$am_save_LIBS"
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12891 $as_echo "$am_cv_func_iconv" >&6; }
12892 if test "$am_cv_func_iconv" = yes; then
12894 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12897 if test "$am_cv_lib_iconv" = yes; then
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12899 $as_echo_n "checking how to link with libiconv... " >&6; }
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12901 $as_echo "$LIBICONV" >&6; }
12902 else
12903 CPPFLAGS="$am_save_CPPFLAGS"
12904 LIBICONV=
12905 LTLIBICONV=
12910 if test "$am_cv_func_iconv" = yes; then
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12912 $as_echo_n "checking for iconv declaration... " >&6; }
12913 if test "${am_cv_proto_iconv+set}" = set; then :
12914 $as_echo_n "(cached) " >&6
12915 else
12917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h. */
12920 #include <stdlib.h>
12921 #include <iconv.h>
12922 extern
12923 #ifdef __cplusplus
12925 #endif
12926 #if defined(__STDC__) || defined(__cplusplus)
12927 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12928 #else
12929 size_t iconv();
12930 #endif
12933 main ()
12937 return 0;
12939 _ACEOF
12940 if ac_fn_c_try_compile "$LINENO"; then :
12941 am_cv_proto_iconv_arg1=""
12942 else
12943 am_cv_proto_iconv_arg1="const"
12945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12946 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);"
12949 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
12951 }$am_cv_proto_iconv" >&5
12952 $as_echo "${ac_t:-
12953 }$am_cv_proto_iconv" >&6; }
12955 cat >>confdefs.h <<_ACEOF
12956 #define ICONV_CONST $am_cv_proto_iconv_arg1
12957 _ACEOF
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12963 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12964 if test "${am_cv_langinfo_codeset+set}" = set; then :
12965 $as_echo_n "(cached) " >&6
12966 else
12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h. */
12969 #include <langinfo.h>
12971 main ()
12973 char* cs = nl_langinfo(CODESET);
12975 return 0;
12977 _ACEOF
12978 if ac_fn_c_try_link "$LINENO"; then :
12979 am_cv_langinfo_codeset=yes
12980 else
12981 am_cv_langinfo_codeset=no
12983 rm -f core conftest.err conftest.$ac_objext \
12984 conftest$ac_exeext conftest.$ac_ext
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12988 $as_echo "$am_cv_langinfo_codeset" >&6; }
12989 if test $am_cv_langinfo_codeset = yes; then
12991 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12995 if test $ac_cv_header_locale_h = yes; then
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12998 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12999 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
13001 else
13002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003 /* end confdefs.h. */
13004 #include <locale.h>
13006 main ()
13008 return LC_MESSAGES
13010 return 0;
13012 _ACEOF
13013 if ac_fn_c_try_link "$LINENO"; then :
13014 am_cv_val_LC_MESSAGES=yes
13015 else
13016 am_cv_val_LC_MESSAGES=no
13018 rm -f core conftest.err conftest.$ac_objext \
13019 conftest$ac_exeext conftest.$ac_ext
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13022 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13023 if test $am_cv_val_LC_MESSAGES = yes; then
13025 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13031 for ac_prog in bison
13033 # Extract the first word of "$ac_prog", so it can be a program name with args.
13034 set dummy $ac_prog; ac_word=$2
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13036 $as_echo_n "checking for $ac_word... " >&6; }
13037 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
13038 $as_echo_n "(cached) " >&6
13039 else
13040 if test -n "$INTLBISON"; then
13041 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13042 else
13043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044 for as_dir in $PATH
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
13049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13050 ac_cv_prog_INTLBISON="$ac_prog"
13051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13052 break 2
13054 done
13055 done
13056 IFS=$as_save_IFS
13060 INTLBISON=$ac_cv_prog_INTLBISON
13061 if test -n "$INTLBISON"; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
13063 $as_echo "$INTLBISON" >&6; }
13064 else
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066 $as_echo "no" >&6; }
13070 test -n "$INTLBISON" && break
13071 done
13073 if test -z "$INTLBISON"; then
13074 ac_verc_fail=yes
13075 else
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
13077 $as_echo_n "checking version of bison... " >&6; }
13078 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13079 case $ac_prog_version in
13080 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13081 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13082 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13083 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13084 esac
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
13086 $as_echo "$ac_prog_version" >&6; }
13088 if test $ac_verc_fail = yes; then
13089 INTLBISON=:
13094 # Check whether --with-language was given.
13095 if test "${with_language+set}" = set; then :
13096 withval=$with_language; if test "$withval" != "all"; then :
13097 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13117 $as_echo_n "checking whether NLS is requested... " >&6; }
13118 # Check whether --enable-nls was given.
13119 if test "${enable_nls+set}" = set; then :
13120 enableval=$enable_nls; USE_NLS=$enableval
13121 else
13122 USE_NLS=yes
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13126 $as_echo "$USE_NLS" >&6; }
13130 BUILD_INCLUDED_LIBINTL=no
13131 USE_INCLUDED_LIBINTL=no
13133 LIBINTL=
13134 LTLIBINTL=
13135 POSUB=
13137 if test "$USE_NLS" = "yes"; then
13138 gt_use_preinstalled_gnugettext=no
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
13141 $as_echo_n "checking whether included gettext is requested... " >&6; }
13143 # Check whether --with-included-gettext was given.
13144 if test "${with_included_gettext+set}" = set; then :
13145 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13146 else
13147 nls_cv_force_use_gnu_gettext=no
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
13151 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
13153 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13154 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13162 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13163 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
13164 $as_echo_n "(cached) " >&6
13165 else
13166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13167 /* end confdefs.h. */
13168 #include <libintl.h>
13169 extern int _nl_msg_cat_cntr;
13170 extern int *_nl_domain_bindings;
13172 main ()
13174 bindtextdomain ("", "");
13175 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
13177 return 0;
13179 _ACEOF
13180 if ac_fn_c_try_link "$LINENO"; then :
13181 gt_cv_func_gnugettext2_libc=yes
13182 else
13183 gt_cv_func_gnugettext2_libc=no
13185 rm -f core conftest.err conftest.$ac_objext \
13186 conftest$ac_exeext conftest.$ac_ext
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
13189 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
13191 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
13195 use_additional=yes
13197 acl_save_prefix="$prefix"
13198 prefix="$acl_final_prefix"
13199 acl_save_exec_prefix="$exec_prefix"
13200 exec_prefix="$acl_final_exec_prefix"
13202 eval additional_includedir=\"$includedir\"
13203 eval additional_libdir=\"$libdir\"
13205 exec_prefix="$acl_save_exec_prefix"
13206 prefix="$acl_save_prefix"
13209 # Check whether --with-libintl-prefix was given.
13210 if test "${with_libintl_prefix+set}" = set; then :
13211 withval=$with_libintl_prefix;
13212 if test "X$withval" = "Xno"; then
13213 use_additional=no
13214 else
13215 if test "X$withval" = "X"; then
13217 acl_save_prefix="$prefix"
13218 prefix="$acl_final_prefix"
13219 acl_save_exec_prefix="$exec_prefix"
13220 exec_prefix="$acl_final_exec_prefix"
13222 eval additional_includedir=\"$includedir\"
13223 eval additional_libdir=\"$libdir\"
13225 exec_prefix="$acl_save_exec_prefix"
13226 prefix="$acl_save_prefix"
13228 else
13229 additional_includedir="$withval/include"
13230 additional_libdir="$withval/lib"
13236 LIBINTL=
13237 LTLIBINTL=
13238 INCINTL=
13239 rpathdirs=
13240 ltrpathdirs=
13241 names_already_handled=
13242 names_next_round='intl '
13243 while test -n "$names_next_round"; do
13244 names_this_round="$names_next_round"
13245 names_next_round=
13246 for name in $names_this_round; do
13247 already_handled=
13248 for n in $names_already_handled; do
13249 if test "$n" = "$name"; then
13250 already_handled=yes
13251 break
13253 done
13254 if test -z "$already_handled"; then
13255 names_already_handled="$names_already_handled $name"
13256 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13257 eval value=\"\$HAVE_LIB$uppername\"
13258 if test -n "$value"; then
13259 if test "$value" = yes; then
13260 eval value=\"\$LIB$uppername\"
13261 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13262 eval value=\"\$LTLIB$uppername\"
13263 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13264 else
13267 else
13268 found_dir=
13269 found_la=
13270 found_so=
13271 found_a=
13272 if test $use_additional = yes; then
13273 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13274 found_dir="$additional_libdir"
13275 found_so="$additional_libdir/lib$name.$shlibext"
13276 if test -f "$additional_libdir/lib$name.la"; then
13277 found_la="$additional_libdir/lib$name.la"
13279 else
13280 if test -f "$additional_libdir/lib$name.$libext"; then
13281 found_dir="$additional_libdir"
13282 found_a="$additional_libdir/lib$name.$libext"
13283 if test -f "$additional_libdir/lib$name.la"; then
13284 found_la="$additional_libdir/lib$name.la"
13289 if test "X$found_dir" = "X"; then
13290 for x in $LDFLAGS $LTLIBINTL; do
13292 acl_save_prefix="$prefix"
13293 prefix="$acl_final_prefix"
13294 acl_save_exec_prefix="$exec_prefix"
13295 exec_prefix="$acl_final_exec_prefix"
13296 eval x=\"$x\"
13297 exec_prefix="$acl_save_exec_prefix"
13298 prefix="$acl_save_prefix"
13300 case "$x" in
13301 -L*)
13302 dir=`echo "X$x" | sed -e 's/^X-L//'`
13303 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13304 found_dir="$dir"
13305 found_so="$dir/lib$name.$shlibext"
13306 if test -f "$dir/lib$name.la"; then
13307 found_la="$dir/lib$name.la"
13309 else
13310 if test -f "$dir/lib$name.$libext"; then
13311 found_dir="$dir"
13312 found_a="$dir/lib$name.$libext"
13313 if test -f "$dir/lib$name.la"; then
13314 found_la="$dir/lib$name.la"
13319 esac
13320 if test "X$found_dir" != "X"; then
13321 break
13323 done
13325 if test "X$found_dir" != "X"; then
13326 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13327 if test "X$found_so" != "X"; then
13328 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13329 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13330 else
13331 haveit=
13332 for x in $ltrpathdirs; do
13333 if test "X$x" = "X$found_dir"; then
13334 haveit=yes
13335 break
13337 done
13338 if test -z "$haveit"; then
13339 ltrpathdirs="$ltrpathdirs $found_dir"
13341 if test "$hardcode_direct" = yes; then
13342 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13343 else
13344 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13345 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13346 haveit=
13347 for x in $rpathdirs; do
13348 if test "X$x" = "X$found_dir"; then
13349 haveit=yes
13350 break
13352 done
13353 if test -z "$haveit"; then
13354 rpathdirs="$rpathdirs $found_dir"
13356 else
13357 haveit=
13358 for x in $LDFLAGS $LIBINTL; do
13360 acl_save_prefix="$prefix"
13361 prefix="$acl_final_prefix"
13362 acl_save_exec_prefix="$exec_prefix"
13363 exec_prefix="$acl_final_exec_prefix"
13364 eval x=\"$x\"
13365 exec_prefix="$acl_save_exec_prefix"
13366 prefix="$acl_save_prefix"
13368 if test "X$x" = "X-L$found_dir"; then
13369 haveit=yes
13370 break
13372 done
13373 if test -z "$haveit"; then
13374 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13376 if test "$hardcode_minus_L" != no; then
13377 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13378 else
13379 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13384 else
13385 if test "X$found_a" != "X"; then
13386 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13387 else
13388 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13391 additional_includedir=
13392 case "$found_dir" in
13393 */lib | */lib/)
13394 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13395 additional_includedir="$basedir/include"
13397 esac
13398 if test "X$additional_includedir" != "X"; then
13399 if test "X$additional_includedir" != "X/usr/include"; then
13400 haveit=
13401 if test "X$additional_includedir" = "X/usr/local/include"; then
13402 if test -n "$GCC"; then
13403 case $host_os in
13404 linux*) haveit=yes;;
13405 esac
13408 if test -z "$haveit"; then
13409 for x in $CPPFLAGS $INCINTL; do
13411 acl_save_prefix="$prefix"
13412 prefix="$acl_final_prefix"
13413 acl_save_exec_prefix="$exec_prefix"
13414 exec_prefix="$acl_final_exec_prefix"
13415 eval x=\"$x\"
13416 exec_prefix="$acl_save_exec_prefix"
13417 prefix="$acl_save_prefix"
13419 if test "X$x" = "X-I$additional_includedir"; then
13420 haveit=yes
13421 break
13423 done
13424 if test -z "$haveit"; then
13425 if test -d "$additional_includedir"; then
13426 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13432 if test -n "$found_la"; then
13433 save_libdir="$libdir"
13434 case "$found_la" in
13435 */* | *\\*) . "$found_la" ;;
13436 *) . "./$found_la" ;;
13437 esac
13438 libdir="$save_libdir"
13439 for dep in $dependency_libs; do
13440 case "$dep" in
13441 -L*)
13442 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13443 if test "X$additional_libdir" != "X/usr/lib"; then
13444 haveit=
13445 if test "X$additional_libdir" = "X/usr/local/lib"; then
13446 if test -n "$GCC"; then
13447 case $host_os in
13448 linux*) haveit=yes;;
13449 esac
13452 if test -z "$haveit"; then
13453 haveit=
13454 for x in $LDFLAGS $LIBINTL; do
13456 acl_save_prefix="$prefix"
13457 prefix="$acl_final_prefix"
13458 acl_save_exec_prefix="$exec_prefix"
13459 exec_prefix="$acl_final_exec_prefix"
13460 eval x=\"$x\"
13461 exec_prefix="$acl_save_exec_prefix"
13462 prefix="$acl_save_prefix"
13464 if test "X$x" = "X-L$additional_libdir"; then
13465 haveit=yes
13466 break
13468 done
13469 if test -z "$haveit"; then
13470 if test -d "$additional_libdir"; then
13471 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13474 haveit=
13475 for x in $LDFLAGS $LTLIBINTL; do
13477 acl_save_prefix="$prefix"
13478 prefix="$acl_final_prefix"
13479 acl_save_exec_prefix="$exec_prefix"
13480 exec_prefix="$acl_final_exec_prefix"
13481 eval x=\"$x\"
13482 exec_prefix="$acl_save_exec_prefix"
13483 prefix="$acl_save_prefix"
13485 if test "X$x" = "X-L$additional_libdir"; then
13486 haveit=yes
13487 break
13489 done
13490 if test -z "$haveit"; then
13491 if test -d "$additional_libdir"; then
13492 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13498 -R*)
13499 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13500 if test "$enable_rpath" != no; then
13501 haveit=
13502 for x in $rpathdirs; do
13503 if test "X$x" = "X$dir"; then
13504 haveit=yes
13505 break
13507 done
13508 if test -z "$haveit"; then
13509 rpathdirs="$rpathdirs $dir"
13511 haveit=
13512 for x in $ltrpathdirs; do
13513 if test "X$x" = "X$dir"; then
13514 haveit=yes
13515 break
13517 done
13518 if test -z "$haveit"; then
13519 ltrpathdirs="$ltrpathdirs $dir"
13523 -l*)
13524 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13526 *.la)
13527 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13530 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13531 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13533 esac
13534 done
13536 else
13537 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13538 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13542 done
13543 done
13544 if test "X$rpathdirs" != "X"; then
13545 if test -n "$hardcode_libdir_separator"; then
13546 alldirs=
13547 for found_dir in $rpathdirs; do
13548 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13549 done
13550 acl_save_libdir="$libdir"
13551 libdir="$alldirs"
13552 eval flag=\"$hardcode_libdir_flag_spec\"
13553 libdir="$acl_save_libdir"
13554 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13555 else
13556 for found_dir in $rpathdirs; do
13557 acl_save_libdir="$libdir"
13558 libdir="$found_dir"
13559 eval flag=\"$hardcode_libdir_flag_spec\"
13560 libdir="$acl_save_libdir"
13561 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13562 done
13565 if test "X$ltrpathdirs" != "X"; then
13566 for found_dir in $ltrpathdirs; do
13567 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13568 done
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13572 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13573 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
13574 $as_echo_n "(cached) " >&6
13575 else
13576 gt_save_CPPFLAGS="$CPPFLAGS"
13577 CPPFLAGS="$CPPFLAGS $INCINTL"
13578 gt_save_LIBS="$LIBS"
13579 LIBS="$LIBS $LIBINTL"
13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13581 /* end confdefs.h. */
13582 #include <libintl.h>
13583 extern int _nl_msg_cat_cntr;
13584 extern
13585 #ifdef __cplusplus
13587 #endif
13588 const char *_nl_expand_alias ();
13590 main ()
13592 bindtextdomain ("", "");
13593 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13595 return 0;
13597 _ACEOF
13598 if ac_fn_c_try_link "$LINENO"; then :
13599 gt_cv_func_gnugettext2_libintl=yes
13600 else
13601 gt_cv_func_gnugettext2_libintl=no
13603 rm -f core conftest.err conftest.$ac_objext \
13604 conftest$ac_exeext conftest.$ac_ext
13605 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
13606 LIBS="$LIBS $LIBICONV"
13607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13609 #include <libintl.h>
13610 extern int _nl_msg_cat_cntr;
13611 extern
13612 #ifdef __cplusplus
13614 #endif
13615 const char *_nl_expand_alias ();
13617 main ()
13619 bindtextdomain ("", "");
13620 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13622 return 0;
13624 _ACEOF
13625 if ac_fn_c_try_link "$LINENO"; then :
13626 LIBINTL="$LIBINTL $LIBICONV"
13627 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13628 gt_cv_func_gnugettext2_libintl=yes
13631 rm -f core conftest.err conftest.$ac_objext \
13632 conftest$ac_exeext conftest.$ac_ext
13634 CPPFLAGS="$gt_save_CPPFLAGS"
13635 LIBS="$gt_save_LIBS"
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
13638 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
13641 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
13642 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
13643 && test "$PACKAGE" != gettext; }; then
13644 gt_use_preinstalled_gnugettext=yes
13645 else
13646 LIBINTL=
13647 LTLIBINTL=
13648 INCINTL=
13652 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13653 nls_cv_use_gnu_gettext=yes
13657 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13658 INTLOBJS="\$(GETTOBJS)"
13659 BUILD_INCLUDED_LIBINTL=yes
13660 USE_INCLUDED_LIBINTL=yes
13661 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13662 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13663 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13666 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13667 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13668 CATOBJEXT=.gmo
13672 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13673 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13675 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13677 else
13678 USE_NLS=no
13682 if test "$USE_NLS" = "yes"; then
13684 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13685 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13687 $as_echo_n "checking how to link with libintl... " >&6; }
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13689 $as_echo "$LIBINTL" >&6; }
13691 for element in $INCINTL; do
13692 haveit=
13693 for x in $CPPFLAGS; do
13695 acl_save_prefix="$prefix"
13696 prefix="$acl_final_prefix"
13697 acl_save_exec_prefix="$exec_prefix"
13698 exec_prefix="$acl_final_exec_prefix"
13699 eval x=\"$x\"
13700 exec_prefix="$acl_save_exec_prefix"
13701 prefix="$acl_save_prefix"
13703 if test "X$x" = "X$element"; then
13704 haveit=yes
13705 break
13707 done
13708 if test -z "$haveit"; then
13709 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13711 done
13716 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13719 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13723 POSUB=po
13727 if test "$PACKAGE" = gettext; then
13728 BUILD_INCLUDED_LIBINTL=yes
13736 nls_cv_header_intl=
13737 nls_cv_header_libgt=
13739 DATADIRNAME=share
13742 INSTOBJEXT=.mo
13745 GENCAT=gencat
13748 INTL_LIBTOOL_SUFFIX_PREFIX=
13752 INTLLIBS="$LIBINTL"
13759 if test $USE_INCLUDED_LIBINTL = yes; then :
13760 INCINTL=-I\${top_builddir}/intl
13763 if test x$USE_NLS = xyes; then :
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
13766 $as_echo_n "checking for autopoint... " >&6; }
13767 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
13768 if test -n "$autopoint_version"; then :
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
13771 $as_echo "yes ($autopoint_version)" >&6; }
13774 else
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13777 $as_echo "no" >&6; }
13778 USE_NLS=no
13783 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then :
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13785 You need to install GNU gettext/gettext-tools to compile aMule with
13786 i18n support." >&5
13787 $as_echo "$as_me: WARNING:
13788 You need to install GNU gettext/gettext-tools to compile aMule with
13789 i18n support." >&2;}
13790 _mule_warning_9=yes
13791 _mule_has_warnings=yes
13795 if test ${USE_NLS:-no} = yes; then :
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
13798 $as_echo_n "checking for requested languages... " >&6; }
13799 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
13801 if test ${enable_amule_daemon:-no} = yes; then :
13803 if test -z "$LINGUAS"; then :
13804 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
13805 else
13807 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13808 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
13811 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
13813 else
13814 AMULE_DAEMON_MANPAGES=
13819 if test ${enable_amulecmd:-no} = yes; then :
13821 if test -z "$LINGUAS"; then :
13822 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
13823 else
13825 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13826 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
13829 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
13831 else
13832 AMULECMD_MANPAGES=
13837 if test ${enable_webserver:-no} = yes; then :
13839 if test -z "$LINGUAS"; then :
13840 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
13841 else
13843 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13844 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
13847 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
13849 else
13850 WEBSERVER_MANPAGES=
13855 if test ${enable_amule_gui:-no} = yes; then :
13857 if test -z "$LINGUAS"; then :
13858 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
13859 else
13861 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13862 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
13865 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
13867 else
13868 AMULE_GUI_MANPAGES=
13873 if test ${enable_cas:-no} = yes; then :
13875 if test -z "$LINGUAS"; then :
13876 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
13877 else
13879 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13880 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
13883 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
13885 else
13886 CAS_MANPAGES=
13891 if test ${enable_wxcas:-no} = yes; then :
13893 if test -z "$LINGUAS"; then :
13894 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
13895 else
13897 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13898 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
13901 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
13903 else
13904 WXCAS_MANPAGES=
13909 if test ${enable_ed2k:-yes} = yes; then :
13911 if test -z "$LINGUAS"; then :
13912 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
13913 else
13915 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13916 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
13919 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
13921 else
13922 ED2K_MANPAGES=
13927 if test ${enable_alc:-no} = yes; then :
13929 if test -z "$LINGUAS"; then :
13930 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
13931 else
13933 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13934 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
13937 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
13939 else
13940 ALC_MANPAGES=
13945 if test ${enable_alcc:-no} = yes; then :
13947 if test -z "$LINGUAS"; then :
13948 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
13949 else
13951 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13952 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
13955 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
13957 else
13958 ALCC_MANPAGES=
13963 if test ${enable_monolithic:-yes} = yes; then :
13965 if test -z "$LINGUAS"; then :
13966 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
13967 else
13969 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13970 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
13973 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
13975 else
13976 MONOLITHIC_MANPAGES=
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
13981 $as_echo "${LINGUAS:-all}" >&6; }
13987 # Check for bfd.h (to have proper backtraces without using wxExecute)
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd" >&5
13990 $as_echo_n "checking for bfd... " >&6; }
13991 result=no
13992 for bfd_ldadd in "" "${LIBINTL}" "-ldl" "-ldl ${LIBINTL}"; do
13993 mule_backup_LIBS="$LIBS"
13994 mule_backup_LDFLAGS="$LDFLAGS"
13995 LIBS="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
13996 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
14001 #include <ansidecl.h>
14002 #include <bfd.h>
14005 main ()
14008 char *dummy = bfd_errmsg(bfd_get_error());
14011 return 0;
14014 _ACEOF
14015 if ac_fn_c_try_link "$LINENO"; then :
14017 result=yes
14018 BFD_CPPFLAGS="-DHAVE_BFD"
14019 BFD_LIBS="-lbfd -liberty ${bfd_ldadd}"
14020 LIBS="$mule_backup_LIBS"
14021 LDFLAGS="$mule_backup_LDFLAGS"
14022 break
14025 rm -f core conftest.err conftest.$ac_objext \
14026 conftest$ac_exeext conftest.$ac_ext
14027 LIBS="$mule_backup_LIBS"
14028 LDFLAGS="$mule_backup_LDFLAGS"
14029 done
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
14032 $as_echo "$result" >&6; }
14034 if test $result = no; then :
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14036 bfd.h not found or unusable, please install binutils development
14037 package if you are a developer or want to help testing aMule" >&5
14038 $as_echo "$as_me: WARNING:
14039 bfd.h not found or unusable, please install binutils development
14040 package if you are a developer or want to help testing aMule" >&2;}
14041 _mule_warning_10=yes
14042 _mule_has_warnings=yes
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
14049 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
14050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14051 /* end confdefs.h. */
14054 #include <execinfo.h>
14057 main ()
14060 void *bt[1];
14061 int n = backtrace(&bt, 1);
14062 const char **bt_syms = backtrace_symbols(bt, n);
14065 return 0;
14068 _ACEOF
14069 if ac_fn_c_try_link "$LINENO"; then :
14072 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14075 $as_echo "yes" >&6; }
14077 else
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14080 $as_echo "no" >&6; }
14083 rm -f core conftest.err conftest.$ac_objext \
14084 conftest$ac_exeext conftest.$ac_ext
14087 # Flush standard test results for speeding cache
14088 cat >confcache <<\_ACEOF
14089 # This file is a shell script that caches the results of configure
14090 # tests run on this system so they can be shared between configure
14091 # scripts and configure runs, see configure's option --config-cache.
14092 # It is not useful on other systems. If it contains results you don't
14093 # want to keep, you may remove or edit it.
14095 # config.status only pays attention to the cache file if you give it
14096 # the --recheck option to rerun configure.
14098 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14099 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14100 # following values.
14102 _ACEOF
14104 # The following way of writing the cache mishandles newlines in values,
14105 # but we know of no workaround that is simple, portable, and efficient.
14106 # So, we kill variables containing newlines.
14107 # Ultrix sh set writes to stderr and can't be redirected directly,
14108 # and sets the high bit in the cache file unless we assign to the vars.
14110 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14111 eval ac_val=\$$ac_var
14112 case $ac_val in #(
14113 *${as_nl}*)
14114 case $ac_var in #(
14115 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14116 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14117 esac
14118 case $ac_var in #(
14119 _ | IFS | as_nl) ;; #(
14120 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14121 *) { eval $ac_var=; unset $ac_var;} ;;
14122 esac ;;
14123 esac
14124 done
14126 (set) 2>&1 |
14127 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14128 *${as_nl}ac_space=\ *)
14129 # `set' does not quote correctly, so add quotes: double-quote
14130 # substitution turns \\\\ into \\, and sed turns \\ into \.
14131 sed -n \
14132 "s/'/'\\\\''/g;
14133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14134 ;; #(
14136 # `set' quotes correctly as required by POSIX, so do not add quotes.
14137 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14139 esac |
14140 sort
14142 sed '
14143 /^ac_cv_env_/b end
14144 t clear
14145 :clear
14146 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14147 t end
14148 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14149 :end' >>confcache
14150 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14151 if test -w "$cache_file"; then
14152 test "x$cache_file" != "x/dev/null" &&
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14154 $as_echo "$as_me: updating cache $cache_file" >&6;}
14155 cat confcache >$cache_file
14156 else
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14158 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14161 rm -f confcache
14163 # Other tests
14164 # aMule options
14166 # Check whether --enable-debug was given.
14167 if test "${enable_debug+set}" = set; then :
14168 enableval=$enable_debug;
14172 # Check whether --enable-profile was given.
14173 if test "${enable_profile+set}" = set; then :
14174 enableval=$enable_profile;
14178 # Check whether --enable-optimize was given.
14179 if test "${enable_optimize+set}" = set; then :
14180 enableval=$enable_optimize;
14185 if test ${enable_debug:-yes} = yes; then :
14187 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
14189 MULECFLAGS="$MULECFLAGS -g"
14190 MULECXXFLAGS="$MULECXXFLAGS -g"
14192 if test ${GCC:-no} = yes; then :
14194 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
14195 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
14198 if test ${SYS:-unknown} = win32; then :
14199 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
14202 else
14204 if test ${GCC:-no} = yes; then :
14206 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
14207 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
14213 if test ${enable_profile:-no} = yes; then :
14216 MULECFLAGS="$MULECFLAGS -pg"
14217 MULECXXFLAGS="$MULECXXFLAGS -pg"
14219 MULELDFLAGS="$MULELDFLAGS -pg"
14223 if test ${enable_optimize:-no} = yes; then :
14225 MULECFLAGS="$MULECFLAGS -O2"
14226 MULECXXFLAGS="$MULECXXFLAGS -O2"
14230 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
14233 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
14235 $as_echo_n "checking for docdir... " >&6; }
14236 if test -z "$docdir"; then :
14237 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
14240 $as_echo "$docdir" >&6; }
14242 # Try to set the SVN checkout-date
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
14244 $as_echo_n "checking for SVNDATE... " >&6; }
14245 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
14246 then
14247 svndate="rev. `cat $srcdir/.svn-revision`"
14248 elif test -d $srcdir/.svn # SVNDATE for svn
14249 then
14250 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
14253 $as_echo "${svndate:-None required}" >&6; }
14254 if test -n "$svndate"; then :
14257 cat >>confdefs.h <<_ACEOF
14258 #define SVNDATE "$svndate"
14259 _ACEOF
14261 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
14264 SVNDATE=$svndate
14268 # Check whether --with-denoise-level was given.
14269 if test "${with_denoise_level+set}" = set; then :
14270 withval=$with_denoise_level;
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
14275 $as_echo_n "checking denoising level... " >&6; }
14276 if test ${with_denoise_level:-5} = yes; then :
14277 with_denoise_level=5
14279 if test ${with_denoise_level:-5} = no; then :
14280 with_denoise_level=0
14282 if test ${with_denoise_level:-5} -gt 4; then :
14283 if test "${svndate:+set}" = "set"; then :
14284 with_denoise_level=0
14285 else
14286 with_denoise_level=4
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
14290 $as_echo "$with_denoise_level" >&6; }
14292 ac_config_commands="$ac_config_commands denoiser"
14296 if test ${enable_plasmamule:-no} = yes; then :
14299 if test -z ${QT_MOC}; then :
14301 for ac_prog in moc-qt4 moc
14303 # Extract the first word of "$ac_prog", so it can be a program name with args.
14304 set dummy $ac_prog; ac_word=$2
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14306 $as_echo_n "checking for $ac_word... " >&6; }
14307 if test "${ac_cv_path_QT_MOC+set}" = set; then :
14308 $as_echo_n "(cached) " >&6
14309 else
14310 case $QT_MOC in
14311 [\\/]* | ?:[\\/]*)
14312 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
14315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14316 for as_dir in $PATH
14318 IFS=$as_save_IFS
14319 test -z "$as_dir" && as_dir=.
14320 for ac_exec_ext in '' $ac_executable_extensions; do
14321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14322 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
14323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14324 break 2
14326 done
14327 done
14328 IFS=$as_save_IFS
14331 esac
14333 QT_MOC=$ac_cv_path_QT_MOC
14334 if test -n "$QT_MOC"; then
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
14336 $as_echo "$QT_MOC" >&6; }
14337 else
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14339 $as_echo "no" >&6; }
14343 test -n "$QT_MOC" && break
14344 done
14346 if test -z ${QT_MOC}; then :
14348 echo moc not found
14349 exit 1
14353 else
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
14356 $as_echo_n "checking for moc... " >&6; }
14357 if test -x ${QT_MOC}; then :
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
14360 $as_echo "${QT_MOC}" >&6; }
14363 else
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
14366 $as_echo "\"not found\"" >&6; }
14367 QT_MOC="not found"
14368 exit 1
14375 if test "${QT_MOC}" != "not found"; then :
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
14378 $as_echo_n "checking for moc version >= 4... " >&6; }
14379 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
14380 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
14383 $as_echo "found ${QT_MOC_VERSION}" >&6; }
14385 else
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
14388 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
14389 QT_MOC="not found"
14390 exit 1
14396 if test "${QT_MOC}" = "not found"; then :
14397 enable_plasmamule=disabled
14400 if test ${enable_plasmamule:-no} = yes; then :
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
14405 $as_echo_n "checking for qt... " >&6; }
14406 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14409 $as_echo "found" >&6; }
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
14411 $as_echo_n "checking for qt core cflags... " >&6; }
14412 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
14414 $as_echo "$QT_CORE_CFLAGS" >&6; }
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
14416 $as_echo_n "checking for qt core libs... " >&6; }
14417 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
14419 $as_echo "$QT_CORE_LIBS" >&6; }
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
14421 $as_echo_n "checking for qt gui cflags... " >&6; }
14422 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
14424 $as_echo "$QT_GUI_CFLAGS" >&6; }
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
14426 $as_echo_n "checking for qt gui libs... " >&6; }
14427 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
14429 $as_echo "$QT_GUI_LIBS" >&6; }
14431 else
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14433 $as_echo "not found" >&6; }
14434 exit 1
14438 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
14440 QT_DBUS_LDFLAGS="-lQtDBus"
14450 if test -z "${QT_CORE_CXXFLAGS}"; then :
14451 enable_plasmamule=disabled
14456 if test ${enable_plasmamule:-no} = yes; then :
14459 if test -z ${KDE4_CONFIG}; then :
14461 # Extract the first word of "kde4-config", so it can be a program name with args.
14462 set dummy kde4-config; ac_word=$2
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14464 $as_echo_n "checking for $ac_word... " >&6; }
14465 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
14466 $as_echo_n "(cached) " >&6
14467 else
14468 case $KDE4_CONFIG in
14469 [\\/]* | ?:[\\/]*)
14470 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
14473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14474 for as_dir in $PATH
14476 IFS=$as_save_IFS
14477 test -z "$as_dir" && as_dir=.
14478 for ac_exec_ext in '' $ac_executable_extensions; do
14479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14480 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14482 break 2
14484 done
14485 done
14486 IFS=$as_save_IFS
14489 esac
14491 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
14492 if test -n "$KDE4_CONFIG"; then
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
14494 $as_echo "$KDE4_CONFIG" >&6; }
14495 else
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497 $as_echo "no" >&6; }
14502 else
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
14505 $as_echo_n "checking for kde4-config... " >&6; }
14506 if test ! -x KDE4_CONFIG; then :
14508 KDE4_CONFIG="not found"
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14510 $as_echo "not found" >&6; }
14511 exit 1
14517 if test "${KDE4_CONFIG}" != "not found"; then :
14519 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
14520 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
14523 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
14525 else
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
14528 $as_echo "at least version 4 required" >&6; }
14529 exit 1
14533 else
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14536 $as_echo "not found" >&6; }
14537 exit 1
14542 if test "${KDE4_CONFIG}" = "not found"; then :
14543 enable_plasmamule=disabled
14548 if test ${enable_plasmamule:-no} = yes; then :
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
14552 $as_echo_n "checking for kde4 headers... " >&6; }
14553 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
14555 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
14557 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
14560 $as_echo "${KDE_HEADER_DIR}" >&6; }
14562 else
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
14565 $as_echo "dataengine.h not found" >&6; }
14566 exit 1
14570 else
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
14573 $as_echo "kdirwatch.h not found" >&6; }
14574 exit 1
14579 if test -z ${KDE_HEADER_DIR}; then :
14580 enable_plasmamule=disabled
14585 if test ${enable_plasmamule:-no} = yes; then :
14587 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
14588 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
14593 $as_echo_n "checking for kde4 applinks Path... " >&6; }
14594 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14596 KDE_IN_HOME="yes"
14599 if test ${KDE_IN_HOME} = "yes"; then :
14601 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14603 else
14605 if test -n ${prefix}; then :
14607 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
14608 if test -n ${KDE_APPLNK_PATH}; then :
14610 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
14614 else
14616 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
14622 $as_echo "${KDE_APPLNK_PATH}" >&6; }
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
14628 $as_echo_n "checking for kde4 services Path... " >&6; }
14629 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14631 KDE_IN_HOME="yes"
14634 if test ${KDE_IN_HOME} = "yes"; then :
14636 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14638 else
14640 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
14644 $as_echo "${KDE_SERVICE_PATH}" >&6; }
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
14650 $as_echo_n "checking for kde4 plugins Path... " >&6; }
14651 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14653 KDE_IN_HOME="yes"
14656 if test ${KDE_IN_HOME} = "yes"; then :
14658 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14660 else
14662 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
14666 $as_echo "${KDE_MODULE_PATH}" >&6; }
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
14672 $as_echo_n "checking for kde4 icons Path... " >&6; }
14673 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14675 KDE_IN_HOME="yes"
14678 if test ${KDE_IN_HOME} = "yes"; then :
14680 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14682 else
14684 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
14687 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
14689 $as_echo "${KDE_ICON_PATH}" >&6; }
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
14695 $as_echo_n "checking for location for mime-type installation... " >&6; }
14696 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14698 KDE_IN_HOME="yes"
14701 if test ${KDE_IN_HOME} = "yes"; then :
14703 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14705 else
14707 if test -n ${prefix}; then :
14709 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
14710 if test -n ${KDE_MIME_PATH}; then :
14712 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
14716 else
14718 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
14724 $as_echo "${KDE_MIME_PATH}" >&6; }
14728 else
14729 enable_plasmamule=disabled
14734 if test ${enable_debug:-yes} = yes; then :
14736 DEBUGFLAG="-D__DEBUG__"
14743 if test x$SYS = xwin32; then
14744 SYS_WIN32_TRUE=
14745 SYS_WIN32_FALSE='#'
14746 else
14747 SYS_WIN32_TRUE='#'
14748 SYS_WIN32_FALSE=
14751 if test x$SYS = xwin32 -a "$RC" != ":"; then
14752 NEED_RC_TRUE=
14753 NEED_RC_FALSE='#'
14754 else
14755 NEED_RC_TRUE='#'
14756 NEED_RC_FALSE=
14759 if test x$SYS = xdarwin; then
14760 NEED_CORESERVICES_TRUE=
14761 NEED_CORESERVICES_FALSE='#'
14762 else
14763 NEED_CORESERVICES_TRUE='#'
14764 NEED_CORESERVICES_FALSE=
14767 if test x$USE_NLS = xyes; then
14768 COMPILE_NLS_TRUE=
14769 COMPILE_NLS_FALSE='#'
14770 else
14771 COMPILE_NLS_TRUE='#'
14772 COMPILE_NLS_FALSE=
14775 if test x$HAVE_FLEX_EXTENDED = xyes; then
14776 GENERATE_FLEX_HEADER_TRUE=
14777 GENERATE_FLEX_HEADER_FALSE='#'
14778 else
14779 GENERATE_FLEX_HEADER_TRUE='#'
14780 GENERATE_FLEX_HEADER_FALSE=
14783 if test x$INSTALL_SKINS = xyes; then
14784 INSTALL_SKINS_TRUE=
14785 INSTALL_SKINS_FALSE='#'
14786 else
14787 INSTALL_SKINS_TRUE='#'
14788 INSTALL_SKINS_FALSE=
14791 if test ${enable_plasmamule:-no} = yes; then
14792 PLASMAMULE_TRUE=
14793 PLASMAMULE_FALSE='#'
14794 else
14795 PLASMAMULE_TRUE='#'
14796 PLASMAMULE_FALSE=
14800 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
14801 COMPILE_LIB_COMMON_TRUE=
14802 COMPILE_LIB_COMMON_FALSE='#'
14803 else
14804 COMPILE_LIB_COMMON_TRUE='#'
14805 COMPILE_LIB_COMMON_FALSE=
14808 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
14809 COMPILE_LIB_EC_TRUE=
14810 COMPILE_LIB_EC_FALSE='#'
14811 else
14812 COMPILE_LIB_EC_TRUE='#'
14813 COMPILE_LIB_EC_FALSE=
14817 # Check for readline library
14818 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
14821 $as_echo_n "checking for a readline compatible library... " >&6; }
14822 if test "${vl_cv_lib_readline+set}" = set; then :
14823 $as_echo_n "(cached) " >&6
14824 else
14826 ORIG_LIBS="$LIBS"
14827 for readline_lib in readline edit editline; do
14828 for termcap_lib in "" termcap curses ncurses; do
14829 if test -z "$termcap_lib"; then
14830 TRY_LIB="-l$readline_lib"
14831 else
14832 TRY_LIB="-l$readline_lib -l$termcap_lib"
14834 LIBS="$ORIG_LIBS $TRY_LIB"
14835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14836 /* end confdefs.h. */
14838 /* Override any GCC internal prototype to avoid an error.
14839 Use char because int might match the return type of a GCC
14840 builtin and then its argument prototype would still apply. */
14841 #ifdef __cplusplus
14842 extern "C"
14843 #endif
14844 char readline ();
14846 main ()
14848 return readline ();
14850 return 0;
14852 _ACEOF
14853 if ac_fn_c_try_link "$LINENO"; then :
14854 vl_cv_lib_readline="$TRY_LIB"
14856 rm -f core conftest.err conftest.$ac_objext \
14857 conftest$ac_exeext conftest.$ac_ext
14858 if test -n "$vl_cv_lib_readline"; then
14859 break
14861 done
14862 if test -n "$vl_cv_lib_readline"; then
14863 break
14865 done
14866 if test -z "$vl_cv_lib_readline"; then
14867 vl_cv_lib_readline="no"
14868 LIBS="$ORIG_LIBS"
14869 READLINE_LIBS=""
14870 else
14871 READLINE_LIBS="$vl_cv_lib_readline"
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
14876 $as_echo "$vl_cv_lib_readline" >&6; }
14878 if test "$vl_cv_lib_readline" != "no"; then
14880 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
14882 for ac_header in readline.h readline/readline.h
14883 do :
14884 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14885 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14886 eval as_val=\$$as_ac_Header
14887 if test "x$as_val" = x""yes; then :
14888 cat >>confdefs.h <<_ACEOF
14889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14890 _ACEOF
14894 done
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
14897 $as_echo_n "checking whether readline supports history... " >&6; }
14898 if test "${vl_cv_lib_readline_history+set}" = set; then :
14899 $as_echo_n "(cached) " >&6
14900 else
14902 vl_cv_lib_readline_history="no"
14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904 /* end confdefs.h. */
14906 /* Override any GCC internal prototype to avoid an error.
14907 Use char because int might match the return type of a GCC
14908 builtin and then its argument prototype would still apply. */
14909 #ifdef __cplusplus
14910 extern "C"
14911 #endif
14912 char add_history ();
14914 main ()
14916 return add_history ();
14918 return 0;
14920 _ACEOF
14921 if ac_fn_c_try_link "$LINENO"; then :
14922 vl_cv_lib_readline_history="yes"
14924 rm -f core conftest.err conftest.$ac_objext \
14925 conftest$ac_exeext conftest.$ac_ext
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
14929 $as_echo "$vl_cv_lib_readline_history" >&6; }
14930 if test "$vl_cv_lib_readline_history" = "yes"; then
14932 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
14934 for ac_header in history.h readline/history.h
14935 do :
14936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14937 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14938 eval as_val=\$$as_ac_Header
14939 if test "x$as_val" = x""yes; then :
14940 cat >>confdefs.h <<_ACEOF
14941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14942 _ACEOF
14946 done
14951 LIBS="$ORIG_LIBS"
14955 if test ${PLASMAMULE:-no} = yes; then :
14958 if test -z ${QT_MOC}; then :
14960 for ac_prog in moc-qt4 moc
14962 # Extract the first word of "$ac_prog", so it can be a program name with args.
14963 set dummy $ac_prog; ac_word=$2
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14965 $as_echo_n "checking for $ac_word... " >&6; }
14966 if test "${ac_cv_path_QT_MOC+set}" = set; then :
14967 $as_echo_n "(cached) " >&6
14968 else
14969 case $QT_MOC in
14970 [\\/]* | ?:[\\/]*)
14971 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
14974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14975 for as_dir in $PATH
14977 IFS=$as_save_IFS
14978 test -z "$as_dir" && as_dir=.
14979 for ac_exec_ext in '' $ac_executable_extensions; do
14980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14981 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
14982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14983 break 2
14985 done
14986 done
14987 IFS=$as_save_IFS
14990 esac
14992 QT_MOC=$ac_cv_path_QT_MOC
14993 if test -n "$QT_MOC"; then
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
14995 $as_echo "$QT_MOC" >&6; }
14996 else
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14998 $as_echo "no" >&6; }
15002 test -n "$QT_MOC" && break
15003 done
15005 if test -z ${QT_MOC}; then :
15007 echo moc not found
15008 exit 1
15012 else
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15015 $as_echo_n "checking for moc... " >&6; }
15016 if test -x ${QT_MOC}; then :
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15019 $as_echo "${QT_MOC}" >&6; }
15022 else
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15025 $as_echo "\"not found\"" >&6; }
15026 QT_MOC="not found"
15027 exit 1
15034 if test "${QT_MOC}" != "not found"; then :
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15037 $as_echo_n "checking for moc version >= 4... " >&6; }
15038 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15039 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15042 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15044 else
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15047 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15048 QT_MOC="not found"
15049 exit 1
15055 if test "${QT_MOC}" = "not found"; then :
15056 enable_plasmamule=disabled
15059 if test ${enable_plasmamule:-no} = yes; then :
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15064 $as_echo_n "checking for qt... " >&6; }
15065 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15068 $as_echo "found" >&6; }
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15070 $as_echo_n "checking for qt core cflags... " >&6; }
15071 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15073 $as_echo "$QT_CORE_CFLAGS" >&6; }
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15075 $as_echo_n "checking for qt core libs... " >&6; }
15076 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15078 $as_echo "$QT_CORE_LIBS" >&6; }
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15080 $as_echo_n "checking for qt gui cflags... " >&6; }
15081 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15083 $as_echo "$QT_GUI_CFLAGS" >&6; }
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15085 $as_echo_n "checking for qt gui libs... " >&6; }
15086 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15088 $as_echo "$QT_GUI_LIBS" >&6; }
15090 else
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15092 $as_echo "not found" >&6; }
15093 exit 1
15097 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15099 QT_DBUS_LDFLAGS="-lQtDBus"
15109 if test -z "${QT_CORE_CXXFLAGS}"; then :
15110 enable_plasmamule=disabled
15115 if test ${enable_plasmamule:-no} = yes; then :
15118 if test -z ${KDE4_CONFIG}; then :
15120 # Extract the first word of "kde4-config", so it can be a program name with args.
15121 set dummy kde4-config; ac_word=$2
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15123 $as_echo_n "checking for $ac_word... " >&6; }
15124 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
15125 $as_echo_n "(cached) " >&6
15126 else
15127 case $KDE4_CONFIG in
15128 [\\/]* | ?:[\\/]*)
15129 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
15132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15133 for as_dir in $PATH
15135 IFS=$as_save_IFS
15136 test -z "$as_dir" && as_dir=.
15137 for ac_exec_ext in '' $ac_executable_extensions; do
15138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15139 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15141 break 2
15143 done
15144 done
15145 IFS=$as_save_IFS
15148 esac
15150 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
15151 if test -n "$KDE4_CONFIG"; then
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15153 $as_echo "$KDE4_CONFIG" >&6; }
15154 else
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15156 $as_echo "no" >&6; }
15161 else
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15164 $as_echo_n "checking for kde4-config... " >&6; }
15165 if test ! -x KDE4_CONFIG; then :
15167 KDE4_CONFIG="not found"
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15169 $as_echo "not found" >&6; }
15170 exit 1
15176 if test "${KDE4_CONFIG}" != "not found"; then :
15178 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15179 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15182 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15184 else
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
15187 $as_echo "at least version 4 required" >&6; }
15188 exit 1
15192 else
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15195 $as_echo "not found" >&6; }
15196 exit 1
15201 if test "${KDE4_CONFIG}" = "not found"; then :
15202 enable_plasmamule=disabled
15207 if test ${enable_plasmamule:-no} = yes; then :
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
15211 $as_echo_n "checking for kde4 headers... " >&6; }
15212 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15214 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15216 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
15219 $as_echo "${KDE_HEADER_DIR}" >&6; }
15221 else
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
15224 $as_echo "dataengine.h not found" >&6; }
15225 exit 1
15229 else
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
15232 $as_echo "kdirwatch.h not found" >&6; }
15233 exit 1
15238 if test -z ${KDE_HEADER_DIR}; then :
15239 enable_plasmamule=disabled
15244 if test ${enable_plasmamule:-no} = yes; then :
15246 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15247 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
15252 $as_echo_n "checking for kde4 applinks Path... " >&6; }
15253 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15255 KDE_IN_HOME="yes"
15258 if test ${KDE_IN_HOME} = "yes"; then :
15260 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15262 else
15264 if test -n ${prefix}; then :
15266 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
15267 if test -n ${KDE_APPLNK_PATH}; then :
15269 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15273 else
15275 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
15281 $as_echo "${KDE_APPLNK_PATH}" >&6; }
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
15287 $as_echo_n "checking for kde4 services Path... " >&6; }
15288 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15290 KDE_IN_HOME="yes"
15293 if test ${KDE_IN_HOME} = "yes"; then :
15295 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15297 else
15299 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
15303 $as_echo "${KDE_SERVICE_PATH}" >&6; }
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
15309 $as_echo_n "checking for kde4 plugins Path... " >&6; }
15310 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15312 KDE_IN_HOME="yes"
15315 if test ${KDE_IN_HOME} = "yes"; then :
15317 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15319 else
15321 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
15325 $as_echo "${KDE_MODULE_PATH}" >&6; }
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
15331 $as_echo_n "checking for kde4 icons Path... " >&6; }
15332 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15334 KDE_IN_HOME="yes"
15337 if test ${KDE_IN_HOME} = "yes"; then :
15339 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15341 else
15343 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
15346 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
15348 $as_echo "${KDE_ICON_PATH}" >&6; }
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
15354 $as_echo_n "checking for location for mime-type installation... " >&6; }
15355 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15357 KDE_IN_HOME="yes"
15360 if test ${KDE_IN_HOME} = "yes"; then :
15362 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15364 else
15366 if test -n ${prefix}; then :
15368 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
15369 if test -n ${KDE_MIME_PATH}; then :
15371 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15375 else
15377 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
15383 $as_echo "${KDE_MIME_PATH}" >&6; }
15387 else
15388 enable_plasmamule=disabled
15393 if test ${enable_debug:-yes} = yes; then :
15395 DEBUGFLAG="-D__DEBUG__"
15402 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
15405 # Check whether --enable-ccache was given.
15406 if test "${enable_ccache+set}" = set; then :
15407 enableval=$enable_ccache;
15413 # Check whether --with-ccache-prefix was given.
15414 if test "${with_ccache_prefix+set}" = set; then :
15415 withval=$with_ccache_prefix;
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
15420 $as_echo_n "checking whether ccache support should be added... " >&6; }
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15422 $as_echo "${enable_ccache:-no}" >&6; }
15424 if test ${enable_ccache:-no} = yes; then :
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
15427 $as_echo_n "checking for ccache presence... " >&6; }
15428 if test -z "$with_ccache_prefix"; then :
15430 ccache_full=`which ccache`
15431 with_ccache_prefix=`dirname ${ccache_full}`
15434 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then :
15436 CC="$with_ccache_prefix/ccache $CC"
15437 CXX="$with_ccache_prefix/ccache $CXX"
15438 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
15440 else
15441 enable_ccache=no
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15444 $as_echo "${enable_ccache:-no}" >&6; }
15449 ac_config_files="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/plasmamule/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
15451 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
15453 if test x$SYS = xwin32; then :
15454 ac_config_files="$ac_config_files version.rc"
15457 cat >confcache <<\_ACEOF
15458 # This file is a shell script that caches the results of configure
15459 # tests run on this system so they can be shared between configure
15460 # scripts and configure runs, see configure's option --config-cache.
15461 # It is not useful on other systems. If it contains results you don't
15462 # want to keep, you may remove or edit it.
15464 # config.status only pays attention to the cache file if you give it
15465 # the --recheck option to rerun configure.
15467 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15468 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15469 # following values.
15471 _ACEOF
15473 # The following way of writing the cache mishandles newlines in values,
15474 # but we know of no workaround that is simple, portable, and efficient.
15475 # So, we kill variables containing newlines.
15476 # Ultrix sh set writes to stderr and can't be redirected directly,
15477 # and sets the high bit in the cache file unless we assign to the vars.
15479 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15480 eval ac_val=\$$ac_var
15481 case $ac_val in #(
15482 *${as_nl}*)
15483 case $ac_var in #(
15484 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15485 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15486 esac
15487 case $ac_var in #(
15488 _ | IFS | as_nl) ;; #(
15489 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15490 *) { eval $ac_var=; unset $ac_var;} ;;
15491 esac ;;
15492 esac
15493 done
15495 (set) 2>&1 |
15496 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15497 *${as_nl}ac_space=\ *)
15498 # `set' does not quote correctly, so add quotes: double-quote
15499 # substitution turns \\\\ into \\, and sed turns \\ into \.
15500 sed -n \
15501 "s/'/'\\\\''/g;
15502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15503 ;; #(
15505 # `set' quotes correctly as required by POSIX, so do not add quotes.
15506 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15508 esac |
15509 sort
15511 sed '
15512 /^ac_cv_env_/b end
15513 t clear
15514 :clear
15515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15516 t end
15517 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15518 :end' >>confcache
15519 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15520 if test -w "$cache_file"; then
15521 test "x$cache_file" != "x/dev/null" &&
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15523 $as_echo "$as_me: updating cache $cache_file" >&6;}
15524 cat confcache >$cache_file
15525 else
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15527 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15530 rm -f confcache
15532 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15533 # Let make expand exec_prefix.
15534 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15536 DEFS=-DHAVE_CONFIG_H
15538 ac_libobjs=
15539 ac_ltlibobjs=
15540 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15541 # 1. Remove the extension, and $U if already installed.
15542 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15543 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15544 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15545 # will be set to the directory where LIBOBJS objects are built.
15546 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15547 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15548 done
15549 LIBOBJS=$ac_libobjs
15551 LTLIBOBJS=$ac_ltlibobjs
15554 if test -n "$EXEEXT"; then
15555 am__EXEEXT_TRUE=
15556 am__EXEEXT_FALSE='#'
15557 else
15558 am__EXEEXT_TRUE='#'
15559 am__EXEEXT_FALSE=
15562 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15563 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15566 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15567 as_fn_error "conditional \"AMDEP\" was never defined.
15568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15570 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15571 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15574 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15575 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15578 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
15579 as_fn_error "conditional \"MONOLITHIC\" was never defined.
15580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15582 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
15583 as_fn_error "conditional \"AMULE_DAEMON\" was never defined.
15584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15586 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
15587 as_fn_error "conditional \"COMPILE_CMD\" was never defined.
15588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15590 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
15591 as_fn_error "conditional \"WEB\" was never defined.
15592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15594 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
15595 as_fn_error "conditional \"AMULE_GUI\" was never defined.
15596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15598 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
15599 as_fn_error "conditional \"CAS\" was never defined.
15600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15602 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
15603 as_fn_error "conditional \"WXCAS\" was never defined.
15604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15606 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
15607 as_fn_error "conditional \"ED2K\" was never defined.
15608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15610 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
15611 as_fn_error "conditional \"ALC\" was never defined.
15612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15614 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
15615 as_fn_error "conditional \"ALCC\" was never defined.
15616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15618 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
15619 as_fn_error "conditional \"XAS\" was never defined.
15620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15622 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
15623 as_fn_error "conditional \"FILEVIEW\" was never defined.
15624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15626 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
15627 as_fn_error "conditional \"SYS_WIN32\" was never defined.
15628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15630 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
15631 as_fn_error "conditional \"NEED_RC\" was never defined.
15632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15634 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
15635 as_fn_error "conditional \"NEED_CORESERVICES\" was never defined.
15636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15638 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
15639 as_fn_error "conditional \"COMPILE_NLS\" was never defined.
15640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15642 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
15643 as_fn_error "conditional \"GENERATE_FLEX_HEADER\" was never defined.
15644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15646 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
15647 as_fn_error "conditional \"INSTALL_SKINS\" was never defined.
15648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15650 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
15651 as_fn_error "conditional \"PLASMAMULE\" was never defined.
15652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15654 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
15655 as_fn_error "conditional \"COMPILE_LIB_COMMON\" was never defined.
15656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15658 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
15659 as_fn_error "conditional \"COMPILE_LIB_EC\" was never defined.
15660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15663 : ${CONFIG_STATUS=./config.status}
15664 ac_write_fail=0
15665 ac_clean_files_save=$ac_clean_files
15666 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15668 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15669 as_write_fail=0
15670 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15671 #! $SHELL
15672 # Generated by $as_me.
15673 # Run this file to recreate the current configuration.
15674 # Compiler output produced by configure, useful for debugging
15675 # configure, is in config.log if it exists.
15677 debug=false
15678 ac_cs_recheck=false
15679 ac_cs_silent=false
15681 SHELL=\${CONFIG_SHELL-$SHELL}
15682 export SHELL
15683 _ASEOF
15684 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15685 ## -------------------- ##
15686 ## M4sh Initialization. ##
15687 ## -------------------- ##
15689 # Be more Bourne compatible
15690 DUALCASE=1; export DUALCASE # for MKS sh
15691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15692 emulate sh
15693 NULLCMD=:
15694 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15695 # is contrary to our usage. Disable this feature.
15696 alias -g '${1+"$@"}'='"$@"'
15697 setopt NO_GLOB_SUBST
15698 else
15699 case `(set -o) 2>/dev/null` in #(
15700 *posix*) :
15701 set -o posix ;; #(
15702 *) :
15704 esac
15708 as_nl='
15710 export as_nl
15711 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15712 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15713 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15714 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15715 # Prefer a ksh shell builtin over an external printf program on Solaris,
15716 # but without wasting forks for bash or zsh.
15717 if test -z "$BASH_VERSION$ZSH_VERSION" \
15718 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15719 as_echo='print -r --'
15720 as_echo_n='print -rn --'
15721 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15722 as_echo='printf %s\n'
15723 as_echo_n='printf %s'
15724 else
15725 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15726 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15727 as_echo_n='/usr/ucb/echo -n'
15728 else
15729 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15730 as_echo_n_body='eval
15731 arg=$1;
15732 case $arg in #(
15733 *"$as_nl"*)
15734 expr "X$arg" : "X\\(.*\\)$as_nl";
15735 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15736 esac;
15737 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15739 export as_echo_n_body
15740 as_echo_n='sh -c $as_echo_n_body as_echo'
15742 export as_echo_body
15743 as_echo='sh -c $as_echo_body as_echo'
15746 # The user is always right.
15747 if test "${PATH_SEPARATOR+set}" != set; then
15748 PATH_SEPARATOR=:
15749 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15750 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15751 PATH_SEPARATOR=';'
15756 # IFS
15757 # We need space, tab and new line, in precisely that order. Quoting is
15758 # there to prevent editors from complaining about space-tab.
15759 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15760 # splitting by setting IFS to empty value.)
15761 IFS=" "" $as_nl"
15763 # Find who we are. Look in the path if we contain no directory separator.
15764 case $0 in #((
15765 *[\\/]* ) as_myself=$0 ;;
15766 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15767 for as_dir in $PATH
15769 IFS=$as_save_IFS
15770 test -z "$as_dir" && as_dir=.
15771 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15772 done
15773 IFS=$as_save_IFS
15776 esac
15777 # We did not find ourselves, most probably we were run as `sh COMMAND'
15778 # in which case we are not to be found in the path.
15779 if test "x$as_myself" = x; then
15780 as_myself=$0
15782 if test ! -f "$as_myself"; then
15783 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15784 exit 1
15787 # Unset variables that we do not need and which cause bugs (e.g. in
15788 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15789 # suppresses any "Segmentation fault" message there. '((' could
15790 # trigger a bug in pdksh 5.2.14.
15791 for as_var in BASH_ENV ENV MAIL MAILPATH
15792 do eval test x\${$as_var+set} = xset \
15793 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15794 done
15795 PS1='$ '
15796 PS2='> '
15797 PS4='+ '
15799 # NLS nuisances.
15800 LC_ALL=C
15801 export LC_ALL
15802 LANGUAGE=C
15803 export LANGUAGE
15805 # CDPATH.
15806 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15809 # as_fn_error ERROR [LINENO LOG_FD]
15810 # ---------------------------------
15811 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15812 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15813 # script with status $?, using 1 if that was 0.
15814 as_fn_error ()
15816 as_status=$?; test $as_status -eq 0 && as_status=1
15817 if test "$3"; then
15818 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15819 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15821 $as_echo "$as_me: error: $1" >&2
15822 as_fn_exit $as_status
15823 } # as_fn_error
15826 # as_fn_set_status STATUS
15827 # -----------------------
15828 # Set $? to STATUS, without forking.
15829 as_fn_set_status ()
15831 return $1
15832 } # as_fn_set_status
15834 # as_fn_exit STATUS
15835 # -----------------
15836 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15837 as_fn_exit ()
15839 set +e
15840 as_fn_set_status $1
15841 exit $1
15842 } # as_fn_exit
15844 # as_fn_unset VAR
15845 # ---------------
15846 # Portably unset VAR.
15847 as_fn_unset ()
15849 { eval $1=; unset $1;}
15851 as_unset=as_fn_unset
15852 # as_fn_append VAR VALUE
15853 # ----------------------
15854 # Append the text in VALUE to the end of the definition contained in VAR. Take
15855 # advantage of any shell optimizations that allow amortized linear growth over
15856 # repeated appends, instead of the typical quadratic growth present in naive
15857 # implementations.
15858 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15859 eval 'as_fn_append ()
15861 eval $1+=\$2
15863 else
15864 as_fn_append ()
15866 eval $1=\$$1\$2
15868 fi # as_fn_append
15870 # as_fn_arith ARG...
15871 # ------------------
15872 # Perform arithmetic evaluation on the ARGs, and store the result in the
15873 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15874 # must be portable across $(()) and expr.
15875 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15876 eval 'as_fn_arith ()
15878 as_val=$(( $* ))
15880 else
15881 as_fn_arith ()
15883 as_val=`expr "$@" || test $? -eq 1`
15885 fi # as_fn_arith
15888 if expr a : '\(a\)' >/dev/null 2>&1 &&
15889 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15890 as_expr=expr
15891 else
15892 as_expr=false
15895 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15896 as_basename=basename
15897 else
15898 as_basename=false
15901 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15902 as_dirname=dirname
15903 else
15904 as_dirname=false
15907 as_me=`$as_basename -- "$0" ||
15908 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15909 X"$0" : 'X\(//\)$' \| \
15910 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15911 $as_echo X/"$0" |
15912 sed '/^.*\/\([^/][^/]*\)\/*$/{
15913 s//\1/
15916 /^X\/\(\/\/\)$/{
15917 s//\1/
15920 /^X\/\(\/\).*/{
15921 s//\1/
15924 s/.*/./; q'`
15926 # Avoid depending upon Character Ranges.
15927 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15928 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15929 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15930 as_cr_digits='0123456789'
15931 as_cr_alnum=$as_cr_Letters$as_cr_digits
15933 ECHO_C= ECHO_N= ECHO_T=
15934 case `echo -n x` in #(((((
15935 -n*)
15936 case `echo 'xy\c'` in
15937 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15938 xy) ECHO_C='\c';;
15939 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15940 ECHO_T=' ';;
15941 esac;;
15943 ECHO_N='-n';;
15944 esac
15946 rm -f conf$$ conf$$.exe conf$$.file
15947 if test -d conf$$.dir; then
15948 rm -f conf$$.dir/conf$$.file
15949 else
15950 rm -f conf$$.dir
15951 mkdir conf$$.dir 2>/dev/null
15953 if (echo >conf$$.file) 2>/dev/null; then
15954 if ln -s conf$$.file conf$$ 2>/dev/null; then
15955 as_ln_s='ln -s'
15956 # ... but there are two gotchas:
15957 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15958 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15959 # In both cases, we have to default to `cp -p'.
15960 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15961 as_ln_s='cp -p'
15962 elif ln conf$$.file conf$$ 2>/dev/null; then
15963 as_ln_s=ln
15964 else
15965 as_ln_s='cp -p'
15967 else
15968 as_ln_s='cp -p'
15970 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15971 rmdir conf$$.dir 2>/dev/null
15974 # as_fn_mkdir_p
15975 # -------------
15976 # Create "$as_dir" as a directory, including parents if necessary.
15977 as_fn_mkdir_p ()
15980 case $as_dir in #(
15981 -*) as_dir=./$as_dir;;
15982 esac
15983 test -d "$as_dir" || eval $as_mkdir_p || {
15984 as_dirs=
15985 while :; do
15986 case $as_dir in #(
15987 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15988 *) as_qdir=$as_dir;;
15989 esac
15990 as_dirs="'$as_qdir' $as_dirs"
15991 as_dir=`$as_dirname -- "$as_dir" ||
15992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15993 X"$as_dir" : 'X\(//\)[^/]' \| \
15994 X"$as_dir" : 'X\(//\)$' \| \
15995 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15996 $as_echo X"$as_dir" |
15997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15998 s//\1/
16001 /^X\(\/\/\)[^/].*/{
16002 s//\1/
16005 /^X\(\/\/\)$/{
16006 s//\1/
16009 /^X\(\/\).*/{
16010 s//\1/
16013 s/.*/./; q'`
16014 test -d "$as_dir" && break
16015 done
16016 test -z "$as_dirs" || eval "mkdir $as_dirs"
16017 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16020 } # as_fn_mkdir_p
16021 if mkdir -p . 2>/dev/null; then
16022 as_mkdir_p='mkdir -p "$as_dir"'
16023 else
16024 test -d ./-p && rmdir ./-p
16025 as_mkdir_p=false
16028 if test -x / >/dev/null 2>&1; then
16029 as_test_x='test -x'
16030 else
16031 if ls -dL / >/dev/null 2>&1; then
16032 as_ls_L_option=L
16033 else
16034 as_ls_L_option=
16036 as_test_x='
16037 eval sh -c '\''
16038 if test -d "$1"; then
16039 test -d "$1/.";
16040 else
16041 case $1 in #(
16042 -*)set "./$1";;
16043 esac;
16044 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16045 ???[sx]*):;;*)false;;esac;fi
16046 '\'' sh
16049 as_executable_p=$as_test_x
16051 # Sed expression to map a string onto a valid CPP name.
16052 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16054 # Sed expression to map a string onto a valid variable name.
16055 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16058 exec 6>&1
16059 ## ----------------------------------- ##
16060 ## Main body of $CONFIG_STATUS script. ##
16061 ## ----------------------------------- ##
16062 _ASEOF
16063 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16066 # Save the log message, to keep $0 and so on meaningful, and to
16067 # report actual input values of CONFIG_FILES etc. instead of their
16068 # values after options handling.
16069 ac_log="
16070 This file was extended by aMule $as_me SVN, which was
16071 generated by GNU Autoconf 2.65. Invocation command line was
16073 CONFIG_FILES = $CONFIG_FILES
16074 CONFIG_HEADERS = $CONFIG_HEADERS
16075 CONFIG_LINKS = $CONFIG_LINKS
16076 CONFIG_COMMANDS = $CONFIG_COMMANDS
16077 $ $0 $@
16079 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16082 _ACEOF
16084 case $ac_config_files in *"
16085 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16086 esac
16088 case $ac_config_headers in *"
16089 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16090 esac
16093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16094 # Files that config.status was made for.
16095 config_files="$ac_config_files"
16096 config_headers="$ac_config_headers"
16097 config_commands="$ac_config_commands"
16099 _ACEOF
16101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16102 ac_cs_usage="\
16103 \`$as_me' instantiates files and other configuration actions
16104 from templates according to the current configuration. Unless the files
16105 and actions are specified as TAGs, all are instantiated by default.
16107 Usage: $0 [OPTION]... [TAG]...
16109 -h, --help print this help, then exit
16110 -V, --version print version number and configuration settings, then exit
16111 --config print configuration, then exit
16112 -q, --quiet, --silent
16113 do not print progress messages
16114 -d, --debug don't remove temporary files
16115 --recheck update $as_me by reconfiguring in the same conditions
16116 --file=FILE[:TEMPLATE]
16117 instantiate the configuration file FILE
16118 --header=FILE[:TEMPLATE]
16119 instantiate the configuration header FILE
16121 Configuration files:
16122 $config_files
16124 Configuration headers:
16125 $config_headers
16127 Configuration commands:
16128 $config_commands
16130 Report bugs to <admin@amule.org>."
16132 _ACEOF
16133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16134 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16135 ac_cs_version="\\
16136 aMule config.status SVN
16137 configured by $0, generated by GNU Autoconf 2.65,
16138 with options \\"\$ac_cs_config\\"
16140 Copyright (C) 2009 Free Software Foundation, Inc.
16141 This config.status script is free software; the Free Software Foundation
16142 gives unlimited permission to copy, distribute and modify it."
16144 ac_pwd='$ac_pwd'
16145 srcdir='$srcdir'
16146 INSTALL='$INSTALL'
16147 MKDIR_P='$MKDIR_P'
16148 AWK='$AWK'
16149 test -n "\$AWK" || AWK=awk
16150 _ACEOF
16152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16153 # The default lists apply if the user does not specify any file.
16154 ac_need_defaults=:
16155 while test $# != 0
16157 case $1 in
16158 --*=*)
16159 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16160 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16161 ac_shift=:
16164 ac_option=$1
16165 ac_optarg=$2
16166 ac_shift=shift
16168 esac
16170 case $ac_option in
16171 # Handling of the options.
16172 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16173 ac_cs_recheck=: ;;
16174 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16175 $as_echo "$ac_cs_version"; exit ;;
16176 --config | --confi | --conf | --con | --co | --c )
16177 $as_echo "$ac_cs_config"; exit ;;
16178 --debug | --debu | --deb | --de | --d | -d )
16179 debug=: ;;
16180 --file | --fil | --fi | --f )
16181 $ac_shift
16182 case $ac_optarg in
16183 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16184 esac
16185 as_fn_append CONFIG_FILES " '$ac_optarg'"
16186 ac_need_defaults=false;;
16187 --header | --heade | --head | --hea )
16188 $ac_shift
16189 case $ac_optarg in
16190 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16191 esac
16192 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16193 ac_need_defaults=false;;
16194 --he | --h)
16195 # Conflict between --help and --header
16196 as_fn_error "ambiguous option: \`$1'
16197 Try \`$0 --help' for more information.";;
16198 --help | --hel | -h )
16199 $as_echo "$ac_cs_usage"; exit ;;
16200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16201 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16202 ac_cs_silent=: ;;
16204 # This is an error.
16205 -*) as_fn_error "unrecognized option: \`$1'
16206 Try \`$0 --help' for more information." ;;
16208 *) as_fn_append ac_config_targets " $1"
16209 ac_need_defaults=false ;;
16211 esac
16212 shift
16213 done
16215 ac_configure_extra_args=
16217 if $ac_cs_silent; then
16218 exec 6>/dev/null
16219 ac_configure_extra_args="$ac_configure_extra_args --silent"
16222 _ACEOF
16223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16224 if \$ac_cs_recheck; then
16225 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16226 shift
16227 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16228 CONFIG_SHELL='$SHELL'
16229 export CONFIG_SHELL
16230 exec "\$@"
16233 _ACEOF
16234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16235 exec 5>>config.log
16237 echo
16238 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16239 ## Running $as_me. ##
16240 _ASBOX
16241 $as_echo "$ac_log"
16242 } >&5
16244 _ACEOF
16245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16247 # INIT-COMMANDS
16249 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16250 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16251 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16252 # from automake.
16253 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
16254 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16255 LINGUAS="${LINGUAS-%UNSET%}"
16257 denoiserlevel=$with_denoise_level
16259 _ACEOF
16261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16263 # Handling of arguments.
16264 for ac_config_target in $ac_config_targets
16266 case $ac_config_target in
16267 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16268 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16269 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16270 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
16271 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16272 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16273 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
16274 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
16275 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16276 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
16277 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
16278 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
16279 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
16280 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
16281 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
16282 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
16283 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
16284 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
16285 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
16286 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
16287 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
16288 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
16289 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
16290 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
16291 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
16292 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
16293 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
16294 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
16295 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
16296 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
16297 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
16298 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
16299 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
16300 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
16301 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
16302 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
16303 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16304 "Compilation.flags") CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
16305 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;;
16307 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16308 esac
16309 done
16312 # If the user did not use the arguments to specify the items to instantiate,
16313 # then the envvar interface is used. Set only those that are not.
16314 # We use the long form for the default assignment because of an extremely
16315 # bizarre bug on SunOS 4.1.3.
16316 if $ac_need_defaults; then
16317 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16318 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16319 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16322 # Have a temporary directory for convenience. Make it in the build tree
16323 # simply because there is no reason against having it here, and in addition,
16324 # creating and moving files from /tmp can sometimes cause problems.
16325 # Hook for its removal unless debugging.
16326 # Note that there is a small window in which the directory will not be cleaned:
16327 # after its creation but before its name has been assigned to `$tmp'.
16328 $debug ||
16330 tmp=
16331 trap 'exit_status=$?
16332 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16334 trap 'as_fn_exit 1' 1 2 13 15
16336 # Create a (secure) tmp directory for tmp files.
16339 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16340 test -n "$tmp" && test -d "$tmp"
16341 } ||
16343 tmp=./conf$$-$RANDOM
16344 (umask 077 && mkdir "$tmp")
16345 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16347 # Set up the scripts for CONFIG_FILES section.
16348 # No need to generate them if there are no CONFIG_FILES.
16349 # This happens for instance with `./config.status config.h'.
16350 if test -n "$CONFIG_FILES"; then
16353 ac_cr=`echo X | tr X '\015'`
16354 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16355 # But we know of no other shell where ac_cr would be empty at this
16356 # point, so we can use a bashism as a fallback.
16357 if test "x$ac_cr" = x; then
16358 eval ac_cr=\$\'\\r\'
16360 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16361 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16362 ac_cs_awk_cr='\r'
16363 else
16364 ac_cs_awk_cr=$ac_cr
16367 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16368 _ACEOF
16372 echo "cat >conf$$subs.awk <<_ACEOF" &&
16373 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16374 echo "_ACEOF"
16375 } >conf$$subs.sh ||
16376 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16377 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16378 ac_delim='%!_!# '
16379 for ac_last_try in false false false false false :; do
16380 . ./conf$$subs.sh ||
16381 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16383 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16384 if test $ac_delim_n = $ac_delim_num; then
16385 break
16386 elif $ac_last_try; then
16387 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16388 else
16389 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16391 done
16392 rm -f conf$$subs.sh
16394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16395 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16396 _ACEOF
16397 sed -n '
16399 s/^/S["/; s/!.*/"]=/
16402 s/^[^!]*!//
16403 :repl
16404 t repl
16405 s/'"$ac_delim"'$//
16406 t delim
16409 s/\(.\{148\}\)..*/\1/
16410 t more1
16411 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16414 b repl
16415 :more1
16416 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16419 s/.\{148\}//
16420 t nl
16421 :delim
16423 s/\(.\{148\}\)..*/\1/
16424 t more2
16425 s/["\\]/\\&/g; s/^/"/; s/$/"/
16428 :more2
16429 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16432 s/.\{148\}//
16433 t delim
16434 ' <conf$$subs.awk | sed '
16435 /^[^""]/{
16437 s/\n//
16439 ' >>$CONFIG_STATUS || ac_write_fail=1
16440 rm -f conf$$subs.awk
16441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16442 _ACAWK
16443 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16444 for (key in S) S_is_set[key] = 1
16445 FS = "\a"
16449 line = $ 0
16450 nfields = split(line, field, "@")
16451 substed = 0
16452 len = length(field[1])
16453 for (i = 2; i < nfields; i++) {
16454 key = field[i]
16455 keylen = length(key)
16456 if (S_is_set[key]) {
16457 value = S[key]
16458 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16459 len += length(value) + length(field[++i])
16460 substed = 1
16461 } else
16462 len += 1 + keylen
16465 print line
16468 _ACAWK
16469 _ACEOF
16470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16471 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16472 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16473 else
16475 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16476 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16477 _ACEOF
16479 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16480 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16481 # trailing colons and then remove the whole line if VPATH becomes empty
16482 # (actually we leave an empty line to preserve line numbers).
16483 if test "x$srcdir" = x.; then
16484 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16485 s/:*\$(srcdir):*/:/
16486 s/:*\${srcdir}:*/:/
16487 s/:*@srcdir@:*/:/
16488 s/^\([^=]*=[ ]*\):*/\1/
16489 s/:*$//
16490 s/^[^=]*=[ ]*$//
16494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16495 fi # test -n "$CONFIG_FILES"
16497 # Set up the scripts for CONFIG_HEADERS section.
16498 # No need to generate them if there are no CONFIG_HEADERS.
16499 # This happens for instance with `./config.status Makefile'.
16500 if test -n "$CONFIG_HEADERS"; then
16501 cat >"$tmp/defines.awk" <<\_ACAWK ||
16502 BEGIN {
16503 _ACEOF
16505 # Transform confdefs.h into an awk script `defines.awk', embedded as
16506 # here-document in config.status, that substitutes the proper values into
16507 # config.h.in to produce config.h.
16509 # Create a delimiter string that does not exist in confdefs.h, to ease
16510 # handling of long lines.
16511 ac_delim='%!_!# '
16512 for ac_last_try in false false :; do
16513 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16514 if test -z "$ac_t"; then
16515 break
16516 elif $ac_last_try; then
16517 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16518 else
16519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16521 done
16523 # For the awk script, D is an array of macro values keyed by name,
16524 # likewise P contains macro parameters if any. Preserve backslash
16525 # newline sequences.
16527 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16528 sed -n '
16529 s/.\{148\}/&'"$ac_delim"'/g
16530 t rset
16531 :rset
16532 s/^[ ]*#[ ]*define[ ][ ]*/ /
16533 t def
16535 :def
16536 s/\\$//
16537 t bsnl
16538 s/["\\]/\\&/g
16539 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16540 D["\1"]=" \3"/p
16541 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16543 :bsnl
16544 s/["\\]/\\&/g
16545 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16546 D["\1"]=" \3\\\\\\n"\\/p
16547 t cont
16548 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16549 t cont
16551 :cont
16553 s/.\{148\}/&'"$ac_delim"'/g
16554 t clear
16555 :clear
16556 s/\\$//
16557 t bsnlc
16558 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16560 :bsnlc
16561 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16562 b cont
16563 ' <confdefs.h | sed '
16564 s/'"$ac_delim"'/"\\\
16565 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16568 for (key in D) D_is_set[key] = 1
16569 FS = "\a"
16571 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16572 line = \$ 0
16573 split(line, arg, " ")
16574 if (arg[1] == "#") {
16575 defundef = arg[2]
16576 mac1 = arg[3]
16577 } else {
16578 defundef = substr(arg[1], 2)
16579 mac1 = arg[2]
16581 split(mac1, mac2, "(") #)
16582 macro = mac2[1]
16583 prefix = substr(line, 1, index(line, defundef) - 1)
16584 if (D_is_set[macro]) {
16585 # Preserve the white space surrounding the "#".
16586 print prefix "define", macro P[macro] D[macro]
16587 next
16588 } else {
16589 # Replace #undef with comments. This is necessary, for example,
16590 # in the case of _POSIX_SOURCE, which is predefined and required
16591 # on some systems where configure will not decide to define it.
16592 if (defundef == "undef") {
16593 print "/*", prefix defundef, macro, "*/"
16594 next
16598 { print }
16599 _ACAWK
16600 _ACEOF
16601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16602 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16603 fi # test -n "$CONFIG_HEADERS"
16606 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16607 shift
16608 for ac_tag
16610 case $ac_tag in
16611 :[FHLC]) ac_mode=$ac_tag; continue;;
16612 esac
16613 case $ac_mode$ac_tag in
16614 :[FHL]*:*);;
16615 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16616 :[FH]-) ac_tag=-:-;;
16617 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16618 esac
16619 ac_save_IFS=$IFS
16620 IFS=:
16621 set x $ac_tag
16622 IFS=$ac_save_IFS
16623 shift
16624 ac_file=$1
16625 shift
16627 case $ac_mode in
16628 :L) ac_source=$1;;
16629 :[FH])
16630 ac_file_inputs=
16631 for ac_f
16633 case $ac_f in
16634 -) ac_f="$tmp/stdin";;
16635 *) # Look for the file first in the build tree, then in the source tree
16636 # (if the path is not absolute). The absolute path cannot be DOS-style,
16637 # because $ac_f cannot contain `:'.
16638 test -f "$ac_f" ||
16639 case $ac_f in
16640 [\\/$]*) false;;
16641 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16642 esac ||
16643 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16644 esac
16645 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16646 as_fn_append ac_file_inputs " '$ac_f'"
16647 done
16649 # Let's still pretend it is `configure' which instantiates (i.e., don't
16650 # use $as_me), people would be surprised to read:
16651 # /* config.h. Generated by config.status. */
16652 configure_input='Generated from '`
16653 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16654 `' by configure.'
16655 if test x"$ac_file" != x-; then
16656 configure_input="$ac_file. $configure_input"
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16658 $as_echo "$as_me: creating $ac_file" >&6;}
16660 # Neutralize special characters interpreted by sed in replacement strings.
16661 case $configure_input in #(
16662 *\&* | *\|* | *\\* )
16663 ac_sed_conf_input=`$as_echo "$configure_input" |
16664 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16665 *) ac_sed_conf_input=$configure_input;;
16666 esac
16668 case $ac_tag in
16669 *:-:* | *:-) cat >"$tmp/stdin" \
16670 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16671 esac
16673 esac
16675 ac_dir=`$as_dirname -- "$ac_file" ||
16676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16677 X"$ac_file" : 'X\(//\)[^/]' \| \
16678 X"$ac_file" : 'X\(//\)$' \| \
16679 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16680 $as_echo X"$ac_file" |
16681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16682 s//\1/
16685 /^X\(\/\/\)[^/].*/{
16686 s//\1/
16689 /^X\(\/\/\)$/{
16690 s//\1/
16693 /^X\(\/\).*/{
16694 s//\1/
16697 s/.*/./; q'`
16698 as_dir="$ac_dir"; as_fn_mkdir_p
16699 ac_builddir=.
16701 case "$ac_dir" in
16702 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16705 # A ".." for each directory in $ac_dir_suffix.
16706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16707 case $ac_top_builddir_sub in
16708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16710 esac ;;
16711 esac
16712 ac_abs_top_builddir=$ac_pwd
16713 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16714 # for backward compatibility:
16715 ac_top_builddir=$ac_top_build_prefix
16717 case $srcdir in
16718 .) # We are building in place.
16719 ac_srcdir=.
16720 ac_top_srcdir=$ac_top_builddir_sub
16721 ac_abs_top_srcdir=$ac_pwd ;;
16722 [\\/]* | ?:[\\/]* ) # Absolute name.
16723 ac_srcdir=$srcdir$ac_dir_suffix;
16724 ac_top_srcdir=$srcdir
16725 ac_abs_top_srcdir=$srcdir ;;
16726 *) # Relative name.
16727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16728 ac_top_srcdir=$ac_top_build_prefix$srcdir
16729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16730 esac
16731 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16734 case $ac_mode in
16737 # CONFIG_FILE
16740 case $INSTALL in
16741 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16742 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16743 esac
16744 ac_MKDIR_P=$MKDIR_P
16745 case $MKDIR_P in
16746 [\\/$]* | ?:[\\/]* ) ;;
16747 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16748 esac
16749 _ACEOF
16751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16752 # If the template does not know about datarootdir, expand it.
16753 # FIXME: This hack should be removed a few years after 2.60.
16754 ac_datarootdir_hack=; ac_datarootdir_seen=
16755 ac_sed_dataroot='
16756 /datarootdir/ {
16760 /@datadir@/p
16761 /@docdir@/p
16762 /@infodir@/p
16763 /@localedir@/p
16764 /@mandir@/p'
16765 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16766 *datarootdir*) ac_datarootdir_seen=yes;;
16767 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16769 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16770 _ACEOF
16771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16772 ac_datarootdir_hack='
16773 s&@datadir@&$datadir&g
16774 s&@docdir@&$docdir&g
16775 s&@infodir@&$infodir&g
16776 s&@localedir@&$localedir&g
16777 s&@mandir@&$mandir&g
16778 s&\\\${datarootdir}&$datarootdir&g' ;;
16779 esac
16780 _ACEOF
16782 # Neutralize VPATH when `$srcdir' = `.'.
16783 # Shell code in configure.ac might set extrasub.
16784 # FIXME: do we really want to maintain this feature?
16785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16786 ac_sed_extra="$ac_vpsub
16787 $extrasub
16788 _ACEOF
16789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16791 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16792 s|@configure_input@|$ac_sed_conf_input|;t t
16793 s&@top_builddir@&$ac_top_builddir_sub&;t t
16794 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16795 s&@srcdir@&$ac_srcdir&;t t
16796 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16797 s&@top_srcdir@&$ac_top_srcdir&;t t
16798 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16799 s&@builddir@&$ac_builddir&;t t
16800 s&@abs_builddir@&$ac_abs_builddir&;t t
16801 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16802 s&@INSTALL@&$ac_INSTALL&;t t
16803 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16804 $ac_datarootdir_hack
16806 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16807 || as_fn_error "could not create $ac_file" "$LINENO" 5
16809 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16810 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16811 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16813 which seems to be undefined. Please make sure it is defined." >&5
16814 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16815 which seems to be undefined. Please make sure it is defined." >&2;}
16817 rm -f "$tmp/stdin"
16818 case $ac_file in
16819 -) cat "$tmp/out" && rm -f "$tmp/out";;
16820 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16821 esac \
16822 || as_fn_error "could not create $ac_file" "$LINENO" 5
16826 # CONFIG_HEADER
16828 if test x"$ac_file" != x-; then
16830 $as_echo "/* $configure_input */" \
16831 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16832 } >"$tmp/config.h" \
16833 || as_fn_error "could not create $ac_file" "$LINENO" 5
16834 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16836 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16837 else
16838 rm -f "$ac_file"
16839 mv "$tmp/config.h" "$ac_file" \
16840 || as_fn_error "could not create $ac_file" "$LINENO" 5
16842 else
16843 $as_echo "/* $configure_input */" \
16844 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16845 || as_fn_error "could not create -" "$LINENO" 5
16847 # Compute "$ac_file"'s index in $config_headers.
16848 _am_arg="$ac_file"
16849 _am_stamp_count=1
16850 for _am_header in $config_headers :; do
16851 case $_am_header in
16852 $_am_arg | $_am_arg:* )
16853 break ;;
16855 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16856 esac
16857 done
16858 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16859 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16860 X"$_am_arg" : 'X\(//\)[^/]' \| \
16861 X"$_am_arg" : 'X\(//\)$' \| \
16862 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16863 $as_echo X"$_am_arg" |
16864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16865 s//\1/
16868 /^X\(\/\/\)[^/].*/{
16869 s//\1/
16872 /^X\(\/\/\)$/{
16873 s//\1/
16876 /^X\(\/\).*/{
16877 s//\1/
16880 s/.*/./; q'`/stamp-h$_am_stamp_count
16883 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16884 $as_echo "$as_me: executing $ac_file commands" >&6;}
16886 esac
16889 case $ac_file$ac_mode in
16890 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16891 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16892 # are listed without --file. Let's play safe and only enable the eval
16893 # if we detect the quoting.
16894 case $CONFIG_FILES in
16895 *\'*) eval set x "$CONFIG_FILES" ;;
16896 *) set x $CONFIG_FILES ;;
16897 esac
16898 shift
16899 for mf
16901 # Strip MF so we end up with the name of the file.
16902 mf=`echo "$mf" | sed -e 's/:.*$//'`
16903 # Check whether this is an Automake generated Makefile or not.
16904 # We used to match only the files named `Makefile.in', but
16905 # some people rename them; so instead we look at the file content.
16906 # Grep'ing the first line is not enough: some people post-process
16907 # each Makefile.in and add a new line on top of each file to say so.
16908 # Grep'ing the whole file is not good either: AIX grep has a line
16909 # limit of 2048, but all sed's we know have understand at least 4000.
16910 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16911 dirpart=`$as_dirname -- "$mf" ||
16912 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16913 X"$mf" : 'X\(//\)[^/]' \| \
16914 X"$mf" : 'X\(//\)$' \| \
16915 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16916 $as_echo X"$mf" |
16917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16918 s//\1/
16921 /^X\(\/\/\)[^/].*/{
16922 s//\1/
16925 /^X\(\/\/\)$/{
16926 s//\1/
16929 /^X\(\/\).*/{
16930 s//\1/
16933 s/.*/./; q'`
16934 else
16935 continue
16937 # Extract the definition of DEPDIR, am__include, and am__quote
16938 # from the Makefile without running `make'.
16939 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16940 test -z "$DEPDIR" && continue
16941 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16942 test -z "am__include" && continue
16943 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16944 # When using ansi2knr, U may be empty or an underscore; expand it
16945 U=`sed -n 's/^U = //p' < "$mf"`
16946 # Find all dependency output files, they are included files with
16947 # $(DEPDIR) in their names. We invoke sed twice because it is the
16948 # simplest approach to changing $(DEPDIR) to its actual value in the
16949 # expansion.
16950 for file in `sed -n "
16951 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16952 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16953 # Make sure the directory exists.
16954 test -f "$dirpart/$file" && continue
16955 fdir=`$as_dirname -- "$file" ||
16956 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16957 X"$file" : 'X\(//\)[^/]' \| \
16958 X"$file" : 'X\(//\)$' \| \
16959 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16960 $as_echo X"$file" |
16961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16962 s//\1/
16965 /^X\(\/\/\)[^/].*/{
16966 s//\1/
16969 /^X\(\/\/\)$/{
16970 s//\1/
16973 /^X\(\/\).*/{
16974 s//\1/
16977 s/.*/./; q'`
16978 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16979 # echo "creating $dirpart/$file"
16980 echo '# dummy' > "$dirpart/$file"
16981 done
16982 done
16985 "default-1":C)
16986 for ac_file in $CONFIG_FILES; do
16987 # Support "outfile[:infile[:infile...]]"
16988 case "$ac_file" in
16989 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16990 esac
16991 # PO directories have a Makefile.in generated from Makefile.in.in.
16992 case "$ac_file" in */Makefile.in)
16993 # Adjust a relative srcdir.
16994 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16995 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16996 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16997 # In autoconf-2.13 it is called $ac_given_srcdir.
16998 # In autoconf-2.50 it is called $srcdir.
16999 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17000 case "$ac_given_srcdir" in
17001 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17002 /*) top_srcdir="$ac_given_srcdir" ;;
17003 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17004 esac
17005 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17006 rm -f "$ac_dir/POTFILES"
17007 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17008 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17009 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17010 # on $ac_dir but don't depend on user-specified configuration
17011 # parameters.
17012 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17013 # The LINGUAS file contains the set of available languages.
17014 if test -n "$ALL_LINGUAS"; then
17015 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17017 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17018 # Hide the ALL_LINGUAS assigment from automake.
17019 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17021 case "$ac_given_srcdir" in
17022 .) srcdirpre= ;;
17023 *) srcdirpre='$(srcdir)/' ;;
17024 esac
17025 POFILES=
17026 GMOFILES=
17027 UPDATEPOFILES=
17028 DUMMYPOFILES=
17029 for lang in $ALL_LINGUAS; do
17030 POFILES="$POFILES $srcdirpre$lang.po"
17031 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17032 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17033 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17034 done
17035 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17036 # environment variable.
17037 INST_LINGUAS=
17038 if test -n "$ALL_LINGUAS"; then
17039 for presentlang in $ALL_LINGUAS; do
17040 useit=no
17041 if test "%UNSET%" != "$LINGUAS"; then
17042 desiredlanguages="$LINGUAS"
17043 else
17044 desiredlanguages="$ALL_LINGUAS"
17046 for desiredlang in $desiredlanguages; do
17047 # Use the presentlang catalog if desiredlang is
17048 # a. equal to presentlang, or
17049 # b. a variant of presentlang (because in this case,
17050 # presentlang can be used as a fallback for messages
17051 # which are not translated in the desiredlang catalog).
17052 case "$desiredlang" in
17053 "$presentlang"*) useit=yes;;
17054 esac
17055 done
17056 if test $useit = yes; then
17057 INST_LINGUAS="$INST_LINGUAS $presentlang"
17059 done
17061 CATALOGS=
17062 if test -n "$INST_LINGUAS"; then
17063 for lang in $INST_LINGUAS; do
17064 CATALOGS="$CATALOGS $lang.gmo"
17065 done
17067 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17068 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"
17069 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17070 if test -f "$f"; then
17071 case "$f" in
17072 *.orig | *.bak | *~) ;;
17073 *) cat "$f" >> "$ac_dir/Makefile" ;;
17074 esac
17076 done
17079 esac
17080 done ;;
17081 "denoiser":C) if test $denoiserlevel -gt 0; then
17082 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
17083 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" \
17084 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
17085 for i in `find . -name 'Makefile' -print`; do
17086 if test -n "`head -n 1 $i | grep '^#'`"; then
17087 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
17089 done
17090 fi ;;
17092 esac
17093 done # for ac_tag
17096 as_fn_exit 0
17097 _ACEOF
17098 ac_clean_files=$ac_clean_files_save
17100 test $ac_write_fail = 0 ||
17101 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17104 # configure is writing to config.log, and then calls config.status.
17105 # config.status does its own redirection, appending to config.log.
17106 # Unfortunately, on DOS this fails, as config.log is still kept open
17107 # by configure, so config.status won't be able to write to it; its
17108 # output is simply discarded. So we exec the FD to /dev/null,
17109 # effectively closing config.log, so it can be properly (re)opened and
17110 # appended to by config.status. When coming back to configure, we
17111 # need to make the FD available again.
17112 if test "$no_create" != yes; then
17113 ac_cs_success=:
17114 ac_config_status_args=
17115 test "$silent" = yes &&
17116 ac_config_status_args="$ac_config_status_args --quiet"
17117 exec 5>/dev/null
17118 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17119 exec 5>>config.log
17120 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17121 # would make configure fail if this is the last instruction.
17122 $ac_cs_success || as_fn_exit $?
17124 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17126 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17130 if test -n "$svndate"; then :
17131 SVN_REVISION=" ($svndate)"
17132 else
17133 SVN_REVISION=
17136 echo
17137 echo
17138 echo " Configure script has finished system check."
17139 echo
17140 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
17141 echo
17142 echo " aMule enabled options:"
17143 echo
17144 echo " **** aMule Core ****"
17145 echo " Prefix where aMule should be installed? ${prefix:-none}"
17146 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
17147 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
17148 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
17149 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
17150 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
17151 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
17152 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
17153 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
17154 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
17155 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
17157 echo
17158 echo " **** aMule TextClient ****"
17159 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
17160 echo
17161 echo " **** aMule WebServer ****"
17162 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
17163 echo
17164 echo " **** aMule ED2K Links Handler ****"
17165 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
17166 echo
17167 echo " **** aMuleLinkCreator ****"
17168 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
17169 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
17170 echo
17171 echo " **** aMule Statistics ****"
17172 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
17173 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
17174 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
17175 echo " Should plasmaMule plasma-applet be build? ${enable_plasmamule:-no}"
17177 echo
17178 echo " **** General Libraries and Tools ****"
17179 echo " Should ccache support be enabled? ${enable_ccache:-no}"
17180 echo " Libraries aMule will use to build:"
17181 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 :
17183 wxinfo="$WX_PORT"
17184 if test $WX_DEBUG -eq 1; then :
17185 wxinfo="$wxinfo,debug"
17187 if test $WX_SHARED -eq 1; then :
17188 wxinfo="$wxinfo,shared"
17189 else
17190 wxinfo="$wxinfo,static"
17192 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
17195 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
17196 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
17198 if test ${enable_upnp:-yes} = yes; then :
17200 if test -n "$with_libupnp_prefix"; then :
17201 libupnp_place=" (in $with_libupnp_prefix)"
17203 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
17206 if test ${enable_nls:-yes} = yes; then
17207 if test x$USE_NLS = xno; then :
17208 libintl_found="Not detected"
17209 else
17210 if test x$USE_INCLUDED_LIBINTL = xyes; then :
17211 libintl_found="included"
17212 else
17213 libintl_found="system"
17216 echo " libintl $libintl_found"
17218 if test ${enable_geoip:-no} = yes; then :
17219 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
17220 geoip_style=system
17221 else
17222 geoip_style=user
17224 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
17225 echo " libGeoIP ${geoip_style}"
17228 if test ${enable_webserver:-no} = yes; then :
17229 echo " libpng ${LIBPNG_VERSION:-Not detected}"
17231 if test ${enable_cas:-no} = yes; then :
17232 echo " libgd ${GDLIB_VERSION:-Not detected}"
17234 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 :
17235 echo " zlib ${ZLIB_VERSION:-Not detected}"
17237 if test ${enable_plasmamule:-no} = yes; then :
17238 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
17239 echo " qt-core-libs ${QT_CORE_LIBS}"
17240 echo " qt-gui-libs ${QT_GUI_LIBS}"
17241 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
17242 echo " kde-headers ${KDE_HEADER_DIR}"
17243 echo " kde-services-path ${KDE_SERVICE_PATH}"
17244 echo " kde-module-path ${KDE_MODULE_PATH}"
17245 echo " kde-icon-path ${KDE_ICON_PATH}"
17246 echo " kde-mime-path ${KDE_MIME_PATH}"
17247 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
17250 if test ${_mule_has_warnings:-no} = yes; then
17251 echo ""
17252 echo ""
17253 echo " *** Warnings during configuration ***"
17255 if test ${_mule_warning_0:-no} = yes; then
17256 cat <<_MULEEOT
17258 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
17259 Please check that gdlib-config is in your default path, check out
17260 LD_LIBRARY_PATH or equivalent variable.
17261 Or this might also be that your gdlib-config has other name.
17262 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
17263 /usr/bin/gdlib-config with a valid path to your gdlib-config).
17264 If you use compiled packages check if you have devel pack installed.
17265 To download the latest version check http://www.boutell.com/gd for sources.
17266 _MULEEOT
17268 if test ${_mule_warning_1:-no} = yes; then
17269 cat <<_MULEEOT
17271 * libpng >= 1.2.0 not found.
17272 amuleweb will be compiled but file download progress bar images will NOT be
17273 generated.
17274 _MULEEOT
17276 if test ${_mule_warning_2:-no} = yes; then
17277 cat <<_MULEEOT
17279 * File::Copy perl module is required by the mldonkey_importer script.
17280 If you want to use this script please install File::Copy from CPAN.
17281 _MULEEOT
17283 if test ${_mule_warning_3:-no} = yes; then
17284 cat <<_MULEEOT
17286 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
17287 _MULEEOT
17289 if test ${_mule_warning_4:-no} = yes; then
17290 cat <<_MULEEOT
17292 * GeoIP support has been disabled because the GeoIP libraries were not found
17293 _MULEEOT
17295 if test ${_mule_warning_5:-no} = yes; then
17296 cat <<_MULEEOT
17298 * GeoIP support has been disabled because the GeoIP header files were not
17299 found
17300 _MULEEOT
17302 if test ${_mule_warning_6:-no} = yes; then
17303 cat <<_MULEEOT
17305 * UPnP code has been disabled because ${libupnp_error}.
17306 _MULEEOT
17308 if test ${_mule_warning_7:-no} = yes; then
17309 cat <<_MULEEOT
17311 * Cross-compilation detected, so exception handling cannot be tested.
17312 Note that broken exception handling in your compiler may lead to unexpected
17313 crashes.
17314 _MULEEOT
17316 if test ${_mule_warning_8:-no} = yes; then
17317 cat <<_MULEEOT
17319 * configure cannot check whether malloc() and realloc() are GNU libc
17320 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
17321 configure with the --without-gnu-malloc switch.
17322 _MULEEOT
17324 if test ${_mule_warning_9:-no} = yes; then
17325 cat <<_MULEEOT
17327 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
17328 support.
17329 _MULEEOT
17331 if test ${_mule_warning_10:-no} = yes; then
17332 cat <<_MULEEOT
17334 * bfd.h not found or unusable, please install binutils development package if
17335 you are a developer or want to help testing aMule
17336 _MULEEOT