Debian patches by Vollstrecker
[amule.git] / configure
blob81a566d802256992662d51d37d6a25393dfc56a2
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__untar
797 am__tar
798 AMTAR
799 am__leading_dot
800 SET_MAKE
802 mkdir_p
803 MKDIR_P
804 INSTALL_STRIP_PROGRAM
805 STRIP
806 install_sh
807 MAKEINFO
808 AUTOHEADER
809 AUTOMAKE
810 AUTOCONF
811 ACLOCAL
812 VERSION
813 PACKAGE
814 CYGPATH_W
815 am__isrc
816 INSTALL_DATA
817 INSTALL_SCRIPT
818 INSTALL_PROGRAM
819 target_alias
820 host_alias
821 build_alias
822 LIBS
823 ECHO_T
824 ECHO_N
825 ECHO_C
826 DEFS
827 mandir
828 localedir
829 libdir
830 psdir
831 pdfdir
832 dvidir
833 htmldir
834 infodir
835 docdir
836 oldincludedir
837 includedir
838 localstatedir
839 sharedstatedir
840 sysconfdir
841 datadir
842 datarootdir
843 libexecdir
844 sbindir
845 bindir
846 program_transform_name
847 prefix
848 exec_prefix
849 PACKAGE_URL
850 PACKAGE_BUGREPORT
851 PACKAGE_STRING
852 PACKAGE_VERSION
853 PACKAGE_TARNAME
854 PACKAGE_NAME
855 PATH_SEPARATOR
856 SHELL
857 GEOIP_LIBS
858 GEOIP_LDFLAGS
859 GEOIP_CPPFLAGS'
860 ac_subst_files=''
861 ac_user_opts='
862 enable_option_checking
863 enable_maintainer_mode
864 enable_dependency_tracking
865 enable_monolithic
866 enable_amule_daemon
867 enable_amulecmd
868 enable_webserver
869 enable_amule_gui
870 enable_cas
871 enable_wxcas
872 enable_ed2k
873 enable_alc
874 enable_alcc
875 enable_xas
876 enable_fileview
877 enable_plasmamule
878 enable_static
879 with_kde4_config
880 enable_kde_in_home
881 with_moc
882 with_gnu_malloc
883 with_zlib
884 with_gdlib_prefix
885 with_gdlib_config
886 with_libpng_prefix
887 with_libpng_config
888 enable_geoip
889 with_geoip_headers
890 with_geoip_lib
891 with_geoip_static
892 with_wxdir
893 with_wx_config
894 with_wx_prefix
895 with_wx_exec_prefix
896 with_toolkit
897 with_wxshared
898 with_wxdebug
899 with_wxversion
900 enable_upnp
901 with_libupnp_prefix
902 with_crypto_prefix
903 enable_mmap
904 with_language
905 with_gnu_ld
906 enable_rpath
907 with_libiconv_prefix
908 enable_nls
909 with_included_gettext
910 with_libintl_prefix
911 enable_debug
912 enable_profile
913 enable_optimize
914 with_denoise_level
915 enable_ccache
916 with_ccache_prefix
918 ac_precious_vars='build_alias
919 host_alias
920 target_alias
922 CXXFLAGS
923 LDFLAGS
924 LIBS
925 CPPFLAGS
927 CXXCPP
929 CFLAGS
931 YACC
932 YFLAGS
934 RCFLAGS
935 PKG_CONFIG'
938 # Initialize some variables set by options.
939 ac_init_help=
940 ac_init_version=false
941 ac_unrecognized_opts=
942 ac_unrecognized_sep=
943 # The variables have the same names as the options, with
944 # dashes changed to underlines.
945 cache_file=/dev/null
946 exec_prefix=NONE
947 no_create=
948 no_recursion=
949 prefix=NONE
950 program_prefix=NONE
951 program_suffix=NONE
952 program_transform_name=s,x,x,
953 silent=
954 site=
955 srcdir=
956 verbose=
957 x_includes=NONE
958 x_libraries=NONE
960 # Installation directory options.
961 # These are left unexpanded so users can "make install exec_prefix=/foo"
962 # and all the variables that are supposed to be based on exec_prefix
963 # by default will actually change.
964 # Use braces instead of parens because sh, perl, etc. also accept them.
965 # (The list follows the same order as the GNU Coding Standards.)
966 bindir='${exec_prefix}/bin'
967 sbindir='${exec_prefix}/sbin'
968 libexecdir='${exec_prefix}/libexec'
969 datarootdir='${prefix}/share'
970 datadir='${datarootdir}'
971 sysconfdir='${prefix}/etc'
972 sharedstatedir='${prefix}/com'
973 localstatedir='${prefix}/var'
974 includedir='${prefix}/include'
975 oldincludedir='/usr/include'
976 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
977 infodir='${datarootdir}/info'
978 htmldir='${docdir}'
979 dvidir='${docdir}'
980 pdfdir='${docdir}'
981 psdir='${docdir}'
982 libdir='${exec_prefix}/lib'
983 localedir='${datarootdir}/locale'
984 mandir='${datarootdir}/man'
986 ac_prev=
987 ac_dashdash=
988 for ac_option
990 # If the previous option needs an argument, assign it.
991 if test -n "$ac_prev"; then
992 eval $ac_prev=\$ac_option
993 ac_prev=
994 continue
997 case $ac_option in
998 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
999 *) ac_optarg=yes ;;
1000 esac
1002 # Accept the important Cygnus configure options, so we can diagnose typos.
1004 case $ac_dashdash$ac_option in
1006 ac_dashdash=yes ;;
1008 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009 ac_prev=bindir ;;
1010 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1011 bindir=$ac_optarg ;;
1013 -build | --build | --buil | --bui | --bu)
1014 ac_prev=build_alias ;;
1015 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1016 build_alias=$ac_optarg ;;
1018 -cache-file | --cache-file | --cache-fil | --cache-fi \
1019 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1020 ac_prev=cache_file ;;
1021 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1022 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1023 cache_file=$ac_optarg ;;
1025 --config-cache | -C)
1026 cache_file=config.cache ;;
1028 -datadir | --datadir | --datadi | --datad)
1029 ac_prev=datadir ;;
1030 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1031 datadir=$ac_optarg ;;
1033 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1034 | --dataroo | --dataro | --datar)
1035 ac_prev=datarootdir ;;
1036 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1037 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1038 datarootdir=$ac_optarg ;;
1040 -disable-* | --disable-*)
1041 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 as_fn_error "invalid feature name: $ac_useropt"
1045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1049 "enable_$ac_useropt"
1050 "*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval enable_$ac_useropt=no ;;
1056 -docdir | --docdir | --docdi | --doc | --do)
1057 ac_prev=docdir ;;
1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059 docdir=$ac_optarg ;;
1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062 ac_prev=dvidir ;;
1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064 dvidir=$ac_optarg ;;
1066 -enable-* | --enable-*)
1067 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 as_fn_error "invalid feature name: $ac_useropt"
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1075 "enable_$ac_useropt"
1076 "*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval enable_$ac_useropt=\$ac_optarg ;;
1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084 | --exec | --exe | --ex)
1085 ac_prev=exec_prefix ;;
1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088 | --exec=* | --exe=* | --ex=*)
1089 exec_prefix=$ac_optarg ;;
1091 -gas | --gas | --ga | --g)
1092 # Obsolete; use --with-gas.
1093 with_gas=yes ;;
1095 -help | --help | --hel | --he | -h)
1096 ac_init_help=long ;;
1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098 ac_init_help=recursive ;;
1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100 ac_init_help=short ;;
1102 -host | --host | --hos | --ho)
1103 ac_prev=host_alias ;;
1104 -host=* | --host=* | --hos=* | --ho=*)
1105 host_alias=$ac_optarg ;;
1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 ac_prev=htmldir ;;
1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 | --ht=*)
1111 htmldir=$ac_optarg ;;
1113 -includedir | --includedir | --includedi | --included | --include \
1114 | --includ | --inclu | --incl | --inc)
1115 ac_prev=includedir ;;
1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117 | --includ=* | --inclu=* | --incl=* | --inc=*)
1118 includedir=$ac_optarg ;;
1120 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 ac_prev=infodir ;;
1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123 infodir=$ac_optarg ;;
1125 -libdir | --libdir | --libdi | --libd)
1126 ac_prev=libdir ;;
1127 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128 libdir=$ac_optarg ;;
1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131 | --libexe | --libex | --libe)
1132 ac_prev=libexecdir ;;
1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134 | --libexe=* | --libex=* | --libe=*)
1135 libexecdir=$ac_optarg ;;
1137 -localedir | --localedir | --localedi | --localed | --locale)
1138 ac_prev=localedir ;;
1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140 localedir=$ac_optarg ;;
1142 -localstatedir | --localstatedir | --localstatedi | --localstated \
1143 | --localstate | --localstat | --localsta | --localst | --locals)
1144 ac_prev=localstatedir ;;
1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1147 localstatedir=$ac_optarg ;;
1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 ac_prev=mandir ;;
1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152 mandir=$ac_optarg ;;
1154 -nfp | --nfp | --nf)
1155 # Obsolete; use --without-fp.
1156 with_fp=no ;;
1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159 | --no-cr | --no-c | -n)
1160 no_create=yes ;;
1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 no_recursion=yes ;;
1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168 | --oldin | --oldi | --old | --ol | --o)
1169 ac_prev=oldincludedir ;;
1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173 oldincludedir=$ac_optarg ;;
1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 ac_prev=prefix ;;
1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178 prefix=$ac_optarg ;;
1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181 | --program-pre | --program-pr | --program-p)
1182 ac_prev=program_prefix ;;
1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185 program_prefix=$ac_optarg ;;
1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188 | --program-suf | --program-su | --program-s)
1189 ac_prev=program_suffix ;;
1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192 program_suffix=$ac_optarg ;;
1194 -program-transform-name | --program-transform-name \
1195 | --program-transform-nam | --program-transform-na \
1196 | --program-transform-n | --program-transform- \
1197 | --program-transform | --program-transfor \
1198 | --program-transfo | --program-transf \
1199 | --program-trans | --program-tran \
1200 | --progr-tra | --program-tr | --program-t)
1201 ac_prev=program_transform_name ;;
1202 -program-transform-name=* | --program-transform-name=* \
1203 | --program-transform-nam=* | --program-transform-na=* \
1204 | --program-transform-n=* | --program-transform-=* \
1205 | --program-transform=* | --program-transfor=* \
1206 | --program-transfo=* | --program-transf=* \
1207 | --program-trans=* | --program-tran=* \
1208 | --progr-tra=* | --program-tr=* | --program-t=*)
1209 program_transform_name=$ac_optarg ;;
1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 ac_prev=pdfdir ;;
1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214 pdfdir=$ac_optarg ;;
1216 -psdir | --psdir | --psdi | --psd | --ps)
1217 ac_prev=psdir ;;
1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219 psdir=$ac_optarg ;;
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 silent=yes ;;
1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226 ac_prev=sbindir ;;
1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228 | --sbi=* | --sb=*)
1229 sbindir=$ac_optarg ;;
1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233 | --sharedst | --shareds | --shared | --share | --shar \
1234 | --sha | --sh)
1235 ac_prev=sharedstatedir ;;
1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239 | --sha=* | --sh=*)
1240 sharedstatedir=$ac_optarg ;;
1242 -site | --site | --sit)
1243 ac_prev=site ;;
1244 -site=* | --site=* | --sit=*)
1245 site=$ac_optarg ;;
1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248 ac_prev=srcdir ;;
1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1250 srcdir=$ac_optarg ;;
1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253 | --syscon | --sysco | --sysc | --sys | --sy)
1254 ac_prev=sysconfdir ;;
1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1257 sysconfdir=$ac_optarg ;;
1259 -target | --target | --targe | --targ | --tar | --ta | --t)
1260 ac_prev=target_alias ;;
1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1262 target_alias=$ac_optarg ;;
1264 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265 verbose=yes ;;
1267 -version | --version | --versio | --versi | --vers | -V)
1268 ac_init_version=: ;;
1270 -with-* | --with-*)
1271 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 as_fn_error "invalid package name: $ac_useropt"
1275 ac_useropt_orig=$ac_useropt
1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1279 "with_$ac_useropt"
1280 "*) ;;
1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1282 ac_unrecognized_sep=', ';;
1283 esac
1284 eval with_$ac_useropt=\$ac_optarg ;;
1286 -without-* | --without-*)
1287 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290 as_fn_error "invalid package name: $ac_useropt"
1291 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1295 "with_$ac_useropt"
1296 "*) ;;
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
1299 esac
1300 eval with_$ac_useropt=no ;;
1302 --x)
1303 # Obsolete; use --with-x.
1304 with_x=yes ;;
1306 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1307 | --x-incl | --x-inc | --x-in | --x-i)
1308 ac_prev=x_includes ;;
1309 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1310 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1311 x_includes=$ac_optarg ;;
1313 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1314 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1315 ac_prev=x_libraries ;;
1316 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1317 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1318 x_libraries=$ac_optarg ;;
1320 -*) as_fn_error "unrecognized option: \`$ac_option'
1321 Try \`$0 --help' for more information."
1324 *=*)
1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326 # Reject names that are not valid shell variable names.
1327 case $ac_envvar in #(
1328 '' | [0-9]* | *[!_$as_cr_alnum]* )
1329 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1330 esac
1331 eval $ac_envvar=\$ac_optarg
1332 export $ac_envvar ;;
1335 # FIXME: should be removed in autoconf 3.0.
1336 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1337 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1338 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1339 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1342 esac
1343 done
1345 if test -n "$ac_prev"; then
1346 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1347 as_fn_error "missing argument to $ac_option"
1350 if test -n "$ac_unrecognized_opts"; then
1351 case $enable_option_checking in
1352 no) ;;
1353 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1354 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1355 esac
1358 # Check all directory arguments for consistency.
1359 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1360 datadir sysconfdir sharedstatedir localstatedir includedir \
1361 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1362 libdir localedir mandir
1364 eval ac_val=\$$ac_var
1365 # Remove trailing slashes.
1366 case $ac_val in
1367 */ )
1368 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1369 eval $ac_var=\$ac_val;;
1370 esac
1371 # Be sure to have absolute directory names.
1372 case $ac_val in
1373 [\\/$]* | ?:[\\/]* ) continue;;
1374 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1375 esac
1376 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1377 done
1379 # There might be people who depend on the old broken behavior: `$host'
1380 # used to hold the argument of --host etc.
1381 # FIXME: To remove some day.
1382 build=$build_alias
1383 host=$host_alias
1384 target=$target_alias
1386 # FIXME: To remove some day.
1387 if test "x$host_alias" != x; then
1388 if test "x$build_alias" = x; then
1389 cross_compiling=maybe
1390 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1391 If a cross compiler is detected then cross compile mode will be used." >&2
1392 elif test "x$build_alias" != "x$host_alias"; then
1393 cross_compiling=yes
1397 ac_tool_prefix=
1398 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1400 test "$silent" = yes && exec 6>/dev/null
1403 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1404 ac_ls_di=`ls -di .` &&
1405 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1406 as_fn_error "working directory cannot be determined"
1407 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1408 as_fn_error "pwd does not report name of working directory"
1411 # Find the source files, if location was not specified.
1412 if test -z "$srcdir"; then
1413 ac_srcdir_defaulted=yes
1414 # Try the directory containing this script, then the parent directory.
1415 ac_confdir=`$as_dirname -- "$as_myself" ||
1416 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1417 X"$as_myself" : 'X\(//\)[^/]' \| \
1418 X"$as_myself" : 'X\(//\)$' \| \
1419 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1420 $as_echo X"$as_myself" |
1421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422 s//\1/
1425 /^X\(\/\/\)[^/].*/{
1426 s//\1/
1429 /^X\(\/\/\)$/{
1430 s//\1/
1433 /^X\(\/\).*/{
1434 s//\1/
1437 s/.*/./; q'`
1438 srcdir=$ac_confdir
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440 srcdir=..
1442 else
1443 ac_srcdir_defaulted=no
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1447 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1449 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1450 ac_abs_confdir=`(
1451 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1452 pwd)`
1453 # When building in place, set srcdir=.
1454 if test "$ac_abs_confdir" = "$ac_pwd"; then
1455 srcdir=.
1457 # Remove unnecessary trailing slashes from srcdir.
1458 # Double slashes in file names in object file debugging info
1459 # mess up M-x gdb in Emacs.
1460 case $srcdir in
1461 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462 esac
1463 for ac_var in $ac_precious_vars; do
1464 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_env_${ac_var}_value=\$${ac_var}
1466 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1468 done
1471 # Report the --help message.
1473 if test "$ac_init_help" = "long"; then
1474 # Omit some internal or obsolete options to make the list less imposing.
1475 # This message is too long to be a string in the A/UX 3.1 sh.
1476 cat <<_ACEOF
1477 \`configure' configures aMule SVN to adapt to many kinds of systems.
1479 Usage: $0 [OPTION]... [VAR=VALUE]...
1481 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1482 VAR=VALUE. See below for descriptions of some of the useful variables.
1484 Defaults for the options are specified in brackets.
1486 Configuration:
1487 -h, --help display this help and exit
1488 --help=short display options specific to this package
1489 --help=recursive display the short help of all the included packages
1490 -V, --version display version information and exit
1491 -q, --quiet, --silent do not print \`checking...' messages
1492 --cache-file=FILE cache test results in FILE [disabled]
1493 -C, --config-cache alias for \`--cache-file=config.cache'
1494 -n, --no-create do not create output files
1495 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1497 Installation directories:
1498 --prefix=PREFIX install architecture-independent files in PREFIX
1499 [$ac_default_prefix]
1500 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1501 [PREFIX]
1503 By default, \`make install' will install all the files in
1504 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1505 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1506 for instance \`--prefix=\$HOME'.
1508 For better control, use the options below.
1510 Fine tuning of the installation directories:
1511 --bindir=DIR user executables [EPREFIX/bin]
1512 --sbindir=DIR system admin executables [EPREFIX/sbin]
1513 --libexecdir=DIR program executables [EPREFIX/libexec]
1514 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1515 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1516 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1517 --libdir=DIR object code libraries [EPREFIX/lib]
1518 --includedir=DIR C header files [PREFIX/include]
1519 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1520 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1521 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1522 --infodir=DIR info documentation [DATAROOTDIR/info]
1523 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1524 --mandir=DIR man documentation [DATAROOTDIR/man]
1525 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1526 --htmldir=DIR html documentation [DOCDIR]
1527 --dvidir=DIR dvi documentation [DOCDIR]
1528 --pdfdir=DIR pdf documentation [DOCDIR]
1529 --psdir=DIR ps documentation [DOCDIR]
1530 _ACEOF
1532 cat <<\_ACEOF
1534 Program names:
1535 --program-prefix=PREFIX prepend PREFIX to installed program names
1536 --program-suffix=SUFFIX append SUFFIX to installed program names
1537 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1539 System types:
1540 --build=BUILD configure for building on BUILD [guessed]
1541 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1542 _ACEOF
1545 if test -n "$ac_init_help"; then
1546 case $ac_init_help in
1547 short | recursive ) echo "Configuration of aMule SVN:";;
1548 esac
1549 cat <<\_ACEOF
1551 Optional Features:
1552 --disable-option-checking ignore unrecognized --enable/--with options
1553 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1554 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1555 --enable-maintainer-mode enable make rules and dependencies not useful
1556 (and sometimes confusing) to the casual installer
1557 --disable-dependency-tracking speeds up one-time build
1558 --enable-dependency-tracking do not reject slow dependency extractors
1559 --disable-monolithic disable building of the monolithic aMule app
1560 --enable-amule-daemon compile aMule daemon version
1561 --enable-amulecmd compile aMule command line client
1562 --enable-webserver compile aMule WebServer
1563 --enable-amule-gui compile aMule remote GUI
1564 --enable-cas compile C aMule Statistics
1565 --enable-wxcas compile aMule GUI Statistics
1566 --disable-ed2k don't compile aMule ed2k links handler
1567 --enable-alc compile aMuleLinkCreator GUI version
1568 --enable-alcc compile aMuleLinkCreator for console
1569 --enable-xas install xas XChat2 plugin
1570 --enable-fileview compile aMule file viewer for console (EXPERIMENTAL)
1571 --enable-plasmamule compile aMule plasma applet and engine
1572 --enable-static produce a statically linked executable
1573 --enable-kde-in-home install KDE related stuff in your home dir
1574 --enable-geoip compile with GeoIP IP2Country library
1575 --disable-upnp do not compile UPnP code
1576 --enable-mmap enable using mapped memory if supported
1577 --disable-rpath do not hardcode runtime library paths
1578 --disable-nls do not use Native Language Support
1579 --disable-debug disable additional debugging output
1580 --enable-profile enable code profiling
1581 --enable-optimize enable code optimization
1582 --enable-ccache enable ccache support for fast recompilation
1584 Optional Packages:
1585 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1586 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1587 --with-kde4-config=PATH kde4-config script to use
1588 --with-moc=PATH Search in PATH for Qt's meta object compiler
1589 --without-gnu-malloc Don't assume that we use GNU libc compatible
1590 malloc/realloc when cross-compiling
1591 --with-zlib=PREFIX use zlib in PREFIX
1592 --with-gdlib-prefix=PREFIX
1593 prefix where gdlib is installed (optional)
1594 --with-gdlib-config=CONFIG
1595 gdlib-config script to use (optional)
1596 --with-libpng-prefix=PREFIX
1597 prefix where libpng is installed (optional)
1598 --with-libpng-config=CONFIG
1599 libpng-config script to use (optional)
1600 --with-geoip-headers=DIR
1601 GeoIP include files location
1602 --with-geoip-lib=DIR GeoIP library location
1603 --with-geoip-static Explicitly link GeoIP statically (default=no)
1604 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
1605 --with-wx-config=CONFIG wx-config script to use (optional)
1606 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1607 --with-wx-exec-prefix=PREFIX
1608 Exec prefix where wxWidgets is installed (optional)
1609 --with-toolkit Build against a specific wxWidgets toolkit (default
1610 is auto)
1611 --with-wxshared Force building against a shared build of wxWidgets,
1612 even if --disable-shared is given (default is auto)
1613 --with-wxdebug Force building against a debug build of wxWidgets,
1614 even if --disable-debug is given (default is auto)
1615 --with-wxversion Build against a specific version of wxWidgets
1616 (default is auto)
1617 --with-libupnp-prefix=PREFIX
1618 UPnP library location
1619 --with-crypto-prefix=PREFIX
1620 prefix where crypto++ is installed
1621 --with-language=<langs> Specify a comma-separated list of languages you want
1622 to have installed. See po/LINGUAS for available
1623 languages
1624 --with-gnu-ld assume the C compiler uses GNU ld default=no
1625 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1626 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1627 --with-included-gettext use the GNU gettext library included here
1628 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1629 --without-libintl-prefix don't search for libintl in includedir and libdir
1630 --with-denoise-level=<level>
1631 Specifies denoising level (0-4):
1632 0 - Do nothing
1633 4 - Suppress all normal output
1634 (for more information see
1635 src/utils/scripts/denoiser.rules)
1637 --with-ccache-prefix=PREFIX
1638 prefix where ccache is installed
1640 Some influential environment variables:
1641 CXX C++ compiler command
1642 CXXFLAGS C++ compiler flags
1643 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1644 nonstandard directory <lib dir>
1645 LIBS libraries to pass to the linker, e.g. -l<library>
1646 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1647 you have headers in a nonstandard directory <include dir>
1648 CXXCPP C++ preprocessor
1649 CC C compiler command
1650 CFLAGS C compiler flags
1651 CPP C preprocessor
1652 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1653 the first program found out of: `bison -y', `byacc', `yacc'.
1654 YFLAGS The list of arguments that will be passed by default to $YACC.
1655 This script will default YFLAGS to the empty string to avoid a
1656 default value of `-d' given by some make applications.
1657 RC Resource Compiler
1658 RCFLAGS Resource Compiler Flags
1659 PKG_CONFIG path to pkg-config utility
1661 Use these variables to override the choices made by `configure' or to help
1662 it to find libraries and programs with nonstandard names/locations.
1664 Report bugs to <admin@amule.org>.
1665 _ACEOF
1666 ac_status=$?
1669 if test "$ac_init_help" = "recursive"; then
1670 # If there are subdirs, report their specific --help.
1671 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1672 test -d "$ac_dir" ||
1673 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1674 continue
1675 ac_builddir=.
1677 case "$ac_dir" in
1678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1680 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1681 # A ".." for each directory in $ac_dir_suffix.
1682 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1683 case $ac_top_builddir_sub in
1684 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1685 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1686 esac ;;
1687 esac
1688 ac_abs_top_builddir=$ac_pwd
1689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1690 # for backward compatibility:
1691 ac_top_builddir=$ac_top_build_prefix
1693 case $srcdir in
1694 .) # We are building in place.
1695 ac_srcdir=.
1696 ac_top_srcdir=$ac_top_builddir_sub
1697 ac_abs_top_srcdir=$ac_pwd ;;
1698 [\\/]* | ?:[\\/]* ) # Absolute name.
1699 ac_srcdir=$srcdir$ac_dir_suffix;
1700 ac_top_srcdir=$srcdir
1701 ac_abs_top_srcdir=$srcdir ;;
1702 *) # Relative name.
1703 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1704 ac_top_srcdir=$ac_top_build_prefix$srcdir
1705 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1706 esac
1707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1709 cd "$ac_dir" || { ac_status=$?; continue; }
1710 # Check for guested configure.
1711 if test -f "$ac_srcdir/configure.gnu"; then
1712 echo &&
1713 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1714 elif test -f "$ac_srcdir/configure"; then
1715 echo &&
1716 $SHELL "$ac_srcdir/configure" --help=recursive
1717 else
1718 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1719 fi || ac_status=$?
1720 cd "$ac_pwd" || { ac_status=$?; break; }
1721 done
1724 test -n "$ac_init_help" && exit $ac_status
1725 if $ac_init_version; then
1726 cat <<\_ACEOF
1727 aMule configure SVN
1728 generated by GNU Autoconf 2.65
1730 Copyright (C) 2009 Free Software Foundation, Inc.
1731 This configure script is free software; the Free Software Foundation
1732 gives unlimited permission to copy, distribute and modify it.
1733 _ACEOF
1734 exit
1737 ## ------------------------ ##
1738 ## Autoconf initialization. ##
1739 ## ------------------------ ##
1741 # ac_fn_cxx_try_compile LINENO
1742 # ----------------------------
1743 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_cxx_try_compile ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 rm -f conftest.$ac_objext
1748 if { { ac_try="$ac_compile"
1749 case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_compile") 2>conftest.err
1756 ac_status=$?
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && {
1764 test -z "$ac_cxx_werror_flag" ||
1765 test ! -s conftest.err
1766 } && test -s conftest.$ac_objext; then :
1767 ac_retval=0
1768 else
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1772 ac_retval=1
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 as_fn_set_status $ac_retval
1777 } # ac_fn_cxx_try_compile
1779 # ac_fn_cxx_try_cpp LINENO
1780 # ------------------------
1781 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_cxx_try_cpp ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if { { ac_try="$ac_cpp conftest.$ac_ext"
1786 case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1793 ac_status=$?
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } >/dev/null && {
1801 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1802 test ! -s conftest.err
1803 }; then :
1804 ac_retval=0
1805 else
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1809 ac_retval=1
1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 as_fn_set_status $ac_retval
1814 } # ac_fn_cxx_try_cpp
1816 # ac_fn_c_try_compile LINENO
1817 # --------------------------
1818 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_c_try_compile ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext
1823 if { { ac_try="$ac_compile"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_compile") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest.$ac_objext; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1847 ac_retval=1
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 as_fn_set_status $ac_retval
1852 } # ac_fn_c_try_compile
1854 # ac_fn_c_try_cpp LINENO
1855 # ----------------------
1856 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_c_try_cpp ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 if { { ac_try="$ac_cpp conftest.$ac_ext"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } >/dev/null && {
1876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1877 test ! -s conftest.err
1878 }; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1884 ac_retval=1
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 as_fn_set_status $ac_retval
1889 } # ac_fn_c_try_cpp
1891 # ac_fn_c_try_link LINENO
1892 # -----------------------
1893 # Try to link conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_c_try_link ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 rm -f conftest.$ac_objext conftest$ac_exeext
1898 if { { ac_try="$ac_link"
1899 case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && {
1914 test -z "$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 } && test -s conftest$ac_exeext && {
1917 test "$cross_compiling" = yes ||
1918 $as_test_x conftest$ac_exeext
1919 }; then :
1920 ac_retval=0
1921 else
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1925 ac_retval=1
1927 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1928 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1929 # interfere with the next link command; also delete a directory that is
1930 # left behind by Apple's compiler. We do this before executing the actions.
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933 as_fn_set_status $ac_retval
1935 } # ac_fn_c_try_link
1937 # ac_fn_c_try_run LINENO
1938 # ----------------------
1939 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1940 # that executables *can* be run.
1941 ac_fn_c_try_run ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 if { { ac_try="$ac_link"
1945 case "(($ac_try" in
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1948 esac
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_link") 2>&5
1952 ac_status=$?
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1955 { { case "(($ac_try" in
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1958 esac
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_try") 2>&5
1962 ac_status=$?
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; }; }; then :
1965 ac_retval=0
1966 else
1967 $as_echo "$as_me: program exited with status $ac_status" >&5
1968 $as_echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1971 ac_retval=$ac_status
1973 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1974 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975 as_fn_set_status $ac_retval
1977 } # ac_fn_c_try_run
1979 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1980 # -------------------------------------------------------
1981 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1982 # the include files in INCLUDES and setting the cache variable VAR
1983 # accordingly.
1984 ac_fn_c_check_header_mongrel ()
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1991 $as_echo_n "(cached) " >&6
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 else
1997 # Is the header compilable?
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1999 $as_echo_n "checking $2 usability... " >&6; }
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2003 #include <$2>
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006 ac_header_compiler=yes
2007 else
2008 ac_header_compiler=no
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2012 $as_echo "$ac_header_compiler" >&6; }
2014 # Is the header present?
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2016 $as_echo_n "checking $2 presence... " >&6; }
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_cpp "$LINENO"; then :
2022 ac_header_preproc=yes
2023 else
2024 ac_header_preproc=no
2026 rm -f conftest.err conftest.$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2028 $as_echo "$ac_header_preproc" >&6; }
2030 # So? What about this header?
2031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2032 yes:no: )
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2034 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2038 no:yes:* )
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2040 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2042 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2044 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2046 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2048 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2049 ( cat <<\_ASBOX
2050 ## ------------------------------ ##
2051 ## Report this to admin@amule.org ##
2052 ## ------------------------------ ##
2053 _ASBOX
2054 ) | sed "s/^/$as_me: WARNING: /" >&2
2056 esac
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2060 $as_echo_n "(cached) " >&6
2061 else
2062 eval "$3=\$ac_header_compiler"
2064 eval ac_res=\$$3
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2070 } # ac_fn_c_check_header_mongrel
2072 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2073 # -------------------------------------------------------
2074 # Tests whether HEADER exists and can be compiled using the include files in
2075 # INCLUDES, setting the cache variable VAR accordingly.
2076 ac_fn_c_check_header_compile ()
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 $as_echo_n "checking for $2... " >&6; }
2081 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2082 $as_echo_n "(cached) " >&6
2083 else
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2087 #include <$2>
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 eval "$3=yes"
2091 else
2092 eval "$3=no"
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 eval ac_res=\$$3
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2101 } # ac_fn_c_check_header_compile
2103 # ac_fn_cxx_try_run LINENO
2104 # ------------------------
2105 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2106 # that executables *can* be run.
2107 ac_fn_cxx_try_run ()
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 if { { ac_try="$ac_link"
2111 case "(($ac_try" in
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2114 esac
2115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2116 $as_echo "$ac_try_echo"; } >&5
2117 (eval "$ac_link") 2>&5
2118 ac_status=$?
2119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2121 { { case "(($ac_try" in
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2124 esac
2125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2126 $as_echo "$ac_try_echo"; } >&5
2127 (eval "$ac_try") 2>&5
2128 ac_status=$?
2129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130 test $ac_status = 0; }; }; then :
2131 ac_retval=0
2132 else
2133 $as_echo "$as_me: program exited with status $ac_status" >&5
2134 $as_echo "$as_me: failed program was:" >&5
2135 sed 's/^/| /' conftest.$ac_ext >&5
2137 ac_retval=$ac_status
2139 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2140 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2141 as_fn_set_status $ac_retval
2143 } # ac_fn_cxx_try_run
2145 # ac_fn_cxx_try_link LINENO
2146 # -------------------------
2147 # Try to link conftest.$ac_ext, and return whether this succeeded.
2148 ac_fn_cxx_try_link ()
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151 rm -f conftest.$ac_objext conftest$ac_exeext
2152 if { { ac_try="$ac_link"
2153 case "(($ac_try" in
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2156 esac
2157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158 $as_echo "$ac_try_echo"; } >&5
2159 (eval "$ac_link") 2>conftest.err
2160 ac_status=$?
2161 if test -s conftest.err; then
2162 grep -v '^ *+' conftest.err >conftest.er1
2163 cat conftest.er1 >&5
2164 mv -f conftest.er1 conftest.err
2166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2167 test $ac_status = 0; } && {
2168 test -z "$ac_cxx_werror_flag" ||
2169 test ! -s conftest.err
2170 } && test -s conftest$ac_exeext && {
2171 test "$cross_compiling" = yes ||
2172 $as_test_x conftest$ac_exeext
2173 }; then :
2174 ac_retval=0
2175 else
2176 $as_echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2179 ac_retval=1
2181 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2182 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2183 # interfere with the next link command; also delete a directory that is
2184 # left behind by Apple's compiler. We do this before executing the actions.
2185 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2186 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2187 as_fn_set_status $ac_retval
2189 } # ac_fn_cxx_try_link
2191 # ac_fn_c_check_func LINENO FUNC VAR
2192 # ----------------------------------
2193 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2194 ac_fn_c_check_func ()
2196 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2198 $as_echo_n "checking for $2... " >&6; }
2199 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2200 $as_echo_n "(cached) " >&6
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2204 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2206 #define $2 innocuous_$2
2208 /* System header to define __stub macros and hopefully few prototypes,
2209 which can conflict with char $2 (); below.
2210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2211 <limits.h> exists even on freestanding compilers. */
2213 #ifdef __STDC__
2214 # include <limits.h>
2215 #else
2216 # include <assert.h>
2217 #endif
2219 #undef $2
2221 /* Override any GCC internal prototype to avoid an error.
2222 Use char because int might match the return type of a GCC
2223 builtin and then its argument prototype would still apply. */
2224 #ifdef __cplusplus
2225 extern "C"
2226 #endif
2227 char $2 ();
2228 /* The GNU C library defines this for functions which it implements
2229 to always fail with ENOSYS. Some functions are actually named
2230 something starting with __ and the normal name is an alias. */
2231 #if defined __stub_$2 || defined __stub___$2
2232 choke me
2233 #endif
2236 main ()
2238 return $2 ();
2240 return 0;
2242 _ACEOF
2243 if ac_fn_c_try_link "$LINENO"; then :
2244 eval "$3=yes"
2245 else
2246 eval "$3=no"
2248 rm -f core conftest.err conftest.$ac_objext \
2249 conftest$ac_exeext conftest.$ac_ext
2251 eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2256 } # ac_fn_c_check_func
2258 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2259 # -------------------------------------------
2260 # Tests whether TYPE exists after having included INCLUDES, setting cache
2261 # variable VAR accordingly.
2262 ac_fn_c_check_type ()
2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2266 $as_echo_n "checking for $2... " >&6; }
2267 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2268 $as_echo_n "(cached) " >&6
2269 else
2270 eval "$3=no"
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2275 main ()
2277 if (sizeof ($2))
2278 return 0;
2280 return 0;
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2288 main ()
2290 if (sizeof (($2)))
2291 return 0;
2293 return 0;
2295 _ACEOF
2296 if ac_fn_c_try_compile "$LINENO"; then :
2298 else
2299 eval "$3=yes"
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 eval ac_res=\$$3
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307 $as_echo "$ac_res" >&6; }
2308 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2310 } # ac_fn_c_check_type
2312 # ac_fn_c_check_decl LINENO SYMBOL VAR
2313 # ------------------------------------
2314 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2315 ac_fn_c_check_decl ()
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2319 $as_echo_n "checking whether $2 is declared... " >&6; }
2320 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2321 $as_echo_n "(cached) " >&6
2322 else
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2327 main ()
2329 #ifndef $2
2330 (void) $2;
2331 #endif
2334 return 0;
2336 _ACEOF
2337 if ac_fn_c_try_compile "$LINENO"; then :
2338 eval "$3=yes"
2339 else
2340 eval "$3=no"
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 eval ac_res=\$$3
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2347 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2349 } # ac_fn_c_check_decl
2350 cat >config.log <<_ACEOF
2351 This file contains any messages produced by compilers while
2352 running configure, to aid debugging if configure makes a mistake.
2354 It was created by aMule $as_me SVN, which was
2355 generated by GNU Autoconf 2.65. Invocation command line was
2357 $ $0 $@
2359 _ACEOF
2360 exec 5>>config.log
2362 cat <<_ASUNAME
2363 ## --------- ##
2364 ## Platform. ##
2365 ## --------- ##
2367 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2368 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2369 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2370 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2371 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2373 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2374 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2376 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2377 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2378 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2379 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2380 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2381 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2382 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2384 _ASUNAME
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
2391 $as_echo "PATH: $as_dir"
2392 done
2393 IFS=$as_save_IFS
2395 } >&5
2397 cat >&5 <<_ACEOF
2400 ## ----------- ##
2401 ## Core tests. ##
2402 ## ----------- ##
2404 _ACEOF
2407 # Keep a trace of the command line.
2408 # Strip out --no-create and --no-recursion so they do not pile up.
2409 # Strip out --silent because we don't want to record it for future runs.
2410 # Also quote any args containing shell meta-characters.
2411 # Make two passes to allow for proper duplicate-argument suppression.
2412 ac_configure_args=
2413 ac_configure_args0=
2414 ac_configure_args1=
2415 ac_must_keep_next=false
2416 for ac_pass in 1 2
2418 for ac_arg
2420 case $ac_arg in
2421 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2422 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2423 | -silent | --silent | --silen | --sile | --sil)
2424 continue ;;
2425 *\'*)
2426 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2427 esac
2428 case $ac_pass in
2429 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2431 as_fn_append ac_configure_args1 " '$ac_arg'"
2432 if test $ac_must_keep_next = true; then
2433 ac_must_keep_next=false # Got value, back to normal.
2434 else
2435 case $ac_arg in
2436 *=* | --config-cache | -C | -disable-* | --disable-* \
2437 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2438 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2439 | -with-* | --with-* | -without-* | --without-* | --x)
2440 case "$ac_configure_args0 " in
2441 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2442 esac
2444 -* ) ac_must_keep_next=true ;;
2445 esac
2447 as_fn_append ac_configure_args " '$ac_arg'"
2449 esac
2450 done
2451 done
2452 { ac_configure_args0=; unset ac_configure_args0;}
2453 { ac_configure_args1=; unset ac_configure_args1;}
2455 # When interrupted or exit'd, cleanup temporary files, and complete
2456 # config.log. We remove comments because anyway the quotes in there
2457 # would cause problems or look ugly.
2458 # WARNING: Use '\'' to represent an apostrophe within the trap.
2459 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2460 trap 'exit_status=$?
2461 # Save into config.log some information that might help in debugging.
2463 echo
2465 cat <<\_ASBOX
2466 ## ---------------- ##
2467 ## Cache variables. ##
2468 ## ---------------- ##
2469 _ASBOX
2470 echo
2471 # The following way of writing the cache mishandles newlines in values,
2473 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2474 eval ac_val=\$$ac_var
2475 case $ac_val in #(
2476 *${as_nl}*)
2477 case $ac_var in #(
2478 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2479 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2480 esac
2481 case $ac_var in #(
2482 _ | IFS | as_nl) ;; #(
2483 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2484 *) { eval $ac_var=; unset $ac_var;} ;;
2485 esac ;;
2486 esac
2487 done
2488 (set) 2>&1 |
2489 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2490 *${as_nl}ac_space=\ *)
2491 sed -n \
2492 "s/'\''/'\''\\\\'\'''\''/g;
2493 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2494 ;; #(
2496 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2498 esac |
2499 sort
2501 echo
2503 cat <<\_ASBOX
2504 ## ----------------- ##
2505 ## Output variables. ##
2506 ## ----------------- ##
2507 _ASBOX
2508 echo
2509 for ac_var in $ac_subst_vars
2511 eval ac_val=\$$ac_var
2512 case $ac_val in
2513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2514 esac
2515 $as_echo "$ac_var='\''$ac_val'\''"
2516 done | sort
2517 echo
2519 if test -n "$ac_subst_files"; then
2520 cat <<\_ASBOX
2521 ## ------------------- ##
2522 ## File substitutions. ##
2523 ## ------------------- ##
2524 _ASBOX
2525 echo
2526 for ac_var in $ac_subst_files
2528 eval ac_val=\$$ac_var
2529 case $ac_val in
2530 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2531 esac
2532 $as_echo "$ac_var='\''$ac_val'\''"
2533 done | sort
2534 echo
2537 if test -s confdefs.h; then
2538 cat <<\_ASBOX
2539 ## ----------- ##
2540 ## confdefs.h. ##
2541 ## ----------- ##
2542 _ASBOX
2543 echo
2544 cat confdefs.h
2545 echo
2547 test "$ac_signal" != 0 &&
2548 $as_echo "$as_me: caught signal $ac_signal"
2549 $as_echo "$as_me: exit $exit_status"
2550 } >&5
2551 rm -f core *.core core.conftest.* &&
2552 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2553 exit $exit_status
2555 for ac_signal in 1 2 13 15; do
2556 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2557 done
2558 ac_signal=0
2560 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2561 rm -f -r conftest* confdefs.h
2563 $as_echo "/* confdefs.h */" > confdefs.h
2565 # Predefined preprocessor variables.
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_NAME "$PACKAGE_NAME"
2569 _ACEOF
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2573 _ACEOF
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2577 _ACEOF
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_STRING "$PACKAGE_STRING"
2581 _ACEOF
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2585 _ACEOF
2587 cat >>confdefs.h <<_ACEOF
2588 #define PACKAGE_URL "$PACKAGE_URL"
2589 _ACEOF
2592 # Let the site file select an alternate cache file if it wants to.
2593 # Prefer an explicitly selected file to automatically selected ones.
2594 ac_site_file1=NONE
2595 ac_site_file2=NONE
2596 if test -n "$CONFIG_SITE"; then
2597 ac_site_file1=$CONFIG_SITE
2598 elif test "x$prefix" != xNONE; then
2599 ac_site_file1=$prefix/share/config.site
2600 ac_site_file2=$prefix/etc/config.site
2601 else
2602 ac_site_file1=$ac_default_prefix/share/config.site
2603 ac_site_file2=$ac_default_prefix/etc/config.site
2605 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2607 test "x$ac_site_file" = xNONE && continue
2608 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2610 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2611 sed 's/^/| /' "$ac_site_file" >&5
2612 . "$ac_site_file"
2614 done
2616 if test -r "$cache_file"; then
2617 # Some versions of bash will fail to source /dev/null (special files
2618 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2619 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2621 $as_echo "$as_me: loading cache $cache_file" >&6;}
2622 case $cache_file in
2623 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2624 *) . "./$cache_file";;
2625 esac
2627 else
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2629 $as_echo "$as_me: creating cache $cache_file" >&6;}
2630 >$cache_file
2633 as_fn_append ac_header_list " stdlib.h"
2634 as_fn_append ac_header_list " unistd.h"
2635 as_fn_append ac_header_list " sys/param.h"
2636 # Check that the precious variables saved in the cache have kept the same
2637 # value.
2638 ac_cache_corrupted=false
2639 for ac_var in $ac_precious_vars; do
2640 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2641 eval ac_new_set=\$ac_env_${ac_var}_set
2642 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2643 eval ac_new_val=\$ac_env_${ac_var}_value
2644 case $ac_old_set,$ac_new_set in
2645 set,)
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2647 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2648 ac_cache_corrupted=: ;;
2649 ,set)
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2651 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2652 ac_cache_corrupted=: ;;
2653 ,);;
2655 if test "x$ac_old_val" != "x$ac_new_val"; then
2656 # differences in whitespace do not lead to failure.
2657 ac_old_val_w=`echo x $ac_old_val`
2658 ac_new_val_w=`echo x $ac_new_val`
2659 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2661 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2662 ac_cache_corrupted=:
2663 else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2665 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2666 eval $ac_var=\$ac_old_val
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2669 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2671 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2672 fi;;
2673 esac
2674 # Pass precious variables to config.status.
2675 if test "$ac_new_set" = set; then
2676 case $ac_new_val in
2677 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2678 *) ac_arg=$ac_var=$ac_new_val ;;
2679 esac
2680 case " $ac_configure_args " in
2681 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2682 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2683 esac
2685 done
2686 if $ac_cache_corrupted; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2690 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2691 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2693 ## -------------------- ##
2694 ## Main body of script. ##
2695 ## -------------------- ##
2697 ac_ext=c
2698 ac_cpp='$CPP $CPPFLAGS'
2699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704 am__api_version='1.11'
2706 ac_aux_dir=
2707 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2708 for ac_t in install-sh install.sh shtool; do
2709 if test -f "$ac_dir/$ac_t"; then
2710 ac_aux_dir=$ac_dir
2711 ac_install_sh="$ac_aux_dir/$ac_t -c"
2712 break 2
2714 done
2715 done
2716 if test -z "$ac_aux_dir"; then
2717 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2720 # These three variables are undocumented and unsupported,
2721 # and are intended to be withdrawn in a future Autoconf release.
2722 # They can cause serious problems if a builder's source tree is in a directory
2723 # whose full name contains unusual characters.
2724 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2725 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2726 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2729 # Find a good install program. We prefer a C program (faster),
2730 # so one script is as good as another. But avoid the broken or
2731 # incompatible versions:
2732 # SysV /etc/install, /usr/sbin/install
2733 # SunOS /usr/etc/install
2734 # IRIX /sbin/install
2735 # AIX /bin/install
2736 # AmigaOS /C/install, which installs bootblocks on floppy discs
2737 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2738 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2739 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2740 # OS/2's system install, which has a completely different semantic
2741 # ./install, which can be erroneously created by make from ./install.sh.
2742 # Reject install programs that cannot install multiple files.
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2744 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2745 if test -z "$INSTALL"; then
2746 if test "${ac_cv_path_install+set}" = set; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 # Account for people who put trailing slashes in PATH elements.
2755 case $as_dir/ in #((
2756 ./ | .// | /[cC]/* | \
2757 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2758 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2759 /usr/ucb/* ) ;;
2761 # OSF1 and SCO ODT 3.0 have their own names for install.
2762 # Don't use installbsd from OSF since it installs stuff as root
2763 # by default.
2764 for ac_prog in ginstall scoinst install; do
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2767 if test $ac_prog = install &&
2768 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2769 # AIX install. It has an incompatible calling convention.
2771 elif test $ac_prog = install &&
2772 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2773 # program-specific install script used by HP pwplus--don't use.
2775 else
2776 rm -rf conftest.one conftest.two conftest.dir
2777 echo one > conftest.one
2778 echo two > conftest.two
2779 mkdir conftest.dir
2780 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2781 test -s conftest.one && test -s conftest.two &&
2782 test -s conftest.dir/conftest.one &&
2783 test -s conftest.dir/conftest.two
2784 then
2785 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2786 break 3
2790 done
2791 done
2793 esac
2795 done
2796 IFS=$as_save_IFS
2798 rm -rf conftest.one conftest.two conftest.dir
2801 if test "${ac_cv_path_install+set}" = set; then
2802 INSTALL=$ac_cv_path_install
2803 else
2804 # As a last resort, use the slow shell script. Don't cache a
2805 # value for INSTALL within a source directory, because that will
2806 # break other packages using the cache if that directory is
2807 # removed, or if the value is a relative name.
2808 INSTALL=$ac_install_sh
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2812 $as_echo "$INSTALL" >&6; }
2814 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2815 # It thinks the first close brace ends the variable substitution.
2816 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2818 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2820 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2823 $as_echo_n "checking whether build environment is sane... " >&6; }
2824 # Just in case
2825 sleep 1
2826 echo timestamp > conftest.file
2827 # Reject unsafe characters in $srcdir or the absolute working directory
2828 # name. Accept space and tab only in the latter.
2829 am_lf='
2831 case `pwd` in
2832 *[\\\"\#\$\&\'\`$am_lf]*)
2833 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2834 esac
2835 case $srcdir in
2836 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2837 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2838 esac
2840 # Do `set' in a subshell so we don't clobber the current shell's
2841 # arguments. Must try -L first in case configure is actually a
2842 # symlink; some systems play weird games with the mod time of symlinks
2843 # (eg FreeBSD returns the mod time of the symlink's containing
2844 # directory).
2845 if (
2846 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2847 if test "$*" = "X"; then
2848 # -L didn't work.
2849 set X `ls -t "$srcdir/configure" conftest.file`
2851 rm -f conftest.file
2852 if test "$*" != "X $srcdir/configure conftest.file" \
2853 && test "$*" != "X conftest.file $srcdir/configure"; then
2855 # If neither matched, then we have a broken ls. This can happen
2856 # if, for instance, CONFIG_SHELL is bash and it inherits a
2857 # broken ls alias from the environment. This has actually
2858 # happened. Such a system could not be considered "sane".
2859 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2860 alias in your environment" "$LINENO" 5
2863 test "$2" = conftest.file
2865 then
2866 # Ok.
2868 else
2869 as_fn_error "newly created file is older than distributed files!
2870 Check your system clock" "$LINENO" 5
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2873 $as_echo "yes" >&6; }
2874 test "$program_prefix" != NONE &&
2875 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2876 # Use a double $ so make ignores it.
2877 test "$program_suffix" != NONE &&
2878 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2879 # Double any \ or $.
2880 # By default was `s,x,x', remove it if useless.
2881 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2882 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2884 # expand $ac_aux_dir to an absolute path
2885 am_aux_dir=`cd $ac_aux_dir && pwd`
2887 if test x"${MISSING+set}" != xset; then
2888 case $am_aux_dir in
2889 *\ * | *\ *)
2890 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2892 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2893 esac
2895 # Use eval to expand $SHELL
2896 if eval "$MISSING --run true"; then
2897 am_missing_run="$MISSING --run "
2898 else
2899 am_missing_run=
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2901 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2904 if test x"${install_sh}" != xset; then
2905 case $am_aux_dir in
2906 *\ * | *\ *)
2907 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2909 install_sh="\${SHELL} $am_aux_dir/install-sh"
2910 esac
2913 # Installed binaries are usually stripped using `strip' when the user
2914 # run `make install-strip'. However `strip' might not be the right
2915 # tool to use in cross-compilation environments, therefore Automake
2916 # will honor the `STRIP' environment variable to overrule this program.
2917 if test "$cross_compiling" != no; then
2918 if test -n "$ac_tool_prefix"; then
2919 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2920 set dummy ${ac_tool_prefix}strip; ac_word=$2
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922 $as_echo_n "checking for $ac_word... " >&6; }
2923 if test "${ac_cv_prog_STRIP+set}" = set; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 if test -n "$STRIP"; then
2927 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2940 done
2941 done
2942 IFS=$as_save_IFS
2946 STRIP=$ac_cv_prog_STRIP
2947 if test -n "$STRIP"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2949 $as_echo "$STRIP" >&6; }
2950 else
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2957 if test -z "$ac_cv_prog_STRIP"; then
2958 ac_ct_STRIP=$STRIP
2959 # Extract the first word of "strip", so it can be a program name with args.
2960 set dummy strip; ac_word=$2
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2964 $as_echo_n "(cached) " >&6
2965 else
2966 if test -n "$ac_ct_STRIP"; then
2967 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_ac_ct_STRIP="strip"
2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2980 done
2981 done
2982 IFS=$as_save_IFS
2986 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2987 if test -n "$ac_ct_STRIP"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2989 $as_echo "$ac_ct_STRIP" >&6; }
2990 else
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2995 if test "x$ac_ct_STRIP" = x; then
2996 STRIP=":"
2997 else
2998 case $cross_compiling:$ac_tool_warned in
2999 yes:)
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3002 ac_tool_warned=yes ;;
3003 esac
3004 STRIP=$ac_ct_STRIP
3006 else
3007 STRIP="$ac_cv_prog_STRIP"
3011 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3014 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3015 if test -z "$MKDIR_P"; then
3016 if test "${ac_cv_path_mkdir+set}" = set; then :
3017 $as_echo_n "(cached) " >&6
3018 else
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_prog in mkdir gmkdir; do
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3027 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3028 'mkdir (GNU coreutils) '* | \
3029 'mkdir (coreutils) '* | \
3030 'mkdir (fileutils) '4.1*)
3031 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3032 break 3;;
3033 esac
3034 done
3035 done
3036 done
3037 IFS=$as_save_IFS
3041 test -d ./--version && rmdir ./--version
3042 if test "${ac_cv_path_mkdir+set}" = set; then
3043 MKDIR_P="$ac_cv_path_mkdir -p"
3044 else
3045 # As a last resort, use the slow shell script. Don't cache a
3046 # value for MKDIR_P within a source directory, because that will
3047 # break other packages using the cache if that directory is
3048 # removed, or if the value is a relative name.
3049 MKDIR_P="$ac_install_sh -d"
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3053 $as_echo "$MKDIR_P" >&6; }
3055 mkdir_p="$MKDIR_P"
3056 case $mkdir_p in
3057 [\\/$]* | ?:[\\/]*) ;;
3058 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3059 esac
3061 for ac_prog in gawk mawk nawk awk
3063 # Extract the first word of "$ac_prog", so it can be a program name with args.
3064 set dummy $ac_prog; ac_word=$2
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if test "${ac_cv_prog_AWK+set}" = set; then :
3068 $as_echo_n "(cached) " >&6
3069 else
3070 if test -n "$AWK"; then
3071 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 ac_cv_prog_AWK="$ac_prog"
3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3084 done
3085 done
3086 IFS=$as_save_IFS
3090 AWK=$ac_cv_prog_AWK
3091 if test -n "$AWK"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3093 $as_echo "$AWK" >&6; }
3094 else
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096 $as_echo "no" >&6; }
3100 test -n "$AWK" && break
3101 done
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3104 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3105 set x ${MAKE-make}
3106 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3107 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 cat >conftest.make <<\_ACEOF
3111 SHELL = /bin/sh
3112 all:
3113 @echo '@@@%%%=$(MAKE)=@@@%%%'
3114 _ACEOF
3115 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3116 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3117 *@@@%%%=?*=@@@%%%*)
3118 eval ac_cv_prog_make_${ac_make}_set=yes;;
3120 eval ac_cv_prog_make_${ac_make}_set=no;;
3121 esac
3122 rm -f conftest.make
3124 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3126 $as_echo "yes" >&6; }
3127 SET_MAKE=
3128 else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 SET_MAKE="MAKE=${MAKE-make}"
3134 rm -rf .tst 2>/dev/null
3135 mkdir .tst 2>/dev/null
3136 if test -d .tst; then
3137 am__leading_dot=.
3138 else
3139 am__leading_dot=_
3141 rmdir .tst 2>/dev/null
3143 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3144 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3145 # is not polluted with repeated "-I."
3146 am__isrc=' -I$(srcdir)'
3147 # test to see if srcdir already configured
3148 if test -f $srcdir/config.status; then
3149 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3153 # test whether we have cygpath
3154 if test -z "$CYGPATH_W"; then
3155 if (cygpath --version) >/dev/null 2>/dev/null; then
3156 CYGPATH_W='cygpath -w'
3157 else
3158 CYGPATH_W=echo
3163 # Define the identity of the package.
3164 PACKAGE='amule'
3165 VERSION='SVN'
3168 cat >>confdefs.h <<_ACEOF
3169 #define PACKAGE "$PACKAGE"
3170 _ACEOF
3173 cat >>confdefs.h <<_ACEOF
3174 #define VERSION "$VERSION"
3175 _ACEOF
3177 # Some tools Automake needs.
3179 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3182 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3185 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3188 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3191 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3193 # We need awk for the "check" target. The system "awk" is bad on
3194 # some platforms.
3195 # Always define AMTAR for backward compatibility.
3197 AMTAR=${AMTAR-"${am_missing_run}tar"}
3199 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3209 ac_config_headers="$ac_config_headers config.h"
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3213 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3214 # Check whether --enable-maintainer-mode was given.
3215 if test "${enable_maintainer_mode+set}" = set; then :
3216 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3217 else
3218 USE_MAINTAINER_MODE=no
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3222 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3223 if test $USE_MAINTAINER_MODE = yes; then
3224 MAINTAINER_MODE_TRUE=
3225 MAINTAINER_MODE_FALSE='#'
3226 else
3227 MAINTAINER_MODE_TRUE='#'
3228 MAINTAINER_MODE_FALSE=
3231 MAINT=$MAINTAINER_MODE_TRUE
3235 # Make sure we can run config.sub.
3236 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3237 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3240 $as_echo_n "checking build system type... " >&6; }
3241 if test "${ac_cv_build+set}" = set; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 ac_build_alias=$build_alias
3245 test "x$ac_build_alias" = x &&
3246 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3247 test "x$ac_build_alias" = x &&
3248 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3249 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3250 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3254 $as_echo "$ac_cv_build" >&6; }
3255 case $ac_cv_build in
3256 *-*-*) ;;
3257 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3258 esac
3259 build=$ac_cv_build
3260 ac_save_IFS=$IFS; IFS='-'
3261 set x $ac_cv_build
3262 shift
3263 build_cpu=$1
3264 build_vendor=$2
3265 shift; shift
3266 # Remember, the first character of IFS is used to create $*,
3267 # except with old shells:
3268 build_os=$*
3269 IFS=$ac_save_IFS
3270 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3274 $as_echo_n "checking host system type... " >&6; }
3275 if test "${ac_cv_host+set}" = set; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 if test "x$host_alias" = x; then
3279 ac_cv_host=$ac_cv_build
3280 else
3281 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3282 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3287 $as_echo "$ac_cv_host" >&6; }
3288 case $ac_cv_host in
3289 *-*-*) ;;
3290 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3291 esac
3292 host=$ac_cv_host
3293 ac_save_IFS=$IFS; IFS='-'
3294 set x $ac_cv_host
3295 shift
3296 host_cpu=$1
3297 host_vendor=$2
3298 shift; shift
3299 # Remember, the first character of IFS is used to create $*,
3300 # except with old shells:
3301 host_os=$*
3302 IFS=$ac_save_IFS
3303 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3307 case "${host_os}" in
3308 darwin*)
3309 SYS=darwin
3310 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3311 MULELDFLAGS="-bind_at_load"
3312 touch src/Scanner.cpp
3314 openbsd*)
3315 SYS=openbsd
3316 LIBS="$LIBS -L/usr/local/lib"
3317 MULECPPFLAGS="-D__OPENBSD__"
3319 *cygwin* | *mingw32*)
3320 SYS=win32
3321 MULECPPFLAGS="-DNOMINMAX"
3323 solaris*)
3324 SYS=solaris
3325 RESOLV_LIB="-lresolv -lnsl"
3326 LIBS="$LIBS -lrt"
3328 *netbsd*)
3329 SYS=netbsd
3330 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3331 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3332 # Still, we prepend them, instead of adding, so the user may override them.
3333 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
3334 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3336 *irix*)
3337 SYS=irix
3338 MULECPPFLAGS="-D__IRIX__"
3341 SYS=unknown
3343 esac
3345 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3346 if test ${SYS:-unknown} != win32; then :
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3349 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3350 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then :
3352 MULELDFLAGS="$MULELDFLAGS -pthread"
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3354 $as_echo "yes" >&6; }
3356 else
3358 MULELDFLAGS="$MULELDFLAGS -lpthread"
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3368 mule_backup_CFLAGS="$CFLAGS"
3369 mule_backup_CXXFLAGS="$CXXFLAGS"
3370 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
3371 ac_ext=cpp
3372 ac_cpp='$CXXCPP $CPPFLAGS'
3373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3376 if test -z "$CXX"; then
3377 if test -n "$CCC"; then
3378 CXX=$CCC
3379 else
3380 if test -n "$ac_tool_prefix"; then
3381 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 $as_echo_n "checking for $ac_word... " >&6; }
3387 if test "${ac_cv_prog_CXX+set}" = set; then :
3388 $as_echo_n "(cached) " >&6
3389 else
3390 if test -n "$CXX"; then
3391 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3400 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3404 done
3405 done
3406 IFS=$as_save_IFS
3410 CXX=$ac_cv_prog_CXX
3411 if test -n "$CXX"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3413 $as_echo "$CXX" >&6; }
3414 else
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3420 test -n "$CXX" && break
3421 done
3423 if test -z "$CXX"; then
3424 ac_ct_CXX=$CXX
3425 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3427 # Extract the first word of "$ac_prog", so it can be a program name with args.
3428 set dummy $ac_prog; ac_word=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 if test -n "$ac_ct_CXX"; then
3435 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3436 else
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3440 IFS=$as_save_IFS
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3444 ac_cv_prog_ac_ct_CXX="$ac_prog"
3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 break 2
3448 done
3449 done
3450 IFS=$as_save_IFS
3454 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3455 if test -n "$ac_ct_CXX"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3457 $as_echo "$ac_ct_CXX" >&6; }
3458 else
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3464 test -n "$ac_ct_CXX" && break
3465 done
3467 if test "x$ac_ct_CXX" = x; then
3468 CXX="g++"
3469 else
3470 case $cross_compiling:$ac_tool_warned in
3471 yes:)
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3474 ac_tool_warned=yes ;;
3475 esac
3476 CXX=$ac_ct_CXX
3482 # Provide some information about the compiler.
3483 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3484 set X $ac_compile
3485 ac_compiler=$2
3486 for ac_option in --version -v -V -qversion; do
3487 { { ac_try="$ac_compiler $ac_option >&5"
3488 case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493 $as_echo "$ac_try_echo"; } >&5
3494 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3495 ac_status=$?
3496 if test -s conftest.err; then
3497 sed '10a\
3498 ... rest of stderr output deleted ...
3499 10q' conftest.err >conftest.er1
3500 cat conftest.er1 >&5
3502 rm -f conftest.er1 conftest.err
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }
3505 done
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3511 main ()
3515 return 0;
3517 _ACEOF
3518 ac_clean_files_save=$ac_clean_files
3519 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3520 # Try to create an executable without -o first, disregard a.out.
3521 # It will help us diagnose broken compilers, and finding out an intuition
3522 # of exeext.
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3524 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3525 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3527 # The possible output files:
3528 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3530 ac_rmfiles=
3531 for ac_file in $ac_files
3533 case $ac_file in
3534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3535 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3536 esac
3537 done
3538 rm -f $ac_rmfiles
3540 if { { ac_try="$ac_link_default"
3541 case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_link_default") 2>&5
3548 ac_status=$?
3549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550 test $ac_status = 0; }; then :
3551 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3552 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3553 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3554 # so that the user can short-circuit this test for compilers unknown to
3555 # Autoconf.
3556 for ac_file in $ac_files ''
3558 test -f "$ac_file" || continue
3559 case $ac_file in
3560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3562 [ab].out )
3563 # We found the default executable, but exeext='' is most
3564 # certainly right.
3565 break;;
3566 *.* )
3567 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3568 then :; else
3569 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3571 # We set ac_cv_exeext here because the later test for it is not
3572 # safe: cross compilers may not add the suffix if given an `-o'
3573 # argument, so we may need to know it at that point already.
3574 # Even if this section looks crufty: it has the advantage of
3575 # actually working.
3576 break;;
3578 break;;
3579 esac
3580 done
3581 test "$ac_cv_exeext" = no && ac_cv_exeext=
3583 else
3584 ac_file=''
3586 if test -z "$ac_file"; then :
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3589 $as_echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 { as_fn_set_status 77
3595 as_fn_error "C++ compiler cannot create executables
3596 See \`config.log' for more details." "$LINENO" 5; }; }
3597 else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3599 $as_echo "yes" >&6; }
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3602 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3604 $as_echo "$ac_file" >&6; }
3605 ac_exeext=$ac_cv_exeext
3607 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3608 ac_clean_files=$ac_clean_files_save
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3610 $as_echo_n "checking for suffix of executables... " >&6; }
3611 if { { ac_try="$ac_link"
3612 case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_link") 2>&5
3619 ac_status=$?
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }; then :
3622 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3623 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3624 # work properly (i.e., refer to `conftest.exe'), while it won't with
3625 # `rm'.
3626 for ac_file in conftest.exe conftest conftest.*; do
3627 test -f "$ac_file" || continue
3628 case $ac_file in
3629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3630 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3631 break;;
3632 * ) break;;
3633 esac
3634 done
3635 else
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error "cannot compute suffix of executables: cannot compile and link
3639 See \`config.log' for more details." "$LINENO" 5; }
3641 rm -f conftest conftest$ac_cv_exeext
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3643 $as_echo "$ac_cv_exeext" >&6; }
3645 rm -f conftest.$ac_ext
3646 EXEEXT=$ac_cv_exeext
3647 ac_exeext=$EXEEXT
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3650 #include <stdio.h>
3652 main ()
3654 FILE *f = fopen ("conftest.out", "w");
3655 return ferror (f) || fclose (f) != 0;
3658 return 0;
3660 _ACEOF
3661 ac_clean_files="$ac_clean_files conftest.out"
3662 # Check that the compiler produces executables we can run. If not, either
3663 # the compiler is broken, or we cross compile.
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3665 $as_echo_n "checking whether we are cross compiling... " >&6; }
3666 if test "$cross_compiling" != yes; then
3667 { { ac_try="$ac_link"
3668 case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671 esac
3672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3673 $as_echo "$ac_try_echo"; } >&5
3674 (eval "$ac_link") 2>&5
3675 ac_status=$?
3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }
3678 if { ac_try='./conftest$ac_cv_exeext'
3679 { { case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684 $as_echo "$ac_try_echo"; } >&5
3685 (eval "$ac_try") 2>&5
3686 ac_status=$?
3687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688 test $ac_status = 0; }; }; then
3689 cross_compiling=no
3690 else
3691 if test "$cross_compiling" = maybe; then
3692 cross_compiling=yes
3693 else
3694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3696 as_fn_error "cannot run C++ compiled programs.
3697 If you meant to cross compile, use \`--host'.
3698 See \`config.log' for more details." "$LINENO" 5; }
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3703 $as_echo "$cross_compiling" >&6; }
3705 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3706 ac_clean_files=$ac_clean_files_save
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3708 $as_echo_n "checking for suffix of object files... " >&6; }
3709 if test "${ac_cv_objext+set}" = set; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3716 main ()
3720 return 0;
3722 _ACEOF
3723 rm -f conftest.o conftest.obj
3724 if { { ac_try="$ac_compile"
3725 case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728 esac
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_compile") 2>&5
3732 ac_status=$?
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }; then :
3735 for ac_file in conftest.o conftest.obj conftest.*; do
3736 test -f "$ac_file" || continue;
3737 case $ac_file in
3738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3739 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3740 break;;
3741 esac
3742 done
3743 else
3744 $as_echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3749 as_fn_error "cannot compute suffix of object files: cannot compile
3750 See \`config.log' for more details." "$LINENO" 5; }
3752 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3755 $as_echo "$ac_cv_objext" >&6; }
3756 OBJEXT=$ac_cv_objext
3757 ac_objext=$OBJEXT
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3759 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3760 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3767 main ()
3769 #ifndef __GNUC__
3770 choke me
3771 #endif
3774 return 0;
3776 _ACEOF
3777 if ac_fn_cxx_try_compile "$LINENO"; then :
3778 ac_compiler_gnu=yes
3779 else
3780 ac_compiler_gnu=no
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3787 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3788 if test $ac_compiler_gnu = yes; then
3789 GXX=yes
3790 else
3791 GXX=
3793 ac_test_CXXFLAGS=${CXXFLAGS+set}
3794 ac_save_CXXFLAGS=$CXXFLAGS
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3796 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3797 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3801 ac_cxx_werror_flag=yes
3802 ac_cv_prog_cxx_g=no
3803 CXXFLAGS="-g"
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3808 main ()
3812 return 0;
3814 _ACEOF
3815 if ac_fn_cxx_try_compile "$LINENO"; then :
3816 ac_cv_prog_cxx_g=yes
3817 else
3818 CXXFLAGS=""
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3823 main ()
3827 return 0;
3829 _ACEOF
3830 if ac_fn_cxx_try_compile "$LINENO"; then :
3832 else
3833 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3834 CXXFLAGS="-g"
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3839 main ()
3843 return 0;
3845 _ACEOF
3846 if ac_fn_cxx_try_compile "$LINENO"; then :
3847 ac_cv_prog_cxx_g=yes
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3857 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3858 if test "$ac_test_CXXFLAGS" = set; then
3859 CXXFLAGS=$ac_save_CXXFLAGS
3860 elif test $ac_cv_prog_cxx_g = yes; then
3861 if test "$GXX" = yes; then
3862 CXXFLAGS="-g -O2"
3863 else
3864 CXXFLAGS="-g"
3866 else
3867 if test "$GXX" = yes; then
3868 CXXFLAGS="-O2"
3869 else
3870 CXXFLAGS=
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 DEPDIR="${am__leading_dot}deps"
3880 ac_config_commands="$ac_config_commands depfiles"
3883 am_make=${MAKE-make}
3884 cat > confinc << 'END'
3885 am__doit:
3886 @echo this is the am__doit target
3887 .PHONY: am__doit
3889 # If we don't find an include directive, just comment out the code.
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3891 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3892 am__include="#"
3893 am__quote=
3894 _am_result=none
3895 # First try GNU make style include.
3896 echo "include confinc" > confmf
3897 # Ignore all kinds of additional output from `make'.
3898 case `$am_make -s -f confmf 2> /dev/null` in #(
3899 *the\ am__doit\ target*)
3900 am__include=include
3901 am__quote=
3902 _am_result=GNU
3904 esac
3905 # Now try BSD make style include.
3906 if test "$am__include" = "#"; then
3907 echo '.include "confinc"' > confmf
3908 case `$am_make -s -f confmf 2> /dev/null` in #(
3909 *the\ am__doit\ target*)
3910 am__include=.include
3911 am__quote="\""
3912 _am_result=BSD
3914 esac
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3919 $as_echo "$_am_result" >&6; }
3920 rm -f confinc confmf
3922 # Check whether --enable-dependency-tracking was given.
3923 if test "${enable_dependency_tracking+set}" = set; then :
3924 enableval=$enable_dependency_tracking;
3927 if test "x$enable_dependency_tracking" != xno; then
3928 am_depcomp="$ac_aux_dir/depcomp"
3929 AMDEPBACKSLASH='\'
3931 if test "x$enable_dependency_tracking" != xno; then
3932 AMDEP_TRUE=
3933 AMDEP_FALSE='#'
3934 else
3935 AMDEP_TRUE='#'
3936 AMDEP_FALSE=
3941 depcc="$CXX" am_compiler_list=
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3944 $as_echo_n "checking dependency style of $depcc... " >&6; }
3945 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3946 $as_echo_n "(cached) " >&6
3947 else
3948 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3949 # We make a subdir and do the tests there. Otherwise we can end up
3950 # making bogus files that we don't know about and never remove. For
3951 # instance it was reported that on HP-UX the gcc test will end up
3952 # making a dummy file named `D' -- because `-MD' means `put the output
3953 # in D'.
3954 mkdir conftest.dir
3955 # Copy depcomp to subdir because otherwise we won't find it if we're
3956 # using a relative directory.
3957 cp "$am_depcomp" conftest.dir
3958 cd conftest.dir
3959 # We will build objects and dependencies in a subdirectory because
3960 # it helps to detect inapplicable dependency modes. For instance
3961 # both Tru64's cc and ICC support -MD to output dependencies as a
3962 # side effect of compilation, but ICC will put the dependencies in
3963 # the current directory while Tru64 will put them in the object
3964 # directory.
3965 mkdir sub
3967 am_cv_CXX_dependencies_compiler_type=none
3968 if test "$am_compiler_list" = ""; then
3969 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3971 am__universal=false
3972 case " $depcc " in #(
3973 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3974 esac
3976 for depmode in $am_compiler_list; do
3977 # Setup a source with many dependencies, because some compilers
3978 # like to wrap large dependency lists on column 80 (with \), and
3979 # we should not choose a depcomp mode which is confused by this.
3981 # We need to recreate these files for each test, as the compiler may
3982 # overwrite some of them when testing with obscure command lines.
3983 # This happens at least with the AIX C compiler.
3984 : > sub/conftest.c
3985 for i in 1 2 3 4 5 6; do
3986 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3987 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3988 # Solaris 8's {/usr,}/bin/sh.
3989 touch sub/conftst$i.h
3990 done
3991 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3993 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3994 # mode. It turns out that the SunPro C++ compiler does not properly
3995 # handle `-M -o', and we need to detect this. Also, some Intel
3996 # versions had trouble with output in subdirs
3997 am__obj=sub/conftest.${OBJEXT-o}
3998 am__minus_obj="-o $am__obj"
3999 case $depmode in
4000 gcc)
4001 # This depmode causes a compiler race in universal mode.
4002 test "$am__universal" = false || continue
4004 nosideeffect)
4005 # after this tag, mechanisms are not by side-effect, so they'll
4006 # only be used when explicitly requested
4007 if test "x$enable_dependency_tracking" = xyes; then
4008 continue
4009 else
4010 break
4013 msvisualcpp | msvcmsys)
4014 # This compiler won't grok `-c -o', but also, the minuso test has
4015 # not run yet. These depmodes are late enough in the game, and
4016 # so weak that their functioning should not be impacted.
4017 am__obj=conftest.${OBJEXT-o}
4018 am__minus_obj=
4020 none) break ;;
4021 esac
4022 if depmode=$depmode \
4023 source=sub/conftest.c object=$am__obj \
4024 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4025 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4026 >/dev/null 2>conftest.err &&
4027 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4028 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4029 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4030 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4031 # icc doesn't choke on unknown options, it will just issue warnings
4032 # or remarks (even with -Werror). So we grep stderr for any message
4033 # that says an option was ignored or not supported.
4034 # When given -MP, icc 7.0 and 7.1 complain thusly:
4035 # icc: Command line warning: ignoring option '-M'; no argument required
4036 # The diagnosis changed in icc 8.0:
4037 # icc: Command line remark: option '-MP' not supported
4038 if (grep 'ignoring option' conftest.err ||
4039 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4040 am_cv_CXX_dependencies_compiler_type=$depmode
4041 break
4044 done
4046 cd ..
4047 rm -rf conftest.dir
4048 else
4049 am_cv_CXX_dependencies_compiler_type=none
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4054 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4055 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4058 test "x$enable_dependency_tracking" != xno \
4059 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4060 am__fastdepCXX_TRUE=
4061 am__fastdepCXX_FALSE='#'
4062 else
4063 am__fastdepCXX_TRUE='#'
4064 am__fastdepCXX_FALSE=
4068 ac_ext=cpp
4069 ac_cpp='$CXXCPP $CPPFLAGS'
4070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4074 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4075 if test -z "$CXXCPP"; then
4076 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 # Double quotes because CXXCPP needs to be expanded
4080 for CXXCPP in "$CXX -E" "/lib/cpp"
4082 ac_preproc_ok=false
4083 for ac_cxx_preproc_warn_flag in '' yes
4085 # Use a header file that comes with gcc, so configuring glibc
4086 # with a fresh cross-compiler works.
4087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4088 # <limits.h> exists even on freestanding compilers.
4089 # On the NeXT, cc -E runs the code through the compiler's parser,
4090 # not just through cpp. "Syntax error" is here to catch this case.
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4093 #ifdef __STDC__
4094 # include <limits.h>
4095 #else
4096 # include <assert.h>
4097 #endif
4098 Syntax error
4099 _ACEOF
4100 if ac_fn_cxx_try_cpp "$LINENO"; then :
4102 else
4103 # Broken: fails on valid input.
4104 continue
4106 rm -f conftest.err conftest.$ac_ext
4108 # OK, works on sane cases. Now check whether nonexistent headers
4109 # can be detected and how.
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112 #include <ac_nonexistent.h>
4113 _ACEOF
4114 if ac_fn_cxx_try_cpp "$LINENO"; then :
4115 # Broken: success on invalid input.
4116 continue
4117 else
4118 # Passes both tests.
4119 ac_preproc_ok=:
4120 break
4122 rm -f conftest.err conftest.$ac_ext
4124 done
4125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4126 rm -f conftest.err conftest.$ac_ext
4127 if $ac_preproc_ok; then :
4128 break
4131 done
4132 ac_cv_prog_CXXCPP=$CXXCPP
4135 CXXCPP=$ac_cv_prog_CXXCPP
4136 else
4137 ac_cv_prog_CXXCPP=$CXXCPP
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4140 $as_echo "$CXXCPP" >&6; }
4141 ac_preproc_ok=false
4142 for ac_cxx_preproc_warn_flag in '' yes
4144 # Use a header file that comes with gcc, so configuring glibc
4145 # with a fresh cross-compiler works.
4146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4147 # <limits.h> exists even on freestanding compilers.
4148 # On the NeXT, cc -E runs the code through the compiler's parser,
4149 # not just through cpp. "Syntax error" is here to catch this case.
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4152 #ifdef __STDC__
4153 # include <limits.h>
4154 #else
4155 # include <assert.h>
4156 #endif
4157 Syntax error
4158 _ACEOF
4159 if ac_fn_cxx_try_cpp "$LINENO"; then :
4161 else
4162 # Broken: fails on valid input.
4163 continue
4165 rm -f conftest.err conftest.$ac_ext
4167 # OK, works on sane cases. Now check whether nonexistent headers
4168 # can be detected and how.
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171 #include <ac_nonexistent.h>
4172 _ACEOF
4173 if ac_fn_cxx_try_cpp "$LINENO"; then :
4174 # Broken: success on invalid input.
4175 continue
4176 else
4177 # Passes both tests.
4178 ac_preproc_ok=:
4179 break
4181 rm -f conftest.err conftest.$ac_ext
4183 done
4184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4185 rm -f conftest.err conftest.$ac_ext
4186 if $ac_preproc_ok; then :
4188 else
4189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4191 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4192 See \`config.log' for more details." "$LINENO" 5; }
4195 ac_ext=c
4196 ac_cpp='$CPP $CPPFLAGS'
4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201 ac_ext=c
4202 ac_cpp='$CPP $CPPFLAGS'
4203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206 if test -n "$ac_tool_prefix"; then
4207 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4208 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if test "${ac_cv_prog_CC+set}" = set; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if test -n "$CC"; then
4215 ac_cv_prog_CC="$CC" # Let the user override the test.
4216 else
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4224 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 break 2
4228 done
4229 done
4230 IFS=$as_save_IFS
4234 CC=$ac_cv_prog_CC
4235 if test -n "$CC"; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4237 $as_echo "$CC" >&6; }
4238 else
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4245 if test -z "$ac_cv_prog_CC"; then
4246 ac_ct_CC=$CC
4247 # Extract the first word of "gcc", so it can be a program name with args.
4248 set dummy gcc; ac_word=$2
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250 $as_echo_n "checking for $ac_word... " >&6; }
4251 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4252 $as_echo_n "(cached) " >&6
4253 else
4254 if test -n "$ac_ct_CC"; then
4255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4256 else
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4264 ac_cv_prog_ac_ct_CC="gcc"
4265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 break 2
4268 done
4269 done
4270 IFS=$as_save_IFS
4274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4275 if test -n "$ac_ct_CC"; then
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4277 $as_echo "$ac_ct_CC" >&6; }
4278 else
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4283 if test "x$ac_ct_CC" = x; then
4284 CC=""
4285 else
4286 case $cross_compiling:$ac_tool_warned in
4287 yes:)
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4290 ac_tool_warned=yes ;;
4291 esac
4292 CC=$ac_ct_CC
4294 else
4295 CC="$ac_cv_prog_CC"
4298 if test -z "$CC"; then
4299 if test -n "$ac_tool_prefix"; then
4300 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4301 set dummy ${ac_tool_prefix}cc; ac_word=$2
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303 $as_echo_n "checking for $ac_word... " >&6; }
4304 if test "${ac_cv_prog_CC+set}" = set; then :
4305 $as_echo_n "(cached) " >&6
4306 else
4307 if test -n "$CC"; then
4308 ac_cv_prog_CC="$CC" # Let the user override the test.
4309 else
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 ac_cv_prog_CC="${ac_tool_prefix}cc"
4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 break 2
4321 done
4322 done
4323 IFS=$as_save_IFS
4327 CC=$ac_cv_prog_CC
4328 if test -n "$CC"; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4330 $as_echo "$CC" >&6; }
4331 else
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333 $as_echo "no" >&6; }
4339 if test -z "$CC"; then
4340 # Extract the first word of "cc", so it can be a program name with args.
4341 set dummy cc; ac_word=$2
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343 $as_echo_n "checking for $ac_word... " >&6; }
4344 if test "${ac_cv_prog_CC+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 if test -n "$CC"; then
4348 ac_cv_prog_CC="$CC" # Let the user override the test.
4349 else
4350 ac_prog_rejected=no
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4358 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4359 ac_prog_rejected=yes
4360 continue
4362 ac_cv_prog_CC="cc"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 break 2
4366 done
4367 done
4368 IFS=$as_save_IFS
4370 if test $ac_prog_rejected = yes; then
4371 # We found a bogon in the path, so make sure we never use it.
4372 set dummy $ac_cv_prog_CC
4373 shift
4374 if test $# != 0; then
4375 # We chose a different compiler from the bogus one.
4376 # However, it has the same basename, so the bogon will be chosen
4377 # first if we set CC to just the basename; use the full file name.
4378 shift
4379 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4384 CC=$ac_cv_prog_CC
4385 if test -n "$CC"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4387 $as_echo "$CC" >&6; }
4388 else
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4395 if test -z "$CC"; then
4396 if test -n "$ac_tool_prefix"; then
4397 for ac_prog in cl.exe
4399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402 $as_echo_n "checking for $ac_word... " >&6; }
4403 if test "${ac_cv_prog_CC+set}" = set; then :
4404 $as_echo_n "(cached) " >&6
4405 else
4406 if test -n "$CC"; then
4407 ac_cv_prog_CC="$CC" # Let the user override the test.
4408 else
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 for as_dir in $PATH
4412 IFS=$as_save_IFS
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 break 2
4420 done
4421 done
4422 IFS=$as_save_IFS
4426 CC=$ac_cv_prog_CC
4427 if test -n "$CC"; then
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4429 $as_echo "$CC" >&6; }
4430 else
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 $as_echo "no" >&6; }
4436 test -n "$CC" && break
4437 done
4439 if test -z "$CC"; then
4440 ac_ct_CC=$CC
4441 for ac_prog in cl.exe
4443 # Extract the first word of "$ac_prog", so it can be a program name with args.
4444 set dummy $ac_prog; ac_word=$2
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 $as_echo_n "checking for $ac_word... " >&6; }
4447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 if test -n "$ac_ct_CC"; then
4451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4452 else
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460 ac_cv_prog_ac_ct_CC="$ac_prog"
4461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4464 done
4465 done
4466 IFS=$as_save_IFS
4470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4471 if test -n "$ac_ct_CC"; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4473 $as_echo "$ac_ct_CC" >&6; }
4474 else
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4480 test -n "$ac_ct_CC" && break
4481 done
4483 if test "x$ac_ct_CC" = x; then
4484 CC=""
4485 else
4486 case $cross_compiling:$ac_tool_warned in
4487 yes:)
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4490 ac_tool_warned=yes ;;
4491 esac
4492 CC=$ac_ct_CC
4499 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4501 as_fn_error "no acceptable C compiler found in \$PATH
4502 See \`config.log' for more details." "$LINENO" 5; }
4504 # Provide some information about the compiler.
4505 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4506 set X $ac_compile
4507 ac_compiler=$2
4508 for ac_option in --version -v -V -qversion; do
4509 { { ac_try="$ac_compiler $ac_option >&5"
4510 case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513 esac
4514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515 $as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4517 ac_status=$?
4518 if test -s conftest.err; then
4519 sed '10a\
4520 ... rest of stderr output deleted ...
4521 10q' conftest.err >conftest.er1
4522 cat conftest.er1 >&5
4524 rm -f conftest.er1 conftest.err
4525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4526 test $ac_status = 0; }
4527 done
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4530 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4531 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4538 main ()
4540 #ifndef __GNUC__
4541 choke me
4542 #endif
4545 return 0;
4547 _ACEOF
4548 if ac_fn_c_try_compile "$LINENO"; then :
4549 ac_compiler_gnu=yes
4550 else
4551 ac_compiler_gnu=no
4553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4558 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4559 if test $ac_compiler_gnu = yes; then
4560 GCC=yes
4561 else
4562 GCC=
4564 ac_test_CFLAGS=${CFLAGS+set}
4565 ac_save_CFLAGS=$CFLAGS
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4567 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4568 if test "${ac_cv_prog_cc_g+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 ac_save_c_werror_flag=$ac_c_werror_flag
4572 ac_c_werror_flag=yes
4573 ac_cv_prog_cc_g=no
4574 CFLAGS="-g"
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4579 main ()
4583 return 0;
4585 _ACEOF
4586 if ac_fn_c_try_compile "$LINENO"; then :
4587 ac_cv_prog_cc_g=yes
4588 else
4589 CFLAGS=""
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4594 main ()
4598 return 0;
4600 _ACEOF
4601 if ac_fn_c_try_compile "$LINENO"; then :
4603 else
4604 ac_c_werror_flag=$ac_save_c_werror_flag
4605 CFLAGS="-g"
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4610 main ()
4614 return 0;
4616 _ACEOF
4617 if ac_fn_c_try_compile "$LINENO"; then :
4618 ac_cv_prog_cc_g=yes
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_c_werror_flag=$ac_save_c_werror_flag
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4628 $as_echo "$ac_cv_prog_cc_g" >&6; }
4629 if test "$ac_test_CFLAGS" = set; then
4630 CFLAGS=$ac_save_CFLAGS
4631 elif test $ac_cv_prog_cc_g = yes; then
4632 if test "$GCC" = yes; then
4633 CFLAGS="-g -O2"
4634 else
4635 CFLAGS="-g"
4637 else
4638 if test "$GCC" = yes; then
4639 CFLAGS="-O2"
4640 else
4641 CFLAGS=
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4645 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4646 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 ac_cv_prog_cc_c89=no
4650 ac_save_CC=$CC
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4653 #include <stdarg.h>
4654 #include <stdio.h>
4655 #include <sys/types.h>
4656 #include <sys/stat.h>
4657 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4658 struct buf { int x; };
4659 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4660 static char *e (p, i)
4661 char **p;
4662 int i;
4664 return p[i];
4666 static char *f (char * (*g) (char **, int), char **p, ...)
4668 char *s;
4669 va_list v;
4670 va_start (v,p);
4671 s = g (p, va_arg (v,int));
4672 va_end (v);
4673 return s;
4676 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4677 function prototypes and stuff, but not '\xHH' hex character constants.
4678 These don't provoke an error unfortunately, instead are silently treated
4679 as 'x'. The following induces an error, until -std is added to get
4680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4681 array size at least. It's necessary to write '\x00'==0 to get something
4682 that's true only with -std. */
4683 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4685 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4686 inside strings and character constants. */
4687 #define FOO(x) 'x'
4688 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4690 int test (int i, double x);
4691 struct s1 {int (*f) (int a);};
4692 struct s2 {int (*f) (double a);};
4693 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4694 int argc;
4695 char **argv;
4697 main ()
4699 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4701 return 0;
4703 _ACEOF
4704 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4705 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4707 CC="$ac_save_CC $ac_arg"
4708 if ac_fn_c_try_compile "$LINENO"; then :
4709 ac_cv_prog_cc_c89=$ac_arg
4711 rm -f core conftest.err conftest.$ac_objext
4712 test "x$ac_cv_prog_cc_c89" != "xno" && break
4713 done
4714 rm -f conftest.$ac_ext
4715 CC=$ac_save_CC
4718 # AC_CACHE_VAL
4719 case "x$ac_cv_prog_cc_c89" in
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4722 $as_echo "none needed" >&6; } ;;
4723 xno)
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4725 $as_echo "unsupported" >&6; } ;;
4727 CC="$CC $ac_cv_prog_cc_c89"
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4729 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4730 esac
4731 if test "x$ac_cv_prog_cc_c89" != xno; then :
4735 ac_ext=c
4736 ac_cpp='$CPP $CPPFLAGS'
4737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4741 depcc="$CC" am_compiler_list=
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4744 $as_echo_n "checking dependency style of $depcc... " >&6; }
4745 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4749 # We make a subdir and do the tests there. Otherwise we can end up
4750 # making bogus files that we don't know about and never remove. For
4751 # instance it was reported that on HP-UX the gcc test will end up
4752 # making a dummy file named `D' -- because `-MD' means `put the output
4753 # in D'.
4754 mkdir conftest.dir
4755 # Copy depcomp to subdir because otherwise we won't find it if we're
4756 # using a relative directory.
4757 cp "$am_depcomp" conftest.dir
4758 cd conftest.dir
4759 # We will build objects and dependencies in a subdirectory because
4760 # it helps to detect inapplicable dependency modes. For instance
4761 # both Tru64's cc and ICC support -MD to output dependencies as a
4762 # side effect of compilation, but ICC will put the dependencies in
4763 # the current directory while Tru64 will put them in the object
4764 # directory.
4765 mkdir sub
4767 am_cv_CC_dependencies_compiler_type=none
4768 if test "$am_compiler_list" = ""; then
4769 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4771 am__universal=false
4772 case " $depcc " in #(
4773 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4774 esac
4776 for depmode in $am_compiler_list; do
4777 # Setup a source with many dependencies, because some compilers
4778 # like to wrap large dependency lists on column 80 (with \), and
4779 # we should not choose a depcomp mode which is confused by this.
4781 # We need to recreate these files for each test, as the compiler may
4782 # overwrite some of them when testing with obscure command lines.
4783 # This happens at least with the AIX C compiler.
4784 : > sub/conftest.c
4785 for i in 1 2 3 4 5 6; do
4786 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4787 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4788 # Solaris 8's {/usr,}/bin/sh.
4789 touch sub/conftst$i.h
4790 done
4791 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4793 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4794 # mode. It turns out that the SunPro C++ compiler does not properly
4795 # handle `-M -o', and we need to detect this. Also, some Intel
4796 # versions had trouble with output in subdirs
4797 am__obj=sub/conftest.${OBJEXT-o}
4798 am__minus_obj="-o $am__obj"
4799 case $depmode in
4800 gcc)
4801 # This depmode causes a compiler race in universal mode.
4802 test "$am__universal" = false || continue
4804 nosideeffect)
4805 # after this tag, mechanisms are not by side-effect, so they'll
4806 # only be used when explicitly requested
4807 if test "x$enable_dependency_tracking" = xyes; then
4808 continue
4809 else
4810 break
4813 msvisualcpp | msvcmsys)
4814 # This compiler won't grok `-c -o', but also, the minuso test has
4815 # not run yet. These depmodes are late enough in the game, and
4816 # so weak that their functioning should not be impacted.
4817 am__obj=conftest.${OBJEXT-o}
4818 am__minus_obj=
4820 none) break ;;
4821 esac
4822 if depmode=$depmode \
4823 source=sub/conftest.c object=$am__obj \
4824 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4825 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4826 >/dev/null 2>conftest.err &&
4827 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4828 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4829 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4830 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4831 # icc doesn't choke on unknown options, it will just issue warnings
4832 # or remarks (even with -Werror). So we grep stderr for any message
4833 # that says an option was ignored or not supported.
4834 # When given -MP, icc 7.0 and 7.1 complain thusly:
4835 # icc: Command line warning: ignoring option '-M'; no argument required
4836 # The diagnosis changed in icc 8.0:
4837 # icc: Command line remark: option '-MP' not supported
4838 if (grep 'ignoring option' conftest.err ||
4839 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4840 am_cv_CC_dependencies_compiler_type=$depmode
4841 break
4844 done
4846 cd ..
4847 rm -rf conftest.dir
4848 else
4849 am_cv_CC_dependencies_compiler_type=none
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4854 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4855 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4858 test "x$enable_dependency_tracking" != xno \
4859 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4860 am__fastdepCC_TRUE=
4861 am__fastdepCC_FALSE='#'
4862 else
4863 am__fastdepCC_TRUE='#'
4864 am__fastdepCC_FALSE=
4868 ac_ext=c
4869 ac_cpp='$CPP $CPPFLAGS'
4870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4874 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4875 # On Suns, sometimes $CPP names a directory.
4876 if test -n "$CPP" && test -d "$CPP"; then
4877 CPP=
4879 if test -z "$CPP"; then
4880 if test "${ac_cv_prog_CPP+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 # Double quotes because CPP needs to be expanded
4884 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4886 ac_preproc_ok=false
4887 for ac_c_preproc_warn_flag in '' yes
4889 # Use a header file that comes with gcc, so configuring glibc
4890 # with a fresh cross-compiler works.
4891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4892 # <limits.h> exists even on freestanding compilers.
4893 # On the NeXT, cc -E runs the code through the compiler's parser,
4894 # not just through cpp. "Syntax error" is here to catch this case.
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4897 #ifdef __STDC__
4898 # include <limits.h>
4899 #else
4900 # include <assert.h>
4901 #endif
4902 Syntax error
4903 _ACEOF
4904 if ac_fn_c_try_cpp "$LINENO"; then :
4906 else
4907 # Broken: fails on valid input.
4908 continue
4910 rm -f conftest.err conftest.$ac_ext
4912 # OK, works on sane cases. Now check whether nonexistent headers
4913 # can be detected and how.
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916 #include <ac_nonexistent.h>
4917 _ACEOF
4918 if ac_fn_c_try_cpp "$LINENO"; then :
4919 # Broken: success on invalid input.
4920 continue
4921 else
4922 # Passes both tests.
4923 ac_preproc_ok=:
4924 break
4926 rm -f conftest.err conftest.$ac_ext
4928 done
4929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4930 rm -f conftest.err conftest.$ac_ext
4931 if $ac_preproc_ok; then :
4932 break
4935 done
4936 ac_cv_prog_CPP=$CPP
4939 CPP=$ac_cv_prog_CPP
4940 else
4941 ac_cv_prog_CPP=$CPP
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4944 $as_echo "$CPP" >&6; }
4945 ac_preproc_ok=false
4946 for ac_c_preproc_warn_flag in '' yes
4948 # Use a header file that comes with gcc, so configuring glibc
4949 # with a fresh cross-compiler works.
4950 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4951 # <limits.h> exists even on freestanding compilers.
4952 # On the NeXT, cc -E runs the code through the compiler's parser,
4953 # not just through cpp. "Syntax error" is here to catch this case.
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4956 #ifdef __STDC__
4957 # include <limits.h>
4958 #else
4959 # include <assert.h>
4960 #endif
4961 Syntax error
4962 _ACEOF
4963 if ac_fn_c_try_cpp "$LINENO"; then :
4965 else
4966 # Broken: fails on valid input.
4967 continue
4969 rm -f conftest.err conftest.$ac_ext
4971 # OK, works on sane cases. Now check whether nonexistent headers
4972 # can be detected and how.
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4975 #include <ac_nonexistent.h>
4976 _ACEOF
4977 if ac_fn_c_try_cpp "$LINENO"; then :
4978 # Broken: success on invalid input.
4979 continue
4980 else
4981 # Passes both tests.
4982 ac_preproc_ok=:
4983 break
4985 rm -f conftest.err conftest.$ac_ext
4987 done
4988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4989 rm -f conftest.err conftest.$ac_ext
4990 if $ac_preproc_ok; then :
4992 else
4993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4995 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4996 See \`config.log' for more details." "$LINENO" 5; }
4999 ac_ext=c
5000 ac_cpp='$CPP $CPPFLAGS'
5001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5005 ac_build_prefix=
5006 test -n "$build_alias" && ac_build_prefix=$build_alias-
5008 if test "$cross_compiling" = yes; then :
5010 # Even if we're cross-compiling, we want a compiler here
5011 # that is not a cross-compiler.
5012 saved_cross=$cross_compiling
5013 cross_compiling=no
5015 ac_ext=c
5016 ac_cpp='$CPP $BUILD_CPPFLAGS'
5017 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5018 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020 if test -n "$ac_build_prefix"; then
5021 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5022 set dummy ${ac_build_prefix}gcc; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 if test -n "$BUILD_CC"; then
5029 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5042 done
5043 done
5044 IFS=$as_save_IFS
5048 BUILD_CC=$ac_cv_prog_BUILD_CC
5049 if test -n "$BUILD_CC"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5051 $as_echo "$BUILD_CC" >&6; }
5052 else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5059 if test -z "$ac_cv_prog_BUILD_CC"; then
5060 ac_ct_BUILD_CC=$BUILD_CC
5061 # Extract the first word of "gcc", so it can be a program name with args.
5062 set dummy gcc; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 if test -n "$ac_ct_BUILD_CC"; then
5069 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_prog_ac_ct_BUILD_CC="gcc"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5082 done
5083 done
5084 IFS=$as_save_IFS
5088 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5089 if test -n "$ac_ct_BUILD_CC"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5091 $as_echo "$ac_ct_BUILD_CC" >&6; }
5092 else
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5097 if test "x$ac_ct_BUILD_CC" = x; then
5098 BUILD_CC=""
5099 else
5100 case $cross_compiling:$ac_tool_warned in
5101 yes:)
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104 ac_tool_warned=yes ;;
5105 esac
5106 BUILD_CC=$ac_ct_BUILD_CC
5108 else
5109 BUILD_CC="$ac_cv_prog_BUILD_CC"
5112 if test -z "$BUILD_CC"; then
5113 if test -n "$ac_build_prefix"; then
5114 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5115 set dummy ${ac_build_prefix}cc; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 if test -n "$BUILD_CC"; then
5122 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5123 else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 break 2
5135 done
5136 done
5137 IFS=$as_save_IFS
5141 BUILD_CC=$ac_cv_prog_BUILD_CC
5142 if test -n "$BUILD_CC"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5144 $as_echo "$BUILD_CC" >&6; }
5145 else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5152 if test -z "$ac_cv_prog_BUILD_CC"; then
5153 ac_ct_BUILD_CC=$BUILD_CC
5154 # Extract the first word of "cc", so it can be a program name with args.
5155 set dummy cc; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 if test -n "$ac_ct_BUILD_CC"; then
5162 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5163 else
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_prog_ac_ct_BUILD_CC="cc"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5175 done
5176 done
5177 IFS=$as_save_IFS
5181 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5182 if test -n "$ac_ct_BUILD_CC"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5184 $as_echo "$ac_ct_BUILD_CC" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5190 if test "x$ac_ct_BUILD_CC" = x; then
5191 BUILD_CC=""
5192 else
5193 case $cross_compiling:$ac_tool_warned in
5194 yes:)
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5197 ac_tool_warned=yes ;;
5198 esac
5199 BUILD_CC=$ac_ct_BUILD_CC
5201 else
5202 BUILD_CC="$ac_cv_prog_BUILD_CC"
5206 if test -z "$BUILD_CC"; then
5207 # Extract the first word of "cc", so it can be a program name with args.
5208 set dummy cc; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 if test -n "$BUILD_CC"; then
5215 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5216 else
5217 ac_prog_rejected=no
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5226 ac_prog_rejected=yes
5227 continue
5229 ac_cv_prog_BUILD_CC="cc"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5233 done
5234 done
5235 IFS=$as_save_IFS
5237 if test $ac_prog_rejected = yes; then
5238 # We found a bogon in the path, so make sure we never use it.
5239 set dummy $ac_cv_prog_BUILD_CC
5240 shift
5241 if test $# != 0; then
5242 # We chose a different compiler from the bogus one.
5243 # However, it has the same basename, so the bogon will be chosen
5244 # first if we set BUILD_CC to just the basename; use the full file name.
5245 shift
5246 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
5251 BUILD_CC=$ac_cv_prog_BUILD_CC
5252 if test -n "$BUILD_CC"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5254 $as_echo "$BUILD_CC" >&6; }
5255 else
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5262 if test -z "$BUILD_CC"; then
5263 if test -n "$ac_build_prefix"; then
5264 for ac_prog in cl
5266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267 set dummy $ac_build_prefix$ac_prog; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 if test -n "$BUILD_CC"; then
5274 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5287 done
5288 done
5289 IFS=$as_save_IFS
5293 BUILD_CC=$ac_cv_prog_BUILD_CC
5294 if test -n "$BUILD_CC"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5296 $as_echo "$BUILD_CC" >&6; }
5297 else
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5303 test -n "$BUILD_CC" && break
5304 done
5306 if test -z "$BUILD_CC"; then
5307 ac_ct_BUILD_CC=$BUILD_CC
5308 for ac_prog in cl
5310 # Extract the first word of "$ac_prog", so it can be a program name with args.
5311 set dummy $ac_prog; ac_word=$2
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 if test -n "$ac_ct_BUILD_CC"; then
5318 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5331 done
5332 done
5333 IFS=$as_save_IFS
5337 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5338 if test -n "$ac_ct_BUILD_CC"; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5340 $as_echo "$ac_ct_BUILD_CC" >&6; }
5341 else
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5347 test -n "$ac_ct_BUILD_CC" && break
5348 done
5350 if test "x$ac_ct_BUILD_CC" = x; then
5351 BUILD_CC=""
5352 else
5353 case $cross_compiling:$ac_tool_warned in
5354 yes:)
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5357 ac_tool_warned=yes ;;
5358 esac
5359 BUILD_CC=$ac_ct_BUILD_CC
5366 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5368 as_fn_error "no acceptable C compiler found in \$PATH
5369 See \`config.log' for more details." "$LINENO" 5; }
5371 # Provide some information about the compiler.
5372 echo "$as_me:$LINENO:" \
5373 "checking for C compiler version" >&5
5374 ac_compiler=`set X $ac_compile; echo $2`
5375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5376 (eval $ac_compiler --version </dev/null >&5) 2>&5
5377 ac_status=$?
5378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5379 test $ac_status = 0; }
5380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5381 (eval $ac_compiler -v </dev/null >&5) 2>&5
5382 ac_status=$?
5383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5384 test $ac_status = 0; }
5385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5386 (eval $ac_compiler -V </dev/null >&5) 2>&5
5387 ac_status=$?
5388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5389 test $ac_status = 0; }
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5395 main ()
5399 return 0;
5401 _ACEOF
5402 ac_clean_files_save=$ac_clean_files
5403 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5404 # Try to create an executable without -o first, disregard a.out.
5405 # It will help us diagnose broken compilers, and finding out an intuition
5406 # of exeext.
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5408 $as_echo_n "checking whether the C compiler works... " >&6; }
5409 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5411 # The possible output files:
5412 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5414 ac_rmfiles=
5415 for ac_file in $ac_files
5417 case $ac_file in
5418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5419 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5420 esac
5421 done
5422 rm -f $ac_rmfiles
5424 if { { ac_try="$ac_link_default"
5425 case "(($ac_try" in
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5428 esac
5429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5430 $as_echo "$ac_try_echo"; } >&5
5431 (eval "$ac_link_default") 2>&5
5432 ac_status=$?
5433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5434 test $ac_status = 0; }; then :
5435 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5436 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5437 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5438 # so that the user can short-circuit this test for compilers unknown to
5439 # Autoconf.
5440 for ac_file in $ac_files ''
5442 test -f "$ac_file" || continue
5443 case $ac_file in
5444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5446 [ab].out )
5447 # We found the default executable, but exeext='' is most
5448 # certainly right.
5449 break;;
5450 *.* )
5451 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5452 then :; else
5453 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5455 # We set ac_cv_exeext here because the later test for it is not
5456 # safe: cross compilers may not add the suffix if given an `-o'
5457 # argument, so we may need to know it at that point already.
5458 # Even if this section looks crufty: it has the advantage of
5459 # actually working.
5460 break;;
5462 break;;
5463 esac
5464 done
5465 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5467 else
5468 ac_file=''
5470 if test -z "$ac_file"; then :
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }
5473 $as_echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5478 { as_fn_set_status 77
5479 as_fn_error "C compiler cannot create executables
5480 See \`config.log' for more details." "$LINENO" 5; }; }
5481 else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5483 $as_echo "yes" >&6; }
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5486 $as_echo_n "checking for C compiler default output file name... " >&6; }
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5488 $as_echo "$ac_file" >&6; }
5489 ac_build_exeext=$ac_cv_build_exeext
5491 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5492 ac_clean_files=$ac_clean_files_save
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5494 $as_echo_n "checking for suffix of executables... " >&6; }
5495 if { { ac_try="$ac_link"
5496 case "(($ac_try" in
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5499 esac
5500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5501 $as_echo "$ac_try_echo"; } >&5
5502 (eval "$ac_link") 2>&5
5503 ac_status=$?
5504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5505 test $ac_status = 0; }; then :
5506 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5507 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5508 # work properly (i.e., refer to `conftest.exe'), while it won't with
5509 # `rm'.
5510 for ac_file in conftest.exe conftest conftest.*; do
5511 test -f "$ac_file" || continue
5512 case $ac_file in
5513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5514 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5515 break;;
5516 * ) break;;
5517 esac
5518 done
5519 else
5520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5522 as_fn_error "cannot compute suffix of executables: cannot compile and link
5523 See \`config.log' for more details." "$LINENO" 5; }
5525 rm -f conftest conftest$ac_cv_build_exeext
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
5527 $as_echo "$ac_cv_build_exeext" >&6; }
5529 rm -f conftest.$ac_ext
5530 BUILD_EXEEXT=$ac_cv_build_exeext
5531 ac_build_exeext=$BUILD_EXEEXT
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 #include <stdio.h>
5536 main ()
5538 FILE *f = fopen ("conftest.out", "w");
5539 return ferror (f) || fclose (f) != 0;
5542 return 0;
5544 _ACEOF
5545 ac_clean_files="$ac_clean_files conftest.out"
5546 # Check that the compiler produces executables we can run. If not, either
5547 # the compiler is broken, or we cross compile.
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5549 $as_echo_n "checking whether we are cross compiling... " >&6; }
5550 if test "$cross_compiling" != yes; then
5551 { { ac_try="$ac_link"
5552 case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555 esac
5556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5557 $as_echo "$ac_try_echo"; } >&5
5558 (eval "$ac_link") 2>&5
5559 ac_status=$?
5560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5561 test $ac_status = 0; }
5562 if { ac_try='./conftest$ac_cv_build_exeext'
5563 { { case "(($ac_try" in
5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565 *) ac_try_echo=$ac_try;;
5566 esac
5567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5568 $as_echo "$ac_try_echo"; } >&5
5569 (eval "$ac_try") 2>&5
5570 ac_status=$?
5571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5572 test $ac_status = 0; }; }; then
5573 cross_compiling=no
5574 else
5575 if test "$cross_compiling" = maybe; then
5576 cross_compiling=yes
5577 else
5578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5580 as_fn_error "cannot run C compiled programs.
5581 If you meant to cross compile, use \`--host'.
5582 See \`config.log' for more details." "$LINENO" 5; }
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5587 $as_echo "$cross_compiling" >&6; }
5589 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
5590 ac_clean_files=$ac_clean_files_save
5593 # Restore configuration environment
5594 cross_compiling=$saved_cross
5596 ac_ext=c
5597 ac_cpp='$CPP $CPPFLAGS'
5598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5602 else
5603 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
5605 CFLAGS="$mule_backup_CFLAGS"
5606 CXXFLAGS="$mule_backup_CXXFLAGS"
5607 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
5608 for ac_prog in gawk mawk nawk awk
5610 # Extract the first word of "$ac_prog", so it can be a program name with args.
5611 set dummy $ac_prog; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if test "${ac_cv_prog_AWK+set}" = set; then :
5615 $as_echo_n "(cached) " >&6
5616 else
5617 if test -n "$AWK"; then
5618 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627 ac_cv_prog_AWK="$ac_prog"
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5631 done
5632 done
5633 IFS=$as_save_IFS
5637 AWK=$ac_cv_prog_AWK
5638 if test -n "$AWK"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5640 $as_echo "$AWK" >&6; }
5641 else
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5647 test -n "$AWK" && break
5648 done
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5651 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5652 if test "${ac_cv_path_GREP+set}" = set; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 if test -z "$GREP"; then
5656 ac_path_GREP_found=false
5657 # Loop through the user's path and test for each of PROGNAME-LIST
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5661 IFS=$as_save_IFS
5662 test -z "$as_dir" && as_dir=.
5663 for ac_prog in grep ggrep; do
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5666 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5667 # Check for GNU ac_path_GREP and select it if it is found.
5668 # Check for GNU $ac_path_GREP
5669 case `"$ac_path_GREP" --version 2>&1` in
5670 *GNU*)
5671 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5673 ac_count=0
5674 $as_echo_n 0123456789 >"conftest.in"
5675 while :
5677 cat "conftest.in" "conftest.in" >"conftest.tmp"
5678 mv "conftest.tmp" "conftest.in"
5679 cp "conftest.in" "conftest.nl"
5680 $as_echo 'GREP' >> "conftest.nl"
5681 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5683 as_fn_arith $ac_count + 1 && ac_count=$as_val
5684 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5685 # Best one so far, save it but keep looking for a better one
5686 ac_cv_path_GREP="$ac_path_GREP"
5687 ac_path_GREP_max=$ac_count
5689 # 10*(2^10) chars as input seems more than enough
5690 test $ac_count -gt 10 && break
5691 done
5692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5693 esac
5695 $ac_path_GREP_found && break 3
5696 done
5697 done
5698 done
5699 IFS=$as_save_IFS
5700 if test -z "$ac_cv_path_GREP"; then
5701 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5703 else
5704 ac_cv_path_GREP=$GREP
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5709 $as_echo "$ac_cv_path_GREP" >&6; }
5710 GREP="$ac_cv_path_GREP"
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5714 $as_echo_n "checking for egrep... " >&6; }
5715 if test "${ac_cv_path_EGREP+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5717 else
5718 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5719 then ac_cv_path_EGREP="$GREP -E"
5720 else
5721 if test -z "$EGREP"; then
5722 ac_path_EGREP_found=false
5723 # Loop through the user's path and test for each of PROGNAME-LIST
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_prog in egrep; do
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5732 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5733 # Check for GNU ac_path_EGREP and select it if it is found.
5734 # Check for GNU $ac_path_EGREP
5735 case `"$ac_path_EGREP" --version 2>&1` in
5736 *GNU*)
5737 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5739 ac_count=0
5740 $as_echo_n 0123456789 >"conftest.in"
5741 while :
5743 cat "conftest.in" "conftest.in" >"conftest.tmp"
5744 mv "conftest.tmp" "conftest.in"
5745 cp "conftest.in" "conftest.nl"
5746 $as_echo 'EGREP' >> "conftest.nl"
5747 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5749 as_fn_arith $ac_count + 1 && ac_count=$as_val
5750 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5751 # Best one so far, save it but keep looking for a better one
5752 ac_cv_path_EGREP="$ac_path_EGREP"
5753 ac_path_EGREP_max=$ac_count
5755 # 10*(2^10) chars as input seems more than enough
5756 test $ac_count -gt 10 && break
5757 done
5758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5759 esac
5761 $ac_path_EGREP_found && break 3
5762 done
5763 done
5764 done
5765 IFS=$as_save_IFS
5766 if test -z "$ac_cv_path_EGREP"; then
5767 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5769 else
5770 ac_cv_path_EGREP=$EGREP
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5776 $as_echo "$ac_cv_path_EGREP" >&6; }
5777 EGREP="$ac_cv_path_EGREP"
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5781 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5782 set x ${MAKE-make}
5783 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5784 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5785 $as_echo_n "(cached) " >&6
5786 else
5787 cat >conftest.make <<\_ACEOF
5788 SHELL = /bin/sh
5789 all:
5790 @echo '@@@%%%=$(MAKE)=@@@%%%'
5791 _ACEOF
5792 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5793 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5794 *@@@%%%=?*=@@@%%%*)
5795 eval ac_cv_prog_make_${ac_make}_set=yes;;
5797 eval ac_cv_prog_make_${ac_make}_set=no;;
5798 esac
5799 rm -f conftest.make
5801 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5803 $as_echo "yes" >&6; }
5804 SET_MAKE=
5805 else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5808 SET_MAKE="MAKE=${MAKE-make}"
5812 for ac_prog in flex lex
5814 # Extract the first word of "$ac_prog", so it can be a program name with args.
5815 set dummy $ac_prog; ac_word=$2
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817 $as_echo_n "checking for $ac_word... " >&6; }
5818 if test "${ac_cv_prog_LEX+set}" = set; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821 if test -n "$LEX"; then
5822 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831 ac_cv_prog_LEX="$ac_prog"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5835 done
5836 done
5837 IFS=$as_save_IFS
5841 LEX=$ac_cv_prog_LEX
5842 if test -n "$LEX"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5844 $as_echo "$LEX" >&6; }
5845 else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 $as_echo "no" >&6; }
5851 test -n "$LEX" && break
5852 done
5853 test -n "$LEX" || LEX=":"
5855 if test "x$LEX" != "x:"; then
5856 cat >conftest.l <<_ACEOF
5858 a { ECHO; }
5859 b { REJECT; }
5860 c { yymore (); }
5861 d { yyless (1); }
5862 e { yyless (input () != 0); }
5863 f { unput (yytext[0]); }
5864 . { BEGIN INITIAL; }
5866 #ifdef YYTEXT_POINTER
5867 extern char *yytext;
5868 #endif
5870 main (void)
5872 return ! yylex () + ! yywrap ();
5874 _ACEOF
5875 { { ac_try="$LEX conftest.l"
5876 case "(($ac_try" in
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5879 esac
5880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5881 $as_echo "$ac_try_echo"; } >&5
5882 (eval "$LEX conftest.l") 2>&5
5883 ac_status=$?
5884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5885 test $ac_status = 0; }
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5887 $as_echo_n "checking lex output file root... " >&6; }
5888 if test "${ac_cv_prog_lex_root+set}" = set; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5892 if test -f lex.yy.c; then
5893 ac_cv_prog_lex_root=lex.yy
5894 elif test -f lexyy.c; then
5895 ac_cv_prog_lex_root=lexyy
5896 else
5897 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5901 $as_echo "$ac_cv_prog_lex_root" >&6; }
5902 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5904 if test -z "${LEXLIB+set}"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5906 $as_echo_n "checking lex library... " >&6; }
5907 if test "${ac_cv_lib_lex+set}" = set; then :
5908 $as_echo_n "(cached) " >&6
5909 else
5911 ac_save_LIBS=$LIBS
5912 ac_cv_lib_lex='none needed'
5913 for ac_lib in '' -lfl -ll; do
5914 LIBS="$ac_lib $ac_save_LIBS"
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 `cat $LEX_OUTPUT_ROOT.c`
5918 _ACEOF
5919 if ac_fn_c_try_link "$LINENO"; then :
5920 ac_cv_lib_lex=$ac_lib
5922 rm -f core conftest.err conftest.$ac_objext \
5923 conftest$ac_exeext conftest.$ac_ext
5924 test "$ac_cv_lib_lex" != 'none needed' && break
5925 done
5926 LIBS=$ac_save_LIBS
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5930 $as_echo "$ac_cv_lib_lex" >&6; }
5931 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5936 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5937 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 # POSIX says lex can declare yytext either as a pointer or an array; the
5941 # default is implementation-dependent. Figure out which it is, since
5942 # not all implementations provide the %pointer and %array declarations.
5943 ac_cv_prog_lex_yytext_pointer=no
5944 ac_save_LIBS=$LIBS
5945 LIBS="$LEXLIB $ac_save_LIBS"
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5948 #define YYTEXT_POINTER 1
5949 `cat $LEX_OUTPUT_ROOT.c`
5950 _ACEOF
5951 if ac_fn_c_try_link "$LINENO"; then :
5952 ac_cv_prog_lex_yytext_pointer=yes
5954 rm -f core conftest.err conftest.$ac_objext \
5955 conftest$ac_exeext conftest.$ac_ext
5956 LIBS=$ac_save_LIBS
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5960 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5961 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5963 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5966 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5970 if test -n "$ac_tool_prefix"; then
5971 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5972 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974 $as_echo_n "checking for $ac_word... " >&6; }
5975 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 if test -n "$RANLIB"; then
5979 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5980 else
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5988 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5992 done
5993 done
5994 IFS=$as_save_IFS
5998 RANLIB=$ac_cv_prog_RANLIB
5999 if test -n "$RANLIB"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6001 $as_echo "$RANLIB" >&6; }
6002 else
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004 $as_echo "no" >&6; }
6009 if test -z "$ac_cv_prog_RANLIB"; then
6010 ac_ct_RANLIB=$RANLIB
6011 # Extract the first word of "ranlib", so it can be a program name with args.
6012 set dummy ranlib; ac_word=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 $as_echo_n "checking for $ac_word... " >&6; }
6015 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 if test -n "$ac_ct_RANLIB"; then
6019 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028 ac_cv_prog_ac_ct_RANLIB="ranlib"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6032 done
6033 done
6034 IFS=$as_save_IFS
6038 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6039 if test -n "$ac_ct_RANLIB"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6041 $as_echo "$ac_ct_RANLIB" >&6; }
6042 else
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6047 if test "x$ac_ct_RANLIB" = x; then
6048 RANLIB=":"
6049 else
6050 case $cross_compiling:$ac_tool_warned in
6051 yes:)
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6054 ac_tool_warned=yes ;;
6055 esac
6056 RANLIB=$ac_ct_RANLIB
6058 else
6059 RANLIB="$ac_cv_prog_RANLIB"
6062 for ac_prog in 'bison -y' byacc
6064 # Extract the first word of "$ac_prog", so it can be a program name with args.
6065 set dummy $ac_prog; ac_word=$2
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067 $as_echo_n "checking for $ac_word... " >&6; }
6068 if test "${ac_cv_prog_YACC+set}" = set; then :
6069 $as_echo_n "(cached) " >&6
6070 else
6071 if test -n "$YACC"; then
6072 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6073 else
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6077 IFS=$as_save_IFS
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081 ac_cv_prog_YACC="$ac_prog"
6082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 break 2
6085 done
6086 done
6087 IFS=$as_save_IFS
6091 YACC=$ac_cv_prog_YACC
6092 if test -n "$YACC"; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6094 $as_echo "$YACC" >&6; }
6095 else
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097 $as_echo "no" >&6; }
6101 test -n "$YACC" && break
6102 done
6103 test -n "$YACC" || YACC="yacc"
6106 if test -n "$ac_tool_prefix"; then
6107 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6108 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 if test -n "$RANLIB"; then
6115 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6116 else
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6120 IFS=$as_save_IFS
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6124 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 break 2
6128 done
6129 done
6130 IFS=$as_save_IFS
6134 RANLIB=$ac_cv_prog_RANLIB
6135 if test -n "$RANLIB"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6137 $as_echo "$RANLIB" >&6; }
6138 else
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6145 if test -z "$ac_cv_prog_RANLIB"; then
6146 ac_ct_RANLIB=$RANLIB
6147 # Extract the first word of "ranlib", so it can be a program name with args.
6148 set dummy ranlib; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 if test -n "$ac_ct_RANLIB"; then
6155 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_prog_ac_ct_RANLIB="ranlib"
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6168 done
6169 done
6170 IFS=$as_save_IFS
6174 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6175 if test -n "$ac_ct_RANLIB"; then
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6177 $as_echo "$ac_ct_RANLIB" >&6; }
6178 else
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6183 if test "x$ac_ct_RANLIB" = x; then
6184 RANLIB=""
6185 else
6186 case $cross_compiling:$ac_tool_warned in
6187 yes:)
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6190 ac_tool_warned=yes ;;
6191 esac
6192 RANLIB=$ac_ct_RANLIB
6194 else
6195 RANLIB="$ac_cv_prog_RANLIB"
6198 if test -n "$ac_tool_prefix"; then
6199 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6200 set dummy ${ac_tool_prefix}strip; ac_word=$2
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 $as_echo_n "checking for $ac_word... " >&6; }
6203 if test "${ac_cv_prog_STRIP+set}" = set; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6206 if test -n "$STRIP"; then
6207 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6208 else
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH
6212 IFS=$as_save_IFS
6213 test -z "$as_dir" && as_dir=.
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6216 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 break 2
6220 done
6221 done
6222 IFS=$as_save_IFS
6226 STRIP=$ac_cv_prog_STRIP
6227 if test -n "$STRIP"; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6229 $as_echo "$STRIP" >&6; }
6230 else
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232 $as_echo "no" >&6; }
6237 if test -z "$ac_cv_prog_STRIP"; then
6238 ac_ct_STRIP=$STRIP
6239 # Extract the first word of "strip", so it can be a program name with args.
6240 set dummy strip; ac_word=$2
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242 $as_echo_n "checking for $ac_word... " >&6; }
6243 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6246 if test -n "$ac_ct_STRIP"; then
6247 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6248 else
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH
6252 IFS=$as_save_IFS
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6256 ac_cv_prog_ac_ct_STRIP="strip"
6257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 break 2
6260 done
6261 done
6262 IFS=$as_save_IFS
6266 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6267 if test -n "$ac_ct_STRIP"; then
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6269 $as_echo "$ac_ct_STRIP" >&6; }
6270 else
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272 $as_echo "no" >&6; }
6275 if test "x$ac_ct_STRIP" = x; then
6276 STRIP=""
6277 else
6278 case $cross_compiling:$ac_tool_warned in
6279 yes:)
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6282 ac_tool_warned=yes ;;
6283 esac
6284 STRIP=$ac_ct_STRIP
6286 else
6287 STRIP="$ac_cv_prog_STRIP"
6290 if test -n "$ac_tool_prefix"; then
6291 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6292 set dummy ${ac_tool_prefix}ar; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if test "${ac_cv_prog_AR+set}" = set; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 if test -n "$AR"; then
6299 ac_cv_prog_AR="$AR" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308 ac_cv_prog_AR="${ac_tool_prefix}ar"
6309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 break 2
6312 done
6313 done
6314 IFS=$as_save_IFS
6318 AR=$ac_cv_prog_AR
6319 if test -n "$AR"; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6321 $as_echo "$AR" >&6; }
6322 else
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6329 if test -z "$ac_cv_prog_AR"; then
6330 ac_ct_AR=$AR
6331 # Extract the first word of "ar", so it can be a program name with args.
6332 set dummy ar; ac_word=$2
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 if test -n "$ac_ct_AR"; then
6339 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6340 else
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6344 IFS=$as_save_IFS
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6348 ac_cv_prog_ac_ct_AR="ar"
6349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 break 2
6352 done
6353 done
6354 IFS=$as_save_IFS
6358 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6359 if test -n "$ac_ct_AR"; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6361 $as_echo "$ac_ct_AR" >&6; }
6362 else
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6367 if test "x$ac_ct_AR" = x; then
6368 AR=""
6369 else
6370 case $cross_compiling:$ac_tool_warned in
6371 yes:)
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6374 ac_tool_warned=yes ;;
6375 esac
6376 AR=$ac_ct_AR
6378 else
6379 AR="$ac_cv_prog_AR"
6382 if test -n "$ac_tool_prefix"; then
6383 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6384 set dummy ${ac_tool_prefix}ld; ac_word=$2
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if test "${ac_cv_prog_LD+set}" = set; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 if test -n "$LD"; then
6391 ac_cv_prog_LD="$LD" # Let the user override the test.
6392 else
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_prog_LD="${ac_tool_prefix}ld"
6401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6402 break 2
6404 done
6405 done
6406 IFS=$as_save_IFS
6410 LD=$ac_cv_prog_LD
6411 if test -n "$LD"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6413 $as_echo "$LD" >&6; }
6414 else
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6421 if test -z "$ac_cv_prog_LD"; then
6422 ac_ct_LD=$LD
6423 # Extract the first word of "ld", so it can be a program name with args.
6424 set dummy ld; ac_word=$2
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426 $as_echo_n "checking for $ac_word... " >&6; }
6427 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 if test -n "$ac_ct_LD"; then
6431 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6432 else
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6436 IFS=$as_save_IFS
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6440 ac_cv_prog_ac_ct_LD="ld"
6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 break 2
6444 done
6445 done
6446 IFS=$as_save_IFS
6450 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6451 if test -n "$ac_ct_LD"; then
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6453 $as_echo "$ac_ct_LD" >&6; }
6454 else
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456 $as_echo "no" >&6; }
6459 if test "x$ac_ct_LD" = x; then
6460 LD=""
6461 else
6462 case $cross_compiling:$ac_tool_warned in
6463 yes:)
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6466 ac_tool_warned=yes ;;
6467 esac
6468 LD=$ac_ct_LD
6470 else
6471 LD="$ac_cv_prog_LD"
6475 # Check whether --enable-monolithic was given.
6476 if test "${enable_monolithic+set}" = set; then :
6477 enableval=$enable_monolithic;
6480 if test ${enable_monolithic:-yes} = yes; then
6481 MONOLITHIC_TRUE=
6482 MONOLITHIC_FALSE='#'
6483 else
6484 MONOLITHIC_TRUE='#'
6485 MONOLITHIC_FALSE=
6489 # Check whether --enable-amule-daemon was given.
6490 if test "${enable_amule_daemon+set}" = set; then :
6491 enableval=$enable_amule_daemon;
6494 if test ${enable_amule_daemon:-no} = yes; then
6495 AMULE_DAEMON_TRUE=
6496 AMULE_DAEMON_FALSE='#'
6497 else
6498 AMULE_DAEMON_TRUE='#'
6499 AMULE_DAEMON_FALSE=
6503 # Check whether --enable-amulecmd was given.
6504 if test "${enable_amulecmd+set}" = set; then :
6505 enableval=$enable_amulecmd;
6508 if test ${enable_amulecmd:-no} = yes; then
6509 COMPILE_CMD_TRUE=
6510 COMPILE_CMD_FALSE='#'
6511 else
6512 COMPILE_CMD_TRUE='#'
6513 COMPILE_CMD_FALSE=
6517 # Check whether --enable-webserver was given.
6518 if test "${enable_webserver+set}" = set; then :
6519 enableval=$enable_webserver;
6522 if test ${enable_webserver:-no} = yes; then
6523 WEB_TRUE=
6524 WEB_FALSE='#'
6525 else
6526 WEB_TRUE='#'
6527 WEB_FALSE=
6531 # Check whether --enable-amule-gui was given.
6532 if test "${enable_amule_gui+set}" = set; then :
6533 enableval=$enable_amule_gui;
6536 if test ${enable_amule_gui:-no} = yes; then
6537 AMULE_GUI_TRUE=
6538 AMULE_GUI_FALSE='#'
6539 else
6540 AMULE_GUI_TRUE='#'
6541 AMULE_GUI_FALSE=
6545 # Check whether --enable-cas was given.
6546 if test "${enable_cas+set}" = set; then :
6547 enableval=$enable_cas;
6550 if test ${enable_cas:-no} = yes; then
6551 CAS_TRUE=
6552 CAS_FALSE='#'
6553 else
6554 CAS_TRUE='#'
6555 CAS_FALSE=
6559 # Check whether --enable-wxcas was given.
6560 if test "${enable_wxcas+set}" = set; then :
6561 enableval=$enable_wxcas;
6564 if test ${enable_wxcas:-no} = yes; then
6565 WXCAS_TRUE=
6566 WXCAS_FALSE='#'
6567 else
6568 WXCAS_TRUE='#'
6569 WXCAS_FALSE=
6573 # Check whether --enable-ed2k was given.
6574 if test "${enable_ed2k+set}" = set; then :
6575 enableval=$enable_ed2k;
6578 if test ${enable_ed2k:-yes} = yes; then
6579 ED2K_TRUE=
6580 ED2K_FALSE='#'
6581 else
6582 ED2K_TRUE='#'
6583 ED2K_FALSE=
6587 # Check whether --enable-alc was given.
6588 if test "${enable_alc+set}" = set; then :
6589 enableval=$enable_alc;
6592 if test ${enable_alc:-no} = yes; then
6593 ALC_TRUE=
6594 ALC_FALSE='#'
6595 else
6596 ALC_TRUE='#'
6597 ALC_FALSE=
6601 # Check whether --enable-alcc was given.
6602 if test "${enable_alcc+set}" = set; then :
6603 enableval=$enable_alcc;
6606 if test ${enable_alcc:-no} = yes; then
6607 ALCC_TRUE=
6608 ALCC_FALSE='#'
6609 else
6610 ALCC_TRUE='#'
6611 ALCC_FALSE=
6615 # Check whether --enable-xas was given.
6616 if test "${enable_xas+set}" = set; then :
6617 enableval=$enable_xas;
6620 if test ${enable_xas:-no} = yes; then
6621 XAS_TRUE=
6622 XAS_FALSE='#'
6623 else
6624 XAS_TRUE='#'
6625 XAS_FALSE=
6629 # Check whether --enable-fileview was given.
6630 if test "${enable_fileview+set}" = set; then :
6631 enableval=$enable_fileview;
6634 if test ${enable_fileview:-no} = yes; then
6635 FILEVIEW_TRUE=
6636 FILEVIEW_FALSE='#'
6637 else
6638 FILEVIEW_TRUE='#'
6639 FILEVIEW_FALSE=
6643 # Check whether --enable-plasmamule was given.
6644 if test "${enable_plasmamule+set}" = set; then :
6645 enableval=$enable_plasmamule;
6650 # Run all the tests with static linkage if we want a statically linked binary
6651 # Check whether --enable-static was given.
6652 if test "${enable_static+set}" = set; then :
6653 enableval=$enable_static;
6657 if test ${enable_static:-no} = yes; then :
6658 LDFLAGS="$LDFLAGS -static"
6663 # Check whether --with-kde4-config was given.
6664 if test "${with_kde4_config+set}" = set; then :
6665 withval=$with_kde4_config; KDE4_CONFIG=$withval
6666 else
6667 KDE4_CONFIG=""
6670 # Check whether --enable-kde-in-home was given.
6671 if test "${enable_kde_in_home+set}" = set; then :
6672 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
6673 else
6674 KDE_IN_HOME=no
6680 # Check whether --with-moc was given.
6681 if test "${with_moc+set}" = set; then :
6682 withval=$with_moc; QT_MOC=$withval
6683 else
6684 QT_MOC=""
6689 # Default is yes, because they're most likely compatible.
6690 # However, this is only used when cross-compiling.
6692 # Check whether --with-gnu-malloc was given.
6693 if test "${with_gnu_malloc+set}" = set; then :
6694 withval=$with_gnu_malloc; gnumalloc=$withval
6695 else
6696 gnumalloc=yes
6701 # Checking for libs before all other stuff to break
6702 # configure as soon as possible in case of a missing one
6703 # to avoid losing too much time
6705 # Check for zlib
6706 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 :
6709 # Check whether --with-zlib was given.
6710 if test "${with_zlib+set}" = set; then :
6711 withval=$with_zlib;
6715 case "${with_zlib:-yes}" in
6717 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
6719 yes | sys)
6722 zlib_prefix="$with_zlib"
6723 esac
6725 mule_backup_CPPFLAGS="$CPPFLAGS"
6726 mule_backup_LDFLAGS="$LDFLAGS"
6727 mule_backup_LIBS="$LIBS"
6728 if test -n "$zlib_prefix"; then :
6730 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
6731 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
6732 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
6733 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
6735 else
6737 ZLIB_CPPFLAGS=
6738 ZLIB_LDFLAGS=
6741 ZLIB_LIBS="-lz"
6742 LIBS="$ZLIB_LIBS $LIBS"
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
6745 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
6746 if test "$cross_compiling" = yes; then :
6748 result=no
6749 z_version=
6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6754 #include <zlib.h>
6755 #include <stdio.h>
6758 main ()
6761 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
6762 zlibVersion();
6765 return 0;
6768 _ACEOF
6769 if ac_fn_c_try_link "$LINENO"; then :
6771 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
6772 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
6773 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
6774 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
6775 if test "$cross_zver_max" -gt "1"; then
6776 result=yes
6777 elif test "$cross_zver_max" -eq "1"; then
6779 if test "$cross_zver_mid" -gt "1"; then
6780 result=yes
6781 elif test "$cross_zver_mid" -eq "1"; then
6782 if test "$cross_zver_min" -ge "4"; then
6783 result=yes
6791 if test ${result:-no} = yes; then :
6792 z_version=" (version $ZLIB_VERSION)"
6796 rm -f core conftest.err conftest.$ac_objext \
6797 conftest$ac_exeext conftest.$ac_ext
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
6799 $as_echo "$result$z_version" >&6; }
6801 else
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6806 #include <zlib.h>
6807 #include <stdio.h>
6810 main ()
6812 char *zver = zlibVersion();
6813 FILE *f=fopen("conftestval", "w");
6814 if (!f) return 1;
6815 fprintf(f, "%s",
6816 zver[0] > '1' ||
6817 (zver[0] == '1' &&
6818 (zver[2] > '1' ||
6819 (zver[2] == '1' &&
6820 zver[4] >= '4'))) ? "yes" : "no");
6821 fclose(f);
6822 f=fopen("conftestver", "w");
6823 if (f) {
6824 fprintf(f, "%s", ZLIB_VERSION);
6825 fclose(f);
6829 return 0;
6832 _ACEOF
6833 if ac_fn_c_try_run "$LINENO"; then :
6835 if test -f conftestval; then :
6836 result=`cat conftestval`
6837 else
6838 result=no
6840 if test ${result:-no} = yes; then :
6842 if test -f conftestver; then :
6844 ZLIB_VERSION=`cat conftestver`
6845 z_version=" (version $ZLIB_VERSION)"
6847 else
6848 z_version=
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
6853 $as_echo "$result$z_version" >&6; }
6855 else
6857 result=no
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6859 $as_echo "$result" >&6; }
6862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6863 conftest.$ac_objext conftest.beam conftest.$ac_ext
6867 CPPFLAGS="$mule_backup_CPPFLAGS"
6868 LDFLAGS="$mule_backup_LDFLAGS"
6869 LIBS="$mule_backup_LIBS"
6871 if test ${result:-no} = no; then :
6873 ZLIB_CPPFLAGS=
6874 ZLIB_LDFLAGS=
6875 ZLIB_LIBS=
6876 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6885 $as_echo_n "checking for ANSI C header files... " >&6; }
6886 if test "${ac_cv_header_stdc+set}" = set; then :
6887 $as_echo_n "(cached) " >&6
6888 else
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891 #include <stdlib.h>
6892 #include <stdarg.h>
6893 #include <string.h>
6894 #include <float.h>
6897 main ()
6901 return 0;
6903 _ACEOF
6904 if ac_fn_c_try_compile "$LINENO"; then :
6905 ac_cv_header_stdc=yes
6906 else
6907 ac_cv_header_stdc=no
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911 if test $ac_cv_header_stdc = yes; then
6912 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6915 #include <string.h>
6917 _ACEOF
6918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6919 $EGREP "memchr" >/dev/null 2>&1; then :
6921 else
6922 ac_cv_header_stdc=no
6924 rm -f conftest*
6928 if test $ac_cv_header_stdc = yes; then
6929 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6932 #include <stdlib.h>
6934 _ACEOF
6935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6936 $EGREP "free" >/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 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6947 if test "$cross_compiling" = yes; then :
6949 else
6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951 /* end confdefs.h. */
6952 #include <ctype.h>
6953 #include <stdlib.h>
6954 #if ((' ' & 0x0FF) == 0x020)
6955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6957 #else
6958 # define ISLOWER(c) \
6959 (('a' <= (c) && (c) <= 'i') \
6960 || ('j' <= (c) && (c) <= 'r') \
6961 || ('s' <= (c) && (c) <= 'z'))
6962 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6963 #endif
6965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6967 main ()
6969 int i;
6970 for (i = 0; i < 256; i++)
6971 if (XOR (islower (i), ISLOWER (i))
6972 || toupper (i) != TOUPPER (i))
6973 return 2;
6974 return 0;
6976 _ACEOF
6977 if ac_fn_c_try_run "$LINENO"; then :
6979 else
6980 ac_cv_header_stdc=no
6982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6983 conftest.$ac_objext conftest.beam conftest.$ac_ext
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6989 $as_echo "$ac_cv_header_stdc" >&6; }
6990 if test $ac_cv_header_stdc = yes; then
6992 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6996 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6997 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6998 inttypes.h stdint.h unistd.h
6999 do :
7000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7001 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7003 eval as_val=\$$as_ac_Header
7004 if test "x$as_val" = x""yes; then :
7005 cat >>confdefs.h <<_ACEOF
7006 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7007 _ACEOF
7011 done
7014 if test ${enable_cas:-no} = yes; then :
7016 # Check for gd
7019 # Check whether --with-gdlib-prefix was given.
7020 if test "${with_gdlib_prefix+set}" = set; then :
7021 withval=$with_gdlib_prefix;
7025 # Check whether --with-gdlib-config was given.
7026 if test "${with_gdlib_config+set}" = set; then :
7027 withval=$with_gdlib_config;
7031 GDLIB_VERSION=
7033 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7034 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7035 GDLIB_CONFIG_NAME=gdlib-config
7037 if test -n "$with_gdlib_config"; then :
7038 GDLIB_CONFIG_NAME="$with_gdlib_config"
7041 # deal with optional prefix
7042 if test -n "$with_gdlib_prefix"; then :
7043 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7046 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7047 if test -x "$GDLIB_CONFIG_NAME"; then :
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7050 $as_echo_n "checking for gdlib-config... " >&6; }
7051 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7053 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7055 else
7056 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7057 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7062 else
7063 case $GDLIB_CONFIG_PATH in
7064 [\\/]* | ?:[\\/]*)
7065 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7070 for as_dir in $as_dummy
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7080 done
7081 done
7082 IFS=$as_save_IFS
7084 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7086 esac
7088 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7089 if test -n "$GDLIB_CONFIG_PATH"; then
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7091 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7092 else
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094 $as_echo "no" >&6; }
7100 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7103 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7104 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7106 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7107 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7108 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7109 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7111 gdlib_ver_ok=
7112 if test $gdlib_config_major_version -gt 2; then
7113 gdlib_ver_ok=yes
7114 elif test $gdlib_config_major_version -eq 2; then
7116 if test $gdlib_config_minor_version -gt 0; then
7117 gdlib_ver_ok=yes
7118 elif test $gdlib_config_minor_version -eq 0; then
7119 if test $gdlib_config_micro_version -ge 0; then
7120 gdlib_ver_ok=yes
7129 if test -z "$gdlib_ver_ok"; then :
7131 if test -z "$GDLIB_VERSION"; then :
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7134 else
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7137 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7138 GDLIB_VERSION=
7142 else
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7145 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7146 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7147 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7148 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7149 mule_backup_CFLAGS="$CFLAGS"
7150 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7151 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7152 if test "x$ac_cv_header_gd_h" = x""yes; then :
7154 else
7155 GDLIB_VERSION=
7159 CFLAGS="$mule_backup_CFLAGS"
7165 if test -n "$GDLIB_VERSION"; then :
7167 CAS_DEFS="-D__GD__"
7168 GDLIB_LIBS="-lgd $GDLIB_LIBS"
7170 else
7171 CAS_DEFS=
7176 if test -z "$CAS_DEFS"; then :
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7178 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7179 Please check that gdlib-config is in your default path, check out
7180 LD_LIBRARY_PATH or equivalent variable.
7181 Or this might also be that your gdlib-config has other name.
7182 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7183 (replace /usr/bin/gdlib-config with a valid path to your
7184 gdlib-config).
7185 If you use compiled packages check if you have devel pack installed.
7186 To download the latest version check http://www.boutell.com/gd for
7187 sources." >&5
7188 $as_echo "$as_me: WARNING:
7189 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7190 Please check that gdlib-config is in your default path, check out
7191 LD_LIBRARY_PATH or equivalent variable.
7192 Or this might also be that your gdlib-config has other name.
7193 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7194 (replace /usr/bin/gdlib-config with a valid path to your
7195 gdlib-config).
7196 If you use compiled packages check if you have devel pack installed.
7197 To download the latest version check http://www.boutell.com/gd for
7198 sources." >&2;}
7199 _mule_warning_0=yes
7200 _mule_has_warnings=yes
7206 if test ${enable_webserver:-no} = yes; then :
7209 # Check whether --with-libpng-prefix was given.
7210 if test "${with_libpng_prefix+set}" = set; then :
7211 withval=$with_libpng_prefix;
7215 # Check whether --with-libpng-config was given.
7216 if test "${with_libpng_config+set}" = set; then :
7217 withval=$with_libpng_config;
7221 LIBPNG_VERSION=
7223 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
7224 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
7225 LIBPNG_CONFIG_NAME=libpng-config
7227 if test -n "$with_libpng_config"; then :
7228 LIBPNG_CONFIG_NAME="$with_libpng_config"
7231 # deal with optional prefix
7232 if test -n "$with_libpng_prefix"; then :
7233 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
7236 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
7237 if test -x "$LIBPNG_CONFIG_NAME"; then :
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
7240 $as_echo_n "checking for libpng-config... " >&6; }
7241 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7243 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7245 else
7246 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
7247 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 case $LIBPNG_CONFIG_PATH in
7254 [\\/]* | ?:[\\/]*)
7255 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
7260 for as_dir in $as_dummy
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7266 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 break 2
7270 done
7271 done
7272 IFS=$as_save_IFS
7274 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
7276 esac
7278 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
7279 if test -n "$LIBPNG_CONFIG_PATH"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7281 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7282 else
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7290 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
7293 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
7295 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
7297 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
7298 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7299 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7300 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7302 libpng_ver_ok=
7303 if test $libpng_config_major_version -gt 1; then
7304 libpng_ver_ok=yes
7305 elif test $libpng_config_major_version -eq 1; then
7307 if test $libpng_config_minor_version -gt 2; then
7308 libpng_ver_ok=yes
7309 elif test $libpng_config_minor_version -eq 2; then
7310 if test $libpng_config_micro_version -ge 0; then
7311 libpng_ver_ok=yes
7320 if test -z "$libpng_ver_ok"; then :
7322 if test -z "$LIBPNG_VERSION"; then :
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7325 else
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
7328 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
7329 LIBPNG_VERSION=
7333 else
7335 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
7336 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
7337 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
7339 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
7345 if test -n "$LIBPNG_VERSION"; then :
7346 AMULEWEB_DEFS="-DWITH_LIBPNG"
7347 else
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7350 libpng >= 1.2.0 not found.
7351 amuleweb will be compiled but file download progress bar images will
7352 NOT be generated." >&5
7353 $as_echo "$as_me: WARNING:
7354 libpng >= 1.2.0 not found.
7355 amuleweb will be compiled but file download progress bar images will
7356 NOT be generated." >&2;}
7357 _mule_warning_1=yes
7358 _mule_has_warnings=yes
7368 # Check for perl File::Copy
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
7370 $as_echo_n "checking for File::Copy... " >&6; }
7371 if perl -e "require File::Copy" 2>/dev/null; then :
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7373 $as_echo "ok" >&6; }
7374 else
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7376 File::Copy perl module is required by the mldonkey_importer script.
7377 If you want to use this script please install File::Copy from CPAN." >&5
7378 $as_echo "$as_me: WARNING:
7379 File::Copy perl module is required by the mldonkey_importer script.
7380 If you want to use this script please install File::Copy from CPAN." >&2;}
7381 _mule_warning_2=yes
7382 _mule_has_warnings=yes
7386 # Check if we need to install skins
7387 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
7388 INSTALL_SKINS=yes
7389 else
7390 INSTALL_SKINS=no
7393 # Check for GeoIP (required for IP2Country capability)
7394 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
7396 # Check whether --enable-geoip was given.
7397 if test "${enable_geoip+set}" = set; then :
7398 enableval=$enable_geoip;
7403 if test ${enable_geoip:-no} = yes; then :
7406 # Check whether --with-geoip-headers was given.
7407 if test "${with_geoip_headers+set}" = set; then :
7408 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
7412 # Check whether --with-geoip-lib was given.
7413 if test "${with_geoip_lib+set}" = set; then :
7414 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
7418 mule_backup_CPPFLAGS="$CPPFLAGS"
7419 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
7420 mule_backup_LDFLAGS="$LDFLAGS"
7421 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
7423 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
7424 if test "x$ac_cv_header_GeoIP_h" = x""yes; then :
7426 if test x$SYS = xwin32; then :
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
7429 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
7430 # Actually, we might not need any if GeoIP is linked as a .dll
7431 # - but that's even harder to check for
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7436 #include <GeoIP.h>
7437 #ifdef _WINSOCK2_H
7438 I do know it's not the best approach, but at least works with MinGW stock headers.
7439 (tested with w32api-3.12)
7440 #endif
7443 main ()
7447 return 0;
7450 _ACEOF
7451 if ac_fn_c_try_compile "$LINENO"; then :
7453 GEOIP_WINSOCK_LIB="-lwsock32"
7455 else
7457 GEOIP_WINSOCK_LIB="-lws2_32"
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
7462 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
7466 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
7467 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then :
7468 $as_echo_n "(cached) " >&6
7469 else
7470 ac_check_lib_save_LIBS=$LIBS
7471 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7475 /* Override any GCC internal prototype to avoid an error.
7476 Use char because int might match the return type of a GCC
7477 builtin and then its argument prototype would still apply. */
7478 #ifdef __cplusplus
7479 extern "C"
7480 #endif
7481 char GeoIP_open ();
7483 main ()
7485 return GeoIP_open ();
7487 return 0;
7489 _ACEOF
7490 if ac_fn_c_try_link "$LINENO"; then :
7491 ac_cv_lib_GeoIP_GeoIP_open=yes
7492 else
7493 ac_cv_lib_GeoIP_GeoIP_open=no
7495 rm -f core conftest.err conftest.$ac_objext \
7496 conftest$ac_exeext conftest.$ac_ext
7497 LIBS=$ac_check_lib_save_LIBS
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7500 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
7501 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = x""yes; then :
7504 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
7506 GEOIP_LIBS="-lGeoIP"
7507 if test x$SYS = xwin32; then :
7508 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
7510 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7512 # Check whether --with-geoip-static was given.
7513 if test "${with_geoip_static+set}" = set; then :
7514 withval=$with_geoip_static;
7515 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
7517 mule_backup_LIBS="$LIBS"
7518 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7523 #include <GeoIP.h>
7526 main ()
7529 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7532 return 0;
7535 _ACEOF
7536 if ac_fn_c_try_link "$LINENO"; then :
7538 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7540 else
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7543 Cannot link GeoIP statically, because your linker ($LD) does not
7544 support it." >&5
7545 $as_echo "$as_me: WARNING:
7546 Cannot link GeoIP statically, because your linker ($LD) does not
7547 support it." >&2;}
7548 _mule_warning_3=yes
7549 _mule_has_warnings=yes
7553 rm -f core conftest.err conftest.$ac_objext \
7554 conftest$ac_exeext conftest.$ac_ext
7555 LIBS="$mule_backup_LIBS"
7562 else
7564 enable_geoip=disabled
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7566 GeoIP support has been disabled because the GeoIP libraries were not
7567 found" >&5
7568 $as_echo "$as_me: WARNING:
7569 GeoIP support has been disabled because the GeoIP libraries were not
7570 found" >&2;}
7571 _mule_warning_4=yes
7572 _mule_has_warnings=yes
7578 else
7580 enable_geoip=disabled
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7582 GeoIP support has been disabled because the GeoIP header files were
7583 not found" >&5
7584 $as_echo "$as_me: WARNING:
7585 GeoIP support has been disabled because the GeoIP header files were
7586 not found" >&2;}
7587 _mule_warning_5=yes
7588 _mule_has_warnings=yes
7595 CPPFLAGS="$mule_backup_CPPFLAGS"
7596 LDFLAGS="$mule_backup_LDFLAGS"
7602 # Check for wx
7603 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 :
7606 # Check whether --with-wxdir was given.
7607 if test "${with_wxdir+set}" = set; then :
7608 withval=$with_wxdir; wx_config_name="$withval/wx-config"
7609 wx_config_args="--inplace"
7613 # Check whether --with-wx-config was given.
7614 if test "${with_wx_config+set}" = set; then :
7615 withval=$with_wx_config; wx_config_name="$withval"
7619 # Check whether --with-wx-prefix was given.
7620 if test "${with_wx_prefix+set}" = set; then :
7621 withval=$with_wx_prefix; wx_config_prefix="$withval"
7622 else
7623 wx_config_prefix=""
7627 # Check whether --with-wx-exec-prefix was given.
7628 if test "${with_wx_exec_prefix+set}" = set; then :
7629 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
7630 else
7631 wx_config_exec_prefix=""
7646 # Check whether --with-toolkit was given.
7647 if test "${with_toolkit+set}" = set; then :
7648 withval=$with_toolkit;
7649 else
7650 withval="auto"
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
7655 $as_echo_n "checking for the --with-toolkit option... " >&6; }
7656 if test "$withval" = "auto" ; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7658 $as_echo "will be automatically detected" >&6; }
7659 TOOLKIT="auto"
7660 else
7661 TOOLKIT="$withval"
7663 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7664 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7665 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7666 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7667 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
7668 "$TOOLKIT" != "osx_cocoa"; then
7669 as_fn_error "
7670 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7671 " "$LINENO" 5
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
7675 $as_echo "$TOOLKIT" >&6; }
7682 # Check whether --with-wxshared was given.
7683 if test "${with_wxshared+set}" = set; then :
7684 withval=$with_wxshared;
7685 else
7686 withval="auto"
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
7691 $as_echo_n "checking for the --with-wxshared option... " >&6; }
7692 if test "$withval" = "yes" ; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7694 $as_echo "yes" >&6; }
7695 WX_SHARED=1
7697 elif test "1" = "1" -a "$withval" = "no" ; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699 $as_echo "no" >&6; }
7700 WX_SHARED=0
7701 elif test "$withval" = "auto" ; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7703 $as_echo "will be automatically detected" >&6; }
7704 WX_SHARED="auto"
7705 else
7706 as_fn_error "
7707 Unrecognized option value (allowed values: yes, auto)
7708 " "$LINENO" 5
7715 # Check whether --with-wxdebug was given.
7716 if test "${with_wxdebug+set}" = set; then :
7717 withval=$with_wxdebug;
7718 else
7719 withval="auto"
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
7724 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
7725 if test "$withval" = "yes" ; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7727 $as_echo "yes" >&6; }
7728 WX_DEBUG=1
7730 elif test "1" = "1" -a "$withval" = "no" ; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7733 WX_DEBUG=0
7734 elif test "$withval" = "auto" ; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7736 $as_echo "will be automatically detected" >&6; }
7737 WX_DEBUG="auto"
7738 else
7739 as_fn_error "
7740 Unrecognized option value (allowed values: yes, auto)
7741 " "$LINENO" 5
7748 # Check whether --with-wxversion was given.
7749 if test "${with_wxversion+set}" = set; then :
7750 withval=$with_wxversion;
7751 else
7752 withval="auto"
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
7757 $as_echo_n "checking for the --with-wxversion option... " >&6; }
7758 if test "$withval" = "auto" ; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7760 $as_echo "will be automatically detected" >&6; }
7761 WX_VERSION="auto"
7762 else
7764 wx_requested_major_version=`echo $withval | \
7765 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7766 wx_requested_minor_version=`echo $withval | \
7767 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7769 if test "${#wx_requested_major_version}" != "1" -o \
7770 "${#wx_requested_minor_version}" != "1" ; then
7771 as_fn_error "
7772 Unrecognized option value (allowed values: auto, 2.8, 2.9)
7773 " "$LINENO" 5
7776 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_VERSION" >&5
7778 $as_echo "$WX_VERSION" >&6; }
7782 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7783 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7784 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7785 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7786 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7787 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7790 # Force using a static wxWidgets library if the executable is to be linked statically.
7791 if test ${enable_static:-no} = yes; then :
7792 WX_SHARED=0
7794 # Force using a unicode build of the library
7795 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 :
7796 WX_UNICODE=1
7798 DEBUG=$WX_DEBUG
7800 if test "$WX_SHARED" = "1" ; then
7801 WXCONFIG_FLAGS="--static=no "
7802 elif test "$WX_SHARED" = "0" ; then
7803 WXCONFIG_FLAGS="--static=yes "
7806 if test "$WX_DEBUG" = "1" ; then
7807 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7808 elif test "$WX_DEBUG" = "0" ; then
7809 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7812 if test "$WX_UNICODE" = "1" ; then
7813 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7814 elif test "$WX_UNICODE" = "0" ; then
7815 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7818 if test "$TOOLKIT" != "auto" ; then
7819 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7822 if test "$WX_VERSION" != "auto" ; then
7823 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7826 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7828 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7829 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7833 if test x${WX_CONFIG_NAME+set} != xset ; then
7834 WX_CONFIG_NAME=wx-config
7837 if test "x$wx_config_name" != x ; then
7838 WX_CONFIG_NAME="$wx_config_name"
7841 if test x$wx_config_exec_prefix != x ; then
7842 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7843 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7845 if test x$wx_config_prefix != x ; then
7846 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7847 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7849 if test "$cross_compiling" = "yes"; then
7850 wx_config_args="$wx_config_args --host=$host_alias"
7853 if test -x "$WX_CONFIG_NAME" ; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
7855 $as_echo_n "checking for wx-config... " >&6; }
7856 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
7858 $as_echo "$WX_CONFIG_PATH" >&6; }
7859 else
7860 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7861 set dummy $WX_CONFIG_NAME; ac_word=$2
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863 $as_echo_n "checking for $ac_word... " >&6; }
7864 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then :
7865 $as_echo_n "(cached) " >&6
7866 else
7867 case $WX_CONFIG_PATH in
7868 [\\/]* | ?:[\\/]*)
7869 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7874 for as_dir in $as_dummy
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7880 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 break 2
7884 done
7885 done
7886 IFS=$as_save_IFS
7888 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7890 esac
7892 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7893 if test -n "$WX_CONFIG_PATH"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
7895 $as_echo "$WX_CONFIG_PATH" >&6; }
7896 else
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7904 if test "$WX_CONFIG_PATH" != "no" ; then
7905 WX_VERSION_FULL=""
7907 min_wx_version=2.8.8
7908 if test -z "$WXCONFIG_FLAGS" ; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
7910 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
7911 else
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7913 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
7916 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7918 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7919 wx_config_major_version=`echo $WX_VERSION_FULL | \
7920 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7921 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7922 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7923 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7924 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7926 wx_requested_major_version=`echo $min_wx_version | \
7927 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7928 wx_requested_minor_version=`echo $min_wx_version | \
7929 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7930 wx_requested_micro_version=`echo $min_wx_version | \
7931 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7934 wx_ver_ok=""
7935 if test "x$WX_VERSION_FULL" != x ; then
7936 if test $wx_config_major_version -gt $wx_requested_major_version; then
7937 wx_ver_ok=yes
7938 else
7939 if test $wx_config_major_version -eq $wx_requested_major_version; then
7940 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7941 wx_ver_ok=yes
7942 else
7943 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7944 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7945 wx_ver_ok=yes
7954 if test -n "$wx_ver_ok"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION_FULL)" >&5
7957 $as_echo "yes (version $WX_VERSION_FULL)" >&6; }
7958 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7960 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7962 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7963 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7964 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7966 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7967 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7969 wxWin=1
7971 else
7973 if test "x$WX_VERSION_FULL" = x; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7976 else
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7978 $as_echo "no (version $WX_VERSION_FULL is not new enough)" >&6; }
7981 WX_CFLAGS=""
7982 WX_CPPFLAGS=""
7983 WX_CXXFLAGS=""
7984 WX_LIBS=""
7985 WX_RESCOMP=""
7987 if test ! -z "$WXCONFIG_FLAGS"; then
7989 wx_error_message="
7990 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7991 build with the following settings:
7992 $WXCONFIG_FLAGS
7993 but such build is not available.
7995 To see the wxWidgets builds available on this system, please use
7996 'wx-config --list' command. To use the default build, returned by
7997 'wx-config --selected-config', use the options with their 'auto'
7998 default values."
8002 wx_error_message="
8003 The requested wxWidgets build couldn't be found.
8004 $wx_error_message
8006 If you still get this error, then check that 'wx-config' is
8007 in path, the directory where wxWidgets libraries are installed
8008 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8009 or equivalent variable and wxWidgets version is 2.8.8 or above."
8011 as_fn_error "$wx_error_message" "$LINENO" 5
8014 else
8016 WX_CFLAGS=""
8017 WX_CPPFLAGS=""
8018 WX_CXXFLAGS=""
8019 WX_LIBS=""
8020 WX_RESCOMP=""
8035 WX_VERSION_MAJOR="$wx_config_major_version"
8036 WX_VERSION_MINOR="$wx_config_minor_version"
8040 if test "$wxWin" != 1; then :
8041 as_fn_error "
8042 wxWidgets must be installed on your system but wx-config
8043 script couldn't be found. Please check that wx-config is
8044 in path or specified by --with-wx-config=path flag, the
8045 directory where wxWidgets libraries are installed (returned
8046 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8047 equivalent variable and wxWidgets version is 2.8.8 or above.
8048 " "$LINENO" 5
8051 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8052 as_fn_error "
8053 This version of wxWidgets is known to not work with aMule.
8054 Please upgrade to a newer version.
8055 " "$LINENO" 5
8059 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8061 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8063 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8064 echo "[dbg] Using wx-config --selected-config"
8065 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8069 if test $WX_SHARED = "1"; then
8070 STATIC=0
8071 elif test $WX_SHARED = "0"; then
8072 STATIC=1
8073 elif test $WX_SHARED = "auto"; then
8074 STATIC="auto"
8078 if test "$UNICODE" = "auto" ; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8081 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8083 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8085 if test "$WX_UNICODE" != "0"; then
8086 WX_UNICODE=1
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8088 $as_echo "yes" >&6; }
8090 else
8091 WX_UNICODE=0
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8096 else
8098 WX_UNICODE=$UNICODE
8102 if test "$DEBUG" = "auto" ; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
8105 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
8107 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
8109 if test "$WX_DEBUG" != "0"; then
8110 WX_DEBUG=1
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8112 $as_echo "yes" >&6; }
8114 else
8115 WX_DEBUG=0
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8120 else
8122 WX_DEBUG=$DEBUG
8126 if test "$STATIC" = "auto" ; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
8129 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
8131 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
8133 if test "$WX_STATIC" != "0"; then
8134 WX_STATIC=1
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8136 $as_echo "yes" >&6; }
8138 else
8139 WX_STATIC=0
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8144 else
8146 WX_STATIC=$STATIC
8150 if test "$WX_STATIC" != "0"; then
8151 WX_SHARED=0
8152 else
8153 WX_SHARED=1
8160 if test "$TOOLKIT" = "auto" ; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
8163 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
8165 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
8166 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
8167 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
8168 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
8169 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
8170 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
8171 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
8172 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
8173 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
8174 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
8175 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
8177 WX_PORT="unknown"
8178 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
8179 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
8180 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
8181 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
8182 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
8183 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
8184 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
8185 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
8186 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
8187 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
8188 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
8191 if test "$WX_PORT" = "unknown" ; then
8192 as_fn_error "
8193 Cannot detect the currently installed wxWidgets port !
8194 Please check your 'wx-config --cxxflags'...
8195 " "$LINENO" 5
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
8199 $as_echo "$WX_PORT" >&6; }
8200 else
8202 if test -n "$TOOLKIT" ; then
8203 WX_PORT=$TOOLKIT
8204 else
8205 WX_PORT=$PORT
8211 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8212 echo "[dbg] Values of all WX_* options after final detection:"
8213 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8214 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8215 echo "[dbg] WX_SHARED: $WX_SHARED"
8216 echo "[dbg] WX_VERSION: $WX_VERSION"
8217 echo "[dbg] WX_PORT: $WX_PORT"
8220 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8221 as_fn_error "
8222 Cannot build shared library against a static build of wxWidgets !
8223 This error happens because the wxWidgets build which was selected
8224 has been detected as static while you asked to build $PACKAGE_NAME
8225 as shared library and this is not possible.
8226 Use the '--disable-shared' option to build $PACKAGE_NAME
8227 as static library or '--with-wxshared' to use wxWidgets as shared library.
8228 " "$LINENO" 5
8231 if test "$DEBUG" = "auto"; then
8232 DEBUG=$WX_DEBUG
8234 if test "$DEBUG" = "1"; then
8235 BUILD="debug"
8236 elif test "$DEBUG" = ""; then
8237 BUILD="release"
8240 if test "$UNICODE" = "auto"; then
8241 UNICODE=$WX_UNICODE
8243 if test "$SHARED" = "auto"; then
8244 SHARED=$WX_SHARED
8246 if test "$TOOLKIT" = "auto"; then
8247 TOOLKIT=$WX_PORT
8251 # We also need wxBase
8252 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8253 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
8254 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8256 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8260 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
8261 if test "${WX_PORT}" = base; then :
8262 as_fn_error "
8263 The selected components need a wxWidgets library with GUI,
8264 but your installation is base-only. Please install a GUI
8265 enabled version of wxWidgets and then retry.
8266 " "$LINENO" 5
8271 if test ${SYS:-unknown} = win32; then :
8272 if test -n "$ac_tool_prefix"; then
8273 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8274 set dummy ${ac_tool_prefix}windres; ac_word=$2
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8276 $as_echo_n "checking for $ac_word... " >&6; }
8277 if test "${ac_cv_prog_RC+set}" = set; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 if test -n "$RC"; then
8281 ac_cv_prog_RC="$RC" # Let the user override the test.
8282 else
8283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 for as_dir in $PATH
8286 IFS=$as_save_IFS
8287 test -z "$as_dir" && as_dir=.
8288 for ac_exec_ext in '' $ac_executable_extensions; do
8289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8290 ac_cv_prog_RC="${ac_tool_prefix}windres"
8291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8292 break 2
8294 done
8295 done
8296 IFS=$as_save_IFS
8300 RC=$ac_cv_prog_RC
8301 if test -n "$RC"; then
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
8303 $as_echo "$RC" >&6; }
8304 else
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8311 if test -z "$ac_cv_prog_RC"; then
8312 ac_ct_RC=$RC
8313 # Extract the first word of "windres", so it can be a program name with args.
8314 set dummy windres; ac_word=$2
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 $as_echo_n "checking for $ac_word... " >&6; }
8317 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 if test -n "$ac_ct_RC"; then
8321 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8322 else
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in $PATH
8326 IFS=$as_save_IFS
8327 test -z "$as_dir" && as_dir=.
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8330 ac_cv_prog_ac_ct_RC="windres"
8331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 break 2
8334 done
8335 done
8336 IFS=$as_save_IFS
8340 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8341 if test -n "$ac_ct_RC"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
8343 $as_echo "$ac_ct_RC" >&6; }
8344 else
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8349 if test "x$ac_ct_RC" = x; then
8350 RC=":"
8351 else
8352 case $cross_compiling:$ac_tool_warned in
8353 yes:)
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8356 ac_tool_warned=yes ;;
8357 esac
8358 RC=$ac_ct_RC
8360 else
8361 RC="$ac_cv_prog_RC"
8367 # Check for libupnp
8368 # Check whether --enable-upnp was given.
8369 if test "${enable_upnp+set}" = set; then :
8370 enableval=$enable_upnp;
8374 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
8376 else
8377 enable_upnp=no
8381 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8382 if test -n "$ac_tool_prefix"; then
8383 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8384 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386 $as_echo_n "checking for $ac_word... " >&6; }
8387 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 case $PKG_CONFIG in
8391 [\\/]* | ?:[\\/]*)
8392 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 for as_dir in $PATH
8398 IFS=$as_save_IFS
8399 test -z "$as_dir" && as_dir=.
8400 for ac_exec_ext in '' $ac_executable_extensions; do
8401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8402 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 break 2
8406 done
8407 done
8408 IFS=$as_save_IFS
8411 esac
8413 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8414 if test -n "$PKG_CONFIG"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8416 $as_echo "$PKG_CONFIG" >&6; }
8417 else
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8424 if test -z "$ac_cv_path_PKG_CONFIG"; then
8425 ac_pt_PKG_CONFIG=$PKG_CONFIG
8426 # Extract the first word of "pkg-config", so it can be a program name with args.
8427 set dummy pkg-config; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 case $ac_pt_PKG_CONFIG in
8434 [\\/]* | ?:[\\/]*)
8435 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 for as_dir in $PATH
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8445 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 break 2
8449 done
8450 done
8451 IFS=$as_save_IFS
8454 esac
8456 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8457 if test -n "$ac_pt_PKG_CONFIG"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8459 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8460 else
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 $as_echo "no" >&6; }
8465 if test "x$ac_pt_PKG_CONFIG" = x; then
8466 PKG_CONFIG=""
8467 else
8468 case $cross_compiling:$ac_tool_warned in
8469 yes:)
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8472 ac_tool_warned=yes ;;
8473 esac
8474 PKG_CONFIG=$ac_pt_PKG_CONFIG
8476 else
8477 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8481 if test -n "$PKG_CONFIG"; then
8482 _pkg_min_version=0.9.0
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8484 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8485 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8487 $as_echo "yes" >&6; }
8488 else
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8490 $as_echo "no" >&6; }
8491 PKG_CONFIG=""
8495 if test ${enable_upnp:-yes} = yes; then :
8499 # Check whether --with-libupnp-prefix was given.
8500 if test "${with_libupnp_prefix+set}" = set; then :
8501 withval=$with_libupnp_prefix; export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8505 if test $cross_compiling = no; then :
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
8508 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
8509 if test -n "$PKG_CONFIG"; then :
8511 if $PKG_CONFIG libupnp --exists; then :
8513 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8514 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
8516 result=yes
8517 resultstr=" (version $LIBUPNP_VERSION)"
8518 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8519 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8520 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8521 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8522 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8524 else
8526 result=no
8527 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8531 else
8533 result=no
8534 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8538 else
8540 result=no
8541 resultstr=" (pkg-config not found)"
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8545 $as_echo "$result$resultstr" >&6; }
8546 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8548 else
8550 result=no
8551 libupnp_error="cross compiling"
8555 if test ${result:-no} = yes; then :
8556 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8557 else
8558 enable_upnp=disabled
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8560 UPnP code has been disabled because ${libupnp_error}." >&5
8561 $as_echo "$as_me: WARNING:
8562 UPnP code has been disabled because ${libupnp_error}." >&2;}
8563 _mule_warning_6=yes
8564 _mule_has_warnings=yes
8573 # Check for Crypto++
8574 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
8577 # Check whether --with-crypto-prefix was given.
8578 if test "${with_crypto_prefix+set}" = set; then :
8579 withval=$with_crypto_prefix;
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
8584 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
8586 cryptopp_file_with_version="cryptlib.h"
8588 CRYPTOPP_STYLE="unknown"
8589 CRYPTOPP_LIB_NAME="unknown"
8590 cryptopp_includedir="unknown"
8591 CRYPTOPP_INCLUDE_PREFIX="unknown"
8592 cryptopp_libdir="unknown"
8594 if test -n "$with_crypto_prefix"; then :
8596 CRYPTOPP_PREFIX="$with_crypto_prefix"
8597 # Find the Cryptopp header in the user-provided location
8598 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8600 CRYPTOPP_STYLE="sources"
8601 CRYPTOPP_LIB_NAME="cryptopp"
8602 cryptopp_includedir=
8603 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8604 cryptopp_libdir=
8606 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8608 CRYPTOPP_STYLE="installed"
8609 CRYPTOPP_LIB_NAME="cryptopp"
8610 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8611 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8612 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8614 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8616 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8617 CRYPTOPP_STYLE="gentoo_debian"
8618 CRYPTOPP_LIB_NAME="crypto++"
8619 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8620 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8621 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8626 else
8628 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8629 # Find the Cryptopp header in system locations
8630 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8632 CRYPTOPP_STYLE="sources"
8633 CRYPTOPP_LIB_NAME="cryptopp"
8634 cryptopp_includedir=
8635 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8636 cryptopp_libdir=
8637 break
8639 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8641 CRYPTOPP_STYLE="installed"
8642 CRYPTOPP_LIB_NAME="cryptopp"
8643 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8644 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8645 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8646 break
8648 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8650 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8651 CRYPTOPP_STYLE="gentoo_debian"
8652 CRYPTOPP_LIB_NAME="crypto++"
8653 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8654 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8655 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8656 break
8660 done
8664 if test $CRYPTOPP_STYLE = "unknown"; then :
8665 result=no; resultstr=""
8666 else
8668 # Find out the crypto++ version and check against the minimum required
8669 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8670 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8671 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8672 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8674 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
8676 result=yes
8677 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8678 if test -n "$cryptopp_includedir"; then :
8679 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8680 else
8681 CRYPTOPP_CPPFLAGS=
8683 if test -n "$cryptopp_libdir"; then :
8685 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8686 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8688 else
8690 CRYPTOPP_LDFLAGS=
8691 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8695 cat >>confdefs.h <<_ACEOF
8696 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8697 _ACEOF
8700 else
8702 result=no
8703 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8710 $as_echo "$result$resultstr" >&6; }
8712 if test ${result:-no} = yes; then :
8714 # Check for CryptoPP >= 5.5
8715 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
8716 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8719 else
8721 as_fn_error "
8722 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8723 Please try again with --with-crypto-prefix=/my_crypto_prefix
8724 (replace /my_crypto_prefix with a valid path to your crypto++
8725 installation directory)." "$LINENO" 5
8734 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 :
8735 ac_ext=cpp
8736 ac_cpp='$CXXCPP $CPPFLAGS'
8737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're using the GNU C++ library" >&5
8743 $as_echo_n "checking if we're using the GNU C++ library... " >&6; }
8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745 /* end confdefs.h. */
8748 #include <string>
8749 #ifndef __GLIBCXX__
8750 #error Non-GNU C++ library found.
8751 #endif
8754 _ACEOF
8755 if ac_fn_cxx_try_cpp "$LINENO"; then :
8756 GLIBCXX=yes
8757 else
8758 GLIBCXX=no
8760 rm -f conftest.err conftest.$ac_ext
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIBCXX" >&5
8762 $as_echo "$GLIBCXX" >&6; }
8764 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
8766 mule_backup_CPPFLAGS="$CPPFLAGS"
8767 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
8770 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8775 #include <wx/wx.h>
8776 #include <wx/filefn.h>
8777 #ifndef wxHAS_LARGE_FILES
8778 #error No LargeFile support!
8779 #endif
8782 _ACEOF
8783 if ac_fn_cxx_try_cpp "$LINENO"; then :
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8786 $as_echo "yes" >&6; }
8788 else
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791 $as_echo "no" >&6; }
8792 as_fn_error "
8793 Support for large files in wxWidgets is required by aMule.
8794 To continue you must recompile wxWidgets with support for
8795 large files enabled." "$LINENO" 5
8798 rm -f conftest.err conftest.$ac_ext
8800 CPPFLAGS="$mule_backup_CPPFLAGS"
8804 # Check if the compiler is broken, wrt. exceptions.
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
8807 $as_echo_n "checking for exception-handling... " >&6; }
8808 if test "$cross_compiling" = yes; then :
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
8811 $as_echo "undeterminable" >&6; }
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8813 Cross-compilation detected, so exception handling cannot be tested.
8814 Note that broken exception handling in your compiler may lead to
8815 unexpected crashes." >&5
8816 $as_echo "$as_me: WARNING:
8817 Cross-compilation detected, so exception handling cannot be tested.
8818 Note that broken exception handling in your compiler may lead to
8819 unexpected crashes." >&2;}
8820 _mule_warning_7=yes
8821 _mule_has_warnings=yes
8824 else
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8830 main ()
8833 try {
8834 throw 1;
8835 } catch (int) {
8836 return 0;
8838 return 1;
8841 return 0;
8844 _ACEOF
8845 if ac_fn_cxx_try_run "$LINENO"; then :
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8848 $as_echo "yes" >&6; }
8850 else
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853 $as_echo "no" >&6; }
8854 as_fn_error "Exception handling does not work. Broken compiler?" "$LINENO" 5
8857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8858 conftest.$ac_objext conftest.beam conftest.$ac_ext
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
8865 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8870 #include <cxxabi.h>
8873 main ()
8876 int status;
8877 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8878 std::type_info *ti = abi::__cxa_current_exception_type();
8881 return 0;
8884 _ACEOF
8885 if ac_fn_cxx_try_link "$LINENO"; then :
8888 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8891 $as_echo "yes" >&6; }
8893 else
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896 $as_echo "no" >&6; }
8899 rm -f core conftest.err conftest.$ac_objext \
8900 conftest$ac_exeext conftest.$ac_ext
8902 ac_ext=c
8903 ac_cpp='$CPP $CPPFLAGS'
8904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8911 # Ok, we have all needed libs, now checking for other stuff
8912 if test "$LEX" = "flex"; then :
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
8915 $as_echo_n "checking for extended flex capabilities... " >&6; }
8917 extended_flex=`flex --help | grep header-file`
8918 if test -n "$extended_flex"; then :
8919 HAVE_FLEX_EXTENDED=yes
8920 else
8921 HAVE_FLEX_EXTENDED=no
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
8924 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
8926 if test $HAVE_FLEX_EXTENDED = no; then :
8927 { $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
8928 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8931 else
8932 HAVE_FLEX_EXTENDED=no
8935 # Flush standard test results for speeding cache
8936 cat >confcache <<\_ACEOF
8937 # This file is a shell script that caches the results of configure
8938 # tests run on this system so they can be shared between configure
8939 # scripts and configure runs, see configure's option --config-cache.
8940 # It is not useful on other systems. If it contains results you don't
8941 # want to keep, you may remove or edit it.
8943 # config.status only pays attention to the cache file if you give it
8944 # the --recheck option to rerun configure.
8946 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8947 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8948 # following values.
8950 _ACEOF
8952 # The following way of writing the cache mishandles newlines in values,
8953 # but we know of no workaround that is simple, portable, and efficient.
8954 # So, we kill variables containing newlines.
8955 # Ultrix sh set writes to stderr and can't be redirected directly,
8956 # and sets the high bit in the cache file unless we assign to the vars.
8958 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8959 eval ac_val=\$$ac_var
8960 case $ac_val in #(
8961 *${as_nl}*)
8962 case $ac_var in #(
8963 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8964 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8965 esac
8966 case $ac_var in #(
8967 _ | IFS | as_nl) ;; #(
8968 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8969 *) { eval $ac_var=; unset $ac_var;} ;;
8970 esac ;;
8971 esac
8972 done
8974 (set) 2>&1 |
8975 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8976 *${as_nl}ac_space=\ *)
8977 # `set' does not quote correctly, so add quotes: double-quote
8978 # substitution turns \\\\ into \\, and sed turns \\ into \.
8979 sed -n \
8980 "s/'/'\\\\''/g;
8981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8982 ;; #(
8984 # `set' quotes correctly as required by POSIX, so do not add quotes.
8985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8987 esac |
8988 sort
8990 sed '
8991 /^ac_cv_env_/b end
8992 t clear
8993 :clear
8994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8995 t end
8996 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8997 :end' >>confcache
8998 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8999 if test -w "$cache_file"; then
9000 test "x$cache_file" != "x/dev/null" &&
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9002 $as_echo "$as_me: updating cache $cache_file" >&6;}
9003 cat confcache >$cache_file
9004 else
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9006 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9009 rm -f confcache
9011 # Checks for header files.
9012 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9013 # for constant arguments. Useless!
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9015 $as_echo_n "checking for working alloca.h... " >&6; }
9016 if test "${ac_cv_working_alloca_h+set}" = set; then :
9017 $as_echo_n "(cached) " >&6
9018 else
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9021 #include <alloca.h>
9023 main ()
9025 char *p = (char *) alloca (2 * sizeof (int));
9026 if (p) return 0;
9028 return 0;
9030 _ACEOF
9031 if ac_fn_c_try_link "$LINENO"; then :
9032 ac_cv_working_alloca_h=yes
9033 else
9034 ac_cv_working_alloca_h=no
9036 rm -f core conftest.err conftest.$ac_objext \
9037 conftest$ac_exeext conftest.$ac_ext
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9040 $as_echo "$ac_cv_working_alloca_h" >&6; }
9041 if test $ac_cv_working_alloca_h = yes; then
9043 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9048 $as_echo_n "checking for alloca... " >&6; }
9049 if test "${ac_cv_func_alloca_works+set}" = set; then :
9050 $as_echo_n "(cached) " >&6
9051 else
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9054 #ifdef __GNUC__
9055 # define alloca __builtin_alloca
9056 #else
9057 # ifdef _MSC_VER
9058 # include <malloc.h>
9059 # define alloca _alloca
9060 # else
9061 # ifdef HAVE_ALLOCA_H
9062 # include <alloca.h>
9063 # else
9064 # ifdef _AIX
9065 #pragma alloca
9066 # else
9067 # ifndef alloca /* predefined by HP cc +Olibcalls */
9068 char *alloca ();
9069 # endif
9070 # endif
9071 # endif
9072 # endif
9073 #endif
9076 main ()
9078 char *p = (char *) alloca (1);
9079 if (p) return 0;
9081 return 0;
9083 _ACEOF
9084 if ac_fn_c_try_link "$LINENO"; then :
9085 ac_cv_func_alloca_works=yes
9086 else
9087 ac_cv_func_alloca_works=no
9089 rm -f core conftest.err conftest.$ac_objext \
9090 conftest$ac_exeext conftest.$ac_ext
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9093 $as_echo "$ac_cv_func_alloca_works" >&6; }
9095 if test $ac_cv_func_alloca_works = yes; then
9097 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9099 else
9100 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9101 # that cause trouble. Some versions do not even contain alloca or
9102 # contain a buggy version. If you still want to use their alloca,
9103 # use ar to extract alloca.o from them instead of compiling alloca.c.
9105 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9107 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9111 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9112 if test "${ac_cv_os_cray+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
9114 else
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9117 #if defined CRAY && ! defined CRAY2
9118 webecray
9119 #else
9120 wenotbecray
9121 #endif
9123 _ACEOF
9124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9125 $EGREP "webecray" >/dev/null 2>&1; then :
9126 ac_cv_os_cray=yes
9127 else
9128 ac_cv_os_cray=no
9130 rm -f conftest*
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9134 $as_echo "$ac_cv_os_cray" >&6; }
9135 if test $ac_cv_os_cray = yes; then
9136 for ac_func in _getb67 GETB67 getb67; do
9137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9138 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9139 eval as_val=\$$as_ac_var
9140 if test "x$as_val" = x""yes; then :
9142 cat >>confdefs.h <<_ACEOF
9143 #define CRAY_STACKSEG_END $ac_func
9144 _ACEOF
9146 break
9149 done
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9153 $as_echo_n "checking stack direction for C alloca... " >&6; }
9154 if test "${ac_cv_c_stack_direction+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 if test "$cross_compiling" = yes; then :
9158 ac_cv_c_stack_direction=0
9159 else
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9162 $ac_includes_default
9164 find_stack_direction ()
9166 static char *addr = 0;
9167 auto char dummy;
9168 if (addr == 0)
9170 addr = &dummy;
9171 return find_stack_direction ();
9173 else
9174 return (&dummy > addr) ? 1 : -1;
9178 main ()
9180 return find_stack_direction () < 0;
9182 _ACEOF
9183 if ac_fn_c_try_run "$LINENO"; then :
9184 ac_cv_c_stack_direction=1
9185 else
9186 ac_cv_c_stack_direction=-1
9188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9189 conftest.$ac_objext conftest.beam conftest.$ac_ext
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9194 $as_echo "$ac_cv_c_stack_direction" >&6; }
9195 cat >>confdefs.h <<_ACEOF
9196 #define STACK_DIRECTION $ac_cv_c_stack_direction
9197 _ACEOF
9202 ac_header_dirent=no
9203 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9204 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9206 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9208 $as_echo_n "(cached) " >&6
9209 else
9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9212 #include <sys/types.h>
9213 #include <$ac_hdr>
9216 main ()
9218 if ((DIR *) 0)
9219 return 0;
9221 return 0;
9223 _ACEOF
9224 if ac_fn_c_try_compile "$LINENO"; then :
9225 eval "$as_ac_Header=yes"
9226 else
9227 eval "$as_ac_Header=no"
9229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9231 eval ac_res=\$$as_ac_Header
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9233 $as_echo "$ac_res" >&6; }
9234 eval as_val=\$$as_ac_Header
9235 if test "x$as_val" = x""yes; then :
9236 cat >>confdefs.h <<_ACEOF
9237 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9238 _ACEOF
9240 ac_header_dirent=$ac_hdr; break
9243 done
9244 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9245 if test $ac_header_dirent = dirent.h; then
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9247 $as_echo_n "checking for library containing opendir... " >&6; }
9248 if test "${ac_cv_search_opendir+set}" = set; then :
9249 $as_echo_n "(cached) " >&6
9250 else
9251 ac_func_search_save_LIBS=$LIBS
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9255 /* Override any GCC internal prototype to avoid an error.
9256 Use char because int might match the return type of a GCC
9257 builtin and then its argument prototype would still apply. */
9258 #ifdef __cplusplus
9259 extern "C"
9260 #endif
9261 char opendir ();
9263 main ()
9265 return opendir ();
9267 return 0;
9269 _ACEOF
9270 for ac_lib in '' dir; do
9271 if test -z "$ac_lib"; then
9272 ac_res="none required"
9273 else
9274 ac_res=-l$ac_lib
9275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9277 if ac_fn_c_try_link "$LINENO"; then :
9278 ac_cv_search_opendir=$ac_res
9280 rm -f core conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext
9282 if test "${ac_cv_search_opendir+set}" = set; then :
9283 break
9285 done
9286 if test "${ac_cv_search_opendir+set}" = set; then :
9288 else
9289 ac_cv_search_opendir=no
9291 rm conftest.$ac_ext
9292 LIBS=$ac_func_search_save_LIBS
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9295 $as_echo "$ac_cv_search_opendir" >&6; }
9296 ac_res=$ac_cv_search_opendir
9297 if test "$ac_res" != no; then :
9298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9302 else
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9304 $as_echo_n "checking for library containing opendir... " >&6; }
9305 if test "${ac_cv_search_opendir+set}" = set; then :
9306 $as_echo_n "(cached) " >&6
9307 else
9308 ac_func_search_save_LIBS=$LIBS
9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9312 /* Override any GCC internal prototype to avoid an error.
9313 Use char because int might match the return type of a GCC
9314 builtin and then its argument prototype would still apply. */
9315 #ifdef __cplusplus
9316 extern "C"
9317 #endif
9318 char opendir ();
9320 main ()
9322 return opendir ();
9324 return 0;
9326 _ACEOF
9327 for ac_lib in '' x; do
9328 if test -z "$ac_lib"; then
9329 ac_res="none required"
9330 else
9331 ac_res=-l$ac_lib
9332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9334 if ac_fn_c_try_link "$LINENO"; then :
9335 ac_cv_search_opendir=$ac_res
9337 rm -f core conftest.err conftest.$ac_objext \
9338 conftest$ac_exeext
9339 if test "${ac_cv_search_opendir+set}" = set; then :
9340 break
9342 done
9343 if test "${ac_cv_search_opendir+set}" = set; then :
9345 else
9346 ac_cv_search_opendir=no
9348 rm conftest.$ac_ext
9349 LIBS=$ac_func_search_save_LIBS
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9352 $as_echo "$ac_cv_search_opendir" >&6; }
9353 ac_res=$ac_cv_search_opendir
9354 if test "$ac_res" != no; then :
9355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9362 $as_echo_n "checking for ANSI C header files... " >&6; }
9363 if test "${ac_cv_header_stdc+set}" = set; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 #include <stdlib.h>
9369 #include <stdarg.h>
9370 #include <string.h>
9371 #include <float.h>
9374 main ()
9378 return 0;
9380 _ACEOF
9381 if ac_fn_c_try_compile "$LINENO"; then :
9382 ac_cv_header_stdc=yes
9383 else
9384 ac_cv_header_stdc=no
9386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9388 if test $ac_cv_header_stdc = yes; then
9389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391 /* end confdefs.h. */
9392 #include <string.h>
9394 _ACEOF
9395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9396 $EGREP "memchr" >/dev/null 2>&1; then :
9398 else
9399 ac_cv_header_stdc=no
9401 rm -f conftest*
9405 if test $ac_cv_header_stdc = yes; then
9406 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9409 #include <stdlib.h>
9411 _ACEOF
9412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9413 $EGREP "free" >/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 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9424 if test "$cross_compiling" = yes; then :
9426 else
9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428 /* end confdefs.h. */
9429 #include <ctype.h>
9430 #include <stdlib.h>
9431 #if ((' ' & 0x0FF) == 0x020)
9432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9434 #else
9435 # define ISLOWER(c) \
9436 (('a' <= (c) && (c) <= 'i') \
9437 || ('j' <= (c) && (c) <= 'r') \
9438 || ('s' <= (c) && (c) <= 'z'))
9439 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9440 #endif
9442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9444 main ()
9446 int i;
9447 for (i = 0; i < 256; i++)
9448 if (XOR (islower (i), ISLOWER (i))
9449 || toupper (i) != TOUPPER (i))
9450 return 2;
9451 return 0;
9453 _ACEOF
9454 if ac_fn_c_try_run "$LINENO"; then :
9456 else
9457 ac_cv_header_stdc=no
9459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9460 conftest.$ac_objext conftest.beam conftest.$ac_ext
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9466 $as_echo "$ac_cv_header_stdc" >&6; }
9467 if test $ac_cv_header_stdc = yes; then
9469 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9473 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
9474 do :
9475 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9476 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9477 eval as_val=\$$as_ac_Header
9478 if test "x$as_val" = x""yes; then :
9479 cat >>confdefs.h <<_ACEOF
9480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9481 _ACEOF
9485 done
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9488 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9489 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h. */
9494 #include <sys/types.h>
9495 #include <sys/wait.h>
9496 #ifndef WEXITSTATUS
9497 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9498 #endif
9499 #ifndef WIFEXITED
9500 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9501 #endif
9504 main ()
9506 int s;
9507 wait (&s);
9508 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9510 return 0;
9512 _ACEOF
9513 if ac_fn_c_try_compile "$LINENO"; then :
9514 ac_cv_header_sys_wait_h=yes
9515 else
9516 ac_cv_header_sys_wait_h=no
9518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9521 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9522 if test $ac_cv_header_sys_wait_h = yes; then
9524 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9529 # Checks for typedefs, structures, and compiler characteristics.
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9531 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9532 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9533 $as_echo_n "(cached) " >&6
9534 else
9535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h. */
9538 #include <stdbool.h>
9539 #ifndef bool
9540 "error: bool is not defined"
9541 #endif
9542 #ifndef false
9543 "error: false is not defined"
9544 #endif
9545 #if false
9546 "error: false is not 0"
9547 #endif
9548 #ifndef true
9549 "error: true is not defined"
9550 #endif
9551 #if true != 1
9552 "error: true is not 1"
9553 #endif
9554 #ifndef __bool_true_false_are_defined
9555 "error: __bool_true_false_are_defined is not defined"
9556 #endif
9558 struct s { _Bool s: 1; _Bool t; } s;
9560 char a[true == 1 ? 1 : -1];
9561 char b[false == 0 ? 1 : -1];
9562 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9563 char d[(bool) 0.5 == true ? 1 : -1];
9564 bool e = &s;
9565 char f[(_Bool) 0.0 == false ? 1 : -1];
9566 char g[true];
9567 char h[sizeof (_Bool)];
9568 char i[sizeof s.t];
9569 enum { j = false, k = true, l = false * true, m = true * 256 };
9570 /* The following fails for
9571 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9572 _Bool n[m];
9573 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9574 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9575 # if defined __xlc__ || defined __GNUC__
9576 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9577 reported by James Lemley on 2005-10-05; see
9578 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9579 This test is not quite right, since xlc is allowed to
9580 reject this program, as the initializer for xlcbug is
9581 not one of the forms that C requires support for.
9582 However, doing the test right would require a runtime
9583 test, and that would make cross-compilation harder.
9584 Let us hope that IBM fixes the xlc bug, and also adds
9585 support for this kind of constant expression. In the
9586 meantime, this test will reject xlc, which is OK, since
9587 our stdbool.h substitute should suffice. We also test
9588 this with GCC, where it should work, to detect more
9589 quickly whether someone messes up the test in the
9590 future. */
9591 char digs[] = "0123456789";
9592 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9593 # endif
9594 /* Catch a bug in an HP-UX C compiler. See
9595 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9596 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9598 _Bool q = true;
9599 _Bool *pq = &q;
9602 main ()
9605 *pq |= q;
9606 *pq |= ! q;
9607 /* Refer to every declared value, to avoid compiler optimizations. */
9608 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9609 + !m + !n + !o + !p + !q + !pq);
9612 return 0;
9614 _ACEOF
9615 if ac_fn_c_try_compile "$LINENO"; then :
9616 ac_cv_header_stdbool_h=yes
9617 else
9618 ac_cv_header_stdbool_h=no
9620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9623 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9624 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9625 if test "x$ac_cv_type__Bool" = x""yes; then :
9627 cat >>confdefs.h <<_ACEOF
9628 #define HAVE__BOOL 1
9629 _ACEOF
9634 if test $ac_cv_header_stdbool_h = yes; then
9636 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9641 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9642 if test "${ac_cv_c_const+set}" = set; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9649 main ()
9651 /* FIXME: Include the comments suggested by Paul. */
9652 #ifndef __cplusplus
9653 /* Ultrix mips cc rejects this. */
9654 typedef int charset[2];
9655 const charset cs;
9656 /* SunOS 4.1.1 cc rejects this. */
9657 char const *const *pcpcc;
9658 char **ppc;
9659 /* NEC SVR4.0.2 mips cc rejects this. */
9660 struct point {int x, y;};
9661 static struct point const zero = {0,0};
9662 /* AIX XL C 1.02.0.0 rejects this.
9663 It does not let you subtract one const X* pointer from another in
9664 an arm of an if-expression whose if-part is not a constant
9665 expression */
9666 const char *g = "string";
9667 pcpcc = &g + (g ? g-g : 0);
9668 /* HPUX 7.0 cc rejects these. */
9669 ++pcpcc;
9670 ppc = (char**) pcpcc;
9671 pcpcc = (char const *const *) ppc;
9672 { /* SCO 3.2v4 cc rejects this. */
9673 char *t;
9674 char const *s = 0 ? (char *) 0 : (char const *) 0;
9676 *t++ = 0;
9677 if (s) return 0;
9679 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9680 int x[] = {25, 17};
9681 const int *foo = &x[0];
9682 ++foo;
9684 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9685 typedef const int *iptr;
9686 iptr p = 0;
9687 ++p;
9689 { /* AIX XL C 1.02.0.0 rejects this saying
9690 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9691 struct s { int j; const int *ap[3]; };
9692 struct s *b; b->j = 5;
9694 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9695 const int foo = 10;
9696 if (!foo) return 0;
9698 return !cs[0] && !zero.x;
9699 #endif
9702 return 0;
9704 _ACEOF
9705 if ac_fn_c_try_compile "$LINENO"; then :
9706 ac_cv_c_const=yes
9707 else
9708 ac_cv_c_const=no
9710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9713 $as_echo "$ac_cv_c_const" >&6; }
9714 if test $ac_cv_c_const = no; then
9716 $as_echo "#define const /**/" >>confdefs.h
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9721 $as_echo_n "checking for inline... " >&6; }
9722 if test "${ac_cv_c_inline+set}" = set; then :
9723 $as_echo_n "(cached) " >&6
9724 else
9725 ac_cv_c_inline=no
9726 for ac_kw in inline __inline__ __inline; do
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9729 #ifndef __cplusplus
9730 typedef int foo_t;
9731 static $ac_kw foo_t static_foo () {return 0; }
9732 $ac_kw foo_t foo () {return 0; }
9733 #endif
9735 _ACEOF
9736 if ac_fn_c_try_compile "$LINENO"; then :
9737 ac_cv_c_inline=$ac_kw
9739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9740 test "$ac_cv_c_inline" != no && break
9741 done
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9745 $as_echo "$ac_cv_c_inline" >&6; }
9747 case $ac_cv_c_inline in
9748 inline | yes) ;;
9750 case $ac_cv_c_inline in
9751 no) ac_val=;;
9752 *) ac_val=$ac_cv_c_inline;;
9753 esac
9754 cat >>confdefs.h <<_ACEOF
9755 #ifndef __cplusplus
9756 #define inline $ac_val
9757 #endif
9758 _ACEOF
9760 esac
9762 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9763 if test "x$ac_cv_type_mode_t" = x""yes; then :
9765 else
9767 cat >>confdefs.h <<_ACEOF
9768 #define mode_t int
9769 _ACEOF
9773 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9774 if test "x$ac_cv_type_off_t" = x""yes; then :
9776 else
9778 cat >>confdefs.h <<_ACEOF
9779 #define off_t long int
9780 _ACEOF
9784 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9785 if test "x$ac_cv_type_size_t" = x""yes; then :
9787 else
9789 cat >>confdefs.h <<_ACEOF
9790 #define size_t unsigned int
9791 _ACEOF
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9796 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9797 if test "${ac_cv_header_time+set}" = set; then :
9798 $as_echo_n "(cached) " >&6
9799 else
9800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9801 /* end confdefs.h. */
9802 #include <sys/types.h>
9803 #include <sys/time.h>
9804 #include <time.h>
9807 main ()
9809 if ((struct tm *) 0)
9810 return 0;
9812 return 0;
9814 _ACEOF
9815 if ac_fn_c_try_compile "$LINENO"; then :
9816 ac_cv_header_time=yes
9817 else
9818 ac_cv_header_time=no
9820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9823 $as_echo "$ac_cv_header_time" >&6; }
9824 if test $ac_cv_header_time = yes; then
9826 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9831 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9832 if test "${ac_cv_struct_tm+set}" = set; then :
9833 $as_echo_n "(cached) " >&6
9834 else
9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836 /* end confdefs.h. */
9837 #include <sys/types.h>
9838 #include <time.h>
9841 main ()
9843 struct tm tm;
9844 int *p = &tm.tm_sec;
9845 return !p;
9847 return 0;
9849 _ACEOF
9850 if ac_fn_c_try_compile "$LINENO"; then :
9851 ac_cv_struct_tm=time.h
9852 else
9853 ac_cv_struct_tm=sys/time.h
9855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9858 $as_echo "$ac_cv_struct_tm" >&6; }
9859 if test $ac_cv_struct_tm = sys/time.h; then
9861 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9866 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9867 if test "${ac_cv_type_uid_t+set}" = set; then :
9868 $as_echo_n "(cached) " >&6
9869 else
9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9872 #include <sys/types.h>
9874 _ACEOF
9875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9876 $EGREP "uid_t" >/dev/null 2>&1; then :
9877 ac_cv_type_uid_t=yes
9878 else
9879 ac_cv_type_uid_t=no
9881 rm -f conftest*
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9885 $as_echo "$ac_cv_type_uid_t" >&6; }
9886 if test $ac_cv_type_uid_t = no; then
9888 $as_echo "#define uid_t int" >>confdefs.h
9891 $as_echo "#define gid_t int" >>confdefs.h
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9896 $as_echo_n "checking for working volatile... " >&6; }
9897 if test "${ac_cv_c_volatile+set}" = set; then :
9898 $as_echo_n "(cached) " >&6
9899 else
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9904 main ()
9907 volatile int x;
9908 int * volatile y = (int *) 0;
9909 return !x && !y;
9911 return 0;
9913 _ACEOF
9914 if ac_fn_c_try_compile "$LINENO"; then :
9915 ac_cv_c_volatile=yes
9916 else
9917 ac_cv_c_volatile=no
9919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9922 $as_echo "$ac_cv_c_volatile" >&6; }
9923 if test $ac_cv_c_volatile = no; then
9925 $as_echo "#define volatile /**/" >>confdefs.h
9929 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
9930 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
9932 cat >>confdefs.h <<_ACEOF
9933 #define HAVE_PTRDIFF_T 1
9934 _ACEOF
9940 # Checks for library functions.
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
9942 $as_echo_n "checking whether closedir returns void... " >&6; }
9943 if test "${ac_cv_func_closedir_void+set}" = set; then :
9944 $as_echo_n "(cached) " >&6
9945 else
9946 if test "$cross_compiling" = yes; then :
9947 ac_cv_func_closedir_void=yes
9948 else
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9951 $ac_includes_default
9952 #include <$ac_header_dirent>
9953 #ifndef __cplusplus
9954 int closedir ();
9955 #endif
9958 main ()
9960 return closedir (opendir (".")) != 0;
9962 return 0;
9964 _ACEOF
9965 if ac_fn_c_try_run "$LINENO"; then :
9966 ac_cv_func_closedir_void=no
9967 else
9968 ac_cv_func_closedir_void=yes
9970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9971 conftest.$ac_objext conftest.beam conftest.$ac_ext
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
9976 $as_echo "$ac_cv_func_closedir_void" >&6; }
9977 if test $ac_cv_func_closedir_void = yes; then
9979 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
9983 if test $ac_cv_c_compiler_gnu = yes; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
9985 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
9986 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
9987 $as_echo_n "(cached) " >&6
9988 else
9989 ac_pattern="Autoconf.*'x'"
9990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991 /* end confdefs.h. */
9992 #include <sgtty.h>
9993 Autoconf TIOCGETP
9994 _ACEOF
9995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9996 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
9997 ac_cv_prog_gcc_traditional=yes
9998 else
9999 ac_cv_prog_gcc_traditional=no
10001 rm -f conftest*
10004 if test $ac_cv_prog_gcc_traditional = no; then
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10007 #include <termio.h>
10008 Autoconf TCGETA
10009 _ACEOF
10010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10011 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10012 ac_cv_prog_gcc_traditional=yes
10014 rm -f conftest*
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10019 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10020 if test $ac_cv_prog_gcc_traditional = yes; then
10021 CC="$CC -traditional"
10025 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10026 if test "x$ac_cv_type_pid_t" = x""yes; then :
10028 else
10030 cat >>confdefs.h <<_ACEOF
10031 #define pid_t int
10032 _ACEOF
10036 for ac_header in vfork.h
10037 do :
10038 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10039 if test "x$ac_cv_header_vfork_h" = x""yes; then :
10040 cat >>confdefs.h <<_ACEOF
10041 #define HAVE_VFORK_H 1
10042 _ACEOF
10046 done
10048 for ac_func in fork vfork
10049 do :
10050 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10051 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10052 eval as_val=\$$as_ac_var
10053 if test "x$as_val" = x""yes; then :
10054 cat >>confdefs.h <<_ACEOF
10055 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10056 _ACEOF
10059 done
10061 if test "x$ac_cv_func_fork" = xyes; then
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10063 $as_echo_n "checking for working fork... " >&6; }
10064 if test "${ac_cv_func_fork_works+set}" = set; then :
10065 $as_echo_n "(cached) " >&6
10066 else
10067 if test "$cross_compiling" = yes; then :
10068 ac_cv_func_fork_works=cross
10069 else
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10072 $ac_includes_default
10074 main ()
10077 /* By Ruediger Kuhlmann. */
10078 return fork () < 0;
10081 return 0;
10083 _ACEOF
10084 if ac_fn_c_try_run "$LINENO"; then :
10085 ac_cv_func_fork_works=yes
10086 else
10087 ac_cv_func_fork_works=no
10089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10090 conftest.$ac_objext conftest.beam conftest.$ac_ext
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10095 $as_echo "$ac_cv_func_fork_works" >&6; }
10097 else
10098 ac_cv_func_fork_works=$ac_cv_func_fork
10100 if test "x$ac_cv_func_fork_works" = xcross; then
10101 case $host in
10102 *-*-amigaos* | *-*-msdosdjgpp*)
10103 # Override, as these systems have only a dummy fork() stub
10104 ac_cv_func_fork_works=no
10107 ac_cv_func_fork_works=yes
10109 esac
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10111 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10113 ac_cv_func_vfork_works=$ac_cv_func_vfork
10114 if test "x$ac_cv_func_vfork" = xyes; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10116 $as_echo_n "checking for working vfork... " >&6; }
10117 if test "${ac_cv_func_vfork_works+set}" = set; then :
10118 $as_echo_n "(cached) " >&6
10119 else
10120 if test "$cross_compiling" = yes; then :
10121 ac_cv_func_vfork_works=cross
10122 else
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10125 /* Thanks to Paul Eggert for this test. */
10126 $ac_includes_default
10127 #include <sys/wait.h>
10128 #ifdef HAVE_VFORK_H
10129 # include <vfork.h>
10130 #endif
10131 /* On some sparc systems, changes by the child to local and incoming
10132 argument registers are propagated back to the parent. The compiler
10133 is told about this with #include <vfork.h>, but some compilers
10134 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10135 static variable whose address is put into a register that is
10136 clobbered by the vfork. */
10137 static void
10138 #ifdef __cplusplus
10139 sparc_address_test (int arg)
10140 # else
10141 sparc_address_test (arg) int arg;
10142 #endif
10144 static pid_t child;
10145 if (!child) {
10146 child = vfork ();
10147 if (child < 0) {
10148 perror ("vfork");
10149 _exit(2);
10151 if (!child) {
10152 arg = getpid();
10153 write(-1, "", 0);
10154 _exit (arg);
10160 main ()
10162 pid_t parent = getpid ();
10163 pid_t child;
10165 sparc_address_test (0);
10167 child = vfork ();
10169 if (child == 0) {
10170 /* Here is another test for sparc vfork register problems. This
10171 test uses lots of local variables, at least as many local
10172 variables as main has allocated so far including compiler
10173 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10174 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10175 reuse the register of parent for one of the local variables,
10176 since it will think that parent can't possibly be used any more
10177 in this routine. Assigning to the local variable will thus
10178 munge parent in the parent process. */
10179 pid_t
10180 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10181 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10182 /* Convince the compiler that p..p7 are live; otherwise, it might
10183 use the same hardware register for all 8 local variables. */
10184 if (p != p1 || p != p2 || p != p3 || p != p4
10185 || p != p5 || p != p6 || p != p7)
10186 _exit(1);
10188 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10189 from child file descriptors. If the child closes a descriptor
10190 before it execs or exits, this munges the parent's descriptor
10191 as well. Test for this by closing stdout in the child. */
10192 _exit(close(fileno(stdout)) != 0);
10193 } else {
10194 int status;
10195 struct stat st;
10197 while (wait(&status) != child)
10199 return (
10200 /* Was there some problem with vforking? */
10201 child < 0
10203 /* Did the child fail? (This shouldn't happen.) */
10204 || status
10206 /* Did the vfork/compiler bug occur? */
10207 || parent != getpid()
10209 /* Did the file descriptor bug occur? */
10210 || fstat(fileno(stdout), &st) != 0
10214 _ACEOF
10215 if ac_fn_c_try_run "$LINENO"; then :
10216 ac_cv_func_vfork_works=yes
10217 else
10218 ac_cv_func_vfork_works=no
10220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10221 conftest.$ac_objext conftest.beam conftest.$ac_ext
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10226 $as_echo "$ac_cv_func_vfork_works" >&6; }
10229 if test "x$ac_cv_func_fork_works" = xcross; then
10230 ac_cv_func_vfork_works=$ac_cv_func_vfork
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10232 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10235 if test "x$ac_cv_func_vfork_works" = xyes; then
10237 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10239 else
10241 $as_echo "#define vfork fork" >>confdefs.h
10244 if test "x$ac_cv_func_fork_works" = xyes; then
10246 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10251 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10252 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10253 $as_echo_n "(cached) " >&6
10254 else
10255 rm -f conftest.sym conftest.file
10256 echo >conftest.file
10257 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10258 if test "$cross_compiling" = yes; then :
10259 ac_cv_func_lstat_dereferences_slashed_symlink=no
10260 else
10261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10262 /* end confdefs.h. */
10263 $ac_includes_default
10265 main ()
10267 struct stat sbuf;
10268 /* Linux will dereference the symlink and fail, as required by POSIX.
10269 That is better in the sense that it means we will not
10270 have to compile and use the lstat wrapper. */
10271 return lstat ("conftest.sym/", &sbuf) == 0;
10273 return 0;
10275 _ACEOF
10276 if ac_fn_c_try_run "$LINENO"; then :
10277 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10278 else
10279 ac_cv_func_lstat_dereferences_slashed_symlink=no
10281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10282 conftest.$ac_objext conftest.beam conftest.$ac_ext
10285 else
10286 # If the `ln -s' command failed, then we probably don't even
10287 # have an lstat function.
10288 ac_cv_func_lstat_dereferences_slashed_symlink=no
10290 rm -f conftest.sym conftest.file
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10294 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10296 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10298 cat >>confdefs.h <<_ACEOF
10299 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10300 _ACEOF
10303 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10304 case " $LIBOBJS " in
10305 *" lstat.$ac_objext "* ) ;;
10306 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10308 esac
10312 if test x$SYS != xwin32; then :
10314 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10315 # -lseq on Dynix/PTX, -lgen on Unixware.
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
10317 $as_echo_n "checking for library containing getmntent... " >&6; }
10318 if test "${ac_cv_search_getmntent+set}" = set; then :
10319 $as_echo_n "(cached) " >&6
10320 else
10321 ac_func_search_save_LIBS=$LIBS
10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h. */
10325 /* Override any GCC internal prototype to avoid an error.
10326 Use char because int might match the return type of a GCC
10327 builtin and then its argument prototype would still apply. */
10328 #ifdef __cplusplus
10329 extern "C"
10330 #endif
10331 char getmntent ();
10333 main ()
10335 return getmntent ();
10337 return 0;
10339 _ACEOF
10340 for ac_lib in '' sun seq gen; do
10341 if test -z "$ac_lib"; then
10342 ac_res="none required"
10343 else
10344 ac_res=-l$ac_lib
10345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10347 if ac_fn_c_try_link "$LINENO"; then :
10348 ac_cv_search_getmntent=$ac_res
10350 rm -f core conftest.err conftest.$ac_objext \
10351 conftest$ac_exeext
10352 if test "${ac_cv_search_getmntent+set}" = set; then :
10353 break
10355 done
10356 if test "${ac_cv_search_getmntent+set}" = set; then :
10358 else
10359 ac_cv_search_getmntent=no
10361 rm conftest.$ac_ext
10362 LIBS=$ac_func_search_save_LIBS
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
10365 $as_echo "$ac_cv_search_getmntent" >&6; }
10366 ac_res=$ac_cv_search_getmntent
10367 if test "$ac_res" != no; then :
10368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10369 ac_cv_func_getmntent=yes
10371 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
10373 else
10374 ac_cv_func_getmntent=no
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
10379 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
10380 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
10381 $as_echo_n "(cached) " >&6
10382 else
10383 if test "$cross_compiling" = yes; then :
10384 ac_cv_func_lstat_empty_string_bug=yes
10385 else
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388 $ac_includes_default
10390 main ()
10392 struct stat sbuf;
10393 return lstat ("", &sbuf) == 0;
10395 return 0;
10397 _ACEOF
10398 if ac_fn_c_try_run "$LINENO"; then :
10399 ac_cv_func_lstat_empty_string_bug=no
10400 else
10401 ac_cv_func_lstat_empty_string_bug=yes
10403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10404 conftest.$ac_objext conftest.beam conftest.$ac_ext
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
10409 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
10410 if test $ac_cv_func_lstat_empty_string_bug = yes; then
10411 case " $LIBOBJS " in
10412 *" lstat.$ac_objext "* ) ;;
10413 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10415 esac
10418 cat >>confdefs.h <<_ACEOF
10419 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
10420 _ACEOF
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10425 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10426 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10427 $as_echo_n "(cached) " >&6
10428 else
10429 rm -f conftest.sym conftest.file
10430 echo >conftest.file
10431 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10432 if test "$cross_compiling" = yes; then :
10433 ac_cv_func_lstat_dereferences_slashed_symlink=no
10434 else
10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10437 $ac_includes_default
10439 main ()
10441 struct stat sbuf;
10442 /* Linux will dereference the symlink and fail, as required by POSIX.
10443 That is better in the sense that it means we will not
10444 have to compile and use the lstat wrapper. */
10445 return lstat ("conftest.sym/", &sbuf) == 0;
10447 return 0;
10449 _ACEOF
10450 if ac_fn_c_try_run "$LINENO"; then :
10451 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10452 else
10453 ac_cv_func_lstat_dereferences_slashed_symlink=no
10455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10456 conftest.$ac_objext conftest.beam conftest.$ac_ext
10459 else
10460 # If the `ln -s' command failed, then we probably don't even
10461 # have an lstat function.
10462 ac_cv_func_lstat_dereferences_slashed_symlink=no
10464 rm -f conftest.sym conftest.file
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10468 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10470 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10472 cat >>confdefs.h <<_ACEOF
10473 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10474 _ACEOF
10477 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10478 case " $LIBOBJS " in
10479 *" lstat.$ac_objext "* ) ;;
10480 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10482 esac
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
10489 $as_echo_n "checking for working memcmp... " >&6; }
10490 if test "${ac_cv_func_memcmp_working+set}" = set; then :
10491 $as_echo_n "(cached) " >&6
10492 else
10493 if test "$cross_compiling" = yes; then :
10494 ac_cv_func_memcmp_working=no
10495 else
10496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497 /* end confdefs.h. */
10498 $ac_includes_default
10500 main ()
10503 /* Some versions of memcmp are not 8-bit clean. */
10504 char c0 = '\100', c1 = '\200', c2 = '\201';
10505 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10506 return 1;
10508 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10509 or more and with at least one buffer not starting on a 4-byte boundary.
10510 William Lewis provided this test program. */
10512 char foo[21];
10513 char bar[21];
10514 int i;
10515 for (i = 0; i < 4; i++)
10517 char *a = foo + i;
10518 char *b = bar + i;
10519 strcpy (a, "--------01111111");
10520 strcpy (b, "--------10000000");
10521 if (memcmp (a, b, 16) >= 0)
10522 return 1;
10524 return 0;
10528 return 0;
10530 _ACEOF
10531 if ac_fn_c_try_run "$LINENO"; then :
10532 ac_cv_func_memcmp_working=yes
10533 else
10534 ac_cv_func_memcmp_working=no
10536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10537 conftest.$ac_objext conftest.beam conftest.$ac_ext
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
10542 $as_echo "$ac_cv_func_memcmp_working" >&6; }
10543 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10544 *" memcmp.$ac_objext "* ) ;;
10545 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10547 esac
10550 for ac_header in sys/select.h sys/socket.h
10551 do :
10552 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10553 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10554 eval as_val=\$$as_ac_Header
10555 if test "x$as_val" = x""yes; then :
10556 cat >>confdefs.h <<_ACEOF
10557 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10558 _ACEOF
10562 done
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
10565 $as_echo_n "checking types of arguments for select... " >&6; }
10566 if test "${ac_cv_func_select_args+set}" = set; then :
10567 $as_echo_n "(cached) " >&6
10568 else
10569 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10570 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10571 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10573 /* end confdefs.h. */
10574 $ac_includes_default
10575 #ifdef HAVE_SYS_SELECT_H
10576 # include <sys/select.h>
10577 #endif
10578 #ifdef HAVE_SYS_SOCKET_H
10579 # include <sys/socket.h>
10580 #endif
10583 main ()
10585 extern int select ($ac_arg1,
10586 $ac_arg234, $ac_arg234, $ac_arg234,
10587 $ac_arg5);
10589 return 0;
10591 _ACEOF
10592 if ac_fn_c_try_compile "$LINENO"; then :
10593 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10596 done
10597 done
10598 done
10599 # Provide a safe default value.
10600 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10604 $as_echo "$ac_cv_func_select_args" >&6; }
10605 ac_save_IFS=$IFS; IFS=','
10606 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10607 IFS=$ac_save_IFS
10608 shift
10610 cat >>confdefs.h <<_ACEOF
10611 #define SELECT_TYPE_ARG1 $1
10612 _ACEOF
10615 cat >>confdefs.h <<_ACEOF
10616 #define SELECT_TYPE_ARG234 ($2)
10617 _ACEOF
10620 cat >>confdefs.h <<_ACEOF
10621 #define SELECT_TYPE_ARG5 ($3)
10622 _ACEOF
10624 rm -f conftest*
10626 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629 ac_cv_func_setvbuf_reversed=no
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10634 $as_echo_n "checking return type of signal handlers... " >&6; }
10635 if test "${ac_cv_type_signal+set}" = set; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10640 #include <sys/types.h>
10641 #include <signal.h>
10644 main ()
10646 return *(signal (0, 0)) (0) == 1;
10648 return 0;
10650 _ACEOF
10651 if ac_fn_c_try_compile "$LINENO"; then :
10652 ac_cv_type_signal=int
10653 else
10654 ac_cv_type_signal=void
10656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10659 $as_echo "$ac_cv_type_signal" >&6; }
10661 cat >>confdefs.h <<_ACEOF
10662 #define RETSIGTYPE $ac_cv_type_signal
10663 _ACEOF
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
10667 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
10668 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 if test "$cross_compiling" = yes; then :
10672 ac_cv_func_stat_empty_string_bug=yes
10673 else
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676 $ac_includes_default
10678 main ()
10680 struct stat sbuf;
10681 return stat ("", &sbuf) == 0;
10683 return 0;
10685 _ACEOF
10686 if ac_fn_c_try_run "$LINENO"; then :
10687 ac_cv_func_stat_empty_string_bug=no
10688 else
10689 ac_cv_func_stat_empty_string_bug=yes
10691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10692 conftest.$ac_objext conftest.beam conftest.$ac_ext
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
10697 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
10698 if test $ac_cv_func_stat_empty_string_bug = yes; then
10699 case " $LIBOBJS " in
10700 *" stat.$ac_objext "* ) ;;
10701 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10703 esac
10706 cat >>confdefs.h <<_ACEOF
10707 #define HAVE_STAT_EMPTY_STRING_BUG 1
10708 _ACEOF
10712 for ac_func in strftime
10713 do :
10714 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
10715 if test "x$ac_cv_func_strftime" = x""yes; then :
10716 cat >>confdefs.h <<_ACEOF
10717 #define HAVE_STRFTIME 1
10718 _ACEOF
10720 else
10721 # strftime is in -lintl on SCO UNIX.
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
10723 $as_echo_n "checking for strftime in -lintl... " >&6; }
10724 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
10725 $as_echo_n "(cached) " >&6
10726 else
10727 ac_check_lib_save_LIBS=$LIBS
10728 LIBS="-lintl $LIBS"
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10732 /* Override any GCC internal prototype to avoid an error.
10733 Use char because int might match the return type of a GCC
10734 builtin and then its argument prototype would still apply. */
10735 #ifdef __cplusplus
10736 extern "C"
10737 #endif
10738 char strftime ();
10740 main ()
10742 return strftime ();
10744 return 0;
10746 _ACEOF
10747 if ac_fn_c_try_link "$LINENO"; then :
10748 ac_cv_lib_intl_strftime=yes
10749 else
10750 ac_cv_lib_intl_strftime=no
10752 rm -f core conftest.err conftest.$ac_objext \
10753 conftest$ac_exeext conftest.$ac_ext
10754 LIBS=$ac_check_lib_save_LIBS
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
10757 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
10758 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
10759 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
10761 LIBS="-lintl $LIBS"
10765 done
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
10768 $as_echo_n "checking for working strtod... " >&6; }
10769 if test "${ac_cv_func_strtod+set}" = set; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10772 if test "$cross_compiling" = yes; then :
10773 ac_cv_func_strtod=no
10774 else
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10778 $ac_includes_default
10779 #ifndef strtod
10780 double strtod ();
10781 #endif
10783 main()
10786 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10787 char *string = " +69";
10788 char *term;
10789 double value;
10790 value = strtod (string, &term);
10791 if (value != 69 || term != (string + 4))
10792 return 1;
10796 /* Under Solaris 2.4, strtod returns the wrong value for the
10797 terminating character under some conditions. */
10798 char *string = "NaN";
10799 char *term;
10800 strtod (string, &term);
10801 if (term != string && *(term - 1) == 0)
10802 return 1;
10804 return 0;
10807 _ACEOF
10808 if ac_fn_c_try_run "$LINENO"; then :
10809 ac_cv_func_strtod=yes
10810 else
10811 ac_cv_func_strtod=no
10813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10814 conftest.$ac_objext conftest.beam conftest.$ac_ext
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
10819 $as_echo "$ac_cv_func_strtod" >&6; }
10820 if test $ac_cv_func_strtod = no; then
10821 case " $LIBOBJS " in
10822 *" strtod.$ac_objext "* ) ;;
10823 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10825 esac
10827 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
10828 if test "x$ac_cv_func_pow" = x""yes; then :
10832 if test $ac_cv_func_pow = no; then
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
10834 $as_echo_n "checking for pow in -lm... " >&6; }
10835 if test "${ac_cv_lib_m_pow+set}" = set; then :
10836 $as_echo_n "(cached) " >&6
10837 else
10838 ac_check_lib_save_LIBS=$LIBS
10839 LIBS="-lm $LIBS"
10840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841 /* end confdefs.h. */
10843 /* Override any GCC internal prototype to avoid an error.
10844 Use char because int might match the return type of a GCC
10845 builtin and then its argument prototype would still apply. */
10846 #ifdef __cplusplus
10847 extern "C"
10848 #endif
10849 char pow ();
10851 main ()
10853 return pow ();
10855 return 0;
10857 _ACEOF
10858 if ac_fn_c_try_link "$LINENO"; then :
10859 ac_cv_lib_m_pow=yes
10860 else
10861 ac_cv_lib_m_pow=no
10863 rm -f core conftest.err conftest.$ac_objext \
10864 conftest$ac_exeext conftest.$ac_ext
10865 LIBS=$ac_check_lib_save_LIBS
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
10868 $as_echo "$ac_cv_lib_m_pow" >&6; }
10869 if test "x$ac_cv_lib_m_pow" = x""yes; then :
10870 POW_LIB=-lm
10871 else
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
10873 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10880 for ac_func in vprintf
10881 do :
10882 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10883 if test "x$ac_cv_func_vprintf" = x""yes; then :
10884 cat >>confdefs.h <<_ACEOF
10885 #define HAVE_VPRINTF 1
10886 _ACEOF
10888 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10889 if test "x$ac_cv_func__doprnt" = x""yes; then :
10891 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10896 done
10899 if test $cross_compiling = yes -a $gnumalloc = yes; then :
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10902 configure cannot check whether malloc() and realloc() are GNU libc
10903 compatible. You have to be ABSOLUTELY sure that they are, otherwise
10904 run configure with the --without-gnu-malloc switch." >&5
10905 $as_echo "$as_me: WARNING:
10906 configure cannot check whether malloc() and realloc() are GNU libc
10907 compatible. You have to be ABSOLUTELY sure that they are, otherwise
10908 run configure with the --without-gnu-malloc switch." >&2;}
10909 _mule_warning_8=yes
10910 _mule_has_warnings=yes
10912 ac_cv_func_malloc_0_nonnull=yes
10913 ac_cv_func_realloc_0_nonnull=yes
10916 for ac_header in stdlib.h
10917 do :
10918 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10919 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
10920 cat >>confdefs.h <<_ACEOF
10921 #define HAVE_STDLIB_H 1
10922 _ACEOF
10926 done
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10929 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
10930 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
10931 $as_echo_n "(cached) " >&6
10932 else
10933 if test "$cross_compiling" = yes; then :
10934 ac_cv_func_malloc_0_nonnull=no
10935 else
10936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h. */
10938 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10939 # include <stdlib.h>
10940 #else
10941 char *malloc ();
10942 #endif
10945 main ()
10947 return ! malloc (0);
10949 return 0;
10951 _ACEOF
10952 if ac_fn_c_try_run "$LINENO"; then :
10953 ac_cv_func_malloc_0_nonnull=yes
10954 else
10955 ac_cv_func_malloc_0_nonnull=no
10957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10958 conftest.$ac_objext conftest.beam conftest.$ac_ext
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10963 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
10964 if test $ac_cv_func_malloc_0_nonnull = yes; then :
10966 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
10968 else
10969 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
10971 case " $LIBOBJS " in
10972 *" malloc.$ac_objext "* ) ;;
10973 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
10975 esac
10978 $as_echo "#define malloc rpl_malloc" >>confdefs.h
10983 for ac_header in stdlib.h
10984 do :
10985 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10986 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
10987 cat >>confdefs.h <<_ACEOF
10988 #define HAVE_STDLIB_H 1
10989 _ACEOF
10993 done
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
10996 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
10997 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
10998 $as_echo_n "(cached) " >&6
10999 else
11000 if test "$cross_compiling" = yes; then :
11001 ac_cv_func_realloc_0_nonnull=no
11002 else
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11005 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11006 # include <stdlib.h>
11007 #else
11008 char *realloc ();
11009 #endif
11012 main ()
11014 return ! realloc (0, 0);
11016 return 0;
11018 _ACEOF
11019 if ac_fn_c_try_run "$LINENO"; then :
11020 ac_cv_func_realloc_0_nonnull=yes
11021 else
11022 ac_cv_func_realloc_0_nonnull=no
11024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11025 conftest.$ac_objext conftest.beam conftest.$ac_ext
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
11030 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
11031 if test $ac_cv_func_realloc_0_nonnull = yes; then :
11033 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
11035 else
11036 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
11038 case " $LIBOBJS " in
11039 *" realloc.$ac_objext "* ) ;;
11040 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
11042 esac
11045 $as_echo "#define realloc rpl_realloc" >>confdefs.h
11050 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
11051 do :
11052 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11053 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11054 eval as_val=\$$as_ac_var
11055 if test "x$as_val" = x""yes; then :
11056 cat >>confdefs.h <<_ACEOF
11057 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11058 _ACEOF
11061 done
11063 #-------------------------------------------------------------------------------
11064 # End of autoscan stuff
11065 #-------------------------------------------------------------------------------
11067 for ac_func in mkdir getrlimit setrlimit getopt_long
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
11084 for ac_header in $ac_header_list
11085 do :
11086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11087 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11089 eval as_val=\$$as_ac_Header
11090 if test "x$as_val" = x""yes; then :
11091 cat >>confdefs.h <<_ACEOF
11092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11093 _ACEOF
11097 done
11105 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
11107 # Check whether --enable-mmap was given.
11108 if test "${enable_mmap+set}" = set; then :
11109 enableval=$enable_mmap;
11114 if test ${enable_mmap:-no} = yes; then :
11116 for ac_header in sys/mman.h
11117 do :
11118 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11119 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11120 cat >>confdefs.h <<_ACEOF
11121 #define HAVE_SYS_MMAN_H 1
11122 _ACEOF
11126 done
11129 for ac_func in getpagesize
11130 do :
11131 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11132 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11133 cat >>confdefs.h <<_ACEOF
11134 #define HAVE_GETPAGESIZE 1
11135 _ACEOF
11138 done
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11141 $as_echo_n "checking for working mmap... " >&6; }
11142 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11143 $as_echo_n "(cached) " >&6
11144 else
11145 if test "$cross_compiling" = yes; then :
11146 ac_cv_func_mmap_fixed_mapped=no
11147 else
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h. */
11150 $ac_includes_default
11151 /* malloc might have been renamed as rpl_malloc. */
11152 #undef malloc
11154 /* Thanks to Mike Haertel and Jim Avera for this test.
11155 Here is a matrix of mmap possibilities:
11156 mmap private not fixed
11157 mmap private fixed at somewhere currently unmapped
11158 mmap private fixed at somewhere already mapped
11159 mmap shared not fixed
11160 mmap shared fixed at somewhere currently unmapped
11161 mmap shared fixed at somewhere already mapped
11162 For private mappings, we should verify that changes cannot be read()
11163 back from the file, nor mmap's back from the file at a different
11164 address. (There have been systems where private was not correctly
11165 implemented like the infamous i386 svr4.0, and systems where the
11166 VM page cache was not coherent with the file system buffer cache
11167 like early versions of FreeBSD and possibly contemporary NetBSD.)
11168 For shared mappings, we should conversely verify that changes get
11169 propagated back to all the places they're supposed to be.
11171 Grep wants private fixed already mapped.
11172 The main things grep needs to know about mmap are:
11173 * does it exist and is it safe to write into the mmap'd area
11174 * how to use it (BSD variants) */
11176 #include <fcntl.h>
11177 #include <sys/mman.h>
11179 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11180 char *malloc ();
11181 #endif
11183 /* This mess was copied from the GNU getpagesize.h. */
11184 #ifndef HAVE_GETPAGESIZE
11185 # ifdef _SC_PAGESIZE
11186 # define getpagesize() sysconf(_SC_PAGESIZE)
11187 # else /* no _SC_PAGESIZE */
11188 # ifdef HAVE_SYS_PARAM_H
11189 # include <sys/param.h>
11190 # ifdef EXEC_PAGESIZE
11191 # define getpagesize() EXEC_PAGESIZE
11192 # else /* no EXEC_PAGESIZE */
11193 # ifdef NBPG
11194 # define getpagesize() NBPG * CLSIZE
11195 # ifndef CLSIZE
11196 # define CLSIZE 1
11197 # endif /* no CLSIZE */
11198 # else /* no NBPG */
11199 # ifdef NBPC
11200 # define getpagesize() NBPC
11201 # else /* no NBPC */
11202 # ifdef PAGESIZE
11203 # define getpagesize() PAGESIZE
11204 # endif /* PAGESIZE */
11205 # endif /* no NBPC */
11206 # endif /* no NBPG */
11207 # endif /* no EXEC_PAGESIZE */
11208 # else /* no HAVE_SYS_PARAM_H */
11209 # define getpagesize() 8192 /* punt totally */
11210 # endif /* no HAVE_SYS_PARAM_H */
11211 # endif /* no _SC_PAGESIZE */
11213 #endif /* no HAVE_GETPAGESIZE */
11216 main ()
11218 char *data, *data2, *data3;
11219 int i, pagesize;
11220 int fd, fd2;
11222 pagesize = getpagesize ();
11224 /* First, make a file with some known garbage in it. */
11225 data = (char *) malloc (pagesize);
11226 if (!data)
11227 return 1;
11228 for (i = 0; i < pagesize; ++i)
11229 *(data + i) = rand ();
11230 umask (0);
11231 fd = creat ("conftest.mmap", 0600);
11232 if (fd < 0)
11233 return 2;
11234 if (write (fd, data, pagesize) != pagesize)
11235 return 3;
11236 close (fd);
11238 /* Next, check that the tail of a page is zero-filled. File must have
11239 non-zero length, otherwise we risk SIGBUS for entire page. */
11240 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11241 if (fd2 < 0)
11242 return 4;
11243 data2 = "";
11244 if (write (fd2, data2, 1) != 1)
11245 return 5;
11246 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11247 if (data2 == MAP_FAILED)
11248 return 6;
11249 for (i = 0; i < pagesize; ++i)
11250 if (*(data2 + i))
11251 return 7;
11252 close (fd2);
11253 if (munmap (data2, pagesize))
11254 return 8;
11256 /* Next, try to mmap the file at a fixed address which already has
11257 something else allocated at it. If we can, also make sure that
11258 we see the same garbage. */
11259 fd = open ("conftest.mmap", O_RDWR);
11260 if (fd < 0)
11261 return 9;
11262 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11263 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11264 return 10;
11265 for (i = 0; i < pagesize; ++i)
11266 if (*(data + i) != *(data2 + i))
11267 return 11;
11269 /* Finally, make sure that changes to the mapped area do not
11270 percolate back to the file as seen by read(). (This is a bug on
11271 some variants of i386 svr4.0.) */
11272 for (i = 0; i < pagesize; ++i)
11273 *(data2 + i) = *(data2 + i) + 1;
11274 data3 = (char *) malloc (pagesize);
11275 if (!data3)
11276 return 12;
11277 if (read (fd, data3, pagesize) != pagesize)
11278 return 13;
11279 for (i = 0; i < pagesize; ++i)
11280 if (*(data + i) != *(data3 + i))
11281 return 14;
11282 close (fd);
11283 return 0;
11285 _ACEOF
11286 if ac_fn_c_try_run "$LINENO"; then :
11287 ac_cv_func_mmap_fixed_mapped=yes
11288 else
11289 ac_cv_func_mmap_fixed_mapped=no
11291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11292 conftest.$ac_objext conftest.beam conftest.$ac_ext
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11297 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11298 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11300 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11303 rm -f conftest.mmap conftest.txt
11305 for ac_func in munmap sysconf
11306 do :
11307 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11308 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11309 eval as_val=\$$as_ac_var
11310 if test "x$as_val" = x""yes; then :
11311 cat >>confdefs.h <<_ACEOF
11312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11313 _ACEOF
11316 done
11318 if test $ac_cv_func_sysconf = yes; then :
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
11321 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
11322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h. */
11326 #include <unistd.h>
11329 main ()
11332 return sysconf(_SC_PAGESIZE);
11335 return 0;
11338 _ACEOF
11339 if ac_fn_c_try_link "$LINENO"; then :
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
11342 $as_echo "_SC_PAGESIZE" >&6; }
11344 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
11347 else
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11353 #include <unistd.h>
11356 main ()
11359 return sysconf(_SC_PAGE_SIZE);
11362 return 0;
11365 _ACEOF
11366 if ac_fn_c_try_link "$LINENO"; then :
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
11369 $as_echo "_SC_PAGE_SIZE" >&6; }
11371 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
11374 else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11377 $as_echo "none" >&6; }
11380 rm -f core conftest.err conftest.$ac_objext \
11381 conftest$ac_exeext conftest.$ac_ext
11384 rm -f core conftest.err conftest.$ac_objext \
11385 conftest$ac_exeext conftest.$ac_ext
11389 else
11391 # fake the result of the test for munmap() for the gettext macros
11392 ac_cv_func_munmap=no
11398 mule_backup_CPPFLAGS="$CPPFLAGS"
11399 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
11400 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
11401 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
11402 ac_have_decl=1
11403 else
11404 ac_have_decl=0
11407 cat >>confdefs.h <<_ACEOF
11408 #define HAVE_DECL_STRERROR_R $ac_have_decl
11409 _ACEOF
11411 for ac_func in strerror_r
11412 do :
11413 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
11414 if test "x$ac_cv_func_strerror_r" = x""yes; then :
11415 cat >>confdefs.h <<_ACEOF
11416 #define HAVE_STRERROR_R 1
11417 _ACEOF
11420 done
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
11423 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
11424 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
11425 $as_echo_n "(cached) " >&6
11426 else
11428 ac_cv_func_strerror_r_char_p=no
11429 if test $ac_cv_have_decl_strerror_r = yes; then
11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11432 $ac_includes_default
11434 main ()
11437 char buf[100];
11438 char x = *strerror_r (0, buf, sizeof buf);
11439 char *p = strerror_r (0, buf, sizeof buf);
11440 return !p || x;
11443 return 0;
11445 _ACEOF
11446 if ac_fn_c_try_compile "$LINENO"; then :
11447 ac_cv_func_strerror_r_char_p=yes
11449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11450 else
11451 # strerror_r is not declared. Choose between
11452 # systems that have relatively inaccessible declarations for the
11453 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
11454 # former has a strerror_r that returns char*, while the latter
11455 # has a strerror_r that returns `int'.
11456 # This test should segfault on the DEC system.
11457 if test "$cross_compiling" = yes; then :
11459 else
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11462 $ac_includes_default
11463 extern char *strerror_r ();
11465 main ()
11467 char buf[100];
11468 char x = *strerror_r (0, buf, sizeof buf);
11469 return ! isalpha (x);
11471 return 0;
11473 _ACEOF
11474 if ac_fn_c_try_run "$LINENO"; then :
11475 ac_cv_func_strerror_r_char_p=yes
11477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11478 conftest.$ac_objext conftest.beam conftest.$ac_ext
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
11485 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
11486 if test $ac_cv_func_strerror_r_char_p = yes; then
11488 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
11492 CPPFLAGS="$mule_backup_CPPFLAGS"
11494 # Look for a way to preallocate disk space for files.
11495 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
11498 $as_echo_n "checking for fallocate... " >&6; }
11499 mule_backup_CPPFLAGS="$CPPFLAGS"
11500 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11505 #define _GNU_SOURCE
11506 #ifdef HAVE_FCNTL_H
11507 # include <fcntl.h>
11508 #endif
11509 #include <linux/falloc.h>
11512 main ()
11515 fallocate(0, 0, 0, 0);
11518 return 0;
11521 _ACEOF
11522 if ac_fn_c_try_link "$LINENO"; then :
11525 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11528 $as_echo "yes" >&6; }
11530 else
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533 $as_echo "no" >&6; }
11536 rm -f core conftest.err conftest.$ac_objext \
11537 conftest$ac_exeext conftest.$ac_ext
11538 CPPFLAGS="$mule_backup_CPPFLAGS"
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
11542 $as_echo_n "checking for SYS_fallocate... " >&6; }
11543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544 /* end confdefs.h. */
11547 #include <sys/syscall.h>
11548 #include <sys/types.h>
11549 #include <unistd.h>
11552 main ()
11555 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
11558 return 0;
11561 _ACEOF
11562 if ac_fn_c_try_link "$LINENO"; then :
11565 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11568 $as_echo "yes" >&6; }
11570 else
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11576 rm -f core conftest.err conftest.$ac_objext \
11577 conftest$ac_exeext conftest.$ac_ext
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
11580 $as_echo_n "checking for posix_fallocate... " >&6; }
11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h. */
11585 #define _XOPEN_SOURCE 600
11586 #include <stdlib.h>
11587 #ifdef HAVE_FCNTL_H
11588 # include <fcntl.h>
11589 #endif
11592 main ()
11595 posix_fallocate(0, 0, 0);
11598 return 0;
11601 _ACEOF
11602 if ac_fn_c_try_link "$LINENO"; then :
11605 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11608 $as_echo "yes" >&6; }
11610 else
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613 $as_echo "no" >&6; }
11616 rm -f core conftest.err conftest.$ac_objext \
11617 conftest$ac_exeext conftest.$ac_ext
11621 # Checking Native Language Support
11624 MKINSTALLDIRS=
11625 if test -n "$ac_aux_dir"; then
11626 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
11628 if test -z "$MKINSTALLDIRS"; then
11629 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11636 # Extract the first word of "msgfmt", so it can be a program name with args.
11637 set dummy msgfmt; ac_word=$2
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639 $as_echo_n "checking for $ac_word... " >&6; }
11640 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11641 $as_echo_n "(cached) " >&6
11642 else
11643 case "$MSGFMT" in
11645 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11649 for ac_dir in $PATH; do
11650 test -z "$ac_dir" && ac_dir=.
11651 if test -f $ac_dir/$ac_word; then
11652 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11653 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11654 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11655 break
11658 done
11659 IFS="$ac_save_ifs"
11660 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11662 esac
11664 MSGFMT="$ac_cv_path_MSGFMT"
11665 if test "$MSGFMT" != ":"; then
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11667 $as_echo "$MSGFMT" >&6; }
11668 else
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670 $as_echo "no" >&6; }
11673 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11674 set dummy gmsgfmt; ac_word=$2
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676 $as_echo_n "checking for $ac_word... " >&6; }
11677 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11678 $as_echo_n "(cached) " >&6
11679 else
11680 case $GMSGFMT in
11681 [\\/]* | ?:[\\/]*)
11682 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11692 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694 break 2
11696 done
11697 done
11698 IFS=$as_save_IFS
11700 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11702 esac
11704 GMSGFMT=$ac_cv_path_GMSGFMT
11705 if test -n "$GMSGFMT"; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11707 $as_echo "$GMSGFMT" >&6; }
11708 else
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710 $as_echo "no" >&6; }
11715 # Extract the first word of "xgettext", so it can be a program name with args.
11716 set dummy xgettext; ac_word=$2
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11718 $as_echo_n "checking for $ac_word... " >&6; }
11719 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11720 $as_echo_n "(cached) " >&6
11721 else
11722 case "$XGETTEXT" in
11724 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11728 for ac_dir in $PATH; do
11729 test -z "$ac_dir" && ac_dir=.
11730 if test -f $ac_dir/$ac_word; then
11731 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
11732 (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
11733 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11734 break
11737 done
11738 IFS="$ac_save_ifs"
11739 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11741 esac
11743 XGETTEXT="$ac_cv_path_XGETTEXT"
11744 if test "$XGETTEXT" != ":"; then
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11746 $as_echo "$XGETTEXT" >&6; }
11747 else
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749 $as_echo "no" >&6; }
11752 rm -f messages.po
11754 # Extract the first word of "msgmerge", so it can be a program name with args.
11755 set dummy msgmerge; ac_word=$2
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11757 $as_echo_n "checking for $ac_word... " >&6; }
11758 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11759 $as_echo_n "(cached) " >&6
11760 else
11761 case "$MSGMERGE" in
11763 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11767 for ac_dir in $PATH; do
11768 test -z "$ac_dir" && ac_dir=.
11769 if test -f $ac_dir/$ac_word; then
11770 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11771 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
11772 break
11775 done
11776 IFS="$ac_save_ifs"
11777 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11779 esac
11781 MSGMERGE="$ac_cv_path_MSGMERGE"
11782 if test "$MSGMERGE" != ":"; then
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11784 $as_echo "$MSGMERGE" >&6; }
11785 else
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11787 $as_echo "no" >&6; }
11791 if test "$GMSGFMT" != ":"; then
11792 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11793 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11795 else
11796 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11798 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11799 GMSGFMT=":"
11803 if test "$XGETTEXT" != ":"; then
11804 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
11805 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11807 else
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11809 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11810 XGETTEXT=":"
11812 rm -f messages.po
11815 ac_config_commands="$ac_config_commands default-1"
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
11820 $as_echo_n "checking for strerror in -lcposix... " >&6; }
11821 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 ac_check_lib_save_LIBS=$LIBS
11825 LIBS="-lcposix $LIBS"
11826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h. */
11829 /* Override any GCC internal prototype to avoid an error.
11830 Use char because int might match the return type of a GCC
11831 builtin and then its argument prototype would still apply. */
11832 #ifdef __cplusplus
11833 extern "C"
11834 #endif
11835 char strerror ();
11837 main ()
11839 return strerror ();
11841 return 0;
11843 _ACEOF
11844 if ac_fn_c_try_link "$LINENO"; then :
11845 ac_cv_lib_cposix_strerror=yes
11846 else
11847 ac_cv_lib_cposix_strerror=no
11849 rm -f core conftest.err conftest.$ac_objext \
11850 conftest$ac_exeext conftest.$ac_ext
11851 LIBS=$ac_check_lib_save_LIBS
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
11854 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
11855 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
11856 LIBS="$LIBS -lcposix"
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
11863 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
11864 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
11865 $as_echo_n "(cached) " >&6
11866 else
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11870 #include <features.h>
11871 #ifdef __GNU_LIBRARY__
11872 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11873 Lucky GNU user
11874 #endif
11875 #endif
11877 _ACEOF
11878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11879 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
11880 ac_cv_gnu_library_2_1=yes
11881 else
11882 ac_cv_gnu_library_2_1=no
11884 rm -f conftest*
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11890 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11892 GLIBC21="$ac_cv_gnu_library_2_1"
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
11898 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
11899 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
11900 $as_echo_n "(cached) " >&6
11901 else
11903 if test "$cross_compiling" = yes; then :
11905 # Guess based on the CPU.
11906 case "$host_cpu" in
11907 alpha* | i3456786 | m68k | s390*)
11908 gt_cv_int_divbyzero_sigfpe="guessing yes";;
11910 gt_cv_int_divbyzero_sigfpe="guessing no";;
11911 esac
11913 else
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 /* end confdefs.h. */
11917 #include <stdlib.h>
11918 #include <signal.h>
11920 static void
11921 #ifdef __cplusplus
11922 sigfpe_handler (int sig)
11923 #else
11924 sigfpe_handler (sig) int sig;
11925 #endif
11927 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
11928 exit (sig != SIGFPE);
11931 int x = 1;
11932 int y = 0;
11933 int z;
11934 int nan;
11936 int main ()
11938 signal (SIGFPE, sigfpe_handler);
11939 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
11940 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
11941 signal (SIGTRAP, sigfpe_handler);
11942 #endif
11943 /* Linux/SPARC yields signal SIGILL. */
11944 #if defined (__sparc__) && defined (__linux__)
11945 signal (SIGILL, sigfpe_handler);
11946 #endif
11948 z = x / y;
11949 nan = y / y;
11950 exit (1);
11953 _ACEOF
11954 if ac_fn_c_try_run "$LINENO"; then :
11955 gt_cv_int_divbyzero_sigfpe=yes
11956 else
11957 gt_cv_int_divbyzero_sigfpe=no
11959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11960 conftest.$ac_objext conftest.beam conftest.$ac_ext
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
11966 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
11967 case "$gt_cv_int_divbyzero_sigfpe" in
11968 *yes) value=1;;
11969 *) value=0;;
11970 esac
11972 cat >>confdefs.h <<_ACEOF
11973 #define INTDIV0_RAISES_SIGFPE $value
11974 _ACEOF
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
11979 $as_echo_n "checking for inttypes.h... " >&6; }
11980 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
11981 $as_echo_n "(cached) " >&6
11982 else
11983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11985 #include <sys/types.h>
11986 #include <inttypes.h>
11988 main ()
11990 uintmax_t i = (uintmax_t) -1;
11992 return 0;
11994 _ACEOF
11995 if ac_fn_c_try_compile "$LINENO"; then :
11996 jm_ac_cv_header_inttypes_h=yes
11997 else
11998 jm_ac_cv_header_inttypes_h=no
12000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
12003 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
12004 if test $jm_ac_cv_header_inttypes_h = yes; then
12006 cat >>confdefs.h <<_ACEOF
12007 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
12008 _ACEOF
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
12014 $as_echo_n "checking for stdint.h... " >&6; }
12015 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
12016 $as_echo_n "(cached) " >&6
12017 else
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12020 #include <sys/types.h>
12021 #include <stdint.h>
12023 main ()
12025 uintmax_t i = (uintmax_t) -1;
12027 return 0;
12029 _ACEOF
12030 if ac_fn_c_try_compile "$LINENO"; then :
12031 jm_ac_cv_header_stdint_h=yes
12032 else
12033 jm_ac_cv_header_stdint_h=no
12035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
12038 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
12039 if test $jm_ac_cv_header_stdint_h = yes; then
12041 cat >>confdefs.h <<_ACEOF
12042 #define HAVE_STDINT_H_WITH_UINTMAX 1
12043 _ACEOF
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
12049 $as_echo_n "checking for unsigned long long... " >&6; }
12050 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054 /* end confdefs.h. */
12055 unsigned long long ull = 1; int i = 63;
12057 main ()
12059 unsigned long long ullmax = (unsigned long long) -1;
12060 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
12062 return 0;
12064 _ACEOF
12065 if ac_fn_c_try_link "$LINENO"; then :
12066 ac_cv_type_unsigned_long_long=yes
12067 else
12068 ac_cv_type_unsigned_long_long=no
12070 rm -f core conftest.err conftest.$ac_objext \
12071 conftest$ac_exeext conftest.$ac_ext
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
12074 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
12075 if test $ac_cv_type_unsigned_long_long = yes; then
12077 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
12084 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
12086 test $ac_cv_type_unsigned_long_long = yes \
12087 && ac_type='unsigned long long' \
12088 || ac_type='unsigned long'
12090 cat >>confdefs.h <<_ACEOF
12091 #define uintmax_t $ac_type
12092 _ACEOF
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12098 $as_echo_n "checking for inttypes.h... " >&6; }
12099 if test "${gt_cv_header_inttypes_h+set}" = set; then :
12100 $as_echo_n "(cached) " >&6
12101 else
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12105 #include <sys/types.h>
12106 #include <inttypes.h>
12108 main ()
12112 return 0;
12114 _ACEOF
12115 if ac_fn_c_try_compile "$LINENO"; then :
12116 gt_cv_header_inttypes_h=yes
12117 else
12118 gt_cv_header_inttypes_h=no
12120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
12124 $as_echo "$gt_cv_header_inttypes_h" >&6; }
12125 if test $gt_cv_header_inttypes_h = yes; then
12127 cat >>confdefs.h <<_ACEOF
12128 #define HAVE_INTTYPES_H 1
12129 _ACEOF
12135 if test $gt_cv_header_inttypes_h = yes; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
12137 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
12138 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
12139 $as_echo_n "(cached) " >&6
12140 else
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12144 #include <inttypes.h>
12145 #ifdef PRId32
12146 char *p = PRId32;
12147 #endif
12150 main ()
12154 return 0;
12156 _ACEOF
12157 if ac_fn_c_try_compile "$LINENO"; then :
12158 gt_cv_inttypes_pri_broken=no
12159 else
12160 gt_cv_inttypes_pri_broken=yes
12162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
12166 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
12168 if test "$gt_cv_inttypes_pri_broken" = yes; then
12170 cat >>confdefs.h <<_ACEOF
12171 #define PRI_MACROS_BROKEN 1
12172 _ACEOF
12177 if test "X$prefix" = "XNONE"; then
12178 acl_final_prefix="$ac_default_prefix"
12179 else
12180 acl_final_prefix="$prefix"
12182 if test "X$exec_prefix" = "XNONE"; then
12183 acl_final_exec_prefix='${prefix}'
12184 else
12185 acl_final_exec_prefix="$exec_prefix"
12187 acl_save_prefix="$prefix"
12188 prefix="$acl_final_prefix"
12189 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12190 prefix="$acl_save_prefix"
12193 # Check whether --with-gnu-ld was given.
12194 if test "${with_gnu_ld+set}" = set; then :
12195 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12196 else
12197 with_gnu_ld=no
12200 ac_prog=ld
12201 if test "$GCC" = yes; then
12202 # Check if gcc -print-prog-name=ld gives a path.
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12204 $as_echo_n "checking for ld used by GCC... " >&6; }
12205 case $host in
12206 *-*-mingw*)
12207 # gcc leaves a trailing carriage return which upsets mingw
12208 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12210 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12211 esac
12212 case $ac_prog in
12213 # Accept absolute paths.
12214 [\\/]* | [A-Za-z]:[\\/]*)
12215 re_direlt='/[^/][^/]*/\.\./'
12216 # Canonicalize the path of ld
12217 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12218 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12219 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12220 done
12221 test -z "$LD" && LD="$ac_prog"
12224 # If it fails, then pretend we aren't using GCC.
12225 ac_prog=ld
12228 # If it is relative, then search for the first ld in PATH.
12229 with_gnu_ld=unknown
12231 esac
12232 elif test "$with_gnu_ld" = yes; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12234 $as_echo_n "checking for GNU ld... " >&6; }
12235 else
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12237 $as_echo_n "checking for non-GNU ld... " >&6; }
12239 if test "${acl_cv_path_LD+set}" = set; then :
12240 $as_echo_n "(cached) " >&6
12241 else
12242 if test -z "$LD"; then
12243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12244 for ac_dir in $PATH; do
12245 test -z "$ac_dir" && ac_dir=.
12246 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12247 acl_cv_path_LD="$ac_dir/$ac_prog"
12248 # Check to see if the program is GNU ld. I'd rather use --version,
12249 # but apparently some GNU ld's only accept -v.
12250 # Break only if it was the GNU/non-GNU ld that we prefer.
12251 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12252 test "$with_gnu_ld" != no && break
12253 else
12254 test "$with_gnu_ld" != yes && break
12257 done
12258 IFS="$ac_save_ifs"
12259 else
12260 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12264 LD="$acl_cv_path_LD"
12265 if test -n "$LD"; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12267 $as_echo "$LD" >&6; }
12268 else
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12272 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12274 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12275 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
12276 $as_echo_n "(cached) " >&6
12277 else
12278 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12279 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12280 acl_cv_prog_gnu_ld=yes
12281 else
12282 acl_cv_prog_gnu_ld=no
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12286 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12287 with_gnu_ld=$acl_cv_prog_gnu_ld
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12292 $as_echo_n "checking for shared library run path origin... " >&6; }
12293 if test "${acl_cv_rpath+set}" = set; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12297 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12298 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12299 . ./conftest.sh
12300 rm -f ./conftest.sh
12301 acl_cv_rpath=done
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12305 $as_echo "$acl_cv_rpath" >&6; }
12306 wl="$acl_cv_wl"
12307 libext="$acl_cv_libext"
12308 shlibext="$acl_cv_shlibext"
12309 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12310 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12311 hardcode_direct="$acl_cv_hardcode_direct"
12312 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12313 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
12314 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
12315 # Check whether --enable-rpath was given.
12316 if test "${enable_rpath+set}" = set; then :
12317 enableval=$enable_rpath; :
12318 else
12319 enable_rpath=yes
12329 use_additional=yes
12331 acl_save_prefix="$prefix"
12332 prefix="$acl_final_prefix"
12333 acl_save_exec_prefix="$exec_prefix"
12334 exec_prefix="$acl_final_exec_prefix"
12336 eval additional_includedir=\"$includedir\"
12337 eval additional_libdir=\"$libdir\"
12339 exec_prefix="$acl_save_exec_prefix"
12340 prefix="$acl_save_prefix"
12343 # Check whether --with-libiconv-prefix was given.
12344 if test "${with_libiconv_prefix+set}" = set; then :
12345 withval=$with_libiconv_prefix;
12346 if test "X$withval" = "Xno"; then
12347 use_additional=no
12348 else
12349 if test "X$withval" = "X"; then
12351 acl_save_prefix="$prefix"
12352 prefix="$acl_final_prefix"
12353 acl_save_exec_prefix="$exec_prefix"
12354 exec_prefix="$acl_final_exec_prefix"
12356 eval additional_includedir=\"$includedir\"
12357 eval additional_libdir=\"$libdir\"
12359 exec_prefix="$acl_save_exec_prefix"
12360 prefix="$acl_save_prefix"
12362 else
12363 additional_includedir="$withval/include"
12364 additional_libdir="$withval/lib"
12370 LIBICONV=
12371 LTLIBICONV=
12372 INCICONV=
12373 rpathdirs=
12374 ltrpathdirs=
12375 names_already_handled=
12376 names_next_round='iconv '
12377 while test -n "$names_next_round"; do
12378 names_this_round="$names_next_round"
12379 names_next_round=
12380 for name in $names_this_round; do
12381 already_handled=
12382 for n in $names_already_handled; do
12383 if test "$n" = "$name"; then
12384 already_handled=yes
12385 break
12387 done
12388 if test -z "$already_handled"; then
12389 names_already_handled="$names_already_handled $name"
12390 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12391 eval value=\"\$HAVE_LIB$uppername\"
12392 if test -n "$value"; then
12393 if test "$value" = yes; then
12394 eval value=\"\$LIB$uppername\"
12395 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12396 eval value=\"\$LTLIB$uppername\"
12397 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12398 else
12401 else
12402 found_dir=
12403 found_la=
12404 found_so=
12405 found_a=
12406 if test $use_additional = yes; then
12407 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12408 found_dir="$additional_libdir"
12409 found_so="$additional_libdir/lib$name.$shlibext"
12410 if test -f "$additional_libdir/lib$name.la"; then
12411 found_la="$additional_libdir/lib$name.la"
12413 else
12414 if test -f "$additional_libdir/lib$name.$libext"; then
12415 found_dir="$additional_libdir"
12416 found_a="$additional_libdir/lib$name.$libext"
12417 if test -f "$additional_libdir/lib$name.la"; then
12418 found_la="$additional_libdir/lib$name.la"
12423 if test "X$found_dir" = "X"; then
12424 for x in $LDFLAGS $LTLIBICONV; do
12426 acl_save_prefix="$prefix"
12427 prefix="$acl_final_prefix"
12428 acl_save_exec_prefix="$exec_prefix"
12429 exec_prefix="$acl_final_exec_prefix"
12430 eval x=\"$x\"
12431 exec_prefix="$acl_save_exec_prefix"
12432 prefix="$acl_save_prefix"
12434 case "$x" in
12435 -L*)
12436 dir=`echo "X$x" | sed -e 's/^X-L//'`
12437 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12438 found_dir="$dir"
12439 found_so="$dir/lib$name.$shlibext"
12440 if test -f "$dir/lib$name.la"; then
12441 found_la="$dir/lib$name.la"
12443 else
12444 if test -f "$dir/lib$name.$libext"; then
12445 found_dir="$dir"
12446 found_a="$dir/lib$name.$libext"
12447 if test -f "$dir/lib$name.la"; then
12448 found_la="$dir/lib$name.la"
12453 esac
12454 if test "X$found_dir" != "X"; then
12455 break
12457 done
12459 if test "X$found_dir" != "X"; then
12460 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12461 if test "X$found_so" != "X"; then
12462 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12463 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12464 else
12465 haveit=
12466 for x in $ltrpathdirs; do
12467 if test "X$x" = "X$found_dir"; then
12468 haveit=yes
12469 break
12471 done
12472 if test -z "$haveit"; then
12473 ltrpathdirs="$ltrpathdirs $found_dir"
12475 if test "$hardcode_direct" = yes; then
12476 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12477 else
12478 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12479 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12480 haveit=
12481 for x in $rpathdirs; do
12482 if test "X$x" = "X$found_dir"; then
12483 haveit=yes
12484 break
12486 done
12487 if test -z "$haveit"; then
12488 rpathdirs="$rpathdirs $found_dir"
12490 else
12491 haveit=
12492 for x in $LDFLAGS $LIBICONV; do
12494 acl_save_prefix="$prefix"
12495 prefix="$acl_final_prefix"
12496 acl_save_exec_prefix="$exec_prefix"
12497 exec_prefix="$acl_final_exec_prefix"
12498 eval x=\"$x\"
12499 exec_prefix="$acl_save_exec_prefix"
12500 prefix="$acl_save_prefix"
12502 if test "X$x" = "X-L$found_dir"; then
12503 haveit=yes
12504 break
12506 done
12507 if test -z "$haveit"; then
12508 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12510 if test "$hardcode_minus_L" != no; then
12511 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12512 else
12513 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12518 else
12519 if test "X$found_a" != "X"; then
12520 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12521 else
12522 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12525 additional_includedir=
12526 case "$found_dir" in
12527 */lib | */lib/)
12528 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12529 additional_includedir="$basedir/include"
12531 esac
12532 if test "X$additional_includedir" != "X"; then
12533 if test "X$additional_includedir" != "X/usr/include"; then
12534 haveit=
12535 if test "X$additional_includedir" = "X/usr/local/include"; then
12536 if test -n "$GCC"; then
12537 case $host_os in
12538 linux*) haveit=yes;;
12539 esac
12542 if test -z "$haveit"; then
12543 for x in $CPPFLAGS $INCICONV; do
12545 acl_save_prefix="$prefix"
12546 prefix="$acl_final_prefix"
12547 acl_save_exec_prefix="$exec_prefix"
12548 exec_prefix="$acl_final_exec_prefix"
12549 eval x=\"$x\"
12550 exec_prefix="$acl_save_exec_prefix"
12551 prefix="$acl_save_prefix"
12553 if test "X$x" = "X-I$additional_includedir"; then
12554 haveit=yes
12555 break
12557 done
12558 if test -z "$haveit"; then
12559 if test -d "$additional_includedir"; then
12560 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12566 if test -n "$found_la"; then
12567 save_libdir="$libdir"
12568 case "$found_la" in
12569 */* | *\\*) . "$found_la" ;;
12570 *) . "./$found_la" ;;
12571 esac
12572 libdir="$save_libdir"
12573 for dep in $dependency_libs; do
12574 case "$dep" in
12575 -L*)
12576 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12577 if test "X$additional_libdir" != "X/usr/lib"; then
12578 haveit=
12579 if test "X$additional_libdir" = "X/usr/local/lib"; then
12580 if test -n "$GCC"; then
12581 case $host_os in
12582 linux*) haveit=yes;;
12583 esac
12586 if test -z "$haveit"; then
12587 haveit=
12588 for x in $LDFLAGS $LIBICONV; do
12590 acl_save_prefix="$prefix"
12591 prefix="$acl_final_prefix"
12592 acl_save_exec_prefix="$exec_prefix"
12593 exec_prefix="$acl_final_exec_prefix"
12594 eval x=\"$x\"
12595 exec_prefix="$acl_save_exec_prefix"
12596 prefix="$acl_save_prefix"
12598 if test "X$x" = "X-L$additional_libdir"; then
12599 haveit=yes
12600 break
12602 done
12603 if test -z "$haveit"; then
12604 if test -d "$additional_libdir"; then
12605 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12608 haveit=
12609 for x in $LDFLAGS $LTLIBICONV; do
12611 acl_save_prefix="$prefix"
12612 prefix="$acl_final_prefix"
12613 acl_save_exec_prefix="$exec_prefix"
12614 exec_prefix="$acl_final_exec_prefix"
12615 eval x=\"$x\"
12616 exec_prefix="$acl_save_exec_prefix"
12617 prefix="$acl_save_prefix"
12619 if test "X$x" = "X-L$additional_libdir"; then
12620 haveit=yes
12621 break
12623 done
12624 if test -z "$haveit"; then
12625 if test -d "$additional_libdir"; then
12626 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12632 -R*)
12633 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12634 if test "$enable_rpath" != no; then
12635 haveit=
12636 for x in $rpathdirs; do
12637 if test "X$x" = "X$dir"; then
12638 haveit=yes
12639 break
12641 done
12642 if test -z "$haveit"; then
12643 rpathdirs="$rpathdirs $dir"
12645 haveit=
12646 for x in $ltrpathdirs; do
12647 if test "X$x" = "X$dir"; then
12648 haveit=yes
12649 break
12651 done
12652 if test -z "$haveit"; then
12653 ltrpathdirs="$ltrpathdirs $dir"
12657 -l*)
12658 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12660 *.la)
12661 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12664 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12665 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12667 esac
12668 done
12670 else
12671 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12672 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12676 done
12677 done
12678 if test "X$rpathdirs" != "X"; then
12679 if test -n "$hardcode_libdir_separator"; then
12680 alldirs=
12681 for found_dir in $rpathdirs; do
12682 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12683 done
12684 acl_save_libdir="$libdir"
12685 libdir="$alldirs"
12686 eval flag=\"$hardcode_libdir_flag_spec\"
12687 libdir="$acl_save_libdir"
12688 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12689 else
12690 for found_dir in $rpathdirs; do
12691 acl_save_libdir="$libdir"
12692 libdir="$found_dir"
12693 eval flag=\"$hardcode_libdir_flag_spec\"
12694 libdir="$acl_save_libdir"
12695 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12696 done
12699 if test "X$ltrpathdirs" != "X"; then
12700 for found_dir in $ltrpathdirs; do
12701 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12702 done
12708 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12709 stdlib.h string.h unistd.h sys/param.h
12710 do :
12711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12712 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12713 eval as_val=\$$as_ac_Header
12714 if test "x$as_val" = x""yes; then :
12715 cat >>confdefs.h <<_ACEOF
12716 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12717 _ACEOF
12721 done
12723 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
12724 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
12725 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12726 do :
12727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12728 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12729 eval as_val=\$$as_ac_var
12730 if test "x$as_val" = x""yes; then :
12731 cat >>confdefs.h <<_ACEOF
12732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12733 _ACEOF
12736 done
12744 am_save_CPPFLAGS="$CPPFLAGS"
12746 for element in $INCICONV; do
12747 haveit=
12748 for x in $CPPFLAGS; do
12750 acl_save_prefix="$prefix"
12751 prefix="$acl_final_prefix"
12752 acl_save_exec_prefix="$exec_prefix"
12753 exec_prefix="$acl_final_exec_prefix"
12754 eval x=\"$x\"
12755 exec_prefix="$acl_save_exec_prefix"
12756 prefix="$acl_save_prefix"
12758 if test "X$x" = "X$element"; then
12759 haveit=yes
12760 break
12762 done
12763 if test -z "$haveit"; then
12764 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12766 done
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12770 $as_echo_n "checking for iconv... " >&6; }
12771 if test "${am_cv_func_iconv+set}" = set; then :
12772 $as_echo_n "(cached) " >&6
12773 else
12775 am_cv_func_iconv="no, consider installing GNU libiconv"
12776 am_cv_lib_iconv=no
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12779 #include <stdlib.h>
12780 #include <iconv.h>
12782 main ()
12784 iconv_t cd = iconv_open("","");
12785 iconv(cd,NULL,NULL,NULL,NULL);
12786 iconv_close(cd);
12788 return 0;
12790 _ACEOF
12791 if ac_fn_c_try_link "$LINENO"; then :
12792 am_cv_func_iconv=yes
12794 rm -f core conftest.err conftest.$ac_objext \
12795 conftest$ac_exeext conftest.$ac_ext
12796 if test "$am_cv_func_iconv" != yes; then
12797 am_save_LIBS="$LIBS"
12798 LIBS="$LIBS $LIBICONV"
12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12801 #include <stdlib.h>
12802 #include <iconv.h>
12804 main ()
12806 iconv_t cd = iconv_open("","");
12807 iconv(cd,NULL,NULL,NULL,NULL);
12808 iconv_close(cd);
12810 return 0;
12812 _ACEOF
12813 if ac_fn_c_try_link "$LINENO"; then :
12814 am_cv_lib_iconv=yes
12815 am_cv_func_iconv=yes
12817 rm -f core conftest.err conftest.$ac_objext \
12818 conftest$ac_exeext conftest.$ac_ext
12819 LIBS="$am_save_LIBS"
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12824 $as_echo "$am_cv_func_iconv" >&6; }
12825 if test "$am_cv_func_iconv" = yes; then
12827 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12830 if test "$am_cv_lib_iconv" = yes; then
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12832 $as_echo_n "checking how to link with libiconv... " >&6; }
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12834 $as_echo "$LIBICONV" >&6; }
12835 else
12836 CPPFLAGS="$am_save_CPPFLAGS"
12837 LIBICONV=
12838 LTLIBICONV=
12843 if test "$am_cv_func_iconv" = yes; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12845 $as_echo_n "checking for iconv declaration... " >&6; }
12846 if test "${am_cv_proto_iconv+set}" = set; then :
12847 $as_echo_n "(cached) " >&6
12848 else
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12853 #include <stdlib.h>
12854 #include <iconv.h>
12855 extern
12856 #ifdef __cplusplus
12858 #endif
12859 #if defined(__STDC__) || defined(__cplusplus)
12860 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12861 #else
12862 size_t iconv();
12863 #endif
12866 main ()
12870 return 0;
12872 _ACEOF
12873 if ac_fn_c_try_compile "$LINENO"; then :
12874 am_cv_proto_iconv_arg1=""
12875 else
12876 am_cv_proto_iconv_arg1="const"
12878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12879 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);"
12882 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
12884 }$am_cv_proto_iconv" >&5
12885 $as_echo "${ac_t:-
12886 }$am_cv_proto_iconv" >&6; }
12888 cat >>confdefs.h <<_ACEOF
12889 #define ICONV_CONST $am_cv_proto_iconv_arg1
12890 _ACEOF
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12896 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12897 if test "${am_cv_langinfo_codeset+set}" = set; then :
12898 $as_echo_n "(cached) " >&6
12899 else
12900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12901 /* end confdefs.h. */
12902 #include <langinfo.h>
12904 main ()
12906 char* cs = nl_langinfo(CODESET);
12908 return 0;
12910 _ACEOF
12911 if ac_fn_c_try_link "$LINENO"; then :
12912 am_cv_langinfo_codeset=yes
12913 else
12914 am_cv_langinfo_codeset=no
12916 rm -f core conftest.err conftest.$ac_objext \
12917 conftest$ac_exeext conftest.$ac_ext
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12921 $as_echo "$am_cv_langinfo_codeset" >&6; }
12922 if test $am_cv_langinfo_codeset = yes; then
12924 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12928 if test $ac_cv_header_locale_h = yes; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12931 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12932 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
12933 $as_echo_n "(cached) " >&6
12934 else
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12937 #include <locale.h>
12939 main ()
12941 return LC_MESSAGES
12943 return 0;
12945 _ACEOF
12946 if ac_fn_c_try_link "$LINENO"; then :
12947 am_cv_val_LC_MESSAGES=yes
12948 else
12949 am_cv_val_LC_MESSAGES=no
12951 rm -f core conftest.err conftest.$ac_objext \
12952 conftest$ac_exeext conftest.$ac_ext
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12955 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12956 if test $am_cv_val_LC_MESSAGES = yes; then
12958 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12964 for ac_prog in bison
12966 # Extract the first word of "$ac_prog", so it can be a program name with args.
12967 set dummy $ac_prog; ac_word=$2
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12969 $as_echo_n "checking for $ac_word... " >&6; }
12970 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 if test -n "$INTLBISON"; then
12974 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12975 else
12976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977 for as_dir in $PATH
12979 IFS=$as_save_IFS
12980 test -z "$as_dir" && as_dir=.
12981 for ac_exec_ext in '' $ac_executable_extensions; do
12982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12983 ac_cv_prog_INTLBISON="$ac_prog"
12984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12985 break 2
12987 done
12988 done
12989 IFS=$as_save_IFS
12993 INTLBISON=$ac_cv_prog_INTLBISON
12994 if test -n "$INTLBISON"; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
12996 $as_echo "$INTLBISON" >&6; }
12997 else
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999 $as_echo "no" >&6; }
13003 test -n "$INTLBISON" && break
13004 done
13006 if test -z "$INTLBISON"; then
13007 ac_verc_fail=yes
13008 else
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
13010 $as_echo_n "checking version of bison... " >&6; }
13011 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13012 case $ac_prog_version in
13013 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13014 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13015 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13016 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13017 esac
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
13019 $as_echo "$ac_prog_version" >&6; }
13021 if test $ac_verc_fail = yes; then
13022 INTLBISON=:
13027 # Check whether --with-language was given.
13028 if test "${with_language+set}" = set; then :
13029 withval=$with_language; if test "$withval" != "all"; then :
13030 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13050 $as_echo_n "checking whether NLS is requested... " >&6; }
13051 # Check whether --enable-nls was given.
13052 if test "${enable_nls+set}" = set; then :
13053 enableval=$enable_nls; USE_NLS=$enableval
13054 else
13055 USE_NLS=yes
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13059 $as_echo "$USE_NLS" >&6; }
13063 BUILD_INCLUDED_LIBINTL=no
13064 USE_INCLUDED_LIBINTL=no
13066 LIBINTL=
13067 LTLIBINTL=
13068 POSUB=
13070 if test "$USE_NLS" = "yes"; then
13071 gt_use_preinstalled_gnugettext=no
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
13074 $as_echo_n "checking whether included gettext is requested... " >&6; }
13076 # Check whether --with-included-gettext was given.
13077 if test "${with_included_gettext+set}" = set; then :
13078 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13079 else
13080 nls_cv_force_use_gnu_gettext=no
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
13084 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
13086 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13087 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13095 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13096 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
13097 $as_echo_n "(cached) " >&6
13098 else
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h. */
13101 #include <libintl.h>
13102 extern int _nl_msg_cat_cntr;
13103 extern int *_nl_domain_bindings;
13105 main ()
13107 bindtextdomain ("", "");
13108 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
13110 return 0;
13112 _ACEOF
13113 if ac_fn_c_try_link "$LINENO"; then :
13114 gt_cv_func_gnugettext2_libc=yes
13115 else
13116 gt_cv_func_gnugettext2_libc=no
13118 rm -f core conftest.err conftest.$ac_objext \
13119 conftest$ac_exeext conftest.$ac_ext
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
13122 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
13124 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
13128 use_additional=yes
13130 acl_save_prefix="$prefix"
13131 prefix="$acl_final_prefix"
13132 acl_save_exec_prefix="$exec_prefix"
13133 exec_prefix="$acl_final_exec_prefix"
13135 eval additional_includedir=\"$includedir\"
13136 eval additional_libdir=\"$libdir\"
13138 exec_prefix="$acl_save_exec_prefix"
13139 prefix="$acl_save_prefix"
13142 # Check whether --with-libintl-prefix was given.
13143 if test "${with_libintl_prefix+set}" = set; then :
13144 withval=$with_libintl_prefix;
13145 if test "X$withval" = "Xno"; then
13146 use_additional=no
13147 else
13148 if test "X$withval" = "X"; then
13150 acl_save_prefix="$prefix"
13151 prefix="$acl_final_prefix"
13152 acl_save_exec_prefix="$exec_prefix"
13153 exec_prefix="$acl_final_exec_prefix"
13155 eval additional_includedir=\"$includedir\"
13156 eval additional_libdir=\"$libdir\"
13158 exec_prefix="$acl_save_exec_prefix"
13159 prefix="$acl_save_prefix"
13161 else
13162 additional_includedir="$withval/include"
13163 additional_libdir="$withval/lib"
13169 LIBINTL=
13170 LTLIBINTL=
13171 INCINTL=
13172 rpathdirs=
13173 ltrpathdirs=
13174 names_already_handled=
13175 names_next_round='intl '
13176 while test -n "$names_next_round"; do
13177 names_this_round="$names_next_round"
13178 names_next_round=
13179 for name in $names_this_round; do
13180 already_handled=
13181 for n in $names_already_handled; do
13182 if test "$n" = "$name"; then
13183 already_handled=yes
13184 break
13186 done
13187 if test -z "$already_handled"; then
13188 names_already_handled="$names_already_handled $name"
13189 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13190 eval value=\"\$HAVE_LIB$uppername\"
13191 if test -n "$value"; then
13192 if test "$value" = yes; then
13193 eval value=\"\$LIB$uppername\"
13194 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13195 eval value=\"\$LTLIB$uppername\"
13196 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13197 else
13200 else
13201 found_dir=
13202 found_la=
13203 found_so=
13204 found_a=
13205 if test $use_additional = yes; then
13206 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13207 found_dir="$additional_libdir"
13208 found_so="$additional_libdir/lib$name.$shlibext"
13209 if test -f "$additional_libdir/lib$name.la"; then
13210 found_la="$additional_libdir/lib$name.la"
13212 else
13213 if test -f "$additional_libdir/lib$name.$libext"; then
13214 found_dir="$additional_libdir"
13215 found_a="$additional_libdir/lib$name.$libext"
13216 if test -f "$additional_libdir/lib$name.la"; then
13217 found_la="$additional_libdir/lib$name.la"
13222 if test "X$found_dir" = "X"; then
13223 for x in $LDFLAGS $LTLIBINTL; do
13225 acl_save_prefix="$prefix"
13226 prefix="$acl_final_prefix"
13227 acl_save_exec_prefix="$exec_prefix"
13228 exec_prefix="$acl_final_exec_prefix"
13229 eval x=\"$x\"
13230 exec_prefix="$acl_save_exec_prefix"
13231 prefix="$acl_save_prefix"
13233 case "$x" in
13234 -L*)
13235 dir=`echo "X$x" | sed -e 's/^X-L//'`
13236 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13237 found_dir="$dir"
13238 found_so="$dir/lib$name.$shlibext"
13239 if test -f "$dir/lib$name.la"; then
13240 found_la="$dir/lib$name.la"
13242 else
13243 if test -f "$dir/lib$name.$libext"; then
13244 found_dir="$dir"
13245 found_a="$dir/lib$name.$libext"
13246 if test -f "$dir/lib$name.la"; then
13247 found_la="$dir/lib$name.la"
13252 esac
13253 if test "X$found_dir" != "X"; then
13254 break
13256 done
13258 if test "X$found_dir" != "X"; then
13259 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13260 if test "X$found_so" != "X"; then
13261 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13262 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13263 else
13264 haveit=
13265 for x in $ltrpathdirs; do
13266 if test "X$x" = "X$found_dir"; then
13267 haveit=yes
13268 break
13270 done
13271 if test -z "$haveit"; then
13272 ltrpathdirs="$ltrpathdirs $found_dir"
13274 if test "$hardcode_direct" = yes; then
13275 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13276 else
13277 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13278 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13279 haveit=
13280 for x in $rpathdirs; do
13281 if test "X$x" = "X$found_dir"; then
13282 haveit=yes
13283 break
13285 done
13286 if test -z "$haveit"; then
13287 rpathdirs="$rpathdirs $found_dir"
13289 else
13290 haveit=
13291 for x in $LDFLAGS $LIBINTL; do
13293 acl_save_prefix="$prefix"
13294 prefix="$acl_final_prefix"
13295 acl_save_exec_prefix="$exec_prefix"
13296 exec_prefix="$acl_final_exec_prefix"
13297 eval x=\"$x\"
13298 exec_prefix="$acl_save_exec_prefix"
13299 prefix="$acl_save_prefix"
13301 if test "X$x" = "X-L$found_dir"; then
13302 haveit=yes
13303 break
13305 done
13306 if test -z "$haveit"; then
13307 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13309 if test "$hardcode_minus_L" != no; then
13310 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13311 else
13312 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13317 else
13318 if test "X$found_a" != "X"; then
13319 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13320 else
13321 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13324 additional_includedir=
13325 case "$found_dir" in
13326 */lib | */lib/)
13327 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13328 additional_includedir="$basedir/include"
13330 esac
13331 if test "X$additional_includedir" != "X"; then
13332 if test "X$additional_includedir" != "X/usr/include"; then
13333 haveit=
13334 if test "X$additional_includedir" = "X/usr/local/include"; then
13335 if test -n "$GCC"; then
13336 case $host_os in
13337 linux*) haveit=yes;;
13338 esac
13341 if test -z "$haveit"; then
13342 for x in $CPPFLAGS $INCINTL; do
13344 acl_save_prefix="$prefix"
13345 prefix="$acl_final_prefix"
13346 acl_save_exec_prefix="$exec_prefix"
13347 exec_prefix="$acl_final_exec_prefix"
13348 eval x=\"$x\"
13349 exec_prefix="$acl_save_exec_prefix"
13350 prefix="$acl_save_prefix"
13352 if test "X$x" = "X-I$additional_includedir"; then
13353 haveit=yes
13354 break
13356 done
13357 if test -z "$haveit"; then
13358 if test -d "$additional_includedir"; then
13359 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13365 if test -n "$found_la"; then
13366 save_libdir="$libdir"
13367 case "$found_la" in
13368 */* | *\\*) . "$found_la" ;;
13369 *) . "./$found_la" ;;
13370 esac
13371 libdir="$save_libdir"
13372 for dep in $dependency_libs; do
13373 case "$dep" in
13374 -L*)
13375 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13376 if test "X$additional_libdir" != "X/usr/lib"; then
13377 haveit=
13378 if test "X$additional_libdir" = "X/usr/local/lib"; then
13379 if test -n "$GCC"; then
13380 case $host_os in
13381 linux*) haveit=yes;;
13382 esac
13385 if test -z "$haveit"; then
13386 haveit=
13387 for x in $LDFLAGS $LIBINTL; do
13389 acl_save_prefix="$prefix"
13390 prefix="$acl_final_prefix"
13391 acl_save_exec_prefix="$exec_prefix"
13392 exec_prefix="$acl_final_exec_prefix"
13393 eval x=\"$x\"
13394 exec_prefix="$acl_save_exec_prefix"
13395 prefix="$acl_save_prefix"
13397 if test "X$x" = "X-L$additional_libdir"; then
13398 haveit=yes
13399 break
13401 done
13402 if test -z "$haveit"; then
13403 if test -d "$additional_libdir"; then
13404 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13407 haveit=
13408 for x in $LDFLAGS $LTLIBINTL; do
13410 acl_save_prefix="$prefix"
13411 prefix="$acl_final_prefix"
13412 acl_save_exec_prefix="$exec_prefix"
13413 exec_prefix="$acl_final_exec_prefix"
13414 eval x=\"$x\"
13415 exec_prefix="$acl_save_exec_prefix"
13416 prefix="$acl_save_prefix"
13418 if test "X$x" = "X-L$additional_libdir"; then
13419 haveit=yes
13420 break
13422 done
13423 if test -z "$haveit"; then
13424 if test -d "$additional_libdir"; then
13425 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13431 -R*)
13432 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13433 if test "$enable_rpath" != no; then
13434 haveit=
13435 for x in $rpathdirs; do
13436 if test "X$x" = "X$dir"; then
13437 haveit=yes
13438 break
13440 done
13441 if test -z "$haveit"; then
13442 rpathdirs="$rpathdirs $dir"
13444 haveit=
13445 for x in $ltrpathdirs; do
13446 if test "X$x" = "X$dir"; then
13447 haveit=yes
13448 break
13450 done
13451 if test -z "$haveit"; then
13452 ltrpathdirs="$ltrpathdirs $dir"
13456 -l*)
13457 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13459 *.la)
13460 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13463 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13464 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13466 esac
13467 done
13469 else
13470 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13471 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13475 done
13476 done
13477 if test "X$rpathdirs" != "X"; then
13478 if test -n "$hardcode_libdir_separator"; then
13479 alldirs=
13480 for found_dir in $rpathdirs; do
13481 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13482 done
13483 acl_save_libdir="$libdir"
13484 libdir="$alldirs"
13485 eval flag=\"$hardcode_libdir_flag_spec\"
13486 libdir="$acl_save_libdir"
13487 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13488 else
13489 for found_dir in $rpathdirs; do
13490 acl_save_libdir="$libdir"
13491 libdir="$found_dir"
13492 eval flag=\"$hardcode_libdir_flag_spec\"
13493 libdir="$acl_save_libdir"
13494 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13495 done
13498 if test "X$ltrpathdirs" != "X"; then
13499 for found_dir in $ltrpathdirs; do
13500 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13501 done
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13505 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13506 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
13507 $as_echo_n "(cached) " >&6
13508 else
13509 gt_save_CPPFLAGS="$CPPFLAGS"
13510 CPPFLAGS="$CPPFLAGS $INCINTL"
13511 gt_save_LIBS="$LIBS"
13512 LIBS="$LIBS $LIBINTL"
13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h. */
13515 #include <libintl.h>
13516 extern int _nl_msg_cat_cntr;
13517 extern
13518 #ifdef __cplusplus
13520 #endif
13521 const char *_nl_expand_alias ();
13523 main ()
13525 bindtextdomain ("", "");
13526 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13528 return 0;
13530 _ACEOF
13531 if ac_fn_c_try_link "$LINENO"; then :
13532 gt_cv_func_gnugettext2_libintl=yes
13533 else
13534 gt_cv_func_gnugettext2_libintl=no
13536 rm -f core conftest.err conftest.$ac_objext \
13537 conftest$ac_exeext conftest.$ac_ext
13538 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
13539 LIBS="$LIBS $LIBICONV"
13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h. */
13542 #include <libintl.h>
13543 extern int _nl_msg_cat_cntr;
13544 extern
13545 #ifdef __cplusplus
13547 #endif
13548 const char *_nl_expand_alias ();
13550 main ()
13552 bindtextdomain ("", "");
13553 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13555 return 0;
13557 _ACEOF
13558 if ac_fn_c_try_link "$LINENO"; then :
13559 LIBINTL="$LIBINTL $LIBICONV"
13560 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13561 gt_cv_func_gnugettext2_libintl=yes
13564 rm -f core conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13567 CPPFLAGS="$gt_save_CPPFLAGS"
13568 LIBS="$gt_save_LIBS"
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
13571 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
13574 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
13575 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
13576 && test "$PACKAGE" != gettext; }; then
13577 gt_use_preinstalled_gnugettext=yes
13578 else
13579 LIBINTL=
13580 LTLIBINTL=
13581 INCINTL=
13585 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13586 nls_cv_use_gnu_gettext=yes
13590 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13591 INTLOBJS="\$(GETTOBJS)"
13592 BUILD_INCLUDED_LIBINTL=yes
13593 USE_INCLUDED_LIBINTL=yes
13594 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13595 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13596 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13599 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13600 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13601 CATOBJEXT=.gmo
13605 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13606 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13608 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13610 else
13611 USE_NLS=no
13615 if test "$USE_NLS" = "yes"; then
13617 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13618 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13620 $as_echo_n "checking how to link with libintl... " >&6; }
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13622 $as_echo "$LIBINTL" >&6; }
13624 for element in $INCINTL; do
13625 haveit=
13626 for x in $CPPFLAGS; do
13628 acl_save_prefix="$prefix"
13629 prefix="$acl_final_prefix"
13630 acl_save_exec_prefix="$exec_prefix"
13631 exec_prefix="$acl_final_exec_prefix"
13632 eval x=\"$x\"
13633 exec_prefix="$acl_save_exec_prefix"
13634 prefix="$acl_save_prefix"
13636 if test "X$x" = "X$element"; then
13637 haveit=yes
13638 break
13640 done
13641 if test -z "$haveit"; then
13642 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13644 done
13649 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13652 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13656 POSUB=po
13660 if test "$PACKAGE" = gettext; then
13661 BUILD_INCLUDED_LIBINTL=yes
13669 nls_cv_header_intl=
13670 nls_cv_header_libgt=
13672 DATADIRNAME=share
13675 INSTOBJEXT=.mo
13678 GENCAT=gencat
13681 INTL_LIBTOOL_SUFFIX_PREFIX=
13685 INTLLIBS="$LIBINTL"
13692 if test $USE_INCLUDED_LIBINTL = yes; then :
13693 INCINTL=-I\${top_builddir}/intl
13696 if test x$USE_NLS = xyes; then :
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
13699 $as_echo_n "checking for autopoint... " >&6; }
13700 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
13701 if test -n "$autopoint_version"; then :
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
13704 $as_echo "yes ($autopoint_version)" >&6; }
13707 else
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13710 $as_echo "no" >&6; }
13711 USE_NLS=no
13716 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then :
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13718 You need to install GNU gettext/gettext-tools to compile aMule with
13719 i18n support." >&5
13720 $as_echo "$as_me: WARNING:
13721 You need to install GNU gettext/gettext-tools to compile aMule with
13722 i18n support." >&2;}
13723 _mule_warning_9=yes
13724 _mule_has_warnings=yes
13728 if test ${USE_NLS:-no} = yes; then :
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
13731 $as_echo_n "checking for requested languages... " >&6; }
13732 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
13734 if test ${enable_amule_daemon:-no} = yes; then :
13736 if test -z "$LINGUAS"; then :
13737 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
13738 else
13740 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13741 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
13744 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
13746 else
13747 AMULE_DAEMON_MANPAGES=
13752 if test ${enable_amulecmd:-no} = yes; then :
13754 if test -z "$LINGUAS"; then :
13755 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
13756 else
13758 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13759 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
13762 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
13764 else
13765 AMULECMD_MANPAGES=
13770 if test ${enable_webserver:-no} = yes; then :
13772 if test -z "$LINGUAS"; then :
13773 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
13774 else
13776 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13777 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
13780 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
13782 else
13783 WEBSERVER_MANPAGES=
13788 if test ${enable_amule_gui:-no} = yes; then :
13790 if test -z "$LINGUAS"; then :
13791 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
13792 else
13794 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13795 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
13798 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
13800 else
13801 AMULE_GUI_MANPAGES=
13806 if test ${enable_cas:-no} = yes; then :
13808 if test -z "$LINGUAS"; then :
13809 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
13810 else
13812 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13813 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
13816 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
13818 else
13819 CAS_MANPAGES=
13824 if test ${enable_wxcas:-no} = yes; then :
13826 if test -z "$LINGUAS"; then :
13827 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
13828 else
13830 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13831 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
13834 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
13836 else
13837 WXCAS_MANPAGES=
13842 if test ${enable_ed2k:-yes} = yes; then :
13844 if test -z "$LINGUAS"; then :
13845 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
13846 else
13848 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13849 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
13852 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
13854 else
13855 ED2K_MANPAGES=
13860 if test ${enable_alc:-no} = yes; then :
13862 if test -z "$LINGUAS"; then :
13863 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
13864 else
13866 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13867 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
13870 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
13872 else
13873 ALC_MANPAGES=
13878 if test ${enable_alcc:-no} = yes; then :
13880 if test -z "$LINGUAS"; then :
13881 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
13882 else
13884 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13885 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
13888 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
13890 else
13891 ALCC_MANPAGES=
13896 if test ${enable_monolithic:-yes} = yes; then :
13898 if test -z "$LINGUAS"; then :
13899 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
13900 else
13902 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13903 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
13906 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
13908 else
13909 MONOLITHIC_MANPAGES=
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
13914 $as_echo "${LINGUAS:-all}" >&6; }
13920 # Check for bfd.h (to have proper backtraces without using wxExecute)
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd" >&5
13923 $as_echo_n "checking for bfd... " >&6; }
13924 result=no
13925 for bfd_ldadd in "" "${LIBINTL}"; do
13926 mule_backup_LIBS="$LIBS"
13927 mule_backup_LDFLAGS="$LDFLAGS"
13928 LIBS="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
13929 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
13930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13934 #include <ansidecl.h>
13935 #include <bfd.h>
13938 main ()
13941 char *dummy = bfd_errmsg(bfd_get_error());
13944 return 0;
13947 _ACEOF
13948 if ac_fn_c_try_link "$LINENO"; then :
13950 result=yes
13951 BFD_CPPFLAGS="-DHAVE_BFD"
13952 BFD_LIBS="-lbfd -liberty ${bfd_ldadd}"
13953 LIBS="$mule_backup_LIBS"
13954 LDFLAGS="$mule_backup_LDFLAGS"
13955 break
13958 rm -f core conftest.err conftest.$ac_objext \
13959 conftest$ac_exeext conftest.$ac_ext
13960 LIBS="$mule_backup_LIBS"
13961 LDFLAGS="$mule_backup_LDFLAGS"
13962 done
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
13965 $as_echo "$result" >&6; }
13967 if test $result = no; then :
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13969 bfd.h not found or unusable, please install binutils development
13970 package if you are a developer or want to help testing aMule" >&5
13971 $as_echo "$as_me: WARNING:
13972 bfd.h not found or unusable, please install binutils development
13973 package if you are a developer or want to help testing aMule" >&2;}
13974 _mule_warning_10=yes
13975 _mule_has_warnings=yes
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
13982 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13987 #include <execinfo.h>
13990 main ()
13993 void *bt[1];
13994 int n = backtrace(&bt, 1);
13995 const char **bt_syms = backtrace_symbols(bt, n);
13998 return 0;
14001 _ACEOF
14002 if ac_fn_c_try_link "$LINENO"; then :
14005 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14008 $as_echo "yes" >&6; }
14010 else
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14013 $as_echo "no" >&6; }
14016 rm -f core conftest.err conftest.$ac_objext \
14017 conftest$ac_exeext conftest.$ac_ext
14020 # Flush standard test results for speeding cache
14021 cat >confcache <<\_ACEOF
14022 # This file is a shell script that caches the results of configure
14023 # tests run on this system so they can be shared between configure
14024 # scripts and configure runs, see configure's option --config-cache.
14025 # It is not useful on other systems. If it contains results you don't
14026 # want to keep, you may remove or edit it.
14028 # config.status only pays attention to the cache file if you give it
14029 # the --recheck option to rerun configure.
14031 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14032 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14033 # following values.
14035 _ACEOF
14037 # The following way of writing the cache mishandles newlines in values,
14038 # but we know of no workaround that is simple, portable, and efficient.
14039 # So, we kill variables containing newlines.
14040 # Ultrix sh set writes to stderr and can't be redirected directly,
14041 # and sets the high bit in the cache file unless we assign to the vars.
14043 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14044 eval ac_val=\$$ac_var
14045 case $ac_val in #(
14046 *${as_nl}*)
14047 case $ac_var in #(
14048 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14049 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14050 esac
14051 case $ac_var in #(
14052 _ | IFS | as_nl) ;; #(
14053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14054 *) { eval $ac_var=; unset $ac_var;} ;;
14055 esac ;;
14056 esac
14057 done
14059 (set) 2>&1 |
14060 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14061 *${as_nl}ac_space=\ *)
14062 # `set' does not quote correctly, so add quotes: double-quote
14063 # substitution turns \\\\ into \\, and sed turns \\ into \.
14064 sed -n \
14065 "s/'/'\\\\''/g;
14066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14067 ;; #(
14069 # `set' quotes correctly as required by POSIX, so do not add quotes.
14070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14072 esac |
14073 sort
14075 sed '
14076 /^ac_cv_env_/b end
14077 t clear
14078 :clear
14079 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14080 t end
14081 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14082 :end' >>confcache
14083 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14084 if test -w "$cache_file"; then
14085 test "x$cache_file" != "x/dev/null" &&
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14087 $as_echo "$as_me: updating cache $cache_file" >&6;}
14088 cat confcache >$cache_file
14089 else
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14091 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14094 rm -f confcache
14096 # Other tests
14097 # aMule options
14099 # Check whether --enable-debug was given.
14100 if test "${enable_debug+set}" = set; then :
14101 enableval=$enable_debug;
14105 # Check whether --enable-profile was given.
14106 if test "${enable_profile+set}" = set; then :
14107 enableval=$enable_profile;
14111 # Check whether --enable-optimize was given.
14112 if test "${enable_optimize+set}" = set; then :
14113 enableval=$enable_optimize;
14118 if test ${enable_debug:-yes} = yes; then :
14120 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
14122 MULECFLAGS="$MULECFLAGS -g"
14123 MULECXXFLAGS="$MULECXXFLAGS -g"
14125 if test ${GLIBCXX:-no} = yes; then :
14126 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
14128 if test ${GCC:-no} = yes; then :
14130 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
14131 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
14134 if test ${SYS:-unknown} = win32; then :
14135 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
14138 else
14140 if test ${GCC:-no} = yes; then :
14142 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
14143 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
14149 if test ${enable_profile:-no} = yes; then :
14152 MULECFLAGS="$MULECFLAGS -pg"
14153 MULECXXFLAGS="$MULECXXFLAGS -pg"
14155 MULELDFLAGS="$MULELDFLAGS -pg"
14159 if test ${enable_optimize:-no} = yes; then :
14161 MULECFLAGS="$MULECFLAGS -O2"
14162 MULECXXFLAGS="$MULECXXFLAGS -O2"
14166 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
14169 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
14171 $as_echo_n "checking for docdir... " >&6; }
14172 if test -z "$docdir"; then :
14173 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
14176 $as_echo "$docdir" >&6; }
14178 # Try to set the SVN checkout-date
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
14180 $as_echo_n "checking for SVNDATE... " >&6; }
14181 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
14182 then
14183 svndate="rev. `cat $srcdir/.svn-revision`"
14184 elif test -d $srcdir/.svn # SVNDATE for svn
14185 then
14186 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
14189 $as_echo "${svndate:-None required}" >&6; }
14190 if test -n "$svndate"; then :
14193 cat >>confdefs.h <<_ACEOF
14194 #define SVNDATE "$svndate"
14195 _ACEOF
14197 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
14200 SVNDATE=$svndate
14204 # Check whether --with-denoise-level was given.
14205 if test "${with_denoise_level+set}" = set; then :
14206 withval=$with_denoise_level;
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
14211 $as_echo_n "checking denoising level... " >&6; }
14212 if test ${with_denoise_level:-5} = yes; then :
14213 with_denoise_level=5
14215 if test ${with_denoise_level:-5} = no; then :
14216 with_denoise_level=0
14218 if test ${with_denoise_level:-5} -gt 4; then :
14219 if test "${svndate:+set}" = "set"; then :
14220 with_denoise_level=0
14221 else
14222 with_denoise_level=4
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
14226 $as_echo "$with_denoise_level" >&6; }
14228 ac_config_commands="$ac_config_commands denoiser"
14232 if test ${enable_plasmamule:-no} = yes; then :
14235 if test -z ${QT_MOC}; then :
14237 for ac_prog in moc-qt4 moc
14239 # Extract the first word of "$ac_prog", so it can be a program name with args.
14240 set dummy $ac_prog; ac_word=$2
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14242 $as_echo_n "checking for $ac_word... " >&6; }
14243 if test "${ac_cv_path_QT_MOC+set}" = set; then :
14244 $as_echo_n "(cached) " >&6
14245 else
14246 case $QT_MOC in
14247 [\\/]* | ?:[\\/]*)
14248 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
14251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14252 for as_dir in $PATH
14254 IFS=$as_save_IFS
14255 test -z "$as_dir" && as_dir=.
14256 for ac_exec_ext in '' $ac_executable_extensions; do
14257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14258 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
14259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14260 break 2
14262 done
14263 done
14264 IFS=$as_save_IFS
14267 esac
14269 QT_MOC=$ac_cv_path_QT_MOC
14270 if test -n "$QT_MOC"; then
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
14272 $as_echo "$QT_MOC" >&6; }
14273 else
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14275 $as_echo "no" >&6; }
14279 test -n "$QT_MOC" && break
14280 done
14282 if test -z ${QT_MOC}; then :
14284 echo moc not found
14285 exit 1
14289 else
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
14292 $as_echo_n "checking for moc... " >&6; }
14293 if test -x ${QT_MOC}; then :
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
14296 $as_echo "${QT_MOC}" >&6; }
14299 else
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
14302 $as_echo "\"not found\"" >&6; }
14303 QT_MOC="not found"
14304 exit 1
14311 if test "${QT_MOC}" != "not found"; then :
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
14314 $as_echo_n "checking for moc version >= 4... " >&6; }
14315 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
14316 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
14319 $as_echo "found ${QT_MOC_VERSION}" >&6; }
14321 else
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
14324 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
14325 QT_MOC="not found"
14326 exit 1
14332 if test "${QT_MOC}" = "not found"; then :
14333 enable_plasmamule=disabled
14336 if test ${enable_plasmamule:-no} = yes; then :
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
14341 $as_echo_n "checking for qt... " >&6; }
14342 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14345 $as_echo "found" >&6; }
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
14347 $as_echo_n "checking for qt core cflags... " >&6; }
14348 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
14350 $as_echo "$QT_CORE_CFLAGS" >&6; }
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
14352 $as_echo_n "checking for qt core libs... " >&6; }
14353 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
14355 $as_echo "$QT_CORE_LIBS" >&6; }
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
14357 $as_echo_n "checking for qt gui cflags... " >&6; }
14358 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
14360 $as_echo "$QT_GUI_CFLAGS" >&6; }
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
14362 $as_echo_n "checking for qt gui libs... " >&6; }
14363 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
14365 $as_echo "$QT_GUI_LIBS" >&6; }
14367 else
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14369 $as_echo "not found" >&6; }
14370 exit 1
14378 if test -z "${QT_CORE_CXXFLAGS}"; then :
14379 enable_plasmamule=disabled
14384 if test ${enable_plasmamule:-no} = yes; then :
14387 if test -z ${KDE4_CONFIG}; then :
14389 # Extract the first word of "kde4-config", so it can be a program name with args.
14390 set dummy kde4-config; ac_word=$2
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14392 $as_echo_n "checking for $ac_word... " >&6; }
14393 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
14394 $as_echo_n "(cached) " >&6
14395 else
14396 case $KDE4_CONFIG in
14397 [\\/]* | ?:[\\/]*)
14398 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
14401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14402 for as_dir in $PATH
14404 IFS=$as_save_IFS
14405 test -z "$as_dir" && as_dir=.
14406 for ac_exec_ext in '' $ac_executable_extensions; do
14407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14408 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14410 break 2
14412 done
14413 done
14414 IFS=$as_save_IFS
14417 esac
14419 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
14420 if test -n "$KDE4_CONFIG"; then
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
14422 $as_echo "$KDE4_CONFIG" >&6; }
14423 else
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14425 $as_echo "no" >&6; }
14430 else
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
14433 $as_echo_n "checking for kde4-config... " >&6; }
14434 if test ! -x KDE4_CONFIG; then :
14436 KDE4_CONFIG="not found"
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14438 $as_echo "not found" >&6; }
14439 exit 1
14445 if test "${KDE4_CONFIG}" != "not found"; then :
14447 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
14448 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
14451 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
14453 else
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
14456 $as_echo "at least version 4 required" >&6; }
14457 exit 1
14461 else
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14464 $as_echo "not found" >&6; }
14465 exit 1
14470 if test "${KDE4_CONFIG}" = "not found"; then :
14471 enable_plasmamule=disabled
14476 if test ${enable_plasmamule:-no} = yes; then :
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
14480 $as_echo_n "checking for kde4 headers... " >&6; }
14481 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
14483 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
14485 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
14488 $as_echo "${KDE_HEADER_DIR}" >&6; }
14490 else
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
14493 $as_echo "dataengine.h not found" >&6; }
14494 exit 1
14498 else
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
14501 $as_echo "kdirwatch.h not found" >&6; }
14502 exit 1
14507 if test -z ${KDE_HEADER_DIR}; then :
14508 enable_plasmamule=disabled
14513 if test ${enable_plasmamule:-no} = yes; then :
14515 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
14516 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
14521 $as_echo_n "checking for kde4 applinks Path... " >&6; }
14522 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14524 KDE_IN_HOME="yes"
14527 if test ${KDE_IN_HOME} = "yes"; then :
14529 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14531 else
14533 if test -n ${prefix}; then :
14535 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
14536 if test -n ${KDE_APPLNK_PATH}; then :
14538 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
14542 else
14544 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
14550 $as_echo "${KDE_APPLNK_PATH}" >&6; }
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
14556 $as_echo_n "checking for kde4 services Path... " >&6; }
14557 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14559 KDE_IN_HOME="yes"
14562 if test ${KDE_IN_HOME} = "yes"; then :
14564 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14566 else
14568 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
14572 $as_echo "${KDE_SERVICE_PATH}" >&6; }
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
14578 $as_echo_n "checking for kde4 plugins Path... " >&6; }
14579 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14581 KDE_IN_HOME="yes"
14584 if test ${KDE_IN_HOME} = "yes"; then :
14586 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14588 else
14590 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
14594 $as_echo "${KDE_MODULE_PATH}" >&6; }
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
14600 $as_echo_n "checking for kde4 icons Path... " >&6; }
14601 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14603 KDE_IN_HOME="yes"
14606 if test ${KDE_IN_HOME} = "yes"; then :
14608 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14610 else
14612 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
14615 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
14617 $as_echo "${KDE_ICON_PATH}" >&6; }
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
14623 $as_echo_n "checking for location for mime-type installation... " >&6; }
14624 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14626 KDE_IN_HOME="yes"
14629 if test ${KDE_IN_HOME} = "yes"; then :
14631 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14633 else
14635 if test -n ${prefix}; then :
14637 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
14638 if test -n ${KDE_MIME_PATH}; then :
14640 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
14644 else
14646 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
14652 $as_echo "${KDE_MIME_PATH}" >&6; }
14656 else
14657 enable_plasmamule=disabled
14662 if test ${enable_plasmamule:-no} = yes; then :
14664 if test -z ${DEB_HOST_ARCH}; then :
14667 for ac_prog in kbuildsycoca4 kbuildsycoca
14669 # Extract the first word of "$ac_prog", so it can be a program name with args.
14670 set dummy $ac_prog; ac_word=$2
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14672 $as_echo_n "checking for $ac_word... " >&6; }
14673 if test "${ac_cv_path_KBUILDSYCOCA+set}" = set; then :
14674 $as_echo_n "(cached) " >&6
14675 else
14676 case $KBUILDSYCOCA in
14677 [\\/]* | ?:[\\/]*)
14678 ac_cv_path_KBUILDSYCOCA="$KBUILDSYCOCA" # Let the user override the test with a path.
14681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14682 for as_dir in $PATH
14684 IFS=$as_save_IFS
14685 test -z "$as_dir" && as_dir=.
14686 for ac_exec_ext in '' $ac_executable_extensions; do
14687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14688 ac_cv_path_KBUILDSYCOCA="$as_dir/$ac_word$ac_exec_ext"
14689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14690 break 2
14692 done
14693 done
14694 IFS=$as_save_IFS
14697 esac
14699 KBUILDSYCOCA=$ac_cv_path_KBUILDSYCOCA
14700 if test -n "$KBUILDSYCOCA"; then
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KBUILDSYCOCA" >&5
14702 $as_echo "$KBUILDSYCOCA" >&6; }
14703 else
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14705 $as_echo "no" >&6; }
14709 test -n "$KBUILDSYCOCA" && break
14710 done
14713 if test -z ${KBUILDSYCOCA}; then :
14715 echo "No tool for KDE Systemcache Management found"
14716 exit 1
14722 # Extract the first word of "update-mime-database", so it can be a program name with args.
14723 set dummy update-mime-database; ac_word=$2
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14725 $as_echo_n "checking for $ac_word... " >&6; }
14726 if test "${ac_cv_path_UPDATE_MIME_DATABASE+set}" = set; then :
14727 $as_echo_n "(cached) " >&6
14728 else
14729 case $UPDATE_MIME_DATABASE in
14730 [\\/]* | ?:[\\/]*)
14731 ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
14734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14735 for as_dir in $PATH
14737 IFS=$as_save_IFS
14738 test -z "$as_dir" && as_dir=.
14739 for ac_exec_ext in '' $ac_executable_extensions; do
14740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14741 ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
14742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14743 break 2
14745 done
14746 done
14747 IFS=$as_save_IFS
14750 esac
14752 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
14753 if test -n "$UPDATE_MIME_DATABASE"; then
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
14755 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
14756 else
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 $as_echo "no" >&6; }
14763 if test -z ${UPDATE_MIME_DATABASE}; then :
14765 echo "No tool for MIME Datanase Management found"
14766 exit 1
14772 USER_INSTALL_HOOK="USER_INSTALL"
14780 if test ${enable_debug:-yes} = yes; then :
14782 DEBUGFLAG="-D__DEBUG__"
14789 if test x$SYS = xwin32; then
14790 SYS_WIN32_TRUE=
14791 SYS_WIN32_FALSE='#'
14792 else
14793 SYS_WIN32_TRUE='#'
14794 SYS_WIN32_FALSE=
14797 if test x$SYS = xwin32 -a "$RC" != ":"; then
14798 NEED_RC_TRUE=
14799 NEED_RC_FALSE='#'
14800 else
14801 NEED_RC_TRUE='#'
14802 NEED_RC_FALSE=
14805 if test x$SYS = xdarwin; then
14806 NEED_CORESERVICES_TRUE=
14807 NEED_CORESERVICES_FALSE='#'
14808 else
14809 NEED_CORESERVICES_TRUE='#'
14810 NEED_CORESERVICES_FALSE=
14813 if test x$USE_NLS = xyes; then
14814 COMPILE_NLS_TRUE=
14815 COMPILE_NLS_FALSE='#'
14816 else
14817 COMPILE_NLS_TRUE='#'
14818 COMPILE_NLS_FALSE=
14821 if test x$HAVE_FLEX_EXTENDED = xyes; then
14822 GENERATE_FLEX_HEADER_TRUE=
14823 GENERATE_FLEX_HEADER_FALSE='#'
14824 else
14825 GENERATE_FLEX_HEADER_TRUE='#'
14826 GENERATE_FLEX_HEADER_FALSE=
14829 if test x$INSTALL_SKINS = xyes; then
14830 INSTALL_SKINS_TRUE=
14831 INSTALL_SKINS_FALSE='#'
14832 else
14833 INSTALL_SKINS_TRUE='#'
14834 INSTALL_SKINS_FALSE=
14837 if test ${enable_plasmamule:-no} = yes; then
14838 PLASMAMULE_TRUE=
14839 PLASMAMULE_FALSE='#'
14840 else
14841 PLASMAMULE_TRUE='#'
14842 PLASMAMULE_FALSE=
14846 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
14847 COMPILE_LIB_COMMON_TRUE=
14848 COMPILE_LIB_COMMON_FALSE='#'
14849 else
14850 COMPILE_LIB_COMMON_TRUE='#'
14851 COMPILE_LIB_COMMON_FALSE=
14854 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
14855 COMPILE_LIB_EC_TRUE=
14856 COMPILE_LIB_EC_FALSE='#'
14857 else
14858 COMPILE_LIB_EC_TRUE='#'
14859 COMPILE_LIB_EC_FALSE=
14863 # Check for readline library
14864 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
14867 $as_echo_n "checking for a readline compatible library... " >&6; }
14868 if test "${vl_cv_lib_readline+set}" = set; then :
14869 $as_echo_n "(cached) " >&6
14870 else
14872 ORIG_LIBS="$LIBS"
14873 for readline_lib in readline edit editline; do
14874 for termcap_lib in "" termcap curses ncurses; do
14875 if test -z "$termcap_lib"; then
14876 TRY_LIB="-l$readline_lib"
14877 else
14878 TRY_LIB="-l$readline_lib -l$termcap_lib"
14880 LIBS="$ORIG_LIBS $TRY_LIB"
14881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14882 /* end confdefs.h. */
14884 /* Override any GCC internal prototype to avoid an error.
14885 Use char because int might match the return type of a GCC
14886 builtin and then its argument prototype would still apply. */
14887 #ifdef __cplusplus
14888 extern "C"
14889 #endif
14890 char readline ();
14892 main ()
14894 return readline ();
14896 return 0;
14898 _ACEOF
14899 if ac_fn_c_try_link "$LINENO"; then :
14900 vl_cv_lib_readline="$TRY_LIB"
14902 rm -f core conftest.err conftest.$ac_objext \
14903 conftest$ac_exeext conftest.$ac_ext
14904 if test -n "$vl_cv_lib_readline"; then
14905 break
14907 done
14908 if test -n "$vl_cv_lib_readline"; then
14909 break
14911 done
14912 if test -z "$vl_cv_lib_readline"; then
14913 vl_cv_lib_readline="no"
14914 LIBS="$ORIG_LIBS"
14915 READLINE_LIBS=""
14916 else
14917 READLINE_LIBS="$vl_cv_lib_readline"
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
14922 $as_echo "$vl_cv_lib_readline" >&6; }
14924 if test "$vl_cv_lib_readline" != "no"; then
14926 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
14928 for ac_header in readline.h readline/readline.h
14929 do :
14930 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14931 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14932 eval as_val=\$$as_ac_Header
14933 if test "x$as_val" = x""yes; then :
14934 cat >>confdefs.h <<_ACEOF
14935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14936 _ACEOF
14940 done
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
14943 $as_echo_n "checking whether readline supports history... " >&6; }
14944 if test "${vl_cv_lib_readline_history+set}" = set; then :
14945 $as_echo_n "(cached) " >&6
14946 else
14948 vl_cv_lib_readline_history="no"
14949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14950 /* end confdefs.h. */
14952 /* Override any GCC internal prototype to avoid an error.
14953 Use char because int might match the return type of a GCC
14954 builtin and then its argument prototype would still apply. */
14955 #ifdef __cplusplus
14956 extern "C"
14957 #endif
14958 char add_history ();
14960 main ()
14962 return add_history ();
14964 return 0;
14966 _ACEOF
14967 if ac_fn_c_try_link "$LINENO"; then :
14968 vl_cv_lib_readline_history="yes"
14970 rm -f core conftest.err conftest.$ac_objext \
14971 conftest$ac_exeext conftest.$ac_ext
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
14975 $as_echo "$vl_cv_lib_readline_history" >&6; }
14976 if test "$vl_cv_lib_readline_history" = "yes"; then
14978 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
14980 for ac_header in history.h readline/history.h
14981 do :
14982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14983 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14984 eval as_val=\$$as_ac_Header
14985 if test "x$as_val" = x""yes; then :
14986 cat >>confdefs.h <<_ACEOF
14987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14988 _ACEOF
14992 done
14997 LIBS="$ORIG_LIBS"
15001 if test ${PLASMAMULE:-no} = yes; then :
15004 if test -z ${QT_MOC}; then :
15006 for ac_prog in moc-qt4 moc
15008 # Extract the first word of "$ac_prog", so it can be a program name with args.
15009 set dummy $ac_prog; ac_word=$2
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15011 $as_echo_n "checking for $ac_word... " >&6; }
15012 if test "${ac_cv_path_QT_MOC+set}" = set; then :
15013 $as_echo_n "(cached) " >&6
15014 else
15015 case $QT_MOC in
15016 [\\/]* | ?:[\\/]*)
15017 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
15020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15021 for as_dir in $PATH
15023 IFS=$as_save_IFS
15024 test -z "$as_dir" && as_dir=.
15025 for ac_exec_ext in '' $ac_executable_extensions; do
15026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15027 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
15028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15029 break 2
15031 done
15032 done
15033 IFS=$as_save_IFS
15036 esac
15038 QT_MOC=$ac_cv_path_QT_MOC
15039 if test -n "$QT_MOC"; then
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15041 $as_echo "$QT_MOC" >&6; }
15042 else
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15044 $as_echo "no" >&6; }
15048 test -n "$QT_MOC" && break
15049 done
15051 if test -z ${QT_MOC}; then :
15053 echo moc not found
15054 exit 1
15058 else
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15061 $as_echo_n "checking for moc... " >&6; }
15062 if test -x ${QT_MOC}; then :
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15065 $as_echo "${QT_MOC}" >&6; }
15068 else
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15071 $as_echo "\"not found\"" >&6; }
15072 QT_MOC="not found"
15073 exit 1
15080 if test "${QT_MOC}" != "not found"; then :
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15083 $as_echo_n "checking for moc version >= 4... " >&6; }
15084 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15085 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15088 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15090 else
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15093 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15094 QT_MOC="not found"
15095 exit 1
15101 if test "${QT_MOC}" = "not found"; then :
15102 enable_plasmamule=disabled
15105 if test ${enable_plasmamule:-no} = yes; then :
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15110 $as_echo_n "checking for qt... " >&6; }
15111 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15114 $as_echo "found" >&6; }
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15116 $as_echo_n "checking for qt core cflags... " >&6; }
15117 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15119 $as_echo "$QT_CORE_CFLAGS" >&6; }
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15121 $as_echo_n "checking for qt core libs... " >&6; }
15122 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15124 $as_echo "$QT_CORE_LIBS" >&6; }
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15126 $as_echo_n "checking for qt gui cflags... " >&6; }
15127 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15129 $as_echo "$QT_GUI_CFLAGS" >&6; }
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15131 $as_echo_n "checking for qt gui libs... " >&6; }
15132 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15134 $as_echo "$QT_GUI_LIBS" >&6; }
15136 else
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15138 $as_echo "not found" >&6; }
15139 exit 1
15147 if test -z "${QT_CORE_CXXFLAGS}"; then :
15148 enable_plasmamule=disabled
15153 if test ${enable_plasmamule:-no} = yes; then :
15156 if test -z ${KDE4_CONFIG}; then :
15158 # Extract the first word of "kde4-config", so it can be a program name with args.
15159 set dummy kde4-config; ac_word=$2
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15161 $as_echo_n "checking for $ac_word... " >&6; }
15162 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
15163 $as_echo_n "(cached) " >&6
15164 else
15165 case $KDE4_CONFIG in
15166 [\\/]* | ?:[\\/]*)
15167 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
15170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15171 for as_dir in $PATH
15173 IFS=$as_save_IFS
15174 test -z "$as_dir" && as_dir=.
15175 for ac_exec_ext in '' $ac_executable_extensions; do
15176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15177 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15179 break 2
15181 done
15182 done
15183 IFS=$as_save_IFS
15186 esac
15188 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
15189 if test -n "$KDE4_CONFIG"; then
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15191 $as_echo "$KDE4_CONFIG" >&6; }
15192 else
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15194 $as_echo "no" >&6; }
15199 else
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15202 $as_echo_n "checking for kde4-config... " >&6; }
15203 if test ! -x KDE4_CONFIG; then :
15205 KDE4_CONFIG="not found"
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15207 $as_echo "not found" >&6; }
15208 exit 1
15214 if test "${KDE4_CONFIG}" != "not found"; then :
15216 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15217 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15220 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15222 else
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
15225 $as_echo "at least version 4 required" >&6; }
15226 exit 1
15230 else
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15233 $as_echo "not found" >&6; }
15234 exit 1
15239 if test "${KDE4_CONFIG}" = "not found"; then :
15240 enable_plasmamule=disabled
15245 if test ${enable_plasmamule:-no} = yes; then :
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
15249 $as_echo_n "checking for kde4 headers... " >&6; }
15250 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15252 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15254 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
15257 $as_echo "${KDE_HEADER_DIR}" >&6; }
15259 else
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
15262 $as_echo "dataengine.h not found" >&6; }
15263 exit 1
15267 else
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
15270 $as_echo "kdirwatch.h not found" >&6; }
15271 exit 1
15276 if test -z ${KDE_HEADER_DIR}; then :
15277 enable_plasmamule=disabled
15282 if test ${enable_plasmamule:-no} = yes; then :
15284 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15285 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
15290 $as_echo_n "checking for kde4 applinks Path... " >&6; }
15291 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15293 KDE_IN_HOME="yes"
15296 if test ${KDE_IN_HOME} = "yes"; then :
15298 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15300 else
15302 if test -n ${prefix}; then :
15304 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
15305 if test -n ${KDE_APPLNK_PATH}; then :
15307 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15311 else
15313 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
15319 $as_echo "${KDE_APPLNK_PATH}" >&6; }
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
15325 $as_echo_n "checking for kde4 services Path... " >&6; }
15326 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15328 KDE_IN_HOME="yes"
15331 if test ${KDE_IN_HOME} = "yes"; then :
15333 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15335 else
15337 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
15341 $as_echo "${KDE_SERVICE_PATH}" >&6; }
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
15347 $as_echo_n "checking for kde4 plugins Path... " >&6; }
15348 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15350 KDE_IN_HOME="yes"
15353 if test ${KDE_IN_HOME} = "yes"; then :
15355 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15357 else
15359 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
15363 $as_echo "${KDE_MODULE_PATH}" >&6; }
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
15369 $as_echo_n "checking for kde4 icons Path... " >&6; }
15370 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15372 KDE_IN_HOME="yes"
15375 if test ${KDE_IN_HOME} = "yes"; then :
15377 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15379 else
15381 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
15384 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
15386 $as_echo "${KDE_ICON_PATH}" >&6; }
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
15392 $as_echo_n "checking for location for mime-type installation... " >&6; }
15393 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15395 KDE_IN_HOME="yes"
15398 if test ${KDE_IN_HOME} = "yes"; then :
15400 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15402 else
15404 if test -n ${prefix}; then :
15406 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
15407 if test -n ${KDE_MIME_PATH}; then :
15409 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15413 else
15415 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
15421 $as_echo "${KDE_MIME_PATH}" >&6; }
15425 else
15426 enable_plasmamule=disabled
15431 if test ${enable_plasmamule:-no} = yes; then :
15433 if test -z ${DEB_HOST_ARCH}; then :
15436 for ac_prog in kbuildsycoca4 kbuildsycoca
15438 # Extract the first word of "$ac_prog", so it can be a program name with args.
15439 set dummy $ac_prog; ac_word=$2
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15441 $as_echo_n "checking for $ac_word... " >&6; }
15442 if test "${ac_cv_path_KBUILDSYCOCA+set}" = set; then :
15443 $as_echo_n "(cached) " >&6
15444 else
15445 case $KBUILDSYCOCA in
15446 [\\/]* | ?:[\\/]*)
15447 ac_cv_path_KBUILDSYCOCA="$KBUILDSYCOCA" # Let the user override the test with a path.
15450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15451 for as_dir in $PATH
15453 IFS=$as_save_IFS
15454 test -z "$as_dir" && as_dir=.
15455 for ac_exec_ext in '' $ac_executable_extensions; do
15456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15457 ac_cv_path_KBUILDSYCOCA="$as_dir/$ac_word$ac_exec_ext"
15458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15459 break 2
15461 done
15462 done
15463 IFS=$as_save_IFS
15466 esac
15468 KBUILDSYCOCA=$ac_cv_path_KBUILDSYCOCA
15469 if test -n "$KBUILDSYCOCA"; then
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KBUILDSYCOCA" >&5
15471 $as_echo "$KBUILDSYCOCA" >&6; }
15472 else
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15474 $as_echo "no" >&6; }
15478 test -n "$KBUILDSYCOCA" && break
15479 done
15482 if test -z ${KBUILDSYCOCA}; then :
15484 echo "No tool for KDE Systemcache Management found"
15485 exit 1
15491 # Extract the first word of "update-mime-database", so it can be a program name with args.
15492 set dummy update-mime-database; ac_word=$2
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15494 $as_echo_n "checking for $ac_word... " >&6; }
15495 if test "${ac_cv_path_UPDATE_MIME_DATABASE+set}" = set; then :
15496 $as_echo_n "(cached) " >&6
15497 else
15498 case $UPDATE_MIME_DATABASE in
15499 [\\/]* | ?:[\\/]*)
15500 ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
15503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15504 for as_dir in $PATH
15506 IFS=$as_save_IFS
15507 test -z "$as_dir" && as_dir=.
15508 for ac_exec_ext in '' $ac_executable_extensions; do
15509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15510 ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
15511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15512 break 2
15514 done
15515 done
15516 IFS=$as_save_IFS
15519 esac
15521 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
15522 if test -n "$UPDATE_MIME_DATABASE"; then
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
15524 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
15525 else
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15527 $as_echo "no" >&6; }
15532 if test -z ${UPDATE_MIME_DATABASE}; then :
15534 echo "No tool for MIME Datanase Management found"
15535 exit 1
15541 USER_INSTALL_HOOK="USER_INSTALL"
15549 if test ${enable_debug:-yes} = yes; then :
15551 DEBUGFLAG="-D__DEBUG__"
15558 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
15561 # Check whether --enable-ccache was given.
15562 if test "${enable_ccache+set}" = set; then :
15563 enableval=$enable_ccache;
15569 # Check whether --with-ccache-prefix was given.
15570 if test "${with_ccache_prefix+set}" = set; then :
15571 withval=$with_ccache_prefix;
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
15576 $as_echo_n "checking whether ccache support should be added... " >&6; }
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15578 $as_echo "${enable_ccache:-no}" >&6; }
15580 if test ${enable_ccache:-no} = yes; then :
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
15583 $as_echo_n "checking for ccache presence... " >&6; }
15584 if test -z "$with_ccache_prefix"; then :
15586 ccache_full=`which ccache`
15587 with_ccache_prefix=`dirname ${ccache_full}`
15590 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then :
15592 CC="$with_ccache_prefix/ccache $CC"
15593 CXX="$with_ccache_prefix/ccache $CXX"
15594 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
15596 else
15597 enable_ccache=no
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15600 $as_echo "${enable_ccache:-no}" >&6; }
15605 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"
15607 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
15609 if test x$SYS = xwin32; then :
15610 ac_config_files="$ac_config_files version.rc"
15613 cat >confcache <<\_ACEOF
15614 # This file is a shell script that caches the results of configure
15615 # tests run on this system so they can be shared between configure
15616 # scripts and configure runs, see configure's option --config-cache.
15617 # It is not useful on other systems. If it contains results you don't
15618 # want to keep, you may remove or edit it.
15620 # config.status only pays attention to the cache file if you give it
15621 # the --recheck option to rerun configure.
15623 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15624 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15625 # following values.
15627 _ACEOF
15629 # The following way of writing the cache mishandles newlines in values,
15630 # but we know of no workaround that is simple, portable, and efficient.
15631 # So, we kill variables containing newlines.
15632 # Ultrix sh set writes to stderr and can't be redirected directly,
15633 # and sets the high bit in the cache file unless we assign to the vars.
15635 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15636 eval ac_val=\$$ac_var
15637 case $ac_val in #(
15638 *${as_nl}*)
15639 case $ac_var in #(
15640 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15641 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15642 esac
15643 case $ac_var in #(
15644 _ | IFS | as_nl) ;; #(
15645 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15646 *) { eval $ac_var=; unset $ac_var;} ;;
15647 esac ;;
15648 esac
15649 done
15651 (set) 2>&1 |
15652 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15653 *${as_nl}ac_space=\ *)
15654 # `set' does not quote correctly, so add quotes: double-quote
15655 # substitution turns \\\\ into \\, and sed turns \\ into \.
15656 sed -n \
15657 "s/'/'\\\\''/g;
15658 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15659 ;; #(
15661 # `set' quotes correctly as required by POSIX, so do not add quotes.
15662 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15664 esac |
15665 sort
15667 sed '
15668 /^ac_cv_env_/b end
15669 t clear
15670 :clear
15671 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15672 t end
15673 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15674 :end' >>confcache
15675 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15676 if test -w "$cache_file"; then
15677 test "x$cache_file" != "x/dev/null" &&
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15679 $as_echo "$as_me: updating cache $cache_file" >&6;}
15680 cat confcache >$cache_file
15681 else
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15683 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15686 rm -f confcache
15688 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15689 # Let make expand exec_prefix.
15690 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15692 DEFS=-DHAVE_CONFIG_H
15694 ac_libobjs=
15695 ac_ltlibobjs=
15696 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15697 # 1. Remove the extension, and $U if already installed.
15698 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15699 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15700 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15701 # will be set to the directory where LIBOBJS objects are built.
15702 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15703 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15704 done
15705 LIBOBJS=$ac_libobjs
15707 LTLIBOBJS=$ac_ltlibobjs
15710 if test -n "$EXEEXT"; then
15711 am__EXEEXT_TRUE=
15712 am__EXEEXT_FALSE='#'
15713 else
15714 am__EXEEXT_TRUE='#'
15715 am__EXEEXT_FALSE=
15718 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15719 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15722 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15723 as_fn_error "conditional \"AMDEP\" was never defined.
15724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15726 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15727 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15730 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15731 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15734 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
15735 as_fn_error "conditional \"MONOLITHIC\" was never defined.
15736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15738 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
15739 as_fn_error "conditional \"AMULE_DAEMON\" was never defined.
15740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15742 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
15743 as_fn_error "conditional \"COMPILE_CMD\" was never defined.
15744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15746 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
15747 as_fn_error "conditional \"WEB\" was never defined.
15748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15750 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
15751 as_fn_error "conditional \"AMULE_GUI\" was never defined.
15752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15754 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
15755 as_fn_error "conditional \"CAS\" was never defined.
15756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15758 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
15759 as_fn_error "conditional \"WXCAS\" was never defined.
15760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15762 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
15763 as_fn_error "conditional \"ED2K\" was never defined.
15764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15766 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
15767 as_fn_error "conditional \"ALC\" was never defined.
15768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15770 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
15771 as_fn_error "conditional \"ALCC\" was never defined.
15772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15774 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
15775 as_fn_error "conditional \"XAS\" was never defined.
15776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15778 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
15779 as_fn_error "conditional \"FILEVIEW\" was never defined.
15780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15782 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
15783 as_fn_error "conditional \"SYS_WIN32\" was never defined.
15784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15786 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
15787 as_fn_error "conditional \"NEED_RC\" was never defined.
15788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15790 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
15791 as_fn_error "conditional \"NEED_CORESERVICES\" was never defined.
15792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15794 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
15795 as_fn_error "conditional \"COMPILE_NLS\" was never defined.
15796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15798 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
15799 as_fn_error "conditional \"GENERATE_FLEX_HEADER\" was never defined.
15800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15802 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
15803 as_fn_error "conditional \"INSTALL_SKINS\" was never defined.
15804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15806 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
15807 as_fn_error "conditional \"PLASMAMULE\" was never defined.
15808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15810 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
15811 as_fn_error "conditional \"COMPILE_LIB_COMMON\" was never defined.
15812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15814 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
15815 as_fn_error "conditional \"COMPILE_LIB_EC\" was never defined.
15816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15819 : ${CONFIG_STATUS=./config.status}
15820 ac_write_fail=0
15821 ac_clean_files_save=$ac_clean_files
15822 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15824 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15825 as_write_fail=0
15826 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15827 #! $SHELL
15828 # Generated by $as_me.
15829 # Run this file to recreate the current configuration.
15830 # Compiler output produced by configure, useful for debugging
15831 # configure, is in config.log if it exists.
15833 debug=false
15834 ac_cs_recheck=false
15835 ac_cs_silent=false
15837 SHELL=\${CONFIG_SHELL-$SHELL}
15838 export SHELL
15839 _ASEOF
15840 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15841 ## -------------------- ##
15842 ## M4sh Initialization. ##
15843 ## -------------------- ##
15845 # Be more Bourne compatible
15846 DUALCASE=1; export DUALCASE # for MKS sh
15847 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15848 emulate sh
15849 NULLCMD=:
15850 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15851 # is contrary to our usage. Disable this feature.
15852 alias -g '${1+"$@"}'='"$@"'
15853 setopt NO_GLOB_SUBST
15854 else
15855 case `(set -o) 2>/dev/null` in #(
15856 *posix*) :
15857 set -o posix ;; #(
15858 *) :
15860 esac
15864 as_nl='
15866 export as_nl
15867 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15868 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15869 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15870 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15871 # Prefer a ksh shell builtin over an external printf program on Solaris,
15872 # but without wasting forks for bash or zsh.
15873 if test -z "$BASH_VERSION$ZSH_VERSION" \
15874 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15875 as_echo='print -r --'
15876 as_echo_n='print -rn --'
15877 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15878 as_echo='printf %s\n'
15879 as_echo_n='printf %s'
15880 else
15881 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15882 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15883 as_echo_n='/usr/ucb/echo -n'
15884 else
15885 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15886 as_echo_n_body='eval
15887 arg=$1;
15888 case $arg in #(
15889 *"$as_nl"*)
15890 expr "X$arg" : "X\\(.*\\)$as_nl";
15891 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15892 esac;
15893 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15895 export as_echo_n_body
15896 as_echo_n='sh -c $as_echo_n_body as_echo'
15898 export as_echo_body
15899 as_echo='sh -c $as_echo_body as_echo'
15902 # The user is always right.
15903 if test "${PATH_SEPARATOR+set}" != set; then
15904 PATH_SEPARATOR=:
15905 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15906 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15907 PATH_SEPARATOR=';'
15912 # IFS
15913 # We need space, tab and new line, in precisely that order. Quoting is
15914 # there to prevent editors from complaining about space-tab.
15915 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15916 # splitting by setting IFS to empty value.)
15917 IFS=" "" $as_nl"
15919 # Find who we are. Look in the path if we contain no directory separator.
15920 case $0 in #((
15921 *[\\/]* ) as_myself=$0 ;;
15922 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15923 for as_dir in $PATH
15925 IFS=$as_save_IFS
15926 test -z "$as_dir" && as_dir=.
15927 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15928 done
15929 IFS=$as_save_IFS
15932 esac
15933 # We did not find ourselves, most probably we were run as `sh COMMAND'
15934 # in which case we are not to be found in the path.
15935 if test "x$as_myself" = x; then
15936 as_myself=$0
15938 if test ! -f "$as_myself"; then
15939 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15940 exit 1
15943 # Unset variables that we do not need and which cause bugs (e.g. in
15944 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15945 # suppresses any "Segmentation fault" message there. '((' could
15946 # trigger a bug in pdksh 5.2.14.
15947 for as_var in BASH_ENV ENV MAIL MAILPATH
15948 do eval test x\${$as_var+set} = xset \
15949 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15950 done
15951 PS1='$ '
15952 PS2='> '
15953 PS4='+ '
15955 # NLS nuisances.
15956 LC_ALL=C
15957 export LC_ALL
15958 LANGUAGE=C
15959 export LANGUAGE
15961 # CDPATH.
15962 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15965 # as_fn_error ERROR [LINENO LOG_FD]
15966 # ---------------------------------
15967 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15968 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15969 # script with status $?, using 1 if that was 0.
15970 as_fn_error ()
15972 as_status=$?; test $as_status -eq 0 && as_status=1
15973 if test "$3"; then
15974 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15975 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15977 $as_echo "$as_me: error: $1" >&2
15978 as_fn_exit $as_status
15979 } # as_fn_error
15982 # as_fn_set_status STATUS
15983 # -----------------------
15984 # Set $? to STATUS, without forking.
15985 as_fn_set_status ()
15987 return $1
15988 } # as_fn_set_status
15990 # as_fn_exit STATUS
15991 # -----------------
15992 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15993 as_fn_exit ()
15995 set +e
15996 as_fn_set_status $1
15997 exit $1
15998 } # as_fn_exit
16000 # as_fn_unset VAR
16001 # ---------------
16002 # Portably unset VAR.
16003 as_fn_unset ()
16005 { eval $1=; unset $1;}
16007 as_unset=as_fn_unset
16008 # as_fn_append VAR VALUE
16009 # ----------------------
16010 # Append the text in VALUE to the end of the definition contained in VAR. Take
16011 # advantage of any shell optimizations that allow amortized linear growth over
16012 # repeated appends, instead of the typical quadratic growth present in naive
16013 # implementations.
16014 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16015 eval 'as_fn_append ()
16017 eval $1+=\$2
16019 else
16020 as_fn_append ()
16022 eval $1=\$$1\$2
16024 fi # as_fn_append
16026 # as_fn_arith ARG...
16027 # ------------------
16028 # Perform arithmetic evaluation on the ARGs, and store the result in the
16029 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16030 # must be portable across $(()) and expr.
16031 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16032 eval 'as_fn_arith ()
16034 as_val=$(( $* ))
16036 else
16037 as_fn_arith ()
16039 as_val=`expr "$@" || test $? -eq 1`
16041 fi # as_fn_arith
16044 if expr a : '\(a\)' >/dev/null 2>&1 &&
16045 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16046 as_expr=expr
16047 else
16048 as_expr=false
16051 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16052 as_basename=basename
16053 else
16054 as_basename=false
16057 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16058 as_dirname=dirname
16059 else
16060 as_dirname=false
16063 as_me=`$as_basename -- "$0" ||
16064 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16065 X"$0" : 'X\(//\)$' \| \
16066 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16067 $as_echo X/"$0" |
16068 sed '/^.*\/\([^/][^/]*\)\/*$/{
16069 s//\1/
16072 /^X\/\(\/\/\)$/{
16073 s//\1/
16076 /^X\/\(\/\).*/{
16077 s//\1/
16080 s/.*/./; q'`
16082 # Avoid depending upon Character Ranges.
16083 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16084 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16085 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16086 as_cr_digits='0123456789'
16087 as_cr_alnum=$as_cr_Letters$as_cr_digits
16089 ECHO_C= ECHO_N= ECHO_T=
16090 case `echo -n x` in #(((((
16091 -n*)
16092 case `echo 'xy\c'` in
16093 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16094 xy) ECHO_C='\c';;
16095 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16096 ECHO_T=' ';;
16097 esac;;
16099 ECHO_N='-n';;
16100 esac
16102 rm -f conf$$ conf$$.exe conf$$.file
16103 if test -d conf$$.dir; then
16104 rm -f conf$$.dir/conf$$.file
16105 else
16106 rm -f conf$$.dir
16107 mkdir conf$$.dir 2>/dev/null
16109 if (echo >conf$$.file) 2>/dev/null; then
16110 if ln -s conf$$.file conf$$ 2>/dev/null; then
16111 as_ln_s='ln -s'
16112 # ... but there are two gotchas:
16113 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16114 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16115 # In both cases, we have to default to `cp -p'.
16116 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16117 as_ln_s='cp -p'
16118 elif ln conf$$.file conf$$ 2>/dev/null; then
16119 as_ln_s=ln
16120 else
16121 as_ln_s='cp -p'
16123 else
16124 as_ln_s='cp -p'
16126 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16127 rmdir conf$$.dir 2>/dev/null
16130 # as_fn_mkdir_p
16131 # -------------
16132 # Create "$as_dir" as a directory, including parents if necessary.
16133 as_fn_mkdir_p ()
16136 case $as_dir in #(
16137 -*) as_dir=./$as_dir;;
16138 esac
16139 test -d "$as_dir" || eval $as_mkdir_p || {
16140 as_dirs=
16141 while :; do
16142 case $as_dir in #(
16143 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16144 *) as_qdir=$as_dir;;
16145 esac
16146 as_dirs="'$as_qdir' $as_dirs"
16147 as_dir=`$as_dirname -- "$as_dir" ||
16148 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16149 X"$as_dir" : 'X\(//\)[^/]' \| \
16150 X"$as_dir" : 'X\(//\)$' \| \
16151 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16152 $as_echo X"$as_dir" |
16153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16154 s//\1/
16157 /^X\(\/\/\)[^/].*/{
16158 s//\1/
16161 /^X\(\/\/\)$/{
16162 s//\1/
16165 /^X\(\/\).*/{
16166 s//\1/
16169 s/.*/./; q'`
16170 test -d "$as_dir" && break
16171 done
16172 test -z "$as_dirs" || eval "mkdir $as_dirs"
16173 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16176 } # as_fn_mkdir_p
16177 if mkdir -p . 2>/dev/null; then
16178 as_mkdir_p='mkdir -p "$as_dir"'
16179 else
16180 test -d ./-p && rmdir ./-p
16181 as_mkdir_p=false
16184 if test -x / >/dev/null 2>&1; then
16185 as_test_x='test -x'
16186 else
16187 if ls -dL / >/dev/null 2>&1; then
16188 as_ls_L_option=L
16189 else
16190 as_ls_L_option=
16192 as_test_x='
16193 eval sh -c '\''
16194 if test -d "$1"; then
16195 test -d "$1/.";
16196 else
16197 case $1 in #(
16198 -*)set "./$1";;
16199 esac;
16200 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16201 ???[sx]*):;;*)false;;esac;fi
16202 '\'' sh
16205 as_executable_p=$as_test_x
16207 # Sed expression to map a string onto a valid CPP name.
16208 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16210 # Sed expression to map a string onto a valid variable name.
16211 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16214 exec 6>&1
16215 ## ----------------------------------- ##
16216 ## Main body of $CONFIG_STATUS script. ##
16217 ## ----------------------------------- ##
16218 _ASEOF
16219 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16222 # Save the log message, to keep $0 and so on meaningful, and to
16223 # report actual input values of CONFIG_FILES etc. instead of their
16224 # values after options handling.
16225 ac_log="
16226 This file was extended by aMule $as_me SVN, which was
16227 generated by GNU Autoconf 2.65. Invocation command line was
16229 CONFIG_FILES = $CONFIG_FILES
16230 CONFIG_HEADERS = $CONFIG_HEADERS
16231 CONFIG_LINKS = $CONFIG_LINKS
16232 CONFIG_COMMANDS = $CONFIG_COMMANDS
16233 $ $0 $@
16235 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16238 _ACEOF
16240 case $ac_config_files in *"
16241 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16242 esac
16244 case $ac_config_headers in *"
16245 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16246 esac
16249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16250 # Files that config.status was made for.
16251 config_files="$ac_config_files"
16252 config_headers="$ac_config_headers"
16253 config_commands="$ac_config_commands"
16255 _ACEOF
16257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16258 ac_cs_usage="\
16259 \`$as_me' instantiates files and other configuration actions
16260 from templates according to the current configuration. Unless the files
16261 and actions are specified as TAGs, all are instantiated by default.
16263 Usage: $0 [OPTION]... [TAG]...
16265 -h, --help print this help, then exit
16266 -V, --version print version number and configuration settings, then exit
16267 --config print configuration, then exit
16268 -q, --quiet, --silent
16269 do not print progress messages
16270 -d, --debug don't remove temporary files
16271 --recheck update $as_me by reconfiguring in the same conditions
16272 --file=FILE[:TEMPLATE]
16273 instantiate the configuration file FILE
16274 --header=FILE[:TEMPLATE]
16275 instantiate the configuration header FILE
16277 Configuration files:
16278 $config_files
16280 Configuration headers:
16281 $config_headers
16283 Configuration commands:
16284 $config_commands
16286 Report bugs to <admin@amule.org>."
16288 _ACEOF
16289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16290 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16291 ac_cs_version="\\
16292 aMule config.status SVN
16293 configured by $0, generated by GNU Autoconf 2.65,
16294 with options \\"\$ac_cs_config\\"
16296 Copyright (C) 2009 Free Software Foundation, Inc.
16297 This config.status script is free software; the Free Software Foundation
16298 gives unlimited permission to copy, distribute and modify it."
16300 ac_pwd='$ac_pwd'
16301 srcdir='$srcdir'
16302 INSTALL='$INSTALL'
16303 MKDIR_P='$MKDIR_P'
16304 AWK='$AWK'
16305 test -n "\$AWK" || AWK=awk
16306 _ACEOF
16308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16309 # The default lists apply if the user does not specify any file.
16310 ac_need_defaults=:
16311 while test $# != 0
16313 case $1 in
16314 --*=*)
16315 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16316 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16317 ac_shift=:
16320 ac_option=$1
16321 ac_optarg=$2
16322 ac_shift=shift
16324 esac
16326 case $ac_option in
16327 # Handling of the options.
16328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16329 ac_cs_recheck=: ;;
16330 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16331 $as_echo "$ac_cs_version"; exit ;;
16332 --config | --confi | --conf | --con | --co | --c )
16333 $as_echo "$ac_cs_config"; exit ;;
16334 --debug | --debu | --deb | --de | --d | -d )
16335 debug=: ;;
16336 --file | --fil | --fi | --f )
16337 $ac_shift
16338 case $ac_optarg in
16339 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16340 esac
16341 as_fn_append CONFIG_FILES " '$ac_optarg'"
16342 ac_need_defaults=false;;
16343 --header | --heade | --head | --hea )
16344 $ac_shift
16345 case $ac_optarg in
16346 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16347 esac
16348 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16349 ac_need_defaults=false;;
16350 --he | --h)
16351 # Conflict between --help and --header
16352 as_fn_error "ambiguous option: \`$1'
16353 Try \`$0 --help' for more information.";;
16354 --help | --hel | -h )
16355 $as_echo "$ac_cs_usage"; exit ;;
16356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16357 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16358 ac_cs_silent=: ;;
16360 # This is an error.
16361 -*) as_fn_error "unrecognized option: \`$1'
16362 Try \`$0 --help' for more information." ;;
16364 *) as_fn_append ac_config_targets " $1"
16365 ac_need_defaults=false ;;
16367 esac
16368 shift
16369 done
16371 ac_configure_extra_args=
16373 if $ac_cs_silent; then
16374 exec 6>/dev/null
16375 ac_configure_extra_args="$ac_configure_extra_args --silent"
16378 _ACEOF
16379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16380 if \$ac_cs_recheck; then
16381 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16382 shift
16383 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16384 CONFIG_SHELL='$SHELL'
16385 export CONFIG_SHELL
16386 exec "\$@"
16389 _ACEOF
16390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16391 exec 5>>config.log
16393 echo
16394 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16395 ## Running $as_me. ##
16396 _ASBOX
16397 $as_echo "$ac_log"
16398 } >&5
16400 _ACEOF
16401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16403 # INIT-COMMANDS
16405 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16406 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16407 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16408 # from automake.
16409 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
16410 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16411 LINGUAS="${LINGUAS-%UNSET%}"
16413 denoiserlevel=$with_denoise_level
16415 _ACEOF
16417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16419 # Handling of arguments.
16420 for ac_config_target in $ac_config_targets
16422 case $ac_config_target in
16423 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16424 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16425 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16426 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
16427 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16428 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16429 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
16430 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
16431 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16432 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
16433 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
16434 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
16435 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
16436 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
16437 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
16438 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
16439 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
16440 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
16441 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
16442 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
16443 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
16444 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
16445 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
16446 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
16447 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
16448 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
16449 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
16450 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
16451 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
16452 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
16453 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
16454 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
16455 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
16456 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
16457 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
16458 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
16459 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16460 "Compilation.flags") CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
16461 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;;
16463 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16464 esac
16465 done
16468 # If the user did not use the arguments to specify the items to instantiate,
16469 # then the envvar interface is used. Set only those that are not.
16470 # We use the long form for the default assignment because of an extremely
16471 # bizarre bug on SunOS 4.1.3.
16472 if $ac_need_defaults; then
16473 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16474 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16475 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16478 # Have a temporary directory for convenience. Make it in the build tree
16479 # simply because there is no reason against having it here, and in addition,
16480 # creating and moving files from /tmp can sometimes cause problems.
16481 # Hook for its removal unless debugging.
16482 # Note that there is a small window in which the directory will not be cleaned:
16483 # after its creation but before its name has been assigned to `$tmp'.
16484 $debug ||
16486 tmp=
16487 trap 'exit_status=$?
16488 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16490 trap 'as_fn_exit 1' 1 2 13 15
16492 # Create a (secure) tmp directory for tmp files.
16495 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16496 test -n "$tmp" && test -d "$tmp"
16497 } ||
16499 tmp=./conf$$-$RANDOM
16500 (umask 077 && mkdir "$tmp")
16501 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16503 # Set up the scripts for CONFIG_FILES section.
16504 # No need to generate them if there are no CONFIG_FILES.
16505 # This happens for instance with `./config.status config.h'.
16506 if test -n "$CONFIG_FILES"; then
16509 ac_cr=`echo X | tr X '\015'`
16510 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16511 # But we know of no other shell where ac_cr would be empty at this
16512 # point, so we can use a bashism as a fallback.
16513 if test "x$ac_cr" = x; then
16514 eval ac_cr=\$\'\\r\'
16516 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16517 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16518 ac_cs_awk_cr='\r'
16519 else
16520 ac_cs_awk_cr=$ac_cr
16523 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16524 _ACEOF
16528 echo "cat >conf$$subs.awk <<_ACEOF" &&
16529 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16530 echo "_ACEOF"
16531 } >conf$$subs.sh ||
16532 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16533 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16534 ac_delim='%!_!# '
16535 for ac_last_try in false false false false false :; do
16536 . ./conf$$subs.sh ||
16537 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16539 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16540 if test $ac_delim_n = $ac_delim_num; then
16541 break
16542 elif $ac_last_try; then
16543 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16544 else
16545 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16547 done
16548 rm -f conf$$subs.sh
16550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16551 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16552 _ACEOF
16553 sed -n '
16555 s/^/S["/; s/!.*/"]=/
16558 s/^[^!]*!//
16559 :repl
16560 t repl
16561 s/'"$ac_delim"'$//
16562 t delim
16565 s/\(.\{148\}\)..*/\1/
16566 t more1
16567 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16570 b repl
16571 :more1
16572 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16575 s/.\{148\}//
16576 t nl
16577 :delim
16579 s/\(.\{148\}\)..*/\1/
16580 t more2
16581 s/["\\]/\\&/g; s/^/"/; s/$/"/
16584 :more2
16585 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16588 s/.\{148\}//
16589 t delim
16590 ' <conf$$subs.awk | sed '
16591 /^[^""]/{
16593 s/\n//
16595 ' >>$CONFIG_STATUS || ac_write_fail=1
16596 rm -f conf$$subs.awk
16597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16598 _ACAWK
16599 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16600 for (key in S) S_is_set[key] = 1
16601 FS = "\a"
16605 line = $ 0
16606 nfields = split(line, field, "@")
16607 substed = 0
16608 len = length(field[1])
16609 for (i = 2; i < nfields; i++) {
16610 key = field[i]
16611 keylen = length(key)
16612 if (S_is_set[key]) {
16613 value = S[key]
16614 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16615 len += length(value) + length(field[++i])
16616 substed = 1
16617 } else
16618 len += 1 + keylen
16621 print line
16624 _ACAWK
16625 _ACEOF
16626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16627 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16628 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16629 else
16631 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16632 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16633 _ACEOF
16635 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16636 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16637 # trailing colons and then remove the whole line if VPATH becomes empty
16638 # (actually we leave an empty line to preserve line numbers).
16639 if test "x$srcdir" = x.; then
16640 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16641 s/:*\$(srcdir):*/:/
16642 s/:*\${srcdir}:*/:/
16643 s/:*@srcdir@:*/:/
16644 s/^\([^=]*=[ ]*\):*/\1/
16645 s/:*$//
16646 s/^[^=]*=[ ]*$//
16650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16651 fi # test -n "$CONFIG_FILES"
16653 # Set up the scripts for CONFIG_HEADERS section.
16654 # No need to generate them if there are no CONFIG_HEADERS.
16655 # This happens for instance with `./config.status Makefile'.
16656 if test -n "$CONFIG_HEADERS"; then
16657 cat >"$tmp/defines.awk" <<\_ACAWK ||
16658 BEGIN {
16659 _ACEOF
16661 # Transform confdefs.h into an awk script `defines.awk', embedded as
16662 # here-document in config.status, that substitutes the proper values into
16663 # config.h.in to produce config.h.
16665 # Create a delimiter string that does not exist in confdefs.h, to ease
16666 # handling of long lines.
16667 ac_delim='%!_!# '
16668 for ac_last_try in false false :; do
16669 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16670 if test -z "$ac_t"; then
16671 break
16672 elif $ac_last_try; then
16673 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16674 else
16675 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16677 done
16679 # For the awk script, D is an array of macro values keyed by name,
16680 # likewise P contains macro parameters if any. Preserve backslash
16681 # newline sequences.
16683 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16684 sed -n '
16685 s/.\{148\}/&'"$ac_delim"'/g
16686 t rset
16687 :rset
16688 s/^[ ]*#[ ]*define[ ][ ]*/ /
16689 t def
16691 :def
16692 s/\\$//
16693 t bsnl
16694 s/["\\]/\\&/g
16695 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16696 D["\1"]=" \3"/p
16697 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16699 :bsnl
16700 s/["\\]/\\&/g
16701 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16702 D["\1"]=" \3\\\\\\n"\\/p
16703 t cont
16704 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16705 t cont
16707 :cont
16709 s/.\{148\}/&'"$ac_delim"'/g
16710 t clear
16711 :clear
16712 s/\\$//
16713 t bsnlc
16714 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16716 :bsnlc
16717 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16718 b cont
16719 ' <confdefs.h | sed '
16720 s/'"$ac_delim"'/"\\\
16721 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16724 for (key in D) D_is_set[key] = 1
16725 FS = "\a"
16727 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16728 line = \$ 0
16729 split(line, arg, " ")
16730 if (arg[1] == "#") {
16731 defundef = arg[2]
16732 mac1 = arg[3]
16733 } else {
16734 defundef = substr(arg[1], 2)
16735 mac1 = arg[2]
16737 split(mac1, mac2, "(") #)
16738 macro = mac2[1]
16739 prefix = substr(line, 1, index(line, defundef) - 1)
16740 if (D_is_set[macro]) {
16741 # Preserve the white space surrounding the "#".
16742 print prefix "define", macro P[macro] D[macro]
16743 next
16744 } else {
16745 # Replace #undef with comments. This is necessary, for example,
16746 # in the case of _POSIX_SOURCE, which is predefined and required
16747 # on some systems where configure will not decide to define it.
16748 if (defundef == "undef") {
16749 print "/*", prefix defundef, macro, "*/"
16750 next
16754 { print }
16755 _ACAWK
16756 _ACEOF
16757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16758 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16759 fi # test -n "$CONFIG_HEADERS"
16762 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16763 shift
16764 for ac_tag
16766 case $ac_tag in
16767 :[FHLC]) ac_mode=$ac_tag; continue;;
16768 esac
16769 case $ac_mode$ac_tag in
16770 :[FHL]*:*);;
16771 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16772 :[FH]-) ac_tag=-:-;;
16773 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16774 esac
16775 ac_save_IFS=$IFS
16776 IFS=:
16777 set x $ac_tag
16778 IFS=$ac_save_IFS
16779 shift
16780 ac_file=$1
16781 shift
16783 case $ac_mode in
16784 :L) ac_source=$1;;
16785 :[FH])
16786 ac_file_inputs=
16787 for ac_f
16789 case $ac_f in
16790 -) ac_f="$tmp/stdin";;
16791 *) # Look for the file first in the build tree, then in the source tree
16792 # (if the path is not absolute). The absolute path cannot be DOS-style,
16793 # because $ac_f cannot contain `:'.
16794 test -f "$ac_f" ||
16795 case $ac_f in
16796 [\\/$]*) false;;
16797 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16798 esac ||
16799 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16800 esac
16801 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16802 as_fn_append ac_file_inputs " '$ac_f'"
16803 done
16805 # Let's still pretend it is `configure' which instantiates (i.e., don't
16806 # use $as_me), people would be surprised to read:
16807 # /* config.h. Generated by config.status. */
16808 configure_input='Generated from '`
16809 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16810 `' by configure.'
16811 if test x"$ac_file" != x-; then
16812 configure_input="$ac_file. $configure_input"
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16814 $as_echo "$as_me: creating $ac_file" >&6;}
16816 # Neutralize special characters interpreted by sed in replacement strings.
16817 case $configure_input in #(
16818 *\&* | *\|* | *\\* )
16819 ac_sed_conf_input=`$as_echo "$configure_input" |
16820 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16821 *) ac_sed_conf_input=$configure_input;;
16822 esac
16824 case $ac_tag in
16825 *:-:* | *:-) cat >"$tmp/stdin" \
16826 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16827 esac
16829 esac
16831 ac_dir=`$as_dirname -- "$ac_file" ||
16832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16833 X"$ac_file" : 'X\(//\)[^/]' \| \
16834 X"$ac_file" : 'X\(//\)$' \| \
16835 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16836 $as_echo X"$ac_file" |
16837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16838 s//\1/
16841 /^X\(\/\/\)[^/].*/{
16842 s//\1/
16845 /^X\(\/\/\)$/{
16846 s//\1/
16849 /^X\(\/\).*/{
16850 s//\1/
16853 s/.*/./; q'`
16854 as_dir="$ac_dir"; as_fn_mkdir_p
16855 ac_builddir=.
16857 case "$ac_dir" in
16858 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16860 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16861 # A ".." for each directory in $ac_dir_suffix.
16862 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16863 case $ac_top_builddir_sub in
16864 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16865 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16866 esac ;;
16867 esac
16868 ac_abs_top_builddir=$ac_pwd
16869 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16870 # for backward compatibility:
16871 ac_top_builddir=$ac_top_build_prefix
16873 case $srcdir in
16874 .) # We are building in place.
16875 ac_srcdir=.
16876 ac_top_srcdir=$ac_top_builddir_sub
16877 ac_abs_top_srcdir=$ac_pwd ;;
16878 [\\/]* | ?:[\\/]* ) # Absolute name.
16879 ac_srcdir=$srcdir$ac_dir_suffix;
16880 ac_top_srcdir=$srcdir
16881 ac_abs_top_srcdir=$srcdir ;;
16882 *) # Relative name.
16883 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16884 ac_top_srcdir=$ac_top_build_prefix$srcdir
16885 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16886 esac
16887 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16890 case $ac_mode in
16893 # CONFIG_FILE
16896 case $INSTALL in
16897 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16898 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16899 esac
16900 ac_MKDIR_P=$MKDIR_P
16901 case $MKDIR_P in
16902 [\\/$]* | ?:[\\/]* ) ;;
16903 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16904 esac
16905 _ACEOF
16907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16908 # If the template does not know about datarootdir, expand it.
16909 # FIXME: This hack should be removed a few years after 2.60.
16910 ac_datarootdir_hack=; ac_datarootdir_seen=
16911 ac_sed_dataroot='
16912 /datarootdir/ {
16916 /@datadir@/p
16917 /@docdir@/p
16918 /@infodir@/p
16919 /@localedir@/p
16920 /@mandir@/p'
16921 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16922 *datarootdir*) ac_datarootdir_seen=yes;;
16923 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16925 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16926 _ACEOF
16927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16928 ac_datarootdir_hack='
16929 s&@datadir@&$datadir&g
16930 s&@docdir@&$docdir&g
16931 s&@infodir@&$infodir&g
16932 s&@localedir@&$localedir&g
16933 s&@mandir@&$mandir&g
16934 s&\\\${datarootdir}&$datarootdir&g' ;;
16935 esac
16936 _ACEOF
16938 # Neutralize VPATH when `$srcdir' = `.'.
16939 # Shell code in configure.ac might set extrasub.
16940 # FIXME: do we really want to maintain this feature?
16941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16942 ac_sed_extra="$ac_vpsub
16943 $extrasub
16944 _ACEOF
16945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16948 s|@configure_input@|$ac_sed_conf_input|;t t
16949 s&@top_builddir@&$ac_top_builddir_sub&;t t
16950 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16951 s&@srcdir@&$ac_srcdir&;t t
16952 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16953 s&@top_srcdir@&$ac_top_srcdir&;t t
16954 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16955 s&@builddir@&$ac_builddir&;t t
16956 s&@abs_builddir@&$ac_abs_builddir&;t t
16957 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16958 s&@INSTALL@&$ac_INSTALL&;t t
16959 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16960 $ac_datarootdir_hack
16962 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16963 || as_fn_error "could not create $ac_file" "$LINENO" 5
16965 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16966 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16967 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16969 which seems to be undefined. Please make sure it is defined." >&5
16970 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16971 which seems to be undefined. Please make sure it is defined." >&2;}
16973 rm -f "$tmp/stdin"
16974 case $ac_file in
16975 -) cat "$tmp/out" && rm -f "$tmp/out";;
16976 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16977 esac \
16978 || as_fn_error "could not create $ac_file" "$LINENO" 5
16982 # CONFIG_HEADER
16984 if test x"$ac_file" != x-; then
16986 $as_echo "/* $configure_input */" \
16987 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16988 } >"$tmp/config.h" \
16989 || as_fn_error "could not create $ac_file" "$LINENO" 5
16990 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16992 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16993 else
16994 rm -f "$ac_file"
16995 mv "$tmp/config.h" "$ac_file" \
16996 || as_fn_error "could not create $ac_file" "$LINENO" 5
16998 else
16999 $as_echo "/* $configure_input */" \
17000 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17001 || as_fn_error "could not create -" "$LINENO" 5
17003 # Compute "$ac_file"'s index in $config_headers.
17004 _am_arg="$ac_file"
17005 _am_stamp_count=1
17006 for _am_header in $config_headers :; do
17007 case $_am_header in
17008 $_am_arg | $_am_arg:* )
17009 break ;;
17011 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17012 esac
17013 done
17014 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17015 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17016 X"$_am_arg" : 'X\(//\)[^/]' \| \
17017 X"$_am_arg" : 'X\(//\)$' \| \
17018 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17019 $as_echo X"$_am_arg" |
17020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17021 s//\1/
17024 /^X\(\/\/\)[^/].*/{
17025 s//\1/
17028 /^X\(\/\/\)$/{
17029 s//\1/
17032 /^X\(\/\).*/{
17033 s//\1/
17036 s/.*/./; q'`/stamp-h$_am_stamp_count
17039 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17040 $as_echo "$as_me: executing $ac_file commands" >&6;}
17042 esac
17045 case $ac_file$ac_mode in
17046 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17047 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17048 # are listed without --file. Let's play safe and only enable the eval
17049 # if we detect the quoting.
17050 case $CONFIG_FILES in
17051 *\'*) eval set x "$CONFIG_FILES" ;;
17052 *) set x $CONFIG_FILES ;;
17053 esac
17054 shift
17055 for mf
17057 # Strip MF so we end up with the name of the file.
17058 mf=`echo "$mf" | sed -e 's/:.*$//'`
17059 # Check whether this is an Automake generated Makefile or not.
17060 # We used to match only the files named `Makefile.in', but
17061 # some people rename them; so instead we look at the file content.
17062 # Grep'ing the first line is not enough: some people post-process
17063 # each Makefile.in and add a new line on top of each file to say so.
17064 # Grep'ing the whole file is not good either: AIX grep has a line
17065 # limit of 2048, but all sed's we know have understand at least 4000.
17066 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17067 dirpart=`$as_dirname -- "$mf" ||
17068 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17069 X"$mf" : 'X\(//\)[^/]' \| \
17070 X"$mf" : 'X\(//\)$' \| \
17071 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17072 $as_echo X"$mf" |
17073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17074 s//\1/
17077 /^X\(\/\/\)[^/].*/{
17078 s//\1/
17081 /^X\(\/\/\)$/{
17082 s//\1/
17085 /^X\(\/\).*/{
17086 s//\1/
17089 s/.*/./; q'`
17090 else
17091 continue
17093 # Extract the definition of DEPDIR, am__include, and am__quote
17094 # from the Makefile without running `make'.
17095 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17096 test -z "$DEPDIR" && continue
17097 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17098 test -z "am__include" && continue
17099 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17100 # When using ansi2knr, U may be empty or an underscore; expand it
17101 U=`sed -n 's/^U = //p' < "$mf"`
17102 # Find all dependency output files, they are included files with
17103 # $(DEPDIR) in their names. We invoke sed twice because it is the
17104 # simplest approach to changing $(DEPDIR) to its actual value in the
17105 # expansion.
17106 for file in `sed -n "
17107 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17108 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17109 # Make sure the directory exists.
17110 test -f "$dirpart/$file" && continue
17111 fdir=`$as_dirname -- "$file" ||
17112 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17113 X"$file" : 'X\(//\)[^/]' \| \
17114 X"$file" : 'X\(//\)$' \| \
17115 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17116 $as_echo X"$file" |
17117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17118 s//\1/
17121 /^X\(\/\/\)[^/].*/{
17122 s//\1/
17125 /^X\(\/\/\)$/{
17126 s//\1/
17129 /^X\(\/\).*/{
17130 s//\1/
17133 s/.*/./; q'`
17134 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17135 # echo "creating $dirpart/$file"
17136 echo '# dummy' > "$dirpart/$file"
17137 done
17138 done
17141 "default-1":C)
17142 for ac_file in $CONFIG_FILES; do
17143 # Support "outfile[:infile[:infile...]]"
17144 case "$ac_file" in
17145 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17146 esac
17147 # PO directories have a Makefile.in generated from Makefile.in.in.
17148 case "$ac_file" in */Makefile.in)
17149 # Adjust a relative srcdir.
17150 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17151 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17152 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17153 # In autoconf-2.13 it is called $ac_given_srcdir.
17154 # In autoconf-2.50 it is called $srcdir.
17155 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17156 case "$ac_given_srcdir" in
17157 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17158 /*) top_srcdir="$ac_given_srcdir" ;;
17159 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17160 esac
17161 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17162 rm -f "$ac_dir/POTFILES"
17163 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17164 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17165 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17166 # on $ac_dir but don't depend on user-specified configuration
17167 # parameters.
17168 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17169 # The LINGUAS file contains the set of available languages.
17170 if test -n "$ALL_LINGUAS"; then
17171 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17173 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17174 # Hide the ALL_LINGUAS assigment from automake.
17175 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17177 case "$ac_given_srcdir" in
17178 .) srcdirpre= ;;
17179 *) srcdirpre='$(srcdir)/' ;;
17180 esac
17181 POFILES=
17182 GMOFILES=
17183 UPDATEPOFILES=
17184 DUMMYPOFILES=
17185 for lang in $ALL_LINGUAS; do
17186 POFILES="$POFILES $srcdirpre$lang.po"
17187 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17188 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17189 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17190 done
17191 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17192 # environment variable.
17193 INST_LINGUAS=
17194 if test -n "$ALL_LINGUAS"; then
17195 for presentlang in $ALL_LINGUAS; do
17196 useit=no
17197 if test "%UNSET%" != "$LINGUAS"; then
17198 desiredlanguages="$LINGUAS"
17199 else
17200 desiredlanguages="$ALL_LINGUAS"
17202 for desiredlang in $desiredlanguages; do
17203 # Use the presentlang catalog if desiredlang is
17204 # a. equal to presentlang, or
17205 # b. a variant of presentlang (because in this case,
17206 # presentlang can be used as a fallback for messages
17207 # which are not translated in the desiredlang catalog).
17208 case "$desiredlang" in
17209 "$presentlang"*) useit=yes;;
17210 esac
17211 done
17212 if test $useit = yes; then
17213 INST_LINGUAS="$INST_LINGUAS $presentlang"
17215 done
17217 CATALOGS=
17218 if test -n "$INST_LINGUAS"; then
17219 for lang in $INST_LINGUAS; do
17220 CATALOGS="$CATALOGS $lang.gmo"
17221 done
17223 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17224 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"
17225 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17226 if test -f "$f"; then
17227 case "$f" in
17228 *.orig | *.bak | *~) ;;
17229 *) cat "$f" >> "$ac_dir/Makefile" ;;
17230 esac
17232 done
17235 esac
17236 done ;;
17237 "denoiser":C) if test $denoiserlevel -gt 0; then
17238 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
17239 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" \
17240 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
17241 for i in `find . -name 'Makefile' -print`; do
17242 if test -n "`head -n 1 $i | grep '^#'`"; then
17243 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
17245 done
17246 fi ;;
17248 esac
17249 done # for ac_tag
17252 as_fn_exit 0
17253 _ACEOF
17254 ac_clean_files=$ac_clean_files_save
17256 test $ac_write_fail = 0 ||
17257 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17260 # configure is writing to config.log, and then calls config.status.
17261 # config.status does its own redirection, appending to config.log.
17262 # Unfortunately, on DOS this fails, as config.log is still kept open
17263 # by configure, so config.status won't be able to write to it; its
17264 # output is simply discarded. So we exec the FD to /dev/null,
17265 # effectively closing config.log, so it can be properly (re)opened and
17266 # appended to by config.status. When coming back to configure, we
17267 # need to make the FD available again.
17268 if test "$no_create" != yes; then
17269 ac_cs_success=:
17270 ac_config_status_args=
17271 test "$silent" = yes &&
17272 ac_config_status_args="$ac_config_status_args --quiet"
17273 exec 5>/dev/null
17274 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17275 exec 5>>config.log
17276 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17277 # would make configure fail if this is the last instruction.
17278 $ac_cs_success || as_fn_exit $?
17280 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17282 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17286 if test -n "$svndate"; then :
17287 SVN_REVISION=" ($svndate)"
17288 else
17289 SVN_REVISION=
17292 echo
17293 echo
17294 echo " Configure script has finished system check."
17295 echo
17296 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
17297 echo
17298 echo " aMule enabled options:"
17299 echo
17300 echo " **** aMule Core ****"
17301 echo " Prefix where aMule should be installed? ${prefix:-none}"
17302 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
17303 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
17304 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
17305 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
17306 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
17307 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
17308 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
17309 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
17310 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
17311 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
17313 echo
17314 echo " **** aMule TextClient ****"
17315 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
17316 echo
17317 echo " **** aMule WebServer ****"
17318 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
17319 echo
17320 echo " **** aMule ED2K Links Handler ****"
17321 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
17322 echo
17323 echo " **** aMuleLinkCreator ****"
17324 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
17325 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
17326 echo
17327 echo " **** aMule Statistics ****"
17328 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
17329 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
17330 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
17331 echo " Should plasmaMule plasma-applet be build? ${enable_plasmamule:-no}"
17333 echo
17334 echo " **** General Libraries and Tools ****"
17335 echo " Should ccache support be enabled? ${enable_ccache:-no}"
17336 echo " Libraries aMule will use to build:"
17337 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 :
17339 wxinfo="$WX_PORT"
17340 if test $WX_DEBUG -eq 1; then :
17341 wxinfo="$wxinfo,debug"
17343 if test $WX_SHARED -eq 1; then :
17344 wxinfo="$wxinfo,shared"
17345 else
17346 wxinfo="$wxinfo,static"
17348 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
17351 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
17352 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
17354 if test ${enable_upnp:-yes} = yes; then :
17356 if test -n "$with_libupnp_prefix"; then :
17357 libupnp_place=" (in $with_libupnp_prefix)"
17359 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
17362 if test ${enable_nls:-yes} = yes; then
17363 if test x$USE_NLS = xno; then :
17364 libintl_found="Not detected"
17365 else
17366 if test x$USE_INCLUDED_LIBINTL = xyes; then :
17367 libintl_found="included"
17368 else
17369 libintl_found="system"
17372 echo " libintl $libintl_found"
17374 if test ${enable_geoip:-no} = yes; then :
17375 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
17376 geoip_style=system
17377 else
17378 geoip_style=user
17380 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
17381 echo " libGeoIP ${geoip_style}"
17384 if test ${enable_webserver:-no} = yes; then :
17385 echo " libpng ${LIBPNG_VERSION:-Not detected}"
17387 if test ${enable_cas:-no} = yes; then :
17388 echo " libgd ${GDLIB_VERSION:-Not detected}"
17390 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 :
17391 echo " zlib ${ZLIB_VERSION:-Not detected}"
17393 if test ${enable_plasmamule:-no} = yes; then :
17394 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
17395 echo " qt-core-libs ${QT_CORE_LIBS}"
17396 echo " qt-gui-libs ${QT_GUI_LIBS}"
17397 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
17398 echo " kde-headers ${KDE_HEADER_DIR}"
17399 echo " kde-services-path ${KDE_SERVICE_PATH}"
17400 echo " kde-module-path ${KDE_MODULE_PATH}"
17401 echo " kde-icon-path ${KDE_ICON_PATH}"
17402 echo " kde-mime-path ${KDE_MIME_PATH}"
17403 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
17406 if test ${_mule_has_warnings:-no} = yes; then
17407 echo ""
17408 echo ""
17409 echo " *** Warnings during configuration ***"
17411 if test ${_mule_warning_0:-no} = yes; then
17412 cat <<_MULEEOT
17414 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
17415 Please check that gdlib-config is in your default path, check out
17416 LD_LIBRARY_PATH or equivalent variable.
17417 Or this might also be that your gdlib-config has other name.
17418 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
17419 /usr/bin/gdlib-config with a valid path to your gdlib-config).
17420 If you use compiled packages check if you have devel pack installed.
17421 To download the latest version check http://www.boutell.com/gd for sources.
17422 _MULEEOT
17424 if test ${_mule_warning_1:-no} = yes; then
17425 cat <<_MULEEOT
17427 * libpng >= 1.2.0 not found.
17428 amuleweb will be compiled but file download progress bar images will NOT be
17429 generated.
17430 _MULEEOT
17432 if test ${_mule_warning_2:-no} = yes; then
17433 cat <<_MULEEOT
17435 * File::Copy perl module is required by the mldonkey_importer script.
17436 If you want to use this script please install File::Copy from CPAN.
17437 _MULEEOT
17439 if test ${_mule_warning_3:-no} = yes; then
17440 cat <<_MULEEOT
17442 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
17443 _MULEEOT
17445 if test ${_mule_warning_4:-no} = yes; then
17446 cat <<_MULEEOT
17448 * GeoIP support has been disabled because the GeoIP libraries were not found
17449 _MULEEOT
17451 if test ${_mule_warning_5:-no} = yes; then
17452 cat <<_MULEEOT
17454 * GeoIP support has been disabled because the GeoIP header files were not
17455 found
17456 _MULEEOT
17458 if test ${_mule_warning_6:-no} = yes; then
17459 cat <<_MULEEOT
17461 * UPnP code has been disabled because ${libupnp_error}.
17462 _MULEEOT
17464 if test ${_mule_warning_7:-no} = yes; then
17465 cat <<_MULEEOT
17467 * Cross-compilation detected, so exception handling cannot be tested.
17468 Note that broken exception handling in your compiler may lead to unexpected
17469 crashes.
17470 _MULEEOT
17472 if test ${_mule_warning_8:-no} = yes; then
17473 cat <<_MULEEOT
17475 * configure cannot check whether malloc() and realloc() are GNU libc
17476 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
17477 configure with the --without-gnu-malloc switch.
17478 _MULEEOT
17480 if test ${_mule_warning_9:-no} = yes; then
17481 cat <<_MULEEOT
17483 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
17484 support.
17485 _MULEEOT
17487 if test ${_mule_warning_10:-no} = yes; then
17488 cat <<_MULEEOT
17490 * bfd.h not found or unusable, please install binutils development package if
17491 you are a developer or want to help testing aMule
17492 _MULEEOT