Minor fix in the year bumper script
[amule.git] / configure
blobc3250f64ff894b51bb20b0a9fae280f2f90dd45b
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 USER_INSTALL_HOOK
622 UPDATE_MIME_DATABASE
623 KBUILDSYCOCA
624 KDE_MIME_PATH
625 KDE_ICON_PATH
626 KDE_MODULE_PATH
627 KDE_SERVICE_PATH
628 KDE_APPLNK_PATH
629 KDE_HEADER_DIR
630 KDE4_CONFIG
631 QT_GUI_LIBS
632 QT_GUI_CXXFLAGS
633 QT_CORE_LIBS
634 QT_CORE_CXXFLAGS
635 QT_MOC
636 SVNDATE
637 BFD_LIBS
638 BFD_CPPFLAGS
639 INCINTL
640 MONOLITHIC_MANPAGES
641 ALCC_MANPAGES
642 ALC_MANPAGES
643 ED2K_MANPAGES
644 WXCAS_MANPAGES
645 CAS_MANPAGES
646 AMULE_GUI_MANPAGES
647 WEBSERVER_MANPAGES
648 AMULECMD_MANPAGES
649 AMULE_DAEMON_MANPAGES
650 POSUB
651 LTLIBINTL
652 LIBINTL
653 INTLLIBS
654 INTL_LIBTOOL_SUFFIX_PREFIX
655 GENCAT
656 INSTOBJEXT
657 DATADIRNAME
658 INTLOBJS
659 CATOBJEXT
660 USE_INCLUDED_LIBINTL
661 BUILD_INCLUDED_LIBINTL
662 USE_NLS
663 INTLBISON
664 LTLIBICONV
665 LIBICONV
666 GLIBC21
667 MSGMERGE
668 XGETTEXT
669 GMSGFMT
670 MSGFMT
671 MKINSTALLDIRS
672 POW_LIB
673 LIBOBJS
674 ALLOCA
675 CRYPTOPP_LIBS
676 CRYPTOPP_LDFLAGS
677 CRYPTOPP_CPPFLAGS
678 LIBUPNP_LIBS
679 LIBUPNP_LDFLAGS
680 LIBUPNP_CFLAGS
681 LIBUPNP_CPPFLAGS
682 PKG_CONFIG
683 RCFLAGS
685 WXBASE_CPPFLAGS
686 WXBASE_LIBS
687 WX_PORT
688 WX_SHARED
689 WX_DEBUG
690 WX_UNICODE
691 WX_VERSION_MINOR
692 WX_VERSION_MAJOR
693 WX_RESCOMP
694 WX_VERSION_FULL
695 WX_LIBS
696 WX_CXXFLAGS_ONLY
697 WX_CFLAGS_ONLY
698 WX_CXXFLAGS
699 WX_CFLAGS
700 WX_CPPFLAGS
701 WX_CONFIG_PATH
702 AMULEWEB_DEFS
703 LIBPNG_LIBS
704 LIBPNG_LDFLAGS
705 LIBPNG_CFLAGS
706 LIBPNG_CONFIG_PATH
707 CAS_DEFS
708 GDLIB_LIBS
709 GDLIB_LDFLAGS
710 GDLIB_CFLAGS
711 GDLIB_CONFIG_PATH
712 ZLIB_LIBS
713 ZLIB_LDFLAGS
714 ZLIB_CPPFLAGS
715 FILEVIEW_FALSE
716 FILEVIEW_TRUE
717 XAS_FALSE
718 XAS_TRUE
719 ALCC_FALSE
720 ALCC_TRUE
721 ALC_FALSE
722 ALC_TRUE
723 ED2K_FALSE
724 ED2K_TRUE
725 WXCAS_FALSE
726 WXCAS_TRUE
727 CAS_FALSE
728 CAS_TRUE
729 AMULE_GUI_FALSE
730 AMULE_GUI_TRUE
731 WEB_FALSE
732 WEB_TRUE
733 COMPILE_CMD_FALSE
734 COMPILE_CMD_TRUE
735 AMULE_DAEMON_FALSE
736 AMULE_DAEMON_TRUE
737 MONOLITHIC_FALSE
738 MONOLITHIC_TRUE
741 YFLAGS
742 YACC
743 RANLIB
744 LEXLIB
745 LEX_OUTPUT_ROOT
747 EGREP
748 GREP
749 BUILD_LDFLAGS
750 BUILD_CFLAGS
751 BUILD_CPPFLAGS
752 BUILD_EXEEXT
753 ac_ct_BUILD_CC
754 BUILD_CC
756 am__fastdepCC_FALSE
757 am__fastdepCC_TRUE
758 CCDEPMODE
759 ac_ct_CC
760 CFLAGS
762 CXXCPP
763 am__fastdepCXX_FALSE
764 am__fastdepCXX_TRUE
765 CXXDEPMODE
766 AMDEPBACKSLASH
767 AMDEP_FALSE
768 AMDEP_TRUE
769 am__quote
770 am__include
771 DEPDIR
772 OBJEXT
773 EXEEXT
774 ac_ct_CXX
775 CPPFLAGS
776 LDFLAGS
777 CXXFLAGS
779 MULERCFLAGS
780 MULELDFLAGS
781 MULECXXFLAGS
782 MULECFLAGS
783 MULECPPFLAGS
784 RESOLV_LIB
785 host_os
786 host_vendor
787 host_cpu
788 host
789 build_os
790 build_vendor
791 build_cpu
792 build
793 MAINT
794 MAINTAINER_MODE_FALSE
795 MAINTAINER_MODE_TRUE
796 AM_BACKSLASH
797 AM_DEFAULT_VERBOSITY
798 am__untar
799 am__tar
800 AMTAR
801 am__leading_dot
802 SET_MAKE
804 mkdir_p
805 MKDIR_P
806 INSTALL_STRIP_PROGRAM
807 STRIP
808 install_sh
809 MAKEINFO
810 AUTOHEADER
811 AUTOMAKE
812 AUTOCONF
813 ACLOCAL
814 VERSION
815 PACKAGE
816 CYGPATH_W
817 am__isrc
818 INSTALL_DATA
819 INSTALL_SCRIPT
820 INSTALL_PROGRAM
821 target_alias
822 host_alias
823 build_alias
824 LIBS
825 ECHO_T
826 ECHO_N
827 ECHO_C
828 DEFS
829 mandir
830 localedir
831 libdir
832 psdir
833 pdfdir
834 dvidir
835 htmldir
836 infodir
837 docdir
838 oldincludedir
839 includedir
840 localstatedir
841 sharedstatedir
842 sysconfdir
843 datadir
844 datarootdir
845 libexecdir
846 sbindir
847 bindir
848 program_transform_name
849 prefix
850 exec_prefix
851 PACKAGE_URL
852 PACKAGE_BUGREPORT
853 PACKAGE_STRING
854 PACKAGE_VERSION
855 PACKAGE_TARNAME
856 PACKAGE_NAME
857 PATH_SEPARATOR
858 SHELL
859 GEOIP_LIBS
860 GEOIP_LDFLAGS
861 GEOIP_CPPFLAGS'
862 ac_subst_files=''
863 ac_user_opts='
864 enable_option_checking
865 enable_silent_rules
866 enable_maintainer_mode
867 enable_dependency_tracking
868 enable_monolithic
869 enable_amule_daemon
870 enable_amulecmd
871 enable_webserver
872 enable_amule_gui
873 enable_cas
874 enable_wxcas
875 enable_ed2k
876 enable_alc
877 enable_alcc
878 enable_xas
879 enable_fileview
880 enable_plasmamule
881 enable_static
882 with_kde4_config
883 enable_kde_in_home
884 with_moc
885 with_gnu_malloc
886 with_zlib
887 with_gdlib_prefix
888 with_gdlib_config
889 with_libpng_prefix
890 with_libpng_config
891 enable_geoip
892 with_geoip_headers
893 with_geoip_lib
894 with_geoip_static
895 with_wxdir
896 with_wx_config
897 with_wx_prefix
898 with_wx_exec_prefix
899 with_toolkit
900 with_wxshared
901 with_wxdebug
902 with_wxversion
903 enable_upnp
904 with_libupnp_prefix
905 with_crypto_prefix
906 enable_mmap
907 with_language
908 with_gnu_ld
909 enable_rpath
910 with_libiconv_prefix
911 enable_nls
912 with_included_gettext
913 with_libintl_prefix
914 enable_debug
915 enable_profile
916 enable_optimize
917 with_denoise_level
918 enable_ccache
919 with_ccache_prefix
921 ac_precious_vars='build_alias
922 host_alias
923 target_alias
925 CXXFLAGS
926 LDFLAGS
927 LIBS
928 CPPFLAGS
930 CXXCPP
932 CFLAGS
934 YACC
935 YFLAGS
937 RCFLAGS
938 PKG_CONFIG'
941 # Initialize some variables set by options.
942 ac_init_help=
943 ac_init_version=false
944 ac_unrecognized_opts=
945 ac_unrecognized_sep=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
948 cache_file=/dev/null
949 exec_prefix=NONE
950 no_create=
951 no_recursion=
952 prefix=NONE
953 program_prefix=NONE
954 program_suffix=NONE
955 program_transform_name=s,x,x,
956 silent=
957 site=
958 srcdir=
959 verbose=
960 x_includes=NONE
961 x_libraries=NONE
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
980 infodir='${datarootdir}/info'
981 htmldir='${docdir}'
982 dvidir='${docdir}'
983 pdfdir='${docdir}'
984 psdir='${docdir}'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
989 ac_prev=
990 ac_dashdash=
991 for ac_option
993 # If the previous option needs an argument, assign it.
994 if test -n "$ac_prev"; then
995 eval $ac_prev=\$ac_option
996 ac_prev=
997 continue
1000 case $ac_option in
1001 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002 *) ac_optarg=yes ;;
1003 esac
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1007 case $ac_dashdash$ac_option in
1009 ac_dashdash=yes ;;
1011 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012 ac_prev=bindir ;;
1013 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014 bindir=$ac_optarg ;;
1016 -build | --build | --buil | --bui | --bu)
1017 ac_prev=build_alias ;;
1018 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019 build_alias=$ac_optarg ;;
1021 -cache-file | --cache-file | --cache-fil | --cache-fi \
1022 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023 ac_prev=cache_file ;;
1024 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026 cache_file=$ac_optarg ;;
1028 --config-cache | -C)
1029 cache_file=config.cache ;;
1031 -datadir | --datadir | --datadi | --datad)
1032 ac_prev=datadir ;;
1033 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034 datadir=$ac_optarg ;;
1036 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037 | --dataroo | --dataro | --datar)
1038 ac_prev=datarootdir ;;
1039 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041 datarootdir=$ac_optarg ;;
1043 -disable-* | --disable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error "invalid feature name: $ac_useropt"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1052 "enable_$ac_useropt"
1053 "*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=no ;;
1059 -docdir | --docdir | --docdi | --doc | --do)
1060 ac_prev=docdir ;;
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 ac_prev=dvidir ;;
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
1069 -enable-* | --enable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error "invalid feature name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval enable_$ac_useropt=\$ac_optarg ;;
1085 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087 | --exec | --exe | --ex)
1088 ac_prev=exec_prefix ;;
1089 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091 | --exec=* | --exe=* | --ex=*)
1092 exec_prefix=$ac_optarg ;;
1094 -gas | --gas | --ga | --g)
1095 # Obsolete; use --with-gas.
1096 with_gas=yes ;;
1098 -help | --help | --hel | --he | -h)
1099 ac_init_help=long ;;
1100 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101 ac_init_help=recursive ;;
1102 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103 ac_init_help=short ;;
1105 -host | --host | --hos | --ho)
1106 ac_prev=host_alias ;;
1107 -host=* | --host=* | --hos=* | --ho=*)
1108 host_alias=$ac_optarg ;;
1110 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111 ac_prev=htmldir ;;
1112 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113 | --ht=*)
1114 htmldir=$ac_optarg ;;
1116 -includedir | --includedir | --includedi | --included | --include \
1117 | --includ | --inclu | --incl | --inc)
1118 ac_prev=includedir ;;
1119 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120 | --includ=* | --inclu=* | --incl=* | --inc=*)
1121 includedir=$ac_optarg ;;
1123 -infodir | --infodir | --infodi | --infod | --info | --inf)
1124 ac_prev=infodir ;;
1125 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126 infodir=$ac_optarg ;;
1128 -libdir | --libdir | --libdi | --libd)
1129 ac_prev=libdir ;;
1130 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131 libdir=$ac_optarg ;;
1133 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134 | --libexe | --libex | --libe)
1135 ac_prev=libexecdir ;;
1136 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137 | --libexe=* | --libex=* | --libe=*)
1138 libexecdir=$ac_optarg ;;
1140 -localedir | --localedir | --localedi | --localed | --locale)
1141 ac_prev=localedir ;;
1142 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143 localedir=$ac_optarg ;;
1145 -localstatedir | --localstatedir | --localstatedi | --localstated \
1146 | --localstate | --localstat | --localsta | --localst | --locals)
1147 ac_prev=localstatedir ;;
1148 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150 localstatedir=$ac_optarg ;;
1152 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153 ac_prev=mandir ;;
1154 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155 mandir=$ac_optarg ;;
1157 -nfp | --nfp | --nf)
1158 # Obsolete; use --without-fp.
1159 with_fp=no ;;
1161 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162 | --no-cr | --no-c | -n)
1163 no_create=yes ;;
1165 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167 no_recursion=yes ;;
1169 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171 | --oldin | --oldi | --old | --ol | --o)
1172 ac_prev=oldincludedir ;;
1173 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176 oldincludedir=$ac_optarg ;;
1178 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179 ac_prev=prefix ;;
1180 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181 prefix=$ac_optarg ;;
1183 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184 | --program-pre | --program-pr | --program-p)
1185 ac_prev=program_prefix ;;
1186 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188 program_prefix=$ac_optarg ;;
1190 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191 | --program-suf | --program-su | --program-s)
1192 ac_prev=program_suffix ;;
1193 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195 program_suffix=$ac_optarg ;;
1197 -program-transform-name | --program-transform-name \
1198 | --program-transform-nam | --program-transform-na \
1199 | --program-transform-n | --program-transform- \
1200 | --program-transform | --program-transfor \
1201 | --program-transfo | --program-transf \
1202 | --program-trans | --program-tran \
1203 | --progr-tra | --program-tr | --program-t)
1204 ac_prev=program_transform_name ;;
1205 -program-transform-name=* | --program-transform-name=* \
1206 | --program-transform-nam=* | --program-transform-na=* \
1207 | --program-transform-n=* | --program-transform-=* \
1208 | --program-transform=* | --program-transfor=* \
1209 | --program-transfo=* | --program-transf=* \
1210 | --program-trans=* | --program-tran=* \
1211 | --progr-tra=* | --program-tr=* | --program-t=*)
1212 program_transform_name=$ac_optarg ;;
1214 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215 ac_prev=pdfdir ;;
1216 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217 pdfdir=$ac_optarg ;;
1219 -psdir | --psdir | --psdi | --psd | --ps)
1220 ac_prev=psdir ;;
1221 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222 psdir=$ac_optarg ;;
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 silent=yes ;;
1228 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229 ac_prev=sbindir ;;
1230 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231 | --sbi=* | --sb=*)
1232 sbindir=$ac_optarg ;;
1234 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236 | --sharedst | --shareds | --shared | --share | --shar \
1237 | --sha | --sh)
1238 ac_prev=sharedstatedir ;;
1239 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242 | --sha=* | --sh=*)
1243 sharedstatedir=$ac_optarg ;;
1245 -site | --site | --sit)
1246 ac_prev=site ;;
1247 -site=* | --site=* | --sit=*)
1248 site=$ac_optarg ;;
1250 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251 ac_prev=srcdir ;;
1252 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253 srcdir=$ac_optarg ;;
1255 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256 | --syscon | --sysco | --sysc | --sys | --sy)
1257 ac_prev=sysconfdir ;;
1258 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260 sysconfdir=$ac_optarg ;;
1262 -target | --target | --targe | --targ | --tar | --ta | --t)
1263 ac_prev=target_alias ;;
1264 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265 target_alias=$ac_optarg ;;
1267 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268 verbose=yes ;;
1270 -version | --version | --versio | --versi | --vers | -V)
1271 ac_init_version=: ;;
1273 -with-* | --with-*)
1274 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 as_fn_error "invalid package name: $ac_useropt"
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1282 "with_$ac_useropt"
1283 "*) ;;
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1286 esac
1287 eval with_$ac_useropt=\$ac_optarg ;;
1289 -without-* | --without-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error "invalid package name: $ac_useropt"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1298 "with_$ac_useropt"
1299 "*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=no ;;
1305 --x)
1306 # Obsolete; use --with-x.
1307 with_x=yes ;;
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev=x_includes ;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314 x_includes=$ac_optarg ;;
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev=x_libraries ;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321 x_libraries=$ac_optarg ;;
1323 -*) as_fn_error "unrecognized option: \`$ac_option'
1324 Try \`$0 --help' for more information."
1327 *=*)
1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 case $ac_envvar in #(
1331 '' | [0-9]* | *[!_$as_cr_alnum]* )
1332 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1333 esac
1334 eval $ac_envvar=\$ac_optarg
1335 export $ac_envvar ;;
1338 # FIXME: should be removed in autoconf 3.0.
1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345 esac
1346 done
1348 if test -n "$ac_prev"; then
1349 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350 as_fn_error "missing argument to $ac_option"
1353 if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1355 no) ;;
1356 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1357 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358 esac
1361 # Check all directory arguments for consistency.
1362 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363 datadir sysconfdir sharedstatedir localstatedir includedir \
1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365 libdir localedir mandir
1367 eval ac_val=\$$ac_var
1368 # Remove trailing slashes.
1369 case $ac_val in
1370 */ )
1371 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372 eval $ac_var=\$ac_val;;
1373 esac
1374 # Be sure to have absolute directory names.
1375 case $ac_val in
1376 [\\/$]* | ?:[\\/]* ) continue;;
1377 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378 esac
1379 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1380 done
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1385 build=$build_alias
1386 host=$host_alias
1387 target=$target_alias
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x; then
1391 if test "x$build_alias" = x; then
1392 cross_compiling=maybe
1393 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394 If a cross compiler is detected then cross compile mode will be used." >&2
1395 elif test "x$build_alias" != "x$host_alias"; then
1396 cross_compiling=yes
1400 ac_tool_prefix=
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403 test "$silent" = yes && exec 6>/dev/null
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409 as_fn_error "working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 as_fn_error "pwd does not report name of working directory"
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 s//\1/
1428 /^X\(\/\/\)[^/].*/{
1429 s//\1/
1432 /^X\(\/\/\)$/{
1433 s//\1/
1436 /^X\(\/\).*/{
1437 s//\1/
1440 s/.*/./; q'`
1441 srcdir=$ac_confdir
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 srcdir=..
1445 else
1446 ac_srcdir_defaulted=no
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 ac_abs_confdir=`(
1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1455 pwd)`
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1458 srcdir=.
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1463 case $srcdir in
1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 esac
1466 for ac_var in $ac_precious_vars; do
1467 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_${ac_var}_value=\$${ac_var}
1469 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471 done
1474 # Report the --help message.
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1479 cat <<_ACEOF
1480 \`configure' configures aMule SVN to adapt to many kinds of systems.
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1487 Defaults for the options are specified in brackets.
1489 Configuration:
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1504 [PREFIX]
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1511 For better control, use the options below.
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1533 _ACEOF
1535 cat <<\_ACEOF
1537 Program names:
1538 --program-prefix=PREFIX prepend PREFIX to installed program names
1539 --program-suffix=SUFFIX append SUFFIX to installed program names
1540 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1542 System types:
1543 --build=BUILD configure for building on BUILD [guessed]
1544 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1545 _ACEOF
1548 if test -n "$ac_init_help"; then
1549 case $ac_init_help in
1550 short | recursive ) echo "Configuration of aMule SVN:";;
1551 esac
1552 cat <<\_ACEOF
1554 Optional Features:
1555 --disable-option-checking ignore unrecognized --enable/--with options
1556 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1557 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1558 --enable-silent-rules less verbose build output (undo: `make V=1')
1559 --disable-silent-rules verbose build output (undo: `make V=0')
1560 --enable-maintainer-mode enable make rules and dependencies not useful
1561 (and sometimes confusing) to the casual installer
1562 --disable-dependency-tracking speeds up one-time build
1563 --enable-dependency-tracking do not reject slow dependency extractors
1564 --disable-monolithic disable building of the monolithic aMule app
1565 --enable-amule-daemon compile aMule daemon version
1566 --enable-amulecmd compile aMule command line client
1567 --enable-webserver compile aMule WebServer
1568 --enable-amule-gui compile aMule remote GUI
1569 --enable-cas compile C aMule Statistics
1570 --enable-wxcas compile aMule GUI Statistics
1571 --disable-ed2k don't compile aMule ed2k links handler
1572 --enable-alc compile aMuleLinkCreator GUI version
1573 --enable-alcc compile aMuleLinkCreator for console
1574 --enable-xas install xas XChat2 plugin
1575 --enable-fileview compile aMule file viewer for console (EXPERIMENTAL)
1576 --enable-plasmamule compile aMule plasma applet and engine
1577 --enable-static produce a statically linked executable
1578 --enable-kde-in-home install KDE related stuff in your home dir
1579 --enable-geoip compile with GeoIP IP2Country library
1580 --disable-upnp do not compile UPnP code
1581 --enable-mmap enable using mapped memory if supported
1582 --disable-rpath do not hardcode runtime library paths
1583 --disable-nls do not use Native Language Support
1584 --disable-debug disable additional debugging output
1585 --enable-profile enable code profiling
1586 --enable-optimize enable code optimization
1587 --enable-ccache enable ccache support for fast recompilation
1589 Optional Packages:
1590 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1591 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1592 --with-kde4-config=PATH kde4-config script to use
1593 --with-moc=PATH Search in PATH for Qt's meta object compiler
1594 --without-gnu-malloc Don't assume that we use GNU libc compatible
1595 malloc/realloc when cross-compiling
1596 --with-zlib=PREFIX use zlib in PREFIX
1597 --with-gdlib-prefix=PREFIX
1598 prefix where gdlib is installed (optional)
1599 --with-gdlib-config=CONFIG
1600 gdlib-config script to use (optional)
1601 --with-libpng-prefix=PREFIX
1602 prefix where libpng is installed (optional)
1603 --with-libpng-config=CONFIG
1604 libpng-config script to use (optional)
1605 --with-geoip-headers=DIR
1606 GeoIP include files location
1607 --with-geoip-lib=DIR GeoIP library location
1608 --with-geoip-static Explicitly link GeoIP statically (default=no)
1609 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
1610 --with-wx-config=CONFIG wx-config script to use (optional)
1611 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1612 --with-wx-exec-prefix=PREFIX
1613 Exec prefix where wxWidgets is installed (optional)
1614 --with-toolkit Build against a specific wxWidgets toolkit (default
1615 is auto)
1616 --with-wxshared Force building against a shared build of wxWidgets,
1617 even if --disable-shared is given (default is auto)
1618 --with-wxdebug Force building against a debug build of wxWidgets,
1619 even if --disable-debug is given (default is auto)
1620 --with-wxversion Build against a specific version of wxWidgets
1621 (default is auto)
1622 --with-libupnp-prefix=PREFIX
1623 UPnP library location
1624 --with-crypto-prefix=PREFIX
1625 prefix where crypto++ is installed
1626 --with-language=<langs> Specify a comma-separated list of languages you want
1627 to have installed. See po/LINGUAS for available
1628 languages
1629 --with-gnu-ld assume the C compiler uses GNU ld default=no
1630 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1631 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1632 --with-included-gettext use the GNU gettext library included here
1633 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1634 --without-libintl-prefix don't search for libintl in includedir and libdir
1635 --with-denoise-level=<level>
1636 Specifies denoising level (0-4):
1637 0 - Do nothing
1638 4 - Suppress all normal output
1639 (for more information see
1640 src/utils/scripts/denoiser.rules)
1642 --with-ccache-prefix=PREFIX
1643 prefix where ccache is installed
1645 Some influential environment variables:
1646 CXX C++ compiler command
1647 CXXFLAGS C++ compiler flags
1648 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1649 nonstandard directory <lib dir>
1650 LIBS libraries to pass to the linker, e.g. -l<library>
1651 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1652 you have headers in a nonstandard directory <include dir>
1653 CXXCPP C++ preprocessor
1654 CC C compiler command
1655 CFLAGS C compiler flags
1656 CPP C preprocessor
1657 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1658 the first program found out of: `bison -y', `byacc', `yacc'.
1659 YFLAGS The list of arguments that will be passed by default to $YACC.
1660 This script will default YFLAGS to the empty string to avoid a
1661 default value of `-d' given by some make applications.
1662 RC Resource Compiler
1663 RCFLAGS Resource Compiler Flags
1664 PKG_CONFIG path to pkg-config utility
1666 Use these variables to override the choices made by `configure' or to help
1667 it to find libraries and programs with nonstandard names/locations.
1669 Report bugs to <admin@amule.org>.
1670 _ACEOF
1671 ac_status=$?
1674 if test "$ac_init_help" = "recursive"; then
1675 # If there are subdirs, report their specific --help.
1676 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1677 test -d "$ac_dir" ||
1678 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1679 continue
1680 ac_builddir=.
1682 case "$ac_dir" in
1683 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1685 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1686 # A ".." for each directory in $ac_dir_suffix.
1687 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1688 case $ac_top_builddir_sub in
1689 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1690 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1691 esac ;;
1692 esac
1693 ac_abs_top_builddir=$ac_pwd
1694 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1695 # for backward compatibility:
1696 ac_top_builddir=$ac_top_build_prefix
1698 case $srcdir in
1699 .) # We are building in place.
1700 ac_srcdir=.
1701 ac_top_srcdir=$ac_top_builddir_sub
1702 ac_abs_top_srcdir=$ac_pwd ;;
1703 [\\/]* | ?:[\\/]* ) # Absolute name.
1704 ac_srcdir=$srcdir$ac_dir_suffix;
1705 ac_top_srcdir=$srcdir
1706 ac_abs_top_srcdir=$srcdir ;;
1707 *) # Relative name.
1708 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1709 ac_top_srcdir=$ac_top_build_prefix$srcdir
1710 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1711 esac
1712 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1714 cd "$ac_dir" || { ac_status=$?; continue; }
1715 # Check for guested configure.
1716 if test -f "$ac_srcdir/configure.gnu"; then
1717 echo &&
1718 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1719 elif test -f "$ac_srcdir/configure"; then
1720 echo &&
1721 $SHELL "$ac_srcdir/configure" --help=recursive
1722 else
1723 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1724 fi || ac_status=$?
1725 cd "$ac_pwd" || { ac_status=$?; break; }
1726 done
1729 test -n "$ac_init_help" && exit $ac_status
1730 if $ac_init_version; then
1731 cat <<\_ACEOF
1732 aMule configure SVN
1733 generated by GNU Autoconf 2.65
1735 Copyright (C) 2009 Free Software Foundation, Inc.
1736 This configure script is free software; the Free Software Foundation
1737 gives unlimited permission to copy, distribute and modify it.
1738 _ACEOF
1739 exit
1742 ## ------------------------ ##
1743 ## Autoconf initialization. ##
1744 ## ------------------------ ##
1746 # ac_fn_cxx_try_compile LINENO
1747 # ----------------------------
1748 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1749 ac_fn_cxx_try_compile ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 rm -f conftest.$ac_objext
1753 if { { ac_try="$ac_compile"
1754 case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_compile") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } && {
1769 test -z "$ac_cxx_werror_flag" ||
1770 test ! -s conftest.err
1771 } && test -s conftest.$ac_objext; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 ac_retval=1
1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780 as_fn_set_status $ac_retval
1782 } # ac_fn_cxx_try_compile
1784 # ac_fn_cxx_try_cpp LINENO
1785 # ------------------------
1786 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1787 ac_fn_cxx_try_cpp ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if { { ac_try="$ac_cpp conftest.$ac_ext"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } >/dev/null && {
1806 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1807 test ! -s conftest.err
1808 }; then :
1809 ac_retval=0
1810 else
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1814 ac_retval=1
1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 as_fn_set_status $ac_retval
1819 } # ac_fn_cxx_try_cpp
1821 # ac_fn_c_try_compile LINENO
1822 # --------------------------
1823 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_c_try_compile ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 rm -f conftest.$ac_objext
1828 if { { ac_try="$ac_compile"
1829 case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_compile") 2>conftest.err
1836 ac_status=$?
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_c_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest.$ac_objext; then :
1847 ac_retval=0
1848 else
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1852 ac_retval=1
1854 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1855 as_fn_set_status $ac_retval
1857 } # ac_fn_c_try_compile
1859 # ac_fn_c_try_cpp LINENO
1860 # ----------------------
1861 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_c_try_cpp ()
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 if { { ac_try="$ac_cpp conftest.$ac_ext"
1866 case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1873 ac_status=$?
1874 if test -s conftest.err; then
1875 grep -v '^ *+' conftest.err >conftest.er1
1876 cat conftest.er1 >&5
1877 mv -f conftest.er1 conftest.err
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } >/dev/null && {
1881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1882 test ! -s conftest.err
1883 }; then :
1884 ac_retval=0
1885 else
1886 $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1889 ac_retval=1
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 as_fn_set_status $ac_retval
1894 } # ac_fn_c_try_cpp
1896 # ac_fn_c_try_link LINENO
1897 # -----------------------
1898 # Try to link conftest.$ac_ext, and return whether this succeeded.
1899 ac_fn_c_try_link ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 rm -f conftest.$ac_objext conftest$ac_exeext
1903 if { { ac_try="$ac_link"
1904 case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_link") 2>conftest.err
1911 ac_status=$?
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && {
1919 test -z "$ac_c_werror_flag" ||
1920 test ! -s conftest.err
1921 } && test -s conftest$ac_exeext && {
1922 test "$cross_compiling" = yes ||
1923 $as_test_x conftest$ac_exeext
1924 }; then :
1925 ac_retval=0
1926 else
1927 $as_echo "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1930 ac_retval=1
1932 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1933 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1934 # interfere with the next link command; also delete a directory that is
1935 # left behind by Apple's compiler. We do this before executing the actions.
1936 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938 as_fn_set_status $ac_retval
1940 } # ac_fn_c_try_link
1942 # ac_fn_c_try_run LINENO
1943 # ----------------------
1944 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1945 # that executables *can* be run.
1946 ac_fn_c_try_run ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if { { ac_try="$ac_link"
1950 case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_link") 2>&5
1957 ac_status=$?
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1960 { { case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963 esac
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_try") 2>&5
1967 ac_status=$?
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; }; }; then :
1970 ac_retval=0
1971 else
1972 $as_echo "$as_me: program exited with status $ac_status" >&5
1973 $as_echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1976 ac_retval=$ac_status
1978 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980 as_fn_set_status $ac_retval
1982 } # ac_fn_c_try_run
1984 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1985 # -------------------------------------------------------
1986 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1987 # the include files in INCLUDES and setting the cache variable VAR
1988 # accordingly.
1989 ac_fn_c_check_header_mongrel ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1996 $as_echo_n "(cached) " >&6
1998 eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 else
2002 # Is the header compilable?
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2004 $as_echo_n "checking $2 usability... " >&6; }
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2008 #include <$2>
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011 ac_header_compiler=yes
2012 else
2013 ac_header_compiler=no
2015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2017 $as_echo "$ac_header_compiler" >&6; }
2019 # Is the header present?
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2021 $as_echo_n "checking $2 presence... " >&6; }
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 #include <$2>
2025 _ACEOF
2026 if ac_fn_c_try_cpp "$LINENO"; then :
2027 ac_header_preproc=yes
2028 else
2029 ac_header_preproc=no
2031 rm -f conftest.err conftest.$ac_ext
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2033 $as_echo "$ac_header_preproc" >&6; }
2035 # So? What about this header?
2036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2037 yes:no: )
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2039 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2041 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2043 no:yes:* )
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2045 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2047 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2049 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2051 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2053 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2054 ( cat <<\_ASBOX
2055 ## ------------------------------ ##
2056 ## Report this to admin@amule.org ##
2057 ## ------------------------------ ##
2058 _ASBOX
2059 ) | sed "s/^/$as_me: WARNING: /" >&2
2061 esac
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2065 $as_echo_n "(cached) " >&6
2066 else
2067 eval "$3=\$ac_header_compiler"
2069 eval ac_res=\$$3
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2075 } # ac_fn_c_check_header_mongrel
2077 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2078 # -------------------------------------------------------
2079 # Tests whether HEADER exists and can be compiled using the include files in
2080 # INCLUDES, setting the cache variable VAR accordingly.
2081 ac_fn_c_check_header_compile ()
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 $as_echo_n "checking for $2... " >&6; }
2086 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2087 $as_echo_n "(cached) " >&6
2088 else
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2092 #include <$2>
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 eval "$3=yes"
2096 else
2097 eval "$3=no"
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2106 } # ac_fn_c_check_header_compile
2108 # ac_fn_cxx_try_run LINENO
2109 # ------------------------
2110 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2111 # that executables *can* be run.
2112 ac_fn_cxx_try_run ()
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 if { { ac_try="$ac_link"
2116 case "(($ac_try" in
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2119 esac
2120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121 $as_echo "$ac_try_echo"; } >&5
2122 (eval "$ac_link") 2>&5
2123 ac_status=$?
2124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2125 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2126 { { case "(($ac_try" in
2127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2128 *) ac_try_echo=$ac_try;;
2129 esac
2130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2131 $as_echo "$ac_try_echo"; } >&5
2132 (eval "$ac_try") 2>&5
2133 ac_status=$?
2134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2135 test $ac_status = 0; }; }; then :
2136 ac_retval=0
2137 else
2138 $as_echo "$as_me: program exited with status $ac_status" >&5
2139 $as_echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2142 ac_retval=$ac_status
2144 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2146 as_fn_set_status $ac_retval
2148 } # ac_fn_cxx_try_run
2150 # ac_fn_cxx_try_link LINENO
2151 # -------------------------
2152 # Try to link conftest.$ac_ext, and return whether this succeeded.
2153 ac_fn_cxx_try_link ()
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 rm -f conftest.$ac_objext conftest$ac_exeext
2157 if { { ac_try="$ac_link"
2158 case "(($ac_try" in
2159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2160 *) ac_try_echo=$ac_try;;
2161 esac
2162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2163 $as_echo "$ac_try_echo"; } >&5
2164 (eval "$ac_link") 2>conftest.err
2165 ac_status=$?
2166 if test -s conftest.err; then
2167 grep -v '^ *+' conftest.err >conftest.er1
2168 cat conftest.er1 >&5
2169 mv -f conftest.er1 conftest.err
2171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2172 test $ac_status = 0; } && {
2173 test -z "$ac_cxx_werror_flag" ||
2174 test ! -s conftest.err
2175 } && test -s conftest$ac_exeext && {
2176 test "$cross_compiling" = yes ||
2177 $as_test_x conftest$ac_exeext
2178 }; then :
2179 ac_retval=0
2180 else
2181 $as_echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2184 ac_retval=1
2186 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2187 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2188 # interfere with the next link command; also delete a directory that is
2189 # left behind by Apple's compiler. We do this before executing the actions.
2190 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2191 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2192 as_fn_set_status $ac_retval
2194 } # ac_fn_cxx_try_link
2196 # ac_fn_c_check_func LINENO FUNC VAR
2197 # ----------------------------------
2198 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2199 ac_fn_c_check_func ()
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203 $as_echo_n "checking for $2... " >&6; }
2204 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2205 $as_echo_n "(cached) " >&6
2206 else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2211 #define $2 innocuous_$2
2213 /* System header to define __stub macros and hopefully few prototypes,
2214 which can conflict with char $2 (); below.
2215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2216 <limits.h> exists even on freestanding compilers. */
2218 #ifdef __STDC__
2219 # include <limits.h>
2220 #else
2221 # include <assert.h>
2222 #endif
2224 #undef $2
2226 /* Override any GCC internal prototype to avoid an error.
2227 Use char because int might match the return type of a GCC
2228 builtin and then its argument prototype would still apply. */
2229 #ifdef __cplusplus
2230 extern "C"
2231 #endif
2232 char $2 ();
2233 /* The GNU C library defines this for functions which it implements
2234 to always fail with ENOSYS. Some functions are actually named
2235 something starting with __ and the normal name is an alias. */
2236 #if defined __stub_$2 || defined __stub___$2
2237 choke me
2238 #endif
2241 main ()
2243 return $2 ();
2245 return 0;
2247 _ACEOF
2248 if ac_fn_c_try_link "$LINENO"; then :
2249 eval "$3=yes"
2250 else
2251 eval "$3=no"
2253 rm -f core conftest.err conftest.$ac_objext \
2254 conftest$ac_exeext conftest.$ac_ext
2256 eval ac_res=\$$3
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261 } # ac_fn_c_check_func
2263 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2264 # -------------------------------------------
2265 # Tests whether TYPE exists after having included INCLUDES, setting cache
2266 # variable VAR accordingly.
2267 ac_fn_c_check_type ()
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2271 $as_echo_n "checking for $2... " >&6; }
2272 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2273 $as_echo_n "(cached) " >&6
2274 else
2275 eval "$3=no"
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2280 main ()
2282 if (sizeof ($2))
2283 return 0;
2285 return 0;
2287 _ACEOF
2288 if ac_fn_c_try_compile "$LINENO"; then :
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2293 main ()
2295 if (sizeof (($2)))
2296 return 0;
2298 return 0;
2300 _ACEOF
2301 if ac_fn_c_try_compile "$LINENO"; then :
2303 else
2304 eval "$3=yes"
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 eval ac_res=\$$3
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312 $as_echo "$ac_res" >&6; }
2313 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2315 } # ac_fn_c_check_type
2317 # ac_fn_c_check_decl LINENO SYMBOL VAR
2318 # ------------------------------------
2319 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2320 ac_fn_c_check_decl ()
2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2324 $as_echo_n "checking whether $2 is declared... " >&6; }
2325 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2326 $as_echo_n "(cached) " >&6
2327 else
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2332 main ()
2334 #ifndef $2
2335 (void) $2;
2336 #endif
2339 return 0;
2341 _ACEOF
2342 if ac_fn_c_try_compile "$LINENO"; then :
2343 eval "$3=yes"
2344 else
2345 eval "$3=no"
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 eval ac_res=\$$3
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351 $as_echo "$ac_res" >&6; }
2352 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2354 } # ac_fn_c_check_decl
2355 cat >config.log <<_ACEOF
2356 This file contains any messages produced by compilers while
2357 running configure, to aid debugging if configure makes a mistake.
2359 It was created by aMule $as_me SVN, which was
2360 generated by GNU Autoconf 2.65. Invocation command line was
2362 $ $0 $@
2364 _ACEOF
2365 exec 5>>config.log
2367 cat <<_ASUNAME
2368 ## --------- ##
2369 ## Platform. ##
2370 ## --------- ##
2372 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2373 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2374 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2375 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2376 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2378 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2379 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2381 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2382 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2383 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2384 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2385 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2386 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2387 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2389 _ASUNAME
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
2396 $as_echo "PATH: $as_dir"
2397 done
2398 IFS=$as_save_IFS
2400 } >&5
2402 cat >&5 <<_ACEOF
2405 ## ----------- ##
2406 ## Core tests. ##
2407 ## ----------- ##
2409 _ACEOF
2412 # Keep a trace of the command line.
2413 # Strip out --no-create and --no-recursion so they do not pile up.
2414 # Strip out --silent because we don't want to record it for future runs.
2415 # Also quote any args containing shell meta-characters.
2416 # Make two passes to allow for proper duplicate-argument suppression.
2417 ac_configure_args=
2418 ac_configure_args0=
2419 ac_configure_args1=
2420 ac_must_keep_next=false
2421 for ac_pass in 1 2
2423 for ac_arg
2425 case $ac_arg in
2426 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2428 | -silent | --silent | --silen | --sile | --sil)
2429 continue ;;
2430 *\'*)
2431 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2432 esac
2433 case $ac_pass in
2434 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2436 as_fn_append ac_configure_args1 " '$ac_arg'"
2437 if test $ac_must_keep_next = true; then
2438 ac_must_keep_next=false # Got value, back to normal.
2439 else
2440 case $ac_arg in
2441 *=* | --config-cache | -C | -disable-* | --disable-* \
2442 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2443 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2444 | -with-* | --with-* | -without-* | --without-* | --x)
2445 case "$ac_configure_args0 " in
2446 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2447 esac
2449 -* ) ac_must_keep_next=true ;;
2450 esac
2452 as_fn_append ac_configure_args " '$ac_arg'"
2454 esac
2455 done
2456 done
2457 { ac_configure_args0=; unset ac_configure_args0;}
2458 { ac_configure_args1=; unset ac_configure_args1;}
2460 # When interrupted or exit'd, cleanup temporary files, and complete
2461 # config.log. We remove comments because anyway the quotes in there
2462 # would cause problems or look ugly.
2463 # WARNING: Use '\'' to represent an apostrophe within the trap.
2464 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2465 trap 'exit_status=$?
2466 # Save into config.log some information that might help in debugging.
2468 echo
2470 cat <<\_ASBOX
2471 ## ---------------- ##
2472 ## Cache variables. ##
2473 ## ---------------- ##
2474 _ASBOX
2475 echo
2476 # The following way of writing the cache mishandles newlines in values,
2478 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2479 eval ac_val=\$$ac_var
2480 case $ac_val in #(
2481 *${as_nl}*)
2482 case $ac_var in #(
2483 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2484 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2485 esac
2486 case $ac_var in #(
2487 _ | IFS | as_nl) ;; #(
2488 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2489 *) { eval $ac_var=; unset $ac_var;} ;;
2490 esac ;;
2491 esac
2492 done
2493 (set) 2>&1 |
2494 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2495 *${as_nl}ac_space=\ *)
2496 sed -n \
2497 "s/'\''/'\''\\\\'\'''\''/g;
2498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2499 ;; #(
2501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2503 esac |
2504 sort
2506 echo
2508 cat <<\_ASBOX
2509 ## ----------------- ##
2510 ## Output variables. ##
2511 ## ----------------- ##
2512 _ASBOX
2513 echo
2514 for ac_var in $ac_subst_vars
2516 eval ac_val=\$$ac_var
2517 case $ac_val in
2518 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519 esac
2520 $as_echo "$ac_var='\''$ac_val'\''"
2521 done | sort
2522 echo
2524 if test -n "$ac_subst_files"; then
2525 cat <<\_ASBOX
2526 ## ------------------- ##
2527 ## File substitutions. ##
2528 ## ------------------- ##
2529 _ASBOX
2530 echo
2531 for ac_var in $ac_subst_files
2533 eval ac_val=\$$ac_var
2534 case $ac_val in
2535 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2536 esac
2537 $as_echo "$ac_var='\''$ac_val'\''"
2538 done | sort
2539 echo
2542 if test -s confdefs.h; then
2543 cat <<\_ASBOX
2544 ## ----------- ##
2545 ## confdefs.h. ##
2546 ## ----------- ##
2547 _ASBOX
2548 echo
2549 cat confdefs.h
2550 echo
2552 test "$ac_signal" != 0 &&
2553 $as_echo "$as_me: caught signal $ac_signal"
2554 $as_echo "$as_me: exit $exit_status"
2555 } >&5
2556 rm -f core *.core core.conftest.* &&
2557 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2558 exit $exit_status
2560 for ac_signal in 1 2 13 15; do
2561 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2562 done
2563 ac_signal=0
2565 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2566 rm -f -r conftest* confdefs.h
2568 $as_echo "/* confdefs.h */" > confdefs.h
2570 # Predefined preprocessor variables.
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_NAME "$PACKAGE_NAME"
2574 _ACEOF
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2578 _ACEOF
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2582 _ACEOF
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_STRING "$PACKAGE_STRING"
2586 _ACEOF
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2590 _ACEOF
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_URL "$PACKAGE_URL"
2594 _ACEOF
2597 # Let the site file select an alternate cache file if it wants to.
2598 # Prefer an explicitly selected file to automatically selected ones.
2599 ac_site_file1=NONE
2600 ac_site_file2=NONE
2601 if test -n "$CONFIG_SITE"; then
2602 ac_site_file1=$CONFIG_SITE
2603 elif test "x$prefix" != xNONE; then
2604 ac_site_file1=$prefix/share/config.site
2605 ac_site_file2=$prefix/etc/config.site
2606 else
2607 ac_site_file1=$ac_default_prefix/share/config.site
2608 ac_site_file2=$ac_default_prefix/etc/config.site
2610 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2612 test "x$ac_site_file" = xNONE && continue
2613 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2615 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2616 sed 's/^/| /' "$ac_site_file" >&5
2617 . "$ac_site_file"
2619 done
2621 if test -r "$cache_file"; then
2622 # Some versions of bash will fail to source /dev/null (special files
2623 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2624 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2626 $as_echo "$as_me: loading cache $cache_file" >&6;}
2627 case $cache_file in
2628 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2629 *) . "./$cache_file";;
2630 esac
2632 else
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2634 $as_echo "$as_me: creating cache $cache_file" >&6;}
2635 >$cache_file
2638 as_fn_append ac_header_list " stdlib.h"
2639 as_fn_append ac_header_list " unistd.h"
2640 as_fn_append ac_header_list " sys/param.h"
2641 # Check that the precious variables saved in the cache have kept the same
2642 # value.
2643 ac_cache_corrupted=false
2644 for ac_var in $ac_precious_vars; do
2645 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2646 eval ac_new_set=\$ac_env_${ac_var}_set
2647 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2648 eval ac_new_val=\$ac_env_${ac_var}_value
2649 case $ac_old_set,$ac_new_set in
2650 set,)
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2652 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2653 ac_cache_corrupted=: ;;
2654 ,set)
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2656 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2657 ac_cache_corrupted=: ;;
2658 ,);;
2660 if test "x$ac_old_val" != "x$ac_new_val"; then
2661 # differences in whitespace do not lead to failure.
2662 ac_old_val_w=`echo x $ac_old_val`
2663 ac_new_val_w=`echo x $ac_new_val`
2664 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2666 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2667 ac_cache_corrupted=:
2668 else
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2670 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2671 eval $ac_var=\$ac_old_val
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2674 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2676 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2677 fi;;
2678 esac
2679 # Pass precious variables to config.status.
2680 if test "$ac_new_set" = set; then
2681 case $ac_new_val in
2682 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2683 *) ac_arg=$ac_var=$ac_new_val ;;
2684 esac
2685 case " $ac_configure_args " in
2686 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2687 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2688 esac
2690 done
2691 if $ac_cache_corrupted; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2695 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2696 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2698 ## -------------------- ##
2699 ## Main body of script. ##
2700 ## -------------------- ##
2702 ac_ext=c
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709 am__api_version='1.11'
2711 ac_aux_dir=
2712 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2713 for ac_t in install-sh install.sh shtool; do
2714 if test -f "$ac_dir/$ac_t"; then
2715 ac_aux_dir=$ac_dir
2716 ac_install_sh="$ac_aux_dir/$ac_t -c"
2717 break 2
2719 done
2720 done
2721 if test -z "$ac_aux_dir"; then
2722 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2725 # These three variables are undocumented and unsupported,
2726 # and are intended to be withdrawn in a future Autoconf release.
2727 # They can cause serious problems if a builder's source tree is in a directory
2728 # whose full name contains unusual characters.
2729 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2730 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2731 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2734 # Find a good install program. We prefer a C program (faster),
2735 # so one script is as good as another. But avoid the broken or
2736 # incompatible versions:
2737 # SysV /etc/install, /usr/sbin/install
2738 # SunOS /usr/etc/install
2739 # IRIX /sbin/install
2740 # AIX /bin/install
2741 # AmigaOS /C/install, which installs bootblocks on floppy discs
2742 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2743 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2744 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2745 # OS/2's system install, which has a completely different semantic
2746 # ./install, which can be erroneously created by make from ./install.sh.
2747 # Reject install programs that cannot install multiple files.
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2749 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2750 if test -z "$INSTALL"; then
2751 if test "${ac_cv_path_install+set}" = set; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH
2757 IFS=$as_save_IFS
2758 test -z "$as_dir" && as_dir=.
2759 # Account for people who put trailing slashes in PATH elements.
2760 case $as_dir/ in #((
2761 ./ | .// | /[cC]/* | \
2762 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2763 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2764 /usr/ucb/* ) ;;
2766 # OSF1 and SCO ODT 3.0 have their own names for install.
2767 # Don't use installbsd from OSF since it installs stuff as root
2768 # by default.
2769 for ac_prog in ginstall scoinst install; do
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2772 if test $ac_prog = install &&
2773 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2774 # AIX install. It has an incompatible calling convention.
2776 elif test $ac_prog = install &&
2777 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2778 # program-specific install script used by HP pwplus--don't use.
2780 else
2781 rm -rf conftest.one conftest.two conftest.dir
2782 echo one > conftest.one
2783 echo two > conftest.two
2784 mkdir conftest.dir
2785 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2786 test -s conftest.one && test -s conftest.two &&
2787 test -s conftest.dir/conftest.one &&
2788 test -s conftest.dir/conftest.two
2789 then
2790 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2791 break 3
2795 done
2796 done
2798 esac
2800 done
2801 IFS=$as_save_IFS
2803 rm -rf conftest.one conftest.two conftest.dir
2806 if test "${ac_cv_path_install+set}" = set; then
2807 INSTALL=$ac_cv_path_install
2808 else
2809 # As a last resort, use the slow shell script. Don't cache a
2810 # value for INSTALL within a source directory, because that will
2811 # break other packages using the cache if that directory is
2812 # removed, or if the value is a relative name.
2813 INSTALL=$ac_install_sh
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2817 $as_echo "$INSTALL" >&6; }
2819 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2820 # It thinks the first close brace ends the variable substitution.
2821 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2823 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2825 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2828 $as_echo_n "checking whether build environment is sane... " >&6; }
2829 # Just in case
2830 sleep 1
2831 echo timestamp > conftest.file
2832 # Reject unsafe characters in $srcdir or the absolute working directory
2833 # name. Accept space and tab only in the latter.
2834 am_lf='
2836 case `pwd` in
2837 *[\\\"\#\$\&\'\`$am_lf]*)
2838 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2839 esac
2840 case $srcdir in
2841 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2842 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2843 esac
2845 # Do `set' in a subshell so we don't clobber the current shell's
2846 # arguments. Must try -L first in case configure is actually a
2847 # symlink; some systems play weird games with the mod time of symlinks
2848 # (eg FreeBSD returns the mod time of the symlink's containing
2849 # directory).
2850 if (
2851 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2852 if test "$*" = "X"; then
2853 # -L didn't work.
2854 set X `ls -t "$srcdir/configure" conftest.file`
2856 rm -f conftest.file
2857 if test "$*" != "X $srcdir/configure conftest.file" \
2858 && test "$*" != "X conftest.file $srcdir/configure"; then
2860 # If neither matched, then we have a broken ls. This can happen
2861 # if, for instance, CONFIG_SHELL is bash and it inherits a
2862 # broken ls alias from the environment. This has actually
2863 # happened. Such a system could not be considered "sane".
2864 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2865 alias in your environment" "$LINENO" 5
2868 test "$2" = conftest.file
2870 then
2871 # Ok.
2873 else
2874 as_fn_error "newly created file is older than distributed files!
2875 Check your system clock" "$LINENO" 5
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2878 $as_echo "yes" >&6; }
2879 test "$program_prefix" != NONE &&
2880 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2881 # Use a double $ so make ignores it.
2882 test "$program_suffix" != NONE &&
2883 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2884 # Double any \ or $.
2885 # By default was `s,x,x', remove it if useless.
2886 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2887 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2889 # expand $ac_aux_dir to an absolute path
2890 am_aux_dir=`cd $ac_aux_dir && pwd`
2892 if test x"${MISSING+set}" != xset; then
2893 case $am_aux_dir in
2894 *\ * | *\ *)
2895 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2897 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2898 esac
2900 # Use eval to expand $SHELL
2901 if eval "$MISSING --run true"; then
2902 am_missing_run="$MISSING --run "
2903 else
2904 am_missing_run=
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2906 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2909 if test x"${install_sh}" != xset; then
2910 case $am_aux_dir in
2911 *\ * | *\ *)
2912 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2914 install_sh="\${SHELL} $am_aux_dir/install-sh"
2915 esac
2918 # Installed binaries are usually stripped using `strip' when the user
2919 # run `make install-strip'. However `strip' might not be the right
2920 # tool to use in cross-compilation environments, therefore Automake
2921 # will honor the `STRIP' environment variable to overrule this program.
2922 if test "$cross_compiling" != no; then
2923 if test -n "$ac_tool_prefix"; then
2924 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2925 set dummy ${ac_tool_prefix}strip; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if test "${ac_cv_prog_STRIP+set}" = set; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 if test -n "$STRIP"; then
2932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2945 done
2946 done
2947 IFS=$as_save_IFS
2951 STRIP=$ac_cv_prog_STRIP
2952 if test -n "$STRIP"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2954 $as_echo "$STRIP" >&6; }
2955 else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2962 if test -z "$ac_cv_prog_STRIP"; then
2963 ac_ct_STRIP=$STRIP
2964 # Extract the first word of "strip", so it can be a program name with args.
2965 set dummy strip; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2969 $as_echo_n "(cached) " >&6
2970 else
2971 if test -n "$ac_ct_STRIP"; then
2972 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981 ac_cv_prog_ac_ct_STRIP="strip"
2982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2985 done
2986 done
2987 IFS=$as_save_IFS
2991 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2992 if test -n "$ac_ct_STRIP"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2994 $as_echo "$ac_ct_STRIP" >&6; }
2995 else
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
3000 if test "x$ac_ct_STRIP" = x; then
3001 STRIP=":"
3002 else
3003 case $cross_compiling:$ac_tool_warned in
3004 yes:)
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3007 ac_tool_warned=yes ;;
3008 esac
3009 STRIP=$ac_ct_STRIP
3011 else
3012 STRIP="$ac_cv_prog_STRIP"
3016 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3019 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3020 if test -z "$MKDIR_P"; then
3021 if test "${ac_cv_path_mkdir+set}" = set; then :
3022 $as_echo_n "(cached) " >&6
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_prog in mkdir gmkdir; do
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3032 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3033 'mkdir (GNU coreutils) '* | \
3034 'mkdir (coreutils) '* | \
3035 'mkdir (fileutils) '4.1*)
3036 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3037 break 3;;
3038 esac
3039 done
3040 done
3041 done
3042 IFS=$as_save_IFS
3046 test -d ./--version && rmdir ./--version
3047 if test "${ac_cv_path_mkdir+set}" = set; then
3048 MKDIR_P="$ac_cv_path_mkdir -p"
3049 else
3050 # As a last resort, use the slow shell script. Don't cache a
3051 # value for MKDIR_P within a source directory, because that will
3052 # break other packages using the cache if that directory is
3053 # removed, or if the value is a relative name.
3054 MKDIR_P="$ac_install_sh -d"
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3058 $as_echo "$MKDIR_P" >&6; }
3060 mkdir_p="$MKDIR_P"
3061 case $mkdir_p in
3062 [\\/$]* | ?:[\\/]*) ;;
3063 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3064 esac
3066 for ac_prog in gawk mawk nawk awk
3068 # Extract the first word of "$ac_prog", so it can be a program name with args.
3069 set dummy $ac_prog; ac_word=$2
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071 $as_echo_n "checking for $ac_word... " >&6; }
3072 if test "${ac_cv_prog_AWK+set}" = set; then :
3073 $as_echo_n "(cached) " >&6
3074 else
3075 if test -n "$AWK"; then
3076 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3077 else
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085 ac_cv_prog_AWK="$ac_prog"
3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 break 2
3089 done
3090 done
3091 IFS=$as_save_IFS
3095 AWK=$ac_cv_prog_AWK
3096 if test -n "$AWK"; then
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3098 $as_echo "$AWK" >&6; }
3099 else
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101 $as_echo "no" >&6; }
3105 test -n "$AWK" && break
3106 done
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3109 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3110 set x ${MAKE-make}
3111 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3112 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 cat >conftest.make <<\_ACEOF
3116 SHELL = /bin/sh
3117 all:
3118 @echo '@@@%%%=$(MAKE)=@@@%%%'
3119 _ACEOF
3120 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3121 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3122 *@@@%%%=?*=@@@%%%*)
3123 eval ac_cv_prog_make_${ac_make}_set=yes;;
3125 eval ac_cv_prog_make_${ac_make}_set=no;;
3126 esac
3127 rm -f conftest.make
3129 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3131 $as_echo "yes" >&6; }
3132 SET_MAKE=
3133 else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 SET_MAKE="MAKE=${MAKE-make}"
3139 rm -rf .tst 2>/dev/null
3140 mkdir .tst 2>/dev/null
3141 if test -d .tst; then
3142 am__leading_dot=.
3143 else
3144 am__leading_dot=_
3146 rmdir .tst 2>/dev/null
3148 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3149 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3150 # is not polluted with repeated "-I."
3151 am__isrc=' -I$(srcdir)'
3152 # test to see if srcdir already configured
3153 if test -f $srcdir/config.status; then
3154 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3158 # test whether we have cygpath
3159 if test -z "$CYGPATH_W"; then
3160 if (cygpath --version) >/dev/null 2>/dev/null; then
3161 CYGPATH_W='cygpath -w'
3162 else
3163 CYGPATH_W=echo
3168 # Define the identity of the package.
3169 PACKAGE='amule'
3170 VERSION='SVN'
3173 cat >>confdefs.h <<_ACEOF
3174 #define PACKAGE "$PACKAGE"
3175 _ACEOF
3178 cat >>confdefs.h <<_ACEOF
3179 #define VERSION "$VERSION"
3180 _ACEOF
3182 # Some tools Automake needs.
3184 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3187 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3190 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3193 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3196 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3198 # We need awk for the "check" target. The system "awk" is bad on
3199 # some platforms.
3200 # Always define AMTAR for backward compatibility.
3202 AMTAR=${AMTAR-"${am_missing_run}tar"}
3204 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3210 # Check whether --enable-silent-rules was given.
3211 if test "${enable_silent_rules+set}" = set; then :
3212 enableval=$enable_silent_rules;
3215 case $enable_silent_rules in
3216 yes) AM_DEFAULT_VERBOSITY=0;;
3217 no) AM_DEFAULT_VERBOSITY=1;;
3218 *) AM_DEFAULT_VERBOSITY=1;;
3219 esac
3220 AM_BACKSLASH='\'
3226 ac_config_headers="$ac_config_headers config.h"
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3230 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3231 # Check whether --enable-maintainer-mode was given.
3232 if test "${enable_maintainer_mode+set}" = set; then :
3233 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3234 else
3235 USE_MAINTAINER_MODE=no
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3239 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3240 if test $USE_MAINTAINER_MODE = yes; then
3241 MAINTAINER_MODE_TRUE=
3242 MAINTAINER_MODE_FALSE='#'
3243 else
3244 MAINTAINER_MODE_TRUE='#'
3245 MAINTAINER_MODE_FALSE=
3248 MAINT=$MAINTAINER_MODE_TRUE
3252 # Make sure we can run config.sub.
3253 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3254 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3257 $as_echo_n "checking build system type... " >&6; }
3258 if test "${ac_cv_build+set}" = set; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 ac_build_alias=$build_alias
3262 test "x$ac_build_alias" = x &&
3263 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3264 test "x$ac_build_alias" = x &&
3265 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3266 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3267 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3271 $as_echo "$ac_cv_build" >&6; }
3272 case $ac_cv_build in
3273 *-*-*) ;;
3274 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3275 esac
3276 build=$ac_cv_build
3277 ac_save_IFS=$IFS; IFS='-'
3278 set x $ac_cv_build
3279 shift
3280 build_cpu=$1
3281 build_vendor=$2
3282 shift; shift
3283 # Remember, the first character of IFS is used to create $*,
3284 # except with old shells:
3285 build_os=$*
3286 IFS=$ac_save_IFS
3287 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3291 $as_echo_n "checking host system type... " >&6; }
3292 if test "${ac_cv_host+set}" = set; then :
3293 $as_echo_n "(cached) " >&6
3294 else
3295 if test "x$host_alias" = x; then
3296 ac_cv_host=$ac_cv_build
3297 else
3298 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3299 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3304 $as_echo "$ac_cv_host" >&6; }
3305 case $ac_cv_host in
3306 *-*-*) ;;
3307 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3308 esac
3309 host=$ac_cv_host
3310 ac_save_IFS=$IFS; IFS='-'
3311 set x $ac_cv_host
3312 shift
3313 host_cpu=$1
3314 host_vendor=$2
3315 shift; shift
3316 # Remember, the first character of IFS is used to create $*,
3317 # except with old shells:
3318 host_os=$*
3319 IFS=$ac_save_IFS
3320 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3324 case "${host_os}" in
3325 darwin*)
3326 SYS=darwin
3327 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3328 MULELDFLAGS="-bind_at_load"
3329 touch src/Scanner.cpp
3331 openbsd*)
3332 SYS=openbsd
3333 LIBS="$LIBS -L/usr/local/lib"
3334 MULECPPFLAGS="-D__OPENBSD__"
3336 *cygwin* | *mingw32*)
3337 SYS=win32
3338 MULECPPFLAGS="-DNOMINMAX"
3340 solaris*)
3341 SYS=solaris
3342 RESOLV_LIB="-lresolv -lnsl"
3343 LIBS="$LIBS -lrt"
3345 *netbsd*)
3346 SYS=netbsd
3347 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3348 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3349 # Still, we prepend them, instead of adding, so the user may override them.
3350 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
3351 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3353 *irix*)
3354 SYS=irix
3355 MULECPPFLAGS="-D__IRIX__"
3358 SYS=unknown
3360 esac
3362 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3363 if test ${SYS:-unknown} != win32; then :
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3366 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3367 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then :
3369 MULELDFLAGS="$MULELDFLAGS -pthread"
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371 $as_echo "yes" >&6; }
3373 else
3375 MULELDFLAGS="$MULELDFLAGS -lpthread"
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3385 mule_backup_CFLAGS="$CFLAGS"
3386 mule_backup_CXXFLAGS="$CXXFLAGS"
3387 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
3388 ac_ext=cpp
3389 ac_cpp='$CXXCPP $CPPFLAGS'
3390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3393 if test -z "$CXX"; then
3394 if test -n "$CCC"; then
3395 CXX=$CCC
3396 else
3397 if test -n "$ac_tool_prefix"; then
3398 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if test "${ac_cv_prog_CXX+set}" = set; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 if test -n "$CXX"; then
3408 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3409 else
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3413 IFS=$as_save_IFS
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3417 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 break 2
3421 done
3422 done
3423 IFS=$as_save_IFS
3427 CXX=$ac_cv_prog_CXX
3428 if test -n "$CXX"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3430 $as_echo "$CXX" >&6; }
3431 else
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3437 test -n "$CXX" && break
3438 done
3440 if test -z "$CXX"; then
3441 ac_ct_CXX=$CXX
3442 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3444 # Extract the first word of "$ac_prog", so it can be a program name with args.
3445 set dummy $ac_prog; ac_word=$2
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3449 $as_echo_n "(cached) " >&6
3450 else
3451 if test -n "$ac_ct_CXX"; then
3452 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3453 else
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 for as_dir in $PATH
3457 IFS=$as_save_IFS
3458 test -z "$as_dir" && as_dir=.
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3461 ac_cv_prog_ac_ct_CXX="$ac_prog"
3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 break 2
3465 done
3466 done
3467 IFS=$as_save_IFS
3471 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3472 if test -n "$ac_ct_CXX"; then
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3474 $as_echo "$ac_ct_CXX" >&6; }
3475 else
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477 $as_echo "no" >&6; }
3481 test -n "$ac_ct_CXX" && break
3482 done
3484 if test "x$ac_ct_CXX" = x; then
3485 CXX="g++"
3486 else
3487 case $cross_compiling:$ac_tool_warned in
3488 yes:)
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3491 ac_tool_warned=yes ;;
3492 esac
3493 CXX=$ac_ct_CXX
3499 # Provide some information about the compiler.
3500 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3501 set X $ac_compile
3502 ac_compiler=$2
3503 for ac_option in --version -v -V -qversion; do
3504 { { ac_try="$ac_compiler $ac_option >&5"
3505 case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3512 ac_status=$?
3513 if test -s conftest.err; then
3514 sed '10a\
3515 ... rest of stderr output deleted ...
3516 10q' conftest.err >conftest.er1
3517 cat conftest.er1 >&5
3519 rm -f conftest.er1 conftest.err
3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521 test $ac_status = 0; }
3522 done
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3528 main ()
3532 return 0;
3534 _ACEOF
3535 ac_clean_files_save=$ac_clean_files
3536 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3537 # Try to create an executable without -o first, disregard a.out.
3538 # It will help us diagnose broken compilers, and finding out an intuition
3539 # of exeext.
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3541 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3542 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3544 # The possible output files:
3545 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3547 ac_rmfiles=
3548 for ac_file in $ac_files
3550 case $ac_file in
3551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3552 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3553 esac
3554 done
3555 rm -f $ac_rmfiles
3557 if { { ac_try="$ac_link_default"
3558 case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561 esac
3562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3563 $as_echo "$ac_try_echo"; } >&5
3564 (eval "$ac_link_default") 2>&5
3565 ac_status=$?
3566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3567 test $ac_status = 0; }; then :
3568 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3569 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3570 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3571 # so that the user can short-circuit this test for compilers unknown to
3572 # Autoconf.
3573 for ac_file in $ac_files ''
3575 test -f "$ac_file" || continue
3576 case $ac_file in
3577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3579 [ab].out )
3580 # We found the default executable, but exeext='' is most
3581 # certainly right.
3582 break;;
3583 *.* )
3584 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3585 then :; else
3586 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3588 # We set ac_cv_exeext here because the later test for it is not
3589 # safe: cross compilers may not add the suffix if given an `-o'
3590 # argument, so we may need to know it at that point already.
3591 # Even if this section looks crufty: it has the advantage of
3592 # actually working.
3593 break;;
3595 break;;
3596 esac
3597 done
3598 test "$ac_cv_exeext" = no && ac_cv_exeext=
3600 else
3601 ac_file=''
3603 if test -z "$ac_file"; then :
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 $as_echo "no" >&6; }
3606 $as_echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 { as_fn_set_status 77
3612 as_fn_error "C++ compiler cannot create executables
3613 See \`config.log' for more details." "$LINENO" 5; }; }
3614 else
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3616 $as_echo "yes" >&6; }
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3619 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3621 $as_echo "$ac_file" >&6; }
3622 ac_exeext=$ac_cv_exeext
3624 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3625 ac_clean_files=$ac_clean_files_save
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3627 $as_echo_n "checking for suffix of executables... " >&6; }
3628 if { { ac_try="$ac_link"
3629 case "(($ac_try" in
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3632 esac
3633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634 $as_echo "$ac_try_echo"; } >&5
3635 (eval "$ac_link") 2>&5
3636 ac_status=$?
3637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638 test $ac_status = 0; }; then :
3639 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3640 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3641 # work properly (i.e., refer to `conftest.exe'), while it won't with
3642 # `rm'.
3643 for ac_file in conftest.exe conftest conftest.*; do
3644 test -f "$ac_file" || continue
3645 case $ac_file in
3646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3647 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3648 break;;
3649 * ) break;;
3650 esac
3651 done
3652 else
3653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3655 as_fn_error "cannot compute suffix of executables: cannot compile and link
3656 See \`config.log' for more details." "$LINENO" 5; }
3658 rm -f conftest conftest$ac_cv_exeext
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3660 $as_echo "$ac_cv_exeext" >&6; }
3662 rm -f conftest.$ac_ext
3663 EXEEXT=$ac_cv_exeext
3664 ac_exeext=$EXEEXT
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3667 #include <stdio.h>
3669 main ()
3671 FILE *f = fopen ("conftest.out", "w");
3672 return ferror (f) || fclose (f) != 0;
3675 return 0;
3677 _ACEOF
3678 ac_clean_files="$ac_clean_files conftest.out"
3679 # Check that the compiler produces executables we can run. If not, either
3680 # the compiler is broken, or we cross compile.
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3682 $as_echo_n "checking whether we are cross compiling... " >&6; }
3683 if test "$cross_compiling" != yes; then
3684 { { ac_try="$ac_link"
3685 case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3688 esac
3689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690 $as_echo "$ac_try_echo"; } >&5
3691 (eval "$ac_link") 2>&5
3692 ac_status=$?
3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694 test $ac_status = 0; }
3695 if { ac_try='./conftest$ac_cv_exeext'
3696 { { case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699 esac
3700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3701 $as_echo "$ac_try_echo"; } >&5
3702 (eval "$ac_try") 2>&5
3703 ac_status=$?
3704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3705 test $ac_status = 0; }; }; then
3706 cross_compiling=no
3707 else
3708 if test "$cross_compiling" = maybe; then
3709 cross_compiling=yes
3710 else
3711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713 as_fn_error "cannot run C++ compiled programs.
3714 If you meant to cross compile, use \`--host'.
3715 See \`config.log' for more details." "$LINENO" 5; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3720 $as_echo "$cross_compiling" >&6; }
3722 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3723 ac_clean_files=$ac_clean_files_save
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3725 $as_echo_n "checking for suffix of object files... " >&6; }
3726 if test "${ac_cv_objext+set}" = set; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3733 main ()
3737 return 0;
3739 _ACEOF
3740 rm -f conftest.o conftest.obj
3741 if { { ac_try="$ac_compile"
3742 case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745 esac
3746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747 $as_echo "$ac_try_echo"; } >&5
3748 (eval "$ac_compile") 2>&5
3749 ac_status=$?
3750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751 test $ac_status = 0; }; then :
3752 for ac_file in conftest.o conftest.obj conftest.*; do
3753 test -f "$ac_file" || continue;
3754 case $ac_file in
3755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3756 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3757 break;;
3758 esac
3759 done
3760 else
3761 $as_echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766 as_fn_error "cannot compute suffix of object files: cannot compile
3767 See \`config.log' for more details." "$LINENO" 5; }
3769 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3772 $as_echo "$ac_cv_objext" >&6; }
3773 OBJEXT=$ac_cv_objext
3774 ac_objext=$OBJEXT
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3776 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3777 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
3779 else
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3784 main ()
3786 #ifndef __GNUC__
3787 choke me
3788 #endif
3791 return 0;
3793 _ACEOF
3794 if ac_fn_cxx_try_compile "$LINENO"; then :
3795 ac_compiler_gnu=yes
3796 else
3797 ac_compiler_gnu=no
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3800 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3804 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3805 if test $ac_compiler_gnu = yes; then
3806 GXX=yes
3807 else
3808 GXX=
3810 ac_test_CXXFLAGS=${CXXFLAGS+set}
3811 ac_save_CXXFLAGS=$CXXFLAGS
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3813 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3814 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3818 ac_cxx_werror_flag=yes
3819 ac_cv_prog_cxx_g=no
3820 CXXFLAGS="-g"
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3825 main ()
3829 return 0;
3831 _ACEOF
3832 if ac_fn_cxx_try_compile "$LINENO"; then :
3833 ac_cv_prog_cxx_g=yes
3834 else
3835 CXXFLAGS=""
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3840 main ()
3844 return 0;
3846 _ACEOF
3847 if ac_fn_cxx_try_compile "$LINENO"; then :
3849 else
3850 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3851 CXXFLAGS="-g"
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3856 main ()
3860 return 0;
3862 _ACEOF
3863 if ac_fn_cxx_try_compile "$LINENO"; then :
3864 ac_cv_prog_cxx_g=yes
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3874 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3875 if test "$ac_test_CXXFLAGS" = set; then
3876 CXXFLAGS=$ac_save_CXXFLAGS
3877 elif test $ac_cv_prog_cxx_g = yes; then
3878 if test "$GXX" = yes; then
3879 CXXFLAGS="-g -O2"
3880 else
3881 CXXFLAGS="-g"
3883 else
3884 if test "$GXX" = yes; then
3885 CXXFLAGS="-O2"
3886 else
3887 CXXFLAGS=
3890 ac_ext=c
3891 ac_cpp='$CPP $CPPFLAGS'
3892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3895 DEPDIR="${am__leading_dot}deps"
3897 ac_config_commands="$ac_config_commands depfiles"
3900 am_make=${MAKE-make}
3901 cat > confinc << 'END'
3902 am__doit:
3903 @echo this is the am__doit target
3904 .PHONY: am__doit
3906 # If we don't find an include directive, just comment out the code.
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3908 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3909 am__include="#"
3910 am__quote=
3911 _am_result=none
3912 # First try GNU make style include.
3913 echo "include confinc" > confmf
3914 # Ignore all kinds of additional output from `make'.
3915 case `$am_make -s -f confmf 2> /dev/null` in #(
3916 *the\ am__doit\ target*)
3917 am__include=include
3918 am__quote=
3919 _am_result=GNU
3921 esac
3922 # Now try BSD make style include.
3923 if test "$am__include" = "#"; then
3924 echo '.include "confinc"' > confmf
3925 case `$am_make -s -f confmf 2> /dev/null` in #(
3926 *the\ am__doit\ target*)
3927 am__include=.include
3928 am__quote="\""
3929 _am_result=BSD
3931 esac
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3936 $as_echo "$_am_result" >&6; }
3937 rm -f confinc confmf
3939 # Check whether --enable-dependency-tracking was given.
3940 if test "${enable_dependency_tracking+set}" = set; then :
3941 enableval=$enable_dependency_tracking;
3944 if test "x$enable_dependency_tracking" != xno; then
3945 am_depcomp="$ac_aux_dir/depcomp"
3946 AMDEPBACKSLASH='\'
3948 if test "x$enable_dependency_tracking" != xno; then
3949 AMDEP_TRUE=
3950 AMDEP_FALSE='#'
3951 else
3952 AMDEP_TRUE='#'
3953 AMDEP_FALSE=
3958 depcc="$CXX" am_compiler_list=
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3961 $as_echo_n "checking dependency style of $depcc... " >&6; }
3962 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3963 $as_echo_n "(cached) " >&6
3964 else
3965 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3966 # We make a subdir and do the tests there. Otherwise we can end up
3967 # making bogus files that we don't know about and never remove. For
3968 # instance it was reported that on HP-UX the gcc test will end up
3969 # making a dummy file named `D' -- because `-MD' means `put the output
3970 # in D'.
3971 mkdir conftest.dir
3972 # Copy depcomp to subdir because otherwise we won't find it if we're
3973 # using a relative directory.
3974 cp "$am_depcomp" conftest.dir
3975 cd conftest.dir
3976 # We will build objects and dependencies in a subdirectory because
3977 # it helps to detect inapplicable dependency modes. For instance
3978 # both Tru64's cc and ICC support -MD to output dependencies as a
3979 # side effect of compilation, but ICC will put the dependencies in
3980 # the current directory while Tru64 will put them in the object
3981 # directory.
3982 mkdir sub
3984 am_cv_CXX_dependencies_compiler_type=none
3985 if test "$am_compiler_list" = ""; then
3986 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3988 am__universal=false
3989 case " $depcc " in #(
3990 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3991 esac
3993 for depmode in $am_compiler_list; do
3994 # Setup a source with many dependencies, because some compilers
3995 # like to wrap large dependency lists on column 80 (with \), and
3996 # we should not choose a depcomp mode which is confused by this.
3998 # We need to recreate these files for each test, as the compiler may
3999 # overwrite some of them when testing with obscure command lines.
4000 # This happens at least with the AIX C compiler.
4001 : > sub/conftest.c
4002 for i in 1 2 3 4 5 6; do
4003 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4004 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4005 # Solaris 8's {/usr,}/bin/sh.
4006 touch sub/conftst$i.h
4007 done
4008 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4010 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4011 # mode. It turns out that the SunPro C++ compiler does not properly
4012 # handle `-M -o', and we need to detect this. Also, some Intel
4013 # versions had trouble with output in subdirs
4014 am__obj=sub/conftest.${OBJEXT-o}
4015 am__minus_obj="-o $am__obj"
4016 case $depmode in
4017 gcc)
4018 # This depmode causes a compiler race in universal mode.
4019 test "$am__universal" = false || continue
4021 nosideeffect)
4022 # after this tag, mechanisms are not by side-effect, so they'll
4023 # only be used when explicitly requested
4024 if test "x$enable_dependency_tracking" = xyes; then
4025 continue
4026 else
4027 break
4030 msvisualcpp | msvcmsys)
4031 # This compiler won't grok `-c -o', but also, the minuso test has
4032 # not run yet. These depmodes are late enough in the game, and
4033 # so weak that their functioning should not be impacted.
4034 am__obj=conftest.${OBJEXT-o}
4035 am__minus_obj=
4037 none) break ;;
4038 esac
4039 if depmode=$depmode \
4040 source=sub/conftest.c object=$am__obj \
4041 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4042 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4043 >/dev/null 2>conftest.err &&
4044 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4045 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4046 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4047 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4048 # icc doesn't choke on unknown options, it will just issue warnings
4049 # or remarks (even with -Werror). So we grep stderr for any message
4050 # that says an option was ignored or not supported.
4051 # When given -MP, icc 7.0 and 7.1 complain thusly:
4052 # icc: Command line warning: ignoring option '-M'; no argument required
4053 # The diagnosis changed in icc 8.0:
4054 # icc: Command line remark: option '-MP' not supported
4055 if (grep 'ignoring option' conftest.err ||
4056 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4057 am_cv_CXX_dependencies_compiler_type=$depmode
4058 break
4061 done
4063 cd ..
4064 rm -rf conftest.dir
4065 else
4066 am_cv_CXX_dependencies_compiler_type=none
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4071 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4072 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4075 test "x$enable_dependency_tracking" != xno \
4076 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4077 am__fastdepCXX_TRUE=
4078 am__fastdepCXX_FALSE='#'
4079 else
4080 am__fastdepCXX_TRUE='#'
4081 am__fastdepCXX_FALSE=
4085 ac_ext=cpp
4086 ac_cpp='$CXXCPP $CPPFLAGS'
4087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4091 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4092 if test -z "$CXXCPP"; then
4093 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 # Double quotes because CXXCPP needs to be expanded
4097 for CXXCPP in "$CXX -E" "/lib/cpp"
4099 ac_preproc_ok=false
4100 for ac_cxx_preproc_warn_flag in '' yes
4102 # Use a header file that comes with gcc, so configuring glibc
4103 # with a fresh cross-compiler works.
4104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4105 # <limits.h> exists even on freestanding compilers.
4106 # On the NeXT, cc -E runs the code through the compiler's parser,
4107 # not just through cpp. "Syntax error" is here to catch this case.
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110 #ifdef __STDC__
4111 # include <limits.h>
4112 #else
4113 # include <assert.h>
4114 #endif
4115 Syntax error
4116 _ACEOF
4117 if ac_fn_cxx_try_cpp "$LINENO"; then :
4119 else
4120 # Broken: fails on valid input.
4121 continue
4123 rm -f conftest.err conftest.$ac_ext
4125 # OK, works on sane cases. Now check whether nonexistent headers
4126 # can be detected and how.
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4129 #include <ac_nonexistent.h>
4130 _ACEOF
4131 if ac_fn_cxx_try_cpp "$LINENO"; then :
4132 # Broken: success on invalid input.
4133 continue
4134 else
4135 # Passes both tests.
4136 ac_preproc_ok=:
4137 break
4139 rm -f conftest.err conftest.$ac_ext
4141 done
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.$ac_ext
4144 if $ac_preproc_ok; then :
4145 break
4148 done
4149 ac_cv_prog_CXXCPP=$CXXCPP
4152 CXXCPP=$ac_cv_prog_CXXCPP
4153 else
4154 ac_cv_prog_CXXCPP=$CXXCPP
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4157 $as_echo "$CXXCPP" >&6; }
4158 ac_preproc_ok=false
4159 for ac_cxx_preproc_warn_flag in '' yes
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #ifdef __STDC__
4170 # include <limits.h>
4171 #else
4172 # include <assert.h>
4173 #endif
4174 Syntax error
4175 _ACEOF
4176 if ac_fn_cxx_try_cpp "$LINENO"; then :
4178 else
4179 # Broken: fails on valid input.
4180 continue
4182 rm -f conftest.err conftest.$ac_ext
4184 # OK, works on sane cases. Now check whether nonexistent headers
4185 # can be detected and how.
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 #include <ac_nonexistent.h>
4189 _ACEOF
4190 if ac_fn_cxx_try_cpp "$LINENO"; then :
4191 # Broken: success on invalid input.
4192 continue
4193 else
4194 # Passes both tests.
4195 ac_preproc_ok=:
4196 break
4198 rm -f conftest.err conftest.$ac_ext
4200 done
4201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4202 rm -f conftest.err conftest.$ac_ext
4203 if $ac_preproc_ok; then :
4205 else
4206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4208 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4209 See \`config.log' for more details." "$LINENO" 5; }
4212 ac_ext=c
4213 ac_cpp='$CPP $CPPFLAGS'
4214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4218 ac_ext=c
4219 ac_cpp='$CPP $CPPFLAGS'
4220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223 if test -n "$ac_tool_prefix"; then
4224 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4225 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if test "${ac_cv_prog_CC+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 if test -n "$CC"; then
4232 ac_cv_prog_CC="$CC" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4245 done
4246 done
4247 IFS=$as_save_IFS
4251 CC=$ac_cv_prog_CC
4252 if test -n "$CC"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4254 $as_echo "$CC" >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4262 if test -z "$ac_cv_prog_CC"; then
4263 ac_ct_CC=$CC
4264 # Extract the first word of "gcc", so it can be a program name with args.
4265 set dummy gcc; ac_word=$2
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 $as_echo_n "checking for $ac_word... " >&6; }
4268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 if test -n "$ac_ct_CC"; then
4272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4273 else
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_prog_ac_ct_CC="gcc"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
4285 done
4286 done
4287 IFS=$as_save_IFS
4291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4292 if test -n "$ac_ct_CC"; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4294 $as_echo "$ac_ct_CC" >&6; }
4295 else
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4300 if test "x$ac_ct_CC" = x; then
4301 CC=""
4302 else
4303 case $cross_compiling:$ac_tool_warned in
4304 yes:)
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4307 ac_tool_warned=yes ;;
4308 esac
4309 CC=$ac_ct_CC
4311 else
4312 CC="$ac_cv_prog_CC"
4315 if test -z "$CC"; then
4316 if test -n "$ac_tool_prefix"; then
4317 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4318 set dummy ${ac_tool_prefix}cc; ac_word=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if test "${ac_cv_prog_CC+set}" = set; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 if test -n "$CC"; then
4325 ac_cv_prog_CC="$CC" # Let the user override the test.
4326 else
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4334 ac_cv_prog_CC="${ac_tool_prefix}cc"
4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 break 2
4338 done
4339 done
4340 IFS=$as_save_IFS
4344 CC=$ac_cv_prog_CC
4345 if test -n "$CC"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4347 $as_echo "$CC" >&6; }
4348 else
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4356 if test -z "$CC"; then
4357 # Extract the first word of "cc", so it can be a program name with args.
4358 set dummy cc; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if test "${ac_cv_prog_CC+set}" = set; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 if test -n "$CC"; then
4365 ac_cv_prog_CC="$CC" # Let the user override the test.
4366 else
4367 ac_prog_rejected=no
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4376 ac_prog_rejected=yes
4377 continue
4379 ac_cv_prog_CC="cc"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4383 done
4384 done
4385 IFS=$as_save_IFS
4387 if test $ac_prog_rejected = yes; then
4388 # We found a bogon in the path, so make sure we never use it.
4389 set dummy $ac_cv_prog_CC
4390 shift
4391 if test $# != 0; then
4392 # We chose a different compiler from the bogus one.
4393 # However, it has the same basename, so the bogon will be chosen
4394 # first if we set CC to just the basename; use the full file name.
4395 shift
4396 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4401 CC=$ac_cv_prog_CC
4402 if test -n "$CC"; then
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4404 $as_echo "$CC" >&6; }
4405 else
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 $as_echo "no" >&6; }
4412 if test -z "$CC"; then
4413 if test -n "$ac_tool_prefix"; then
4414 for ac_prog in cl.exe
4416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if test "${ac_cv_prog_CC+set}" = set; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 if test -n "$CC"; then
4424 ac_cv_prog_CC="$CC" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4437 done
4438 done
4439 IFS=$as_save_IFS
4443 CC=$ac_cv_prog_CC
4444 if test -n "$CC"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4446 $as_echo "$CC" >&6; }
4447 else
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4453 test -n "$CC" && break
4454 done
4456 if test -z "$CC"; then
4457 ac_ct_CC=$CC
4458 for ac_prog in cl.exe
4460 # Extract the first word of "$ac_prog", so it can be a program name with args.
4461 set dummy $ac_prog; ac_word=$2
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 $as_echo_n "checking for $ac_word... " >&6; }
4464 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 if test -n "$ac_ct_CC"; then
4468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4469 else
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 ac_cv_prog_ac_ct_CC="$ac_prog"
4478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4481 done
4482 done
4483 IFS=$as_save_IFS
4487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4488 if test -n "$ac_ct_CC"; then
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4490 $as_echo "$ac_ct_CC" >&6; }
4491 else
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493 $as_echo "no" >&6; }
4497 test -n "$ac_ct_CC" && break
4498 done
4500 if test "x$ac_ct_CC" = x; then
4501 CC=""
4502 else
4503 case $cross_compiling:$ac_tool_warned in
4504 yes:)
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4507 ac_tool_warned=yes ;;
4508 esac
4509 CC=$ac_ct_CC
4516 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4518 as_fn_error "no acceptable C compiler found in \$PATH
4519 See \`config.log' for more details." "$LINENO" 5; }
4521 # Provide some information about the compiler.
4522 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4523 set X $ac_compile
4524 ac_compiler=$2
4525 for ac_option in --version -v -V -qversion; do
4526 { { ac_try="$ac_compiler $ac_option >&5"
4527 case "(($ac_try" in
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4530 esac
4531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4532 $as_echo "$ac_try_echo"; } >&5
4533 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4534 ac_status=$?
4535 if test -s conftest.err; then
4536 sed '10a\
4537 ... rest of stderr output deleted ...
4538 10q' conftest.err >conftest.er1
4539 cat conftest.er1 >&5
4541 rm -f conftest.er1 conftest.err
4542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4543 test $ac_status = 0; }
4544 done
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4547 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4548 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4555 main ()
4557 #ifndef __GNUC__
4558 choke me
4559 #endif
4562 return 0;
4564 _ACEOF
4565 if ac_fn_c_try_compile "$LINENO"; then :
4566 ac_compiler_gnu=yes
4567 else
4568 ac_compiler_gnu=no
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4575 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4576 if test $ac_compiler_gnu = yes; then
4577 GCC=yes
4578 else
4579 GCC=
4581 ac_test_CFLAGS=${CFLAGS+set}
4582 ac_save_CFLAGS=$CFLAGS
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4584 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4585 if test "${ac_cv_prog_cc_g+set}" = set; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 ac_save_c_werror_flag=$ac_c_werror_flag
4589 ac_c_werror_flag=yes
4590 ac_cv_prog_cc_g=no
4591 CFLAGS="-g"
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4596 main ()
4600 return 0;
4602 _ACEOF
4603 if ac_fn_c_try_compile "$LINENO"; then :
4604 ac_cv_prog_cc_g=yes
4605 else
4606 CFLAGS=""
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4611 main ()
4615 return 0;
4617 _ACEOF
4618 if ac_fn_c_try_compile "$LINENO"; then :
4620 else
4621 ac_c_werror_flag=$ac_save_c_werror_flag
4622 CFLAGS="-g"
4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4627 main ()
4631 return 0;
4633 _ACEOF
4634 if ac_fn_c_try_compile "$LINENO"; then :
4635 ac_cv_prog_cc_g=yes
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 ac_c_werror_flag=$ac_save_c_werror_flag
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4645 $as_echo "$ac_cv_prog_cc_g" >&6; }
4646 if test "$ac_test_CFLAGS" = set; then
4647 CFLAGS=$ac_save_CFLAGS
4648 elif test $ac_cv_prog_cc_g = yes; then
4649 if test "$GCC" = yes; then
4650 CFLAGS="-g -O2"
4651 else
4652 CFLAGS="-g"
4654 else
4655 if test "$GCC" = yes; then
4656 CFLAGS="-O2"
4657 else
4658 CFLAGS=
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4662 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4663 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 ac_cv_prog_cc_c89=no
4667 ac_save_CC=$CC
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4670 #include <stdarg.h>
4671 #include <stdio.h>
4672 #include <sys/types.h>
4673 #include <sys/stat.h>
4674 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4675 struct buf { int x; };
4676 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4677 static char *e (p, i)
4678 char **p;
4679 int i;
4681 return p[i];
4683 static char *f (char * (*g) (char **, int), char **p, ...)
4685 char *s;
4686 va_list v;
4687 va_start (v,p);
4688 s = g (p, va_arg (v,int));
4689 va_end (v);
4690 return s;
4693 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4694 function prototypes and stuff, but not '\xHH' hex character constants.
4695 These don't provoke an error unfortunately, instead are silently treated
4696 as 'x'. The following induces an error, until -std is added to get
4697 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4698 array size at least. It's necessary to write '\x00'==0 to get something
4699 that's true only with -std. */
4700 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4702 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4703 inside strings and character constants. */
4704 #define FOO(x) 'x'
4705 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4707 int test (int i, double x);
4708 struct s1 {int (*f) (int a);};
4709 struct s2 {int (*f) (double a);};
4710 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4711 int argc;
4712 char **argv;
4714 main ()
4716 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4718 return 0;
4720 _ACEOF
4721 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4722 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4724 CC="$ac_save_CC $ac_arg"
4725 if ac_fn_c_try_compile "$LINENO"; then :
4726 ac_cv_prog_cc_c89=$ac_arg
4728 rm -f core conftest.err conftest.$ac_objext
4729 test "x$ac_cv_prog_cc_c89" != "xno" && break
4730 done
4731 rm -f conftest.$ac_ext
4732 CC=$ac_save_CC
4735 # AC_CACHE_VAL
4736 case "x$ac_cv_prog_cc_c89" in
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4739 $as_echo "none needed" >&6; } ;;
4740 xno)
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4742 $as_echo "unsupported" >&6; } ;;
4744 CC="$CC $ac_cv_prog_cc_c89"
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4746 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4747 esac
4748 if test "x$ac_cv_prog_cc_c89" != xno; then :
4752 ac_ext=c
4753 ac_cpp='$CPP $CPPFLAGS'
4754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4758 depcc="$CC" am_compiler_list=
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4761 $as_echo_n "checking dependency style of $depcc... " >&6; }
4762 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4766 # We make a subdir and do the tests there. Otherwise we can end up
4767 # making bogus files that we don't know about and never remove. For
4768 # instance it was reported that on HP-UX the gcc test will end up
4769 # making a dummy file named `D' -- because `-MD' means `put the output
4770 # in D'.
4771 mkdir conftest.dir
4772 # Copy depcomp to subdir because otherwise we won't find it if we're
4773 # using a relative directory.
4774 cp "$am_depcomp" conftest.dir
4775 cd conftest.dir
4776 # We will build objects and dependencies in a subdirectory because
4777 # it helps to detect inapplicable dependency modes. For instance
4778 # both Tru64's cc and ICC support -MD to output dependencies as a
4779 # side effect of compilation, but ICC will put the dependencies in
4780 # the current directory while Tru64 will put them in the object
4781 # directory.
4782 mkdir sub
4784 am_cv_CC_dependencies_compiler_type=none
4785 if test "$am_compiler_list" = ""; then
4786 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4788 am__universal=false
4789 case " $depcc " in #(
4790 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4791 esac
4793 for depmode in $am_compiler_list; do
4794 # Setup a source with many dependencies, because some compilers
4795 # like to wrap large dependency lists on column 80 (with \), and
4796 # we should not choose a depcomp mode which is confused by this.
4798 # We need to recreate these files for each test, as the compiler may
4799 # overwrite some of them when testing with obscure command lines.
4800 # This happens at least with the AIX C compiler.
4801 : > sub/conftest.c
4802 for i in 1 2 3 4 5 6; do
4803 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4804 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4805 # Solaris 8's {/usr,}/bin/sh.
4806 touch sub/conftst$i.h
4807 done
4808 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4810 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4811 # mode. It turns out that the SunPro C++ compiler does not properly
4812 # handle `-M -o', and we need to detect this. Also, some Intel
4813 # versions had trouble with output in subdirs
4814 am__obj=sub/conftest.${OBJEXT-o}
4815 am__minus_obj="-o $am__obj"
4816 case $depmode in
4817 gcc)
4818 # This depmode causes a compiler race in universal mode.
4819 test "$am__universal" = false || continue
4821 nosideeffect)
4822 # after this tag, mechanisms are not by side-effect, so they'll
4823 # only be used when explicitly requested
4824 if test "x$enable_dependency_tracking" = xyes; then
4825 continue
4826 else
4827 break
4830 msvisualcpp | msvcmsys)
4831 # This compiler won't grok `-c -o', but also, the minuso test has
4832 # not run yet. These depmodes are late enough in the game, and
4833 # so weak that their functioning should not be impacted.
4834 am__obj=conftest.${OBJEXT-o}
4835 am__minus_obj=
4837 none) break ;;
4838 esac
4839 if depmode=$depmode \
4840 source=sub/conftest.c object=$am__obj \
4841 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4842 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4843 >/dev/null 2>conftest.err &&
4844 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4845 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4846 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4847 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4848 # icc doesn't choke on unknown options, it will just issue warnings
4849 # or remarks (even with -Werror). So we grep stderr for any message
4850 # that says an option was ignored or not supported.
4851 # When given -MP, icc 7.0 and 7.1 complain thusly:
4852 # icc: Command line warning: ignoring option '-M'; no argument required
4853 # The diagnosis changed in icc 8.0:
4854 # icc: Command line remark: option '-MP' not supported
4855 if (grep 'ignoring option' conftest.err ||
4856 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4857 am_cv_CC_dependencies_compiler_type=$depmode
4858 break
4861 done
4863 cd ..
4864 rm -rf conftest.dir
4865 else
4866 am_cv_CC_dependencies_compiler_type=none
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4871 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4872 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4875 test "x$enable_dependency_tracking" != xno \
4876 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4877 am__fastdepCC_TRUE=
4878 am__fastdepCC_FALSE='#'
4879 else
4880 am__fastdepCC_TRUE='#'
4881 am__fastdepCC_FALSE=
4885 ac_ext=c
4886 ac_cpp='$CPP $CPPFLAGS'
4887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4891 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4892 # On Suns, sometimes $CPP names a directory.
4893 if test -n "$CPP" && test -d "$CPP"; then
4894 CPP=
4896 if test -z "$CPP"; then
4897 if test "${ac_cv_prog_CPP+set}" = set; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 # Double quotes because CPP needs to be expanded
4901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4903 ac_preproc_ok=false
4904 for ac_c_preproc_warn_flag in '' yes
4906 # Use a header file that comes with gcc, so configuring glibc
4907 # with a fresh cross-compiler works.
4908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4909 # <limits.h> exists even on freestanding compilers.
4910 # On the NeXT, cc -E runs the code through the compiler's parser,
4911 # not just through cpp. "Syntax error" is here to catch this case.
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4914 #ifdef __STDC__
4915 # include <limits.h>
4916 #else
4917 # include <assert.h>
4918 #endif
4919 Syntax error
4920 _ACEOF
4921 if ac_fn_c_try_cpp "$LINENO"; then :
4923 else
4924 # Broken: fails on valid input.
4925 continue
4927 rm -f conftest.err conftest.$ac_ext
4929 # OK, works on sane cases. Now check whether nonexistent headers
4930 # can be detected and how.
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4933 #include <ac_nonexistent.h>
4934 _ACEOF
4935 if ac_fn_c_try_cpp "$LINENO"; then :
4936 # Broken: success on invalid input.
4937 continue
4938 else
4939 # Passes both tests.
4940 ac_preproc_ok=:
4941 break
4943 rm -f conftest.err conftest.$ac_ext
4945 done
4946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4947 rm -f conftest.err conftest.$ac_ext
4948 if $ac_preproc_ok; then :
4949 break
4952 done
4953 ac_cv_prog_CPP=$CPP
4956 CPP=$ac_cv_prog_CPP
4957 else
4958 ac_cv_prog_CPP=$CPP
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4961 $as_echo "$CPP" >&6; }
4962 ac_preproc_ok=false
4963 for ac_c_preproc_warn_flag in '' yes
4965 # Use a header file that comes with gcc, so configuring glibc
4966 # with a fresh cross-compiler works.
4967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4968 # <limits.h> exists even on freestanding compilers.
4969 # On the NeXT, cc -E runs the code through the compiler's parser,
4970 # not just through cpp. "Syntax error" is here to catch this case.
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973 #ifdef __STDC__
4974 # include <limits.h>
4975 #else
4976 # include <assert.h>
4977 #endif
4978 Syntax error
4979 _ACEOF
4980 if ac_fn_c_try_cpp "$LINENO"; then :
4982 else
4983 # Broken: fails on valid input.
4984 continue
4986 rm -f conftest.err conftest.$ac_ext
4988 # OK, works on sane cases. Now check whether nonexistent headers
4989 # can be detected and how.
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992 #include <ac_nonexistent.h>
4993 _ACEOF
4994 if ac_fn_c_try_cpp "$LINENO"; then :
4995 # Broken: success on invalid input.
4996 continue
4997 else
4998 # Passes both tests.
4999 ac_preproc_ok=:
5000 break
5002 rm -f conftest.err conftest.$ac_ext
5004 done
5005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5006 rm -f conftest.err conftest.$ac_ext
5007 if $ac_preproc_ok; then :
5009 else
5010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5012 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5013 See \`config.log' for more details." "$LINENO" 5; }
5016 ac_ext=c
5017 ac_cpp='$CPP $CPPFLAGS'
5018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022 ac_build_prefix=
5023 test -n "$build_alias" && ac_build_prefix=$build_alias-
5025 if test "$cross_compiling" = yes; then :
5027 # Even if we're cross-compiling, we want a compiler here
5028 # that is not a cross-compiler.
5029 saved_cross=$cross_compiling
5030 cross_compiling=no
5032 ac_ext=c
5033 ac_cpp='$CPP $BUILD_CPPFLAGS'
5034 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037 if test -n "$ac_build_prefix"; then
5038 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5039 set dummy ${ac_build_prefix}gcc; ac_word=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 if test -n "$BUILD_CC"; then
5046 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5059 done
5060 done
5061 IFS=$as_save_IFS
5065 BUILD_CC=$ac_cv_prog_BUILD_CC
5066 if test -n "$BUILD_CC"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5068 $as_echo "$BUILD_CC" >&6; }
5069 else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5076 if test -z "$ac_cv_prog_BUILD_CC"; then
5077 ac_ct_BUILD_CC=$BUILD_CC
5078 # Extract the first word of "gcc", so it can be a program name with args.
5079 set dummy gcc; ac_word=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 if test -n "$ac_ct_BUILD_CC"; then
5086 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_prog_ac_ct_BUILD_CC="gcc"
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 break 2
5099 done
5100 done
5101 IFS=$as_save_IFS
5105 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5106 if test -n "$ac_ct_BUILD_CC"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5108 $as_echo "$ac_ct_BUILD_CC" >&6; }
5109 else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5114 if test "x$ac_ct_BUILD_CC" = x; then
5115 BUILD_CC=""
5116 else
5117 case $cross_compiling:$ac_tool_warned in
5118 yes:)
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5121 ac_tool_warned=yes ;;
5122 esac
5123 BUILD_CC=$ac_ct_BUILD_CC
5125 else
5126 BUILD_CC="$ac_cv_prog_BUILD_CC"
5129 if test -z "$BUILD_CC"; then
5130 if test -n "$ac_build_prefix"; then
5131 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5132 set dummy ${ac_build_prefix}cc; ac_word=$2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 if test -n "$BUILD_CC"; then
5139 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5152 done
5153 done
5154 IFS=$as_save_IFS
5158 BUILD_CC=$ac_cv_prog_BUILD_CC
5159 if test -n "$BUILD_CC"; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5161 $as_echo "$BUILD_CC" >&6; }
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5169 if test -z "$ac_cv_prog_BUILD_CC"; then
5170 ac_ct_BUILD_CC=$BUILD_CC
5171 # Extract the first word of "cc", so it can be a program name with args.
5172 set dummy cc; ac_word=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5176 $as_echo_n "(cached) " >&6
5177 else
5178 if test -n "$ac_ct_BUILD_CC"; then
5179 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_prog_ac_ct_BUILD_CC="cc"
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5192 done
5193 done
5194 IFS=$as_save_IFS
5198 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5199 if test -n "$ac_ct_BUILD_CC"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5201 $as_echo "$ac_ct_BUILD_CC" >&6; }
5202 else
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5207 if test "x$ac_ct_BUILD_CC" = x; then
5208 BUILD_CC=""
5209 else
5210 case $cross_compiling:$ac_tool_warned in
5211 yes:)
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5214 ac_tool_warned=yes ;;
5215 esac
5216 BUILD_CC=$ac_ct_BUILD_CC
5218 else
5219 BUILD_CC="$ac_cv_prog_BUILD_CC"
5223 if test -z "$BUILD_CC"; then
5224 # Extract the first word of "cc", so it can be a program name with args.
5225 set dummy cc; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 if test -n "$BUILD_CC"; then
5232 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5233 else
5234 ac_prog_rejected=no
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5243 ac_prog_rejected=yes
5244 continue
5246 ac_cv_prog_BUILD_CC="cc"
5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5250 done
5251 done
5252 IFS=$as_save_IFS
5254 if test $ac_prog_rejected = yes; then
5255 # We found a bogon in the path, so make sure we never use it.
5256 set dummy $ac_cv_prog_BUILD_CC
5257 shift
5258 if test $# != 0; then
5259 # We chose a different compiler from the bogus one.
5260 # However, it has the same basename, so the bogon will be chosen
5261 # first if we set BUILD_CC to just the basename; use the full file name.
5262 shift
5263 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
5268 BUILD_CC=$ac_cv_prog_BUILD_CC
5269 if test -n "$BUILD_CC"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5271 $as_echo "$BUILD_CC" >&6; }
5272 else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5279 if test -z "$BUILD_CC"; then
5280 if test -n "$ac_build_prefix"; then
5281 for ac_prog in cl
5283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5284 set dummy $ac_build_prefix$ac_prog; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 if test -n "$BUILD_CC"; then
5291 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5304 done
5305 done
5306 IFS=$as_save_IFS
5310 BUILD_CC=$ac_cv_prog_BUILD_CC
5311 if test -n "$BUILD_CC"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5313 $as_echo "$BUILD_CC" >&6; }
5314 else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5320 test -n "$BUILD_CC" && break
5321 done
5323 if test -z "$BUILD_CC"; then
5324 ac_ct_BUILD_CC=$BUILD_CC
5325 for ac_prog in cl
5327 # Extract the first word of "$ac_prog", so it can be a program name with args.
5328 set dummy $ac_prog; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 if test -n "$ac_ct_BUILD_CC"; then
5335 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5348 done
5349 done
5350 IFS=$as_save_IFS
5354 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5355 if test -n "$ac_ct_BUILD_CC"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5357 $as_echo "$ac_ct_BUILD_CC" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5364 test -n "$ac_ct_BUILD_CC" && break
5365 done
5367 if test "x$ac_ct_BUILD_CC" = x; then
5368 BUILD_CC=""
5369 else
5370 case $cross_compiling:$ac_tool_warned in
5371 yes:)
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5374 ac_tool_warned=yes ;;
5375 esac
5376 BUILD_CC=$ac_ct_BUILD_CC
5383 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5385 as_fn_error "no acceptable C compiler found in \$PATH
5386 See \`config.log' for more details." "$LINENO" 5; }
5388 # Provide some information about the compiler.
5389 echo "$as_me:$LINENO:" \
5390 "checking for C compiler version" >&5
5391 ac_compiler=`set X $ac_compile; echo $2`
5392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5393 (eval $ac_compiler --version </dev/null >&5) 2>&5
5394 ac_status=$?
5395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5396 test $ac_status = 0; }
5397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5398 (eval $ac_compiler -v </dev/null >&5) 2>&5
5399 ac_status=$?
5400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5401 test $ac_status = 0; }
5402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5403 (eval $ac_compiler -V </dev/null >&5) 2>&5
5404 ac_status=$?
5405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5406 test $ac_status = 0; }
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5412 main ()
5416 return 0;
5418 _ACEOF
5419 ac_clean_files_save=$ac_clean_files
5420 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5421 # Try to create an executable without -o first, disregard a.out.
5422 # It will help us diagnose broken compilers, and finding out an intuition
5423 # of exeext.
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5425 $as_echo_n "checking whether the C compiler works... " >&6; }
5426 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5428 # The possible output files:
5429 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5431 ac_rmfiles=
5432 for ac_file in $ac_files
5434 case $ac_file in
5435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5436 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5437 esac
5438 done
5439 rm -f $ac_rmfiles
5441 if { { ac_try="$ac_link_default"
5442 case "(($ac_try" in
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5445 esac
5446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5447 $as_echo "$ac_try_echo"; } >&5
5448 (eval "$ac_link_default") 2>&5
5449 ac_status=$?
5450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5451 test $ac_status = 0; }; then :
5452 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5453 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5454 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5455 # so that the user can short-circuit this test for compilers unknown to
5456 # Autoconf.
5457 for ac_file in $ac_files ''
5459 test -f "$ac_file" || continue
5460 case $ac_file in
5461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5463 [ab].out )
5464 # We found the default executable, but exeext='' is most
5465 # certainly right.
5466 break;;
5467 *.* )
5468 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5469 then :; else
5470 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5472 # We set ac_cv_exeext here because the later test for it is not
5473 # safe: cross compilers may not add the suffix if given an `-o'
5474 # argument, so we may need to know it at that point already.
5475 # Even if this section looks crufty: it has the advantage of
5476 # actually working.
5477 break;;
5479 break;;
5480 esac
5481 done
5482 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5484 else
5485 ac_file=''
5487 if test -z "$ac_file"; then :
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5490 $as_echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5495 { as_fn_set_status 77
5496 as_fn_error "C compiler cannot create executables
5497 See \`config.log' for more details." "$LINENO" 5; }; }
5498 else
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5500 $as_echo "yes" >&6; }
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5503 $as_echo_n "checking for C compiler default output file name... " >&6; }
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5505 $as_echo "$ac_file" >&6; }
5506 ac_build_exeext=$ac_cv_build_exeext
5508 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5509 ac_clean_files=$ac_clean_files_save
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5511 $as_echo_n "checking for suffix of executables... " >&6; }
5512 if { { ac_try="$ac_link"
5513 case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516 esac
5517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5518 $as_echo "$ac_try_echo"; } >&5
5519 (eval "$ac_link") 2>&5
5520 ac_status=$?
5521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5522 test $ac_status = 0; }; then :
5523 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5524 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5525 # work properly (i.e., refer to `conftest.exe'), while it won't with
5526 # `rm'.
5527 for ac_file in conftest.exe conftest conftest.*; do
5528 test -f "$ac_file" || continue
5529 case $ac_file in
5530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5531 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5532 break;;
5533 * ) break;;
5534 esac
5535 done
5536 else
5537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5539 as_fn_error "cannot compute suffix of executables: cannot compile and link
5540 See \`config.log' for more details." "$LINENO" 5; }
5542 rm -f conftest conftest$ac_cv_build_exeext
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
5544 $as_echo "$ac_cv_build_exeext" >&6; }
5546 rm -f conftest.$ac_ext
5547 BUILD_EXEEXT=$ac_cv_build_exeext
5548 ac_build_exeext=$BUILD_EXEEXT
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 #include <stdio.h>
5553 main ()
5555 FILE *f = fopen ("conftest.out", "w");
5556 return ferror (f) || fclose (f) != 0;
5559 return 0;
5561 _ACEOF
5562 ac_clean_files="$ac_clean_files conftest.out"
5563 # Check that the compiler produces executables we can run. If not, either
5564 # the compiler is broken, or we cross compile.
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5566 $as_echo_n "checking whether we are cross compiling... " >&6; }
5567 if test "$cross_compiling" != yes; then
5568 { { ac_try="$ac_link"
5569 case "(($ac_try" in
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5572 esac
5573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5574 $as_echo "$ac_try_echo"; } >&5
5575 (eval "$ac_link") 2>&5
5576 ac_status=$?
5577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5578 test $ac_status = 0; }
5579 if { ac_try='./conftest$ac_cv_build_exeext'
5580 { { case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5583 esac
5584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5585 $as_echo "$ac_try_echo"; } >&5
5586 (eval "$ac_try") 2>&5
5587 ac_status=$?
5588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5589 test $ac_status = 0; }; }; then
5590 cross_compiling=no
5591 else
5592 if test "$cross_compiling" = maybe; then
5593 cross_compiling=yes
5594 else
5595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5597 as_fn_error "cannot run C compiled programs.
5598 If you meant to cross compile, use \`--host'.
5599 See \`config.log' for more details." "$LINENO" 5; }
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5604 $as_echo "$cross_compiling" >&6; }
5606 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
5607 ac_clean_files=$ac_clean_files_save
5610 # Restore configuration environment
5611 cross_compiling=$saved_cross
5613 ac_ext=c
5614 ac_cpp='$CPP $CPPFLAGS'
5615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5619 else
5620 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
5622 CFLAGS="$mule_backup_CFLAGS"
5623 CXXFLAGS="$mule_backup_CXXFLAGS"
5624 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
5625 for ac_prog in gawk mawk nawk awk
5627 # Extract the first word of "$ac_prog", so it can be a program name with args.
5628 set dummy $ac_prog; ac_word=$2
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630 $as_echo_n "checking for $ac_word... " >&6; }
5631 if test "${ac_cv_prog_AWK+set}" = set; then :
5632 $as_echo_n "(cached) " >&6
5633 else
5634 if test -n "$AWK"; then
5635 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5636 else
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5640 IFS=$as_save_IFS
5641 test -z "$as_dir" && as_dir=.
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5644 ac_cv_prog_AWK="$ac_prog"
5645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 break 2
5648 done
5649 done
5650 IFS=$as_save_IFS
5654 AWK=$ac_cv_prog_AWK
5655 if test -n "$AWK"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5657 $as_echo "$AWK" >&6; }
5658 else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }
5664 test -n "$AWK" && break
5665 done
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5668 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5669 if test "${ac_cv_path_GREP+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 if test -z "$GREP"; then
5673 ac_path_GREP_found=false
5674 # Loop through the user's path and test for each of PROGNAME-LIST
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_prog in grep ggrep; do
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5683 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5684 # Check for GNU ac_path_GREP and select it if it is found.
5685 # Check for GNU $ac_path_GREP
5686 case `"$ac_path_GREP" --version 2>&1` in
5687 *GNU*)
5688 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5690 ac_count=0
5691 $as_echo_n 0123456789 >"conftest.in"
5692 while :
5694 cat "conftest.in" "conftest.in" >"conftest.tmp"
5695 mv "conftest.tmp" "conftest.in"
5696 cp "conftest.in" "conftest.nl"
5697 $as_echo 'GREP' >> "conftest.nl"
5698 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5699 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5700 as_fn_arith $ac_count + 1 && ac_count=$as_val
5701 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5702 # Best one so far, save it but keep looking for a better one
5703 ac_cv_path_GREP="$ac_path_GREP"
5704 ac_path_GREP_max=$ac_count
5706 # 10*(2^10) chars as input seems more than enough
5707 test $ac_count -gt 10 && break
5708 done
5709 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5710 esac
5712 $ac_path_GREP_found && break 3
5713 done
5714 done
5715 done
5716 IFS=$as_save_IFS
5717 if test -z "$ac_cv_path_GREP"; then
5718 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5720 else
5721 ac_cv_path_GREP=$GREP
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5726 $as_echo "$ac_cv_path_GREP" >&6; }
5727 GREP="$ac_cv_path_GREP"
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5731 $as_echo_n "checking for egrep... " >&6; }
5732 if test "${ac_cv_path_EGREP+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5736 then ac_cv_path_EGREP="$GREP -E"
5737 else
5738 if test -z "$EGREP"; then
5739 ac_path_EGREP_found=false
5740 # Loop through the user's path and test for each of PROGNAME-LIST
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
5746 for ac_prog in egrep; do
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5749 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5750 # Check for GNU ac_path_EGREP and select it if it is found.
5751 # Check for GNU $ac_path_EGREP
5752 case `"$ac_path_EGREP" --version 2>&1` in
5753 *GNU*)
5754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5756 ac_count=0
5757 $as_echo_n 0123456789 >"conftest.in"
5758 while :
5760 cat "conftest.in" "conftest.in" >"conftest.tmp"
5761 mv "conftest.tmp" "conftest.in"
5762 cp "conftest.in" "conftest.nl"
5763 $as_echo 'EGREP' >> "conftest.nl"
5764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5766 as_fn_arith $ac_count + 1 && ac_count=$as_val
5767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5768 # Best one so far, save it but keep looking for a better one
5769 ac_cv_path_EGREP="$ac_path_EGREP"
5770 ac_path_EGREP_max=$ac_count
5772 # 10*(2^10) chars as input seems more than enough
5773 test $ac_count -gt 10 && break
5774 done
5775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5776 esac
5778 $ac_path_EGREP_found && break 3
5779 done
5780 done
5781 done
5782 IFS=$as_save_IFS
5783 if test -z "$ac_cv_path_EGREP"; then
5784 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5786 else
5787 ac_cv_path_EGREP=$EGREP
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5793 $as_echo "$ac_cv_path_EGREP" >&6; }
5794 EGREP="$ac_cv_path_EGREP"
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5798 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5799 set x ${MAKE-make}
5800 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5801 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 cat >conftest.make <<\_ACEOF
5805 SHELL = /bin/sh
5806 all:
5807 @echo '@@@%%%=$(MAKE)=@@@%%%'
5808 _ACEOF
5809 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5810 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5811 *@@@%%%=?*=@@@%%%*)
5812 eval ac_cv_prog_make_${ac_make}_set=yes;;
5814 eval ac_cv_prog_make_${ac_make}_set=no;;
5815 esac
5816 rm -f conftest.make
5818 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5820 $as_echo "yes" >&6; }
5821 SET_MAKE=
5822 else
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824 $as_echo "no" >&6; }
5825 SET_MAKE="MAKE=${MAKE-make}"
5829 for ac_prog in flex lex
5831 # Extract the first word of "$ac_prog", so it can be a program name with args.
5832 set dummy $ac_prog; ac_word=$2
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834 $as_echo_n "checking for $ac_word... " >&6; }
5835 if test "${ac_cv_prog_LEX+set}" = set; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 if test -n "$LEX"; then
5839 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5840 else
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5848 ac_cv_prog_LEX="$ac_prog"
5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5852 done
5853 done
5854 IFS=$as_save_IFS
5858 LEX=$ac_cv_prog_LEX
5859 if test -n "$LEX"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5861 $as_echo "$LEX" >&6; }
5862 else
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864 $as_echo "no" >&6; }
5868 test -n "$LEX" && break
5869 done
5870 test -n "$LEX" || LEX=":"
5872 if test "x$LEX" != "x:"; then
5873 cat >conftest.l <<_ACEOF
5875 a { ECHO; }
5876 b { REJECT; }
5877 c { yymore (); }
5878 d { yyless (1); }
5879 e { yyless (input () != 0); }
5880 f { unput (yytext[0]); }
5881 . { BEGIN INITIAL; }
5883 #ifdef YYTEXT_POINTER
5884 extern char *yytext;
5885 #endif
5887 main (void)
5889 return ! yylex () + ! yywrap ();
5891 _ACEOF
5892 { { ac_try="$LEX conftest.l"
5893 case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896 esac
5897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5898 $as_echo "$ac_try_echo"; } >&5
5899 (eval "$LEX conftest.l") 2>&5
5900 ac_status=$?
5901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5902 test $ac_status = 0; }
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5904 $as_echo_n "checking lex output file root... " >&6; }
5905 if test "${ac_cv_prog_lex_root+set}" = set; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5909 if test -f lex.yy.c; then
5910 ac_cv_prog_lex_root=lex.yy
5911 elif test -f lexyy.c; then
5912 ac_cv_prog_lex_root=lexyy
5913 else
5914 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5918 $as_echo "$ac_cv_prog_lex_root" >&6; }
5919 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5921 if test -z "${LEXLIB+set}"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5923 $as_echo_n "checking lex library... " >&6; }
5924 if test "${ac_cv_lib_lex+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5928 ac_save_LIBS=$LIBS
5929 ac_cv_lib_lex='none needed'
5930 for ac_lib in '' -lfl -ll; do
5931 LIBS="$ac_lib $ac_save_LIBS"
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5934 `cat $LEX_OUTPUT_ROOT.c`
5935 _ACEOF
5936 if ac_fn_c_try_link "$LINENO"; then :
5937 ac_cv_lib_lex=$ac_lib
5939 rm -f core conftest.err conftest.$ac_objext \
5940 conftest$ac_exeext conftest.$ac_ext
5941 test "$ac_cv_lib_lex" != 'none needed' && break
5942 done
5943 LIBS=$ac_save_LIBS
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5947 $as_echo "$ac_cv_lib_lex" >&6; }
5948 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5953 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5954 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 # POSIX says lex can declare yytext either as a pointer or an array; the
5958 # default is implementation-dependent. Figure out which it is, since
5959 # not all implementations provide the %pointer and %array declarations.
5960 ac_cv_prog_lex_yytext_pointer=no
5961 ac_save_LIBS=$LIBS
5962 LIBS="$LEXLIB $ac_save_LIBS"
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5965 #define YYTEXT_POINTER 1
5966 `cat $LEX_OUTPUT_ROOT.c`
5967 _ACEOF
5968 if ac_fn_c_try_link "$LINENO"; then :
5969 ac_cv_prog_lex_yytext_pointer=yes
5971 rm -f core conftest.err conftest.$ac_objext \
5972 conftest$ac_exeext conftest.$ac_ext
5973 LIBS=$ac_save_LIBS
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5977 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5978 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5980 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5983 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5987 if test -n "$ac_tool_prefix"; then
5988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5989 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5991 $as_echo_n "checking for $ac_word... " >&6; }
5992 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5994 else
5995 if test -n "$RANLIB"; then
5996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5997 else
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH
6001 IFS=$as_save_IFS
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6005 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 break 2
6009 done
6010 done
6011 IFS=$as_save_IFS
6015 RANLIB=$ac_cv_prog_RANLIB
6016 if test -n "$RANLIB"; then
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6018 $as_echo "$RANLIB" >&6; }
6019 else
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021 $as_echo "no" >&6; }
6026 if test -z "$ac_cv_prog_RANLIB"; then
6027 ac_ct_RANLIB=$RANLIB
6028 # Extract the first word of "ranlib", so it can be a program name with args.
6029 set dummy ranlib; ac_word=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 if test -n "$ac_ct_RANLIB"; then
6036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045 ac_cv_prog_ac_ct_RANLIB="ranlib"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6049 done
6050 done
6051 IFS=$as_save_IFS
6055 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6056 if test -n "$ac_ct_RANLIB"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6058 $as_echo "$ac_ct_RANLIB" >&6; }
6059 else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6064 if test "x$ac_ct_RANLIB" = x; then
6065 RANLIB=":"
6066 else
6067 case $cross_compiling:$ac_tool_warned in
6068 yes:)
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6071 ac_tool_warned=yes ;;
6072 esac
6073 RANLIB=$ac_ct_RANLIB
6075 else
6076 RANLIB="$ac_cv_prog_RANLIB"
6079 for ac_prog in 'bison -y' byacc
6081 # Extract the first word of "$ac_prog", so it can be a program name with args.
6082 set dummy $ac_prog; ac_word=$2
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084 $as_echo_n "checking for $ac_word... " >&6; }
6085 if test "${ac_cv_prog_YACC+set}" = set; then :
6086 $as_echo_n "(cached) " >&6
6087 else
6088 if test -n "$YACC"; then
6089 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6094 IFS=$as_save_IFS
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6098 ac_cv_prog_YACC="$ac_prog"
6099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 break 2
6102 done
6103 done
6104 IFS=$as_save_IFS
6108 YACC=$ac_cv_prog_YACC
6109 if test -n "$YACC"; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6111 $as_echo "$YACC" >&6; }
6112 else
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114 $as_echo "no" >&6; }
6118 test -n "$YACC" && break
6119 done
6120 test -n "$YACC" || YACC="yacc"
6123 if test -n "$ac_tool_prefix"; then
6124 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6125 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 if test -n "$RANLIB"; then
6132 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6141 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 break 2
6145 done
6146 done
6147 IFS=$as_save_IFS
6151 RANLIB=$ac_cv_prog_RANLIB
6152 if test -n "$RANLIB"; then
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6154 $as_echo "$RANLIB" >&6; }
6155 else
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157 $as_echo "no" >&6; }
6162 if test -z "$ac_cv_prog_RANLIB"; then
6163 ac_ct_RANLIB=$RANLIB
6164 # Extract the first word of "ranlib", so it can be a program name with args.
6165 set dummy ranlib; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 if test -n "$ac_ct_RANLIB"; then
6172 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181 ac_cv_prog_ac_ct_RANLIB="ranlib"
6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 break 2
6185 done
6186 done
6187 IFS=$as_save_IFS
6191 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6192 if test -n "$ac_ct_RANLIB"; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6194 $as_echo "$ac_ct_RANLIB" >&6; }
6195 else
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6200 if test "x$ac_ct_RANLIB" = x; then
6201 RANLIB=""
6202 else
6203 case $cross_compiling:$ac_tool_warned in
6204 yes:)
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207 ac_tool_warned=yes ;;
6208 esac
6209 RANLIB=$ac_ct_RANLIB
6211 else
6212 RANLIB="$ac_cv_prog_RANLIB"
6215 if test -n "$ac_tool_prefix"; then
6216 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6217 set dummy ${ac_tool_prefix}strip; ac_word=$2
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if test "${ac_cv_prog_STRIP+set}" = set; then :
6221 $as_echo_n "(cached) " >&6
6222 else
6223 if test -n "$STRIP"; then
6224 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6225 else
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH
6229 IFS=$as_save_IFS
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6233 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 break 2
6237 done
6238 done
6239 IFS=$as_save_IFS
6243 STRIP=$ac_cv_prog_STRIP
6244 if test -n "$STRIP"; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6246 $as_echo "$STRIP" >&6; }
6247 else
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249 $as_echo "no" >&6; }
6254 if test -z "$ac_cv_prog_STRIP"; then
6255 ac_ct_STRIP=$STRIP
6256 # Extract the first word of "strip", so it can be a program name with args.
6257 set dummy strip; ac_word=$2
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 if test -n "$ac_ct_STRIP"; then
6264 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6269 IFS=$as_save_IFS
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273 ac_cv_prog_ac_ct_STRIP="strip"
6274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 break 2
6277 done
6278 done
6279 IFS=$as_save_IFS
6283 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6284 if test -n "$ac_ct_STRIP"; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6286 $as_echo "$ac_ct_STRIP" >&6; }
6287 else
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6292 if test "x$ac_ct_STRIP" = x; then
6293 STRIP=""
6294 else
6295 case $cross_compiling:$ac_tool_warned in
6296 yes:)
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299 ac_tool_warned=yes ;;
6300 esac
6301 STRIP=$ac_ct_STRIP
6303 else
6304 STRIP="$ac_cv_prog_STRIP"
6307 if test -n "$ac_tool_prefix"; then
6308 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6309 set dummy ${ac_tool_prefix}ar; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if test "${ac_cv_prog_AR+set}" = set; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 if test -n "$AR"; then
6316 ac_cv_prog_AR="$AR" # Let the user override the test.
6317 else
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6321 IFS=$as_save_IFS
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6325 ac_cv_prog_AR="${ac_tool_prefix}ar"
6326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 break 2
6329 done
6330 done
6331 IFS=$as_save_IFS
6335 AR=$ac_cv_prog_AR
6336 if test -n "$AR"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6338 $as_echo "$AR" >&6; }
6339 else
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6346 if test -z "$ac_cv_prog_AR"; then
6347 ac_ct_AR=$AR
6348 # Extract the first word of "ar", so it can be a program name with args.
6349 set dummy ar; ac_word=$2
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 if test -n "$ac_ct_AR"; then
6356 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6357 else
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH
6361 IFS=$as_save_IFS
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6365 ac_cv_prog_ac_ct_AR="ar"
6366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 break 2
6369 done
6370 done
6371 IFS=$as_save_IFS
6375 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6376 if test -n "$ac_ct_AR"; then
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6378 $as_echo "$ac_ct_AR" >&6; }
6379 else
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6384 if test "x$ac_ct_AR" = x; then
6385 AR=""
6386 else
6387 case $cross_compiling:$ac_tool_warned in
6388 yes:)
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6391 ac_tool_warned=yes ;;
6392 esac
6393 AR=$ac_ct_AR
6395 else
6396 AR="$ac_cv_prog_AR"
6399 if test -n "$ac_tool_prefix"; then
6400 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6401 set dummy ${ac_tool_prefix}ld; ac_word=$2
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403 $as_echo_n "checking for $ac_word... " >&6; }
6404 if test "${ac_cv_prog_LD+set}" = set; then :
6405 $as_echo_n "(cached) " >&6
6406 else
6407 if test -n "$LD"; then
6408 ac_cv_prog_LD="$LD" # Let the user override the test.
6409 else
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 for as_dir in $PATH
6413 IFS=$as_save_IFS
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6417 ac_cv_prog_LD="${ac_tool_prefix}ld"
6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 break 2
6421 done
6422 done
6423 IFS=$as_save_IFS
6427 LD=$ac_cv_prog_LD
6428 if test -n "$LD"; then
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6430 $as_echo "$LD" >&6; }
6431 else
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433 $as_echo "no" >&6; }
6438 if test -z "$ac_cv_prog_LD"; then
6439 ac_ct_LD=$LD
6440 # Extract the first word of "ld", so it can be a program name with args.
6441 set dummy ld; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 if test -n "$ac_ct_LD"; then
6448 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6453 IFS=$as_save_IFS
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457 ac_cv_prog_ac_ct_LD="ld"
6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 break 2
6461 done
6462 done
6463 IFS=$as_save_IFS
6467 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6468 if test -n "$ac_ct_LD"; then
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6470 $as_echo "$ac_ct_LD" >&6; }
6471 else
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6476 if test "x$ac_ct_LD" = x; then
6477 LD=""
6478 else
6479 case $cross_compiling:$ac_tool_warned in
6480 yes:)
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483 ac_tool_warned=yes ;;
6484 esac
6485 LD=$ac_ct_LD
6487 else
6488 LD="$ac_cv_prog_LD"
6492 # Check whether --enable-monolithic was given.
6493 if test "${enable_monolithic+set}" = set; then :
6494 enableval=$enable_monolithic;
6497 if test ${enable_monolithic:-yes} = yes; then
6498 MONOLITHIC_TRUE=
6499 MONOLITHIC_FALSE='#'
6500 else
6501 MONOLITHIC_TRUE='#'
6502 MONOLITHIC_FALSE=
6506 # Check whether --enable-amule-daemon was given.
6507 if test "${enable_amule_daemon+set}" = set; then :
6508 enableval=$enable_amule_daemon;
6511 if test ${enable_amule_daemon:-no} = yes; then
6512 AMULE_DAEMON_TRUE=
6513 AMULE_DAEMON_FALSE='#'
6514 else
6515 AMULE_DAEMON_TRUE='#'
6516 AMULE_DAEMON_FALSE=
6520 # Check whether --enable-amulecmd was given.
6521 if test "${enable_amulecmd+set}" = set; then :
6522 enableval=$enable_amulecmd;
6525 if test ${enable_amulecmd:-no} = yes; then
6526 COMPILE_CMD_TRUE=
6527 COMPILE_CMD_FALSE='#'
6528 else
6529 COMPILE_CMD_TRUE='#'
6530 COMPILE_CMD_FALSE=
6534 # Check whether --enable-webserver was given.
6535 if test "${enable_webserver+set}" = set; then :
6536 enableval=$enable_webserver;
6539 if test ${enable_webserver:-no} = yes; then
6540 WEB_TRUE=
6541 WEB_FALSE='#'
6542 else
6543 WEB_TRUE='#'
6544 WEB_FALSE=
6548 # Check whether --enable-amule-gui was given.
6549 if test "${enable_amule_gui+set}" = set; then :
6550 enableval=$enable_amule_gui;
6553 if test ${enable_amule_gui:-no} = yes; then
6554 AMULE_GUI_TRUE=
6555 AMULE_GUI_FALSE='#'
6556 else
6557 AMULE_GUI_TRUE='#'
6558 AMULE_GUI_FALSE=
6562 # Check whether --enable-cas was given.
6563 if test "${enable_cas+set}" = set; then :
6564 enableval=$enable_cas;
6567 if test ${enable_cas:-no} = yes; then
6568 CAS_TRUE=
6569 CAS_FALSE='#'
6570 else
6571 CAS_TRUE='#'
6572 CAS_FALSE=
6576 # Check whether --enable-wxcas was given.
6577 if test "${enable_wxcas+set}" = set; then :
6578 enableval=$enable_wxcas;
6581 if test ${enable_wxcas:-no} = yes; then
6582 WXCAS_TRUE=
6583 WXCAS_FALSE='#'
6584 else
6585 WXCAS_TRUE='#'
6586 WXCAS_FALSE=
6590 # Check whether --enable-ed2k was given.
6591 if test "${enable_ed2k+set}" = set; then :
6592 enableval=$enable_ed2k;
6595 if test ${enable_ed2k:-yes} = yes; then
6596 ED2K_TRUE=
6597 ED2K_FALSE='#'
6598 else
6599 ED2K_TRUE='#'
6600 ED2K_FALSE=
6604 # Check whether --enable-alc was given.
6605 if test "${enable_alc+set}" = set; then :
6606 enableval=$enable_alc;
6609 if test ${enable_alc:-no} = yes; then
6610 ALC_TRUE=
6611 ALC_FALSE='#'
6612 else
6613 ALC_TRUE='#'
6614 ALC_FALSE=
6618 # Check whether --enable-alcc was given.
6619 if test "${enable_alcc+set}" = set; then :
6620 enableval=$enable_alcc;
6623 if test ${enable_alcc:-no} = yes; then
6624 ALCC_TRUE=
6625 ALCC_FALSE='#'
6626 else
6627 ALCC_TRUE='#'
6628 ALCC_FALSE=
6632 # Check whether --enable-xas was given.
6633 if test "${enable_xas+set}" = set; then :
6634 enableval=$enable_xas;
6637 if test ${enable_xas:-no} = yes; then
6638 XAS_TRUE=
6639 XAS_FALSE='#'
6640 else
6641 XAS_TRUE='#'
6642 XAS_FALSE=
6646 # Check whether --enable-fileview was given.
6647 if test "${enable_fileview+set}" = set; then :
6648 enableval=$enable_fileview;
6651 if test ${enable_fileview:-no} = yes; then
6652 FILEVIEW_TRUE=
6653 FILEVIEW_FALSE='#'
6654 else
6655 FILEVIEW_TRUE='#'
6656 FILEVIEW_FALSE=
6660 # Check whether --enable-plasmamule was given.
6661 if test "${enable_plasmamule+set}" = set; then :
6662 enableval=$enable_plasmamule;
6667 # Run all the tests with static linkage if we want a statically linked binary
6668 # Check whether --enable-static was given.
6669 if test "${enable_static+set}" = set; then :
6670 enableval=$enable_static;
6674 if test ${enable_static:-no} = yes; then :
6675 LDFLAGS="$LDFLAGS -static"
6680 # Check whether --with-kde4-config was given.
6681 if test "${with_kde4_config+set}" = set; then :
6682 withval=$with_kde4_config; KDE4_CONFIG=$withval
6683 else
6684 KDE4_CONFIG=""
6687 # Check whether --enable-kde-in-home was given.
6688 if test "${enable_kde_in_home+set}" = set; then :
6689 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
6690 else
6691 KDE_IN_HOME=no
6697 # Check whether --with-moc was given.
6698 if test "${with_moc+set}" = set; then :
6699 withval=$with_moc; QT_MOC=$withval
6700 else
6701 QT_MOC=""
6706 # Default is yes, because they're most likely compatible.
6707 # However, this is only used when cross-compiling.
6709 # Check whether --with-gnu-malloc was given.
6710 if test "${with_gnu_malloc+set}" = set; then :
6711 withval=$with_gnu_malloc; gnumalloc=$withval
6712 else
6713 gnumalloc=yes
6718 # Checking for libs before all other stuff to break
6719 # configure as soon as possible in case of a missing one
6720 # to avoid losing too much time
6722 # Check for zlib
6723 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 :
6726 # Check whether --with-zlib was given.
6727 if test "${with_zlib+set}" = set; then :
6728 withval=$with_zlib;
6732 case "${with_zlib:-yes}" in
6734 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
6736 yes | sys)
6739 zlib_prefix="$with_zlib"
6740 esac
6742 mule_backup_CPPFLAGS="$CPPFLAGS"
6743 mule_backup_LDFLAGS="$LDFLAGS"
6744 mule_backup_LIBS="$LIBS"
6745 if test -n "$zlib_prefix"; then :
6747 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
6748 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
6749 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
6750 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
6752 else
6754 ZLIB_CPPFLAGS=
6755 ZLIB_LDFLAGS=
6758 ZLIB_LIBS="-lz"
6759 LIBS="$ZLIB_LIBS $LIBS"
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
6762 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
6763 if test "$cross_compiling" = yes; then :
6765 result=no
6766 z_version=
6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h. */
6771 #include <zlib.h>
6772 #include <stdio.h>
6775 main ()
6778 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
6779 zlibVersion();
6782 return 0;
6785 _ACEOF
6786 if ac_fn_c_try_link "$LINENO"; then :
6788 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
6789 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
6790 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
6791 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
6792 if test "$cross_zver_max" -gt "1"; then
6793 result=yes
6794 elif test "$cross_zver_max" -eq "1"; then
6796 if test "$cross_zver_mid" -gt "1"; then
6797 result=yes
6798 elif test "$cross_zver_mid" -eq "1"; then
6799 if test "$cross_zver_min" -ge "4"; then
6800 result=yes
6808 if test ${result:-no} = yes; then :
6809 z_version=" (version $ZLIB_VERSION)"
6813 rm -f core conftest.err conftest.$ac_objext \
6814 conftest$ac_exeext conftest.$ac_ext
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
6816 $as_echo "$result$z_version" >&6; }
6818 else
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h. */
6823 #include <zlib.h>
6824 #include <stdio.h>
6827 main ()
6829 char *zver = zlibVersion();
6830 FILE *f=fopen("conftestval", "w");
6831 if (!f) return 1;
6832 fprintf(f, "%s",
6833 zver[0] > '1' ||
6834 (zver[0] == '1' &&
6835 (zver[2] > '1' ||
6836 (zver[2] == '1' &&
6837 zver[4] >= '4'))) ? "yes" : "no");
6838 fclose(f);
6839 f=fopen("conftestver", "w");
6840 if (f) {
6841 fprintf(f, "%s", ZLIB_VERSION);
6842 fclose(f);
6846 return 0;
6849 _ACEOF
6850 if ac_fn_c_try_run "$LINENO"; then :
6852 if test -f conftestval; then :
6853 result=`cat conftestval`
6854 else
6855 result=no
6857 if test ${result:-no} = yes; then :
6859 if test -f conftestver; then :
6861 ZLIB_VERSION=`cat conftestver`
6862 z_version=" (version $ZLIB_VERSION)"
6864 else
6865 z_version=
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
6870 $as_echo "$result$z_version" >&6; }
6872 else
6874 result=no
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6876 $as_echo "$result" >&6; }
6879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6880 conftest.$ac_objext conftest.beam conftest.$ac_ext
6884 CPPFLAGS="$mule_backup_CPPFLAGS"
6885 LDFLAGS="$mule_backup_LDFLAGS"
6886 LIBS="$mule_backup_LIBS"
6888 if test ${result:-no} = no; then :
6890 ZLIB_CPPFLAGS=
6891 ZLIB_LDFLAGS=
6892 ZLIB_LIBS=
6893 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6902 $as_echo_n "checking for ANSI C header files... " >&6; }
6903 if test "${ac_cv_header_stdc+set}" = set; then :
6904 $as_echo_n "(cached) " >&6
6905 else
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6908 #include <stdlib.h>
6909 #include <stdarg.h>
6910 #include <string.h>
6911 #include <float.h>
6914 main ()
6918 return 0;
6920 _ACEOF
6921 if ac_fn_c_try_compile "$LINENO"; then :
6922 ac_cv_header_stdc=yes
6923 else
6924 ac_cv_header_stdc=no
6926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928 if test $ac_cv_header_stdc = yes; then
6929 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6932 #include <string.h>
6934 _ACEOF
6935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6936 $EGREP "memchr" >/dev/null 2>&1; then :
6938 else
6939 ac_cv_header_stdc=no
6941 rm -f conftest*
6945 if test $ac_cv_header_stdc = yes; then
6946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6949 #include <stdlib.h>
6951 _ACEOF
6952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6953 $EGREP "free" >/dev/null 2>&1; then :
6955 else
6956 ac_cv_header_stdc=no
6958 rm -f conftest*
6962 if test $ac_cv_header_stdc = yes; then
6963 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6964 if test "$cross_compiling" = yes; then :
6966 else
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6969 #include <ctype.h>
6970 #include <stdlib.h>
6971 #if ((' ' & 0x0FF) == 0x020)
6972 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6973 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6974 #else
6975 # define ISLOWER(c) \
6976 (('a' <= (c) && (c) <= 'i') \
6977 || ('j' <= (c) && (c) <= 'r') \
6978 || ('s' <= (c) && (c) <= 'z'))
6979 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6980 #endif
6982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6984 main ()
6986 int i;
6987 for (i = 0; i < 256; i++)
6988 if (XOR (islower (i), ISLOWER (i))
6989 || toupper (i) != TOUPPER (i))
6990 return 2;
6991 return 0;
6993 _ACEOF
6994 if ac_fn_c_try_run "$LINENO"; then :
6996 else
6997 ac_cv_header_stdc=no
6999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7000 conftest.$ac_objext conftest.beam conftest.$ac_ext
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7006 $as_echo "$ac_cv_header_stdc" >&6; }
7007 if test $ac_cv_header_stdc = yes; then
7009 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7013 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7014 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7015 inttypes.h stdint.h unistd.h
7016 do :
7017 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7018 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7020 eval as_val=\$$as_ac_Header
7021 if test "x$as_val" = x""yes; then :
7022 cat >>confdefs.h <<_ACEOF
7023 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7024 _ACEOF
7028 done
7031 if test ${enable_cas:-no} = yes; then :
7033 # Check for gd
7036 # Check whether --with-gdlib-prefix was given.
7037 if test "${with_gdlib_prefix+set}" = set; then :
7038 withval=$with_gdlib_prefix;
7042 # Check whether --with-gdlib-config was given.
7043 if test "${with_gdlib_config+set}" = set; then :
7044 withval=$with_gdlib_config;
7048 GDLIB_VERSION=
7050 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7051 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7052 GDLIB_CONFIG_NAME=gdlib-config
7054 if test -n "$with_gdlib_config"; then :
7055 GDLIB_CONFIG_NAME="$with_gdlib_config"
7058 # deal with optional prefix
7059 if test -n "$with_gdlib_prefix"; then :
7060 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7063 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7064 if test -x "$GDLIB_CONFIG_NAME"; then :
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7067 $as_echo_n "checking for gdlib-config... " >&6; }
7068 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7070 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7072 else
7073 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7074 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 case $GDLIB_CONFIG_PATH in
7081 [\\/]* | ?:[\\/]*)
7082 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7087 for as_dir in $as_dummy
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7093 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7097 done
7098 done
7099 IFS=$as_save_IFS
7101 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7103 esac
7105 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7106 if test -n "$GDLIB_CONFIG_PATH"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7108 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7109 else
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7117 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7120 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7121 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7123 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7124 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7125 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7126 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7128 gdlib_ver_ok=
7129 if test $gdlib_config_major_version -gt 2; then
7130 gdlib_ver_ok=yes
7131 elif test $gdlib_config_major_version -eq 2; then
7133 if test $gdlib_config_minor_version -gt 0; then
7134 gdlib_ver_ok=yes
7135 elif test $gdlib_config_minor_version -eq 0; then
7136 if test $gdlib_config_micro_version -ge 0; then
7137 gdlib_ver_ok=yes
7146 if test -z "$gdlib_ver_ok"; then :
7148 if test -z "$GDLIB_VERSION"; then :
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7151 else
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7154 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7155 GDLIB_VERSION=
7159 else
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7162 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7163 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7164 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7165 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7166 mule_backup_CFLAGS="$CFLAGS"
7167 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7168 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7169 if test "x$ac_cv_header_gd_h" = x""yes; then :
7171 else
7172 GDLIB_VERSION=
7176 CFLAGS="$mule_backup_CFLAGS"
7182 if test -n "$GDLIB_VERSION"; then :
7184 CAS_DEFS="-D__GD__"
7185 GDLIB_LIBS="-lgd $GDLIB_LIBS"
7187 else
7188 CAS_DEFS=
7193 if test -z "$CAS_DEFS"; then :
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7195 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7196 Please check that gdlib-config is in your default path, check out
7197 LD_LIBRARY_PATH or equivalent variable.
7198 Or this might also be that your gdlib-config has other name.
7199 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7200 (replace /usr/bin/gdlib-config with a valid path to your
7201 gdlib-config).
7202 If you use compiled packages check if you have devel pack installed.
7203 To download the latest version check http://www.boutell.com/gd for
7204 sources." >&5
7205 $as_echo "$as_me: WARNING:
7206 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7207 Please check that gdlib-config is in your default path, check out
7208 LD_LIBRARY_PATH or equivalent variable.
7209 Or this might also be that your gdlib-config has other name.
7210 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7211 (replace /usr/bin/gdlib-config with a valid path to your
7212 gdlib-config).
7213 If you use compiled packages check if you have devel pack installed.
7214 To download the latest version check http://www.boutell.com/gd for
7215 sources." >&2;}
7216 _mule_warning_0=yes
7217 _mule_has_warnings=yes
7223 if test ${enable_webserver:-no} = yes; then :
7226 # Check whether --with-libpng-prefix was given.
7227 if test "${with_libpng_prefix+set}" = set; then :
7228 withval=$with_libpng_prefix;
7232 # Check whether --with-libpng-config was given.
7233 if test "${with_libpng_config+set}" = set; then :
7234 withval=$with_libpng_config;
7238 LIBPNG_VERSION=
7240 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
7241 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
7242 LIBPNG_CONFIG_NAME=libpng-config
7244 if test -n "$with_libpng_config"; then :
7245 LIBPNG_CONFIG_NAME="$with_libpng_config"
7248 # deal with optional prefix
7249 if test -n "$with_libpng_prefix"; then :
7250 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
7253 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
7254 if test -x "$LIBPNG_CONFIG_NAME"; then :
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
7257 $as_echo_n "checking for libpng-config... " >&6; }
7258 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7260 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7262 else
7263 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
7264 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 case $LIBPNG_CONFIG_PATH in
7271 [\\/]* | ?:[\\/]*)
7272 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
7277 for as_dir in $as_dummy
7279 IFS=$as_save_IFS
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7283 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 break 2
7287 done
7288 done
7289 IFS=$as_save_IFS
7291 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
7293 esac
7295 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
7296 if test -n "$LIBPNG_CONFIG_PATH"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7298 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7299 else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7307 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
7310 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
7312 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
7314 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
7315 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7316 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7317 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7319 libpng_ver_ok=
7320 if test $libpng_config_major_version -gt 1; then
7321 libpng_ver_ok=yes
7322 elif test $libpng_config_major_version -eq 1; then
7324 if test $libpng_config_minor_version -gt 2; then
7325 libpng_ver_ok=yes
7326 elif test $libpng_config_minor_version -eq 2; then
7327 if test $libpng_config_micro_version -ge 0; then
7328 libpng_ver_ok=yes
7337 if test -z "$libpng_ver_ok"; then :
7339 if test -z "$LIBPNG_VERSION"; then :
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7342 else
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
7345 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
7346 LIBPNG_VERSION=
7350 else
7352 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
7353 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
7354 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
7356 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
7362 if test -n "$LIBPNG_VERSION"; then :
7363 AMULEWEB_DEFS="-DWITH_LIBPNG"
7364 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7367 libpng >= 1.2.0 not found.
7368 amuleweb will be compiled but file download progress bar images will
7369 NOT be generated." >&5
7370 $as_echo "$as_me: WARNING:
7371 libpng >= 1.2.0 not found.
7372 amuleweb will be compiled but file download progress bar images will
7373 NOT be generated." >&2;}
7374 _mule_warning_1=yes
7375 _mule_has_warnings=yes
7385 # Check for perl File::Copy
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
7387 $as_echo_n "checking for File::Copy... " >&6; }
7388 if perl -e "require File::Copy" 2>/dev/null; then :
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7390 $as_echo "ok" >&6; }
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7393 File::Copy perl module is required by the mldonkey_importer script.
7394 If you want to use this script please install File::Copy from CPAN." >&5
7395 $as_echo "$as_me: WARNING:
7396 File::Copy perl module is required by the mldonkey_importer script.
7397 If you want to use this script please install File::Copy from CPAN." >&2;}
7398 _mule_warning_2=yes
7399 _mule_has_warnings=yes
7403 # Check if we need to install skins
7404 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
7405 INSTALL_SKINS=yes
7406 else
7407 INSTALL_SKINS=no
7410 # Check for GeoIP (required for IP2Country capability)
7411 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
7413 # Check whether --enable-geoip was given.
7414 if test "${enable_geoip+set}" = set; then :
7415 enableval=$enable_geoip;
7420 if test ${enable_geoip:-no} = yes; then :
7423 # Check whether --with-geoip-headers was given.
7424 if test "${with_geoip_headers+set}" = set; then :
7425 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
7429 # Check whether --with-geoip-lib was given.
7430 if test "${with_geoip_lib+set}" = set; then :
7431 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
7435 mule_backup_CPPFLAGS="$CPPFLAGS"
7436 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
7437 mule_backup_LDFLAGS="$LDFLAGS"
7438 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
7440 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
7441 if test "x$ac_cv_header_GeoIP_h" = x""yes; then :
7443 if test x$SYS = xwin32; then :
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
7446 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
7447 # Actually, we might not need any if GeoIP is linked as a .dll
7448 # - but that's even harder to check for
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7453 #include <GeoIP.h>
7454 #ifdef _WINSOCK2_H
7455 I do know it's not the best approach, but at least works with MinGW stock headers.
7456 (tested with w32api-3.12)
7457 #endif
7460 main ()
7464 return 0;
7467 _ACEOF
7468 if ac_fn_c_try_compile "$LINENO"; then :
7470 GEOIP_WINSOCK_LIB="-lwsock32"
7472 else
7474 GEOIP_WINSOCK_LIB="-lws2_32"
7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
7479 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
7483 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
7484 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then :
7485 $as_echo_n "(cached) " >&6
7486 else
7487 ac_check_lib_save_LIBS=$LIBS
7488 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h. */
7492 /* Override any GCC internal prototype to avoid an error.
7493 Use char because int might match the return type of a GCC
7494 builtin and then its argument prototype would still apply. */
7495 #ifdef __cplusplus
7496 extern "C"
7497 #endif
7498 char GeoIP_open ();
7500 main ()
7502 return GeoIP_open ();
7504 return 0;
7506 _ACEOF
7507 if ac_fn_c_try_link "$LINENO"; then :
7508 ac_cv_lib_GeoIP_GeoIP_open=yes
7509 else
7510 ac_cv_lib_GeoIP_GeoIP_open=no
7512 rm -f core conftest.err conftest.$ac_objext \
7513 conftest$ac_exeext conftest.$ac_ext
7514 LIBS=$ac_check_lib_save_LIBS
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7517 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
7518 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = x""yes; then :
7521 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
7523 GEOIP_LIBS="-lGeoIP"
7524 if test x$SYS = xwin32; then :
7525 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
7527 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7529 # Check whether --with-geoip-static was given.
7530 if test "${with_geoip_static+set}" = set; then :
7531 withval=$with_geoip_static;
7532 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
7534 mule_backup_LIBS="$LIBS"
7535 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h. */
7540 #include <GeoIP.h>
7543 main ()
7546 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7549 return 0;
7552 _ACEOF
7553 if ac_fn_c_try_link "$LINENO"; then :
7555 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7557 else
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7560 Cannot link GeoIP statically, because your linker ($LD) does not
7561 support it." >&5
7562 $as_echo "$as_me: WARNING:
7563 Cannot link GeoIP statically, because your linker ($LD) does not
7564 support it." >&2;}
7565 _mule_warning_3=yes
7566 _mule_has_warnings=yes
7570 rm -f core conftest.err conftest.$ac_objext \
7571 conftest$ac_exeext conftest.$ac_ext
7572 LIBS="$mule_backup_LIBS"
7579 else
7581 enable_geoip=disabled
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7583 GeoIP support has been disabled because the GeoIP libraries were not
7584 found" >&5
7585 $as_echo "$as_me: WARNING:
7586 GeoIP support has been disabled because the GeoIP libraries were not
7587 found" >&2;}
7588 _mule_warning_4=yes
7589 _mule_has_warnings=yes
7595 else
7597 enable_geoip=disabled
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7599 GeoIP support has been disabled because the GeoIP header files were
7600 not found" >&5
7601 $as_echo "$as_me: WARNING:
7602 GeoIP support has been disabled because the GeoIP header files were
7603 not found" >&2;}
7604 _mule_warning_5=yes
7605 _mule_has_warnings=yes
7612 CPPFLAGS="$mule_backup_CPPFLAGS"
7613 LDFLAGS="$mule_backup_LDFLAGS"
7619 # Check for wx
7620 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 :
7623 # Check whether --with-wxdir was given.
7624 if test "${with_wxdir+set}" = set; then :
7625 withval=$with_wxdir; wx_config_name="$withval/wx-config"
7626 wx_config_args="--inplace"
7630 # Check whether --with-wx-config was given.
7631 if test "${with_wx_config+set}" = set; then :
7632 withval=$with_wx_config; wx_config_name="$withval"
7636 # Check whether --with-wx-prefix was given.
7637 if test "${with_wx_prefix+set}" = set; then :
7638 withval=$with_wx_prefix; wx_config_prefix="$withval"
7639 else
7640 wx_config_prefix=""
7644 # Check whether --with-wx-exec-prefix was given.
7645 if test "${with_wx_exec_prefix+set}" = set; then :
7646 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
7647 else
7648 wx_config_exec_prefix=""
7663 # Check whether --with-toolkit was given.
7664 if test "${with_toolkit+set}" = set; then :
7665 withval=$with_toolkit;
7666 else
7667 withval="auto"
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
7672 $as_echo_n "checking for the --with-toolkit option... " >&6; }
7673 if test "$withval" = "auto" ; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7675 $as_echo "will be automatically detected" >&6; }
7676 TOOLKIT="auto"
7677 else
7678 TOOLKIT="$withval"
7680 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7681 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7682 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7683 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7684 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
7685 "$TOOLKIT" != "osx_cocoa"; then
7686 as_fn_error "
7687 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7688 " "$LINENO" 5
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
7692 $as_echo "$TOOLKIT" >&6; }
7699 # Check whether --with-wxshared was given.
7700 if test "${with_wxshared+set}" = set; then :
7701 withval=$with_wxshared;
7702 else
7703 withval="auto"
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
7708 $as_echo_n "checking for the --with-wxshared option... " >&6; }
7709 if test "$withval" = "yes" ; then
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7711 $as_echo "yes" >&6; }
7712 WX_SHARED=1
7714 elif test "1" = "1" -a "$withval" = "no" ; then
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7717 WX_SHARED=0
7718 elif test "$withval" = "auto" ; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7720 $as_echo "will be automatically detected" >&6; }
7721 WX_SHARED="auto"
7722 else
7723 as_fn_error "
7724 Unrecognized option value (allowed values: yes, auto)
7725 " "$LINENO" 5
7732 # Check whether --with-wxdebug was given.
7733 if test "${with_wxdebug+set}" = set; then :
7734 withval=$with_wxdebug;
7735 else
7736 withval="auto"
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
7741 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
7742 if test "$withval" = "yes" ; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7744 $as_echo "yes" >&6; }
7745 WX_DEBUG=1
7747 elif test "1" = "1" -a "$withval" = "no" ; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7750 WX_DEBUG=0
7751 elif test "$withval" = "auto" ; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7753 $as_echo "will be automatically detected" >&6; }
7754 WX_DEBUG="auto"
7755 else
7756 as_fn_error "
7757 Unrecognized option value (allowed values: yes, auto)
7758 " "$LINENO" 5
7765 # Check whether --with-wxversion was given.
7766 if test "${with_wxversion+set}" = set; then :
7767 withval=$with_wxversion;
7768 else
7769 withval="auto"
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
7774 $as_echo_n "checking for the --with-wxversion option... " >&6; }
7775 if test "$withval" = "auto" ; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7777 $as_echo "will be automatically detected" >&6; }
7778 WX_VERSION="auto"
7779 else
7781 wx_requested_major_version=`echo $withval | \
7782 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7783 wx_requested_minor_version=`echo $withval | \
7784 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7786 if test "${#wx_requested_major_version}" != "1" -o \
7787 "${#wx_requested_minor_version}" != "1" ; then
7788 as_fn_error "
7789 Unrecognized option value (allowed values: auto, 2.8, 2.9)
7790 " "$LINENO" 5
7793 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_VERSION" >&5
7795 $as_echo "$WX_VERSION" >&6; }
7799 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7800 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7801 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7802 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7803 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7804 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7807 # Force using a static wxWidgets library if the executable is to be linked statically.
7808 if test ${enable_static:-no} = yes; then :
7809 WX_SHARED=0
7811 # Force using a unicode build of the library
7812 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 :
7813 WX_UNICODE=1
7815 DEBUG=$WX_DEBUG
7817 if test "$WX_SHARED" = "1" ; then
7818 WXCONFIG_FLAGS="--static=no "
7819 elif test "$WX_SHARED" = "0" ; then
7820 WXCONFIG_FLAGS="--static=yes "
7823 if test "$WX_DEBUG" = "1" ; then
7824 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7825 elif test "$WX_DEBUG" = "0" ; then
7826 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7829 if test "$WX_UNICODE" = "1" ; then
7830 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7831 elif test "$WX_UNICODE" = "0" ; then
7832 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7835 if test "$TOOLKIT" != "auto" ; then
7836 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7839 if test "$WX_VERSION" != "auto" ; then
7840 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7843 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7845 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7846 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7850 if test x${WX_CONFIG_NAME+set} != xset ; then
7851 WX_CONFIG_NAME=wx-config
7854 if test "x$wx_config_name" != x ; then
7855 WX_CONFIG_NAME="$wx_config_name"
7858 if test x$wx_config_exec_prefix != x ; then
7859 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7860 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7862 if test x$wx_config_prefix != x ; then
7863 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7864 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7866 if test "$cross_compiling" = "yes"; then
7867 wx_config_args="$wx_config_args --host=$host_alias"
7870 if test -x "$WX_CONFIG_NAME" ; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
7872 $as_echo_n "checking for wx-config... " >&6; }
7873 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
7875 $as_echo "$WX_CONFIG_PATH" >&6; }
7876 else
7877 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7878 set dummy $WX_CONFIG_NAME; ac_word=$2
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7880 $as_echo_n "checking for $ac_word... " >&6; }
7881 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 case $WX_CONFIG_PATH in
7885 [\\/]* | ?:[\\/]*)
7886 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7891 for as_dir in $as_dummy
7893 IFS=$as_save_IFS
7894 test -z "$as_dir" && as_dir=.
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7897 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899 break 2
7901 done
7902 done
7903 IFS=$as_save_IFS
7905 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7907 esac
7909 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7910 if test -n "$WX_CONFIG_PATH"; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
7912 $as_echo "$WX_CONFIG_PATH" >&6; }
7913 else
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7921 if test "$WX_CONFIG_PATH" != "no" ; then
7922 WX_VERSION_FULL=""
7924 min_wx_version=2.8.8
7925 if test -z "$WXCONFIG_FLAGS" ; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
7927 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
7928 else
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7930 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
7933 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7935 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7936 wx_config_major_version=`echo $WX_VERSION_FULL | \
7937 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7938 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7939 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7940 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7941 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7943 wx_requested_major_version=`echo $min_wx_version | \
7944 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7945 wx_requested_minor_version=`echo $min_wx_version | \
7946 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7947 wx_requested_micro_version=`echo $min_wx_version | \
7948 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7951 wx_ver_ok=""
7952 if test "x$WX_VERSION_FULL" != x ; then
7953 if test $wx_config_major_version -gt $wx_requested_major_version; then
7954 wx_ver_ok=yes
7955 else
7956 if test $wx_config_major_version -eq $wx_requested_major_version; then
7957 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7958 wx_ver_ok=yes
7959 else
7960 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7961 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7962 wx_ver_ok=yes
7971 if test -n "$wx_ver_ok"; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION_FULL)" >&5
7974 $as_echo "yes (version $WX_VERSION_FULL)" >&6; }
7975 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7977 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7979 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7980 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7981 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7983 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7984 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7986 wxWin=1
7988 else
7990 if test "x$WX_VERSION_FULL" = x; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7993 else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7995 $as_echo "no (version $WX_VERSION_FULL is not new enough)" >&6; }
7998 WX_CFLAGS=""
7999 WX_CPPFLAGS=""
8000 WX_CXXFLAGS=""
8001 WX_LIBS=""
8002 WX_RESCOMP=""
8004 if test ! -z "$WXCONFIG_FLAGS"; then
8006 wx_error_message="
8007 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
8008 build with the following settings:
8009 $WXCONFIG_FLAGS
8010 but such build is not available.
8012 To see the wxWidgets builds available on this system, please use
8013 'wx-config --list' command. To use the default build, returned by
8014 'wx-config --selected-config', use the options with their 'auto'
8015 default values."
8019 wx_error_message="
8020 The requested wxWidgets build couldn't be found.
8021 $wx_error_message
8023 If you still get this error, then check that 'wx-config' is
8024 in path, the directory where wxWidgets libraries are installed
8025 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8026 or equivalent variable and wxWidgets version is 2.8.8 or above."
8028 as_fn_error "$wx_error_message" "$LINENO" 5
8031 else
8033 WX_CFLAGS=""
8034 WX_CPPFLAGS=""
8035 WX_CXXFLAGS=""
8036 WX_LIBS=""
8037 WX_RESCOMP=""
8052 WX_VERSION_MAJOR="$wx_config_major_version"
8053 WX_VERSION_MINOR="$wx_config_minor_version"
8057 if test "$wxWin" != 1; then :
8058 as_fn_error "
8059 wxWidgets must be installed on your system but wx-config
8060 script couldn't be found. Please check that wx-config is
8061 in path or specified by --with-wx-config=path flag, the
8062 directory where wxWidgets libraries are installed (returned
8063 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8064 equivalent variable and wxWidgets version is 2.8.8 or above.
8065 " "$LINENO" 5
8068 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8069 as_fn_error "
8070 This version of wxWidgets is known to not work with aMule.
8071 Please upgrade to a newer version.
8072 " "$LINENO" 5
8076 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8078 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8080 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8081 echo "[dbg] Using wx-config --selected-config"
8082 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8086 if test $WX_SHARED = "1"; then
8087 STATIC=0
8088 elif test $WX_SHARED = "0"; then
8089 STATIC=1
8090 elif test $WX_SHARED = "auto"; then
8091 STATIC="auto"
8095 if test "$UNICODE" = "auto" ; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8098 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8100 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8102 if test "$WX_UNICODE" != "0"; then
8103 WX_UNICODE=1
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8105 $as_echo "yes" >&6; }
8107 else
8108 WX_UNICODE=0
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8113 else
8115 WX_UNICODE=$UNICODE
8119 if test "$DEBUG" = "auto" ; then
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
8122 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
8124 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
8126 if test "$WX_DEBUG" != "0"; then
8127 WX_DEBUG=1
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8129 $as_echo "yes" >&6; }
8131 else
8132 WX_DEBUG=0
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134 $as_echo "no" >&6; }
8137 else
8139 WX_DEBUG=$DEBUG
8143 if test "$STATIC" = "auto" ; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
8146 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
8148 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
8150 if test "$WX_STATIC" != "0"; then
8151 WX_STATIC=1
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8153 $as_echo "yes" >&6; }
8155 else
8156 WX_STATIC=0
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8161 else
8163 WX_STATIC=$STATIC
8167 if test "$WX_STATIC" != "0"; then
8168 WX_SHARED=0
8169 else
8170 WX_SHARED=1
8177 if test "$TOOLKIT" = "auto" ; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
8180 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
8182 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
8183 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
8184 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
8185 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
8186 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
8187 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
8188 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
8189 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
8190 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
8191 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
8192 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
8194 WX_PORT="unknown"
8195 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
8196 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
8197 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
8198 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
8199 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
8200 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
8201 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
8202 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
8203 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
8204 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
8205 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
8208 if test "$WX_PORT" = "unknown" ; then
8209 as_fn_error "
8210 Cannot detect the currently installed wxWidgets port !
8211 Please check your 'wx-config --cxxflags'...
8212 " "$LINENO" 5
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
8216 $as_echo "$WX_PORT" >&6; }
8217 else
8219 if test -n "$TOOLKIT" ; then
8220 WX_PORT=$TOOLKIT
8221 else
8222 WX_PORT=$PORT
8228 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8229 echo "[dbg] Values of all WX_* options after final detection:"
8230 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8231 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8232 echo "[dbg] WX_SHARED: $WX_SHARED"
8233 echo "[dbg] WX_VERSION: $WX_VERSION"
8234 echo "[dbg] WX_PORT: $WX_PORT"
8237 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8238 as_fn_error "
8239 Cannot build shared library against a static build of wxWidgets !
8240 This error happens because the wxWidgets build which was selected
8241 has been detected as static while you asked to build $PACKAGE_NAME
8242 as shared library and this is not possible.
8243 Use the '--disable-shared' option to build $PACKAGE_NAME
8244 as static library or '--with-wxshared' to use wxWidgets as shared library.
8245 " "$LINENO" 5
8248 if test "$DEBUG" = "auto"; then
8249 DEBUG=$WX_DEBUG
8251 if test "$DEBUG" = "1"; then
8252 BUILD="debug"
8253 elif test "$DEBUG" = ""; then
8254 BUILD="release"
8257 if test "$UNICODE" = "auto"; then
8258 UNICODE=$WX_UNICODE
8260 if test "$SHARED" = "auto"; then
8261 SHARED=$WX_SHARED
8263 if test "$TOOLKIT" = "auto"; then
8264 TOOLKIT=$WX_PORT
8268 # We also need wxBase
8269 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8270 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
8271 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8273 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8277 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
8278 if test "${WX_PORT}" = base; then :
8279 as_fn_error "
8280 The selected components need a wxWidgets library with GUI,
8281 but your installation is base-only. Please install a GUI
8282 enabled version of wxWidgets and then retry.
8283 " "$LINENO" 5
8288 if test ${SYS:-unknown} = win32; then :
8289 if test -n "$ac_tool_prefix"; then
8290 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8291 set dummy ${ac_tool_prefix}windres; ac_word=$2
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293 $as_echo_n "checking for $ac_word... " >&6; }
8294 if test "${ac_cv_prog_RC+set}" = set; then :
8295 $as_echo_n "(cached) " >&6
8296 else
8297 if test -n "$RC"; then
8298 ac_cv_prog_RC="$RC" # Let the user override the test.
8299 else
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8307 ac_cv_prog_RC="${ac_tool_prefix}windres"
8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8311 done
8312 done
8313 IFS=$as_save_IFS
8317 RC=$ac_cv_prog_RC
8318 if test -n "$RC"; then
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
8320 $as_echo "$RC" >&6; }
8321 else
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323 $as_echo "no" >&6; }
8328 if test -z "$ac_cv_prog_RC"; then
8329 ac_ct_RC=$RC
8330 # Extract the first word of "windres", so it can be a program name with args.
8331 set dummy windres; ac_word=$2
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8333 $as_echo_n "checking for $ac_word... " >&6; }
8334 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 if test -n "$ac_ct_RC"; then
8338 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8339 else
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341 for as_dir in $PATH
8343 IFS=$as_save_IFS
8344 test -z "$as_dir" && as_dir=.
8345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8347 ac_cv_prog_ac_ct_RC="windres"
8348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8349 break 2
8351 done
8352 done
8353 IFS=$as_save_IFS
8357 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8358 if test -n "$ac_ct_RC"; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
8360 $as_echo "$ac_ct_RC" >&6; }
8361 else
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363 $as_echo "no" >&6; }
8366 if test "x$ac_ct_RC" = x; then
8367 RC=":"
8368 else
8369 case $cross_compiling:$ac_tool_warned in
8370 yes:)
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8373 ac_tool_warned=yes ;;
8374 esac
8375 RC=$ac_ct_RC
8377 else
8378 RC="$ac_cv_prog_RC"
8384 # Check for libupnp
8385 # Check whether --enable-upnp was given.
8386 if test "${enable_upnp+set}" = set; then :
8387 enableval=$enable_upnp;
8391 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
8393 else
8394 enable_upnp=no
8398 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8399 if test -n "$ac_tool_prefix"; then
8400 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8401 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 case $PKG_CONFIG in
8408 [\\/]* | ?:[\\/]*)
8409 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 for as_dir in $PATH
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8419 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 break 2
8423 done
8424 done
8425 IFS=$as_save_IFS
8428 esac
8430 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8431 if test -n "$PKG_CONFIG"; then
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8433 $as_echo "$PKG_CONFIG" >&6; }
8434 else
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436 $as_echo "no" >&6; }
8441 if test -z "$ac_cv_path_PKG_CONFIG"; then
8442 ac_pt_PKG_CONFIG=$PKG_CONFIG
8443 # Extract the first word of "pkg-config", so it can be a program name with args.
8444 set dummy pkg-config; ac_word=$2
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 $as_echo_n "checking for $ac_word... " >&6; }
8447 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 case $ac_pt_PKG_CONFIG in
8451 [\\/]* | ?:[\\/]*)
8452 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in $PATH
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8462 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 break 2
8466 done
8467 done
8468 IFS=$as_save_IFS
8471 esac
8473 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8474 if test -n "$ac_pt_PKG_CONFIG"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8476 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8477 else
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8482 if test "x$ac_pt_PKG_CONFIG" = x; then
8483 PKG_CONFIG=""
8484 else
8485 case $cross_compiling:$ac_tool_warned in
8486 yes:)
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8489 ac_tool_warned=yes ;;
8490 esac
8491 PKG_CONFIG=$ac_pt_PKG_CONFIG
8493 else
8494 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8498 if test -n "$PKG_CONFIG"; then
8499 _pkg_min_version=0.9.0
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8501 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8502 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8504 $as_echo "yes" >&6; }
8505 else
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507 $as_echo "no" >&6; }
8508 PKG_CONFIG=""
8512 if test ${enable_upnp:-yes} = yes; then :
8516 # Check whether --with-libupnp-prefix was given.
8517 if test "${with_libupnp_prefix+set}" = set; then :
8518 withval=$with_libupnp_prefix; export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8522 if test $cross_compiling = no; then :
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
8525 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
8526 if test -n "$PKG_CONFIG"; then :
8528 if $PKG_CONFIG libupnp --exists; then :
8530 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8531 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
8533 result=yes
8534 resultstr=" (version $LIBUPNP_VERSION)"
8535 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8536 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8537 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8538 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8539 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8541 else
8543 result=no
8544 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8548 else
8550 result=no
8551 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8555 else
8557 result=no
8558 resultstr=" (pkg-config not found)"
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8562 $as_echo "$result$resultstr" >&6; }
8563 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8565 else
8567 result=no
8568 libupnp_error="cross compiling"
8572 if test ${result:-no} = yes; then :
8573 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8574 else
8575 enable_upnp=disabled
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8577 UPnP code has been disabled because ${libupnp_error}." >&5
8578 $as_echo "$as_me: WARNING:
8579 UPnP code has been disabled because ${libupnp_error}." >&2;}
8580 _mule_warning_6=yes
8581 _mule_has_warnings=yes
8590 # Check for Crypto++
8591 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
8594 # Check whether --with-crypto-prefix was given.
8595 if test "${with_crypto_prefix+set}" = set; then :
8596 withval=$with_crypto_prefix;
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
8601 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
8603 cryptopp_file_with_version="cryptlib.h"
8605 CRYPTOPP_STYLE="unknown"
8606 CRYPTOPP_LIB_NAME="unknown"
8607 cryptopp_includedir="unknown"
8608 CRYPTOPP_INCLUDE_PREFIX="unknown"
8609 cryptopp_libdir="unknown"
8611 if test -n "$with_crypto_prefix"; then :
8613 CRYPTOPP_PREFIX="$with_crypto_prefix"
8614 # Find the Cryptopp header in the user-provided location
8615 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8617 CRYPTOPP_STYLE="sources"
8618 CRYPTOPP_LIB_NAME="cryptopp"
8619 cryptopp_includedir=
8620 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8621 cryptopp_libdir=
8623 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8625 CRYPTOPP_STYLE="installed"
8626 CRYPTOPP_LIB_NAME="cryptopp"
8627 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8628 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8629 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8631 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8633 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8634 CRYPTOPP_STYLE="gentoo_debian"
8635 CRYPTOPP_LIB_NAME="crypto++"
8636 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8637 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8638 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8643 else
8645 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8646 # Find the Cryptopp header in system locations
8647 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8649 CRYPTOPP_STYLE="sources"
8650 CRYPTOPP_LIB_NAME="cryptopp"
8651 cryptopp_includedir=
8652 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8653 cryptopp_libdir=
8654 break
8656 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8658 CRYPTOPP_STYLE="installed"
8659 CRYPTOPP_LIB_NAME="cryptopp"
8660 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8661 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8662 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8663 break
8665 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8667 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8668 CRYPTOPP_STYLE="gentoo_debian"
8669 CRYPTOPP_LIB_NAME="crypto++"
8670 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8671 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8672 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8673 break
8677 done
8681 if test $CRYPTOPP_STYLE = "unknown"; then :
8682 result=no; resultstr=""
8683 else
8685 # Find out the crypto++ version and check against the minimum required
8686 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8687 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8688 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8689 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8691 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
8693 result=yes
8694 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8695 if test -n "$cryptopp_includedir"; then :
8696 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8697 else
8698 CRYPTOPP_CPPFLAGS=
8700 if test -n "$cryptopp_libdir"; then :
8702 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8703 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8705 else
8707 CRYPTOPP_LDFLAGS=
8708 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8712 cat >>confdefs.h <<_ACEOF
8713 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8714 _ACEOF
8717 else
8719 result=no
8720 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8727 $as_echo "$result$resultstr" >&6; }
8729 if test ${result:-no} = yes; then :
8731 # Check for CryptoPP >= 5.5
8732 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
8733 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8736 else
8738 as_fn_error "
8739 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8740 Please try again with --with-crypto-prefix=/my_crypto_prefix
8741 (replace /my_crypto_prefix with a valid path to your crypto++
8742 installation directory)." "$LINENO" 5
8751 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 :
8752 ac_ext=cpp
8753 ac_cpp='$CXXCPP $CPPFLAGS'
8754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're using the GNU C++ library" >&5
8760 $as_echo_n "checking if we're using the GNU C++ library... " >&6; }
8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h. */
8765 #include <string>
8766 #ifndef __GLIBCXX__
8767 #error Non-GNU C++ library found.
8768 #endif
8771 _ACEOF
8772 if ac_fn_cxx_try_cpp "$LINENO"; then :
8773 GLIBCXX=yes
8774 else
8775 GLIBCXX=no
8777 rm -f conftest.err conftest.$ac_ext
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIBCXX" >&5
8779 $as_echo "$GLIBCXX" >&6; }
8781 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
8783 mule_backup_CPPFLAGS="$CPPFLAGS"
8784 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
8787 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789 /* end confdefs.h. */
8792 #include <wx/wx.h>
8793 #include <wx/filefn.h>
8794 #ifndef wxHAS_LARGE_FILES
8795 #error No LargeFile support!
8796 #endif
8799 _ACEOF
8800 if ac_fn_cxx_try_cpp "$LINENO"; then :
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8803 $as_echo "yes" >&6; }
8805 else
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 $as_echo "no" >&6; }
8809 as_fn_error "
8810 Support for large files in wxWidgets is required by aMule.
8811 To continue you must recompile wxWidgets with support for
8812 large files enabled." "$LINENO" 5
8815 rm -f conftest.err conftest.$ac_ext
8817 CPPFLAGS="$mule_backup_CPPFLAGS"
8821 # Check if the compiler is broken, wrt. exceptions.
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
8824 $as_echo_n "checking for exception-handling... " >&6; }
8825 if test "$cross_compiling" = yes; then :
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
8828 $as_echo "undeterminable" >&6; }
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8830 Cross-compilation detected, so exception handling cannot be tested.
8831 Note that broken exception handling in your compiler may lead to
8832 unexpected crashes." >&5
8833 $as_echo "$as_me: WARNING:
8834 Cross-compilation detected, so exception handling cannot be tested.
8835 Note that broken exception handling in your compiler may lead to
8836 unexpected crashes." >&2;}
8837 _mule_warning_7=yes
8838 _mule_has_warnings=yes
8841 else
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h. */
8847 main ()
8850 try {
8851 throw 1;
8852 } catch (int) {
8853 return 0;
8855 return 1;
8858 return 0;
8861 _ACEOF
8862 if ac_fn_cxx_try_run "$LINENO"; then :
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8865 $as_echo "yes" >&6; }
8867 else
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 $as_echo "no" >&6; }
8871 as_fn_error "Exception handling does not work. Broken compiler?" "$LINENO" 5
8874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8875 conftest.$ac_objext conftest.beam conftest.$ac_ext
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
8882 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8887 #include <cxxabi.h>
8890 main ()
8893 int status;
8894 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8895 std::type_info *ti = abi::__cxa_current_exception_type();
8898 return 0;
8901 _ACEOF
8902 if ac_fn_cxx_try_link "$LINENO"; then :
8905 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8908 $as_echo "yes" >&6; }
8910 else
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913 $as_echo "no" >&6; }
8916 rm -f core conftest.err conftest.$ac_objext \
8917 conftest$ac_exeext conftest.$ac_ext
8919 ac_ext=c
8920 ac_cpp='$CPP $CPPFLAGS'
8921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8928 # Ok, we have all needed libs, now checking for other stuff
8929 if test "$LEX" = "flex"; then :
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
8932 $as_echo_n "checking for extended flex capabilities... " >&6; }
8934 extended_flex=`flex --help | grep header-file`
8935 if test -n "$extended_flex"; then :
8936 HAVE_FLEX_EXTENDED=yes
8937 else
8938 HAVE_FLEX_EXTENDED=no
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
8941 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
8943 if test $HAVE_FLEX_EXTENDED = no; then :
8944 { $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
8945 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8948 else
8949 HAVE_FLEX_EXTENDED=no
8952 # Flush standard test results for speeding cache
8953 cat >confcache <<\_ACEOF
8954 # This file is a shell script that caches the results of configure
8955 # tests run on this system so they can be shared between configure
8956 # scripts and configure runs, see configure's option --config-cache.
8957 # It is not useful on other systems. If it contains results you don't
8958 # want to keep, you may remove or edit it.
8960 # config.status only pays attention to the cache file if you give it
8961 # the --recheck option to rerun configure.
8963 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8964 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8965 # following values.
8967 _ACEOF
8969 # The following way of writing the cache mishandles newlines in values,
8970 # but we know of no workaround that is simple, portable, and efficient.
8971 # So, we kill variables containing newlines.
8972 # Ultrix sh set writes to stderr and can't be redirected directly,
8973 # and sets the high bit in the cache file unless we assign to the vars.
8975 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8976 eval ac_val=\$$ac_var
8977 case $ac_val in #(
8978 *${as_nl}*)
8979 case $ac_var in #(
8980 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8981 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8982 esac
8983 case $ac_var in #(
8984 _ | IFS | as_nl) ;; #(
8985 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8986 *) { eval $ac_var=; unset $ac_var;} ;;
8987 esac ;;
8988 esac
8989 done
8991 (set) 2>&1 |
8992 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8993 *${as_nl}ac_space=\ *)
8994 # `set' does not quote correctly, so add quotes: double-quote
8995 # substitution turns \\\\ into \\, and sed turns \\ into \.
8996 sed -n \
8997 "s/'/'\\\\''/g;
8998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8999 ;; #(
9001 # `set' quotes correctly as required by POSIX, so do not add quotes.
9002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9004 esac |
9005 sort
9007 sed '
9008 /^ac_cv_env_/b end
9009 t clear
9010 :clear
9011 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9012 t end
9013 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9014 :end' >>confcache
9015 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9016 if test -w "$cache_file"; then
9017 test "x$cache_file" != "x/dev/null" &&
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9019 $as_echo "$as_me: updating cache $cache_file" >&6;}
9020 cat confcache >$cache_file
9021 else
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9023 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9026 rm -f confcache
9028 # Checks for header files.
9029 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9030 # for constant arguments. Useless!
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9032 $as_echo_n "checking for working alloca.h... " >&6; }
9033 if test "${ac_cv_working_alloca_h+set}" = set; then :
9034 $as_echo_n "(cached) " >&6
9035 else
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038 #include <alloca.h>
9040 main ()
9042 char *p = (char *) alloca (2 * sizeof (int));
9043 if (p) return 0;
9045 return 0;
9047 _ACEOF
9048 if ac_fn_c_try_link "$LINENO"; then :
9049 ac_cv_working_alloca_h=yes
9050 else
9051 ac_cv_working_alloca_h=no
9053 rm -f core conftest.err conftest.$ac_objext \
9054 conftest$ac_exeext conftest.$ac_ext
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9057 $as_echo "$ac_cv_working_alloca_h" >&6; }
9058 if test $ac_cv_working_alloca_h = yes; then
9060 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9065 $as_echo_n "checking for alloca... " >&6; }
9066 if test "${ac_cv_func_alloca_works+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9071 #ifdef __GNUC__
9072 # define alloca __builtin_alloca
9073 #else
9074 # ifdef _MSC_VER
9075 # include <malloc.h>
9076 # define alloca _alloca
9077 # else
9078 # ifdef HAVE_ALLOCA_H
9079 # include <alloca.h>
9080 # else
9081 # ifdef _AIX
9082 #pragma alloca
9083 # else
9084 # ifndef alloca /* predefined by HP cc +Olibcalls */
9085 char *alloca ();
9086 # endif
9087 # endif
9088 # endif
9089 # endif
9090 #endif
9093 main ()
9095 char *p = (char *) alloca (1);
9096 if (p) return 0;
9098 return 0;
9100 _ACEOF
9101 if ac_fn_c_try_link "$LINENO"; then :
9102 ac_cv_func_alloca_works=yes
9103 else
9104 ac_cv_func_alloca_works=no
9106 rm -f core conftest.err conftest.$ac_objext \
9107 conftest$ac_exeext conftest.$ac_ext
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9110 $as_echo "$ac_cv_func_alloca_works" >&6; }
9112 if test $ac_cv_func_alloca_works = yes; then
9114 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9116 else
9117 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9118 # that cause trouble. Some versions do not even contain alloca or
9119 # contain a buggy version. If you still want to use their alloca,
9120 # use ar to extract alloca.o from them instead of compiling alloca.c.
9122 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9124 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9128 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9129 if test "${ac_cv_os_cray+set}" = set; then :
9130 $as_echo_n "(cached) " >&6
9131 else
9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h. */
9134 #if defined CRAY && ! defined CRAY2
9135 webecray
9136 #else
9137 wenotbecray
9138 #endif
9140 _ACEOF
9141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9142 $EGREP "webecray" >/dev/null 2>&1; then :
9143 ac_cv_os_cray=yes
9144 else
9145 ac_cv_os_cray=no
9147 rm -f conftest*
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9151 $as_echo "$ac_cv_os_cray" >&6; }
9152 if test $ac_cv_os_cray = yes; then
9153 for ac_func in _getb67 GETB67 getb67; do
9154 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9155 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9156 eval as_val=\$$as_ac_var
9157 if test "x$as_val" = x""yes; then :
9159 cat >>confdefs.h <<_ACEOF
9160 #define CRAY_STACKSEG_END $ac_func
9161 _ACEOF
9163 break
9166 done
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9170 $as_echo_n "checking stack direction for C alloca... " >&6; }
9171 if test "${ac_cv_c_stack_direction+set}" = set; then :
9172 $as_echo_n "(cached) " >&6
9173 else
9174 if test "$cross_compiling" = yes; then :
9175 ac_cv_c_stack_direction=0
9176 else
9177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9179 $ac_includes_default
9181 find_stack_direction ()
9183 static char *addr = 0;
9184 auto char dummy;
9185 if (addr == 0)
9187 addr = &dummy;
9188 return find_stack_direction ();
9190 else
9191 return (&dummy > addr) ? 1 : -1;
9195 main ()
9197 return find_stack_direction () < 0;
9199 _ACEOF
9200 if ac_fn_c_try_run "$LINENO"; then :
9201 ac_cv_c_stack_direction=1
9202 else
9203 ac_cv_c_stack_direction=-1
9205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9206 conftest.$ac_objext conftest.beam conftest.$ac_ext
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9211 $as_echo "$ac_cv_c_stack_direction" >&6; }
9212 cat >>confdefs.h <<_ACEOF
9213 #define STACK_DIRECTION $ac_cv_c_stack_direction
9214 _ACEOF
9219 ac_header_dirent=no
9220 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9221 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9223 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9225 $as_echo_n "(cached) " >&6
9226 else
9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9229 #include <sys/types.h>
9230 #include <$ac_hdr>
9233 main ()
9235 if ((DIR *) 0)
9236 return 0;
9238 return 0;
9240 _ACEOF
9241 if ac_fn_c_try_compile "$LINENO"; then :
9242 eval "$as_ac_Header=yes"
9243 else
9244 eval "$as_ac_Header=no"
9246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248 eval ac_res=\$$as_ac_Header
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9250 $as_echo "$ac_res" >&6; }
9251 eval as_val=\$$as_ac_Header
9252 if test "x$as_val" = x""yes; then :
9253 cat >>confdefs.h <<_ACEOF
9254 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9255 _ACEOF
9257 ac_header_dirent=$ac_hdr; break
9260 done
9261 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9262 if test $ac_header_dirent = dirent.h; then
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9264 $as_echo_n "checking for library containing opendir... " >&6; }
9265 if test "${ac_cv_search_opendir+set}" = set; then :
9266 $as_echo_n "(cached) " >&6
9267 else
9268 ac_func_search_save_LIBS=$LIBS
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9272 /* Override any GCC internal prototype to avoid an error.
9273 Use char because int might match the return type of a GCC
9274 builtin and then its argument prototype would still apply. */
9275 #ifdef __cplusplus
9276 extern "C"
9277 #endif
9278 char opendir ();
9280 main ()
9282 return opendir ();
9284 return 0;
9286 _ACEOF
9287 for ac_lib in '' dir; do
9288 if test -z "$ac_lib"; then
9289 ac_res="none required"
9290 else
9291 ac_res=-l$ac_lib
9292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9294 if ac_fn_c_try_link "$LINENO"; then :
9295 ac_cv_search_opendir=$ac_res
9297 rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext
9299 if test "${ac_cv_search_opendir+set}" = set; then :
9300 break
9302 done
9303 if test "${ac_cv_search_opendir+set}" = set; then :
9305 else
9306 ac_cv_search_opendir=no
9308 rm conftest.$ac_ext
9309 LIBS=$ac_func_search_save_LIBS
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9312 $as_echo "$ac_cv_search_opendir" >&6; }
9313 ac_res=$ac_cv_search_opendir
9314 if test "$ac_res" != no; then :
9315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9319 else
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9321 $as_echo_n "checking for library containing opendir... " >&6; }
9322 if test "${ac_cv_search_opendir+set}" = set; then :
9323 $as_echo_n "(cached) " >&6
9324 else
9325 ac_func_search_save_LIBS=$LIBS
9326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327 /* end confdefs.h. */
9329 /* Override any GCC internal prototype to avoid an error.
9330 Use char because int might match the return type of a GCC
9331 builtin and then its argument prototype would still apply. */
9332 #ifdef __cplusplus
9333 extern "C"
9334 #endif
9335 char opendir ();
9337 main ()
9339 return opendir ();
9341 return 0;
9343 _ACEOF
9344 for ac_lib in '' x; do
9345 if test -z "$ac_lib"; then
9346 ac_res="none required"
9347 else
9348 ac_res=-l$ac_lib
9349 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9351 if ac_fn_c_try_link "$LINENO"; then :
9352 ac_cv_search_opendir=$ac_res
9354 rm -f core conftest.err conftest.$ac_objext \
9355 conftest$ac_exeext
9356 if test "${ac_cv_search_opendir+set}" = set; then :
9357 break
9359 done
9360 if test "${ac_cv_search_opendir+set}" = set; then :
9362 else
9363 ac_cv_search_opendir=no
9365 rm conftest.$ac_ext
9366 LIBS=$ac_func_search_save_LIBS
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9369 $as_echo "$ac_cv_search_opendir" >&6; }
9370 ac_res=$ac_cv_search_opendir
9371 if test "$ac_res" != no; then :
9372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9379 $as_echo_n "checking for ANSI C header files... " >&6; }
9380 if test "${ac_cv_header_stdc+set}" = set; then :
9381 $as_echo_n "(cached) " >&6
9382 else
9383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h. */
9385 #include <stdlib.h>
9386 #include <stdarg.h>
9387 #include <string.h>
9388 #include <float.h>
9391 main ()
9395 return 0;
9397 _ACEOF
9398 if ac_fn_c_try_compile "$LINENO"; then :
9399 ac_cv_header_stdc=yes
9400 else
9401 ac_cv_header_stdc=no
9403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9405 if test $ac_cv_header_stdc = yes; then
9406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9409 #include <string.h>
9411 _ACEOF
9412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9413 $EGREP "memchr" >/dev/null 2>&1; then :
9415 else
9416 ac_cv_header_stdc=no
9418 rm -f conftest*
9422 if test $ac_cv_header_stdc = yes; then
9423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9426 #include <stdlib.h>
9428 _ACEOF
9429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9430 $EGREP "free" >/dev/null 2>&1; then :
9432 else
9433 ac_cv_header_stdc=no
9435 rm -f conftest*
9439 if test $ac_cv_header_stdc = yes; then
9440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9441 if test "$cross_compiling" = yes; then :
9443 else
9444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445 /* end confdefs.h. */
9446 #include <ctype.h>
9447 #include <stdlib.h>
9448 #if ((' ' & 0x0FF) == 0x020)
9449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9451 #else
9452 # define ISLOWER(c) \
9453 (('a' <= (c) && (c) <= 'i') \
9454 || ('j' <= (c) && (c) <= 'r') \
9455 || ('s' <= (c) && (c) <= 'z'))
9456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9457 #endif
9459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9461 main ()
9463 int i;
9464 for (i = 0; i < 256; i++)
9465 if (XOR (islower (i), ISLOWER (i))
9466 || toupper (i) != TOUPPER (i))
9467 return 2;
9468 return 0;
9470 _ACEOF
9471 if ac_fn_c_try_run "$LINENO"; then :
9473 else
9474 ac_cv_header_stdc=no
9476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9477 conftest.$ac_objext conftest.beam conftest.$ac_ext
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9483 $as_echo "$ac_cv_header_stdc" >&6; }
9484 if test $ac_cv_header_stdc = yes; then
9486 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9490 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
9491 do :
9492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9493 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9494 eval as_val=\$$as_ac_Header
9495 if test "x$as_val" = x""yes; then :
9496 cat >>confdefs.h <<_ACEOF
9497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9498 _ACEOF
9502 done
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9505 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9506 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9511 #include <sys/types.h>
9512 #include <sys/wait.h>
9513 #ifndef WEXITSTATUS
9514 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9515 #endif
9516 #ifndef WIFEXITED
9517 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9518 #endif
9521 main ()
9523 int s;
9524 wait (&s);
9525 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9527 return 0;
9529 _ACEOF
9530 if ac_fn_c_try_compile "$LINENO"; then :
9531 ac_cv_header_sys_wait_h=yes
9532 else
9533 ac_cv_header_sys_wait_h=no
9535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9538 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9539 if test $ac_cv_header_sys_wait_h = yes; then
9541 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9546 # Checks for typedefs, structures, and compiler characteristics.
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9548 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9549 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h. */
9555 #include <stdbool.h>
9556 #ifndef bool
9557 "error: bool is not defined"
9558 #endif
9559 #ifndef false
9560 "error: false is not defined"
9561 #endif
9562 #if false
9563 "error: false is not 0"
9564 #endif
9565 #ifndef true
9566 "error: true is not defined"
9567 #endif
9568 #if true != 1
9569 "error: true is not 1"
9570 #endif
9571 #ifndef __bool_true_false_are_defined
9572 "error: __bool_true_false_are_defined is not defined"
9573 #endif
9575 struct s { _Bool s: 1; _Bool t; } s;
9577 char a[true == 1 ? 1 : -1];
9578 char b[false == 0 ? 1 : -1];
9579 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9580 char d[(bool) 0.5 == true ? 1 : -1];
9581 bool e = &s;
9582 char f[(_Bool) 0.0 == false ? 1 : -1];
9583 char g[true];
9584 char h[sizeof (_Bool)];
9585 char i[sizeof s.t];
9586 enum { j = false, k = true, l = false * true, m = true * 256 };
9587 /* The following fails for
9588 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9589 _Bool n[m];
9590 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9591 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9592 # if defined __xlc__ || defined __GNUC__
9593 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9594 reported by James Lemley on 2005-10-05; see
9595 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9596 This test is not quite right, since xlc is allowed to
9597 reject this program, as the initializer for xlcbug is
9598 not one of the forms that C requires support for.
9599 However, doing the test right would require a runtime
9600 test, and that would make cross-compilation harder.
9601 Let us hope that IBM fixes the xlc bug, and also adds
9602 support for this kind of constant expression. In the
9603 meantime, this test will reject xlc, which is OK, since
9604 our stdbool.h substitute should suffice. We also test
9605 this with GCC, where it should work, to detect more
9606 quickly whether someone messes up the test in the
9607 future. */
9608 char digs[] = "0123456789";
9609 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9610 # endif
9611 /* Catch a bug in an HP-UX C compiler. See
9612 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9613 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9615 _Bool q = true;
9616 _Bool *pq = &q;
9619 main ()
9622 *pq |= q;
9623 *pq |= ! q;
9624 /* Refer to every declared value, to avoid compiler optimizations. */
9625 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9626 + !m + !n + !o + !p + !q + !pq);
9629 return 0;
9631 _ACEOF
9632 if ac_fn_c_try_compile "$LINENO"; then :
9633 ac_cv_header_stdbool_h=yes
9634 else
9635 ac_cv_header_stdbool_h=no
9637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9640 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9641 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9642 if test "x$ac_cv_type__Bool" = x""yes; then :
9644 cat >>confdefs.h <<_ACEOF
9645 #define HAVE__BOOL 1
9646 _ACEOF
9651 if test $ac_cv_header_stdbool_h = yes; then
9653 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9658 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9659 if test "${ac_cv_c_const+set}" = set; then :
9660 $as_echo_n "(cached) " >&6
9661 else
9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h. */
9666 main ()
9668 /* FIXME: Include the comments suggested by Paul. */
9669 #ifndef __cplusplus
9670 /* Ultrix mips cc rejects this. */
9671 typedef int charset[2];
9672 const charset cs;
9673 /* SunOS 4.1.1 cc rejects this. */
9674 char const *const *pcpcc;
9675 char **ppc;
9676 /* NEC SVR4.0.2 mips cc rejects this. */
9677 struct point {int x, y;};
9678 static struct point const zero = {0,0};
9679 /* AIX XL C 1.02.0.0 rejects this.
9680 It does not let you subtract one const X* pointer from another in
9681 an arm of an if-expression whose if-part is not a constant
9682 expression */
9683 const char *g = "string";
9684 pcpcc = &g + (g ? g-g : 0);
9685 /* HPUX 7.0 cc rejects these. */
9686 ++pcpcc;
9687 ppc = (char**) pcpcc;
9688 pcpcc = (char const *const *) ppc;
9689 { /* SCO 3.2v4 cc rejects this. */
9690 char *t;
9691 char const *s = 0 ? (char *) 0 : (char const *) 0;
9693 *t++ = 0;
9694 if (s) return 0;
9696 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9697 int x[] = {25, 17};
9698 const int *foo = &x[0];
9699 ++foo;
9701 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9702 typedef const int *iptr;
9703 iptr p = 0;
9704 ++p;
9706 { /* AIX XL C 1.02.0.0 rejects this saying
9707 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9708 struct s { int j; const int *ap[3]; };
9709 struct s *b; b->j = 5;
9711 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9712 const int foo = 10;
9713 if (!foo) return 0;
9715 return !cs[0] && !zero.x;
9716 #endif
9719 return 0;
9721 _ACEOF
9722 if ac_fn_c_try_compile "$LINENO"; then :
9723 ac_cv_c_const=yes
9724 else
9725 ac_cv_c_const=no
9727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9730 $as_echo "$ac_cv_c_const" >&6; }
9731 if test $ac_cv_c_const = no; then
9733 $as_echo "#define const /**/" >>confdefs.h
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9738 $as_echo_n "checking for inline... " >&6; }
9739 if test "${ac_cv_c_inline+set}" = set; then :
9740 $as_echo_n "(cached) " >&6
9741 else
9742 ac_cv_c_inline=no
9743 for ac_kw in inline __inline__ __inline; do
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9746 #ifndef __cplusplus
9747 typedef int foo_t;
9748 static $ac_kw foo_t static_foo () {return 0; }
9749 $ac_kw foo_t foo () {return 0; }
9750 #endif
9752 _ACEOF
9753 if ac_fn_c_try_compile "$LINENO"; then :
9754 ac_cv_c_inline=$ac_kw
9756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757 test "$ac_cv_c_inline" != no && break
9758 done
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9762 $as_echo "$ac_cv_c_inline" >&6; }
9764 case $ac_cv_c_inline in
9765 inline | yes) ;;
9767 case $ac_cv_c_inline in
9768 no) ac_val=;;
9769 *) ac_val=$ac_cv_c_inline;;
9770 esac
9771 cat >>confdefs.h <<_ACEOF
9772 #ifndef __cplusplus
9773 #define inline $ac_val
9774 #endif
9775 _ACEOF
9777 esac
9779 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9780 if test "x$ac_cv_type_mode_t" = x""yes; then :
9782 else
9784 cat >>confdefs.h <<_ACEOF
9785 #define mode_t int
9786 _ACEOF
9790 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9791 if test "x$ac_cv_type_off_t" = x""yes; then :
9793 else
9795 cat >>confdefs.h <<_ACEOF
9796 #define off_t long int
9797 _ACEOF
9801 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9802 if test "x$ac_cv_type_size_t" = x""yes; then :
9804 else
9806 cat >>confdefs.h <<_ACEOF
9807 #define size_t unsigned int
9808 _ACEOF
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9813 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9814 if test "${ac_cv_header_time+set}" = set; then :
9815 $as_echo_n "(cached) " >&6
9816 else
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9819 #include <sys/types.h>
9820 #include <sys/time.h>
9821 #include <time.h>
9824 main ()
9826 if ((struct tm *) 0)
9827 return 0;
9829 return 0;
9831 _ACEOF
9832 if ac_fn_c_try_compile "$LINENO"; then :
9833 ac_cv_header_time=yes
9834 else
9835 ac_cv_header_time=no
9837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9840 $as_echo "$ac_cv_header_time" >&6; }
9841 if test $ac_cv_header_time = yes; then
9843 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9848 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9849 if test "${ac_cv_struct_tm+set}" = set; then :
9850 $as_echo_n "(cached) " >&6
9851 else
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9854 #include <sys/types.h>
9855 #include <time.h>
9858 main ()
9860 struct tm tm;
9861 int *p = &tm.tm_sec;
9862 return !p;
9864 return 0;
9866 _ACEOF
9867 if ac_fn_c_try_compile "$LINENO"; then :
9868 ac_cv_struct_tm=time.h
9869 else
9870 ac_cv_struct_tm=sys/time.h
9872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9875 $as_echo "$ac_cv_struct_tm" >&6; }
9876 if test $ac_cv_struct_tm = sys/time.h; then
9878 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9883 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9884 if test "${ac_cv_type_uid_t+set}" = set; then :
9885 $as_echo_n "(cached) " >&6
9886 else
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9889 #include <sys/types.h>
9891 _ACEOF
9892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9893 $EGREP "uid_t" >/dev/null 2>&1; then :
9894 ac_cv_type_uid_t=yes
9895 else
9896 ac_cv_type_uid_t=no
9898 rm -f conftest*
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9902 $as_echo "$ac_cv_type_uid_t" >&6; }
9903 if test $ac_cv_type_uid_t = no; then
9905 $as_echo "#define uid_t int" >>confdefs.h
9908 $as_echo "#define gid_t int" >>confdefs.h
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9913 $as_echo_n "checking for working volatile... " >&6; }
9914 if test "${ac_cv_c_volatile+set}" = set; then :
9915 $as_echo_n "(cached) " >&6
9916 else
9917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918 /* end confdefs.h. */
9921 main ()
9924 volatile int x;
9925 int * volatile y = (int *) 0;
9926 return !x && !y;
9928 return 0;
9930 _ACEOF
9931 if ac_fn_c_try_compile "$LINENO"; then :
9932 ac_cv_c_volatile=yes
9933 else
9934 ac_cv_c_volatile=no
9936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9939 $as_echo "$ac_cv_c_volatile" >&6; }
9940 if test $ac_cv_c_volatile = no; then
9942 $as_echo "#define volatile /**/" >>confdefs.h
9946 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
9947 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
9949 cat >>confdefs.h <<_ACEOF
9950 #define HAVE_PTRDIFF_T 1
9951 _ACEOF
9957 # Checks for library functions.
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
9959 $as_echo_n "checking whether closedir returns void... " >&6; }
9960 if test "${ac_cv_func_closedir_void+set}" = set; then :
9961 $as_echo_n "(cached) " >&6
9962 else
9963 if test "$cross_compiling" = yes; then :
9964 ac_cv_func_closedir_void=yes
9965 else
9966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9967 /* end confdefs.h. */
9968 $ac_includes_default
9969 #include <$ac_header_dirent>
9970 #ifndef __cplusplus
9971 int closedir ();
9972 #endif
9975 main ()
9977 return closedir (opendir (".")) != 0;
9979 return 0;
9981 _ACEOF
9982 if ac_fn_c_try_run "$LINENO"; then :
9983 ac_cv_func_closedir_void=no
9984 else
9985 ac_cv_func_closedir_void=yes
9987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9988 conftest.$ac_objext conftest.beam conftest.$ac_ext
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
9993 $as_echo "$ac_cv_func_closedir_void" >&6; }
9994 if test $ac_cv_func_closedir_void = yes; then
9996 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
10000 if test $ac_cv_c_compiler_gnu = yes; then
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
10002 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
10003 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
10004 $as_echo_n "(cached) " >&6
10005 else
10006 ac_pattern="Autoconf.*'x'"
10007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008 /* end confdefs.h. */
10009 #include <sgtty.h>
10010 Autoconf TIOCGETP
10011 _ACEOF
10012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10013 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10014 ac_cv_prog_gcc_traditional=yes
10015 else
10016 ac_cv_prog_gcc_traditional=no
10018 rm -f conftest*
10021 if test $ac_cv_prog_gcc_traditional = no; then
10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023 /* end confdefs.h. */
10024 #include <termio.h>
10025 Autoconf TCGETA
10026 _ACEOF
10027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10028 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10029 ac_cv_prog_gcc_traditional=yes
10031 rm -f conftest*
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10036 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10037 if test $ac_cv_prog_gcc_traditional = yes; then
10038 CC="$CC -traditional"
10042 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10043 if test "x$ac_cv_type_pid_t" = x""yes; then :
10045 else
10047 cat >>confdefs.h <<_ACEOF
10048 #define pid_t int
10049 _ACEOF
10053 for ac_header in vfork.h
10054 do :
10055 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10056 if test "x$ac_cv_header_vfork_h" = x""yes; then :
10057 cat >>confdefs.h <<_ACEOF
10058 #define HAVE_VFORK_H 1
10059 _ACEOF
10063 done
10065 for ac_func in fork vfork
10066 do :
10067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10068 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10069 eval as_val=\$$as_ac_var
10070 if test "x$as_val" = x""yes; then :
10071 cat >>confdefs.h <<_ACEOF
10072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10073 _ACEOF
10076 done
10078 if test "x$ac_cv_func_fork" = xyes; then
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10080 $as_echo_n "checking for working fork... " >&6; }
10081 if test "${ac_cv_func_fork_works+set}" = set; then :
10082 $as_echo_n "(cached) " >&6
10083 else
10084 if test "$cross_compiling" = yes; then :
10085 ac_cv_func_fork_works=cross
10086 else
10087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088 /* end confdefs.h. */
10089 $ac_includes_default
10091 main ()
10094 /* By Ruediger Kuhlmann. */
10095 return fork () < 0;
10098 return 0;
10100 _ACEOF
10101 if ac_fn_c_try_run "$LINENO"; then :
10102 ac_cv_func_fork_works=yes
10103 else
10104 ac_cv_func_fork_works=no
10106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10107 conftest.$ac_objext conftest.beam conftest.$ac_ext
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10112 $as_echo "$ac_cv_func_fork_works" >&6; }
10114 else
10115 ac_cv_func_fork_works=$ac_cv_func_fork
10117 if test "x$ac_cv_func_fork_works" = xcross; then
10118 case $host in
10119 *-*-amigaos* | *-*-msdosdjgpp*)
10120 # Override, as these systems have only a dummy fork() stub
10121 ac_cv_func_fork_works=no
10124 ac_cv_func_fork_works=yes
10126 esac
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10128 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10130 ac_cv_func_vfork_works=$ac_cv_func_vfork
10131 if test "x$ac_cv_func_vfork" = xyes; then
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10133 $as_echo_n "checking for working vfork... " >&6; }
10134 if test "${ac_cv_func_vfork_works+set}" = set; then :
10135 $as_echo_n "(cached) " >&6
10136 else
10137 if test "$cross_compiling" = yes; then :
10138 ac_cv_func_vfork_works=cross
10139 else
10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141 /* end confdefs.h. */
10142 /* Thanks to Paul Eggert for this test. */
10143 $ac_includes_default
10144 #include <sys/wait.h>
10145 #ifdef HAVE_VFORK_H
10146 # include <vfork.h>
10147 #endif
10148 /* On some sparc systems, changes by the child to local and incoming
10149 argument registers are propagated back to the parent. The compiler
10150 is told about this with #include <vfork.h>, but some compilers
10151 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10152 static variable whose address is put into a register that is
10153 clobbered by the vfork. */
10154 static void
10155 #ifdef __cplusplus
10156 sparc_address_test (int arg)
10157 # else
10158 sparc_address_test (arg) int arg;
10159 #endif
10161 static pid_t child;
10162 if (!child) {
10163 child = vfork ();
10164 if (child < 0) {
10165 perror ("vfork");
10166 _exit(2);
10168 if (!child) {
10169 arg = getpid();
10170 write(-1, "", 0);
10171 _exit (arg);
10177 main ()
10179 pid_t parent = getpid ();
10180 pid_t child;
10182 sparc_address_test (0);
10184 child = vfork ();
10186 if (child == 0) {
10187 /* Here is another test for sparc vfork register problems. This
10188 test uses lots of local variables, at least as many local
10189 variables as main has allocated so far including compiler
10190 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10191 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10192 reuse the register of parent for one of the local variables,
10193 since it will think that parent can't possibly be used any more
10194 in this routine. Assigning to the local variable will thus
10195 munge parent in the parent process. */
10196 pid_t
10197 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10198 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10199 /* Convince the compiler that p..p7 are live; otherwise, it might
10200 use the same hardware register for all 8 local variables. */
10201 if (p != p1 || p != p2 || p != p3 || p != p4
10202 || p != p5 || p != p6 || p != p7)
10203 _exit(1);
10205 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10206 from child file descriptors. If the child closes a descriptor
10207 before it execs or exits, this munges the parent's descriptor
10208 as well. Test for this by closing stdout in the child. */
10209 _exit(close(fileno(stdout)) != 0);
10210 } else {
10211 int status;
10212 struct stat st;
10214 while (wait(&status) != child)
10216 return (
10217 /* Was there some problem with vforking? */
10218 child < 0
10220 /* Did the child fail? (This shouldn't happen.) */
10221 || status
10223 /* Did the vfork/compiler bug occur? */
10224 || parent != getpid()
10226 /* Did the file descriptor bug occur? */
10227 || fstat(fileno(stdout), &st) != 0
10231 _ACEOF
10232 if ac_fn_c_try_run "$LINENO"; then :
10233 ac_cv_func_vfork_works=yes
10234 else
10235 ac_cv_func_vfork_works=no
10237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10238 conftest.$ac_objext conftest.beam conftest.$ac_ext
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10243 $as_echo "$ac_cv_func_vfork_works" >&6; }
10246 if test "x$ac_cv_func_fork_works" = xcross; then
10247 ac_cv_func_vfork_works=$ac_cv_func_vfork
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10249 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10252 if test "x$ac_cv_func_vfork_works" = xyes; then
10254 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10256 else
10258 $as_echo "#define vfork fork" >>confdefs.h
10261 if test "x$ac_cv_func_fork_works" = xyes; then
10263 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10268 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10269 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10270 $as_echo_n "(cached) " >&6
10271 else
10272 rm -f conftest.sym conftest.file
10273 echo >conftest.file
10274 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10275 if test "$cross_compiling" = yes; then :
10276 ac_cv_func_lstat_dereferences_slashed_symlink=no
10277 else
10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10280 $ac_includes_default
10282 main ()
10284 struct stat sbuf;
10285 /* Linux will dereference the symlink and fail, as required by POSIX.
10286 That is better in the sense that it means we will not
10287 have to compile and use the lstat wrapper. */
10288 return lstat ("conftest.sym/", &sbuf) == 0;
10290 return 0;
10292 _ACEOF
10293 if ac_fn_c_try_run "$LINENO"; then :
10294 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10295 else
10296 ac_cv_func_lstat_dereferences_slashed_symlink=no
10298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10299 conftest.$ac_objext conftest.beam conftest.$ac_ext
10302 else
10303 # If the `ln -s' command failed, then we probably don't even
10304 # have an lstat function.
10305 ac_cv_func_lstat_dereferences_slashed_symlink=no
10307 rm -f conftest.sym conftest.file
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10311 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10313 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10315 cat >>confdefs.h <<_ACEOF
10316 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10317 _ACEOF
10320 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10321 case " $LIBOBJS " in
10322 *" lstat.$ac_objext "* ) ;;
10323 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10325 esac
10329 if test x$SYS != xwin32; then :
10331 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10332 # -lseq on Dynix/PTX, -lgen on Unixware.
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
10334 $as_echo_n "checking for library containing getmntent... " >&6; }
10335 if test "${ac_cv_search_getmntent+set}" = set; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 ac_func_search_save_LIBS=$LIBS
10339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10340 /* end confdefs.h. */
10342 /* Override any GCC internal prototype to avoid an error.
10343 Use char because int might match the return type of a GCC
10344 builtin and then its argument prototype would still apply. */
10345 #ifdef __cplusplus
10346 extern "C"
10347 #endif
10348 char getmntent ();
10350 main ()
10352 return getmntent ();
10354 return 0;
10356 _ACEOF
10357 for ac_lib in '' sun seq gen; do
10358 if test -z "$ac_lib"; then
10359 ac_res="none required"
10360 else
10361 ac_res=-l$ac_lib
10362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10364 if ac_fn_c_try_link "$LINENO"; then :
10365 ac_cv_search_getmntent=$ac_res
10367 rm -f core conftest.err conftest.$ac_objext \
10368 conftest$ac_exeext
10369 if test "${ac_cv_search_getmntent+set}" = set; then :
10370 break
10372 done
10373 if test "${ac_cv_search_getmntent+set}" = set; then :
10375 else
10376 ac_cv_search_getmntent=no
10378 rm conftest.$ac_ext
10379 LIBS=$ac_func_search_save_LIBS
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
10382 $as_echo "$ac_cv_search_getmntent" >&6; }
10383 ac_res=$ac_cv_search_getmntent
10384 if test "$ac_res" != no; then :
10385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10386 ac_cv_func_getmntent=yes
10388 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
10390 else
10391 ac_cv_func_getmntent=no
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
10396 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
10397 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 if test "$cross_compiling" = yes; then :
10401 ac_cv_func_lstat_empty_string_bug=yes
10402 else
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h. */
10405 $ac_includes_default
10407 main ()
10409 struct stat sbuf;
10410 return lstat ("", &sbuf) == 0;
10412 return 0;
10414 _ACEOF
10415 if ac_fn_c_try_run "$LINENO"; then :
10416 ac_cv_func_lstat_empty_string_bug=no
10417 else
10418 ac_cv_func_lstat_empty_string_bug=yes
10420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10421 conftest.$ac_objext conftest.beam conftest.$ac_ext
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
10426 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
10427 if test $ac_cv_func_lstat_empty_string_bug = yes; then
10428 case " $LIBOBJS " in
10429 *" lstat.$ac_objext "* ) ;;
10430 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10432 esac
10435 cat >>confdefs.h <<_ACEOF
10436 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
10437 _ACEOF
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10442 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10443 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 rm -f conftest.sym conftest.file
10447 echo >conftest.file
10448 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10449 if test "$cross_compiling" = yes; then :
10450 ac_cv_func_lstat_dereferences_slashed_symlink=no
10451 else
10452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453 /* end confdefs.h. */
10454 $ac_includes_default
10456 main ()
10458 struct stat sbuf;
10459 /* Linux will dereference the symlink and fail, as required by POSIX.
10460 That is better in the sense that it means we will not
10461 have to compile and use the lstat wrapper. */
10462 return lstat ("conftest.sym/", &sbuf) == 0;
10464 return 0;
10466 _ACEOF
10467 if ac_fn_c_try_run "$LINENO"; then :
10468 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10469 else
10470 ac_cv_func_lstat_dereferences_slashed_symlink=no
10472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10473 conftest.$ac_objext conftest.beam conftest.$ac_ext
10476 else
10477 # If the `ln -s' command failed, then we probably don't even
10478 # have an lstat function.
10479 ac_cv_func_lstat_dereferences_slashed_symlink=no
10481 rm -f conftest.sym conftest.file
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10485 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10487 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10489 cat >>confdefs.h <<_ACEOF
10490 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10491 _ACEOF
10494 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10495 case " $LIBOBJS " in
10496 *" lstat.$ac_objext "* ) ;;
10497 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10499 esac
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
10506 $as_echo_n "checking for working memcmp... " >&6; }
10507 if test "${ac_cv_func_memcmp_working+set}" = set; then :
10508 $as_echo_n "(cached) " >&6
10509 else
10510 if test "$cross_compiling" = yes; then :
10511 ac_cv_func_memcmp_working=no
10512 else
10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514 /* end confdefs.h. */
10515 $ac_includes_default
10517 main ()
10520 /* Some versions of memcmp are not 8-bit clean. */
10521 char c0 = '\100', c1 = '\200', c2 = '\201';
10522 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10523 return 1;
10525 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10526 or more and with at least one buffer not starting on a 4-byte boundary.
10527 William Lewis provided this test program. */
10529 char foo[21];
10530 char bar[21];
10531 int i;
10532 for (i = 0; i < 4; i++)
10534 char *a = foo + i;
10535 char *b = bar + i;
10536 strcpy (a, "--------01111111");
10537 strcpy (b, "--------10000000");
10538 if (memcmp (a, b, 16) >= 0)
10539 return 1;
10541 return 0;
10545 return 0;
10547 _ACEOF
10548 if ac_fn_c_try_run "$LINENO"; then :
10549 ac_cv_func_memcmp_working=yes
10550 else
10551 ac_cv_func_memcmp_working=no
10553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10554 conftest.$ac_objext conftest.beam conftest.$ac_ext
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
10559 $as_echo "$ac_cv_func_memcmp_working" >&6; }
10560 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10561 *" memcmp.$ac_objext "* ) ;;
10562 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10564 esac
10567 for ac_header in sys/select.h sys/socket.h
10568 do :
10569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10570 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10571 eval as_val=\$$as_ac_Header
10572 if test "x$as_val" = x""yes; then :
10573 cat >>confdefs.h <<_ACEOF
10574 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10575 _ACEOF
10579 done
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
10582 $as_echo_n "checking types of arguments for select... " >&6; }
10583 if test "${ac_cv_func_select_args+set}" = set; then :
10584 $as_echo_n "(cached) " >&6
10585 else
10586 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10587 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10588 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10591 $ac_includes_default
10592 #ifdef HAVE_SYS_SELECT_H
10593 # include <sys/select.h>
10594 #endif
10595 #ifdef HAVE_SYS_SOCKET_H
10596 # include <sys/socket.h>
10597 #endif
10600 main ()
10602 extern int select ($ac_arg1,
10603 $ac_arg234, $ac_arg234, $ac_arg234,
10604 $ac_arg5);
10606 return 0;
10608 _ACEOF
10609 if ac_fn_c_try_compile "$LINENO"; then :
10610 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10613 done
10614 done
10615 done
10616 # Provide a safe default value.
10617 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10621 $as_echo "$ac_cv_func_select_args" >&6; }
10622 ac_save_IFS=$IFS; IFS=','
10623 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10624 IFS=$ac_save_IFS
10625 shift
10627 cat >>confdefs.h <<_ACEOF
10628 #define SELECT_TYPE_ARG1 $1
10629 _ACEOF
10632 cat >>confdefs.h <<_ACEOF
10633 #define SELECT_TYPE_ARG234 ($2)
10634 _ACEOF
10637 cat >>confdefs.h <<_ACEOF
10638 #define SELECT_TYPE_ARG5 ($3)
10639 _ACEOF
10641 rm -f conftest*
10643 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
10644 $as_echo_n "(cached) " >&6
10645 else
10646 ac_cv_func_setvbuf_reversed=no
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10651 $as_echo_n "checking return type of signal handlers... " >&6; }
10652 if test "${ac_cv_type_signal+set}" = set; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10657 #include <sys/types.h>
10658 #include <signal.h>
10661 main ()
10663 return *(signal (0, 0)) (0) == 1;
10665 return 0;
10667 _ACEOF
10668 if ac_fn_c_try_compile "$LINENO"; then :
10669 ac_cv_type_signal=int
10670 else
10671 ac_cv_type_signal=void
10673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10676 $as_echo "$ac_cv_type_signal" >&6; }
10678 cat >>confdefs.h <<_ACEOF
10679 #define RETSIGTYPE $ac_cv_type_signal
10680 _ACEOF
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
10684 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
10685 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
10686 $as_echo_n "(cached) " >&6
10687 else
10688 if test "$cross_compiling" = yes; then :
10689 ac_cv_func_stat_empty_string_bug=yes
10690 else
10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h. */
10693 $ac_includes_default
10695 main ()
10697 struct stat sbuf;
10698 return stat ("", &sbuf) == 0;
10700 return 0;
10702 _ACEOF
10703 if ac_fn_c_try_run "$LINENO"; then :
10704 ac_cv_func_stat_empty_string_bug=no
10705 else
10706 ac_cv_func_stat_empty_string_bug=yes
10708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10709 conftest.$ac_objext conftest.beam conftest.$ac_ext
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
10714 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
10715 if test $ac_cv_func_stat_empty_string_bug = yes; then
10716 case " $LIBOBJS " in
10717 *" stat.$ac_objext "* ) ;;
10718 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10720 esac
10723 cat >>confdefs.h <<_ACEOF
10724 #define HAVE_STAT_EMPTY_STRING_BUG 1
10725 _ACEOF
10729 for ac_func in strftime
10730 do :
10731 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
10732 if test "x$ac_cv_func_strftime" = x""yes; then :
10733 cat >>confdefs.h <<_ACEOF
10734 #define HAVE_STRFTIME 1
10735 _ACEOF
10737 else
10738 # strftime is in -lintl on SCO UNIX.
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
10740 $as_echo_n "checking for strftime in -lintl... " >&6; }
10741 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
10742 $as_echo_n "(cached) " >&6
10743 else
10744 ac_check_lib_save_LIBS=$LIBS
10745 LIBS="-lintl $LIBS"
10746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747 /* end confdefs.h. */
10749 /* Override any GCC internal prototype to avoid an error.
10750 Use char because int might match the return type of a GCC
10751 builtin and then its argument prototype would still apply. */
10752 #ifdef __cplusplus
10753 extern "C"
10754 #endif
10755 char strftime ();
10757 main ()
10759 return strftime ();
10761 return 0;
10763 _ACEOF
10764 if ac_fn_c_try_link "$LINENO"; then :
10765 ac_cv_lib_intl_strftime=yes
10766 else
10767 ac_cv_lib_intl_strftime=no
10769 rm -f core conftest.err conftest.$ac_objext \
10770 conftest$ac_exeext conftest.$ac_ext
10771 LIBS=$ac_check_lib_save_LIBS
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
10774 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
10775 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
10776 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
10778 LIBS="-lintl $LIBS"
10782 done
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
10785 $as_echo_n "checking for working strtod... " >&6; }
10786 if test "${ac_cv_func_strtod+set}" = set; then :
10787 $as_echo_n "(cached) " >&6
10788 else
10789 if test "$cross_compiling" = yes; then :
10790 ac_cv_func_strtod=no
10791 else
10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10795 $ac_includes_default
10796 #ifndef strtod
10797 double strtod ();
10798 #endif
10800 main()
10803 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10804 char *string = " +69";
10805 char *term;
10806 double value;
10807 value = strtod (string, &term);
10808 if (value != 69 || term != (string + 4))
10809 return 1;
10813 /* Under Solaris 2.4, strtod returns the wrong value for the
10814 terminating character under some conditions. */
10815 char *string = "NaN";
10816 char *term;
10817 strtod (string, &term);
10818 if (term != string && *(term - 1) == 0)
10819 return 1;
10821 return 0;
10824 _ACEOF
10825 if ac_fn_c_try_run "$LINENO"; then :
10826 ac_cv_func_strtod=yes
10827 else
10828 ac_cv_func_strtod=no
10830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10831 conftest.$ac_objext conftest.beam conftest.$ac_ext
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
10836 $as_echo "$ac_cv_func_strtod" >&6; }
10837 if test $ac_cv_func_strtod = no; then
10838 case " $LIBOBJS " in
10839 *" strtod.$ac_objext "* ) ;;
10840 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10842 esac
10844 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
10845 if test "x$ac_cv_func_pow" = x""yes; then :
10849 if test $ac_cv_func_pow = no; then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
10851 $as_echo_n "checking for pow in -lm... " >&6; }
10852 if test "${ac_cv_lib_m_pow+set}" = set; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 ac_check_lib_save_LIBS=$LIBS
10856 LIBS="-lm $LIBS"
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10860 /* Override any GCC internal prototype to avoid an error.
10861 Use char because int might match the return type of a GCC
10862 builtin and then its argument prototype would still apply. */
10863 #ifdef __cplusplus
10864 extern "C"
10865 #endif
10866 char pow ();
10868 main ()
10870 return pow ();
10872 return 0;
10874 _ACEOF
10875 if ac_fn_c_try_link "$LINENO"; then :
10876 ac_cv_lib_m_pow=yes
10877 else
10878 ac_cv_lib_m_pow=no
10880 rm -f core conftest.err conftest.$ac_objext \
10881 conftest$ac_exeext conftest.$ac_ext
10882 LIBS=$ac_check_lib_save_LIBS
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
10885 $as_echo "$ac_cv_lib_m_pow" >&6; }
10886 if test "x$ac_cv_lib_m_pow" = x""yes; then :
10887 POW_LIB=-lm
10888 else
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
10890 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10897 for ac_func in vprintf
10898 do :
10899 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10900 if test "x$ac_cv_func_vprintf" = x""yes; then :
10901 cat >>confdefs.h <<_ACEOF
10902 #define HAVE_VPRINTF 1
10903 _ACEOF
10905 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10906 if test "x$ac_cv_func__doprnt" = x""yes; then :
10908 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10913 done
10916 if test $cross_compiling = yes -a $gnumalloc = yes; then :
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10919 configure cannot check whether malloc() and realloc() are GNU libc
10920 compatible. You have to be ABSOLUTELY sure that they are, otherwise
10921 run configure with the --without-gnu-malloc switch." >&5
10922 $as_echo "$as_me: WARNING:
10923 configure cannot check whether malloc() and realloc() are GNU libc
10924 compatible. You have to be ABSOLUTELY sure that they are, otherwise
10925 run configure with the --without-gnu-malloc switch." >&2;}
10926 _mule_warning_8=yes
10927 _mule_has_warnings=yes
10929 ac_cv_func_malloc_0_nonnull=yes
10930 ac_cv_func_realloc_0_nonnull=yes
10933 for ac_header in stdlib.h
10934 do :
10935 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10936 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
10937 cat >>confdefs.h <<_ACEOF
10938 #define HAVE_STDLIB_H 1
10939 _ACEOF
10943 done
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10946 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
10947 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
10948 $as_echo_n "(cached) " >&6
10949 else
10950 if test "$cross_compiling" = yes; then :
10951 ac_cv_func_malloc_0_nonnull=no
10952 else
10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10955 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10956 # include <stdlib.h>
10957 #else
10958 char *malloc ();
10959 #endif
10962 main ()
10964 return ! malloc (0);
10966 return 0;
10968 _ACEOF
10969 if ac_fn_c_try_run "$LINENO"; then :
10970 ac_cv_func_malloc_0_nonnull=yes
10971 else
10972 ac_cv_func_malloc_0_nonnull=no
10974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10975 conftest.$ac_objext conftest.beam conftest.$ac_ext
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10980 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
10981 if test $ac_cv_func_malloc_0_nonnull = yes; then :
10983 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
10985 else
10986 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
10988 case " $LIBOBJS " in
10989 *" malloc.$ac_objext "* ) ;;
10990 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
10992 esac
10995 $as_echo "#define malloc rpl_malloc" >>confdefs.h
11000 for ac_header in stdlib.h
11001 do :
11002 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11003 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
11004 cat >>confdefs.h <<_ACEOF
11005 #define HAVE_STDLIB_H 1
11006 _ACEOF
11010 done
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
11013 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
11014 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
11015 $as_echo_n "(cached) " >&6
11016 else
11017 if test "$cross_compiling" = yes; then :
11018 ac_cv_func_realloc_0_nonnull=no
11019 else
11020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11021 /* end confdefs.h. */
11022 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11023 # include <stdlib.h>
11024 #else
11025 char *realloc ();
11026 #endif
11029 main ()
11031 return ! realloc (0, 0);
11033 return 0;
11035 _ACEOF
11036 if ac_fn_c_try_run "$LINENO"; then :
11037 ac_cv_func_realloc_0_nonnull=yes
11038 else
11039 ac_cv_func_realloc_0_nonnull=no
11041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11042 conftest.$ac_objext conftest.beam conftest.$ac_ext
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
11047 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
11048 if test $ac_cv_func_realloc_0_nonnull = yes; then :
11050 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
11052 else
11053 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
11055 case " $LIBOBJS " in
11056 *" realloc.$ac_objext "* ) ;;
11057 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
11059 esac
11062 $as_echo "#define realloc rpl_realloc" >>confdefs.h
11067 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
11068 do :
11069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11070 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11071 eval as_val=\$$as_ac_var
11072 if test "x$as_val" = x""yes; then :
11073 cat >>confdefs.h <<_ACEOF
11074 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11075 _ACEOF
11078 done
11080 #-------------------------------------------------------------------------------
11081 # End of autoscan stuff
11082 #-------------------------------------------------------------------------------
11084 for ac_func in mkdir getrlimit setrlimit getopt_long
11085 do :
11086 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11087 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11088 eval as_val=\$$as_ac_var
11089 if test "x$as_val" = x""yes; then :
11090 cat >>confdefs.h <<_ACEOF
11091 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11092 _ACEOF
11095 done
11101 for ac_header in $ac_header_list
11102 do :
11103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11104 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11106 eval as_val=\$$as_ac_Header
11107 if test "x$as_val" = x""yes; then :
11108 cat >>confdefs.h <<_ACEOF
11109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11110 _ACEOF
11114 done
11122 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
11124 # Check whether --enable-mmap was given.
11125 if test "${enable_mmap+set}" = set; then :
11126 enableval=$enable_mmap;
11131 if test ${enable_mmap:-no} = yes; then :
11133 for ac_header in sys/mman.h
11134 do :
11135 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11136 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11137 cat >>confdefs.h <<_ACEOF
11138 #define HAVE_SYS_MMAN_H 1
11139 _ACEOF
11143 done
11146 for ac_func in getpagesize
11147 do :
11148 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11149 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11150 cat >>confdefs.h <<_ACEOF
11151 #define HAVE_GETPAGESIZE 1
11152 _ACEOF
11155 done
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11158 $as_echo_n "checking for working mmap... " >&6; }
11159 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11160 $as_echo_n "(cached) " >&6
11161 else
11162 if test "$cross_compiling" = yes; then :
11163 ac_cv_func_mmap_fixed_mapped=no
11164 else
11165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11166 /* end confdefs.h. */
11167 $ac_includes_default
11168 /* malloc might have been renamed as rpl_malloc. */
11169 #undef malloc
11171 /* Thanks to Mike Haertel and Jim Avera for this test.
11172 Here is a matrix of mmap possibilities:
11173 mmap private not fixed
11174 mmap private fixed at somewhere currently unmapped
11175 mmap private fixed at somewhere already mapped
11176 mmap shared not fixed
11177 mmap shared fixed at somewhere currently unmapped
11178 mmap shared fixed at somewhere already mapped
11179 For private mappings, we should verify that changes cannot be read()
11180 back from the file, nor mmap's back from the file at a different
11181 address. (There have been systems where private was not correctly
11182 implemented like the infamous i386 svr4.0, and systems where the
11183 VM page cache was not coherent with the file system buffer cache
11184 like early versions of FreeBSD and possibly contemporary NetBSD.)
11185 For shared mappings, we should conversely verify that changes get
11186 propagated back to all the places they're supposed to be.
11188 Grep wants private fixed already mapped.
11189 The main things grep needs to know about mmap are:
11190 * does it exist and is it safe to write into the mmap'd area
11191 * how to use it (BSD variants) */
11193 #include <fcntl.h>
11194 #include <sys/mman.h>
11196 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11197 char *malloc ();
11198 #endif
11200 /* This mess was copied from the GNU getpagesize.h. */
11201 #ifndef HAVE_GETPAGESIZE
11202 # ifdef _SC_PAGESIZE
11203 # define getpagesize() sysconf(_SC_PAGESIZE)
11204 # else /* no _SC_PAGESIZE */
11205 # ifdef HAVE_SYS_PARAM_H
11206 # include <sys/param.h>
11207 # ifdef EXEC_PAGESIZE
11208 # define getpagesize() EXEC_PAGESIZE
11209 # else /* no EXEC_PAGESIZE */
11210 # ifdef NBPG
11211 # define getpagesize() NBPG * CLSIZE
11212 # ifndef CLSIZE
11213 # define CLSIZE 1
11214 # endif /* no CLSIZE */
11215 # else /* no NBPG */
11216 # ifdef NBPC
11217 # define getpagesize() NBPC
11218 # else /* no NBPC */
11219 # ifdef PAGESIZE
11220 # define getpagesize() PAGESIZE
11221 # endif /* PAGESIZE */
11222 # endif /* no NBPC */
11223 # endif /* no NBPG */
11224 # endif /* no EXEC_PAGESIZE */
11225 # else /* no HAVE_SYS_PARAM_H */
11226 # define getpagesize() 8192 /* punt totally */
11227 # endif /* no HAVE_SYS_PARAM_H */
11228 # endif /* no _SC_PAGESIZE */
11230 #endif /* no HAVE_GETPAGESIZE */
11233 main ()
11235 char *data, *data2, *data3;
11236 int i, pagesize;
11237 int fd, fd2;
11239 pagesize = getpagesize ();
11241 /* First, make a file with some known garbage in it. */
11242 data = (char *) malloc (pagesize);
11243 if (!data)
11244 return 1;
11245 for (i = 0; i < pagesize; ++i)
11246 *(data + i) = rand ();
11247 umask (0);
11248 fd = creat ("conftest.mmap", 0600);
11249 if (fd < 0)
11250 return 2;
11251 if (write (fd, data, pagesize) != pagesize)
11252 return 3;
11253 close (fd);
11255 /* Next, check that the tail of a page is zero-filled. File must have
11256 non-zero length, otherwise we risk SIGBUS for entire page. */
11257 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11258 if (fd2 < 0)
11259 return 4;
11260 data2 = "";
11261 if (write (fd2, data2, 1) != 1)
11262 return 5;
11263 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11264 if (data2 == MAP_FAILED)
11265 return 6;
11266 for (i = 0; i < pagesize; ++i)
11267 if (*(data2 + i))
11268 return 7;
11269 close (fd2);
11270 if (munmap (data2, pagesize))
11271 return 8;
11273 /* Next, try to mmap the file at a fixed address which already has
11274 something else allocated at it. If we can, also make sure that
11275 we see the same garbage. */
11276 fd = open ("conftest.mmap", O_RDWR);
11277 if (fd < 0)
11278 return 9;
11279 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11280 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11281 return 10;
11282 for (i = 0; i < pagesize; ++i)
11283 if (*(data + i) != *(data2 + i))
11284 return 11;
11286 /* Finally, make sure that changes to the mapped area do not
11287 percolate back to the file as seen by read(). (This is a bug on
11288 some variants of i386 svr4.0.) */
11289 for (i = 0; i < pagesize; ++i)
11290 *(data2 + i) = *(data2 + i) + 1;
11291 data3 = (char *) malloc (pagesize);
11292 if (!data3)
11293 return 12;
11294 if (read (fd, data3, pagesize) != pagesize)
11295 return 13;
11296 for (i = 0; i < pagesize; ++i)
11297 if (*(data + i) != *(data3 + i))
11298 return 14;
11299 close (fd);
11300 return 0;
11302 _ACEOF
11303 if ac_fn_c_try_run "$LINENO"; then :
11304 ac_cv_func_mmap_fixed_mapped=yes
11305 else
11306 ac_cv_func_mmap_fixed_mapped=no
11308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11309 conftest.$ac_objext conftest.beam conftest.$ac_ext
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11314 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11315 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11317 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11320 rm -f conftest.mmap conftest.txt
11322 for ac_func in munmap sysconf
11323 do :
11324 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11325 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11326 eval as_val=\$$as_ac_var
11327 if test "x$as_val" = x""yes; then :
11328 cat >>confdefs.h <<_ACEOF
11329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11330 _ACEOF
11333 done
11335 if test $ac_cv_func_sysconf = yes; then :
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
11338 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
11339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11343 #include <unistd.h>
11346 main ()
11349 return sysconf(_SC_PAGESIZE);
11352 return 0;
11355 _ACEOF
11356 if ac_fn_c_try_link "$LINENO"; then :
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
11359 $as_echo "_SC_PAGESIZE" >&6; }
11361 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
11364 else
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11370 #include <unistd.h>
11373 main ()
11376 return sysconf(_SC_PAGE_SIZE);
11379 return 0;
11382 _ACEOF
11383 if ac_fn_c_try_link "$LINENO"; then :
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
11386 $as_echo "_SC_PAGE_SIZE" >&6; }
11388 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
11391 else
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11394 $as_echo "none" >&6; }
11397 rm -f core conftest.err conftest.$ac_objext \
11398 conftest$ac_exeext conftest.$ac_ext
11401 rm -f core conftest.err conftest.$ac_objext \
11402 conftest$ac_exeext conftest.$ac_ext
11406 else
11408 # fake the result of the test for munmap() for the gettext macros
11409 ac_cv_func_munmap=no
11415 mule_backup_CPPFLAGS="$CPPFLAGS"
11416 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
11417 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
11418 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
11419 ac_have_decl=1
11420 else
11421 ac_have_decl=0
11424 cat >>confdefs.h <<_ACEOF
11425 #define HAVE_DECL_STRERROR_R $ac_have_decl
11426 _ACEOF
11428 for ac_func in strerror_r
11429 do :
11430 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
11431 if test "x$ac_cv_func_strerror_r" = x""yes; then :
11432 cat >>confdefs.h <<_ACEOF
11433 #define HAVE_STRERROR_R 1
11434 _ACEOF
11437 done
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
11440 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
11441 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
11442 $as_echo_n "(cached) " >&6
11443 else
11445 ac_cv_func_strerror_r_char_p=no
11446 if test $ac_cv_have_decl_strerror_r = yes; then
11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11449 $ac_includes_default
11451 main ()
11454 char buf[100];
11455 char x = *strerror_r (0, buf, sizeof buf);
11456 char *p = strerror_r (0, buf, sizeof buf);
11457 return !p || x;
11460 return 0;
11462 _ACEOF
11463 if ac_fn_c_try_compile "$LINENO"; then :
11464 ac_cv_func_strerror_r_char_p=yes
11466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467 else
11468 # strerror_r is not declared. Choose between
11469 # systems that have relatively inaccessible declarations for the
11470 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
11471 # former has a strerror_r that returns char*, while the latter
11472 # has a strerror_r that returns `int'.
11473 # This test should segfault on the DEC system.
11474 if test "$cross_compiling" = yes; then :
11476 else
11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h. */
11479 $ac_includes_default
11480 extern char *strerror_r ();
11482 main ()
11484 char buf[100];
11485 char x = *strerror_r (0, buf, sizeof buf);
11486 return ! isalpha (x);
11488 return 0;
11490 _ACEOF
11491 if ac_fn_c_try_run "$LINENO"; then :
11492 ac_cv_func_strerror_r_char_p=yes
11494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11495 conftest.$ac_objext conftest.beam conftest.$ac_ext
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
11502 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
11503 if test $ac_cv_func_strerror_r_char_p = yes; then
11505 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
11509 CPPFLAGS="$mule_backup_CPPFLAGS"
11511 # Look for a way to preallocate disk space for files.
11512 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
11515 $as_echo_n "checking for fallocate... " >&6; }
11516 mule_backup_CPPFLAGS="$CPPFLAGS"
11517 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11522 #define _GNU_SOURCE
11523 #ifdef HAVE_FCNTL_H
11524 # include <fcntl.h>
11525 #endif
11526 #include <linux/falloc.h>
11529 main ()
11532 fallocate(0, 0, 0, 0);
11535 return 0;
11538 _ACEOF
11539 if ac_fn_c_try_link "$LINENO"; then :
11542 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11545 $as_echo "yes" >&6; }
11547 else
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11553 rm -f core conftest.err conftest.$ac_objext \
11554 conftest$ac_exeext conftest.$ac_ext
11555 CPPFLAGS="$mule_backup_CPPFLAGS"
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
11559 $as_echo_n "checking for SYS_fallocate... " >&6; }
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11564 #include <sys/syscall.h>
11565 #include <sys/types.h>
11566 #include <unistd.h>
11569 main ()
11572 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
11575 return 0;
11578 _ACEOF
11579 if ac_fn_c_try_link "$LINENO"; then :
11582 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11585 $as_echo "yes" >&6; }
11587 else
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11590 $as_echo "no" >&6; }
11593 rm -f core conftest.err conftest.$ac_objext \
11594 conftest$ac_exeext conftest.$ac_ext
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
11597 $as_echo_n "checking for posix_fallocate... " >&6; }
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h. */
11602 #define _XOPEN_SOURCE 600
11603 #include <stdlib.h>
11604 #ifdef HAVE_FCNTL_H
11605 # include <fcntl.h>
11606 #endif
11609 main ()
11612 posix_fallocate(0, 0, 0);
11615 return 0;
11618 _ACEOF
11619 if ac_fn_c_try_link "$LINENO"; then :
11622 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11625 $as_echo "yes" >&6; }
11627 else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630 $as_echo "no" >&6; }
11633 rm -f core conftest.err conftest.$ac_objext \
11634 conftest$ac_exeext conftest.$ac_ext
11638 # Checking Native Language Support
11641 MKINSTALLDIRS=
11642 if test -n "$ac_aux_dir"; then
11643 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
11645 if test -z "$MKINSTALLDIRS"; then
11646 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11653 # Extract the first word of "msgfmt", so it can be a program name with args.
11654 set dummy msgfmt; ac_word=$2
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656 $as_echo_n "checking for $ac_word... " >&6; }
11657 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11658 $as_echo_n "(cached) " >&6
11659 else
11660 case "$MSGFMT" in
11662 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11666 for ac_dir in $PATH; do
11667 test -z "$ac_dir" && ac_dir=.
11668 if test -f $ac_dir/$ac_word; then
11669 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11670 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11671 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11672 break
11675 done
11676 IFS="$ac_save_ifs"
11677 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11679 esac
11681 MSGFMT="$ac_cv_path_MSGFMT"
11682 if test "$MSGFMT" != ":"; then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11684 $as_echo "$MSGFMT" >&6; }
11685 else
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687 $as_echo "no" >&6; }
11690 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11691 set dummy gmsgfmt; ac_word=$2
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693 $as_echo_n "checking for $ac_word... " >&6; }
11694 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11695 $as_echo_n "(cached) " >&6
11696 else
11697 case $GMSGFMT in
11698 [\\/]* | ?:[\\/]*)
11699 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703 for as_dir in $PATH
11705 IFS=$as_save_IFS
11706 test -z "$as_dir" && as_dir=.
11707 for ac_exec_ext in '' $ac_executable_extensions; do
11708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11709 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11711 break 2
11713 done
11714 done
11715 IFS=$as_save_IFS
11717 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11719 esac
11721 GMSGFMT=$ac_cv_path_GMSGFMT
11722 if test -n "$GMSGFMT"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11724 $as_echo "$GMSGFMT" >&6; }
11725 else
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11732 # Extract the first word of "xgettext", so it can be a program name with args.
11733 set dummy xgettext; ac_word=$2
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11735 $as_echo_n "checking for $ac_word... " >&6; }
11736 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11737 $as_echo_n "(cached) " >&6
11738 else
11739 case "$XGETTEXT" in
11741 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11745 for ac_dir in $PATH; do
11746 test -z "$ac_dir" && ac_dir=.
11747 if test -f $ac_dir/$ac_word; then
11748 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
11749 (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
11750 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11751 break
11754 done
11755 IFS="$ac_save_ifs"
11756 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11758 esac
11760 XGETTEXT="$ac_cv_path_XGETTEXT"
11761 if test "$XGETTEXT" != ":"; then
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11763 $as_echo "$XGETTEXT" >&6; }
11764 else
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11769 rm -f messages.po
11771 # Extract the first word of "msgmerge", so it can be a program name with args.
11772 set dummy msgmerge; ac_word=$2
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11774 $as_echo_n "checking for $ac_word... " >&6; }
11775 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11776 $as_echo_n "(cached) " >&6
11777 else
11778 case "$MSGMERGE" in
11780 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11784 for ac_dir in $PATH; do
11785 test -z "$ac_dir" && ac_dir=.
11786 if test -f $ac_dir/$ac_word; then
11787 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11788 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
11789 break
11792 done
11793 IFS="$ac_save_ifs"
11794 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11796 esac
11798 MSGMERGE="$ac_cv_path_MSGMERGE"
11799 if test "$MSGMERGE" != ":"; then
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11801 $as_echo "$MSGMERGE" >&6; }
11802 else
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804 $as_echo "no" >&6; }
11808 if test "$GMSGFMT" != ":"; then
11809 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11810 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11812 else
11813 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11815 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11816 GMSGFMT=":"
11820 if test "$XGETTEXT" != ":"; then
11821 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
11822 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11824 else
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11826 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11827 XGETTEXT=":"
11829 rm -f messages.po
11832 ac_config_commands="$ac_config_commands default-1"
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
11837 $as_echo_n "checking for strerror in -lcposix... " >&6; }
11838 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 ac_check_lib_save_LIBS=$LIBS
11842 LIBS="-lcposix $LIBS"
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11846 /* Override any GCC internal prototype to avoid an error.
11847 Use char because int might match the return type of a GCC
11848 builtin and then its argument prototype would still apply. */
11849 #ifdef __cplusplus
11850 extern "C"
11851 #endif
11852 char strerror ();
11854 main ()
11856 return strerror ();
11858 return 0;
11860 _ACEOF
11861 if ac_fn_c_try_link "$LINENO"; then :
11862 ac_cv_lib_cposix_strerror=yes
11863 else
11864 ac_cv_lib_cposix_strerror=no
11866 rm -f core conftest.err conftest.$ac_objext \
11867 conftest$ac_exeext conftest.$ac_ext
11868 LIBS=$ac_check_lib_save_LIBS
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
11871 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
11872 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
11873 LIBS="$LIBS -lcposix"
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
11880 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
11881 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
11882 $as_echo_n "(cached) " >&6
11883 else
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11887 #include <features.h>
11888 #ifdef __GNU_LIBRARY__
11889 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11890 Lucky GNU user
11891 #endif
11892 #endif
11894 _ACEOF
11895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11896 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
11897 ac_cv_gnu_library_2_1=yes
11898 else
11899 ac_cv_gnu_library_2_1=no
11901 rm -f conftest*
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11907 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11909 GLIBC21="$ac_cv_gnu_library_2_1"
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
11915 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
11916 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
11917 $as_echo_n "(cached) " >&6
11918 else
11920 if test "$cross_compiling" = yes; then :
11922 # Guess based on the CPU.
11923 case "$host_cpu" in
11924 alpha* | i3456786 | m68k | s390*)
11925 gt_cv_int_divbyzero_sigfpe="guessing yes";;
11927 gt_cv_int_divbyzero_sigfpe="guessing no";;
11928 esac
11930 else
11931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11932 /* end confdefs.h. */
11934 #include <stdlib.h>
11935 #include <signal.h>
11937 static void
11938 #ifdef __cplusplus
11939 sigfpe_handler (int sig)
11940 #else
11941 sigfpe_handler (sig) int sig;
11942 #endif
11944 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
11945 exit (sig != SIGFPE);
11948 int x = 1;
11949 int y = 0;
11950 int z;
11951 int nan;
11953 int main ()
11955 signal (SIGFPE, sigfpe_handler);
11956 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
11957 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
11958 signal (SIGTRAP, sigfpe_handler);
11959 #endif
11960 /* Linux/SPARC yields signal SIGILL. */
11961 #if defined (__sparc__) && defined (__linux__)
11962 signal (SIGILL, sigfpe_handler);
11963 #endif
11965 z = x / y;
11966 nan = y / y;
11967 exit (1);
11970 _ACEOF
11971 if ac_fn_c_try_run "$LINENO"; then :
11972 gt_cv_int_divbyzero_sigfpe=yes
11973 else
11974 gt_cv_int_divbyzero_sigfpe=no
11976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11977 conftest.$ac_objext conftest.beam conftest.$ac_ext
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
11983 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
11984 case "$gt_cv_int_divbyzero_sigfpe" in
11985 *yes) value=1;;
11986 *) value=0;;
11987 esac
11989 cat >>confdefs.h <<_ACEOF
11990 #define INTDIV0_RAISES_SIGFPE $value
11991 _ACEOF
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
11996 $as_echo_n "checking for inttypes.h... " >&6; }
11997 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h. */
12002 #include <sys/types.h>
12003 #include <inttypes.h>
12005 main ()
12007 uintmax_t i = (uintmax_t) -1;
12009 return 0;
12011 _ACEOF
12012 if ac_fn_c_try_compile "$LINENO"; then :
12013 jm_ac_cv_header_inttypes_h=yes
12014 else
12015 jm_ac_cv_header_inttypes_h=no
12017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
12020 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
12021 if test $jm_ac_cv_header_inttypes_h = yes; then
12023 cat >>confdefs.h <<_ACEOF
12024 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
12025 _ACEOF
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
12031 $as_echo_n "checking for stdint.h... " >&6; }
12032 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
12033 $as_echo_n "(cached) " >&6
12034 else
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12037 #include <sys/types.h>
12038 #include <stdint.h>
12040 main ()
12042 uintmax_t i = (uintmax_t) -1;
12044 return 0;
12046 _ACEOF
12047 if ac_fn_c_try_compile "$LINENO"; then :
12048 jm_ac_cv_header_stdint_h=yes
12049 else
12050 jm_ac_cv_header_stdint_h=no
12052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
12055 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
12056 if test $jm_ac_cv_header_stdint_h = yes; then
12058 cat >>confdefs.h <<_ACEOF
12059 #define HAVE_STDINT_H_WITH_UINTMAX 1
12060 _ACEOF
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
12066 $as_echo_n "checking for unsigned long long... " >&6; }
12067 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
12068 $as_echo_n "(cached) " >&6
12069 else
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12072 unsigned long long ull = 1; int i = 63;
12074 main ()
12076 unsigned long long ullmax = (unsigned long long) -1;
12077 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
12079 return 0;
12081 _ACEOF
12082 if ac_fn_c_try_link "$LINENO"; then :
12083 ac_cv_type_unsigned_long_long=yes
12084 else
12085 ac_cv_type_unsigned_long_long=no
12087 rm -f core conftest.err conftest.$ac_objext \
12088 conftest$ac_exeext conftest.$ac_ext
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
12091 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
12092 if test $ac_cv_type_unsigned_long_long = yes; then
12094 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
12101 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
12103 test $ac_cv_type_unsigned_long_long = yes \
12104 && ac_type='unsigned long long' \
12105 || ac_type='unsigned long'
12107 cat >>confdefs.h <<_ACEOF
12108 #define uintmax_t $ac_type
12109 _ACEOF
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12115 $as_echo_n "checking for inttypes.h... " >&6; }
12116 if test "${gt_cv_header_inttypes_h+set}" = set; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h. */
12122 #include <sys/types.h>
12123 #include <inttypes.h>
12125 main ()
12129 return 0;
12131 _ACEOF
12132 if ac_fn_c_try_compile "$LINENO"; then :
12133 gt_cv_header_inttypes_h=yes
12134 else
12135 gt_cv_header_inttypes_h=no
12137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
12141 $as_echo "$gt_cv_header_inttypes_h" >&6; }
12142 if test $gt_cv_header_inttypes_h = yes; then
12144 cat >>confdefs.h <<_ACEOF
12145 #define HAVE_INTTYPES_H 1
12146 _ACEOF
12152 if test $gt_cv_header_inttypes_h = yes; then
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
12154 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
12155 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
12156 $as_echo_n "(cached) " >&6
12157 else
12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160 /* end confdefs.h. */
12161 #include <inttypes.h>
12162 #ifdef PRId32
12163 char *p = PRId32;
12164 #endif
12167 main ()
12171 return 0;
12173 _ACEOF
12174 if ac_fn_c_try_compile "$LINENO"; then :
12175 gt_cv_inttypes_pri_broken=no
12176 else
12177 gt_cv_inttypes_pri_broken=yes
12179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
12183 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
12185 if test "$gt_cv_inttypes_pri_broken" = yes; then
12187 cat >>confdefs.h <<_ACEOF
12188 #define PRI_MACROS_BROKEN 1
12189 _ACEOF
12194 if test "X$prefix" = "XNONE"; then
12195 acl_final_prefix="$ac_default_prefix"
12196 else
12197 acl_final_prefix="$prefix"
12199 if test "X$exec_prefix" = "XNONE"; then
12200 acl_final_exec_prefix='${prefix}'
12201 else
12202 acl_final_exec_prefix="$exec_prefix"
12204 acl_save_prefix="$prefix"
12205 prefix="$acl_final_prefix"
12206 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12207 prefix="$acl_save_prefix"
12210 # Check whether --with-gnu-ld was given.
12211 if test "${with_gnu_ld+set}" = set; then :
12212 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12213 else
12214 with_gnu_ld=no
12217 ac_prog=ld
12218 if test "$GCC" = yes; then
12219 # Check if gcc -print-prog-name=ld gives a path.
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12221 $as_echo_n "checking for ld used by GCC... " >&6; }
12222 case $host in
12223 *-*-mingw*)
12224 # gcc leaves a trailing carriage return which upsets mingw
12225 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12227 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12228 esac
12229 case $ac_prog in
12230 # Accept absolute paths.
12231 [\\/]* | [A-Za-z]:[\\/]*)
12232 re_direlt='/[^/][^/]*/\.\./'
12233 # Canonicalize the path of ld
12234 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12235 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12236 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12237 done
12238 test -z "$LD" && LD="$ac_prog"
12241 # If it fails, then pretend we aren't using GCC.
12242 ac_prog=ld
12245 # If it is relative, then search for the first ld in PATH.
12246 with_gnu_ld=unknown
12248 esac
12249 elif test "$with_gnu_ld" = yes; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12251 $as_echo_n "checking for GNU ld... " >&6; }
12252 else
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12254 $as_echo_n "checking for non-GNU ld... " >&6; }
12256 if test "${acl_cv_path_LD+set}" = set; then :
12257 $as_echo_n "(cached) " >&6
12258 else
12259 if test -z "$LD"; then
12260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12261 for ac_dir in $PATH; do
12262 test -z "$ac_dir" && ac_dir=.
12263 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12264 acl_cv_path_LD="$ac_dir/$ac_prog"
12265 # Check to see if the program is GNU ld. I'd rather use --version,
12266 # but apparently some GNU ld's only accept -v.
12267 # Break only if it was the GNU/non-GNU ld that we prefer.
12268 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12269 test "$with_gnu_ld" != no && break
12270 else
12271 test "$with_gnu_ld" != yes && break
12274 done
12275 IFS="$ac_save_ifs"
12276 else
12277 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12281 LD="$acl_cv_path_LD"
12282 if test -n "$LD"; then
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12284 $as_echo "$LD" >&6; }
12285 else
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12289 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12291 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12292 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
12293 $as_echo_n "(cached) " >&6
12294 else
12295 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12296 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12297 acl_cv_prog_gnu_ld=yes
12298 else
12299 acl_cv_prog_gnu_ld=no
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12303 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12304 with_gnu_ld=$acl_cv_prog_gnu_ld
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12309 $as_echo_n "checking for shared library run path origin... " >&6; }
12310 if test "${acl_cv_rpath+set}" = set; then :
12311 $as_echo_n "(cached) " >&6
12312 else
12314 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12315 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12316 . ./conftest.sh
12317 rm -f ./conftest.sh
12318 acl_cv_rpath=done
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12322 $as_echo "$acl_cv_rpath" >&6; }
12323 wl="$acl_cv_wl"
12324 libext="$acl_cv_libext"
12325 shlibext="$acl_cv_shlibext"
12326 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12327 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12328 hardcode_direct="$acl_cv_hardcode_direct"
12329 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12330 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
12331 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
12332 # Check whether --enable-rpath was given.
12333 if test "${enable_rpath+set}" = set; then :
12334 enableval=$enable_rpath; :
12335 else
12336 enable_rpath=yes
12346 use_additional=yes
12348 acl_save_prefix="$prefix"
12349 prefix="$acl_final_prefix"
12350 acl_save_exec_prefix="$exec_prefix"
12351 exec_prefix="$acl_final_exec_prefix"
12353 eval additional_includedir=\"$includedir\"
12354 eval additional_libdir=\"$libdir\"
12356 exec_prefix="$acl_save_exec_prefix"
12357 prefix="$acl_save_prefix"
12360 # Check whether --with-libiconv-prefix was given.
12361 if test "${with_libiconv_prefix+set}" = set; then :
12362 withval=$with_libiconv_prefix;
12363 if test "X$withval" = "Xno"; then
12364 use_additional=no
12365 else
12366 if test "X$withval" = "X"; then
12368 acl_save_prefix="$prefix"
12369 prefix="$acl_final_prefix"
12370 acl_save_exec_prefix="$exec_prefix"
12371 exec_prefix="$acl_final_exec_prefix"
12373 eval additional_includedir=\"$includedir\"
12374 eval additional_libdir=\"$libdir\"
12376 exec_prefix="$acl_save_exec_prefix"
12377 prefix="$acl_save_prefix"
12379 else
12380 additional_includedir="$withval/include"
12381 additional_libdir="$withval/lib"
12387 LIBICONV=
12388 LTLIBICONV=
12389 INCICONV=
12390 rpathdirs=
12391 ltrpathdirs=
12392 names_already_handled=
12393 names_next_round='iconv '
12394 while test -n "$names_next_round"; do
12395 names_this_round="$names_next_round"
12396 names_next_round=
12397 for name in $names_this_round; do
12398 already_handled=
12399 for n in $names_already_handled; do
12400 if test "$n" = "$name"; then
12401 already_handled=yes
12402 break
12404 done
12405 if test -z "$already_handled"; then
12406 names_already_handled="$names_already_handled $name"
12407 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12408 eval value=\"\$HAVE_LIB$uppername\"
12409 if test -n "$value"; then
12410 if test "$value" = yes; then
12411 eval value=\"\$LIB$uppername\"
12412 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12413 eval value=\"\$LTLIB$uppername\"
12414 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12415 else
12418 else
12419 found_dir=
12420 found_la=
12421 found_so=
12422 found_a=
12423 if test $use_additional = yes; then
12424 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12425 found_dir="$additional_libdir"
12426 found_so="$additional_libdir/lib$name.$shlibext"
12427 if test -f "$additional_libdir/lib$name.la"; then
12428 found_la="$additional_libdir/lib$name.la"
12430 else
12431 if test -f "$additional_libdir/lib$name.$libext"; then
12432 found_dir="$additional_libdir"
12433 found_a="$additional_libdir/lib$name.$libext"
12434 if test -f "$additional_libdir/lib$name.la"; then
12435 found_la="$additional_libdir/lib$name.la"
12440 if test "X$found_dir" = "X"; then
12441 for x in $LDFLAGS $LTLIBICONV; do
12443 acl_save_prefix="$prefix"
12444 prefix="$acl_final_prefix"
12445 acl_save_exec_prefix="$exec_prefix"
12446 exec_prefix="$acl_final_exec_prefix"
12447 eval x=\"$x\"
12448 exec_prefix="$acl_save_exec_prefix"
12449 prefix="$acl_save_prefix"
12451 case "$x" in
12452 -L*)
12453 dir=`echo "X$x" | sed -e 's/^X-L//'`
12454 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12455 found_dir="$dir"
12456 found_so="$dir/lib$name.$shlibext"
12457 if test -f "$dir/lib$name.la"; then
12458 found_la="$dir/lib$name.la"
12460 else
12461 if test -f "$dir/lib$name.$libext"; then
12462 found_dir="$dir"
12463 found_a="$dir/lib$name.$libext"
12464 if test -f "$dir/lib$name.la"; then
12465 found_la="$dir/lib$name.la"
12470 esac
12471 if test "X$found_dir" != "X"; then
12472 break
12474 done
12476 if test "X$found_dir" != "X"; then
12477 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12478 if test "X$found_so" != "X"; then
12479 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12480 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12481 else
12482 haveit=
12483 for x in $ltrpathdirs; do
12484 if test "X$x" = "X$found_dir"; then
12485 haveit=yes
12486 break
12488 done
12489 if test -z "$haveit"; then
12490 ltrpathdirs="$ltrpathdirs $found_dir"
12492 if test "$hardcode_direct" = yes; then
12493 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12494 else
12495 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12496 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12497 haveit=
12498 for x in $rpathdirs; do
12499 if test "X$x" = "X$found_dir"; then
12500 haveit=yes
12501 break
12503 done
12504 if test -z "$haveit"; then
12505 rpathdirs="$rpathdirs $found_dir"
12507 else
12508 haveit=
12509 for x in $LDFLAGS $LIBICONV; do
12511 acl_save_prefix="$prefix"
12512 prefix="$acl_final_prefix"
12513 acl_save_exec_prefix="$exec_prefix"
12514 exec_prefix="$acl_final_exec_prefix"
12515 eval x=\"$x\"
12516 exec_prefix="$acl_save_exec_prefix"
12517 prefix="$acl_save_prefix"
12519 if test "X$x" = "X-L$found_dir"; then
12520 haveit=yes
12521 break
12523 done
12524 if test -z "$haveit"; then
12525 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12527 if test "$hardcode_minus_L" != no; then
12528 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12529 else
12530 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12535 else
12536 if test "X$found_a" != "X"; then
12537 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12538 else
12539 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12542 additional_includedir=
12543 case "$found_dir" in
12544 */lib | */lib/)
12545 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12546 additional_includedir="$basedir/include"
12548 esac
12549 if test "X$additional_includedir" != "X"; then
12550 if test "X$additional_includedir" != "X/usr/include"; then
12551 haveit=
12552 if test "X$additional_includedir" = "X/usr/local/include"; then
12553 if test -n "$GCC"; then
12554 case $host_os in
12555 linux*) haveit=yes;;
12556 esac
12559 if test -z "$haveit"; then
12560 for x in $CPPFLAGS $INCICONV; do
12562 acl_save_prefix="$prefix"
12563 prefix="$acl_final_prefix"
12564 acl_save_exec_prefix="$exec_prefix"
12565 exec_prefix="$acl_final_exec_prefix"
12566 eval x=\"$x\"
12567 exec_prefix="$acl_save_exec_prefix"
12568 prefix="$acl_save_prefix"
12570 if test "X$x" = "X-I$additional_includedir"; then
12571 haveit=yes
12572 break
12574 done
12575 if test -z "$haveit"; then
12576 if test -d "$additional_includedir"; then
12577 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12583 if test -n "$found_la"; then
12584 save_libdir="$libdir"
12585 case "$found_la" in
12586 */* | *\\*) . "$found_la" ;;
12587 *) . "./$found_la" ;;
12588 esac
12589 libdir="$save_libdir"
12590 for dep in $dependency_libs; do
12591 case "$dep" in
12592 -L*)
12593 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12594 if test "X$additional_libdir" != "X/usr/lib"; then
12595 haveit=
12596 if test "X$additional_libdir" = "X/usr/local/lib"; then
12597 if test -n "$GCC"; then
12598 case $host_os in
12599 linux*) haveit=yes;;
12600 esac
12603 if test -z "$haveit"; then
12604 haveit=
12605 for x in $LDFLAGS $LIBICONV; do
12607 acl_save_prefix="$prefix"
12608 prefix="$acl_final_prefix"
12609 acl_save_exec_prefix="$exec_prefix"
12610 exec_prefix="$acl_final_exec_prefix"
12611 eval x=\"$x\"
12612 exec_prefix="$acl_save_exec_prefix"
12613 prefix="$acl_save_prefix"
12615 if test "X$x" = "X-L$additional_libdir"; then
12616 haveit=yes
12617 break
12619 done
12620 if test -z "$haveit"; then
12621 if test -d "$additional_libdir"; then
12622 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12625 haveit=
12626 for x in $LDFLAGS $LTLIBICONV; do
12628 acl_save_prefix="$prefix"
12629 prefix="$acl_final_prefix"
12630 acl_save_exec_prefix="$exec_prefix"
12631 exec_prefix="$acl_final_exec_prefix"
12632 eval x=\"$x\"
12633 exec_prefix="$acl_save_exec_prefix"
12634 prefix="$acl_save_prefix"
12636 if test "X$x" = "X-L$additional_libdir"; then
12637 haveit=yes
12638 break
12640 done
12641 if test -z "$haveit"; then
12642 if test -d "$additional_libdir"; then
12643 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12649 -R*)
12650 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12651 if test "$enable_rpath" != no; then
12652 haveit=
12653 for x in $rpathdirs; do
12654 if test "X$x" = "X$dir"; then
12655 haveit=yes
12656 break
12658 done
12659 if test -z "$haveit"; then
12660 rpathdirs="$rpathdirs $dir"
12662 haveit=
12663 for x in $ltrpathdirs; do
12664 if test "X$x" = "X$dir"; then
12665 haveit=yes
12666 break
12668 done
12669 if test -z "$haveit"; then
12670 ltrpathdirs="$ltrpathdirs $dir"
12674 -l*)
12675 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12677 *.la)
12678 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12681 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12682 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12684 esac
12685 done
12687 else
12688 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12689 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12693 done
12694 done
12695 if test "X$rpathdirs" != "X"; then
12696 if test -n "$hardcode_libdir_separator"; then
12697 alldirs=
12698 for found_dir in $rpathdirs; do
12699 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12700 done
12701 acl_save_libdir="$libdir"
12702 libdir="$alldirs"
12703 eval flag=\"$hardcode_libdir_flag_spec\"
12704 libdir="$acl_save_libdir"
12705 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12706 else
12707 for found_dir in $rpathdirs; do
12708 acl_save_libdir="$libdir"
12709 libdir="$found_dir"
12710 eval flag=\"$hardcode_libdir_flag_spec\"
12711 libdir="$acl_save_libdir"
12712 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12713 done
12716 if test "X$ltrpathdirs" != "X"; then
12717 for found_dir in $ltrpathdirs; do
12718 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12719 done
12725 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12726 stdlib.h string.h unistd.h sys/param.h
12727 do :
12728 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12729 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12730 eval as_val=\$$as_ac_Header
12731 if test "x$as_val" = x""yes; then :
12732 cat >>confdefs.h <<_ACEOF
12733 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12734 _ACEOF
12738 done
12740 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
12741 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
12742 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12743 do :
12744 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12745 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12746 eval as_val=\$$as_ac_var
12747 if test "x$as_val" = x""yes; then :
12748 cat >>confdefs.h <<_ACEOF
12749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12750 _ACEOF
12753 done
12761 am_save_CPPFLAGS="$CPPFLAGS"
12763 for element in $INCICONV; do
12764 haveit=
12765 for x in $CPPFLAGS; do
12767 acl_save_prefix="$prefix"
12768 prefix="$acl_final_prefix"
12769 acl_save_exec_prefix="$exec_prefix"
12770 exec_prefix="$acl_final_exec_prefix"
12771 eval x=\"$x\"
12772 exec_prefix="$acl_save_exec_prefix"
12773 prefix="$acl_save_prefix"
12775 if test "X$x" = "X$element"; then
12776 haveit=yes
12777 break
12779 done
12780 if test -z "$haveit"; then
12781 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12783 done
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12787 $as_echo_n "checking for iconv... " >&6; }
12788 if test "${am_cv_func_iconv+set}" = set; then :
12789 $as_echo_n "(cached) " >&6
12790 else
12792 am_cv_func_iconv="no, consider installing GNU libiconv"
12793 am_cv_lib_iconv=no
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12796 #include <stdlib.h>
12797 #include <iconv.h>
12799 main ()
12801 iconv_t cd = iconv_open("","");
12802 iconv(cd,NULL,NULL,NULL,NULL);
12803 iconv_close(cd);
12805 return 0;
12807 _ACEOF
12808 if ac_fn_c_try_link "$LINENO"; then :
12809 am_cv_func_iconv=yes
12811 rm -f core conftest.err conftest.$ac_objext \
12812 conftest$ac_exeext conftest.$ac_ext
12813 if test "$am_cv_func_iconv" != yes; then
12814 am_save_LIBS="$LIBS"
12815 LIBS="$LIBS $LIBICONV"
12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12818 #include <stdlib.h>
12819 #include <iconv.h>
12821 main ()
12823 iconv_t cd = iconv_open("","");
12824 iconv(cd,NULL,NULL,NULL,NULL);
12825 iconv_close(cd);
12827 return 0;
12829 _ACEOF
12830 if ac_fn_c_try_link "$LINENO"; then :
12831 am_cv_lib_iconv=yes
12832 am_cv_func_iconv=yes
12834 rm -f core conftest.err conftest.$ac_objext \
12835 conftest$ac_exeext conftest.$ac_ext
12836 LIBS="$am_save_LIBS"
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12841 $as_echo "$am_cv_func_iconv" >&6; }
12842 if test "$am_cv_func_iconv" = yes; then
12844 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12847 if test "$am_cv_lib_iconv" = yes; then
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12849 $as_echo_n "checking how to link with libiconv... " >&6; }
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12851 $as_echo "$LIBICONV" >&6; }
12852 else
12853 CPPFLAGS="$am_save_CPPFLAGS"
12854 LIBICONV=
12855 LTLIBICONV=
12860 if test "$am_cv_func_iconv" = yes; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12862 $as_echo_n "checking for iconv declaration... " >&6; }
12863 if test "${am_cv_proto_iconv+set}" = set; then :
12864 $as_echo_n "(cached) " >&6
12865 else
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12870 #include <stdlib.h>
12871 #include <iconv.h>
12872 extern
12873 #ifdef __cplusplus
12875 #endif
12876 #if defined(__STDC__) || defined(__cplusplus)
12877 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12878 #else
12879 size_t iconv();
12880 #endif
12883 main ()
12887 return 0;
12889 _ACEOF
12890 if ac_fn_c_try_compile "$LINENO"; then :
12891 am_cv_proto_iconv_arg1=""
12892 else
12893 am_cv_proto_iconv_arg1="const"
12895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12896 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);"
12899 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
12901 }$am_cv_proto_iconv" >&5
12902 $as_echo "${ac_t:-
12903 }$am_cv_proto_iconv" >&6; }
12905 cat >>confdefs.h <<_ACEOF
12906 #define ICONV_CONST $am_cv_proto_iconv_arg1
12907 _ACEOF
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12913 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12914 if test "${am_cv_langinfo_codeset+set}" = set; then :
12915 $as_echo_n "(cached) " >&6
12916 else
12917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h. */
12919 #include <langinfo.h>
12921 main ()
12923 char* cs = nl_langinfo(CODESET);
12925 return 0;
12927 _ACEOF
12928 if ac_fn_c_try_link "$LINENO"; then :
12929 am_cv_langinfo_codeset=yes
12930 else
12931 am_cv_langinfo_codeset=no
12933 rm -f core conftest.err conftest.$ac_objext \
12934 conftest$ac_exeext conftest.$ac_ext
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12938 $as_echo "$am_cv_langinfo_codeset" >&6; }
12939 if test $am_cv_langinfo_codeset = yes; then
12941 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12945 if test $ac_cv_header_locale_h = yes; then
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12948 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12949 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
12950 $as_echo_n "(cached) " >&6
12951 else
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h. */
12954 #include <locale.h>
12956 main ()
12958 return LC_MESSAGES
12960 return 0;
12962 _ACEOF
12963 if ac_fn_c_try_link "$LINENO"; then :
12964 am_cv_val_LC_MESSAGES=yes
12965 else
12966 am_cv_val_LC_MESSAGES=no
12968 rm -f core conftest.err conftest.$ac_objext \
12969 conftest$ac_exeext conftest.$ac_ext
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12972 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12973 if test $am_cv_val_LC_MESSAGES = yes; then
12975 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12981 for ac_prog in bison
12983 # Extract the first word of "$ac_prog", so it can be a program name with args.
12984 set dummy $ac_prog; ac_word=$2
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12986 $as_echo_n "checking for $ac_word... " >&6; }
12987 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
12988 $as_echo_n "(cached) " >&6
12989 else
12990 if test -n "$INTLBISON"; then
12991 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12992 else
12993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994 for as_dir in $PATH
12996 IFS=$as_save_IFS
12997 test -z "$as_dir" && as_dir=.
12998 for ac_exec_ext in '' $ac_executable_extensions; do
12999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13000 ac_cv_prog_INTLBISON="$ac_prog"
13001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13002 break 2
13004 done
13005 done
13006 IFS=$as_save_IFS
13010 INTLBISON=$ac_cv_prog_INTLBISON
13011 if test -n "$INTLBISON"; then
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
13013 $as_echo "$INTLBISON" >&6; }
13014 else
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13016 $as_echo "no" >&6; }
13020 test -n "$INTLBISON" && break
13021 done
13023 if test -z "$INTLBISON"; then
13024 ac_verc_fail=yes
13025 else
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
13027 $as_echo_n "checking version of bison... " >&6; }
13028 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13029 case $ac_prog_version in
13030 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13031 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13032 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13033 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13034 esac
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
13036 $as_echo "$ac_prog_version" >&6; }
13038 if test $ac_verc_fail = yes; then
13039 INTLBISON=:
13044 # Check whether --with-language was given.
13045 if test "${with_language+set}" = set; then :
13046 withval=$with_language; if test "$withval" != "all"; then :
13047 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13067 $as_echo_n "checking whether NLS is requested... " >&6; }
13068 # Check whether --enable-nls was given.
13069 if test "${enable_nls+set}" = set; then :
13070 enableval=$enable_nls; USE_NLS=$enableval
13071 else
13072 USE_NLS=yes
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13076 $as_echo "$USE_NLS" >&6; }
13080 BUILD_INCLUDED_LIBINTL=no
13081 USE_INCLUDED_LIBINTL=no
13083 LIBINTL=
13084 LTLIBINTL=
13085 POSUB=
13087 if test "$USE_NLS" = "yes"; then
13088 gt_use_preinstalled_gnugettext=no
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
13091 $as_echo_n "checking whether included gettext is requested... " >&6; }
13093 # Check whether --with-included-gettext was given.
13094 if test "${with_included_gettext+set}" = set; then :
13095 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13096 else
13097 nls_cv_force_use_gnu_gettext=no
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
13101 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
13103 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13104 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13112 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13113 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
13114 $as_echo_n "(cached) " >&6
13115 else
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13118 #include <libintl.h>
13119 extern int _nl_msg_cat_cntr;
13120 extern int *_nl_domain_bindings;
13122 main ()
13124 bindtextdomain ("", "");
13125 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
13127 return 0;
13129 _ACEOF
13130 if ac_fn_c_try_link "$LINENO"; then :
13131 gt_cv_func_gnugettext2_libc=yes
13132 else
13133 gt_cv_func_gnugettext2_libc=no
13135 rm -f core conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
13139 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
13141 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
13145 use_additional=yes
13147 acl_save_prefix="$prefix"
13148 prefix="$acl_final_prefix"
13149 acl_save_exec_prefix="$exec_prefix"
13150 exec_prefix="$acl_final_exec_prefix"
13152 eval additional_includedir=\"$includedir\"
13153 eval additional_libdir=\"$libdir\"
13155 exec_prefix="$acl_save_exec_prefix"
13156 prefix="$acl_save_prefix"
13159 # Check whether --with-libintl-prefix was given.
13160 if test "${with_libintl_prefix+set}" = set; then :
13161 withval=$with_libintl_prefix;
13162 if test "X$withval" = "Xno"; then
13163 use_additional=no
13164 else
13165 if test "X$withval" = "X"; then
13167 acl_save_prefix="$prefix"
13168 prefix="$acl_final_prefix"
13169 acl_save_exec_prefix="$exec_prefix"
13170 exec_prefix="$acl_final_exec_prefix"
13172 eval additional_includedir=\"$includedir\"
13173 eval additional_libdir=\"$libdir\"
13175 exec_prefix="$acl_save_exec_prefix"
13176 prefix="$acl_save_prefix"
13178 else
13179 additional_includedir="$withval/include"
13180 additional_libdir="$withval/lib"
13186 LIBINTL=
13187 LTLIBINTL=
13188 INCINTL=
13189 rpathdirs=
13190 ltrpathdirs=
13191 names_already_handled=
13192 names_next_round='intl '
13193 while test -n "$names_next_round"; do
13194 names_this_round="$names_next_round"
13195 names_next_round=
13196 for name in $names_this_round; do
13197 already_handled=
13198 for n in $names_already_handled; do
13199 if test "$n" = "$name"; then
13200 already_handled=yes
13201 break
13203 done
13204 if test -z "$already_handled"; then
13205 names_already_handled="$names_already_handled $name"
13206 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13207 eval value=\"\$HAVE_LIB$uppername\"
13208 if test -n "$value"; then
13209 if test "$value" = yes; then
13210 eval value=\"\$LIB$uppername\"
13211 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13212 eval value=\"\$LTLIB$uppername\"
13213 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13214 else
13217 else
13218 found_dir=
13219 found_la=
13220 found_so=
13221 found_a=
13222 if test $use_additional = yes; then
13223 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13224 found_dir="$additional_libdir"
13225 found_so="$additional_libdir/lib$name.$shlibext"
13226 if test -f "$additional_libdir/lib$name.la"; then
13227 found_la="$additional_libdir/lib$name.la"
13229 else
13230 if test -f "$additional_libdir/lib$name.$libext"; then
13231 found_dir="$additional_libdir"
13232 found_a="$additional_libdir/lib$name.$libext"
13233 if test -f "$additional_libdir/lib$name.la"; then
13234 found_la="$additional_libdir/lib$name.la"
13239 if test "X$found_dir" = "X"; then
13240 for x in $LDFLAGS $LTLIBINTL; do
13242 acl_save_prefix="$prefix"
13243 prefix="$acl_final_prefix"
13244 acl_save_exec_prefix="$exec_prefix"
13245 exec_prefix="$acl_final_exec_prefix"
13246 eval x=\"$x\"
13247 exec_prefix="$acl_save_exec_prefix"
13248 prefix="$acl_save_prefix"
13250 case "$x" in
13251 -L*)
13252 dir=`echo "X$x" | sed -e 's/^X-L//'`
13253 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13254 found_dir="$dir"
13255 found_so="$dir/lib$name.$shlibext"
13256 if test -f "$dir/lib$name.la"; then
13257 found_la="$dir/lib$name.la"
13259 else
13260 if test -f "$dir/lib$name.$libext"; then
13261 found_dir="$dir"
13262 found_a="$dir/lib$name.$libext"
13263 if test -f "$dir/lib$name.la"; then
13264 found_la="$dir/lib$name.la"
13269 esac
13270 if test "X$found_dir" != "X"; then
13271 break
13273 done
13275 if test "X$found_dir" != "X"; then
13276 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13277 if test "X$found_so" != "X"; then
13278 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13279 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13280 else
13281 haveit=
13282 for x in $ltrpathdirs; do
13283 if test "X$x" = "X$found_dir"; then
13284 haveit=yes
13285 break
13287 done
13288 if test -z "$haveit"; then
13289 ltrpathdirs="$ltrpathdirs $found_dir"
13291 if test "$hardcode_direct" = yes; then
13292 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13293 else
13294 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13295 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13296 haveit=
13297 for x in $rpathdirs; do
13298 if test "X$x" = "X$found_dir"; then
13299 haveit=yes
13300 break
13302 done
13303 if test -z "$haveit"; then
13304 rpathdirs="$rpathdirs $found_dir"
13306 else
13307 haveit=
13308 for x in $LDFLAGS $LIBINTL; do
13310 acl_save_prefix="$prefix"
13311 prefix="$acl_final_prefix"
13312 acl_save_exec_prefix="$exec_prefix"
13313 exec_prefix="$acl_final_exec_prefix"
13314 eval x=\"$x\"
13315 exec_prefix="$acl_save_exec_prefix"
13316 prefix="$acl_save_prefix"
13318 if test "X$x" = "X-L$found_dir"; then
13319 haveit=yes
13320 break
13322 done
13323 if test -z "$haveit"; then
13324 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13326 if test "$hardcode_minus_L" != no; then
13327 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13328 else
13329 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13334 else
13335 if test "X$found_a" != "X"; then
13336 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13337 else
13338 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13341 additional_includedir=
13342 case "$found_dir" in
13343 */lib | */lib/)
13344 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13345 additional_includedir="$basedir/include"
13347 esac
13348 if test "X$additional_includedir" != "X"; then
13349 if test "X$additional_includedir" != "X/usr/include"; then
13350 haveit=
13351 if test "X$additional_includedir" = "X/usr/local/include"; then
13352 if test -n "$GCC"; then
13353 case $host_os in
13354 linux*) haveit=yes;;
13355 esac
13358 if test -z "$haveit"; then
13359 for x in $CPPFLAGS $INCINTL; do
13361 acl_save_prefix="$prefix"
13362 prefix="$acl_final_prefix"
13363 acl_save_exec_prefix="$exec_prefix"
13364 exec_prefix="$acl_final_exec_prefix"
13365 eval x=\"$x\"
13366 exec_prefix="$acl_save_exec_prefix"
13367 prefix="$acl_save_prefix"
13369 if test "X$x" = "X-I$additional_includedir"; then
13370 haveit=yes
13371 break
13373 done
13374 if test -z "$haveit"; then
13375 if test -d "$additional_includedir"; then
13376 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13382 if test -n "$found_la"; then
13383 save_libdir="$libdir"
13384 case "$found_la" in
13385 */* | *\\*) . "$found_la" ;;
13386 *) . "./$found_la" ;;
13387 esac
13388 libdir="$save_libdir"
13389 for dep in $dependency_libs; do
13390 case "$dep" in
13391 -L*)
13392 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13393 if test "X$additional_libdir" != "X/usr/lib"; then
13394 haveit=
13395 if test "X$additional_libdir" = "X/usr/local/lib"; then
13396 if test -n "$GCC"; then
13397 case $host_os in
13398 linux*) haveit=yes;;
13399 esac
13402 if test -z "$haveit"; then
13403 haveit=
13404 for x in $LDFLAGS $LIBINTL; do
13406 acl_save_prefix="$prefix"
13407 prefix="$acl_final_prefix"
13408 acl_save_exec_prefix="$exec_prefix"
13409 exec_prefix="$acl_final_exec_prefix"
13410 eval x=\"$x\"
13411 exec_prefix="$acl_save_exec_prefix"
13412 prefix="$acl_save_prefix"
13414 if test "X$x" = "X-L$additional_libdir"; then
13415 haveit=yes
13416 break
13418 done
13419 if test -z "$haveit"; then
13420 if test -d "$additional_libdir"; then
13421 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13424 haveit=
13425 for x in $LDFLAGS $LTLIBINTL; do
13427 acl_save_prefix="$prefix"
13428 prefix="$acl_final_prefix"
13429 acl_save_exec_prefix="$exec_prefix"
13430 exec_prefix="$acl_final_exec_prefix"
13431 eval x=\"$x\"
13432 exec_prefix="$acl_save_exec_prefix"
13433 prefix="$acl_save_prefix"
13435 if test "X$x" = "X-L$additional_libdir"; then
13436 haveit=yes
13437 break
13439 done
13440 if test -z "$haveit"; then
13441 if test -d "$additional_libdir"; then
13442 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13448 -R*)
13449 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13450 if test "$enable_rpath" != no; then
13451 haveit=
13452 for x in $rpathdirs; do
13453 if test "X$x" = "X$dir"; then
13454 haveit=yes
13455 break
13457 done
13458 if test -z "$haveit"; then
13459 rpathdirs="$rpathdirs $dir"
13461 haveit=
13462 for x in $ltrpathdirs; do
13463 if test "X$x" = "X$dir"; then
13464 haveit=yes
13465 break
13467 done
13468 if test -z "$haveit"; then
13469 ltrpathdirs="$ltrpathdirs $dir"
13473 -l*)
13474 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13476 *.la)
13477 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13480 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13481 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13483 esac
13484 done
13486 else
13487 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13488 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13492 done
13493 done
13494 if test "X$rpathdirs" != "X"; then
13495 if test -n "$hardcode_libdir_separator"; then
13496 alldirs=
13497 for found_dir in $rpathdirs; do
13498 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13499 done
13500 acl_save_libdir="$libdir"
13501 libdir="$alldirs"
13502 eval flag=\"$hardcode_libdir_flag_spec\"
13503 libdir="$acl_save_libdir"
13504 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13505 else
13506 for found_dir in $rpathdirs; do
13507 acl_save_libdir="$libdir"
13508 libdir="$found_dir"
13509 eval flag=\"$hardcode_libdir_flag_spec\"
13510 libdir="$acl_save_libdir"
13511 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13512 done
13515 if test "X$ltrpathdirs" != "X"; then
13516 for found_dir in $ltrpathdirs; do
13517 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13518 done
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13522 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13523 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
13524 $as_echo_n "(cached) " >&6
13525 else
13526 gt_save_CPPFLAGS="$CPPFLAGS"
13527 CPPFLAGS="$CPPFLAGS $INCINTL"
13528 gt_save_LIBS="$LIBS"
13529 LIBS="$LIBS $LIBINTL"
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532 #include <libintl.h>
13533 extern int _nl_msg_cat_cntr;
13534 extern
13535 #ifdef __cplusplus
13537 #endif
13538 const char *_nl_expand_alias ();
13540 main ()
13542 bindtextdomain ("", "");
13543 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13545 return 0;
13547 _ACEOF
13548 if ac_fn_c_try_link "$LINENO"; then :
13549 gt_cv_func_gnugettext2_libintl=yes
13550 else
13551 gt_cv_func_gnugettext2_libintl=no
13553 rm -f core conftest.err conftest.$ac_objext \
13554 conftest$ac_exeext conftest.$ac_ext
13555 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
13556 LIBS="$LIBS $LIBICONV"
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13559 #include <libintl.h>
13560 extern int _nl_msg_cat_cntr;
13561 extern
13562 #ifdef __cplusplus
13564 #endif
13565 const char *_nl_expand_alias ();
13567 main ()
13569 bindtextdomain ("", "");
13570 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13572 return 0;
13574 _ACEOF
13575 if ac_fn_c_try_link "$LINENO"; then :
13576 LIBINTL="$LIBINTL $LIBICONV"
13577 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13578 gt_cv_func_gnugettext2_libintl=yes
13581 rm -f core conftest.err conftest.$ac_objext \
13582 conftest$ac_exeext conftest.$ac_ext
13584 CPPFLAGS="$gt_save_CPPFLAGS"
13585 LIBS="$gt_save_LIBS"
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
13588 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
13591 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
13592 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
13593 && test "$PACKAGE" != gettext; }; then
13594 gt_use_preinstalled_gnugettext=yes
13595 else
13596 LIBINTL=
13597 LTLIBINTL=
13598 INCINTL=
13602 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13603 nls_cv_use_gnu_gettext=yes
13607 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13608 INTLOBJS="\$(GETTOBJS)"
13609 BUILD_INCLUDED_LIBINTL=yes
13610 USE_INCLUDED_LIBINTL=yes
13611 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13612 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13613 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13616 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13617 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13618 CATOBJEXT=.gmo
13622 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13623 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13625 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13627 else
13628 USE_NLS=no
13632 if test "$USE_NLS" = "yes"; then
13634 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13635 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13637 $as_echo_n "checking how to link with libintl... " >&6; }
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13639 $as_echo "$LIBINTL" >&6; }
13641 for element in $INCINTL; do
13642 haveit=
13643 for x in $CPPFLAGS; do
13645 acl_save_prefix="$prefix"
13646 prefix="$acl_final_prefix"
13647 acl_save_exec_prefix="$exec_prefix"
13648 exec_prefix="$acl_final_exec_prefix"
13649 eval x=\"$x\"
13650 exec_prefix="$acl_save_exec_prefix"
13651 prefix="$acl_save_prefix"
13653 if test "X$x" = "X$element"; then
13654 haveit=yes
13655 break
13657 done
13658 if test -z "$haveit"; then
13659 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13661 done
13666 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13669 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13673 POSUB=po
13677 if test "$PACKAGE" = gettext; then
13678 BUILD_INCLUDED_LIBINTL=yes
13686 nls_cv_header_intl=
13687 nls_cv_header_libgt=
13689 DATADIRNAME=share
13692 INSTOBJEXT=.mo
13695 GENCAT=gencat
13698 INTL_LIBTOOL_SUFFIX_PREFIX=
13702 INTLLIBS="$LIBINTL"
13709 if test $USE_INCLUDED_LIBINTL = yes; then :
13710 INCINTL=-I\${top_builddir}/intl
13713 if test x$USE_NLS = xyes; then :
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
13716 $as_echo_n "checking for autopoint... " >&6; }
13717 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
13718 if test -n "$autopoint_version"; then :
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
13721 $as_echo "yes ($autopoint_version)" >&6; }
13724 else
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13727 $as_echo "no" >&6; }
13728 USE_NLS=no
13733 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then :
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13735 You need to install GNU gettext/gettext-tools to compile aMule with
13736 i18n support." >&5
13737 $as_echo "$as_me: WARNING:
13738 You need to install GNU gettext/gettext-tools to compile aMule with
13739 i18n support." >&2;}
13740 _mule_warning_9=yes
13741 _mule_has_warnings=yes
13745 if test ${USE_NLS:-no} = yes; then :
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
13748 $as_echo_n "checking for requested languages... " >&6; }
13749 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
13751 if test ${enable_amule_daemon:-no} = yes; then :
13753 if test -z "$LINGUAS"; then :
13754 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
13755 else
13757 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13758 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
13761 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
13763 else
13764 AMULE_DAEMON_MANPAGES=
13769 if test ${enable_amulecmd:-no} = yes; then :
13771 if test -z "$LINGUAS"; then :
13772 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
13773 else
13775 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13776 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
13779 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
13781 else
13782 AMULECMD_MANPAGES=
13787 if test ${enable_webserver:-no} = yes; then :
13789 if test -z "$LINGUAS"; then :
13790 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
13791 else
13793 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13794 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
13797 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
13799 else
13800 WEBSERVER_MANPAGES=
13805 if test ${enable_amule_gui:-no} = yes; then :
13807 if test -z "$LINGUAS"; then :
13808 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
13809 else
13811 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13812 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
13815 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
13817 else
13818 AMULE_GUI_MANPAGES=
13823 if test ${enable_cas:-no} = yes; then :
13825 if test -z "$LINGUAS"; then :
13826 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
13827 else
13829 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13830 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
13833 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
13835 else
13836 CAS_MANPAGES=
13841 if test ${enable_wxcas:-no} = yes; then :
13843 if test -z "$LINGUAS"; then :
13844 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
13845 else
13847 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13848 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
13851 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
13853 else
13854 WXCAS_MANPAGES=
13859 if test ${enable_ed2k:-yes} = yes; then :
13861 if test -z "$LINGUAS"; then :
13862 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
13863 else
13865 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13866 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
13869 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
13871 else
13872 ED2K_MANPAGES=
13877 if test ${enable_alc:-no} = yes; then :
13879 if test -z "$LINGUAS"; then :
13880 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
13881 else
13883 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13884 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
13887 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
13889 else
13890 ALC_MANPAGES=
13895 if test ${enable_alcc:-no} = yes; then :
13897 if test -z "$LINGUAS"; then :
13898 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
13899 else
13901 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13902 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
13905 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
13907 else
13908 ALCC_MANPAGES=
13913 if test ${enable_monolithic:-yes} = yes; then :
13915 if test -z "$LINGUAS"; then :
13916 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
13917 else
13919 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13920 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
13923 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
13925 else
13926 MONOLITHIC_MANPAGES=
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
13931 $as_echo "${LINGUAS:-all}" >&6; }
13937 # Check for bfd.h (to have proper backtraces without using wxExecute)
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd" >&5
13940 $as_echo_n "checking for bfd... " >&6; }
13941 result=no
13942 for bfd_ldadd in "" "${LIBINTL}" "-ldl" "-ldl ${LIBINTL}"; do
13943 mule_backup_LIBS="$LIBS"
13944 mule_backup_LDFLAGS="$LDFLAGS"
13945 LIBS="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
13946 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
13947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h. */
13951 #include <ansidecl.h>
13952 #include <bfd.h>
13955 main ()
13958 char *dummy = bfd_errmsg(bfd_get_error());
13961 return 0;
13964 _ACEOF
13965 if ac_fn_c_try_link "$LINENO"; then :
13967 result=yes
13968 BFD_CPPFLAGS="-DHAVE_BFD"
13969 BFD_LIBS="-lbfd -liberty ${bfd_ldadd}"
13970 LIBS="$mule_backup_LIBS"
13971 LDFLAGS="$mule_backup_LDFLAGS"
13972 break
13975 rm -f core conftest.err conftest.$ac_objext \
13976 conftest$ac_exeext conftest.$ac_ext
13977 LIBS="$mule_backup_LIBS"
13978 LDFLAGS="$mule_backup_LDFLAGS"
13979 done
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
13982 $as_echo "$result" >&6; }
13984 if test $result = no; then :
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13986 bfd.h not found or unusable, please install binutils development
13987 package if you are a developer or want to help testing aMule" >&5
13988 $as_echo "$as_me: WARNING:
13989 bfd.h not found or unusable, please install binutils development
13990 package if you are a developer or want to help testing aMule" >&2;}
13991 _mule_warning_10=yes
13992 _mule_has_warnings=yes
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
13999 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h. */
14004 #include <execinfo.h>
14007 main ()
14010 void *bt[1];
14011 int n = backtrace(&bt, 1);
14012 const char **bt_syms = backtrace_symbols(bt, n);
14015 return 0;
14018 _ACEOF
14019 if ac_fn_c_try_link "$LINENO"; then :
14022 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14025 $as_echo "yes" >&6; }
14027 else
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14030 $as_echo "no" >&6; }
14033 rm -f core conftest.err conftest.$ac_objext \
14034 conftest$ac_exeext conftest.$ac_ext
14037 # Flush standard test results for speeding cache
14038 cat >confcache <<\_ACEOF
14039 # This file is a shell script that caches the results of configure
14040 # tests run on this system so they can be shared between configure
14041 # scripts and configure runs, see configure's option --config-cache.
14042 # It is not useful on other systems. If it contains results you don't
14043 # want to keep, you may remove or edit it.
14045 # config.status only pays attention to the cache file if you give it
14046 # the --recheck option to rerun configure.
14048 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14049 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14050 # following values.
14052 _ACEOF
14054 # The following way of writing the cache mishandles newlines in values,
14055 # but we know of no workaround that is simple, portable, and efficient.
14056 # So, we kill variables containing newlines.
14057 # Ultrix sh set writes to stderr and can't be redirected directly,
14058 # and sets the high bit in the cache file unless we assign to the vars.
14060 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14061 eval ac_val=\$$ac_var
14062 case $ac_val in #(
14063 *${as_nl}*)
14064 case $ac_var in #(
14065 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14066 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14067 esac
14068 case $ac_var in #(
14069 _ | IFS | as_nl) ;; #(
14070 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14071 *) { eval $ac_var=; unset $ac_var;} ;;
14072 esac ;;
14073 esac
14074 done
14076 (set) 2>&1 |
14077 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14078 *${as_nl}ac_space=\ *)
14079 # `set' does not quote correctly, so add quotes: double-quote
14080 # substitution turns \\\\ into \\, and sed turns \\ into \.
14081 sed -n \
14082 "s/'/'\\\\''/g;
14083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14084 ;; #(
14086 # `set' quotes correctly as required by POSIX, so do not add quotes.
14087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14089 esac |
14090 sort
14092 sed '
14093 /^ac_cv_env_/b end
14094 t clear
14095 :clear
14096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14097 t end
14098 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14099 :end' >>confcache
14100 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14101 if test -w "$cache_file"; then
14102 test "x$cache_file" != "x/dev/null" &&
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14104 $as_echo "$as_me: updating cache $cache_file" >&6;}
14105 cat confcache >$cache_file
14106 else
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14108 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14111 rm -f confcache
14113 # Other tests
14114 # aMule options
14116 # Check whether --enable-debug was given.
14117 if test "${enable_debug+set}" = set; then :
14118 enableval=$enable_debug;
14122 # Check whether --enable-profile was given.
14123 if test "${enable_profile+set}" = set; then :
14124 enableval=$enable_profile;
14128 # Check whether --enable-optimize was given.
14129 if test "${enable_optimize+set}" = set; then :
14130 enableval=$enable_optimize;
14135 if test ${enable_debug:-yes} = yes; then :
14137 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
14139 MULECFLAGS="$MULECFLAGS -g"
14140 MULECXXFLAGS="$MULECXXFLAGS -g"
14142 if test ${GLIBCXX:-no} = yes; then :
14143 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
14145 if test ${GCC:-no} = yes; then :
14147 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
14148 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
14151 if test ${SYS:-unknown} = win32; then :
14152 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
14155 else
14157 if test ${GCC:-no} = yes; then :
14159 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
14160 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
14166 if test ${enable_profile:-no} = yes; then :
14169 MULECFLAGS="$MULECFLAGS -pg"
14170 MULECXXFLAGS="$MULECXXFLAGS -pg"
14172 MULELDFLAGS="$MULELDFLAGS -pg"
14176 if test ${enable_optimize:-no} = yes; then :
14178 MULECFLAGS="$MULECFLAGS -O2"
14179 MULECXXFLAGS="$MULECXXFLAGS -O2"
14183 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
14186 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
14188 $as_echo_n "checking for docdir... " >&6; }
14189 if test -z "$docdir"; then :
14190 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
14193 $as_echo "$docdir" >&6; }
14195 # Try to set the SVN checkout-date
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
14197 $as_echo_n "checking for SVNDATE... " >&6; }
14198 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
14199 then
14200 svndate="rev. `cat $srcdir/.svn-revision`"
14201 elif test -d $srcdir/.svn # SVNDATE for svn
14202 then
14203 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
14206 $as_echo "${svndate:-None required}" >&6; }
14207 if test -n "$svndate"; then :
14210 cat >>confdefs.h <<_ACEOF
14211 #define SVNDATE "$svndate"
14212 _ACEOF
14214 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
14217 SVNDATE=$svndate
14221 # Check whether --with-denoise-level was given.
14222 if test "${with_denoise_level+set}" = set; then :
14223 withval=$with_denoise_level;
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
14228 $as_echo_n "checking denoising level... " >&6; }
14229 if test ${with_denoise_level:-5} = yes; then :
14230 with_denoise_level=5
14232 if test ${with_denoise_level:-5} = no; then :
14233 with_denoise_level=0
14235 if test ${with_denoise_level:-5} -gt 4; then :
14236 if test "${svndate:+set}" = "set"; then :
14237 with_denoise_level=0
14238 else
14239 with_denoise_level=4
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
14243 $as_echo "$with_denoise_level" >&6; }
14245 ac_config_commands="$ac_config_commands denoiser"
14249 if test ${enable_plasmamule:-no} = yes; then :
14252 if test -z ${QT_MOC}; then :
14254 for ac_prog in moc-qt4 moc
14256 # Extract the first word of "$ac_prog", so it can be a program name with args.
14257 set dummy $ac_prog; ac_word=$2
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14259 $as_echo_n "checking for $ac_word... " >&6; }
14260 if test "${ac_cv_path_QT_MOC+set}" = set; then :
14261 $as_echo_n "(cached) " >&6
14262 else
14263 case $QT_MOC in
14264 [\\/]* | ?:[\\/]*)
14265 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
14268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14269 for as_dir in $PATH
14271 IFS=$as_save_IFS
14272 test -z "$as_dir" && as_dir=.
14273 for ac_exec_ext in '' $ac_executable_extensions; do
14274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14275 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
14276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14277 break 2
14279 done
14280 done
14281 IFS=$as_save_IFS
14284 esac
14286 QT_MOC=$ac_cv_path_QT_MOC
14287 if test -n "$QT_MOC"; then
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
14289 $as_echo "$QT_MOC" >&6; }
14290 else
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14292 $as_echo "no" >&6; }
14296 test -n "$QT_MOC" && break
14297 done
14299 if test -z ${QT_MOC}; then :
14301 echo moc not found
14302 exit 1
14306 else
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
14309 $as_echo_n "checking for moc... " >&6; }
14310 if test -x ${QT_MOC}; then :
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
14313 $as_echo "${QT_MOC}" >&6; }
14316 else
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
14319 $as_echo "\"not found\"" >&6; }
14320 QT_MOC="not found"
14321 exit 1
14328 if test "${QT_MOC}" != "not found"; then :
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
14331 $as_echo_n "checking for moc version >= 4... " >&6; }
14332 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
14333 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
14336 $as_echo "found ${QT_MOC_VERSION}" >&6; }
14338 else
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
14341 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
14342 QT_MOC="not found"
14343 exit 1
14349 if test "${QT_MOC}" = "not found"; then :
14350 enable_plasmamule=disabled
14353 if test ${enable_plasmamule:-no} = yes; then :
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
14358 $as_echo_n "checking for qt... " >&6; }
14359 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14362 $as_echo "found" >&6; }
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
14364 $as_echo_n "checking for qt core cflags... " >&6; }
14365 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
14367 $as_echo "$QT_CORE_CFLAGS" >&6; }
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
14369 $as_echo_n "checking for qt core libs... " >&6; }
14370 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
14372 $as_echo "$QT_CORE_LIBS" >&6; }
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
14374 $as_echo_n "checking for qt gui cflags... " >&6; }
14375 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
14377 $as_echo "$QT_GUI_CFLAGS" >&6; }
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
14379 $as_echo_n "checking for qt gui libs... " >&6; }
14380 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
14382 $as_echo "$QT_GUI_LIBS" >&6; }
14384 else
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14386 $as_echo "not found" >&6; }
14387 exit 1
14395 if test -z "${QT_CORE_CXXFLAGS}"; then :
14396 enable_plasmamule=disabled
14401 if test ${enable_plasmamule:-no} = yes; then :
14404 if test -z ${KDE4_CONFIG}; then :
14406 # Extract the first word of "kde4-config", so it can be a program name with args.
14407 set dummy kde4-config; ac_word=$2
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14409 $as_echo_n "checking for $ac_word... " >&6; }
14410 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
14411 $as_echo_n "(cached) " >&6
14412 else
14413 case $KDE4_CONFIG in
14414 [\\/]* | ?:[\\/]*)
14415 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
14418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14419 for as_dir in $PATH
14421 IFS=$as_save_IFS
14422 test -z "$as_dir" && as_dir=.
14423 for ac_exec_ext in '' $ac_executable_extensions; do
14424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14425 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14427 break 2
14429 done
14430 done
14431 IFS=$as_save_IFS
14434 esac
14436 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
14437 if test -n "$KDE4_CONFIG"; then
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
14439 $as_echo "$KDE4_CONFIG" >&6; }
14440 else
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442 $as_echo "no" >&6; }
14447 else
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
14450 $as_echo_n "checking for kde4-config... " >&6; }
14451 if test ! -x KDE4_CONFIG; then :
14453 KDE4_CONFIG="not found"
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14455 $as_echo "not found" >&6; }
14456 exit 1
14462 if test "${KDE4_CONFIG}" != "not found"; then :
14464 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
14465 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
14468 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
14470 else
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
14473 $as_echo "at least version 4 required" >&6; }
14474 exit 1
14478 else
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14481 $as_echo "not found" >&6; }
14482 exit 1
14487 if test "${KDE4_CONFIG}" = "not found"; then :
14488 enable_plasmamule=disabled
14493 if test ${enable_plasmamule:-no} = yes; then :
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
14497 $as_echo_n "checking for kde4 headers... " >&6; }
14498 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
14500 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
14502 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
14505 $as_echo "${KDE_HEADER_DIR}" >&6; }
14507 else
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
14510 $as_echo "dataengine.h not found" >&6; }
14511 exit 1
14515 else
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
14518 $as_echo "kdirwatch.h not found" >&6; }
14519 exit 1
14524 if test -z ${KDE_HEADER_DIR}; then :
14525 enable_plasmamule=disabled
14530 if test ${enable_plasmamule:-no} = yes; then :
14532 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
14533 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
14538 $as_echo_n "checking for kde4 applinks Path... " >&6; }
14539 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14541 KDE_IN_HOME="yes"
14544 if test ${KDE_IN_HOME} = "yes"; then :
14546 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14548 else
14550 if test -n ${prefix}; then :
14552 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
14553 if test -n ${KDE_APPLNK_PATH}; then :
14555 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
14559 else
14561 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
14567 $as_echo "${KDE_APPLNK_PATH}" >&6; }
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
14573 $as_echo_n "checking for kde4 services Path... " >&6; }
14574 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14576 KDE_IN_HOME="yes"
14579 if test ${KDE_IN_HOME} = "yes"; then :
14581 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14583 else
14585 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
14589 $as_echo "${KDE_SERVICE_PATH}" >&6; }
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
14595 $as_echo_n "checking for kde4 plugins Path... " >&6; }
14596 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14598 KDE_IN_HOME="yes"
14601 if test ${KDE_IN_HOME} = "yes"; then :
14603 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14605 else
14607 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
14611 $as_echo "${KDE_MODULE_PATH}" >&6; }
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
14617 $as_echo_n "checking for kde4 icons Path... " >&6; }
14618 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14620 KDE_IN_HOME="yes"
14623 if test ${KDE_IN_HOME} = "yes"; then :
14625 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14627 else
14629 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
14632 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
14634 $as_echo "${KDE_ICON_PATH}" >&6; }
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
14640 $as_echo_n "checking for location for mime-type installation... " >&6; }
14641 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14643 KDE_IN_HOME="yes"
14646 if test ${KDE_IN_HOME} = "yes"; then :
14648 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14650 else
14652 if test -n ${prefix}; then :
14654 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
14655 if test -n ${KDE_MIME_PATH}; then :
14657 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
14661 else
14663 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
14669 $as_echo "${KDE_MIME_PATH}" >&6; }
14673 else
14674 enable_plasmamule=disabled
14679 if test ${enable_plasmamule:-no} = yes; then :
14681 if test -z ${DEB_HOST_ARCH}; then :
14684 for ac_prog in kbuildsycoca4 kbuildsycoca
14686 # Extract the first word of "$ac_prog", so it can be a program name with args.
14687 set dummy $ac_prog; ac_word=$2
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14689 $as_echo_n "checking for $ac_word... " >&6; }
14690 if test "${ac_cv_path_KBUILDSYCOCA+set}" = set; then :
14691 $as_echo_n "(cached) " >&6
14692 else
14693 case $KBUILDSYCOCA in
14694 [\\/]* | ?:[\\/]*)
14695 ac_cv_path_KBUILDSYCOCA="$KBUILDSYCOCA" # Let the user override the test with a path.
14698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14699 for as_dir in $PATH
14701 IFS=$as_save_IFS
14702 test -z "$as_dir" && as_dir=.
14703 for ac_exec_ext in '' $ac_executable_extensions; do
14704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14705 ac_cv_path_KBUILDSYCOCA="$as_dir/$ac_word$ac_exec_ext"
14706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14707 break 2
14709 done
14710 done
14711 IFS=$as_save_IFS
14714 esac
14716 KBUILDSYCOCA=$ac_cv_path_KBUILDSYCOCA
14717 if test -n "$KBUILDSYCOCA"; then
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KBUILDSYCOCA" >&5
14719 $as_echo "$KBUILDSYCOCA" >&6; }
14720 else
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14722 $as_echo "no" >&6; }
14726 test -n "$KBUILDSYCOCA" && break
14727 done
14730 if test -z ${KBUILDSYCOCA}; then :
14732 echo "No tool for KDE Systemcache Management found"
14733 exit 1
14739 # Extract the first word of "update-mime-database", so it can be a program name with args.
14740 set dummy update-mime-database; ac_word=$2
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14742 $as_echo_n "checking for $ac_word... " >&6; }
14743 if test "${ac_cv_path_UPDATE_MIME_DATABASE+set}" = set; then :
14744 $as_echo_n "(cached) " >&6
14745 else
14746 case $UPDATE_MIME_DATABASE in
14747 [\\/]* | ?:[\\/]*)
14748 ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
14751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14752 for as_dir in $PATH
14754 IFS=$as_save_IFS
14755 test -z "$as_dir" && as_dir=.
14756 for ac_exec_ext in '' $ac_executable_extensions; do
14757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14758 ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
14759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14760 break 2
14762 done
14763 done
14764 IFS=$as_save_IFS
14767 esac
14769 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
14770 if test -n "$UPDATE_MIME_DATABASE"; then
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
14772 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
14773 else
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14775 $as_echo "no" >&6; }
14780 if test -z ${UPDATE_MIME_DATABASE}; then :
14782 echo "No tool for MIME Datanase Management found"
14783 exit 1
14789 USER_INSTALL_HOOK="USER_INSTALL"
14797 if test ${enable_debug:-yes} = yes; then :
14799 DEBUGFLAG="-D__DEBUG__"
14806 if test x$SYS = xwin32; then
14807 SYS_WIN32_TRUE=
14808 SYS_WIN32_FALSE='#'
14809 else
14810 SYS_WIN32_TRUE='#'
14811 SYS_WIN32_FALSE=
14814 if test x$SYS = xwin32 -a "$RC" != ":"; then
14815 NEED_RC_TRUE=
14816 NEED_RC_FALSE='#'
14817 else
14818 NEED_RC_TRUE='#'
14819 NEED_RC_FALSE=
14822 if test x$SYS = xdarwin; then
14823 NEED_CORESERVICES_TRUE=
14824 NEED_CORESERVICES_FALSE='#'
14825 else
14826 NEED_CORESERVICES_TRUE='#'
14827 NEED_CORESERVICES_FALSE=
14830 if test x$USE_NLS = xyes; then
14831 COMPILE_NLS_TRUE=
14832 COMPILE_NLS_FALSE='#'
14833 else
14834 COMPILE_NLS_TRUE='#'
14835 COMPILE_NLS_FALSE=
14838 if test x$HAVE_FLEX_EXTENDED = xyes; then
14839 GENERATE_FLEX_HEADER_TRUE=
14840 GENERATE_FLEX_HEADER_FALSE='#'
14841 else
14842 GENERATE_FLEX_HEADER_TRUE='#'
14843 GENERATE_FLEX_HEADER_FALSE=
14846 if test x$INSTALL_SKINS = xyes; then
14847 INSTALL_SKINS_TRUE=
14848 INSTALL_SKINS_FALSE='#'
14849 else
14850 INSTALL_SKINS_TRUE='#'
14851 INSTALL_SKINS_FALSE=
14854 if test ${enable_plasmamule:-no} = yes; then
14855 PLASMAMULE_TRUE=
14856 PLASMAMULE_FALSE='#'
14857 else
14858 PLASMAMULE_TRUE='#'
14859 PLASMAMULE_FALSE=
14863 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
14864 COMPILE_LIB_COMMON_TRUE=
14865 COMPILE_LIB_COMMON_FALSE='#'
14866 else
14867 COMPILE_LIB_COMMON_TRUE='#'
14868 COMPILE_LIB_COMMON_FALSE=
14871 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
14872 COMPILE_LIB_EC_TRUE=
14873 COMPILE_LIB_EC_FALSE='#'
14874 else
14875 COMPILE_LIB_EC_TRUE='#'
14876 COMPILE_LIB_EC_FALSE=
14880 # Check for readline library
14881 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
14884 $as_echo_n "checking for a readline compatible library... " >&6; }
14885 if test "${vl_cv_lib_readline+set}" = set; then :
14886 $as_echo_n "(cached) " >&6
14887 else
14889 ORIG_LIBS="$LIBS"
14890 for readline_lib in readline edit editline; do
14891 for termcap_lib in "" termcap curses ncurses; do
14892 if test -z "$termcap_lib"; then
14893 TRY_LIB="-l$readline_lib"
14894 else
14895 TRY_LIB="-l$readline_lib -l$termcap_lib"
14897 LIBS="$ORIG_LIBS $TRY_LIB"
14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14901 /* Override any GCC internal prototype to avoid an error.
14902 Use char because int might match the return type of a GCC
14903 builtin and then its argument prototype would still apply. */
14904 #ifdef __cplusplus
14905 extern "C"
14906 #endif
14907 char readline ();
14909 main ()
14911 return readline ();
14913 return 0;
14915 _ACEOF
14916 if ac_fn_c_try_link "$LINENO"; then :
14917 vl_cv_lib_readline="$TRY_LIB"
14919 rm -f core conftest.err conftest.$ac_objext \
14920 conftest$ac_exeext conftest.$ac_ext
14921 if test -n "$vl_cv_lib_readline"; then
14922 break
14924 done
14925 if test -n "$vl_cv_lib_readline"; then
14926 break
14928 done
14929 if test -z "$vl_cv_lib_readline"; then
14930 vl_cv_lib_readline="no"
14931 LIBS="$ORIG_LIBS"
14932 READLINE_LIBS=""
14933 else
14934 READLINE_LIBS="$vl_cv_lib_readline"
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
14939 $as_echo "$vl_cv_lib_readline" >&6; }
14941 if test "$vl_cv_lib_readline" != "no"; then
14943 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
14945 for ac_header in readline.h readline/readline.h
14946 do :
14947 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14948 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14949 eval as_val=\$$as_ac_Header
14950 if test "x$as_val" = x""yes; then :
14951 cat >>confdefs.h <<_ACEOF
14952 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14953 _ACEOF
14957 done
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
14960 $as_echo_n "checking whether readline supports history... " >&6; }
14961 if test "${vl_cv_lib_readline_history+set}" = set; then :
14962 $as_echo_n "(cached) " >&6
14963 else
14965 vl_cv_lib_readline_history="no"
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14969 /* Override any GCC internal prototype to avoid an error.
14970 Use char because int might match the return type of a GCC
14971 builtin and then its argument prototype would still apply. */
14972 #ifdef __cplusplus
14973 extern "C"
14974 #endif
14975 char add_history ();
14977 main ()
14979 return add_history ();
14981 return 0;
14983 _ACEOF
14984 if ac_fn_c_try_link "$LINENO"; then :
14985 vl_cv_lib_readline_history="yes"
14987 rm -f core conftest.err conftest.$ac_objext \
14988 conftest$ac_exeext conftest.$ac_ext
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
14992 $as_echo "$vl_cv_lib_readline_history" >&6; }
14993 if test "$vl_cv_lib_readline_history" = "yes"; then
14995 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
14997 for ac_header in history.h readline/history.h
14998 do :
14999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15000 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15001 eval as_val=\$$as_ac_Header
15002 if test "x$as_val" = x""yes; then :
15003 cat >>confdefs.h <<_ACEOF
15004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15005 _ACEOF
15009 done
15014 LIBS="$ORIG_LIBS"
15018 if test ${PLASMAMULE:-no} = yes; then :
15021 if test -z ${QT_MOC}; then :
15023 for ac_prog in moc-qt4 moc
15025 # Extract the first word of "$ac_prog", so it can be a program name with args.
15026 set dummy $ac_prog; ac_word=$2
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15028 $as_echo_n "checking for $ac_word... " >&6; }
15029 if test "${ac_cv_path_QT_MOC+set}" = set; then :
15030 $as_echo_n "(cached) " >&6
15031 else
15032 case $QT_MOC in
15033 [\\/]* | ?:[\\/]*)
15034 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
15037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15038 for as_dir in $PATH
15040 IFS=$as_save_IFS
15041 test -z "$as_dir" && as_dir=.
15042 for ac_exec_ext in '' $ac_executable_extensions; do
15043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15044 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
15045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15046 break 2
15048 done
15049 done
15050 IFS=$as_save_IFS
15053 esac
15055 QT_MOC=$ac_cv_path_QT_MOC
15056 if test -n "$QT_MOC"; then
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15058 $as_echo "$QT_MOC" >&6; }
15059 else
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15061 $as_echo "no" >&6; }
15065 test -n "$QT_MOC" && break
15066 done
15068 if test -z ${QT_MOC}; then :
15070 echo moc not found
15071 exit 1
15075 else
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15078 $as_echo_n "checking for moc... " >&6; }
15079 if test -x ${QT_MOC}; then :
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15082 $as_echo "${QT_MOC}" >&6; }
15085 else
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15088 $as_echo "\"not found\"" >&6; }
15089 QT_MOC="not found"
15090 exit 1
15097 if test "${QT_MOC}" != "not found"; then :
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15100 $as_echo_n "checking for moc version >= 4... " >&6; }
15101 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15102 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15105 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15107 else
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15110 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15111 QT_MOC="not found"
15112 exit 1
15118 if test "${QT_MOC}" = "not found"; then :
15119 enable_plasmamule=disabled
15122 if test ${enable_plasmamule:-no} = yes; then :
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15127 $as_echo_n "checking for qt... " >&6; }
15128 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15131 $as_echo "found" >&6; }
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15133 $as_echo_n "checking for qt core cflags... " >&6; }
15134 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15136 $as_echo "$QT_CORE_CFLAGS" >&6; }
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15138 $as_echo_n "checking for qt core libs... " >&6; }
15139 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15141 $as_echo "$QT_CORE_LIBS" >&6; }
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15143 $as_echo_n "checking for qt gui cflags... " >&6; }
15144 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15146 $as_echo "$QT_GUI_CFLAGS" >&6; }
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15148 $as_echo_n "checking for qt gui libs... " >&6; }
15149 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15151 $as_echo "$QT_GUI_LIBS" >&6; }
15153 else
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15155 $as_echo "not found" >&6; }
15156 exit 1
15164 if test -z "${QT_CORE_CXXFLAGS}"; then :
15165 enable_plasmamule=disabled
15170 if test ${enable_plasmamule:-no} = yes; then :
15173 if test -z ${KDE4_CONFIG}; then :
15175 # Extract the first word of "kde4-config", so it can be a program name with args.
15176 set dummy kde4-config; ac_word=$2
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15178 $as_echo_n "checking for $ac_word... " >&6; }
15179 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
15180 $as_echo_n "(cached) " >&6
15181 else
15182 case $KDE4_CONFIG in
15183 [\\/]* | ?:[\\/]*)
15184 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
15187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15188 for as_dir in $PATH
15190 IFS=$as_save_IFS
15191 test -z "$as_dir" && as_dir=.
15192 for ac_exec_ext in '' $ac_executable_extensions; do
15193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15194 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15196 break 2
15198 done
15199 done
15200 IFS=$as_save_IFS
15203 esac
15205 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
15206 if test -n "$KDE4_CONFIG"; then
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15208 $as_echo "$KDE4_CONFIG" >&6; }
15209 else
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15211 $as_echo "no" >&6; }
15216 else
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15219 $as_echo_n "checking for kde4-config... " >&6; }
15220 if test ! -x KDE4_CONFIG; then :
15222 KDE4_CONFIG="not found"
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15224 $as_echo "not found" >&6; }
15225 exit 1
15231 if test "${KDE4_CONFIG}" != "not found"; then :
15233 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15234 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15237 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15239 else
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
15242 $as_echo "at least version 4 required" >&6; }
15243 exit 1
15247 else
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15250 $as_echo "not found" >&6; }
15251 exit 1
15256 if test "${KDE4_CONFIG}" = "not found"; then :
15257 enable_plasmamule=disabled
15262 if test ${enable_plasmamule:-no} = yes; then :
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
15266 $as_echo_n "checking for kde4 headers... " >&6; }
15267 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15269 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15271 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
15274 $as_echo "${KDE_HEADER_DIR}" >&6; }
15276 else
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
15279 $as_echo "dataengine.h not found" >&6; }
15280 exit 1
15284 else
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
15287 $as_echo "kdirwatch.h not found" >&6; }
15288 exit 1
15293 if test -z ${KDE_HEADER_DIR}; then :
15294 enable_plasmamule=disabled
15299 if test ${enable_plasmamule:-no} = yes; then :
15301 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15302 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
15307 $as_echo_n "checking for kde4 applinks Path... " >&6; }
15308 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15310 KDE_IN_HOME="yes"
15313 if test ${KDE_IN_HOME} = "yes"; then :
15315 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15317 else
15319 if test -n ${prefix}; then :
15321 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
15322 if test -n ${KDE_APPLNK_PATH}; then :
15324 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15328 else
15330 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
15336 $as_echo "${KDE_APPLNK_PATH}" >&6; }
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
15342 $as_echo_n "checking for kde4 services Path... " >&6; }
15343 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15345 KDE_IN_HOME="yes"
15348 if test ${KDE_IN_HOME} = "yes"; then :
15350 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15352 else
15354 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
15358 $as_echo "${KDE_SERVICE_PATH}" >&6; }
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
15364 $as_echo_n "checking for kde4 plugins Path... " >&6; }
15365 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15367 KDE_IN_HOME="yes"
15370 if test ${KDE_IN_HOME} = "yes"; then :
15372 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15374 else
15376 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
15380 $as_echo "${KDE_MODULE_PATH}" >&6; }
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
15386 $as_echo_n "checking for kde4 icons Path... " >&6; }
15387 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15389 KDE_IN_HOME="yes"
15392 if test ${KDE_IN_HOME} = "yes"; then :
15394 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15396 else
15398 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
15401 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
15403 $as_echo "${KDE_ICON_PATH}" >&6; }
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
15409 $as_echo_n "checking for location for mime-type installation... " >&6; }
15410 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15412 KDE_IN_HOME="yes"
15415 if test ${KDE_IN_HOME} = "yes"; then :
15417 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15419 else
15421 if test -n ${prefix}; then :
15423 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
15424 if test -n ${KDE_MIME_PATH}; then :
15426 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15430 else
15432 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
15438 $as_echo "${KDE_MIME_PATH}" >&6; }
15442 else
15443 enable_plasmamule=disabled
15448 if test ${enable_plasmamule:-no} = yes; then :
15450 if test -z ${DEB_HOST_ARCH}; then :
15453 for ac_prog in kbuildsycoca4 kbuildsycoca
15455 # Extract the first word of "$ac_prog", so it can be a program name with args.
15456 set dummy $ac_prog; ac_word=$2
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15458 $as_echo_n "checking for $ac_word... " >&6; }
15459 if test "${ac_cv_path_KBUILDSYCOCA+set}" = set; then :
15460 $as_echo_n "(cached) " >&6
15461 else
15462 case $KBUILDSYCOCA in
15463 [\\/]* | ?:[\\/]*)
15464 ac_cv_path_KBUILDSYCOCA="$KBUILDSYCOCA" # Let the user override the test with a path.
15467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15468 for as_dir in $PATH
15470 IFS=$as_save_IFS
15471 test -z "$as_dir" && as_dir=.
15472 for ac_exec_ext in '' $ac_executable_extensions; do
15473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15474 ac_cv_path_KBUILDSYCOCA="$as_dir/$ac_word$ac_exec_ext"
15475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15476 break 2
15478 done
15479 done
15480 IFS=$as_save_IFS
15483 esac
15485 KBUILDSYCOCA=$ac_cv_path_KBUILDSYCOCA
15486 if test -n "$KBUILDSYCOCA"; then
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KBUILDSYCOCA" >&5
15488 $as_echo "$KBUILDSYCOCA" >&6; }
15489 else
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15491 $as_echo "no" >&6; }
15495 test -n "$KBUILDSYCOCA" && break
15496 done
15499 if test -z ${KBUILDSYCOCA}; then :
15501 echo "No tool for KDE Systemcache Management found"
15502 exit 1
15508 # Extract the first word of "update-mime-database", so it can be a program name with args.
15509 set dummy update-mime-database; ac_word=$2
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15511 $as_echo_n "checking for $ac_word... " >&6; }
15512 if test "${ac_cv_path_UPDATE_MIME_DATABASE+set}" = set; then :
15513 $as_echo_n "(cached) " >&6
15514 else
15515 case $UPDATE_MIME_DATABASE in
15516 [\\/]* | ?:[\\/]*)
15517 ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
15520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15521 for as_dir in $PATH
15523 IFS=$as_save_IFS
15524 test -z "$as_dir" && as_dir=.
15525 for ac_exec_ext in '' $ac_executable_extensions; do
15526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15527 ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
15528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15529 break 2
15531 done
15532 done
15533 IFS=$as_save_IFS
15536 esac
15538 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
15539 if test -n "$UPDATE_MIME_DATABASE"; then
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
15541 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
15542 else
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15544 $as_echo "no" >&6; }
15549 if test -z ${UPDATE_MIME_DATABASE}; then :
15551 echo "No tool for MIME Datanase Management found"
15552 exit 1
15558 USER_INSTALL_HOOK="USER_INSTALL"
15566 if test ${enable_debug:-yes} = yes; then :
15568 DEBUGFLAG="-D__DEBUG__"
15575 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
15578 # Check whether --enable-ccache was given.
15579 if test "${enable_ccache+set}" = set; then :
15580 enableval=$enable_ccache;
15586 # Check whether --with-ccache-prefix was given.
15587 if test "${with_ccache_prefix+set}" = set; then :
15588 withval=$with_ccache_prefix;
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
15593 $as_echo_n "checking whether ccache support should be added... " >&6; }
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15595 $as_echo "${enable_ccache:-no}" >&6; }
15597 if test ${enable_ccache:-no} = yes; then :
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
15600 $as_echo_n "checking for ccache presence... " >&6; }
15601 if test -z "$with_ccache_prefix"; then :
15603 ccache_full=`which ccache`
15604 with_ccache_prefix=`dirname ${ccache_full}`
15607 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then :
15609 CC="$with_ccache_prefix/ccache $CC"
15610 CXX="$with_ccache_prefix/ccache $CXX"
15611 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
15613 else
15614 enable_ccache=no
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15617 $as_echo "${enable_ccache:-no}" >&6; }
15622 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"
15624 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
15626 if test x$SYS = xwin32; then :
15627 ac_config_files="$ac_config_files version.rc"
15630 cat >confcache <<\_ACEOF
15631 # This file is a shell script that caches the results of configure
15632 # tests run on this system so they can be shared between configure
15633 # scripts and configure runs, see configure's option --config-cache.
15634 # It is not useful on other systems. If it contains results you don't
15635 # want to keep, you may remove or edit it.
15637 # config.status only pays attention to the cache file if you give it
15638 # the --recheck option to rerun configure.
15640 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15641 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15642 # following values.
15644 _ACEOF
15646 # The following way of writing the cache mishandles newlines in values,
15647 # but we know of no workaround that is simple, portable, and efficient.
15648 # So, we kill variables containing newlines.
15649 # Ultrix sh set writes to stderr and can't be redirected directly,
15650 # and sets the high bit in the cache file unless we assign to the vars.
15652 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15653 eval ac_val=\$$ac_var
15654 case $ac_val in #(
15655 *${as_nl}*)
15656 case $ac_var in #(
15657 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15658 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15659 esac
15660 case $ac_var in #(
15661 _ | IFS | as_nl) ;; #(
15662 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15663 *) { eval $ac_var=; unset $ac_var;} ;;
15664 esac ;;
15665 esac
15666 done
15668 (set) 2>&1 |
15669 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15670 *${as_nl}ac_space=\ *)
15671 # `set' does not quote correctly, so add quotes: double-quote
15672 # substitution turns \\\\ into \\, and sed turns \\ into \.
15673 sed -n \
15674 "s/'/'\\\\''/g;
15675 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15676 ;; #(
15678 # `set' quotes correctly as required by POSIX, so do not add quotes.
15679 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15681 esac |
15682 sort
15684 sed '
15685 /^ac_cv_env_/b end
15686 t clear
15687 :clear
15688 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15689 t end
15690 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15691 :end' >>confcache
15692 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15693 if test -w "$cache_file"; then
15694 test "x$cache_file" != "x/dev/null" &&
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15696 $as_echo "$as_me: updating cache $cache_file" >&6;}
15697 cat confcache >$cache_file
15698 else
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15700 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15703 rm -f confcache
15705 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15706 # Let make expand exec_prefix.
15707 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15709 DEFS=-DHAVE_CONFIG_H
15711 ac_libobjs=
15712 ac_ltlibobjs=
15713 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15714 # 1. Remove the extension, and $U if already installed.
15715 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15716 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15717 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15718 # will be set to the directory where LIBOBJS objects are built.
15719 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15720 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15721 done
15722 LIBOBJS=$ac_libobjs
15724 LTLIBOBJS=$ac_ltlibobjs
15727 if test -n "$EXEEXT"; then
15728 am__EXEEXT_TRUE=
15729 am__EXEEXT_FALSE='#'
15730 else
15731 am__EXEEXT_TRUE='#'
15732 am__EXEEXT_FALSE=
15735 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15736 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15739 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15740 as_fn_error "conditional \"AMDEP\" was never defined.
15741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15743 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15744 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15747 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15748 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15751 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
15752 as_fn_error "conditional \"MONOLITHIC\" was never defined.
15753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15755 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
15756 as_fn_error "conditional \"AMULE_DAEMON\" was never defined.
15757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15759 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
15760 as_fn_error "conditional \"COMPILE_CMD\" was never defined.
15761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15763 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
15764 as_fn_error "conditional \"WEB\" was never defined.
15765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15767 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
15768 as_fn_error "conditional \"AMULE_GUI\" was never defined.
15769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15771 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
15772 as_fn_error "conditional \"CAS\" was never defined.
15773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15775 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
15776 as_fn_error "conditional \"WXCAS\" was never defined.
15777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15779 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
15780 as_fn_error "conditional \"ED2K\" was never defined.
15781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15783 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
15784 as_fn_error "conditional \"ALC\" was never defined.
15785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15787 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
15788 as_fn_error "conditional \"ALCC\" was never defined.
15789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15791 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
15792 as_fn_error "conditional \"XAS\" was never defined.
15793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15795 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
15796 as_fn_error "conditional \"FILEVIEW\" was never defined.
15797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15799 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
15800 as_fn_error "conditional \"SYS_WIN32\" was never defined.
15801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15803 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
15804 as_fn_error "conditional \"NEED_RC\" was never defined.
15805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15807 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
15808 as_fn_error "conditional \"NEED_CORESERVICES\" was never defined.
15809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15811 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
15812 as_fn_error "conditional \"COMPILE_NLS\" was never defined.
15813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15815 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
15816 as_fn_error "conditional \"GENERATE_FLEX_HEADER\" was never defined.
15817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15819 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
15820 as_fn_error "conditional \"INSTALL_SKINS\" was never defined.
15821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15823 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
15824 as_fn_error "conditional \"PLASMAMULE\" was never defined.
15825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15827 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
15828 as_fn_error "conditional \"COMPILE_LIB_COMMON\" was never defined.
15829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15831 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
15832 as_fn_error "conditional \"COMPILE_LIB_EC\" was never defined.
15833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15836 : ${CONFIG_STATUS=./config.status}
15837 ac_write_fail=0
15838 ac_clean_files_save=$ac_clean_files
15839 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15841 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15842 as_write_fail=0
15843 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15844 #! $SHELL
15845 # Generated by $as_me.
15846 # Run this file to recreate the current configuration.
15847 # Compiler output produced by configure, useful for debugging
15848 # configure, is in config.log if it exists.
15850 debug=false
15851 ac_cs_recheck=false
15852 ac_cs_silent=false
15854 SHELL=\${CONFIG_SHELL-$SHELL}
15855 export SHELL
15856 _ASEOF
15857 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15858 ## -------------------- ##
15859 ## M4sh Initialization. ##
15860 ## -------------------- ##
15862 # Be more Bourne compatible
15863 DUALCASE=1; export DUALCASE # for MKS sh
15864 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15865 emulate sh
15866 NULLCMD=:
15867 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15868 # is contrary to our usage. Disable this feature.
15869 alias -g '${1+"$@"}'='"$@"'
15870 setopt NO_GLOB_SUBST
15871 else
15872 case `(set -o) 2>/dev/null` in #(
15873 *posix*) :
15874 set -o posix ;; #(
15875 *) :
15877 esac
15881 as_nl='
15883 export as_nl
15884 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15885 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15886 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15887 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15888 # Prefer a ksh shell builtin over an external printf program on Solaris,
15889 # but without wasting forks for bash or zsh.
15890 if test -z "$BASH_VERSION$ZSH_VERSION" \
15891 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15892 as_echo='print -r --'
15893 as_echo_n='print -rn --'
15894 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15895 as_echo='printf %s\n'
15896 as_echo_n='printf %s'
15897 else
15898 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15899 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15900 as_echo_n='/usr/ucb/echo -n'
15901 else
15902 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15903 as_echo_n_body='eval
15904 arg=$1;
15905 case $arg in #(
15906 *"$as_nl"*)
15907 expr "X$arg" : "X\\(.*\\)$as_nl";
15908 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15909 esac;
15910 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15912 export as_echo_n_body
15913 as_echo_n='sh -c $as_echo_n_body as_echo'
15915 export as_echo_body
15916 as_echo='sh -c $as_echo_body as_echo'
15919 # The user is always right.
15920 if test "${PATH_SEPARATOR+set}" != set; then
15921 PATH_SEPARATOR=:
15922 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15923 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15924 PATH_SEPARATOR=';'
15929 # IFS
15930 # We need space, tab and new line, in precisely that order. Quoting is
15931 # there to prevent editors from complaining about space-tab.
15932 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15933 # splitting by setting IFS to empty value.)
15934 IFS=" "" $as_nl"
15936 # Find who we are. Look in the path if we contain no directory separator.
15937 case $0 in #((
15938 *[\\/]* ) as_myself=$0 ;;
15939 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15940 for as_dir in $PATH
15942 IFS=$as_save_IFS
15943 test -z "$as_dir" && as_dir=.
15944 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15945 done
15946 IFS=$as_save_IFS
15949 esac
15950 # We did not find ourselves, most probably we were run as `sh COMMAND'
15951 # in which case we are not to be found in the path.
15952 if test "x$as_myself" = x; then
15953 as_myself=$0
15955 if test ! -f "$as_myself"; then
15956 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15957 exit 1
15960 # Unset variables that we do not need and which cause bugs (e.g. in
15961 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15962 # suppresses any "Segmentation fault" message there. '((' could
15963 # trigger a bug in pdksh 5.2.14.
15964 for as_var in BASH_ENV ENV MAIL MAILPATH
15965 do eval test x\${$as_var+set} = xset \
15966 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15967 done
15968 PS1='$ '
15969 PS2='> '
15970 PS4='+ '
15972 # NLS nuisances.
15973 LC_ALL=C
15974 export LC_ALL
15975 LANGUAGE=C
15976 export LANGUAGE
15978 # CDPATH.
15979 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15982 # as_fn_error ERROR [LINENO LOG_FD]
15983 # ---------------------------------
15984 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15985 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15986 # script with status $?, using 1 if that was 0.
15987 as_fn_error ()
15989 as_status=$?; test $as_status -eq 0 && as_status=1
15990 if test "$3"; then
15991 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15992 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15994 $as_echo "$as_me: error: $1" >&2
15995 as_fn_exit $as_status
15996 } # as_fn_error
15999 # as_fn_set_status STATUS
16000 # -----------------------
16001 # Set $? to STATUS, without forking.
16002 as_fn_set_status ()
16004 return $1
16005 } # as_fn_set_status
16007 # as_fn_exit STATUS
16008 # -----------------
16009 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16010 as_fn_exit ()
16012 set +e
16013 as_fn_set_status $1
16014 exit $1
16015 } # as_fn_exit
16017 # as_fn_unset VAR
16018 # ---------------
16019 # Portably unset VAR.
16020 as_fn_unset ()
16022 { eval $1=; unset $1;}
16024 as_unset=as_fn_unset
16025 # as_fn_append VAR VALUE
16026 # ----------------------
16027 # Append the text in VALUE to the end of the definition contained in VAR. Take
16028 # advantage of any shell optimizations that allow amortized linear growth over
16029 # repeated appends, instead of the typical quadratic growth present in naive
16030 # implementations.
16031 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16032 eval 'as_fn_append ()
16034 eval $1+=\$2
16036 else
16037 as_fn_append ()
16039 eval $1=\$$1\$2
16041 fi # as_fn_append
16043 # as_fn_arith ARG...
16044 # ------------------
16045 # Perform arithmetic evaluation on the ARGs, and store the result in the
16046 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16047 # must be portable across $(()) and expr.
16048 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16049 eval 'as_fn_arith ()
16051 as_val=$(( $* ))
16053 else
16054 as_fn_arith ()
16056 as_val=`expr "$@" || test $? -eq 1`
16058 fi # as_fn_arith
16061 if expr a : '\(a\)' >/dev/null 2>&1 &&
16062 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16063 as_expr=expr
16064 else
16065 as_expr=false
16068 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16069 as_basename=basename
16070 else
16071 as_basename=false
16074 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16075 as_dirname=dirname
16076 else
16077 as_dirname=false
16080 as_me=`$as_basename -- "$0" ||
16081 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16082 X"$0" : 'X\(//\)$' \| \
16083 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16084 $as_echo X/"$0" |
16085 sed '/^.*\/\([^/][^/]*\)\/*$/{
16086 s//\1/
16089 /^X\/\(\/\/\)$/{
16090 s//\1/
16093 /^X\/\(\/\).*/{
16094 s//\1/
16097 s/.*/./; q'`
16099 # Avoid depending upon Character Ranges.
16100 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16101 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16102 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16103 as_cr_digits='0123456789'
16104 as_cr_alnum=$as_cr_Letters$as_cr_digits
16106 ECHO_C= ECHO_N= ECHO_T=
16107 case `echo -n x` in #(((((
16108 -n*)
16109 case `echo 'xy\c'` in
16110 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16111 xy) ECHO_C='\c';;
16112 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16113 ECHO_T=' ';;
16114 esac;;
16116 ECHO_N='-n';;
16117 esac
16119 rm -f conf$$ conf$$.exe conf$$.file
16120 if test -d conf$$.dir; then
16121 rm -f conf$$.dir/conf$$.file
16122 else
16123 rm -f conf$$.dir
16124 mkdir conf$$.dir 2>/dev/null
16126 if (echo >conf$$.file) 2>/dev/null; then
16127 if ln -s conf$$.file conf$$ 2>/dev/null; then
16128 as_ln_s='ln -s'
16129 # ... but there are two gotchas:
16130 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16131 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16132 # In both cases, we have to default to `cp -p'.
16133 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16134 as_ln_s='cp -p'
16135 elif ln conf$$.file conf$$ 2>/dev/null; then
16136 as_ln_s=ln
16137 else
16138 as_ln_s='cp -p'
16140 else
16141 as_ln_s='cp -p'
16143 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16144 rmdir conf$$.dir 2>/dev/null
16147 # as_fn_mkdir_p
16148 # -------------
16149 # Create "$as_dir" as a directory, including parents if necessary.
16150 as_fn_mkdir_p ()
16153 case $as_dir in #(
16154 -*) as_dir=./$as_dir;;
16155 esac
16156 test -d "$as_dir" || eval $as_mkdir_p || {
16157 as_dirs=
16158 while :; do
16159 case $as_dir in #(
16160 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16161 *) as_qdir=$as_dir;;
16162 esac
16163 as_dirs="'$as_qdir' $as_dirs"
16164 as_dir=`$as_dirname -- "$as_dir" ||
16165 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16166 X"$as_dir" : 'X\(//\)[^/]' \| \
16167 X"$as_dir" : 'X\(//\)$' \| \
16168 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16169 $as_echo X"$as_dir" |
16170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16171 s//\1/
16174 /^X\(\/\/\)[^/].*/{
16175 s//\1/
16178 /^X\(\/\/\)$/{
16179 s//\1/
16182 /^X\(\/\).*/{
16183 s//\1/
16186 s/.*/./; q'`
16187 test -d "$as_dir" && break
16188 done
16189 test -z "$as_dirs" || eval "mkdir $as_dirs"
16190 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16193 } # as_fn_mkdir_p
16194 if mkdir -p . 2>/dev/null; then
16195 as_mkdir_p='mkdir -p "$as_dir"'
16196 else
16197 test -d ./-p && rmdir ./-p
16198 as_mkdir_p=false
16201 if test -x / >/dev/null 2>&1; then
16202 as_test_x='test -x'
16203 else
16204 if ls -dL / >/dev/null 2>&1; then
16205 as_ls_L_option=L
16206 else
16207 as_ls_L_option=
16209 as_test_x='
16210 eval sh -c '\''
16211 if test -d "$1"; then
16212 test -d "$1/.";
16213 else
16214 case $1 in #(
16215 -*)set "./$1";;
16216 esac;
16217 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16218 ???[sx]*):;;*)false;;esac;fi
16219 '\'' sh
16222 as_executable_p=$as_test_x
16224 # Sed expression to map a string onto a valid CPP name.
16225 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16227 # Sed expression to map a string onto a valid variable name.
16228 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16231 exec 6>&1
16232 ## ----------------------------------- ##
16233 ## Main body of $CONFIG_STATUS script. ##
16234 ## ----------------------------------- ##
16235 _ASEOF
16236 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16239 # Save the log message, to keep $0 and so on meaningful, and to
16240 # report actual input values of CONFIG_FILES etc. instead of their
16241 # values after options handling.
16242 ac_log="
16243 This file was extended by aMule $as_me SVN, which was
16244 generated by GNU Autoconf 2.65. Invocation command line was
16246 CONFIG_FILES = $CONFIG_FILES
16247 CONFIG_HEADERS = $CONFIG_HEADERS
16248 CONFIG_LINKS = $CONFIG_LINKS
16249 CONFIG_COMMANDS = $CONFIG_COMMANDS
16250 $ $0 $@
16252 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16255 _ACEOF
16257 case $ac_config_files in *"
16258 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16259 esac
16261 case $ac_config_headers in *"
16262 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16263 esac
16266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16267 # Files that config.status was made for.
16268 config_files="$ac_config_files"
16269 config_headers="$ac_config_headers"
16270 config_commands="$ac_config_commands"
16272 _ACEOF
16274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16275 ac_cs_usage="\
16276 \`$as_me' instantiates files and other configuration actions
16277 from templates according to the current configuration. Unless the files
16278 and actions are specified as TAGs, all are instantiated by default.
16280 Usage: $0 [OPTION]... [TAG]...
16282 -h, --help print this help, then exit
16283 -V, --version print version number and configuration settings, then exit
16284 --config print configuration, then exit
16285 -q, --quiet, --silent
16286 do not print progress messages
16287 -d, --debug don't remove temporary files
16288 --recheck update $as_me by reconfiguring in the same conditions
16289 --file=FILE[:TEMPLATE]
16290 instantiate the configuration file FILE
16291 --header=FILE[:TEMPLATE]
16292 instantiate the configuration header FILE
16294 Configuration files:
16295 $config_files
16297 Configuration headers:
16298 $config_headers
16300 Configuration commands:
16301 $config_commands
16303 Report bugs to <admin@amule.org>."
16305 _ACEOF
16306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16307 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16308 ac_cs_version="\\
16309 aMule config.status SVN
16310 configured by $0, generated by GNU Autoconf 2.65,
16311 with options \\"\$ac_cs_config\\"
16313 Copyright (C) 2009 Free Software Foundation, Inc.
16314 This config.status script is free software; the Free Software Foundation
16315 gives unlimited permission to copy, distribute and modify it."
16317 ac_pwd='$ac_pwd'
16318 srcdir='$srcdir'
16319 INSTALL='$INSTALL'
16320 MKDIR_P='$MKDIR_P'
16321 AWK='$AWK'
16322 test -n "\$AWK" || AWK=awk
16323 _ACEOF
16325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16326 # The default lists apply if the user does not specify any file.
16327 ac_need_defaults=:
16328 while test $# != 0
16330 case $1 in
16331 --*=*)
16332 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16333 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16334 ac_shift=:
16337 ac_option=$1
16338 ac_optarg=$2
16339 ac_shift=shift
16341 esac
16343 case $ac_option in
16344 # Handling of the options.
16345 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16346 ac_cs_recheck=: ;;
16347 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16348 $as_echo "$ac_cs_version"; exit ;;
16349 --config | --confi | --conf | --con | --co | --c )
16350 $as_echo "$ac_cs_config"; exit ;;
16351 --debug | --debu | --deb | --de | --d | -d )
16352 debug=: ;;
16353 --file | --fil | --fi | --f )
16354 $ac_shift
16355 case $ac_optarg in
16356 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16357 esac
16358 as_fn_append CONFIG_FILES " '$ac_optarg'"
16359 ac_need_defaults=false;;
16360 --header | --heade | --head | --hea )
16361 $ac_shift
16362 case $ac_optarg in
16363 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16364 esac
16365 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16366 ac_need_defaults=false;;
16367 --he | --h)
16368 # Conflict between --help and --header
16369 as_fn_error "ambiguous option: \`$1'
16370 Try \`$0 --help' for more information.";;
16371 --help | --hel | -h )
16372 $as_echo "$ac_cs_usage"; exit ;;
16373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16374 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16375 ac_cs_silent=: ;;
16377 # This is an error.
16378 -*) as_fn_error "unrecognized option: \`$1'
16379 Try \`$0 --help' for more information." ;;
16381 *) as_fn_append ac_config_targets " $1"
16382 ac_need_defaults=false ;;
16384 esac
16385 shift
16386 done
16388 ac_configure_extra_args=
16390 if $ac_cs_silent; then
16391 exec 6>/dev/null
16392 ac_configure_extra_args="$ac_configure_extra_args --silent"
16395 _ACEOF
16396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16397 if \$ac_cs_recheck; then
16398 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16399 shift
16400 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16401 CONFIG_SHELL='$SHELL'
16402 export CONFIG_SHELL
16403 exec "\$@"
16406 _ACEOF
16407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16408 exec 5>>config.log
16410 echo
16411 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16412 ## Running $as_me. ##
16413 _ASBOX
16414 $as_echo "$ac_log"
16415 } >&5
16417 _ACEOF
16418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16420 # INIT-COMMANDS
16422 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16423 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16424 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16425 # from automake.
16426 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
16427 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16428 LINGUAS="${LINGUAS-%UNSET%}"
16430 denoiserlevel=$with_denoise_level
16432 _ACEOF
16434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16436 # Handling of arguments.
16437 for ac_config_target in $ac_config_targets
16439 case $ac_config_target in
16440 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16441 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16442 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16443 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
16444 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16445 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16446 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
16447 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
16448 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16449 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
16450 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
16451 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
16452 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
16453 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
16454 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
16455 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
16456 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
16457 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
16458 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
16459 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
16460 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
16461 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
16462 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
16463 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
16464 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
16465 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
16466 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
16467 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
16468 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
16469 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
16470 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
16471 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
16472 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
16473 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
16474 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
16475 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
16476 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16477 "Compilation.flags") CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
16478 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;;
16480 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16481 esac
16482 done
16485 # If the user did not use the arguments to specify the items to instantiate,
16486 # then the envvar interface is used. Set only those that are not.
16487 # We use the long form for the default assignment because of an extremely
16488 # bizarre bug on SunOS 4.1.3.
16489 if $ac_need_defaults; then
16490 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16491 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16492 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16495 # Have a temporary directory for convenience. Make it in the build tree
16496 # simply because there is no reason against having it here, and in addition,
16497 # creating and moving files from /tmp can sometimes cause problems.
16498 # Hook for its removal unless debugging.
16499 # Note that there is a small window in which the directory will not be cleaned:
16500 # after its creation but before its name has been assigned to `$tmp'.
16501 $debug ||
16503 tmp=
16504 trap 'exit_status=$?
16505 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16507 trap 'as_fn_exit 1' 1 2 13 15
16509 # Create a (secure) tmp directory for tmp files.
16512 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16513 test -n "$tmp" && test -d "$tmp"
16514 } ||
16516 tmp=./conf$$-$RANDOM
16517 (umask 077 && mkdir "$tmp")
16518 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16520 # Set up the scripts for CONFIG_FILES section.
16521 # No need to generate them if there are no CONFIG_FILES.
16522 # This happens for instance with `./config.status config.h'.
16523 if test -n "$CONFIG_FILES"; then
16526 ac_cr=`echo X | tr X '\015'`
16527 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16528 # But we know of no other shell where ac_cr would be empty at this
16529 # point, so we can use a bashism as a fallback.
16530 if test "x$ac_cr" = x; then
16531 eval ac_cr=\$\'\\r\'
16533 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16534 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16535 ac_cs_awk_cr='\r'
16536 else
16537 ac_cs_awk_cr=$ac_cr
16540 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16541 _ACEOF
16545 echo "cat >conf$$subs.awk <<_ACEOF" &&
16546 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16547 echo "_ACEOF"
16548 } >conf$$subs.sh ||
16549 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16550 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16551 ac_delim='%!_!# '
16552 for ac_last_try in false false false false false :; do
16553 . ./conf$$subs.sh ||
16554 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16556 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16557 if test $ac_delim_n = $ac_delim_num; then
16558 break
16559 elif $ac_last_try; then
16560 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16561 else
16562 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16564 done
16565 rm -f conf$$subs.sh
16567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16568 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16569 _ACEOF
16570 sed -n '
16572 s/^/S["/; s/!.*/"]=/
16575 s/^[^!]*!//
16576 :repl
16577 t repl
16578 s/'"$ac_delim"'$//
16579 t delim
16582 s/\(.\{148\}\)..*/\1/
16583 t more1
16584 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16587 b repl
16588 :more1
16589 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16592 s/.\{148\}//
16593 t nl
16594 :delim
16596 s/\(.\{148\}\)..*/\1/
16597 t more2
16598 s/["\\]/\\&/g; s/^/"/; s/$/"/
16601 :more2
16602 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16605 s/.\{148\}//
16606 t delim
16607 ' <conf$$subs.awk | sed '
16608 /^[^""]/{
16610 s/\n//
16612 ' >>$CONFIG_STATUS || ac_write_fail=1
16613 rm -f conf$$subs.awk
16614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16615 _ACAWK
16616 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16617 for (key in S) S_is_set[key] = 1
16618 FS = "\a"
16622 line = $ 0
16623 nfields = split(line, field, "@")
16624 substed = 0
16625 len = length(field[1])
16626 for (i = 2; i < nfields; i++) {
16627 key = field[i]
16628 keylen = length(key)
16629 if (S_is_set[key]) {
16630 value = S[key]
16631 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16632 len += length(value) + length(field[++i])
16633 substed = 1
16634 } else
16635 len += 1 + keylen
16638 print line
16641 _ACAWK
16642 _ACEOF
16643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16644 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16645 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16646 else
16648 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16649 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16650 _ACEOF
16652 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16653 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16654 # trailing colons and then remove the whole line if VPATH becomes empty
16655 # (actually we leave an empty line to preserve line numbers).
16656 if test "x$srcdir" = x.; then
16657 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16658 s/:*\$(srcdir):*/:/
16659 s/:*\${srcdir}:*/:/
16660 s/:*@srcdir@:*/:/
16661 s/^\([^=]*=[ ]*\):*/\1/
16662 s/:*$//
16663 s/^[^=]*=[ ]*$//
16667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16668 fi # test -n "$CONFIG_FILES"
16670 # Set up the scripts for CONFIG_HEADERS section.
16671 # No need to generate them if there are no CONFIG_HEADERS.
16672 # This happens for instance with `./config.status Makefile'.
16673 if test -n "$CONFIG_HEADERS"; then
16674 cat >"$tmp/defines.awk" <<\_ACAWK ||
16675 BEGIN {
16676 _ACEOF
16678 # Transform confdefs.h into an awk script `defines.awk', embedded as
16679 # here-document in config.status, that substitutes the proper values into
16680 # config.h.in to produce config.h.
16682 # Create a delimiter string that does not exist in confdefs.h, to ease
16683 # handling of long lines.
16684 ac_delim='%!_!# '
16685 for ac_last_try in false false :; do
16686 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16687 if test -z "$ac_t"; then
16688 break
16689 elif $ac_last_try; then
16690 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16691 else
16692 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16694 done
16696 # For the awk script, D is an array of macro values keyed by name,
16697 # likewise P contains macro parameters if any. Preserve backslash
16698 # newline sequences.
16700 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16701 sed -n '
16702 s/.\{148\}/&'"$ac_delim"'/g
16703 t rset
16704 :rset
16705 s/^[ ]*#[ ]*define[ ][ ]*/ /
16706 t def
16708 :def
16709 s/\\$//
16710 t bsnl
16711 s/["\\]/\\&/g
16712 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16713 D["\1"]=" \3"/p
16714 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16716 :bsnl
16717 s/["\\]/\\&/g
16718 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16719 D["\1"]=" \3\\\\\\n"\\/p
16720 t cont
16721 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16722 t cont
16724 :cont
16726 s/.\{148\}/&'"$ac_delim"'/g
16727 t clear
16728 :clear
16729 s/\\$//
16730 t bsnlc
16731 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16733 :bsnlc
16734 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16735 b cont
16736 ' <confdefs.h | sed '
16737 s/'"$ac_delim"'/"\\\
16738 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16741 for (key in D) D_is_set[key] = 1
16742 FS = "\a"
16744 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16745 line = \$ 0
16746 split(line, arg, " ")
16747 if (arg[1] == "#") {
16748 defundef = arg[2]
16749 mac1 = arg[3]
16750 } else {
16751 defundef = substr(arg[1], 2)
16752 mac1 = arg[2]
16754 split(mac1, mac2, "(") #)
16755 macro = mac2[1]
16756 prefix = substr(line, 1, index(line, defundef) - 1)
16757 if (D_is_set[macro]) {
16758 # Preserve the white space surrounding the "#".
16759 print prefix "define", macro P[macro] D[macro]
16760 next
16761 } else {
16762 # Replace #undef with comments. This is necessary, for example,
16763 # in the case of _POSIX_SOURCE, which is predefined and required
16764 # on some systems where configure will not decide to define it.
16765 if (defundef == "undef") {
16766 print "/*", prefix defundef, macro, "*/"
16767 next
16771 { print }
16772 _ACAWK
16773 _ACEOF
16774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16775 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16776 fi # test -n "$CONFIG_HEADERS"
16779 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16780 shift
16781 for ac_tag
16783 case $ac_tag in
16784 :[FHLC]) ac_mode=$ac_tag; continue;;
16785 esac
16786 case $ac_mode$ac_tag in
16787 :[FHL]*:*);;
16788 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16789 :[FH]-) ac_tag=-:-;;
16790 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16791 esac
16792 ac_save_IFS=$IFS
16793 IFS=:
16794 set x $ac_tag
16795 IFS=$ac_save_IFS
16796 shift
16797 ac_file=$1
16798 shift
16800 case $ac_mode in
16801 :L) ac_source=$1;;
16802 :[FH])
16803 ac_file_inputs=
16804 for ac_f
16806 case $ac_f in
16807 -) ac_f="$tmp/stdin";;
16808 *) # Look for the file first in the build tree, then in the source tree
16809 # (if the path is not absolute). The absolute path cannot be DOS-style,
16810 # because $ac_f cannot contain `:'.
16811 test -f "$ac_f" ||
16812 case $ac_f in
16813 [\\/$]*) false;;
16814 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16815 esac ||
16816 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16817 esac
16818 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16819 as_fn_append ac_file_inputs " '$ac_f'"
16820 done
16822 # Let's still pretend it is `configure' which instantiates (i.e., don't
16823 # use $as_me), people would be surprised to read:
16824 # /* config.h. Generated by config.status. */
16825 configure_input='Generated from '`
16826 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16827 `' by configure.'
16828 if test x"$ac_file" != x-; then
16829 configure_input="$ac_file. $configure_input"
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16831 $as_echo "$as_me: creating $ac_file" >&6;}
16833 # Neutralize special characters interpreted by sed in replacement strings.
16834 case $configure_input in #(
16835 *\&* | *\|* | *\\* )
16836 ac_sed_conf_input=`$as_echo "$configure_input" |
16837 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16838 *) ac_sed_conf_input=$configure_input;;
16839 esac
16841 case $ac_tag in
16842 *:-:* | *:-) cat >"$tmp/stdin" \
16843 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16844 esac
16846 esac
16848 ac_dir=`$as_dirname -- "$ac_file" ||
16849 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16850 X"$ac_file" : 'X\(//\)[^/]' \| \
16851 X"$ac_file" : 'X\(//\)$' \| \
16852 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16853 $as_echo X"$ac_file" |
16854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16855 s//\1/
16858 /^X\(\/\/\)[^/].*/{
16859 s//\1/
16862 /^X\(\/\/\)$/{
16863 s//\1/
16866 /^X\(\/\).*/{
16867 s//\1/
16870 s/.*/./; q'`
16871 as_dir="$ac_dir"; as_fn_mkdir_p
16872 ac_builddir=.
16874 case "$ac_dir" in
16875 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16877 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16878 # A ".." for each directory in $ac_dir_suffix.
16879 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16880 case $ac_top_builddir_sub in
16881 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16882 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16883 esac ;;
16884 esac
16885 ac_abs_top_builddir=$ac_pwd
16886 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16887 # for backward compatibility:
16888 ac_top_builddir=$ac_top_build_prefix
16890 case $srcdir in
16891 .) # We are building in place.
16892 ac_srcdir=.
16893 ac_top_srcdir=$ac_top_builddir_sub
16894 ac_abs_top_srcdir=$ac_pwd ;;
16895 [\\/]* | ?:[\\/]* ) # Absolute name.
16896 ac_srcdir=$srcdir$ac_dir_suffix;
16897 ac_top_srcdir=$srcdir
16898 ac_abs_top_srcdir=$srcdir ;;
16899 *) # Relative name.
16900 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16901 ac_top_srcdir=$ac_top_build_prefix$srcdir
16902 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16903 esac
16904 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16907 case $ac_mode in
16910 # CONFIG_FILE
16913 case $INSTALL in
16914 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16915 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16916 esac
16917 ac_MKDIR_P=$MKDIR_P
16918 case $MKDIR_P in
16919 [\\/$]* | ?:[\\/]* ) ;;
16920 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16921 esac
16922 _ACEOF
16924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16925 # If the template does not know about datarootdir, expand it.
16926 # FIXME: This hack should be removed a few years after 2.60.
16927 ac_datarootdir_hack=; ac_datarootdir_seen=
16928 ac_sed_dataroot='
16929 /datarootdir/ {
16933 /@datadir@/p
16934 /@docdir@/p
16935 /@infodir@/p
16936 /@localedir@/p
16937 /@mandir@/p'
16938 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16939 *datarootdir*) ac_datarootdir_seen=yes;;
16940 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16942 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16943 _ACEOF
16944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16945 ac_datarootdir_hack='
16946 s&@datadir@&$datadir&g
16947 s&@docdir@&$docdir&g
16948 s&@infodir@&$infodir&g
16949 s&@localedir@&$localedir&g
16950 s&@mandir@&$mandir&g
16951 s&\\\${datarootdir}&$datarootdir&g' ;;
16952 esac
16953 _ACEOF
16955 # Neutralize VPATH when `$srcdir' = `.'.
16956 # Shell code in configure.ac might set extrasub.
16957 # FIXME: do we really want to maintain this feature?
16958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16959 ac_sed_extra="$ac_vpsub
16960 $extrasub
16961 _ACEOF
16962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16964 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16965 s|@configure_input@|$ac_sed_conf_input|;t t
16966 s&@top_builddir@&$ac_top_builddir_sub&;t t
16967 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16968 s&@srcdir@&$ac_srcdir&;t t
16969 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16970 s&@top_srcdir@&$ac_top_srcdir&;t t
16971 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16972 s&@builddir@&$ac_builddir&;t t
16973 s&@abs_builddir@&$ac_abs_builddir&;t t
16974 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16975 s&@INSTALL@&$ac_INSTALL&;t t
16976 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16977 $ac_datarootdir_hack
16979 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16980 || as_fn_error "could not create $ac_file" "$LINENO" 5
16982 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16983 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16984 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16986 which seems to be undefined. Please make sure it is defined." >&5
16987 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16988 which seems to be undefined. Please make sure it is defined." >&2;}
16990 rm -f "$tmp/stdin"
16991 case $ac_file in
16992 -) cat "$tmp/out" && rm -f "$tmp/out";;
16993 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16994 esac \
16995 || as_fn_error "could not create $ac_file" "$LINENO" 5
16999 # CONFIG_HEADER
17001 if test x"$ac_file" != x-; then
17003 $as_echo "/* $configure_input */" \
17004 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17005 } >"$tmp/config.h" \
17006 || as_fn_error "could not create $ac_file" "$LINENO" 5
17007 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17009 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17010 else
17011 rm -f "$ac_file"
17012 mv "$tmp/config.h" "$ac_file" \
17013 || as_fn_error "could not create $ac_file" "$LINENO" 5
17015 else
17016 $as_echo "/* $configure_input */" \
17017 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17018 || as_fn_error "could not create -" "$LINENO" 5
17020 # Compute "$ac_file"'s index in $config_headers.
17021 _am_arg="$ac_file"
17022 _am_stamp_count=1
17023 for _am_header in $config_headers :; do
17024 case $_am_header in
17025 $_am_arg | $_am_arg:* )
17026 break ;;
17028 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17029 esac
17030 done
17031 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17032 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17033 X"$_am_arg" : 'X\(//\)[^/]' \| \
17034 X"$_am_arg" : 'X\(//\)$' \| \
17035 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17036 $as_echo X"$_am_arg" |
17037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17038 s//\1/
17041 /^X\(\/\/\)[^/].*/{
17042 s//\1/
17045 /^X\(\/\/\)$/{
17046 s//\1/
17049 /^X\(\/\).*/{
17050 s//\1/
17053 s/.*/./; q'`/stamp-h$_am_stamp_count
17056 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17057 $as_echo "$as_me: executing $ac_file commands" >&6;}
17059 esac
17062 case $ac_file$ac_mode in
17063 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17064 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17065 # are listed without --file. Let's play safe and only enable the eval
17066 # if we detect the quoting.
17067 case $CONFIG_FILES in
17068 *\'*) eval set x "$CONFIG_FILES" ;;
17069 *) set x $CONFIG_FILES ;;
17070 esac
17071 shift
17072 for mf
17074 # Strip MF so we end up with the name of the file.
17075 mf=`echo "$mf" | sed -e 's/:.*$//'`
17076 # Check whether this is an Automake generated Makefile or not.
17077 # We used to match only the files named `Makefile.in', but
17078 # some people rename them; so instead we look at the file content.
17079 # Grep'ing the first line is not enough: some people post-process
17080 # each Makefile.in and add a new line on top of each file to say so.
17081 # Grep'ing the whole file is not good either: AIX grep has a line
17082 # limit of 2048, but all sed's we know have understand at least 4000.
17083 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17084 dirpart=`$as_dirname -- "$mf" ||
17085 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17086 X"$mf" : 'X\(//\)[^/]' \| \
17087 X"$mf" : 'X\(//\)$' \| \
17088 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17089 $as_echo X"$mf" |
17090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17091 s//\1/
17094 /^X\(\/\/\)[^/].*/{
17095 s//\1/
17098 /^X\(\/\/\)$/{
17099 s//\1/
17102 /^X\(\/\).*/{
17103 s//\1/
17106 s/.*/./; q'`
17107 else
17108 continue
17110 # Extract the definition of DEPDIR, am__include, and am__quote
17111 # from the Makefile without running `make'.
17112 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17113 test -z "$DEPDIR" && continue
17114 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17115 test -z "am__include" && continue
17116 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17117 # When using ansi2knr, U may be empty or an underscore; expand it
17118 U=`sed -n 's/^U = //p' < "$mf"`
17119 # Find all dependency output files, they are included files with
17120 # $(DEPDIR) in their names. We invoke sed twice because it is the
17121 # simplest approach to changing $(DEPDIR) to its actual value in the
17122 # expansion.
17123 for file in `sed -n "
17124 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17125 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17126 # Make sure the directory exists.
17127 test -f "$dirpart/$file" && continue
17128 fdir=`$as_dirname -- "$file" ||
17129 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17130 X"$file" : 'X\(//\)[^/]' \| \
17131 X"$file" : 'X\(//\)$' \| \
17132 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17133 $as_echo X"$file" |
17134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17135 s//\1/
17138 /^X\(\/\/\)[^/].*/{
17139 s//\1/
17142 /^X\(\/\/\)$/{
17143 s//\1/
17146 /^X\(\/\).*/{
17147 s//\1/
17150 s/.*/./; q'`
17151 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17152 # echo "creating $dirpart/$file"
17153 echo '# dummy' > "$dirpart/$file"
17154 done
17155 done
17158 "default-1":C)
17159 for ac_file in $CONFIG_FILES; do
17160 # Support "outfile[:infile[:infile...]]"
17161 case "$ac_file" in
17162 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17163 esac
17164 # PO directories have a Makefile.in generated from Makefile.in.in.
17165 case "$ac_file" in */Makefile.in)
17166 # Adjust a relative srcdir.
17167 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17168 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17169 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17170 # In autoconf-2.13 it is called $ac_given_srcdir.
17171 # In autoconf-2.50 it is called $srcdir.
17172 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17173 case "$ac_given_srcdir" in
17174 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17175 /*) top_srcdir="$ac_given_srcdir" ;;
17176 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17177 esac
17178 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17179 rm -f "$ac_dir/POTFILES"
17180 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17181 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17182 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17183 # on $ac_dir but don't depend on user-specified configuration
17184 # parameters.
17185 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17186 # The LINGUAS file contains the set of available languages.
17187 if test -n "$ALL_LINGUAS"; then
17188 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17190 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17191 # Hide the ALL_LINGUAS assigment from automake.
17192 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17194 case "$ac_given_srcdir" in
17195 .) srcdirpre= ;;
17196 *) srcdirpre='$(srcdir)/' ;;
17197 esac
17198 POFILES=
17199 GMOFILES=
17200 UPDATEPOFILES=
17201 DUMMYPOFILES=
17202 for lang in $ALL_LINGUAS; do
17203 POFILES="$POFILES $srcdirpre$lang.po"
17204 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17205 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17206 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17207 done
17208 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17209 # environment variable.
17210 INST_LINGUAS=
17211 if test -n "$ALL_LINGUAS"; then
17212 for presentlang in $ALL_LINGUAS; do
17213 useit=no
17214 if test "%UNSET%" != "$LINGUAS"; then
17215 desiredlanguages="$LINGUAS"
17216 else
17217 desiredlanguages="$ALL_LINGUAS"
17219 for desiredlang in $desiredlanguages; do
17220 # Use the presentlang catalog if desiredlang is
17221 # a. equal to presentlang, or
17222 # b. a variant of presentlang (because in this case,
17223 # presentlang can be used as a fallback for messages
17224 # which are not translated in the desiredlang catalog).
17225 case "$desiredlang" in
17226 "$presentlang"*) useit=yes;;
17227 esac
17228 done
17229 if test $useit = yes; then
17230 INST_LINGUAS="$INST_LINGUAS $presentlang"
17232 done
17234 CATALOGS=
17235 if test -n "$INST_LINGUAS"; then
17236 for lang in $INST_LINGUAS; do
17237 CATALOGS="$CATALOGS $lang.gmo"
17238 done
17240 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17241 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"
17242 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17243 if test -f "$f"; then
17244 case "$f" in
17245 *.orig | *.bak | *~) ;;
17246 *) cat "$f" >> "$ac_dir/Makefile" ;;
17247 esac
17249 done
17252 esac
17253 done ;;
17254 "denoiser":C) if test $denoiserlevel -gt 0; then
17255 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
17256 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" \
17257 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
17258 for i in `find . -name 'Makefile' -print`; do
17259 if test -n "`head -n 1 $i | grep '^#'`"; then
17260 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
17262 done
17263 fi ;;
17265 esac
17266 done # for ac_tag
17269 as_fn_exit 0
17270 _ACEOF
17271 ac_clean_files=$ac_clean_files_save
17273 test $ac_write_fail = 0 ||
17274 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17277 # configure is writing to config.log, and then calls config.status.
17278 # config.status does its own redirection, appending to config.log.
17279 # Unfortunately, on DOS this fails, as config.log is still kept open
17280 # by configure, so config.status won't be able to write to it; its
17281 # output is simply discarded. So we exec the FD to /dev/null,
17282 # effectively closing config.log, so it can be properly (re)opened and
17283 # appended to by config.status. When coming back to configure, we
17284 # need to make the FD available again.
17285 if test "$no_create" != yes; then
17286 ac_cs_success=:
17287 ac_config_status_args=
17288 test "$silent" = yes &&
17289 ac_config_status_args="$ac_config_status_args --quiet"
17290 exec 5>/dev/null
17291 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17292 exec 5>>config.log
17293 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17294 # would make configure fail if this is the last instruction.
17295 $ac_cs_success || as_fn_exit $?
17297 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17299 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17303 if test -n "$svndate"; then :
17304 SVN_REVISION=" ($svndate)"
17305 else
17306 SVN_REVISION=
17309 echo
17310 echo
17311 echo " Configure script has finished system check."
17312 echo
17313 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
17314 echo
17315 echo " aMule enabled options:"
17316 echo
17317 echo " **** aMule Core ****"
17318 echo " Prefix where aMule should be installed? ${prefix:-none}"
17319 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
17320 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
17321 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
17322 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
17323 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
17324 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
17325 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
17326 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
17327 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
17328 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
17330 echo
17331 echo " **** aMule TextClient ****"
17332 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
17333 echo
17334 echo " **** aMule WebServer ****"
17335 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
17336 echo
17337 echo " **** aMule ED2K Links Handler ****"
17338 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
17339 echo
17340 echo " **** aMuleLinkCreator ****"
17341 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
17342 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
17343 echo
17344 echo " **** aMule Statistics ****"
17345 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
17346 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
17347 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
17348 echo " Should plasmaMule plasma-applet be build? ${enable_plasmamule:-no}"
17350 echo
17351 echo " **** General Libraries and Tools ****"
17352 echo " Should ccache support be enabled? ${enable_ccache:-no}"
17353 echo " Libraries aMule will use to build:"
17354 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 :
17356 wxinfo="$WX_PORT"
17357 if test $WX_DEBUG -eq 1; then :
17358 wxinfo="$wxinfo,debug"
17360 if test $WX_SHARED -eq 1; then :
17361 wxinfo="$wxinfo,shared"
17362 else
17363 wxinfo="$wxinfo,static"
17365 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
17368 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
17369 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
17371 if test ${enable_upnp:-yes} = yes; then :
17373 if test -n "$with_libupnp_prefix"; then :
17374 libupnp_place=" (in $with_libupnp_prefix)"
17376 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
17379 if test ${enable_nls:-yes} = yes; then
17380 if test x$USE_NLS = xno; then :
17381 libintl_found="Not detected"
17382 else
17383 if test x$USE_INCLUDED_LIBINTL = xyes; then :
17384 libintl_found="included"
17385 else
17386 libintl_found="system"
17389 echo " libintl $libintl_found"
17391 if test ${enable_geoip:-no} = yes; then :
17392 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
17393 geoip_style=system
17394 else
17395 geoip_style=user
17397 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
17398 echo " libGeoIP ${geoip_style}"
17401 if test ${enable_webserver:-no} = yes; then :
17402 echo " libpng ${LIBPNG_VERSION:-Not detected}"
17404 if test ${enable_cas:-no} = yes; then :
17405 echo " libgd ${GDLIB_VERSION:-Not detected}"
17407 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 :
17408 echo " zlib ${ZLIB_VERSION:-Not detected}"
17410 if test ${enable_plasmamule:-no} = yes; then :
17411 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
17412 echo " qt-core-libs ${QT_CORE_LIBS}"
17413 echo " qt-gui-libs ${QT_GUI_LIBS}"
17414 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
17415 echo " kde-headers ${KDE_HEADER_DIR}"
17416 echo " kde-services-path ${KDE_SERVICE_PATH}"
17417 echo " kde-module-path ${KDE_MODULE_PATH}"
17418 echo " kde-icon-path ${KDE_ICON_PATH}"
17419 echo " kde-mime-path ${KDE_MIME_PATH}"
17420 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
17423 if test ${_mule_has_warnings:-no} = yes; then
17424 echo ""
17425 echo ""
17426 echo " *** Warnings during configuration ***"
17428 if test ${_mule_warning_0:-no} = yes; then
17429 cat <<_MULEEOT
17431 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
17432 Please check that gdlib-config is in your default path, check out
17433 LD_LIBRARY_PATH or equivalent variable.
17434 Or this might also be that your gdlib-config has other name.
17435 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
17436 /usr/bin/gdlib-config with a valid path to your gdlib-config).
17437 If you use compiled packages check if you have devel pack installed.
17438 To download the latest version check http://www.boutell.com/gd for sources.
17439 _MULEEOT
17441 if test ${_mule_warning_1:-no} = yes; then
17442 cat <<_MULEEOT
17444 * libpng >= 1.2.0 not found.
17445 amuleweb will be compiled but file download progress bar images will NOT be
17446 generated.
17447 _MULEEOT
17449 if test ${_mule_warning_2:-no} = yes; then
17450 cat <<_MULEEOT
17452 * File::Copy perl module is required by the mldonkey_importer script.
17453 If you want to use this script please install File::Copy from CPAN.
17454 _MULEEOT
17456 if test ${_mule_warning_3:-no} = yes; then
17457 cat <<_MULEEOT
17459 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
17460 _MULEEOT
17462 if test ${_mule_warning_4:-no} = yes; then
17463 cat <<_MULEEOT
17465 * GeoIP support has been disabled because the GeoIP libraries were not found
17466 _MULEEOT
17468 if test ${_mule_warning_5:-no} = yes; then
17469 cat <<_MULEEOT
17471 * GeoIP support has been disabled because the GeoIP header files were not
17472 found
17473 _MULEEOT
17475 if test ${_mule_warning_6:-no} = yes; then
17476 cat <<_MULEEOT
17478 * UPnP code has been disabled because ${libupnp_error}.
17479 _MULEEOT
17481 if test ${_mule_warning_7:-no} = yes; then
17482 cat <<_MULEEOT
17484 * Cross-compilation detected, so exception handling cannot be tested.
17485 Note that broken exception handling in your compiler may lead to unexpected
17486 crashes.
17487 _MULEEOT
17489 if test ${_mule_warning_8:-no} = yes; then
17490 cat <<_MULEEOT
17492 * configure cannot check whether malloc() and realloc() are GNU libc
17493 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
17494 configure with the --without-gnu-malloc switch.
17495 _MULEEOT
17497 if test ${_mule_warning_9:-no} = yes; then
17498 cat <<_MULEEOT
17500 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
17501 support.
17502 _MULEEOT
17504 if test ${_mule_warning_10:-no} = yes; then
17505 cat <<_MULEEOT
17507 * bfd.h not found or unusable, please install binutils development package if
17508 you are a developer or want to help testing aMule
17509 _MULEEOT