re PR fortran/63858 (fixed form OpenACC directive ICE with -fopenacc -fopenmp)
[official-gcc.git] / intl / configure
blob77b5eb2f2b66b7968956d2516450a679af09a1e6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="gettext.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
591 ac_subst_vars='LTLIBOBJS
592 LIBOBJS
593 INCINTL
594 LIBINTL_DEP
595 MAINT
596 AUTOHEADER
597 AUTOCONF
598 ACLOCAL
599 POSUB
600 LTLIBINTL
601 LIBINTL
602 INTLLIBS
603 INTL_LIBTOOL_SUFFIX_PREFIX
604 INTLOBJS
605 GENCAT
606 INSTOBJEXT
607 DATADIRNAME
608 CATOBJEXT
609 USE_INCLUDED_LIBINTL
610 BUILD_INCLUDED_LIBINTL
611 INTLBISON
612 GLIBC21
613 ALLOCA
614 EGREP
615 GREP
617 RANLIB
618 host_os
619 host_vendor
620 host_cpu
621 host
622 build_os
623 build_vendor
624 build_cpu
625 build
626 OBJEXT
627 EXEEXT
628 ac_ct_CC
629 CPPFLAGS
630 LDFLAGS
631 CFLAGS
633 MSGMERGE
634 XGETTEXT
635 GMSGFMT
636 MSGFMT
637 USE_NLS
638 MKINSTALLDIRS
639 INSTALL_DATA
640 INSTALL_SCRIPT
641 INSTALL_PROGRAM
642 SET_MAKE
643 target_alias
644 host_alias
645 build_alias
646 LIBS
647 ECHO_T
648 ECHO_N
649 ECHO_C
650 DEFS
651 mandir
652 localedir
653 libdir
654 psdir
655 pdfdir
656 dvidir
657 htmldir
658 infodir
659 docdir
660 oldincludedir
661 includedir
662 localstatedir
663 sharedstatedir
664 sysconfdir
665 datadir
666 datarootdir
667 libexecdir
668 sbindir
669 bindir
670 program_transform_name
671 prefix
672 exec_prefix
673 PACKAGE_URL
674 PACKAGE_BUGREPORT
675 PACKAGE_STRING
676 PACKAGE_VERSION
677 PACKAGE_TARNAME
678 PACKAGE_NAME
679 PATH_SEPARATOR
680 SHELL'
681 ac_subst_files=''
682 ac_user_opts='
683 enable_option_checking
684 enable_nls
685 with_libiconv_prefix
686 with_gnu_ld
687 enable_rpath
688 with_included_gettext
689 with_libintl_prefix
690 enable_maintainer_mode
692 ac_precious_vars='build_alias
693 host_alias
694 target_alias
696 CFLAGS
697 LDFLAGS
698 LIBS
699 CPPFLAGS
700 CPP'
703 # Initialize some variables set by options.
704 ac_init_help=
705 ac_init_version=false
706 ac_unrecognized_opts=
707 ac_unrecognized_sep=
708 # The variables have the same names as the options, with
709 # dashes changed to underlines.
710 cache_file=/dev/null
711 exec_prefix=NONE
712 no_create=
713 no_recursion=
714 prefix=NONE
715 program_prefix=NONE
716 program_suffix=NONE
717 program_transform_name=s,x,x,
718 silent=
719 site=
720 srcdir=
721 verbose=
722 x_includes=NONE
723 x_libraries=NONE
725 # Installation directory options.
726 # These are left unexpanded so users can "make install exec_prefix=/foo"
727 # and all the variables that are supposed to be based on exec_prefix
728 # by default will actually change.
729 # Use braces instead of parens because sh, perl, etc. also accept them.
730 # (The list follows the same order as the GNU Coding Standards.)
731 bindir='${exec_prefix}/bin'
732 sbindir='${exec_prefix}/sbin'
733 libexecdir='${exec_prefix}/libexec'
734 datarootdir='${prefix}/share'
735 datadir='${datarootdir}'
736 sysconfdir='${prefix}/etc'
737 sharedstatedir='${prefix}/com'
738 localstatedir='${prefix}/var'
739 includedir='${prefix}/include'
740 oldincludedir='/usr/include'
741 docdir='${datarootdir}/doc/${PACKAGE}'
742 infodir='${datarootdir}/info'
743 htmldir='${docdir}'
744 dvidir='${docdir}'
745 pdfdir='${docdir}'
746 psdir='${docdir}'
747 libdir='${exec_prefix}/lib'
748 localedir='${datarootdir}/locale'
749 mandir='${datarootdir}/man'
751 ac_prev=
752 ac_dashdash=
753 for ac_option
755 # If the previous option needs an argument, assign it.
756 if test -n "$ac_prev"; then
757 eval $ac_prev=\$ac_option
758 ac_prev=
759 continue
762 case $ac_option in
763 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
764 *) ac_optarg=yes ;;
765 esac
767 # Accept the important Cygnus configure options, so we can diagnose typos.
769 case $ac_dashdash$ac_option in
771 ac_dashdash=yes ;;
773 -bindir | --bindir | --bindi | --bind | --bin | --bi)
774 ac_prev=bindir ;;
775 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
776 bindir=$ac_optarg ;;
778 -build | --build | --buil | --bui | --bu)
779 ac_prev=build_alias ;;
780 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
781 build_alias=$ac_optarg ;;
783 -cache-file | --cache-file | --cache-fil | --cache-fi \
784 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
785 ac_prev=cache_file ;;
786 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
787 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
788 cache_file=$ac_optarg ;;
790 --config-cache | -C)
791 cache_file=config.cache ;;
793 -datadir | --datadir | --datadi | --datad)
794 ac_prev=datadir ;;
795 -datadir=* | --datadir=* | --datadi=* | --datad=*)
796 datadir=$ac_optarg ;;
798 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
799 | --dataroo | --dataro | --datar)
800 ac_prev=datarootdir ;;
801 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
802 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
803 datarootdir=$ac_optarg ;;
805 -disable-* | --disable-*)
806 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
807 # Reject names that are not valid shell variable names.
808 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
809 as_fn_error "invalid feature name: $ac_useropt"
810 ac_useropt_orig=$ac_useropt
811 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
812 case $ac_user_opts in
814 "enable_$ac_useropt"
815 "*) ;;
816 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
817 ac_unrecognized_sep=', ';;
818 esac
819 eval enable_$ac_useropt=no ;;
821 -docdir | --docdir | --docdi | --doc | --do)
822 ac_prev=docdir ;;
823 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
824 docdir=$ac_optarg ;;
826 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
827 ac_prev=dvidir ;;
828 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
829 dvidir=$ac_optarg ;;
831 -enable-* | --enable-*)
832 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835 as_fn_error "invalid feature name: $ac_useropt"
836 ac_useropt_orig=$ac_useropt
837 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
838 case $ac_user_opts in
840 "enable_$ac_useropt"
841 "*) ;;
842 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
843 ac_unrecognized_sep=', ';;
844 esac
845 eval enable_$ac_useropt=\$ac_optarg ;;
847 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849 | --exec | --exe | --ex)
850 ac_prev=exec_prefix ;;
851 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853 | --exec=* | --exe=* | --ex=*)
854 exec_prefix=$ac_optarg ;;
856 -gas | --gas | --ga | --g)
857 # Obsolete; use --with-gas.
858 with_gas=yes ;;
860 -help | --help | --hel | --he | -h)
861 ac_init_help=long ;;
862 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863 ac_init_help=recursive ;;
864 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865 ac_init_help=short ;;
867 -host | --host | --hos | --ho)
868 ac_prev=host_alias ;;
869 -host=* | --host=* | --hos=* | --ho=*)
870 host_alias=$ac_optarg ;;
872 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873 ac_prev=htmldir ;;
874 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875 | --ht=*)
876 htmldir=$ac_optarg ;;
878 -includedir | --includedir | --includedi | --included | --include \
879 | --includ | --inclu | --incl | --inc)
880 ac_prev=includedir ;;
881 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882 | --includ=* | --inclu=* | --incl=* | --inc=*)
883 includedir=$ac_optarg ;;
885 -infodir | --infodir | --infodi | --infod | --info | --inf)
886 ac_prev=infodir ;;
887 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888 infodir=$ac_optarg ;;
890 -libdir | --libdir | --libdi | --libd)
891 ac_prev=libdir ;;
892 -libdir=* | --libdir=* | --libdi=* | --libd=*)
893 libdir=$ac_optarg ;;
895 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896 | --libexe | --libex | --libe)
897 ac_prev=libexecdir ;;
898 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899 | --libexe=* | --libex=* | --libe=*)
900 libexecdir=$ac_optarg ;;
902 -localedir | --localedir | --localedi | --localed | --locale)
903 ac_prev=localedir ;;
904 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905 localedir=$ac_optarg ;;
907 -localstatedir | --localstatedir | --localstatedi | --localstated \
908 | --localstate | --localstat | --localsta | --localst | --locals)
909 ac_prev=localstatedir ;;
910 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912 localstatedir=$ac_optarg ;;
914 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915 ac_prev=mandir ;;
916 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917 mandir=$ac_optarg ;;
919 -nfp | --nfp | --nf)
920 # Obsolete; use --without-fp.
921 with_fp=no ;;
923 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924 | --no-cr | --no-c | -n)
925 no_create=yes ;;
927 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
929 no_recursion=yes ;;
931 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933 | --oldin | --oldi | --old | --ol | --o)
934 ac_prev=oldincludedir ;;
935 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938 oldincludedir=$ac_optarg ;;
940 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941 ac_prev=prefix ;;
942 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
943 prefix=$ac_optarg ;;
945 -program-prefix | --program-prefix | --program-prefi | --program-pref \
946 | --program-pre | --program-pr | --program-p)
947 ac_prev=program_prefix ;;
948 -program-prefix=* | --program-prefix=* | --program-prefi=* \
949 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950 program_prefix=$ac_optarg ;;
952 -program-suffix | --program-suffix | --program-suffi | --program-suff \
953 | --program-suf | --program-su | --program-s)
954 ac_prev=program_suffix ;;
955 -program-suffix=* | --program-suffix=* | --program-suffi=* \
956 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957 program_suffix=$ac_optarg ;;
959 -program-transform-name | --program-transform-name \
960 | --program-transform-nam | --program-transform-na \
961 | --program-transform-n | --program-transform- \
962 | --program-transform | --program-transfor \
963 | --program-transfo | --program-transf \
964 | --program-trans | --program-tran \
965 | --progr-tra | --program-tr | --program-t)
966 ac_prev=program_transform_name ;;
967 -program-transform-name=* | --program-transform-name=* \
968 | --program-transform-nam=* | --program-transform-na=* \
969 | --program-transform-n=* | --program-transform-=* \
970 | --program-transform=* | --program-transfor=* \
971 | --program-transfo=* | --program-transf=* \
972 | --program-trans=* | --program-tran=* \
973 | --progr-tra=* | --program-tr=* | --program-t=*)
974 program_transform_name=$ac_optarg ;;
976 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977 ac_prev=pdfdir ;;
978 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
979 pdfdir=$ac_optarg ;;
981 -psdir | --psdir | --psdi | --psd | --ps)
982 ac_prev=psdir ;;
983 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
984 psdir=$ac_optarg ;;
986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987 | -silent | --silent | --silen | --sile | --sil)
988 silent=yes ;;
990 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991 ac_prev=sbindir ;;
992 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993 | --sbi=* | --sb=*)
994 sbindir=$ac_optarg ;;
996 -sharedstatedir | --sharedstatedir | --sharedstatedi \
997 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998 | --sharedst | --shareds | --shared | --share | --shar \
999 | --sha | --sh)
1000 ac_prev=sharedstatedir ;;
1001 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004 | --sha=* | --sh=*)
1005 sharedstatedir=$ac_optarg ;;
1007 -site | --site | --sit)
1008 ac_prev=site ;;
1009 -site=* | --site=* | --sit=*)
1010 site=$ac_optarg ;;
1012 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013 ac_prev=srcdir ;;
1014 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015 srcdir=$ac_optarg ;;
1017 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018 | --syscon | --sysco | --sysc | --sys | --sy)
1019 ac_prev=sysconfdir ;;
1020 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022 sysconfdir=$ac_optarg ;;
1024 -target | --target | --targe | --targ | --tar | --ta | --t)
1025 ac_prev=target_alias ;;
1026 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027 target_alias=$ac_optarg ;;
1029 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1030 verbose=yes ;;
1032 -version | --version | --versio | --versi | --vers | -V)
1033 ac_init_version=: ;;
1035 -with-* | --with-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error "invalid package name: $ac_useropt"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1044 "with_$ac_useropt"
1045 "*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval with_$ac_useropt=\$ac_optarg ;;
1051 -without-* | --without-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error "invalid package name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "with_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval with_$ac_useropt=no ;;
1067 --x)
1068 # Obsolete; use --with-x.
1069 with_x=yes ;;
1071 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1072 | --x-incl | --x-inc | --x-in | --x-i)
1073 ac_prev=x_includes ;;
1074 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1075 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1076 x_includes=$ac_optarg ;;
1078 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1079 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1080 ac_prev=x_libraries ;;
1081 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1082 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1083 x_libraries=$ac_optarg ;;
1085 -*) as_fn_error "unrecognized option: \`$ac_option'
1086 Try \`$0 --help' for more information."
1089 *=*)
1090 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1091 # Reject names that are not valid shell variable names.
1092 case $ac_envvar in #(
1093 '' | [0-9]* | *[!_$as_cr_alnum]* )
1094 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1095 esac
1096 eval $ac_envvar=\$ac_optarg
1097 export $ac_envvar ;;
1100 # FIXME: should be removed in autoconf 3.0.
1101 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1102 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1104 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1107 esac
1108 done
1110 if test -n "$ac_prev"; then
1111 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1112 as_fn_error "missing argument to $ac_option"
1115 if test -n "$ac_unrecognized_opts"; then
1116 case $enable_option_checking in
1117 no) ;;
1118 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1119 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1120 esac
1123 # Check all directory arguments for consistency.
1124 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1125 datadir sysconfdir sharedstatedir localstatedir includedir \
1126 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1127 libdir localedir mandir
1129 eval ac_val=\$$ac_var
1130 # Remove trailing slashes.
1131 case $ac_val in
1132 */ )
1133 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1134 eval $ac_var=\$ac_val;;
1135 esac
1136 # Be sure to have absolute directory names.
1137 case $ac_val in
1138 [\\/$]* | ?:[\\/]* ) continue;;
1139 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140 esac
1141 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1142 done
1144 # There might be people who depend on the old broken behavior: `$host'
1145 # used to hold the argument of --host etc.
1146 # FIXME: To remove some day.
1147 build=$build_alias
1148 host=$host_alias
1149 target=$target_alias
1151 # FIXME: To remove some day.
1152 if test "x$host_alias" != x; then
1153 if test "x$build_alias" = x; then
1154 cross_compiling=maybe
1155 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1156 If a cross compiler is detected then cross compile mode will be used." >&2
1157 elif test "x$build_alias" != "x$host_alias"; then
1158 cross_compiling=yes
1162 ac_tool_prefix=
1163 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1165 test "$silent" = yes && exec 6>/dev/null
1168 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1169 ac_ls_di=`ls -di .` &&
1170 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1171 as_fn_error "working directory cannot be determined"
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 as_fn_error "pwd does not report name of working directory"
1176 # Find the source files, if location was not specified.
1177 if test -z "$srcdir"; then
1178 ac_srcdir_defaulted=yes
1179 # Try the directory containing this script, then the parent directory.
1180 ac_confdir=`$as_dirname -- "$as_myself" ||
1181 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1182 X"$as_myself" : 'X\(//\)[^/]' \| \
1183 X"$as_myself" : 'X\(//\)$' \| \
1184 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1185 $as_echo X"$as_myself" |
1186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1187 s//\1/
1190 /^X\(\/\/\)[^/].*/{
1191 s//\1/
1194 /^X\(\/\/\)$/{
1195 s//\1/
1198 /^X\(\/\).*/{
1199 s//\1/
1202 s/.*/./; q'`
1203 srcdir=$ac_confdir
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 srcdir=..
1207 else
1208 ac_srcdir_defaulted=no
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1212 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1214 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1215 ac_abs_confdir=`(
1216 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1217 pwd)`
1218 # When building in place, set srcdir=.
1219 if test "$ac_abs_confdir" = "$ac_pwd"; then
1220 srcdir=.
1222 # Remove unnecessary trailing slashes from srcdir.
1223 # Double slashes in file names in object file debugging info
1224 # mess up M-x gdb in Emacs.
1225 case $srcdir in
1226 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1227 esac
1228 for ac_var in $ac_precious_vars; do
1229 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1230 eval ac_env_${ac_var}_value=\$${ac_var}
1231 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1232 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1233 done
1236 # Report the --help message.
1238 if test "$ac_init_help" = "long"; then
1239 # Omit some internal or obsolete options to make the list less imposing.
1240 # This message is too long to be a string in the A/UX 3.1 sh.
1241 cat <<_ACEOF
1242 \`configure' configures this package to adapt to many kinds of systems.
1244 Usage: $0 [OPTION]... [VAR=VALUE]...
1246 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1247 VAR=VALUE. See below for descriptions of some of the useful variables.
1249 Defaults for the options are specified in brackets.
1251 Configuration:
1252 -h, --help display this help and exit
1253 --help=short display options specific to this package
1254 --help=recursive display the short help of all the included packages
1255 -V, --version display version information and exit
1256 -q, --quiet, --silent do not print \`checking...' messages
1257 --cache-file=FILE cache test results in FILE [disabled]
1258 -C, --config-cache alias for \`--cache-file=config.cache'
1259 -n, --no-create do not create output files
1260 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1262 Installation directories:
1263 --prefix=PREFIX install architecture-independent files in PREFIX
1264 [$ac_default_prefix]
1265 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1266 [PREFIX]
1268 By default, \`make install' will install all the files in
1269 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1270 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1271 for instance \`--prefix=\$HOME'.
1273 For better control, use the options below.
1275 Fine tuning of the installation directories:
1276 --bindir=DIR user executables [EPREFIX/bin]
1277 --sbindir=DIR system admin executables [EPREFIX/sbin]
1278 --libexecdir=DIR program executables [EPREFIX/libexec]
1279 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1280 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1281 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1282 --libdir=DIR object code libraries [EPREFIX/lib]
1283 --includedir=DIR C header files [PREFIX/include]
1284 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1285 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1286 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1287 --infodir=DIR info documentation [DATAROOTDIR/info]
1288 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1289 --mandir=DIR man documentation [DATAROOTDIR/man]
1290 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1291 --htmldir=DIR html documentation [DOCDIR]
1292 --dvidir=DIR dvi documentation [DOCDIR]
1293 --pdfdir=DIR pdf documentation [DOCDIR]
1294 --psdir=DIR ps documentation [DOCDIR]
1295 _ACEOF
1297 cat <<\_ACEOF
1299 System types:
1300 --build=BUILD configure for building on BUILD [guessed]
1301 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1302 _ACEOF
1305 if test -n "$ac_init_help"; then
1307 cat <<\_ACEOF
1309 Optional Features:
1310 --disable-option-checking ignore unrecognized --enable/--with options
1311 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1312 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1313 --disable-nls do not use Native Language Support
1314 --disable-rpath do not hardcode runtime library paths
1315 --enable-maintainer-mode enable rules only needed by maintainers
1317 Optional Packages:
1318 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1319 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1320 --with-libiconv-prefix=DIR
1321 search for libiconv in DIR/include and DIR/lib
1322 --with-gnu-ld assume the C compiler uses GNU ld default=no
1323 --with-included-gettext use the GNU gettext library included here
1324 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1325 --without-libintl-prefix don't search for libintl in includedir and libdir
1327 Some influential environment variables:
1328 CC C compiler command
1329 CFLAGS C compiler flags
1330 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1331 nonstandard directory <lib dir>
1332 LIBS libraries to pass to the linker, e.g. -l<library>
1333 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1334 you have headers in a nonstandard directory <include dir>
1335 CPP C preprocessor
1337 Use these variables to override the choices made by `configure' or to help
1338 it to find libraries and programs with nonstandard names/locations.
1340 Report bugs to the package provider.
1341 _ACEOF
1342 ac_status=$?
1345 if test "$ac_init_help" = "recursive"; then
1346 # If there are subdirs, report their specific --help.
1347 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1348 test -d "$ac_dir" ||
1349 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1350 continue
1351 ac_builddir=.
1353 case "$ac_dir" in
1354 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1356 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1357 # A ".." for each directory in $ac_dir_suffix.
1358 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1359 case $ac_top_builddir_sub in
1360 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1361 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1362 esac ;;
1363 esac
1364 ac_abs_top_builddir=$ac_pwd
1365 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1366 # for backward compatibility:
1367 ac_top_builddir=$ac_top_build_prefix
1369 case $srcdir in
1370 .) # We are building in place.
1371 ac_srcdir=.
1372 ac_top_srcdir=$ac_top_builddir_sub
1373 ac_abs_top_srcdir=$ac_pwd ;;
1374 [\\/]* | ?:[\\/]* ) # Absolute name.
1375 ac_srcdir=$srcdir$ac_dir_suffix;
1376 ac_top_srcdir=$srcdir
1377 ac_abs_top_srcdir=$srcdir ;;
1378 *) # Relative name.
1379 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1380 ac_top_srcdir=$ac_top_build_prefix$srcdir
1381 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1382 esac
1383 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1385 cd "$ac_dir" || { ac_status=$?; continue; }
1386 # Check for guested configure.
1387 if test -f "$ac_srcdir/configure.gnu"; then
1388 echo &&
1389 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1390 elif test -f "$ac_srcdir/configure"; then
1391 echo &&
1392 $SHELL "$ac_srcdir/configure" --help=recursive
1393 else
1394 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1395 fi || ac_status=$?
1396 cd "$ac_pwd" || { ac_status=$?; break; }
1397 done
1400 test -n "$ac_init_help" && exit $ac_status
1401 if $ac_init_version; then
1402 cat <<\_ACEOF
1403 configure
1404 generated by GNU Autoconf 2.64
1406 Copyright (C) 2009 Free Software Foundation, Inc.
1407 This configure script is free software; the Free Software Foundation
1408 gives unlimited permission to copy, distribute and modify it.
1409 _ACEOF
1410 exit
1413 ## ------------------------ ##
1414 ## Autoconf initialization. ##
1415 ## ------------------------ ##
1417 # ac_fn_c_try_compile LINENO
1418 # --------------------------
1419 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1420 ac_fn_c_try_compile ()
1422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1423 rm -f conftest.$ac_objext
1424 if { { ac_try="$ac_compile"
1425 case "(($ac_try" in
1426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1427 *) ac_try_echo=$ac_try;;
1428 esac
1429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1430 $as_echo "$ac_try_echo"; } >&5
1431 (eval "$ac_compile") 2>conftest.err
1432 ac_status=$?
1433 if test -s conftest.err; then
1434 grep -v '^ *+' conftest.err >conftest.er1
1435 cat conftest.er1 >&5
1436 mv -f conftest.er1 conftest.err
1438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1439 test $ac_status = 0; } && {
1440 test -z "$ac_c_werror_flag" ||
1441 test ! -s conftest.err
1442 } && test -s conftest.$ac_objext; then :
1443 ac_retval=0
1444 else
1445 $as_echo "$as_me: failed program was:" >&5
1446 sed 's/^/| /' conftest.$ac_ext >&5
1448 ac_retval=1
1450 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1451 return $ac_retval
1453 } # ac_fn_c_try_compile
1455 # ac_fn_c_try_link LINENO
1456 # -----------------------
1457 # Try to link conftest.$ac_ext, and return whether this succeeded.
1458 ac_fn_c_try_link ()
1460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1461 rm -f conftest.$ac_objext conftest$ac_exeext
1462 if { { ac_try="$ac_link"
1463 case "(($ac_try" in
1464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1465 *) ac_try_echo=$ac_try;;
1466 esac
1467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1468 $as_echo "$ac_try_echo"; } >&5
1469 (eval "$ac_link") 2>conftest.err
1470 ac_status=$?
1471 if test -s conftest.err; then
1472 grep -v '^ *+' conftest.err >conftest.er1
1473 cat conftest.er1 >&5
1474 mv -f conftest.er1 conftest.err
1476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1477 test $ac_status = 0; } && {
1478 test -z "$ac_c_werror_flag" ||
1479 test ! -s conftest.err
1480 } && test -s conftest$ac_exeext && {
1481 test "$cross_compiling" = yes ||
1482 $as_test_x conftest$ac_exeext
1483 }; then :
1484 ac_retval=0
1485 else
1486 $as_echo "$as_me: failed program was:" >&5
1487 sed 's/^/| /' conftest.$ac_ext >&5
1489 ac_retval=1
1491 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1492 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1493 # interfere with the next link command; also delete a directory that is
1494 # left behind by Apple's compiler. We do this before executing the actions.
1495 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1496 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1497 return $ac_retval
1499 } # ac_fn_c_try_link
1501 # ac_fn_c_try_cpp LINENO
1502 # ----------------------
1503 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1504 ac_fn_c_try_cpp ()
1506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507 if { { ac_try="$ac_cpp conftest.$ac_ext"
1508 case "(($ac_try" in
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1511 esac
1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 $as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1515 ac_status=$?
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } >/dev/null && {
1523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 }; then :
1526 ac_retval=0
1527 else
1528 $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1531 ac_retval=1
1533 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1534 return $ac_retval
1536 } # ac_fn_c_try_cpp
1538 # ac_fn_c_try_run LINENO
1539 # ----------------------
1540 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1541 # that executables *can* be run.
1542 ac_fn_c_try_run ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 if { { ac_try="$ac_link"
1546 case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_link") 2>&5
1553 ac_status=$?
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1556 { { case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_try") 2>&5
1563 ac_status=$?
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; }; }; then :
1566 ac_retval=0
1567 else
1568 $as_echo "$as_me: program exited with status $ac_status" >&5
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1572 ac_retval=$ac_status
1574 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1576 return $ac_retval
1578 } # ac_fn_c_try_run
1580 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1581 # -------------------------------------------
1582 # Tests whether TYPE exists after having included INCLUDES, setting cache
1583 # variable VAR accordingly.
1584 ac_fn_c_check_type ()
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1588 $as_echo_n "checking for $2... " >&6; }
1589 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1590 $as_echo_n "(cached) " >&6
1591 else
1592 eval "$3=no"
1593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594 /* end confdefs.h. */
1597 main ()
1599 if (sizeof ($2))
1600 return 0;
1602 return 0;
1604 _ACEOF
1605 if ac_fn_c_try_compile "$LINENO"; then :
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h. */
1610 main ()
1612 if (sizeof (($2)))
1613 return 0;
1615 return 0;
1617 _ACEOF
1618 if ac_fn_c_try_compile "$LINENO"; then :
1620 else
1621 eval "$3=yes"
1623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1627 eval ac_res=\$$3
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629 $as_echo "$ac_res" >&6; }
1630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1632 } # ac_fn_c_check_type
1634 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1635 # -------------------------------------------------------
1636 # Tests whether HEADER exists and can be compiled using the include files in
1637 # INCLUDES, setting the cache variable VAR accordingly.
1638 ac_fn_c_check_header_compile ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 $as_echo_n "checking for $2... " >&6; }
1643 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1644 $as_echo_n "(cached) " >&6
1645 else
1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647 /* end confdefs.h. */
1649 #include <$2>
1650 _ACEOF
1651 if ac_fn_c_try_compile "$LINENO"; then :
1652 eval "$3=yes"
1653 else
1654 eval "$3=no"
1656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658 eval ac_res=\$$3
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660 $as_echo "$ac_res" >&6; }
1661 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 } # ac_fn_c_check_header_compile
1665 # ac_fn_c_check_func LINENO FUNC VAR
1666 # ----------------------------------
1667 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1668 ac_fn_c_check_func ()
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1674 $as_echo_n "(cached) " >&6
1675 else
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677 /* end confdefs.h. */
1678 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1680 #define $2 innocuous_$2
1682 /* System header to define __stub macros and hopefully few prototypes,
1683 which can conflict with char $2 (); below.
1684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1685 <limits.h> exists even on freestanding compilers. */
1687 #ifdef __STDC__
1688 # include <limits.h>
1689 #else
1690 # include <assert.h>
1691 #endif
1693 #undef $2
1695 /* Override any GCC internal prototype to avoid an error.
1696 Use char because int might match the return type of a GCC
1697 builtin and then its argument prototype would still apply. */
1698 #ifdef __cplusplus
1699 extern "C"
1700 #endif
1701 char $2 ();
1702 /* The GNU C library defines this for functions which it implements
1703 to always fail with ENOSYS. Some functions are actually named
1704 something starting with __ and the normal name is an alias. */
1705 #if defined __stub_$2 || defined __stub___$2
1706 choke me
1707 #endif
1710 main ()
1712 return $2 ();
1714 return 0;
1716 _ACEOF
1717 if ac_fn_c_try_link "$LINENO"; then :
1718 eval "$3=yes"
1719 else
1720 eval "$3=no"
1722 rm -f core conftest.err conftest.$ac_objext \
1723 conftest$ac_exeext conftest.$ac_ext
1725 eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730 } # ac_fn_c_check_func
1732 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1733 # -------------------------------------------------------
1734 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1735 # the include files in INCLUDES and setting the cache variable VAR
1736 # accordingly.
1737 ac_fn_c_check_header_mongrel ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1744 $as_echo_n "(cached) " >&6
1746 eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749 else
1750 # Is the header compilable?
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1752 $as_echo_n "checking $2 usability... " >&6; }
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1756 #include <$2>
1757 _ACEOF
1758 if ac_fn_c_try_compile "$LINENO"; then :
1759 ac_header_compiler=yes
1760 else
1761 ac_header_compiler=no
1763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1765 $as_echo "$ac_header_compiler" >&6; }
1767 # Is the header present?
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1769 $as_echo_n "checking $2 presence... " >&6; }
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1772 #include <$2>
1773 _ACEOF
1774 if ac_fn_c_try_cpp "$LINENO"; then :
1775 ac_header_preproc=yes
1776 else
1777 ac_header_preproc=no
1779 rm -f conftest.err conftest.$ac_ext
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1781 $as_echo "$ac_header_preproc" >&6; }
1783 # So? What about this header?
1784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1785 yes:no: )
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1787 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1791 no:yes:* )
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1793 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1795 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1797 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1799 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1801 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1803 esac
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1807 $as_echo_n "(cached) " >&6
1808 else
1809 eval "$3=\$ac_header_compiler"
1811 eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 } # ac_fn_c_check_header_mongrel
1818 cat >config.log <<_ACEOF
1819 This file contains any messages produced by compilers while
1820 running configure, to aid debugging if configure makes a mistake.
1822 It was created by $as_me, which was
1823 generated by GNU Autoconf 2.64. Invocation command line was
1825 $ $0 $@
1827 _ACEOF
1828 exec 5>>config.log
1830 cat <<_ASUNAME
1831 ## --------- ##
1832 ## Platform. ##
1833 ## --------- ##
1835 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1836 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1837 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1838 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1839 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1841 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1842 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1844 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1845 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1846 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1847 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1848 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1849 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1850 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1852 _ASUNAME
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 for as_dir in $PATH
1857 IFS=$as_save_IFS
1858 test -z "$as_dir" && as_dir=.
1859 $as_echo "PATH: $as_dir"
1860 done
1861 IFS=$as_save_IFS
1863 } >&5
1865 cat >&5 <<_ACEOF
1868 ## ----------- ##
1869 ## Core tests. ##
1870 ## ----------- ##
1872 _ACEOF
1875 # Keep a trace of the command line.
1876 # Strip out --no-create and --no-recursion so they do not pile up.
1877 # Strip out --silent because we don't want to record it for future runs.
1878 # Also quote any args containing shell meta-characters.
1879 # Make two passes to allow for proper duplicate-argument suppression.
1880 ac_configure_args=
1881 ac_configure_args0=
1882 ac_configure_args1=
1883 ac_must_keep_next=false
1884 for ac_pass in 1 2
1886 for ac_arg
1888 case $ac_arg in
1889 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1891 | -silent | --silent | --silen | --sile | --sil)
1892 continue ;;
1893 *\'*)
1894 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1895 esac
1896 case $ac_pass in
1897 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1899 as_fn_append ac_configure_args1 " '$ac_arg'"
1900 if test $ac_must_keep_next = true; then
1901 ac_must_keep_next=false # Got value, back to normal.
1902 else
1903 case $ac_arg in
1904 *=* | --config-cache | -C | -disable-* | --disable-* \
1905 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1906 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1907 | -with-* | --with-* | -without-* | --without-* | --x)
1908 case "$ac_configure_args0 " in
1909 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1910 esac
1912 -* ) ac_must_keep_next=true ;;
1913 esac
1915 as_fn_append ac_configure_args " '$ac_arg'"
1917 esac
1918 done
1919 done
1920 { ac_configure_args0=; unset ac_configure_args0;}
1921 { ac_configure_args1=; unset ac_configure_args1;}
1923 # When interrupted or exit'd, cleanup temporary files, and complete
1924 # config.log. We remove comments because anyway the quotes in there
1925 # would cause problems or look ugly.
1926 # WARNING: Use '\'' to represent an apostrophe within the trap.
1927 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1928 trap 'exit_status=$?
1929 # Save into config.log some information that might help in debugging.
1931 echo
1933 cat <<\_ASBOX
1934 ## ---------------- ##
1935 ## Cache variables. ##
1936 ## ---------------- ##
1937 _ASBOX
1938 echo
1939 # The following way of writing the cache mishandles newlines in values,
1941 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1942 eval ac_val=\$$ac_var
1943 case $ac_val in #(
1944 *${as_nl}*)
1945 case $ac_var in #(
1946 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1947 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1948 esac
1949 case $ac_var in #(
1950 _ | IFS | as_nl) ;; #(
1951 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1952 *) { eval $ac_var=; unset $ac_var;} ;;
1953 esac ;;
1954 esac
1955 done
1956 (set) 2>&1 |
1957 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1958 *${as_nl}ac_space=\ *)
1959 sed -n \
1960 "s/'\''/'\''\\\\'\'''\''/g;
1961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1962 ;; #(
1964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1966 esac |
1967 sort
1969 echo
1971 cat <<\_ASBOX
1972 ## ----------------- ##
1973 ## Output variables. ##
1974 ## ----------------- ##
1975 _ASBOX
1976 echo
1977 for ac_var in $ac_subst_vars
1979 eval ac_val=\$$ac_var
1980 case $ac_val in
1981 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1982 esac
1983 $as_echo "$ac_var='\''$ac_val'\''"
1984 done | sort
1985 echo
1987 if test -n "$ac_subst_files"; then
1988 cat <<\_ASBOX
1989 ## ------------------- ##
1990 ## File substitutions. ##
1991 ## ------------------- ##
1992 _ASBOX
1993 echo
1994 for ac_var in $ac_subst_files
1996 eval ac_val=\$$ac_var
1997 case $ac_val in
1998 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999 esac
2000 $as_echo "$ac_var='\''$ac_val'\''"
2001 done | sort
2002 echo
2005 if test -s confdefs.h; then
2006 cat <<\_ASBOX
2007 ## ----------- ##
2008 ## confdefs.h. ##
2009 ## ----------- ##
2010 _ASBOX
2011 echo
2012 cat confdefs.h
2013 echo
2015 test "$ac_signal" != 0 &&
2016 $as_echo "$as_me: caught signal $ac_signal"
2017 $as_echo "$as_me: exit $exit_status"
2018 } >&5
2019 rm -f core *.core core.conftest.* &&
2020 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2021 exit $exit_status
2023 for ac_signal in 1 2 13 15; do
2024 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2025 done
2026 ac_signal=0
2028 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2029 rm -f -r conftest* confdefs.h
2031 $as_echo "/* confdefs.h */" > confdefs.h
2033 # Predefined preprocessor variables.
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_NAME "$PACKAGE_NAME"
2037 _ACEOF
2039 cat >>confdefs.h <<_ACEOF
2040 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2041 _ACEOF
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2045 _ACEOF
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_STRING "$PACKAGE_STRING"
2049 _ACEOF
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2053 _ACEOF
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_URL "$PACKAGE_URL"
2057 _ACEOF
2060 # Let the site file select an alternate cache file if it wants to.
2061 # Prefer an explicitly selected file to automatically selected ones.
2062 ac_site_file1=NONE
2063 ac_site_file2=NONE
2064 if test -n "$CONFIG_SITE"; then
2065 ac_site_file1=$CONFIG_SITE
2066 elif test "x$prefix" != xNONE; then
2067 ac_site_file1=$prefix/share/config.site
2068 ac_site_file2=$prefix/etc/config.site
2069 else
2070 ac_site_file1=$ac_default_prefix/share/config.site
2071 ac_site_file2=$ac_default_prefix/etc/config.site
2073 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2075 test "x$ac_site_file" = xNONE && continue
2076 if test -r "$ac_site_file"; then
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2078 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2079 sed 's/^/| /' "$ac_site_file" >&5
2080 . "$ac_site_file"
2082 done
2084 if test -r "$cache_file"; then
2085 # Some versions of bash will fail to source /dev/null (special
2086 # files actually), so we avoid doing that.
2087 if test -f "$cache_file"; then
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2089 $as_echo "$as_me: loading cache $cache_file" >&6;}
2090 case $cache_file in
2091 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2092 *) . "./$cache_file";;
2093 esac
2095 else
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2097 $as_echo "$as_me: creating cache $cache_file" >&6;}
2098 >$cache_file
2101 # Check that the precious variables saved in the cache have kept the same
2102 # value.
2103 ac_cache_corrupted=false
2104 for ac_var in $ac_precious_vars; do
2105 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2106 eval ac_new_set=\$ac_env_${ac_var}_set
2107 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2108 eval ac_new_val=\$ac_env_${ac_var}_value
2109 case $ac_old_set,$ac_new_set in
2110 set,)
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2112 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2113 ac_cache_corrupted=: ;;
2114 ,set)
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2116 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2117 ac_cache_corrupted=: ;;
2118 ,);;
2120 if test "x$ac_old_val" != "x$ac_new_val"; then
2121 # differences in whitespace do not lead to failure.
2122 ac_old_val_w=`echo x $ac_old_val`
2123 ac_new_val_w=`echo x $ac_new_val`
2124 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2126 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2127 ac_cache_corrupted=:
2128 else
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2130 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2131 eval $ac_var=\$ac_old_val
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2134 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2136 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2137 fi;;
2138 esac
2139 # Pass precious variables to config.status.
2140 if test "$ac_new_set" = set; then
2141 case $ac_new_val in
2142 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2143 *) ac_arg=$ac_var=$ac_new_val ;;
2144 esac
2145 case " $ac_configure_args " in
2146 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2147 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2148 esac
2150 done
2151 if $ac_cache_corrupted; then
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2155 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2156 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2158 ## -------------------- ##
2159 ## Main body of script. ##
2160 ## -------------------- ##
2162 ac_ext=c
2163 ac_cpp='$CPP $CPPFLAGS'
2164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2173 ac_config_headers="$ac_config_headers config.h"
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2178 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2179 set x ${MAKE-make}
2180 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2181 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2182 $as_echo_n "(cached) " >&6
2183 else
2184 cat >conftest.make <<\_ACEOF
2185 SHELL = /bin/sh
2186 all:
2187 @echo '@@@%%%=$(MAKE)=@@@%%%'
2188 _ACEOF
2189 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2190 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2191 *@@@%%%=?*=@@@%%%*)
2192 eval ac_cv_prog_make_${ac_make}_set=yes;;
2194 eval ac_cv_prog_make_${ac_make}_set=no;;
2195 esac
2196 rm -f conftest.make
2198 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2200 $as_echo "yes" >&6; }
2201 SET_MAKE=
2202 else
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2204 $as_echo "no" >&6; }
2205 SET_MAKE="MAKE=${MAKE-make}"
2208 ac_aux_dir=
2209 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2210 for ac_t in install-sh install.sh shtool; do
2211 if test -f "$ac_dir/$ac_t"; then
2212 ac_aux_dir=$ac_dir
2213 ac_install_sh="$ac_aux_dir/$ac_t -c"
2214 break 2
2216 done
2217 done
2218 if test -z "$ac_aux_dir"; then
2219 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2222 # These three variables are undocumented and unsupported,
2223 # and are intended to be withdrawn in a future Autoconf release.
2224 # They can cause serious problems if a builder's source tree is in a directory
2225 # whose full name contains unusual characters.
2226 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2227 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2228 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2231 # Find a good install program. We prefer a C program (faster),
2232 # so one script is as good as another. But avoid the broken or
2233 # incompatible versions:
2234 # SysV /etc/install, /usr/sbin/install
2235 # SunOS /usr/etc/install
2236 # IRIX /sbin/install
2237 # AIX /bin/install
2238 # AmigaOS /C/install, which installs bootblocks on floppy discs
2239 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2240 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2241 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2242 # OS/2's system install, which has a completely different semantic
2243 # ./install, which can be erroneously created by make from ./install.sh.
2244 # Reject install programs that cannot install multiple files.
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2246 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2247 if test -z "$INSTALL"; then
2248 if test "${ac_cv_path_install+set}" = set; then :
2249 $as_echo_n "(cached) " >&6
2250 else
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 # Account for people who put trailing slashes in PATH elements.
2257 case $as_dir/ in #((
2258 ./ | .// | /[cC]/* | \
2259 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2260 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2261 /usr/ucb/* ) ;;
2263 # OSF1 and SCO ODT 3.0 have their own names for install.
2264 # Don't use installbsd from OSF since it installs stuff as root
2265 # by default.
2266 for ac_prog in ginstall scoinst install; do
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2269 if test $ac_prog = install &&
2270 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2271 # AIX install. It has an incompatible calling convention.
2273 elif test $ac_prog = install &&
2274 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2275 # program-specific install script used by HP pwplus--don't use.
2277 else
2278 rm -rf conftest.one conftest.two conftest.dir
2279 echo one > conftest.one
2280 echo two > conftest.two
2281 mkdir conftest.dir
2282 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2283 test -s conftest.one && test -s conftest.two &&
2284 test -s conftest.dir/conftest.one &&
2285 test -s conftest.dir/conftest.two
2286 then
2287 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2288 break 3
2292 done
2293 done
2295 esac
2297 done
2298 IFS=$as_save_IFS
2300 rm -rf conftest.one conftest.two conftest.dir
2303 if test "${ac_cv_path_install+set}" = set; then
2304 INSTALL=$ac_cv_path_install
2305 else
2306 # As a last resort, use the slow shell script. Don't cache a
2307 # value for INSTALL within a source directory, because that will
2308 # break other packages using the cache if that directory is
2309 # removed, or if the value is a relative name.
2310 INSTALL=$ac_install_sh
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2314 $as_echo "$INSTALL" >&6; }
2316 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2317 # It thinks the first close brace ends the variable substitution.
2318 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2320 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2322 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2325 MKINSTALLDIRS=
2326 if test -n "$ac_aux_dir"; then
2327 case "$ac_aux_dir" in
2328 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
2329 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
2330 esac
2332 if test -z "$MKINSTALLDIRS"; then
2333 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2339 $as_echo_n "checking whether NLS is requested... " >&6; }
2340 # Check whether --enable-nls was given.
2341 if test "${enable_nls+set}" = set; then :
2342 enableval=$enable_nls; USE_NLS=$enableval
2343 else
2344 USE_NLS=yes
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
2348 $as_echo "$USE_NLS" >&6; }
2355 # Prepare PATH_SEPARATOR.
2356 # The user is always right.
2357 if test "${PATH_SEPARATOR+set}" != set; then
2358 echo "#! /bin/sh" >conf$$.sh
2359 echo "exit 0" >>conf$$.sh
2360 chmod +x conf$$.sh
2361 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2362 PATH_SEPARATOR=';'
2363 else
2364 PATH_SEPARATOR=:
2366 rm -f conf$$.sh
2369 # Find out how to test for executable files. Don't use a zero-byte file,
2370 # as systems may use methods other than mode bits to determine executability.
2371 cat >conf$$.file <<_ASEOF
2372 #! /bin/sh
2373 exit 0
2374 _ASEOF
2375 chmod +x conf$$.file
2376 if test -x conf$$.file >/dev/null 2>&1; then
2377 ac_executable_p="test -x"
2378 else
2379 ac_executable_p="test -f"
2381 rm -f conf$$.file
2383 # Extract the first word of "msgfmt", so it can be a program name with args.
2384 set dummy msgfmt; ac_word=$2
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2386 $as_echo_n "checking for $ac_word... " >&6; }
2387 if test "${ac_cv_path_MSGFMT+set}" = set; then :
2388 $as_echo_n "(cached) " >&6
2389 else
2390 case "$MSGFMT" in
2391 [\\/]* | ?:[\\/]*)
2392 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2395 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2396 for ac_dir in $PATH; do
2397 IFS="$ac_save_IFS"
2398 test -z "$ac_dir" && ac_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2401 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2402 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2403 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2404 break 2
2407 done
2408 done
2409 IFS="$ac_save_IFS"
2410 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2412 esac
2414 MSGFMT="$ac_cv_path_MSGFMT"
2415 if test "$MSGFMT" != ":"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
2417 $as_echo "$MSGFMT" >&6; }
2418 else
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2420 $as_echo "no" >&6; }
2423 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2424 set dummy gmsgfmt; ac_word=$2
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2426 $as_echo_n "checking for $ac_word... " >&6; }
2427 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
2428 $as_echo_n "(cached) " >&6
2429 else
2430 case $GMSGFMT in
2431 [\\/]* | ?:[\\/]*)
2432 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 break 2
2446 done
2447 done
2448 IFS=$as_save_IFS
2450 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2452 esac
2454 GMSGFMT=$ac_cv_path_GMSGFMT
2455 if test -n "$GMSGFMT"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
2457 $as_echo "$GMSGFMT" >&6; }
2458 else
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2460 $as_echo "no" >&6; }
2466 # Prepare PATH_SEPARATOR.
2467 # The user is always right.
2468 if test "${PATH_SEPARATOR+set}" != set; then
2469 echo "#! /bin/sh" >conf$$.sh
2470 echo "exit 0" >>conf$$.sh
2471 chmod +x conf$$.sh
2472 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2473 PATH_SEPARATOR=';'
2474 else
2475 PATH_SEPARATOR=:
2477 rm -f conf$$.sh
2480 # Find out how to test for executable files. Don't use a zero-byte file,
2481 # as systems may use methods other than mode bits to determine executability.
2482 cat >conf$$.file <<_ASEOF
2483 #! /bin/sh
2484 exit 0
2485 _ASEOF
2486 chmod +x conf$$.file
2487 if test -x conf$$.file >/dev/null 2>&1; then
2488 ac_executable_p="test -x"
2489 else
2490 ac_executable_p="test -f"
2492 rm -f conf$$.file
2494 # Extract the first word of "xgettext", so it can be a program name with args.
2495 set dummy xgettext; ac_word=$2
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2497 $as_echo_n "checking for $ac_word... " >&6; }
2498 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
2499 $as_echo_n "(cached) " >&6
2500 else
2501 case "$XGETTEXT" in
2502 [\\/]* | ?:[\\/]*)
2503 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2506 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2507 for ac_dir in $PATH; do
2508 IFS="$ac_save_IFS"
2509 test -z "$ac_dir" && ac_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2512 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2513 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2514 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2515 break 2
2518 done
2519 done
2520 IFS="$ac_save_IFS"
2521 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2523 esac
2525 XGETTEXT="$ac_cv_path_XGETTEXT"
2526 if test "$XGETTEXT" != ":"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
2528 $as_echo "$XGETTEXT" >&6; }
2529 else
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2534 rm -f messages.po
2537 # Prepare PATH_SEPARATOR.
2538 # The user is always right.
2539 if test "${PATH_SEPARATOR+set}" != set; then
2540 echo "#! /bin/sh" >conf$$.sh
2541 echo "exit 0" >>conf$$.sh
2542 chmod +x conf$$.sh
2543 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2544 PATH_SEPARATOR=';'
2545 else
2546 PATH_SEPARATOR=:
2548 rm -f conf$$.sh
2551 # Find out how to test for executable files. Don't use a zero-byte file,
2552 # as systems may use methods other than mode bits to determine executability.
2553 cat >conf$$.file <<_ASEOF
2554 #! /bin/sh
2555 exit 0
2556 _ASEOF
2557 chmod +x conf$$.file
2558 if test -x conf$$.file >/dev/null 2>&1; then
2559 ac_executable_p="test -x"
2560 else
2561 ac_executable_p="test -f"
2563 rm -f conf$$.file
2565 # Extract the first word of "msgmerge", so it can be a program name with args.
2566 set dummy msgmerge; ac_word=$2
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 case "$MSGMERGE" in
2573 [\\/]* | ?:[\\/]*)
2574 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2577 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2578 for ac_dir in $PATH; do
2579 IFS="$ac_save_IFS"
2580 test -z "$ac_dir" && ac_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2583 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
2584 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2585 break 2
2588 done
2589 done
2590 IFS="$ac_save_IFS"
2591 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2593 esac
2595 MSGMERGE="$ac_cv_path_MSGMERGE"
2596 if test "$MSGMERGE" != ":"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
2598 $as_echo "$MSGMERGE" >&6; }
2599 else
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601 $as_echo "no" >&6; }
2605 if test "$GMSGFMT" != ":"; then
2606 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2607 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2609 else
2610 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2612 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
2613 GMSGFMT=":"
2617 if test "$XGETTEXT" != ":"; then
2618 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2619 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2621 else
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
2623 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
2624 XGETTEXT=":"
2626 rm -f messages.po
2629 ac_config_commands="$ac_config_commands default-1"
2632 ac_ext=c
2633 ac_cpp='$CPP $CPPFLAGS'
2634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637 if test -n "$ac_tool_prefix"; then
2638 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2639 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_prog_CC+set}" = set; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2659 done
2660 done
2661 IFS=$as_save_IFS
2665 CC=$ac_cv_prog_CC
2666 if test -n "$CC"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2668 $as_echo "$CC" >&6; }
2669 else
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2676 if test -z "$ac_cv_prog_CC"; then
2677 ac_ct_CC=$CC
2678 # Extract the first word of "gcc", so it can be a program name with args.
2679 set dummy gcc; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test -n "$ac_ct_CC"; then
2686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_ac_ct_CC="gcc"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2699 done
2700 done
2701 IFS=$as_save_IFS
2705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2706 if test -n "$ac_ct_CC"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2708 $as_echo "$ac_ct_CC" >&6; }
2709 else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2714 if test "x$ac_ct_CC" = x; then
2715 CC=""
2716 else
2717 case $cross_compiling:$ac_tool_warned in
2718 yes:)
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2721 ac_tool_warned=yes ;;
2722 esac
2723 CC=$ac_ct_CC
2725 else
2726 CC="$ac_cv_prog_CC"
2729 if test -z "$CC"; then
2730 if test -n "$ac_tool_prefix"; then
2731 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2732 set dummy ${ac_tool_prefix}cc; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if test "${ac_cv_prog_CC+set}" = set; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_CC="${ac_tool_prefix}cc"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2752 done
2753 done
2754 IFS=$as_save_IFS
2758 CC=$ac_cv_prog_CC
2759 if test -n "$CC"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761 $as_echo "$CC" >&6; }
2762 else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2770 if test -z "$CC"; then
2771 # Extract the first word of "cc", so it can be a program name with args.
2772 set dummy cc; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if test "${ac_cv_prog_CC+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 ac_prog_rejected=no
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2790 ac_prog_rejected=yes
2791 continue
2793 ac_cv_prog_CC="cc"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2797 done
2798 done
2799 IFS=$as_save_IFS
2801 if test $ac_prog_rejected = yes; then
2802 # We found a bogon in the path, so make sure we never use it.
2803 set dummy $ac_cv_prog_CC
2804 shift
2805 if test $# != 0; then
2806 # We chose a different compiler from the bogus one.
2807 # However, it has the same basename, so the bogon will be chosen
2808 # first if we set CC to just the basename; use the full file name.
2809 shift
2810 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2815 CC=$ac_cv_prog_CC
2816 if test -n "$CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2818 $as_echo "$CC" >&6; }
2819 else
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2826 if test -z "$CC"; then
2827 if test -n "$ac_tool_prefix"; then
2828 for ac_prog in cl.exe
2830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if test "${ac_cv_prog_CC+set}" = set; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2851 done
2852 done
2853 IFS=$as_save_IFS
2857 CC=$ac_cv_prog_CC
2858 if test -n "$CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860 $as_echo "$CC" >&6; }
2861 else
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2867 test -n "$CC" && break
2868 done
2870 if test -z "$CC"; then
2871 ac_ct_CC=$CC
2872 for ac_prog in cl.exe
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 set dummy $ac_prog; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 if test -n "$ac_ct_CC"; then
2882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_ac_ct_CC="$ac_prog"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2895 done
2896 done
2897 IFS=$as_save_IFS
2901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2902 if test -n "$ac_ct_CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2904 $as_echo "$ac_ct_CC" >&6; }
2905 else
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2911 test -n "$ac_ct_CC" && break
2912 done
2914 if test "x$ac_ct_CC" = x; then
2915 CC=""
2916 else
2917 case $cross_compiling:$ac_tool_warned in
2918 yes:)
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921 ac_tool_warned=yes ;;
2922 esac
2923 CC=$ac_ct_CC
2930 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932 as_fn_error "no acceptable C compiler found in \$PATH
2933 See \`config.log' for more details." "$LINENO" 5; }
2935 # Provide some information about the compiler.
2936 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2937 set X $ac_compile
2938 ac_compiler=$2
2939 for ac_option in --version -v -V -qversion; do
2940 { { ac_try="$ac_compiler $ac_option >&5"
2941 case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2946 $as_echo "$ac_try_echo"; } >&5
2947 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2948 ac_status=$?
2949 if test -s conftest.err; then
2950 sed '10a\
2951 ... rest of stderr output deleted ...
2952 10q' conftest.err >conftest.er1
2953 cat conftest.er1 >&5
2954 rm -f conftest.er1 conftest.err
2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2957 test $ac_status = 0; }
2958 done
2960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2961 /* end confdefs.h. */
2964 main ()
2968 return 0;
2970 _ACEOF
2971 ac_clean_files_save=$ac_clean_files
2972 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2973 # Try to create an executable without -o first, disregard a.out.
2974 # It will help us diagnose broken compilers, and finding out an intuition
2975 # of exeext.
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2977 $as_echo_n "checking for C compiler default output file name... " >&6; }
2978 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2980 # The possible output files:
2981 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2983 ac_rmfiles=
2984 for ac_file in $ac_files
2986 case $ac_file in
2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2988 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2989 esac
2990 done
2991 rm -f $ac_rmfiles
2993 if { { ac_try="$ac_link_default"
2994 case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997 esac
2998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2999 $as_echo "$ac_try_echo"; } >&5
3000 (eval "$ac_link_default") 2>&5
3001 ac_status=$?
3002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3003 test $ac_status = 0; }; then :
3004 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3005 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3006 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3007 # so that the user can short-circuit this test for compilers unknown to
3008 # Autoconf.
3009 for ac_file in $ac_files ''
3011 test -f "$ac_file" || continue
3012 case $ac_file in
3013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3015 [ab].out )
3016 # We found the default executable, but exeext='' is most
3017 # certainly right.
3018 break;;
3019 *.* )
3020 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3021 then :; else
3022 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3024 # We set ac_cv_exeext here because the later test for it is not
3025 # safe: cross compilers may not add the suffix if given an `-o'
3026 # argument, so we may need to know it at that point already.
3027 # Even if this section looks crufty: it has the advantage of
3028 # actually working.
3029 break;;
3031 break;;
3032 esac
3033 done
3034 test "$ac_cv_exeext" = no && ac_cv_exeext=
3036 else
3037 ac_file=''
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3040 $as_echo "$ac_file" >&6; }
3041 if test -z "$ac_file"; then :
3042 $as_echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047 { as_fn_set_status 77
3048 as_fn_error "C compiler cannot create executables
3049 See \`config.log' for more details." "$LINENO" 5; }; }
3051 ac_exeext=$ac_cv_exeext
3053 # Check that the compiler produces executables we can run. If not, either
3054 # the compiler is broken, or we cross compile.
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3056 $as_echo_n "checking whether the C compiler works... " >&6; }
3057 # If not cross compiling, check that we can run a simple program.
3058 if test "$cross_compiling" != yes; then
3059 if { ac_try='./$ac_file'
3060 { { case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 $as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_try") 2>&5
3067 ac_status=$?
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }; }; then
3070 cross_compiling=no
3071 else
3072 if test "$cross_compiling" = maybe; then
3073 cross_compiling=yes
3074 else
3075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 as_fn_error "cannot run C compiled programs.
3078 If you meant to cross compile, use \`--host'.
3079 See \`config.log' for more details." "$LINENO" 5; }
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3084 $as_echo "yes" >&6; }
3086 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3087 ac_clean_files=$ac_clean_files_save
3088 # Check that the compiler produces executables we can run. If not, either
3089 # the compiler is broken, or we cross compile.
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3091 $as_echo_n "checking whether we are cross compiling... " >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3093 $as_echo "$cross_compiling" >&6; }
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3096 $as_echo_n "checking for suffix of executables... " >&6; }
3097 if { { ac_try="$ac_link"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103 $as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_link") 2>&5
3105 ac_status=$?
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }; then :
3108 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3109 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3110 # work properly (i.e., refer to `conftest.exe'), while it won't with
3111 # `rm'.
3112 for ac_file in conftest.exe conftest conftest.*; do
3113 test -f "$ac_file" || continue
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3116 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117 break;;
3118 * ) break;;
3119 esac
3120 done
3121 else
3122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error "cannot compute suffix of executables: cannot compile and link
3125 See \`config.log' for more details." "$LINENO" 5; }
3127 rm -f conftest$ac_cv_exeext
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3129 $as_echo "$ac_cv_exeext" >&6; }
3131 rm -f conftest.$ac_ext
3132 EXEEXT=$ac_cv_exeext
3133 ac_exeext=$EXEEXT
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3135 $as_echo_n "checking for suffix of object files... " >&6; }
3136 if test "${ac_cv_objext+set}" = set; then :
3137 $as_echo_n "(cached) " >&6
3138 else
3139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140 /* end confdefs.h. */
3143 main ()
3147 return 0;
3149 _ACEOF
3150 rm -f conftest.o conftest.obj
3151 if { { ac_try="$ac_compile"
3152 case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155 esac
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_compile") 2>&5
3159 ac_status=$?
3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161 test $ac_status = 0; }; then :
3162 for ac_file in conftest.o conftest.obj conftest.*; do
3163 test -f "$ac_file" || continue;
3164 case $ac_file in
3165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3166 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3167 break;;
3168 esac
3169 done
3170 else
3171 $as_echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176 as_fn_error "cannot compute suffix of object files: cannot compile
3177 See \`config.log' for more details." "$LINENO" 5; }
3179 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3182 $as_echo "$ac_cv_objext" >&6; }
3183 OBJEXT=$ac_cv_objext
3184 ac_objext=$OBJEXT
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3186 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3187 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3188 $as_echo_n "(cached) " >&6
3189 else
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3194 main ()
3196 #ifndef __GNUC__
3197 choke me
3198 #endif
3201 return 0;
3203 _ACEOF
3204 if ac_fn_c_try_compile "$LINENO"; then :
3205 ac_compiler_gnu=yes
3206 else
3207 ac_compiler_gnu=no
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3214 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3215 if test $ac_compiler_gnu = yes; then
3216 GCC=yes
3217 else
3218 GCC=
3220 ac_test_CFLAGS=${CFLAGS+set}
3221 ac_save_CFLAGS=$CFLAGS
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3223 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3224 if test "${ac_cv_prog_cc_g+set}" = set; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 ac_save_c_werror_flag=$ac_c_werror_flag
3228 ac_c_werror_flag=yes
3229 ac_cv_prog_cc_g=no
3230 CFLAGS="-g"
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3235 main ()
3239 return 0;
3241 _ACEOF
3242 if ac_fn_c_try_compile "$LINENO"; then :
3243 ac_cv_prog_cc_g=yes
3244 else
3245 CFLAGS=""
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3250 main ()
3254 return 0;
3256 _ACEOF
3257 if ac_fn_c_try_compile "$LINENO"; then :
3259 else
3260 ac_c_werror_flag=$ac_save_c_werror_flag
3261 CFLAGS="-g"
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3266 main ()
3270 return 0;
3272 _ACEOF
3273 if ac_fn_c_try_compile "$LINENO"; then :
3274 ac_cv_prog_cc_g=yes
3276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 ac_c_werror_flag=$ac_save_c_werror_flag
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3284 $as_echo "$ac_cv_prog_cc_g" >&6; }
3285 if test "$ac_test_CFLAGS" = set; then
3286 CFLAGS=$ac_save_CFLAGS
3287 elif test $ac_cv_prog_cc_g = yes; then
3288 if test "$GCC" = yes; then
3289 CFLAGS="-g -O2"
3290 else
3291 CFLAGS="-g"
3293 else
3294 if test "$GCC" = yes; then
3295 CFLAGS="-O2"
3296 else
3297 CFLAGS=
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3301 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3302 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3304 else
3305 ac_cv_prog_cc_c89=no
3306 ac_save_CC=$CC
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h. */
3309 #include <stdarg.h>
3310 #include <stdio.h>
3311 #include <sys/types.h>
3312 #include <sys/stat.h>
3313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3314 struct buf { int x; };
3315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3316 static char *e (p, i)
3317 char **p;
3318 int i;
3320 return p[i];
3322 static char *f (char * (*g) (char **, int), char **p, ...)
3324 char *s;
3325 va_list v;
3326 va_start (v,p);
3327 s = g (p, va_arg (v,int));
3328 va_end (v);
3329 return s;
3332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3333 function prototypes and stuff, but not '\xHH' hex character constants.
3334 These don't provoke an error unfortunately, instead are silently treated
3335 as 'x'. The following induces an error, until -std is added to get
3336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3337 array size at least. It's necessary to write '\x00'==0 to get something
3338 that's true only with -std. */
3339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3342 inside strings and character constants. */
3343 #define FOO(x) 'x'
3344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3346 int test (int i, double x);
3347 struct s1 {int (*f) (int a);};
3348 struct s2 {int (*f) (double a);};
3349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350 int argc;
3351 char **argv;
3353 main ()
3355 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3357 return 0;
3359 _ACEOF
3360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3363 CC="$ac_save_CC $ac_arg"
3364 if ac_fn_c_try_compile "$LINENO"; then :
3365 ac_cv_prog_cc_c89=$ac_arg
3367 rm -f core conftest.err conftest.$ac_objext
3368 test "x$ac_cv_prog_cc_c89" != "xno" && break
3369 done
3370 rm -f conftest.$ac_ext
3371 CC=$ac_save_CC
3374 # AC_CACHE_VAL
3375 case "x$ac_cv_prog_cc_c89" in
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3378 $as_echo "none needed" >&6; } ;;
3379 xno)
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3381 $as_echo "unsupported" >&6; } ;;
3383 CC="$CC $ac_cv_prog_cc_c89"
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3385 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3386 esac
3387 if test "x$ac_cv_prog_cc_c89" != xno; then :
3391 ac_ext=c
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397 # Make sure we can run config.sub.
3398 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3399 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3402 $as_echo_n "checking build system type... " >&6; }
3403 if test "${ac_cv_build+set}" = set; then :
3404 $as_echo_n "(cached) " >&6
3405 else
3406 ac_build_alias=$build_alias
3407 test "x$ac_build_alias" = x &&
3408 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3409 test "x$ac_build_alias" = x &&
3410 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3411 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3412 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3416 $as_echo "$ac_cv_build" >&6; }
3417 case $ac_cv_build in
3418 *-*-*) ;;
3419 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3420 esac
3421 build=$ac_cv_build
3422 ac_save_IFS=$IFS; IFS='-'
3423 set x $ac_cv_build
3424 shift
3425 build_cpu=$1
3426 build_vendor=$2
3427 shift; shift
3428 # Remember, the first character of IFS is used to create $*,
3429 # except with old shells:
3430 build_os=$*
3431 IFS=$ac_save_IFS
3432 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3436 $as_echo_n "checking host system type... " >&6; }
3437 if test "${ac_cv_host+set}" = set; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 if test "x$host_alias" = x; then
3441 ac_cv_host=$ac_cv_build
3442 else
3443 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3444 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3449 $as_echo "$ac_cv_host" >&6; }
3450 case $ac_cv_host in
3451 *-*-*) ;;
3452 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3453 esac
3454 host=$ac_cv_host
3455 ac_save_IFS=$IFS; IFS='-'
3456 set x $ac_cv_host
3457 shift
3458 host_cpu=$1
3459 host_vendor=$2
3460 shift; shift
3461 # Remember, the first character of IFS is used to create $*,
3462 # except with old shells:
3463 host_os=$*
3464 IFS=$ac_save_IFS
3465 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3468 if test -n "$ac_tool_prefix"; then
3469 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3470 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 if test -n "$RANLIB"; then
3477 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3490 done
3491 done
3492 IFS=$as_save_IFS
3496 RANLIB=$ac_cv_prog_RANLIB
3497 if test -n "$RANLIB"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3499 $as_echo "$RANLIB" >&6; }
3500 else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3507 if test -z "$ac_cv_prog_RANLIB"; then
3508 ac_ct_RANLIB=$RANLIB
3509 # Extract the first word of "ranlib", so it can be a program name with args.
3510 set dummy ranlib; ac_word=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 if test -n "$ac_ct_RANLIB"; then
3517 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3518 else
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526 ac_cv_prog_ac_ct_RANLIB="ranlib"
3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 break 2
3530 done
3531 done
3532 IFS=$as_save_IFS
3536 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3537 if test -n "$ac_ct_RANLIB"; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3539 $as_echo "$ac_ct_RANLIB" >&6; }
3540 else
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3545 if test "x$ac_ct_RANLIB" = x; then
3546 RANLIB=":"
3547 else
3548 case $cross_compiling:$ac_tool_warned in
3549 yes:)
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3552 ac_tool_warned=yes ;;
3553 esac
3554 RANLIB=$ac_ct_RANLIB
3556 else
3557 RANLIB="$ac_cv_prog_RANLIB"
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3562 $as_echo_n "checking for library containing strerror... " >&6; }
3563 if test "${ac_cv_search_strerror+set}" = set; then :
3564 $as_echo_n "(cached) " >&6
3565 else
3566 ac_func_search_save_LIBS=$LIBS
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3570 /* Override any GCC internal prototype to avoid an error.
3571 Use char because int might match the return type of a GCC
3572 builtin and then its argument prototype would still apply. */
3573 #ifdef __cplusplus
3574 extern "C"
3575 #endif
3576 char strerror ();
3578 main ()
3580 return strerror ();
3582 return 0;
3584 _ACEOF
3585 for ac_lib in '' cposix; do
3586 if test -z "$ac_lib"; then
3587 ac_res="none required"
3588 else
3589 ac_res=-l$ac_lib
3590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3592 if ac_fn_c_try_link "$LINENO"; then :
3593 ac_cv_search_strerror=$ac_res
3595 rm -f core conftest.err conftest.$ac_objext \
3596 conftest$ac_exeext
3597 if test "${ac_cv_search_strerror+set}" = set; then :
3598 break
3600 done
3601 if test "${ac_cv_search_strerror+set}" = set; then :
3603 else
3604 ac_cv_search_strerror=no
3606 rm conftest.$ac_ext
3607 LIBS=$ac_func_search_save_LIBS
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3610 $as_echo "$ac_cv_search_strerror" >&6; }
3611 ac_res=$ac_cv_search_strerror
3612 if test "$ac_res" != no; then :
3613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3617 ac_ext=c
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3623 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3624 # On Suns, sometimes $CPP names a directory.
3625 if test -n "$CPP" && test -d "$CPP"; then
3626 CPP=
3628 if test -z "$CPP"; then
3629 if test "${ac_cv_prog_CPP+set}" = set; then :
3630 $as_echo_n "(cached) " >&6
3631 else
3632 # Double quotes because CPP needs to be expanded
3633 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3635 ac_preproc_ok=false
3636 for ac_c_preproc_warn_flag in '' yes
3638 # Use a header file that comes with gcc, so configuring glibc
3639 # with a fresh cross-compiler works.
3640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3641 # <limits.h> exists even on freestanding compilers.
3642 # On the NeXT, cc -E runs the code through the compiler's parser,
3643 # not just through cpp. "Syntax error" is here to catch this case.
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3646 #ifdef __STDC__
3647 # include <limits.h>
3648 #else
3649 # include <assert.h>
3650 #endif
3651 Syntax error
3652 _ACEOF
3653 if ac_fn_c_try_cpp "$LINENO"; then :
3655 else
3656 # Broken: fails on valid input.
3657 continue
3659 rm -f conftest.err conftest.$ac_ext
3661 # OK, works on sane cases. Now check whether nonexistent headers
3662 # can be detected and how.
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665 #include <ac_nonexistent.h>
3666 _ACEOF
3667 if ac_fn_c_try_cpp "$LINENO"; then :
3668 # Broken: success on invalid input.
3669 continue
3670 else
3671 # Passes both tests.
3672 ac_preproc_ok=:
3673 break
3675 rm -f conftest.err conftest.$ac_ext
3677 done
3678 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3679 rm -f conftest.err conftest.$ac_ext
3680 if $ac_preproc_ok; then :
3681 break
3684 done
3685 ac_cv_prog_CPP=$CPP
3688 CPP=$ac_cv_prog_CPP
3689 else
3690 ac_cv_prog_CPP=$CPP
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3693 $as_echo "$CPP" >&6; }
3694 ac_preproc_ok=false
3695 for ac_c_preproc_warn_flag in '' yes
3697 # Use a header file that comes with gcc, so configuring glibc
3698 # with a fresh cross-compiler works.
3699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3700 # <limits.h> exists even on freestanding compilers.
3701 # On the NeXT, cc -E runs the code through the compiler's parser,
3702 # not just through cpp. "Syntax error" is here to catch this case.
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3705 #ifdef __STDC__
3706 # include <limits.h>
3707 #else
3708 # include <assert.h>
3709 #endif
3710 Syntax error
3711 _ACEOF
3712 if ac_fn_c_try_cpp "$LINENO"; then :
3714 else
3715 # Broken: fails on valid input.
3716 continue
3718 rm -f conftest.err conftest.$ac_ext
3720 # OK, works on sane cases. Now check whether nonexistent headers
3721 # can be detected and how.
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3724 #include <ac_nonexistent.h>
3725 _ACEOF
3726 if ac_fn_c_try_cpp "$LINENO"; then :
3727 # Broken: success on invalid input.
3728 continue
3729 else
3730 # Passes both tests.
3731 ac_preproc_ok=:
3732 break
3734 rm -f conftest.err conftest.$ac_ext
3736 done
3737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3738 rm -f conftest.err conftest.$ac_ext
3739 if $ac_preproc_ok; then :
3741 else
3742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3745 See \`config.log' for more details." "$LINENO" 5; }
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3756 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3757 if test "${ac_cv_path_GREP+set}" = set; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 if test -z "$GREP"; then
3761 ac_path_GREP_found=false
3762 # Loop through the user's path and test for each of PROGNAME-LIST
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_prog in grep ggrep; do
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3771 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3772 # Check for GNU ac_path_GREP and select it if it is found.
3773 # Check for GNU $ac_path_GREP
3774 case `"$ac_path_GREP" --version 2>&1` in
3775 *GNU*)
3776 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3778 ac_count=0
3779 $as_echo_n 0123456789 >"conftest.in"
3780 while :
3782 cat "conftest.in" "conftest.in" >"conftest.tmp"
3783 mv "conftest.tmp" "conftest.in"
3784 cp "conftest.in" "conftest.nl"
3785 $as_echo 'GREP' >> "conftest.nl"
3786 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3788 as_fn_arith $ac_count + 1 && ac_count=$as_val
3789 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3790 # Best one so far, save it but keep looking for a better one
3791 ac_cv_path_GREP="$ac_path_GREP"
3792 ac_path_GREP_max=$ac_count
3794 # 10*(2^10) chars as input seems more than enough
3795 test $ac_count -gt 10 && break
3796 done
3797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3798 esac
3800 $ac_path_GREP_found && break 3
3801 done
3802 done
3803 done
3804 IFS=$as_save_IFS
3805 if test -z "$ac_cv_path_GREP"; then
3806 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3808 else
3809 ac_cv_path_GREP=$GREP
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3814 $as_echo "$ac_cv_path_GREP" >&6; }
3815 GREP="$ac_cv_path_GREP"
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3819 $as_echo_n "checking for egrep... " >&6; }
3820 if test "${ac_cv_path_EGREP+set}" = set; then :
3821 $as_echo_n "(cached) " >&6
3822 else
3823 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3824 then ac_cv_path_EGREP="$GREP -E"
3825 else
3826 if test -z "$EGREP"; then
3827 ac_path_EGREP_found=false
3828 # Loop through the user's path and test for each of PROGNAME-LIST
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3832 IFS=$as_save_IFS
3833 test -z "$as_dir" && as_dir=.
3834 for ac_prog in egrep; do
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3837 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3838 # Check for GNU ac_path_EGREP and select it if it is found.
3839 # Check for GNU $ac_path_EGREP
3840 case `"$ac_path_EGREP" --version 2>&1` in
3841 *GNU*)
3842 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3844 ac_count=0
3845 $as_echo_n 0123456789 >"conftest.in"
3846 while :
3848 cat "conftest.in" "conftest.in" >"conftest.tmp"
3849 mv "conftest.tmp" "conftest.in"
3850 cp "conftest.in" "conftest.nl"
3851 $as_echo 'EGREP' >> "conftest.nl"
3852 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3854 as_fn_arith $ac_count + 1 && ac_count=$as_val
3855 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3856 # Best one so far, save it but keep looking for a better one
3857 ac_cv_path_EGREP="$ac_path_EGREP"
3858 ac_path_EGREP_max=$ac_count
3860 # 10*(2^10) chars as input seems more than enough
3861 test $ac_count -gt 10 && break
3862 done
3863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3864 esac
3866 $ac_path_EGREP_found && break 3
3867 done
3868 done
3869 done
3870 IFS=$as_save_IFS
3871 if test -z "$ac_cv_path_EGREP"; then
3872 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3874 else
3875 ac_cv_path_EGREP=$EGREP
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3881 $as_echo "$ac_cv_path_EGREP" >&6; }
3882 EGREP="$ac_cv_path_EGREP"
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3886 $as_echo_n "checking for ANSI C header files... " >&6; }
3887 if test "${ac_cv_header_stdc+set}" = set; then :
3888 $as_echo_n "(cached) " >&6
3889 else
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3892 #include <stdlib.h>
3893 #include <stdarg.h>
3894 #include <string.h>
3895 #include <float.h>
3898 main ()
3902 return 0;
3904 _ACEOF
3905 if ac_fn_c_try_compile "$LINENO"; then :
3906 ac_cv_header_stdc=yes
3907 else
3908 ac_cv_header_stdc=no
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 if test $ac_cv_header_stdc = yes; then
3913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3916 #include <string.h>
3918 _ACEOF
3919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3920 $EGREP "memchr" >/dev/null 2>&1; then :
3922 else
3923 ac_cv_header_stdc=no
3925 rm -f conftest*
3929 if test $ac_cv_header_stdc = yes; then
3930 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3933 #include <stdlib.h>
3935 _ACEOF
3936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3937 $EGREP "free" >/dev/null 2>&1; then :
3939 else
3940 ac_cv_header_stdc=no
3942 rm -f conftest*
3946 if test $ac_cv_header_stdc = yes; then
3947 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3948 if test "$cross_compiling" = yes; then :
3950 else
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953 #include <ctype.h>
3954 #include <stdlib.h>
3955 #if ((' ' & 0x0FF) == 0x020)
3956 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3957 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3958 #else
3959 # define ISLOWER(c) \
3960 (('a' <= (c) && (c) <= 'i') \
3961 || ('j' <= (c) && (c) <= 'r') \
3962 || ('s' <= (c) && (c) <= 'z'))
3963 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3964 #endif
3966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3968 main ()
3970 int i;
3971 for (i = 0; i < 256; i++)
3972 if (XOR (islower (i), ISLOWER (i))
3973 || toupper (i) != TOUPPER (i))
3974 return 2;
3975 return 0;
3977 _ACEOF
3978 if ac_fn_c_try_run "$LINENO"; then :
3980 else
3981 ac_cv_header_stdc=no
3983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3984 conftest.$ac_objext conftest.beam conftest.$ac_ext
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3990 $as_echo "$ac_cv_header_stdc" >&6; }
3991 if test $ac_cv_header_stdc = yes; then
3993 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3998 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3999 if test "${ac_cv_c_const+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4006 main ()
4008 /* FIXME: Include the comments suggested by Paul. */
4009 #ifndef __cplusplus
4010 /* Ultrix mips cc rejects this. */
4011 typedef int charset[2];
4012 const charset cs;
4013 /* SunOS 4.1.1 cc rejects this. */
4014 char const *const *pcpcc;
4015 char **ppc;
4016 /* NEC SVR4.0.2 mips cc rejects this. */
4017 struct point {int x, y;};
4018 static struct point const zero = {0,0};
4019 /* AIX XL C 1.02.0.0 rejects this.
4020 It does not let you subtract one const X* pointer from another in
4021 an arm of an if-expression whose if-part is not a constant
4022 expression */
4023 const char *g = "string";
4024 pcpcc = &g + (g ? g-g : 0);
4025 /* HPUX 7.0 cc rejects these. */
4026 ++pcpcc;
4027 ppc = (char**) pcpcc;
4028 pcpcc = (char const *const *) ppc;
4029 { /* SCO 3.2v4 cc rejects this. */
4030 char *t;
4031 char const *s = 0 ? (char *) 0 : (char const *) 0;
4033 *t++ = 0;
4034 if (s) return 0;
4036 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4037 int x[] = {25, 17};
4038 const int *foo = &x[0];
4039 ++foo;
4041 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4042 typedef const int *iptr;
4043 iptr p = 0;
4044 ++p;
4046 { /* AIX XL C 1.02.0.0 rejects this saying
4047 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4048 struct s { int j; const int *ap[3]; };
4049 struct s *b; b->j = 5;
4051 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4052 const int foo = 10;
4053 if (!foo) return 0;
4055 return !cs[0] && !zero.x;
4056 #endif
4059 return 0;
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"; then :
4063 ac_cv_c_const=yes
4064 else
4065 ac_cv_c_const=no
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4070 $as_echo "$ac_cv_c_const" >&6; }
4071 if test $ac_cv_c_const = no; then
4073 $as_echo "#define const /**/" >>confdefs.h
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4078 $as_echo_n "checking for inline... " >&6; }
4079 if test "${ac_cv_c_inline+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 ac_cv_c_inline=no
4083 for ac_kw in inline __inline__ __inline; do
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4086 #ifndef __cplusplus
4087 typedef int foo_t;
4088 static $ac_kw foo_t static_foo () {return 0; }
4089 $ac_kw foo_t foo () {return 0; }
4090 #endif
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_cv_c_inline=$ac_kw
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 test "$ac_cv_c_inline" != no && break
4098 done
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4102 $as_echo "$ac_cv_c_inline" >&6; }
4104 case $ac_cv_c_inline in
4105 inline | yes) ;;
4107 case $ac_cv_c_inline in
4108 no) ac_val=;;
4109 *) ac_val=$ac_cv_c_inline;;
4110 esac
4111 cat >>confdefs.h <<_ACEOF
4112 #ifndef __cplusplus
4113 #define inline $ac_val
4114 #endif
4115 _ACEOF
4117 esac
4119 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4120 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4121 inttypes.h stdint.h unistd.h
4122 do :
4123 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4124 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4126 eval as_val=\$$as_ac_Header
4127 if test "x$as_val" = x""yes; then :
4128 cat >>confdefs.h <<_ACEOF
4129 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4130 _ACEOF
4134 done
4137 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4138 if test "x$ac_cv_type_off_t" = x""yes; then :
4140 else
4142 cat >>confdefs.h <<_ACEOF
4143 #define off_t long int
4144 _ACEOF
4148 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4149 if test "x$ac_cv_type_size_t" = x""yes; then :
4151 else
4153 cat >>confdefs.h <<_ACEOF
4154 #define size_t unsigned int
4155 _ACEOF
4159 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4160 # for constant arguments. Useless!
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4162 $as_echo_n "checking for working alloca.h... " >&6; }
4163 if test "${ac_cv_working_alloca_h+set}" = set; then :
4164 $as_echo_n "(cached) " >&6
4165 else
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168 #include <alloca.h>
4170 main ()
4172 char *p = (char *) alloca (2 * sizeof (int));
4173 if (p) return 0;
4175 return 0;
4177 _ACEOF
4178 if ac_fn_c_try_link "$LINENO"; then :
4179 ac_cv_working_alloca_h=yes
4180 else
4181 ac_cv_working_alloca_h=no
4183 rm -f core conftest.err conftest.$ac_objext \
4184 conftest$ac_exeext conftest.$ac_ext
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4187 $as_echo "$ac_cv_working_alloca_h" >&6; }
4188 if test $ac_cv_working_alloca_h = yes; then
4190 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4195 $as_echo_n "checking for alloca... " >&6; }
4196 if test "${ac_cv_func_alloca_works+set}" = set; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 #ifdef __GNUC__
4202 # define alloca __builtin_alloca
4203 #else
4204 # ifdef _MSC_VER
4205 # include <malloc.h>
4206 # define alloca _alloca
4207 # else
4208 # ifdef HAVE_ALLOCA_H
4209 # include <alloca.h>
4210 # else
4211 # ifdef _AIX
4212 #pragma alloca
4213 # else
4214 # ifndef alloca /* predefined by HP cc +Olibcalls */
4215 char *alloca ();
4216 # endif
4217 # endif
4218 # endif
4219 # endif
4220 #endif
4223 main ()
4225 char *p = (char *) alloca (1);
4226 if (p) return 0;
4228 return 0;
4230 _ACEOF
4231 if ac_fn_c_try_link "$LINENO"; then :
4232 ac_cv_func_alloca_works=yes
4233 else
4234 ac_cv_func_alloca_works=no
4236 rm -f core conftest.err conftest.$ac_objext \
4237 conftest$ac_exeext conftest.$ac_ext
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4240 $as_echo "$ac_cv_func_alloca_works" >&6; }
4242 if test $ac_cv_func_alloca_works = yes; then
4244 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4246 else
4247 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4248 # that cause trouble. Some versions do not even contain alloca or
4249 # contain a buggy version. If you still want to use their alloca,
4250 # use ar to extract alloca.o from them instead of compiling alloca.c.
4252 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4254 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4258 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4259 if test "${ac_cv_os_cray+set}" = set; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264 #if defined CRAY && ! defined CRAY2
4265 webecray
4266 #else
4267 wenotbecray
4268 #endif
4270 _ACEOF
4271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4272 $EGREP "webecray" >/dev/null 2>&1; then :
4273 ac_cv_os_cray=yes
4274 else
4275 ac_cv_os_cray=no
4277 rm -f conftest*
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4281 $as_echo "$ac_cv_os_cray" >&6; }
4282 if test $ac_cv_os_cray = yes; then
4283 for ac_func in _getb67 GETB67 getb67; do
4284 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4285 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4286 eval as_val=\$$as_ac_var
4287 if test "x$as_val" = x""yes; then :
4289 cat >>confdefs.h <<_ACEOF
4290 #define CRAY_STACKSEG_END $ac_func
4291 _ACEOF
4293 break
4296 done
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4300 $as_echo_n "checking stack direction for C alloca... " >&6; }
4301 if test "${ac_cv_c_stack_direction+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
4303 else
4304 if test "$cross_compiling" = yes; then :
4305 ac_cv_c_stack_direction=0
4306 else
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309 $ac_includes_default
4311 find_stack_direction ()
4313 static char *addr = 0;
4314 auto char dummy;
4315 if (addr == 0)
4317 addr = &dummy;
4318 return find_stack_direction ();
4320 else
4321 return (&dummy > addr) ? 1 : -1;
4325 main ()
4327 return find_stack_direction () < 0;
4329 _ACEOF
4330 if ac_fn_c_try_run "$LINENO"; then :
4331 ac_cv_c_stack_direction=1
4332 else
4333 ac_cv_c_stack_direction=-1
4335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4336 conftest.$ac_objext conftest.beam conftest.$ac_ext
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4341 $as_echo "$ac_cv_c_stack_direction" >&6; }
4342 cat >>confdefs.h <<_ACEOF
4343 #define STACK_DIRECTION $ac_cv_c_stack_direction
4344 _ACEOF
4349 for ac_header in stdlib.h unistd.h
4350 do :
4351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4352 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4353 eval as_val=\$$as_ac_Header
4354 if test "x$as_val" = x""yes; then :
4355 cat >>confdefs.h <<_ACEOF
4356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4357 _ACEOF
4361 done
4363 for ac_func in getpagesize
4364 do :
4365 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4366 if test "x$ac_cv_func_getpagesize" = x""yes; then :
4367 cat >>confdefs.h <<_ACEOF
4368 #define HAVE_GETPAGESIZE 1
4369 _ACEOF
4372 done
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4375 $as_echo_n "checking for working mmap... " >&6; }
4376 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 if test "$cross_compiling" = yes; then :
4380 ac_cv_func_mmap_fixed_mapped=no
4381 else
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4384 $ac_includes_default
4385 /* malloc might have been renamed as rpl_malloc. */
4386 #undef malloc
4388 /* Thanks to Mike Haertel and Jim Avera for this test.
4389 Here is a matrix of mmap possibilities:
4390 mmap private not fixed
4391 mmap private fixed at somewhere currently unmapped
4392 mmap private fixed at somewhere already mapped
4393 mmap shared not fixed
4394 mmap shared fixed at somewhere currently unmapped
4395 mmap shared fixed at somewhere already mapped
4396 For private mappings, we should verify that changes cannot be read()
4397 back from the file, nor mmap's back from the file at a different
4398 address. (There have been systems where private was not correctly
4399 implemented like the infamous i386 svr4.0, and systems where the
4400 VM page cache was not coherent with the file system buffer cache
4401 like early versions of FreeBSD and possibly contemporary NetBSD.)
4402 For shared mappings, we should conversely verify that changes get
4403 propagated back to all the places they're supposed to be.
4405 Grep wants private fixed already mapped.
4406 The main things grep needs to know about mmap are:
4407 * does it exist and is it safe to write into the mmap'd area
4408 * how to use it (BSD variants) */
4410 #include <fcntl.h>
4411 #include <sys/mman.h>
4413 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4414 char *malloc ();
4415 #endif
4417 /* This mess was copied from the GNU getpagesize.h. */
4418 #ifndef HAVE_GETPAGESIZE
4419 /* Assume that all systems that can run configure have sys/param.h. */
4420 # ifndef HAVE_SYS_PARAM_H
4421 # define HAVE_SYS_PARAM_H 1
4422 # endif
4424 # ifdef _SC_PAGESIZE
4425 # define getpagesize() sysconf(_SC_PAGESIZE)
4426 # else /* no _SC_PAGESIZE */
4427 # ifdef HAVE_SYS_PARAM_H
4428 # include <sys/param.h>
4429 # ifdef EXEC_PAGESIZE
4430 # define getpagesize() EXEC_PAGESIZE
4431 # else /* no EXEC_PAGESIZE */
4432 # ifdef NBPG
4433 # define getpagesize() NBPG * CLSIZE
4434 # ifndef CLSIZE
4435 # define CLSIZE 1
4436 # endif /* no CLSIZE */
4437 # else /* no NBPG */
4438 # ifdef NBPC
4439 # define getpagesize() NBPC
4440 # else /* no NBPC */
4441 # ifdef PAGESIZE
4442 # define getpagesize() PAGESIZE
4443 # endif /* PAGESIZE */
4444 # endif /* no NBPC */
4445 # endif /* no NBPG */
4446 # endif /* no EXEC_PAGESIZE */
4447 # else /* no HAVE_SYS_PARAM_H */
4448 # define getpagesize() 8192 /* punt totally */
4449 # endif /* no HAVE_SYS_PARAM_H */
4450 # endif /* no _SC_PAGESIZE */
4452 #endif /* no HAVE_GETPAGESIZE */
4455 main ()
4457 char *data, *data2, *data3;
4458 int i, pagesize;
4459 int fd;
4461 pagesize = getpagesize ();
4463 /* First, make a file with some known garbage in it. */
4464 data = (char *) malloc (pagesize);
4465 if (!data)
4466 return 1;
4467 for (i = 0; i < pagesize; ++i)
4468 *(data + i) = rand ();
4469 umask (0);
4470 fd = creat ("conftest.mmap", 0600);
4471 if (fd < 0)
4472 return 1;
4473 if (write (fd, data, pagesize) != pagesize)
4474 return 1;
4475 close (fd);
4477 /* Next, try to mmap the file at a fixed address which already has
4478 something else allocated at it. If we can, also make sure that
4479 we see the same garbage. */
4480 fd = open ("conftest.mmap", O_RDWR);
4481 if (fd < 0)
4482 return 1;
4483 data2 = (char *) malloc (2 * pagesize);
4484 if (!data2)
4485 return 1;
4486 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
4487 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4488 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4489 return 1;
4490 for (i = 0; i < pagesize; ++i)
4491 if (*(data + i) != *(data2 + i))
4492 return 1;
4494 /* Finally, make sure that changes to the mapped area do not
4495 percolate back to the file as seen by read(). (This is a bug on
4496 some variants of i386 svr4.0.) */
4497 for (i = 0; i < pagesize; ++i)
4498 *(data2 + i) = *(data2 + i) + 1;
4499 data3 = (char *) malloc (pagesize);
4500 if (!data3)
4501 return 1;
4502 if (read (fd, data3, pagesize) != pagesize)
4503 return 1;
4504 for (i = 0; i < pagesize; ++i)
4505 if (*(data + i) != *(data3 + i))
4506 return 1;
4507 close (fd);
4508 return 0;
4510 _ACEOF
4511 if ac_fn_c_try_run "$LINENO"; then :
4512 ac_cv_func_mmap_fixed_mapped=yes
4513 else
4514 ac_cv_func_mmap_fixed_mapped=no
4516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4517 conftest.$ac_objext conftest.beam conftest.$ac_ext
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4522 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4523 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4525 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4528 rm -f conftest.mmap
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
4532 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
4533 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4539 #include <features.h>
4540 #ifdef __GNU_LIBRARY__
4541 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4542 Lucky GNU user
4543 #endif
4544 #endif
4546 _ACEOF
4547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4548 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
4549 ac_cv_gnu_library_2_1=yes
4550 else
4551 ac_cv_gnu_library_2_1=no
4553 rm -f conftest*
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
4559 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
4561 GLIBC21="$ac_cv_gnu_library_2_1"
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
4567 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
4568 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4572 if test "$cross_compiling" = yes; then :
4574 # Guess based on the CPU.
4575 case "$host_cpu" in
4576 alpha* | i3456786 | m68k | s390*)
4577 gt_cv_int_divbyzero_sigfpe="guessing yes";;
4579 gt_cv_int_divbyzero_sigfpe="guessing no";;
4580 esac
4582 else
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4586 #include <stdlib.h>
4587 #include <signal.h>
4589 static void
4590 #ifdef __cplusplus
4591 sigfpe_handler (int sig)
4592 #else
4593 sigfpe_handler (sig) int sig;
4594 #endif
4596 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
4597 exit (sig != SIGFPE);
4600 int x = 1;
4601 int y = 0;
4602 int z;
4603 int nan;
4605 int main ()
4607 signal (SIGFPE, sigfpe_handler);
4608 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
4609 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
4610 signal (SIGTRAP, sigfpe_handler);
4611 #endif
4612 /* Linux/SPARC yields signal SIGILL. */
4613 #if defined (__sparc__) && defined (__linux__)
4614 signal (SIGILL, sigfpe_handler);
4615 #endif
4617 z = x / y;
4618 nan = y / y;
4619 exit (1);
4622 _ACEOF
4623 if ac_fn_c_try_run "$LINENO"; then :
4624 gt_cv_int_divbyzero_sigfpe=yes
4625 else
4626 gt_cv_int_divbyzero_sigfpe=no
4628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4629 conftest.$ac_objext conftest.beam conftest.$ac_ext
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
4635 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
4636 case "$gt_cv_int_divbyzero_sigfpe" in
4637 *yes) value=1;;
4638 *) value=0;;
4639 esac
4641 cat >>confdefs.h <<_ACEOF
4642 #define INTDIV0_RAISES_SIGFPE $value
4643 _ACEOF
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4648 $as_echo_n "checking for inttypes.h... " >&6; }
4649 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4654 #include <sys/types.h>
4655 #include <inttypes.h>
4657 main ()
4659 uintmax_t i = (uintmax_t) -1;
4661 return 0;
4663 _ACEOF
4664 if ac_fn_c_try_compile "$LINENO"; then :
4665 jm_ac_cv_header_inttypes_h=yes
4666 else
4667 jm_ac_cv_header_inttypes_h=no
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
4672 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
4673 if test $jm_ac_cv_header_inttypes_h = yes; then
4675 cat >>confdefs.h <<_ACEOF
4676 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4677 _ACEOF
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
4683 $as_echo_n "checking for stdint.h... " >&6; }
4684 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
4685 $as_echo_n "(cached) " >&6
4686 else
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689 #include <sys/types.h>
4690 #include <stdint.h>
4692 main ()
4694 uintmax_t i = (uintmax_t) -1;
4696 return 0;
4698 _ACEOF
4699 if ac_fn_c_try_compile "$LINENO"; then :
4700 jm_ac_cv_header_stdint_h=yes
4701 else
4702 jm_ac_cv_header_stdint_h=no
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
4707 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
4708 if test $jm_ac_cv_header_stdint_h = yes; then
4710 cat >>confdefs.h <<_ACEOF
4711 #define HAVE_STDINT_H_WITH_UINTMAX 1
4712 _ACEOF
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
4718 $as_echo_n "checking for unsigned long long... " >&6; }
4719 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724 unsigned long long ull = 1; int i = 63;
4726 main ()
4728 unsigned long long ullmax = (unsigned long long) -1;
4729 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4731 return 0;
4733 _ACEOF
4734 if ac_fn_c_try_link "$LINENO"; then :
4735 ac_cv_type_unsigned_long_long=yes
4736 else
4737 ac_cv_type_unsigned_long_long=no
4739 rm -f core conftest.err conftest.$ac_objext \
4740 conftest$ac_exeext conftest.$ac_ext
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
4743 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
4744 if test $ac_cv_type_unsigned_long_long = yes; then
4746 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
4753 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
4755 test $ac_cv_type_unsigned_long_long = yes \
4756 && ac_type='unsigned long long' \
4757 || ac_type='unsigned long'
4759 cat >>confdefs.h <<_ACEOF
4760 #define uintmax_t $ac_type
4761 _ACEOF
4763 else
4765 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4771 $as_echo_n "checking for inttypes.h... " >&6; }
4772 if test "${gt_cv_header_inttypes_h+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778 #include <sys/types.h>
4779 #include <inttypes.h>
4781 main ()
4785 return 0;
4787 _ACEOF
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789 gt_cv_header_inttypes_h=yes
4790 else
4791 gt_cv_header_inttypes_h=no
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
4797 $as_echo "$gt_cv_header_inttypes_h" >&6; }
4798 if test $gt_cv_header_inttypes_h = yes; then
4800 cat >>confdefs.h <<_ACEOF
4801 #define HAVE_INTTYPES_H 1
4802 _ACEOF
4808 if test $gt_cv_header_inttypes_h = yes; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
4810 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
4811 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4817 #include <inttypes.h>
4818 #ifdef PRId32
4819 char *p = PRId32;
4820 #endif
4823 main ()
4827 return 0;
4829 _ACEOF
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831 gt_cv_inttypes_pri_broken=no
4832 else
4833 gt_cv_inttypes_pri_broken=yes
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
4839 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
4841 if test "$gt_cv_inttypes_pri_broken" = yes; then
4843 cat >>confdefs.h <<_ACEOF
4844 #define PRI_MACROS_BROKEN 1
4845 _ACEOF
4851 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
4852 stdlib.h string.h unistd.h sys/param.h
4853 do :
4854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4855 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4856 eval as_val=\$$as_ac_Header
4857 if test "x$as_val" = x""yes; then :
4858 cat >>confdefs.h <<_ACEOF
4859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4860 _ACEOF
4864 done
4866 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
4867 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
4868 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
4869 __fsetlocking
4870 do :
4871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4872 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4873 eval as_val=\$$as_ac_var
4874 if test "x$as_val" = x""yes; then :
4875 cat >>confdefs.h <<_ACEOF
4876 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4877 _ACEOF
4880 done
4886 # Check whether --with-libiconv-prefix was given.
4887 if test "${with_libiconv_prefix+set}" = set; then :
4888 withval=$with_libiconv_prefix;
4889 for dir in `echo "$withval" | tr : ' '`; do
4890 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
4891 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
4892 done
4897 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
4898 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
4901 $as_echo_n "checking for iconv... " >&6; }
4902 if test "${am_cv_func_iconv+set}" = set; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4906 am_cv_func_iconv="no, consider installing GNU libiconv"
4907 am_cv_lib_iconv=no
4908 am_cv_use_build_libiconv=no
4909 am_cv_build_libiconv_path=
4911 # First, try to find iconv in libc.
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4914 #include <stdlib.h>
4915 #include <iconv.h>
4917 main ()
4919 iconv_t cd = iconv_open("","");
4920 iconv(cd,NULL,NULL,NULL,NULL);
4921 iconv_close(cd);
4923 return 0;
4925 _ACEOF
4926 if ac_fn_c_try_link "$LINENO"; then :
4927 am_cv_func_iconv=yes
4929 rm -f core conftest.err conftest.$ac_objext \
4930 conftest$ac_exeext conftest.$ac_ext
4932 # If libiconv is part of the build tree, then try using it over
4933 # any system libiconv.
4934 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
4935 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
4936 am_save_LIBS="$LIBS"
4937 am_save_CPPFLAGS="$CPPFLAGS"
4938 LIBS="$LIBS $lib_dir/libiconv.a"
4939 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942 #include <stdlib.h>
4943 #include <iconv.h>
4945 main ()
4947 iconv_t cd = iconv_open("","");
4948 iconv(cd,NULL,NULL,NULL,NULL);
4949 iconv_close(cd);
4951 return 0;
4953 _ACEOF
4954 if ac_fn_c_try_link "$LINENO"; then :
4955 am_cv_use_build_libiconv=yes
4956 am_cv_build_libiconv_path=$lib_dir/libiconv.a
4957 am_cv_lib_iconv=yes
4958 am_cv_func_iconv=yes
4960 rm -f core conftest.err conftest.$ac_objext \
4961 conftest$ac_exeext conftest.$ac_ext
4962 LIBS="$am_save_LIBS"
4963 CPPFLAGS="$am_save_CPPFLAGS"
4964 if test "$am_cv_use_build_libiconv" = "yes"; then
4965 break
4967 done
4970 # If iconv was not in libc, try -liconv. In this case, arrange to
4971 # look in the libiconv prefix, if it was specified by the user.
4972 if test "$am_cv_func_iconv" != yes; then
4973 am_save_CPPFLAGS="$CPPFLAGS"
4974 am_save_LIBS="$LIBS"
4975 if test -n "$LIBICONV_INCLUDE"; then
4976 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
4977 LIBS="$LIBS $LIBICONV_LIBDIR"
4979 LIBS="$LIBS -liconv"
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4982 #include <stdlib.h>
4983 #include <iconv.h>
4985 main ()
4987 iconv_t cd = iconv_open("","");
4988 iconv(cd,NULL,NULL,NULL,NULL);
4989 iconv_close(cd);
4991 return 0;
4993 _ACEOF
4994 if ac_fn_c_try_link "$LINENO"; then :
4995 am_cv_lib_iconv=yes
4996 am_cv_func_iconv=yes
4998 rm -f core conftest.err conftest.$ac_objext \
4999 conftest$ac_exeext conftest.$ac_ext
5000 LIBS="$am_save_LIBS"
5001 CPPFLAGS="$am_save_CPPFLAGS"
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5006 $as_echo "$am_cv_func_iconv" >&6; }
5008 # Set the various flags based on the cache variables. We can't rely
5009 # on the flags to remain set from the above code, due to caching.
5010 LIBICONV=
5011 if test "$am_cv_lib_iconv" = yes; then
5012 LIBICONV="-liconv"
5013 else
5014 LIBICONV_LIBDIR=
5015 LIBICONV_INCLUDE=
5017 if test "$am_cv_use_build_libiconv" = yes; then
5018 LIBICONV="$am_cv_build_libiconv_path"
5019 LIBICONV_LIBDIR=""
5020 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
5022 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
5023 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
5025 if test "$am_cv_func_iconv" = yes; then
5027 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
5030 $as_echo_n "checking for iconv declaration... " >&6; }
5031 if test "${am_cv_proto_iconv+set}" = set; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5038 #include <stdlib.h>
5039 #include <iconv.h>
5040 extern
5041 #ifdef __cplusplus
5043 #endif
5044 #if defined(__STDC__) || defined(__cplusplus)
5045 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5046 #else
5047 size_t iconv();
5048 #endif
5051 main ()
5055 return 0;
5057 _ACEOF
5058 if ac_fn_c_try_compile "$LINENO"; then :
5059 am_cv_proto_iconv_arg1=""
5060 else
5061 am_cv_proto_iconv_arg1="const"
5063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064 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);"
5067 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
5069 }$am_cv_proto_iconv" >&5
5070 $as_echo "${ac_t:-
5071 }$am_cv_proto_iconv" >&6; }
5073 cat >>confdefs.h <<_ACEOF
5074 #define ICONV_CONST $am_cv_proto_iconv_arg1
5075 _ACEOF
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5081 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5082 if test "${am_cv_langinfo_codeset+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5087 #include <langinfo.h>
5089 main ()
5091 char* cs = nl_langinfo(CODESET);
5093 return 0;
5095 _ACEOF
5096 if ac_fn_c_try_link "$LINENO"; then :
5097 am_cv_langinfo_codeset=yes
5098 else
5099 am_cv_langinfo_codeset=no
5101 rm -f core conftest.err conftest.$ac_objext \
5102 conftest$ac_exeext conftest.$ac_ext
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5106 $as_echo "$am_cv_langinfo_codeset" >&6; }
5107 if test $am_cv_langinfo_codeset = yes; then
5109 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5113 if test $ac_cv_header_locale_h = yes; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
5116 $as_echo_n "checking for LC_MESSAGES... " >&6; }
5117 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 #include <locale.h>
5124 main ()
5126 return LC_MESSAGES
5128 return 0;
5130 _ACEOF
5131 if ac_fn_c_try_link "$LINENO"; then :
5132 am_cv_val_LC_MESSAGES=yes
5133 else
5134 am_cv_val_LC_MESSAGES=no
5136 rm -f core conftest.err conftest.$ac_objext \
5137 conftest$ac_exeext conftest.$ac_ext
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
5140 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
5141 if test $am_cv_val_LC_MESSAGES = yes; then
5143 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
5149 for ac_prog in bison
5151 # Extract the first word of "$ac_prog", so it can be a program name with args.
5152 set dummy $ac_prog; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if test -n "$INTLBISON"; then
5159 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_prog_INTLBISON="$ac_prog"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5172 done
5173 done
5174 IFS=$as_save_IFS
5178 INTLBISON=$ac_cv_prog_INTLBISON
5179 if test -n "$INTLBISON"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
5181 $as_echo "$INTLBISON" >&6; }
5182 else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5188 test -n "$INTLBISON" && break
5189 done
5191 if test -z "$INTLBISON"; then
5192 ac_verc_fail=yes
5193 else
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
5195 $as_echo_n "checking version of bison... " >&6; }
5196 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5197 case $ac_prog_version in
5198 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5199 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5200 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5201 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5202 esac
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5204 $as_echo "$ac_prog_version" >&6; }
5206 if test $ac_verc_fail = yes; then
5207 INTLBISON=:
5211 if test "X$prefix" = "XNONE"; then
5212 acl_final_prefix="$ac_default_prefix"
5213 else
5214 acl_final_prefix="$prefix"
5216 if test "X$exec_prefix" = "XNONE"; then
5217 acl_final_exec_prefix='${prefix}'
5218 else
5219 acl_final_exec_prefix="$exec_prefix"
5221 acl_save_prefix="$prefix"
5222 prefix="$acl_final_prefix"
5223 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5224 prefix="$acl_save_prefix"
5227 # Check whether --with-gnu-ld was given.
5228 if test "${with_gnu_ld+set}" = set; then :
5229 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5230 else
5231 with_gnu_ld=no
5234 # Prepare PATH_SEPARATOR.
5235 # The user is always right.
5236 if test "${PATH_SEPARATOR+set}" != set; then
5237 echo "#! /bin/sh" >conf$$.sh
5238 echo "exit 0" >>conf$$.sh
5239 chmod +x conf$$.sh
5240 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5241 PATH_SEPARATOR=';'
5242 else
5243 PATH_SEPARATOR=:
5245 rm -f conf$$.sh
5247 ac_prog=ld
5248 if test "$GCC" = yes; then
5249 # Check if gcc -print-prog-name=ld gives a path.
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5251 $as_echo_n "checking for ld used by GCC... " >&6; }
5252 case $host in
5253 *-*-mingw*)
5254 # gcc leaves a trailing carriage return which upsets mingw
5255 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5257 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5258 esac
5259 case $ac_prog in
5260 # Accept absolute paths.
5261 [\\/]* | [A-Za-z]:[\\/]*)
5262 re_direlt='/[^/][^/]*/\.\./'
5263 # Canonicalize the path of ld
5264 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5265 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5266 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5267 done
5268 test -z "$LD" && LD="$ac_prog"
5271 # If it fails, then pretend we aren't using GCC.
5272 ac_prog=ld
5275 # If it is relative, then search for the first ld in PATH.
5276 with_gnu_ld=unknown
5278 esac
5279 elif test "$with_gnu_ld" = yes; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5281 $as_echo_n "checking for GNU ld... " >&6; }
5282 else
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5284 $as_echo_n "checking for non-GNU ld... " >&6; }
5286 if test "${acl_cv_path_LD+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5288 else
5289 if test -z "$LD"; then
5290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5291 for ac_dir in $PATH; do
5292 test -z "$ac_dir" && ac_dir=.
5293 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5294 acl_cv_path_LD="$ac_dir/$ac_prog"
5295 # Check to see if the program is GNU ld. I'd rather use --version,
5296 # but apparently some GNU ld's only accept -v.
5297 # Break only if it was the GNU/non-GNU ld that we prefer.
5298 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5299 test "$with_gnu_ld" != no && break
5300 else
5301 test "$with_gnu_ld" != yes && break
5304 done
5305 IFS="$ac_save_ifs"
5306 else
5307 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5311 LD="$acl_cv_path_LD"
5312 if test -n "$LD"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5314 $as_echo "$LD" >&6; }
5315 else
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5319 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5321 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5322 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5323 $as_echo_n "(cached) " >&6
5324 else
5325 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5326 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5327 acl_cv_prog_gnu_ld=yes
5328 else
5329 acl_cv_prog_gnu_ld=no
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5333 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5334 with_gnu_ld=$acl_cv_prog_gnu_ld
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5339 $as_echo_n "checking for shared library run path origin... " >&6; }
5340 if test "${acl_cv_rpath+set}" = set; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5344 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5345 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5346 . ./conftest.sh
5347 rm -f ./conftest.sh
5348 acl_cv_rpath=done
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5352 $as_echo "$acl_cv_rpath" >&6; }
5353 wl="$acl_cv_wl"
5354 libext="$acl_cv_libext"
5355 shlibext="$acl_cv_shlibext"
5356 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5357 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5358 hardcode_direct="$acl_cv_hardcode_direct"
5359 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5360 # Check whether --enable-rpath was given.
5361 if test "${enable_rpath+set}" = set; then :
5362 enableval=$enable_rpath; :
5363 else
5364 enable_rpath=yes
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5384 $as_echo_n "checking whether NLS is requested... " >&6; }
5385 # Check whether --enable-nls was given.
5386 if test "${enable_nls+set}" = set; then :
5387 enableval=$enable_nls; USE_NLS=$enableval
5388 else
5389 USE_NLS=yes
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5393 $as_echo "$USE_NLS" >&6; }
5398 BUILD_INCLUDED_LIBINTL=no
5399 USE_INCLUDED_LIBINTL=no
5401 LIBINTL=
5402 LTLIBINTL=
5403 POSUB=
5405 if test "$USE_NLS" = "yes"; then
5406 gt_use_preinstalled_gnugettext=no
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
5409 $as_echo_n "checking whether included gettext is requested... " >&6; }
5411 # Check whether --with-included-gettext was given.
5412 if test "${with_included_gettext+set}" = set; then :
5413 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
5414 else
5415 nls_cv_force_use_gnu_gettext=no
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
5419 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
5421 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5422 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5430 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5431 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5436 #include <libintl.h>
5437 extern int _nl_msg_cat_cntr;
5438 extern int *_nl_domain_bindings;
5440 main ()
5442 bindtextdomain ("", "");
5443 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5445 return 0;
5447 _ACEOF
5448 if ac_fn_c_try_link "$LINENO"; then :
5449 gt_cv_func_gnugettext1_libc=yes
5450 else
5451 gt_cv_func_gnugettext1_libc=no
5453 rm -f core conftest.err conftest.$ac_objext \
5454 conftest$ac_exeext conftest.$ac_ext
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
5457 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
5459 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5463 use_additional=yes
5465 acl_save_prefix="$prefix"
5466 prefix="$acl_final_prefix"
5467 acl_save_exec_prefix="$exec_prefix"
5468 exec_prefix="$acl_final_exec_prefix"
5470 eval additional_includedir=\"$includedir\"
5471 eval additional_libdir=\"$libdir\"
5473 exec_prefix="$acl_save_exec_prefix"
5474 prefix="$acl_save_prefix"
5477 # Check whether --with-libintl-prefix was given.
5478 if test "${with_libintl_prefix+set}" = set; then :
5479 withval=$with_libintl_prefix;
5480 if test "X$withval" = "Xno"; then
5481 use_additional=no
5482 else
5483 if test "X$withval" = "X"; then
5485 acl_save_prefix="$prefix"
5486 prefix="$acl_final_prefix"
5487 acl_save_exec_prefix="$exec_prefix"
5488 exec_prefix="$acl_final_exec_prefix"
5490 eval additional_includedir=\"$includedir\"
5491 eval additional_libdir=\"$libdir\"
5493 exec_prefix="$acl_save_exec_prefix"
5494 prefix="$acl_save_prefix"
5496 else
5497 additional_includedir="$withval/include"
5498 additional_libdir="$withval/lib"
5504 LIBINTL=
5505 LTLIBINTL=
5506 INCINTL=
5507 rpathdirs=
5508 ltrpathdirs=
5509 names_already_handled=
5510 names_next_round='intl '
5511 while test -n "$names_next_round"; do
5512 names_this_round="$names_next_round"
5513 names_next_round=
5514 for name in $names_this_round; do
5515 already_handled=
5516 for n in $names_already_handled; do
5517 if test "$n" = "$name"; then
5518 already_handled=yes
5519 break
5521 done
5522 if test -z "$already_handled"; then
5523 names_already_handled="$names_already_handled $name"
5524 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5525 eval value=\"\$HAVE_LIB$uppername\"
5526 if test -n "$value"; then
5527 if test "$value" = yes; then
5528 eval value=\"\$LIB$uppername\"
5529 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5530 eval value=\"\$LTLIB$uppername\"
5531 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5532 else
5535 else
5536 found_dir=
5537 found_la=
5538 found_so=
5539 found_a=
5540 if test $use_additional = yes; then
5541 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5542 found_dir="$additional_libdir"
5543 found_so="$additional_libdir/lib$name.$shlibext"
5544 if test -f "$additional_libdir/lib$name.la"; then
5545 found_la="$additional_libdir/lib$name.la"
5547 else
5548 if test -f "$additional_libdir/lib$name.$libext"; then
5549 found_dir="$additional_libdir"
5550 found_a="$additional_libdir/lib$name.$libext"
5551 if test -f "$additional_libdir/lib$name.la"; then
5552 found_la="$additional_libdir/lib$name.la"
5557 if test "X$found_dir" = "X"; then
5558 for x in $LDFLAGS $LTLIBINTL; do
5560 acl_save_prefix="$prefix"
5561 prefix="$acl_final_prefix"
5562 acl_save_exec_prefix="$exec_prefix"
5563 exec_prefix="$acl_final_exec_prefix"
5564 eval x=\"$x\"
5565 exec_prefix="$acl_save_exec_prefix"
5566 prefix="$acl_save_prefix"
5568 case "$x" in
5569 -L*)
5570 dir=`echo "X$x" | sed -e 's/^X-L//'`
5571 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5572 found_dir="$dir"
5573 found_so="$dir/lib$name.$shlibext"
5574 if test -f "$dir/lib$name.la"; then
5575 found_la="$dir/lib$name.la"
5577 else
5578 if test -f "$dir/lib$name.$libext"; then
5579 found_dir="$dir"
5580 found_a="$dir/lib$name.$libext"
5581 if test -f "$dir/lib$name.la"; then
5582 found_la="$dir/lib$name.la"
5587 esac
5588 if test "X$found_dir" != "X"; then
5589 break
5591 done
5593 if test "X$found_dir" != "X"; then
5594 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5595 if test "X$found_so" != "X"; then
5596 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5597 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5598 else
5599 haveit=
5600 for x in $ltrpathdirs; do
5601 if test "X$x" = "X$found_dir"; then
5602 haveit=yes
5603 break
5605 done
5606 if test -z "$haveit"; then
5607 ltrpathdirs="$ltrpathdirs $found_dir"
5609 if test "$hardcode_direct" = yes; then
5610 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5611 else
5612 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5613 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5614 haveit=
5615 for x in $rpathdirs; do
5616 if test "X$x" = "X$found_dir"; then
5617 haveit=yes
5618 break
5620 done
5621 if test -z "$haveit"; then
5622 rpathdirs="$rpathdirs $found_dir"
5624 else
5625 haveit=
5626 for x in $LDFLAGS $LIBINTL; do
5628 acl_save_prefix="$prefix"
5629 prefix="$acl_final_prefix"
5630 acl_save_exec_prefix="$exec_prefix"
5631 exec_prefix="$acl_final_exec_prefix"
5632 eval x=\"$x\"
5633 exec_prefix="$acl_save_exec_prefix"
5634 prefix="$acl_save_prefix"
5636 if test "X$x" = "X-L$found_dir"; then
5637 haveit=yes
5638 break
5640 done
5641 if test -z "$haveit"; then
5642 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5644 if test "$hardcode_minus_L" != no; then
5645 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5646 else
5647 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5652 else
5653 if test "X$found_a" != "X"; then
5654 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5655 else
5656 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5659 additional_includedir=
5660 case "$found_dir" in
5661 */lib | */lib/)
5662 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5663 additional_includedir="$basedir/include"
5665 esac
5666 if test "X$additional_includedir" != "X"; then
5667 if test "X$additional_includedir" != "X/usr/include"; then
5668 haveit=
5669 if test "X$additional_includedir" = "X/usr/local/include"; then
5670 if test -n "$GCC"; then
5671 case $host_os in
5672 linux*) haveit=yes;;
5673 esac
5676 if test -z "$haveit"; then
5677 for x in $CPPFLAGS $INCINTL; do
5679 acl_save_prefix="$prefix"
5680 prefix="$acl_final_prefix"
5681 acl_save_exec_prefix="$exec_prefix"
5682 exec_prefix="$acl_final_exec_prefix"
5683 eval x=\"$x\"
5684 exec_prefix="$acl_save_exec_prefix"
5685 prefix="$acl_save_prefix"
5687 if test "X$x" = "X-I$additional_includedir"; then
5688 haveit=yes
5689 break
5691 done
5692 if test -z "$haveit"; then
5693 if test -d "$additional_includedir"; then
5694 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5700 if test -n "$found_la"; then
5701 save_libdir="$libdir"
5702 case "$found_la" in
5703 */* | *\\*) . "$found_la" ;;
5704 *) . "./$found_la" ;;
5705 esac
5706 libdir="$save_libdir"
5707 for dep in $dependency_libs; do
5708 case "$dep" in
5709 -L*)
5710 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5711 if test "X$additional_libdir" != "X/usr/lib"; then
5712 haveit=
5713 if test "X$additional_libdir" = "X/usr/local/lib"; then
5714 if test -n "$GCC"; then
5715 case $host_os in
5716 linux*) haveit=yes;;
5717 esac
5720 if test -z "$haveit"; then
5721 haveit=
5722 for x in $LDFLAGS $LIBINTL; do
5724 acl_save_prefix="$prefix"
5725 prefix="$acl_final_prefix"
5726 acl_save_exec_prefix="$exec_prefix"
5727 exec_prefix="$acl_final_exec_prefix"
5728 eval x=\"$x\"
5729 exec_prefix="$acl_save_exec_prefix"
5730 prefix="$acl_save_prefix"
5732 if test "X$x" = "X-L$additional_libdir"; then
5733 haveit=yes
5734 break
5736 done
5737 if test -z "$haveit"; then
5738 if test -d "$additional_libdir"; then
5739 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5742 haveit=
5743 for x in $LDFLAGS $LTLIBINTL; do
5745 acl_save_prefix="$prefix"
5746 prefix="$acl_final_prefix"
5747 acl_save_exec_prefix="$exec_prefix"
5748 exec_prefix="$acl_final_exec_prefix"
5749 eval x=\"$x\"
5750 exec_prefix="$acl_save_exec_prefix"
5751 prefix="$acl_save_prefix"
5753 if test "X$x" = "X-L$additional_libdir"; then
5754 haveit=yes
5755 break
5757 done
5758 if test -z "$haveit"; then
5759 if test -d "$additional_libdir"; then
5760 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5766 -R*)
5767 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5768 if test "$enable_rpath" != no; then
5769 haveit=
5770 for x in $rpathdirs; do
5771 if test "X$x" = "X$dir"; then
5772 haveit=yes
5773 break
5775 done
5776 if test -z "$haveit"; then
5777 rpathdirs="$rpathdirs $dir"
5779 haveit=
5780 for x in $ltrpathdirs; do
5781 if test "X$x" = "X$dir"; then
5782 haveit=yes
5783 break
5785 done
5786 if test -z "$haveit"; then
5787 ltrpathdirs="$ltrpathdirs $dir"
5791 -l*)
5792 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5794 *.la)
5795 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5798 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5799 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5801 esac
5802 done
5804 else
5805 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5806 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5810 done
5811 done
5812 if test "X$rpathdirs" != "X"; then
5813 if test -n "$hardcode_libdir_separator"; then
5814 alldirs=
5815 for found_dir in $rpathdirs; do
5816 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5817 done
5818 acl_save_libdir="$libdir"
5819 libdir="$alldirs"
5820 eval flag=\"$hardcode_libdir_flag_spec\"
5821 libdir="$acl_save_libdir"
5822 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5823 else
5824 for found_dir in $rpathdirs; do
5825 acl_save_libdir="$libdir"
5826 libdir="$found_dir"
5827 eval flag=\"$hardcode_libdir_flag_spec\"
5828 libdir="$acl_save_libdir"
5829 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5830 done
5833 if test "X$ltrpathdirs" != "X"; then
5834 for found_dir in $ltrpathdirs; do
5835 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5836 done
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5840 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
5841 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 gt_save_CPPFLAGS="$CPPFLAGS"
5845 CPPFLAGS="$CPPFLAGS $INCINTL"
5846 gt_save_LIBS="$LIBS"
5847 LIBS="$LIBS $LIBINTL"
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5850 #include <libintl.h>
5851 extern int _nl_msg_cat_cntr;
5852 extern
5853 #ifdef __cplusplus
5855 #endif
5856 const char *_nl_expand_alias ();
5858 main ()
5860 bindtextdomain ("", "");
5861 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5863 return 0;
5865 _ACEOF
5866 if ac_fn_c_try_link "$LINENO"; then :
5867 gt_cv_func_gnugettext1_libintl=yes
5868 else
5869 gt_cv_func_gnugettext1_libintl=no
5871 rm -f core conftest.err conftest.$ac_objext \
5872 conftest$ac_exeext conftest.$ac_ext
5873 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5874 LIBS="$LIBS $LIBICONV"
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5877 #include <libintl.h>
5878 extern int _nl_msg_cat_cntr;
5879 extern
5880 #ifdef __cplusplus
5882 #endif
5883 const char *_nl_expand_alias ();
5885 main ()
5887 bindtextdomain ("", "");
5888 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5890 return 0;
5892 _ACEOF
5893 if ac_fn_c_try_link "$LINENO"; then :
5894 LIBINTL="$LIBINTL $LIBICONV"
5895 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5896 gt_cv_func_gnugettext1_libintl=yes
5899 rm -f core conftest.err conftest.$ac_objext \
5900 conftest$ac_exeext conftest.$ac_ext
5902 CPPFLAGS="$gt_save_CPPFLAGS"
5903 LIBS="$gt_save_LIBS"
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
5906 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
5909 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5910 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5911 && test "$PACKAGE" != gettext-runtime \
5912 && test "$PACKAGE" != gettext-tools; }; then
5913 gt_use_preinstalled_gnugettext=yes
5914 else
5915 LIBINTL=
5916 LTLIBINTL=
5917 INCINTL=
5921 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
5922 nls_cv_use_gnu_gettext=yes
5926 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5927 BUILD_INCLUDED_LIBINTL=yes
5928 USE_INCLUDED_LIBINTL=yes
5929 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
5930 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
5931 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
5934 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5935 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5936 CATOBJEXT=.gmo
5940 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5941 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5943 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5945 else
5946 USE_NLS=no
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
5951 $as_echo_n "checking whether to use NLS... " >&6; }
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5953 $as_echo "$USE_NLS" >&6; }
5954 if test "$USE_NLS" = "yes"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
5956 $as_echo_n "checking where the gettext function comes from... " >&6; }
5957 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5958 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5959 gt_source="external libintl"
5960 else
5961 gt_source="libc"
5963 else
5964 gt_source="included intl directory"
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
5967 $as_echo "$gt_source" >&6; }
5970 if test "$USE_NLS" = "yes"; then
5972 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5973 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
5975 $as_echo_n "checking how to link with libintl... " >&6; }
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5977 $as_echo "$LIBINTL" >&6; }
5979 for element in $INCINTL; do
5980 haveit=
5981 for x in $CPPFLAGS; do
5983 acl_save_prefix="$prefix"
5984 prefix="$acl_final_prefix"
5985 acl_save_exec_prefix="$exec_prefix"
5986 exec_prefix="$acl_final_exec_prefix"
5987 eval x=\"$x\"
5988 exec_prefix="$acl_save_exec_prefix"
5989 prefix="$acl_save_prefix"
5991 if test "X$x" = "X$element"; then
5992 haveit=yes
5993 break
5995 done
5996 if test -z "$haveit"; then
5997 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5999 done
6004 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6007 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6011 POSUB=po
6015 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
6016 BUILD_INCLUDED_LIBINTL=yes
6023 nls_cv_header_intl=
6024 nls_cv_header_libgt=
6026 DATADIRNAME=share
6029 INSTOBJEXT=.mo
6032 GENCAT=gencat
6035 if test "$USE_INCLUDED_LIBINTL" = yes; then
6036 INTLOBJS="\$(GETTOBJS)"
6040 INTL_LIBTOOL_SUFFIX_PREFIX=
6044 INTLLIBS="$LIBINTL"
6052 # This replaces the extensive use of DEFS in the original Makefile.in.
6054 $as_echo "#define IN_LIBINTL 1" >>confdefs.h
6057 $as_echo "#define IN_LIBRARY 1" >>confdefs.h
6060 $as_echo "#define DEPENDS_ON_LIBICONV 1" >>confdefs.h
6063 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
6066 $as_echo "#define NO_XMALLOC 1" >>confdefs.h
6069 $as_echo "#define set_relocation_prefix libintl_set_relocation_prefix" >>confdefs.h
6072 $as_echo "#define relocate libintl_relocate" >>confdefs.h
6075 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6076 for ac_prog in aclocal
6078 # Extract the first word of "$ac_prog", so it can be a program name with args.
6079 set dummy $ac_prog; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 if test -n "$ACLOCAL"; then
6086 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_ACLOCAL="$ac_prog"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6099 done
6100 done
6101 IFS=$as_save_IFS
6105 ACLOCAL=$ac_cv_prog_ACLOCAL
6106 if test -n "$ACLOCAL"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
6108 $as_echo "$ACLOCAL" >&6; }
6109 else
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6115 test -n "$ACLOCAL" && break
6116 done
6117 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
6119 for ac_prog in autoconf
6121 # Extract the first word of "$ac_prog", so it can be a program name with args.
6122 set dummy $ac_prog; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 if test -n "$AUTOCONF"; then
6129 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
6130 else
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6134 IFS=$as_save_IFS
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6138 ac_cv_prog_AUTOCONF="$ac_prog"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 break 2
6142 done
6143 done
6144 IFS=$as_save_IFS
6148 AUTOCONF=$ac_cv_prog_AUTOCONF
6149 if test -n "$AUTOCONF"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
6151 $as_echo "$AUTOCONF" >&6; }
6152 else
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6158 test -n "$AUTOCONF" && break
6159 done
6160 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
6162 for ac_prog in autoheader
6164 # Extract the first word of "$ac_prog", so it can be a program name with args.
6165 set dummy $ac_prog; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 if test -n "$AUTOHEADER"; then
6172 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181 ac_cv_prog_AUTOHEADER="$ac_prog"
6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 break 2
6185 done
6186 done
6187 IFS=$as_save_IFS
6191 AUTOHEADER=$ac_cv_prog_AUTOHEADER
6192 if test -n "$AUTOHEADER"; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
6194 $as_echo "$AUTOHEADER" >&6; }
6195 else
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6201 test -n "$AUTOHEADER" && break
6202 done
6203 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
6206 # Check whether --enable-maintainer-mode was given.
6207 if test "${enable_maintainer_mode+set}" = set; then :
6208 enableval=$enable_maintainer_mode;
6209 else
6210 enable_maintainer_mode=no
6213 if test "x$enable_maintainer_mode" = xno; then
6214 MAINT='#'
6215 else
6216 MAINT=
6220 # Additional info for config.intl.
6224 LIBINTL_DEP=
6225 INCINTL=
6226 case $USE_INCLUDED_LIBINTL in
6227 yes)
6228 LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},&/..,' `
6229 LTLIBINTL=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' `
6230 LIBINTL_DEP='${top_builddir}/../intl/libintl.a'
6231 INCINTL='-I${top_builddir}/../intl'
6233 esac
6235 ac_config_files="$ac_config_files Makefile config.intl"
6237 cat >confcache <<\_ACEOF
6238 # This file is a shell script that caches the results of configure
6239 # tests run on this system so they can be shared between configure
6240 # scripts and configure runs, see configure's option --config-cache.
6241 # It is not useful on other systems. If it contains results you don't
6242 # want to keep, you may remove or edit it.
6244 # config.status only pays attention to the cache file if you give it
6245 # the --recheck option to rerun configure.
6247 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6248 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6249 # following values.
6251 _ACEOF
6253 # The following way of writing the cache mishandles newlines in values,
6254 # but we know of no workaround that is simple, portable, and efficient.
6255 # So, we kill variables containing newlines.
6256 # Ultrix sh set writes to stderr and can't be redirected directly,
6257 # and sets the high bit in the cache file unless we assign to the vars.
6259 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6260 eval ac_val=\$$ac_var
6261 case $ac_val in #(
6262 *${as_nl}*)
6263 case $ac_var in #(
6264 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6265 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6266 esac
6267 case $ac_var in #(
6268 _ | IFS | as_nl) ;; #(
6269 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6270 *) { eval $ac_var=; unset $ac_var;} ;;
6271 esac ;;
6272 esac
6273 done
6275 (set) 2>&1 |
6276 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6277 *${as_nl}ac_space=\ *)
6278 # `set' does not quote correctly, so add quotes: double-quote
6279 # substitution turns \\\\ into \\, and sed turns \\ into \.
6280 sed -n \
6281 "s/'/'\\\\''/g;
6282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6283 ;; #(
6285 # `set' quotes correctly as required by POSIX, so do not add quotes.
6286 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6288 esac |
6289 sort
6291 sed '
6292 /^ac_cv_env_/b end
6293 t clear
6294 :clear
6295 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6296 t end
6297 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6298 :end' >>confcache
6299 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6300 if test -w "$cache_file"; then
6301 test "x$cache_file" != "x/dev/null" &&
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6303 $as_echo "$as_me: updating cache $cache_file" >&6;}
6304 cat confcache >$cache_file
6305 else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6307 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6310 rm -f confcache
6312 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6313 # Let make expand exec_prefix.
6314 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6316 DEFS=-DHAVE_CONFIG_H
6318 ac_libobjs=
6319 ac_ltlibobjs=
6320 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6321 # 1. Remove the extension, and $U if already installed.
6322 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6323 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6324 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6325 # will be set to the directory where LIBOBJS objects are built.
6326 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6327 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6328 done
6329 LIBOBJS=$ac_libobjs
6331 LTLIBOBJS=$ac_ltlibobjs
6335 : ${CONFIG_STATUS=./config.status}
6336 ac_write_fail=0
6337 ac_clean_files_save=$ac_clean_files
6338 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6340 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6341 as_write_fail=0
6342 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6343 #! $SHELL
6344 # Generated by $as_me.
6345 # Run this file to recreate the current configuration.
6346 # Compiler output produced by configure, useful for debugging
6347 # configure, is in config.log if it exists.
6349 debug=false
6350 ac_cs_recheck=false
6351 ac_cs_silent=false
6353 SHELL=\${CONFIG_SHELL-$SHELL}
6354 export SHELL
6355 _ASEOF
6356 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6357 ## -------------------- ##
6358 ## M4sh Initialization. ##
6359 ## -------------------- ##
6361 # Be more Bourne compatible
6362 DUALCASE=1; export DUALCASE # for MKS sh
6363 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6364 emulate sh
6365 NULLCMD=:
6366 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6367 # is contrary to our usage. Disable this feature.
6368 alias -g '${1+"$@"}'='"$@"'
6369 setopt NO_GLOB_SUBST
6370 else
6371 case `(set -o) 2>/dev/null` in #(
6372 *posix*) :
6373 set -o posix ;; #(
6374 *) :
6376 esac
6380 as_nl='
6382 export as_nl
6383 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6384 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6385 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6386 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6387 # Prefer a ksh shell builtin over an external printf program on Solaris,
6388 # but without wasting forks for bash or zsh.
6389 if test -z "$BASH_VERSION$ZSH_VERSION" \
6390 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6391 as_echo='print -r --'
6392 as_echo_n='print -rn --'
6393 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6394 as_echo='printf %s\n'
6395 as_echo_n='printf %s'
6396 else
6397 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6398 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6399 as_echo_n='/usr/ucb/echo -n'
6400 else
6401 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6402 as_echo_n_body='eval
6403 arg=$1;
6404 case $arg in #(
6405 *"$as_nl"*)
6406 expr "X$arg" : "X\\(.*\\)$as_nl";
6407 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6408 esac;
6409 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6411 export as_echo_n_body
6412 as_echo_n='sh -c $as_echo_n_body as_echo'
6414 export as_echo_body
6415 as_echo='sh -c $as_echo_body as_echo'
6418 # The user is always right.
6419 if test "${PATH_SEPARATOR+set}" != set; then
6420 PATH_SEPARATOR=:
6421 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6422 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6423 PATH_SEPARATOR=';'
6428 # IFS
6429 # We need space, tab and new line, in precisely that order. Quoting is
6430 # there to prevent editors from complaining about space-tab.
6431 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6432 # splitting by setting IFS to empty value.)
6433 IFS=" "" $as_nl"
6435 # Find who we are. Look in the path if we contain no directory separator.
6436 case $0 in #((
6437 *[\\/]* ) as_myself=$0 ;;
6438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6444 done
6445 IFS=$as_save_IFS
6448 esac
6449 # We did not find ourselves, most probably we were run as `sh COMMAND'
6450 # in which case we are not to be found in the path.
6451 if test "x$as_myself" = x; then
6452 as_myself=$0
6454 if test ! -f "$as_myself"; then
6455 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6456 exit 1
6459 # Unset variables that we do not need and which cause bugs (e.g. in
6460 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6461 # suppresses any "Segmentation fault" message there. '((' could
6462 # trigger a bug in pdksh 5.2.14.
6463 for as_var in BASH_ENV ENV MAIL MAILPATH
6464 do eval test x\${$as_var+set} = xset \
6465 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6466 done
6467 PS1='$ '
6468 PS2='> '
6469 PS4='+ '
6471 # NLS nuisances.
6472 LC_ALL=C
6473 export LC_ALL
6474 LANGUAGE=C
6475 export LANGUAGE
6477 # CDPATH.
6478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6481 # as_fn_error ERROR [LINENO LOG_FD]
6482 # ---------------------------------
6483 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6484 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6485 # script with status $?, using 1 if that was 0.
6486 as_fn_error ()
6488 as_status=$?; test $as_status -eq 0 && as_status=1
6489 if test "$3"; then
6490 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6491 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6493 $as_echo "$as_me: error: $1" >&2
6494 as_fn_exit $as_status
6495 } # as_fn_error
6498 # as_fn_set_status STATUS
6499 # -----------------------
6500 # Set $? to STATUS, without forking.
6501 as_fn_set_status ()
6503 return $1
6504 } # as_fn_set_status
6506 # as_fn_exit STATUS
6507 # -----------------
6508 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6509 as_fn_exit ()
6511 set +e
6512 as_fn_set_status $1
6513 exit $1
6514 } # as_fn_exit
6516 # as_fn_unset VAR
6517 # ---------------
6518 # Portably unset VAR.
6519 as_fn_unset ()
6521 { eval $1=; unset $1;}
6523 as_unset=as_fn_unset
6524 # as_fn_append VAR VALUE
6525 # ----------------------
6526 # Append the text in VALUE to the end of the definition contained in VAR. Take
6527 # advantage of any shell optimizations that allow amortized linear growth over
6528 # repeated appends, instead of the typical quadratic growth present in naive
6529 # implementations.
6530 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6531 eval 'as_fn_append ()
6533 eval $1+=\$2
6535 else
6536 as_fn_append ()
6538 eval $1=\$$1\$2
6540 fi # as_fn_append
6542 # as_fn_arith ARG...
6543 # ------------------
6544 # Perform arithmetic evaluation on the ARGs, and store the result in the
6545 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6546 # must be portable across $(()) and expr.
6547 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6548 eval 'as_fn_arith ()
6550 as_val=$(( $* ))
6552 else
6553 as_fn_arith ()
6555 as_val=`expr "$@" || test $? -eq 1`
6557 fi # as_fn_arith
6560 if expr a : '\(a\)' >/dev/null 2>&1 &&
6561 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6562 as_expr=expr
6563 else
6564 as_expr=false
6567 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6568 as_basename=basename
6569 else
6570 as_basename=false
6573 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6574 as_dirname=dirname
6575 else
6576 as_dirname=false
6579 as_me=`$as_basename -- "$0" ||
6580 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6581 X"$0" : 'X\(//\)$' \| \
6582 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6583 $as_echo X/"$0" |
6584 sed '/^.*\/\([^/][^/]*\)\/*$/{
6585 s//\1/
6588 /^X\/\(\/\/\)$/{
6589 s//\1/
6592 /^X\/\(\/\).*/{
6593 s//\1/
6596 s/.*/./; q'`
6598 # Avoid depending upon Character Ranges.
6599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6602 as_cr_digits='0123456789'
6603 as_cr_alnum=$as_cr_Letters$as_cr_digits
6605 ECHO_C= ECHO_N= ECHO_T=
6606 case `echo -n x` in #(((((
6607 -n*)
6608 case `echo 'xy\c'` in
6609 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6610 xy) ECHO_C='\c';;
6611 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6612 ECHO_T=' ';;
6613 esac;;
6615 ECHO_N='-n';;
6616 esac
6618 rm -f conf$$ conf$$.exe conf$$.file
6619 if test -d conf$$.dir; then
6620 rm -f conf$$.dir/conf$$.file
6621 else
6622 rm -f conf$$.dir
6623 mkdir conf$$.dir 2>/dev/null
6625 if (echo >conf$$.file) 2>/dev/null; then
6626 if ln -s conf$$.file conf$$ 2>/dev/null; then
6627 as_ln_s='ln -s'
6628 # ... but there are two gotchas:
6629 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6630 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6631 # In both cases, we have to default to `cp -p'.
6632 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6633 as_ln_s='cp -p'
6634 elif ln conf$$.file conf$$ 2>/dev/null; then
6635 as_ln_s=ln
6636 else
6637 as_ln_s='cp -p'
6639 else
6640 as_ln_s='cp -p'
6642 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6643 rmdir conf$$.dir 2>/dev/null
6646 # as_fn_mkdir_p
6647 # -------------
6648 # Create "$as_dir" as a directory, including parents if necessary.
6649 as_fn_mkdir_p ()
6652 case $as_dir in #(
6653 -*) as_dir=./$as_dir;;
6654 esac
6655 test -d "$as_dir" || eval $as_mkdir_p || {
6656 as_dirs=
6657 while :; do
6658 case $as_dir in #(
6659 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6660 *) as_qdir=$as_dir;;
6661 esac
6662 as_dirs="'$as_qdir' $as_dirs"
6663 as_dir=`$as_dirname -- "$as_dir" ||
6664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6665 X"$as_dir" : 'X\(//\)[^/]' \| \
6666 X"$as_dir" : 'X\(//\)$' \| \
6667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6668 $as_echo X"$as_dir" |
6669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6670 s//\1/
6673 /^X\(\/\/\)[^/].*/{
6674 s//\1/
6677 /^X\(\/\/\)$/{
6678 s//\1/
6681 /^X\(\/\).*/{
6682 s//\1/
6685 s/.*/./; q'`
6686 test -d "$as_dir" && break
6687 done
6688 test -z "$as_dirs" || eval "mkdir $as_dirs"
6689 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6692 } # as_fn_mkdir_p
6693 if mkdir -p . 2>/dev/null; then
6694 as_mkdir_p='mkdir -p "$as_dir"'
6695 else
6696 test -d ./-p && rmdir ./-p
6697 as_mkdir_p=false
6700 if test -x / >/dev/null 2>&1; then
6701 as_test_x='test -x'
6702 else
6703 if ls -dL / >/dev/null 2>&1; then
6704 as_ls_L_option=L
6705 else
6706 as_ls_L_option=
6708 as_test_x='
6709 eval sh -c '\''
6710 if test -d "$1"; then
6711 test -d "$1/.";
6712 else
6713 case $1 in #(
6714 -*)set "./$1";;
6715 esac;
6716 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6717 ???[sx]*):;;*)false;;esac;fi
6718 '\'' sh
6721 as_executable_p=$as_test_x
6723 # Sed expression to map a string onto a valid CPP name.
6724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6726 # Sed expression to map a string onto a valid variable name.
6727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6730 exec 6>&1
6731 ## ----------------------------------- ##
6732 ## Main body of $CONFIG_STATUS script. ##
6733 ## ----------------------------------- ##
6734 _ASEOF
6735 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6738 # Save the log message, to keep $0 and so on meaningful, and to
6739 # report actual input values of CONFIG_FILES etc. instead of their
6740 # values after options handling.
6741 ac_log="
6742 This file was extended by $as_me, which was
6743 generated by GNU Autoconf 2.64. Invocation command line was
6745 CONFIG_FILES = $CONFIG_FILES
6746 CONFIG_HEADERS = $CONFIG_HEADERS
6747 CONFIG_LINKS = $CONFIG_LINKS
6748 CONFIG_COMMANDS = $CONFIG_COMMANDS
6749 $ $0 $@
6751 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6754 _ACEOF
6756 case $ac_config_files in *"
6757 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6758 esac
6760 case $ac_config_headers in *"
6761 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6762 esac
6765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6766 # Files that config.status was made for.
6767 config_files="$ac_config_files"
6768 config_headers="$ac_config_headers"
6769 config_commands="$ac_config_commands"
6771 _ACEOF
6773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6774 ac_cs_usage="\
6775 \`$as_me' instantiates files and other configuration actions
6776 from templates according to the current configuration. Unless the files
6777 and actions are specified as TAGs, all are instantiated by default.
6779 Usage: $0 [OPTION]... [TAG]...
6781 -h, --help print this help, then exit
6782 -V, --version print version number and configuration settings, then exit
6783 -q, --quiet, --silent
6784 do not print progress messages
6785 -d, --debug don't remove temporary files
6786 --recheck update $as_me by reconfiguring in the same conditions
6787 --file=FILE[:TEMPLATE]
6788 instantiate the configuration file FILE
6789 --header=FILE[:TEMPLATE]
6790 instantiate the configuration header FILE
6792 Configuration files:
6793 $config_files
6795 Configuration headers:
6796 $config_headers
6798 Configuration commands:
6799 $config_commands
6801 Report bugs to the package provider."
6803 _ACEOF
6804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6805 ac_cs_version="\\
6806 config.status
6807 configured by $0, generated by GNU Autoconf 2.64,
6808 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6810 Copyright (C) 2009 Free Software Foundation, Inc.
6811 This config.status script is free software; the Free Software Foundation
6812 gives unlimited permission to copy, distribute and modify it."
6814 ac_pwd='$ac_pwd'
6815 srcdir='$srcdir'
6816 INSTALL='$INSTALL'
6817 test -n "\$AWK" || AWK=awk
6818 _ACEOF
6820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6821 # The default lists apply if the user does not specify any file.
6822 ac_need_defaults=:
6823 while test $# != 0
6825 case $1 in
6826 --*=*)
6827 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6828 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6829 ac_shift=:
6832 ac_option=$1
6833 ac_optarg=$2
6834 ac_shift=shift
6836 esac
6838 case $ac_option in
6839 # Handling of the options.
6840 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6841 ac_cs_recheck=: ;;
6842 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6843 $as_echo "$ac_cs_version"; exit ;;
6844 --debug | --debu | --deb | --de | --d | -d )
6845 debug=: ;;
6846 --file | --fil | --fi | --f )
6847 $ac_shift
6848 case $ac_optarg in
6849 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6850 esac
6851 as_fn_append CONFIG_FILES " '$ac_optarg'"
6852 ac_need_defaults=false;;
6853 --header | --heade | --head | --hea )
6854 $ac_shift
6855 case $ac_optarg in
6856 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6857 esac
6858 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6859 ac_need_defaults=false;;
6860 --he | --h)
6861 # Conflict between --help and --header
6862 as_fn_error "ambiguous option: \`$1'
6863 Try \`$0 --help' for more information.";;
6864 --help | --hel | -h )
6865 $as_echo "$ac_cs_usage"; exit ;;
6866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6868 ac_cs_silent=: ;;
6870 # This is an error.
6871 -*) as_fn_error "unrecognized option: \`$1'
6872 Try \`$0 --help' for more information." ;;
6874 *) as_fn_append ac_config_targets " $1"
6875 ac_need_defaults=false ;;
6877 esac
6878 shift
6879 done
6881 ac_configure_extra_args=
6883 if $ac_cs_silent; then
6884 exec 6>/dev/null
6885 ac_configure_extra_args="$ac_configure_extra_args --silent"
6888 _ACEOF
6889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6890 if \$ac_cs_recheck; then
6891 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6892 shift
6893 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6894 CONFIG_SHELL='$SHELL'
6895 export CONFIG_SHELL
6896 exec "\$@"
6899 _ACEOF
6900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6901 exec 5>>config.log
6903 echo
6904 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6905 ## Running $as_me. ##
6906 _ASBOX
6907 $as_echo "$ac_log"
6908 } >&5
6910 _ACEOF
6911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6913 # INIT-COMMANDS
6915 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
6916 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
6917 # from automake.
6918 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
6919 # Capture the value of LINGUAS because we need it to compute CATALOGS.
6920 LINGUAS="${LINGUAS-%UNSET%}"
6923 _ACEOF
6925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6927 # Handling of arguments.
6928 for ac_config_target in $ac_config_targets
6930 case $ac_config_target in
6931 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6932 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6933 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6934 "config.intl") CONFIG_FILES="$CONFIG_FILES config.intl" ;;
6936 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6937 esac
6938 done
6941 # If the user did not use the arguments to specify the items to instantiate,
6942 # then the envvar interface is used. Set only those that are not.
6943 # We use the long form for the default assignment because of an extremely
6944 # bizarre bug on SunOS 4.1.3.
6945 if $ac_need_defaults; then
6946 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6947 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6948 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6951 # Have a temporary directory for convenience. Make it in the build tree
6952 # simply because there is no reason against having it here, and in addition,
6953 # creating and moving files from /tmp can sometimes cause problems.
6954 # Hook for its removal unless debugging.
6955 # Note that there is a small window in which the directory will not be cleaned:
6956 # after its creation but before its name has been assigned to `$tmp'.
6957 $debug ||
6959 tmp=
6960 trap 'exit_status=$?
6961 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6963 trap 'as_fn_exit 1' 1 2 13 15
6965 # Create a (secure) tmp directory for tmp files.
6968 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6969 test -n "$tmp" && test -d "$tmp"
6970 } ||
6972 tmp=./conf$$-$RANDOM
6973 (umask 077 && mkdir "$tmp")
6974 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6976 # Set up the scripts for CONFIG_FILES section.
6977 # No need to generate them if there are no CONFIG_FILES.
6978 # This happens for instance with `./config.status config.h'.
6979 if test -n "$CONFIG_FILES"; then
6982 ac_cr=`echo X | tr X '\015'`
6983 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6984 # But we know of no other shell where ac_cr would be empty at this
6985 # point, so we can use a bashism as a fallback.
6986 if test "x$ac_cr" = x; then
6987 eval ac_cr=\$\'\\r\'
6989 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6990 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6991 ac_cs_awk_cr='\r'
6992 else
6993 ac_cs_awk_cr=$ac_cr
6996 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6997 _ACEOF
7001 echo "cat >conf$$subs.awk <<_ACEOF" &&
7002 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7003 echo "_ACEOF"
7004 } >conf$$subs.sh ||
7005 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7006 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7007 ac_delim='%!_!# '
7008 for ac_last_try in false false false false false :; do
7009 . ./conf$$subs.sh ||
7010 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7012 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7013 if test $ac_delim_n = $ac_delim_num; then
7014 break
7015 elif $ac_last_try; then
7016 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7017 else
7018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7020 done
7021 rm -f conf$$subs.sh
7023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7024 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7025 _ACEOF
7026 sed -n '
7028 s/^/S["/; s/!.*/"]=/
7031 s/^[^!]*!//
7032 :repl
7033 t repl
7034 s/'"$ac_delim"'$//
7035 t delim
7038 s/\(.\{148\}\).*/\1/
7039 t more1
7040 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7043 b repl
7044 :more1
7045 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7048 s/.\{148\}//
7049 t nl
7050 :delim
7052 s/\(.\{148\}\).*/\1/
7053 t more2
7054 s/["\\]/\\&/g; s/^/"/; s/$/"/
7057 :more2
7058 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7061 s/.\{148\}//
7062 t delim
7063 ' <conf$$subs.awk | sed '
7064 /^[^""]/{
7066 s/\n//
7068 ' >>$CONFIG_STATUS || ac_write_fail=1
7069 rm -f conf$$subs.awk
7070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7071 _ACAWK
7072 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7073 for (key in S) S_is_set[key] = 1
7074 FS = "\a"
7078 line = $ 0
7079 nfields = split(line, field, "@")
7080 substed = 0
7081 len = length(field[1])
7082 for (i = 2; i < nfields; i++) {
7083 key = field[i]
7084 keylen = length(key)
7085 if (S_is_set[key]) {
7086 value = S[key]
7087 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7088 len += length(value) + length(field[++i])
7089 substed = 1
7090 } else
7091 len += 1 + keylen
7094 print line
7097 _ACAWK
7098 _ACEOF
7099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7100 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7101 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7102 else
7104 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7105 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7106 _ACEOF
7108 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7109 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7110 # trailing colons and then remove the whole line if VPATH becomes empty
7111 # (actually we leave an empty line to preserve line numbers).
7112 if test "x$srcdir" = x.; then
7113 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7114 s/:*\$(srcdir):*/:/
7115 s/:*\${srcdir}:*/:/
7116 s/:*@srcdir@:*/:/
7117 s/^\([^=]*=[ ]*\):*/\1/
7118 s/:*$//
7119 s/^[^=]*=[ ]*$//
7123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7124 fi # test -n "$CONFIG_FILES"
7126 # Set up the scripts for CONFIG_HEADERS section.
7127 # No need to generate them if there are no CONFIG_HEADERS.
7128 # This happens for instance with `./config.status Makefile'.
7129 if test -n "$CONFIG_HEADERS"; then
7130 cat >"$tmp/defines.awk" <<\_ACAWK ||
7131 BEGIN {
7132 _ACEOF
7134 # Transform confdefs.h into an awk script `defines.awk', embedded as
7135 # here-document in config.status, that substitutes the proper values into
7136 # config.h.in to produce config.h.
7138 # Create a delimiter string that does not exist in confdefs.h, to ease
7139 # handling of long lines.
7140 ac_delim='%!_!# '
7141 for ac_last_try in false false :; do
7142 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7143 if test -z "$ac_t"; then
7144 break
7145 elif $ac_last_try; then
7146 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7147 else
7148 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7150 done
7152 # For the awk script, D is an array of macro values keyed by name,
7153 # likewise P contains macro parameters if any. Preserve backslash
7154 # newline sequences.
7156 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7157 sed -n '
7158 s/.\{148\}/&'"$ac_delim"'/g
7159 t rset
7160 :rset
7161 s/^[ ]*#[ ]*define[ ][ ]*/ /
7162 t def
7164 :def
7165 s/\\$//
7166 t bsnl
7167 s/["\\]/\\&/g
7168 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7169 D["\1"]=" \3"/p
7170 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7172 :bsnl
7173 s/["\\]/\\&/g
7174 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7175 D["\1"]=" \3\\\\\\n"\\/p
7176 t cont
7177 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7178 t cont
7180 :cont
7182 s/.\{148\}/&'"$ac_delim"'/g
7183 t clear
7184 :clear
7185 s/\\$//
7186 t bsnlc
7187 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7189 :bsnlc
7190 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7191 b cont
7192 ' <confdefs.h | sed '
7193 s/'"$ac_delim"'/"\\\
7194 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7197 for (key in D) D_is_set[key] = 1
7198 FS = "\a"
7200 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7201 line = \$ 0
7202 split(line, arg, " ")
7203 if (arg[1] == "#") {
7204 defundef = arg[2]
7205 mac1 = arg[3]
7206 } else {
7207 defundef = substr(arg[1], 2)
7208 mac1 = arg[2]
7210 split(mac1, mac2, "(") #)
7211 macro = mac2[1]
7212 prefix = substr(line, 1, index(line, defundef) - 1)
7213 if (D_is_set[macro]) {
7214 # Preserve the white space surrounding the "#".
7215 print prefix "define", macro P[macro] D[macro]
7216 next
7217 } else {
7218 # Replace #undef with comments. This is necessary, for example,
7219 # in the case of _POSIX_SOURCE, which is predefined and required
7220 # on some systems where configure will not decide to define it.
7221 if (defundef == "undef") {
7222 print "/*", prefix defundef, macro, "*/"
7223 next
7227 { print }
7228 _ACAWK
7229 _ACEOF
7230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7231 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7232 fi # test -n "$CONFIG_HEADERS"
7235 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7236 shift
7237 for ac_tag
7239 case $ac_tag in
7240 :[FHLC]) ac_mode=$ac_tag; continue;;
7241 esac
7242 case $ac_mode$ac_tag in
7243 :[FHL]*:*);;
7244 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7245 :[FH]-) ac_tag=-:-;;
7246 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7247 esac
7248 ac_save_IFS=$IFS
7249 IFS=:
7250 set x $ac_tag
7251 IFS=$ac_save_IFS
7252 shift
7253 ac_file=$1
7254 shift
7256 case $ac_mode in
7257 :L) ac_source=$1;;
7258 :[FH])
7259 ac_file_inputs=
7260 for ac_f
7262 case $ac_f in
7263 -) ac_f="$tmp/stdin";;
7264 *) # Look for the file first in the build tree, then in the source tree
7265 # (if the path is not absolute). The absolute path cannot be DOS-style,
7266 # because $ac_f cannot contain `:'.
7267 test -f "$ac_f" ||
7268 case $ac_f in
7269 [\\/$]*) false;;
7270 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7271 esac ||
7272 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7273 esac
7274 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7275 as_fn_append ac_file_inputs " '$ac_f'"
7276 done
7278 # Let's still pretend it is `configure' which instantiates (i.e., don't
7279 # use $as_me), people would be surprised to read:
7280 # /* config.h. Generated by config.status. */
7281 configure_input='Generated from '`
7282 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7283 `' by configure.'
7284 if test x"$ac_file" != x-; then
7285 configure_input="$ac_file. $configure_input"
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7287 $as_echo "$as_me: creating $ac_file" >&6;}
7289 # Neutralize special characters interpreted by sed in replacement strings.
7290 case $configure_input in #(
7291 *\&* | *\|* | *\\* )
7292 ac_sed_conf_input=`$as_echo "$configure_input" |
7293 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7294 *) ac_sed_conf_input=$configure_input;;
7295 esac
7297 case $ac_tag in
7298 *:-:* | *:-) cat >"$tmp/stdin" \
7299 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7300 esac
7302 esac
7304 ac_dir=`$as_dirname -- "$ac_file" ||
7305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7306 X"$ac_file" : 'X\(//\)[^/]' \| \
7307 X"$ac_file" : 'X\(//\)$' \| \
7308 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7309 $as_echo X"$ac_file" |
7310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7311 s//\1/
7314 /^X\(\/\/\)[^/].*/{
7315 s//\1/
7318 /^X\(\/\/\)$/{
7319 s//\1/
7322 /^X\(\/\).*/{
7323 s//\1/
7326 s/.*/./; q'`
7327 as_dir="$ac_dir"; as_fn_mkdir_p
7328 ac_builddir=.
7330 case "$ac_dir" in
7331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7333 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7334 # A ".." for each directory in $ac_dir_suffix.
7335 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7336 case $ac_top_builddir_sub in
7337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7339 esac ;;
7340 esac
7341 ac_abs_top_builddir=$ac_pwd
7342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7343 # for backward compatibility:
7344 ac_top_builddir=$ac_top_build_prefix
7346 case $srcdir in
7347 .) # We are building in place.
7348 ac_srcdir=.
7349 ac_top_srcdir=$ac_top_builddir_sub
7350 ac_abs_top_srcdir=$ac_pwd ;;
7351 [\\/]* | ?:[\\/]* ) # Absolute name.
7352 ac_srcdir=$srcdir$ac_dir_suffix;
7353 ac_top_srcdir=$srcdir
7354 ac_abs_top_srcdir=$srcdir ;;
7355 *) # Relative name.
7356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7357 ac_top_srcdir=$ac_top_build_prefix$srcdir
7358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7359 esac
7360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7363 case $ac_mode in
7366 # CONFIG_FILE
7369 case $INSTALL in
7370 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7371 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7372 esac
7373 _ACEOF
7375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7376 # If the template does not know about datarootdir, expand it.
7377 # FIXME: This hack should be removed a few years after 2.60.
7378 ac_datarootdir_hack=; ac_datarootdir_seen=
7379 ac_sed_dataroot='
7380 /datarootdir/ {
7384 /@datadir@/p
7385 /@docdir@/p
7386 /@infodir@/p
7387 /@localedir@/p
7388 /@mandir@/p'
7389 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7390 *datarootdir*) ac_datarootdir_seen=yes;;
7391 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7393 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7394 _ACEOF
7395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7396 ac_datarootdir_hack='
7397 s&@datadir@&$datadir&g
7398 s&@docdir@&$docdir&g
7399 s&@infodir@&$infodir&g
7400 s&@localedir@&$localedir&g
7401 s&@mandir@&$mandir&g
7402 s&\\\${datarootdir}&$datarootdir&g' ;;
7403 esac
7404 _ACEOF
7406 # Neutralize VPATH when `$srcdir' = `.'.
7407 # Shell code in configure.ac might set extrasub.
7408 # FIXME: do we really want to maintain this feature?
7409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7410 ac_sed_extra="$ac_vpsub
7411 $extrasub
7412 _ACEOF
7413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7415 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7416 s|@configure_input@|$ac_sed_conf_input|;t t
7417 s&@top_builddir@&$ac_top_builddir_sub&;t t
7418 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7419 s&@srcdir@&$ac_srcdir&;t t
7420 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7421 s&@top_srcdir@&$ac_top_srcdir&;t t
7422 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7423 s&@builddir@&$ac_builddir&;t t
7424 s&@abs_builddir@&$ac_abs_builddir&;t t
7425 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7426 s&@INSTALL@&$ac_INSTALL&;t t
7427 $ac_datarootdir_hack
7429 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7430 || as_fn_error "could not create $ac_file" "$LINENO" 5
7432 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7433 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7434 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7436 which seems to be undefined. Please make sure it is defined." >&5
7437 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7438 which seems to be undefined. Please make sure it is defined." >&2;}
7440 rm -f "$tmp/stdin"
7441 case $ac_file in
7442 -) cat "$tmp/out" && rm -f "$tmp/out";;
7443 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7444 esac \
7445 || as_fn_error "could not create $ac_file" "$LINENO" 5
7449 # CONFIG_HEADER
7451 if test x"$ac_file" != x-; then
7453 $as_echo "/* $configure_input */" \
7454 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7455 } >"$tmp/config.h" \
7456 || as_fn_error "could not create $ac_file" "$LINENO" 5
7457 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7459 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7460 else
7461 rm -f "$ac_file"
7462 mv "$tmp/config.h" "$ac_file" \
7463 || as_fn_error "could not create $ac_file" "$LINENO" 5
7465 else
7466 $as_echo "/* $configure_input */" \
7467 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7468 || as_fn_error "could not create -" "$LINENO" 5
7472 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7473 $as_echo "$as_me: executing $ac_file commands" >&6;}
7475 esac
7478 case $ac_file$ac_mode in
7479 "default-1":C)
7480 for ac_file in $CONFIG_FILES; do
7481 # Support "outfile[:infile[:infile...]]"
7482 case "$ac_file" in
7483 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7484 esac
7485 # PO directories have a Makefile.in generated from Makefile.in.in.
7486 case "$ac_file" in */Makefile.in)
7487 # Adjust a relative srcdir.
7488 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7489 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
7490 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7491 # In autoconf-2.13 it is called $ac_given_srcdir.
7492 # In autoconf-2.50 it is called $srcdir.
7493 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
7494 case "$ac_given_srcdir" in
7495 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
7496 /*) top_srcdir="$ac_given_srcdir" ;;
7497 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
7498 esac
7499 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7500 rm -f "$ac_dir/POTFILES"
7501 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7502 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
7503 POMAKEFILEDEPS="POTFILES.in"
7504 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
7505 # on $ac_dir but don't depend on user-specified configuration
7506 # parameters.
7507 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
7508 # The LINGUAS file contains the set of available languages.
7509 if test -n "$OBSOLETE_ALL_LINGUAS"; then
7510 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
7512 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
7513 # Hide the ALL_LINGUAS assigment from automake.
7514 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
7515 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
7516 else
7517 # The set of available languages was given in configure.ac.
7518 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
7520 case "$ac_given_srcdir" in
7521 .) srcdirpre= ;;
7522 *) srcdirpre='$(srcdir)/' ;;
7523 esac
7524 POFILES=
7525 GMOFILES=
7526 UPDATEPOFILES=
7527 DUMMYPOFILES=
7528 for lang in $ALL_LINGUAS; do
7529 POFILES="$POFILES $srcdirpre$lang.po"
7530 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
7531 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
7532 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
7533 done
7534 # CATALOGS depends on both $ac_dir and the user's LINGUAS
7535 # environment variable.
7536 INST_LINGUAS=
7537 if test -n "$ALL_LINGUAS"; then
7538 for presentlang in $ALL_LINGUAS; do
7539 useit=no
7540 if test "%UNSET%" != "$LINGUAS"; then
7541 desiredlanguages="$LINGUAS"
7542 else
7543 desiredlanguages="$ALL_LINGUAS"
7545 for desiredlang in $desiredlanguages; do
7546 # Use the presentlang catalog if desiredlang is
7547 # a. equal to presentlang, or
7548 # b. a variant of presentlang (because in this case,
7549 # presentlang can be used as a fallback for messages
7550 # which are not translated in the desiredlang catalog).
7551 case "$desiredlang" in
7552 "$presentlang"*) useit=yes;;
7553 esac
7554 done
7555 if test $useit = yes; then
7556 INST_LINGUAS="$INST_LINGUAS $presentlang"
7558 done
7560 CATALOGS=
7561 if test -n "$INST_LINGUAS"; then
7562 for lang in $INST_LINGUAS; do
7563 CATALOGS="$CATALOGS $lang.gmo"
7564 done
7566 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7567 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" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
7568 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
7569 if test -f "$f"; then
7570 case "$f" in
7571 *.orig | *.bak | *~) ;;
7572 *) cat "$f" >> "$ac_dir/Makefile" ;;
7573 esac
7575 done
7578 esac
7579 done ;;
7581 esac
7582 done # for ac_tag
7585 as_fn_exit 0
7586 _ACEOF
7587 ac_clean_files=$ac_clean_files_save
7589 test $ac_write_fail = 0 ||
7590 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7593 # configure is writing to config.log, and then calls config.status.
7594 # config.status does its own redirection, appending to config.log.
7595 # Unfortunately, on DOS this fails, as config.log is still kept open
7596 # by configure, so config.status won't be able to write to it; its
7597 # output is simply discarded. So we exec the FD to /dev/null,
7598 # effectively closing config.log, so it can be properly (re)opened and
7599 # appended to by config.status. When coming back to configure, we
7600 # need to make the FD available again.
7601 if test "$no_create" != yes; then
7602 ac_cs_success=:
7603 ac_config_status_args=
7604 test "$silent" = yes &&
7605 ac_config_status_args="$ac_config_status_args --quiet"
7606 exec 5>/dev/null
7607 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7608 exec 5>>config.log
7609 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7610 # would make configure fail if this is the last instruction.
7611 $ac_cs_success || as_fn_exit $?
7613 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7615 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}