diagnostics: Fix sporadic test failure
[official-gcc.git] / intl / configure
blob1e100395369f194747015ab1d79cea25f716d4cb
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 # Factoring default headers for most tests.
586 ac_includes_default="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 # include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 # include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
621 ac_unique_file="gettext.c"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 LIBOBJS
625 PICFLAG
626 BISON3_NO
627 BISON3_YES
628 INCINTL
629 LIBINTL_DEP
630 MAINT
631 AUTOHEADER
632 AUTOCONF
633 ACLOCAL
634 POSUB
635 LTLIBINTL
636 LIBINTL
637 INTLLIBS
638 INTL_LIBTOOL_SUFFIX_PREFIX
639 INTLOBJS
640 GENCAT
641 INSTOBJEXT
642 DATADIRNAME
643 CATOBJEXT
644 USE_INCLUDED_LIBINTL
645 BUILD_INCLUDED_LIBINTL
646 INTLBISON
647 LTLIBICONV
648 LIBICONV
649 GLIBC21
650 ALLOCA
651 RANLIB
652 host_os
653 host_vendor
654 host_cpu
655 host
656 build_os
657 build_vendor
658 build_cpu
659 build
660 MSGMERGE
661 XGETTEXT
662 GMSGFMT
663 MSGFMT
664 USE_NLS
665 MKINSTALLDIRS
666 INSTALL_DATA
667 INSTALL_SCRIPT
668 INSTALL_PROGRAM
669 SET_MAKE
670 EGREP
671 GREP
673 OBJEXT
674 EXEEXT
675 ac_ct_CC
676 CPPFLAGS
677 LDFLAGS
678 CFLAGS
680 target_alias
681 host_alias
682 build_alias
683 LIBS
684 ECHO_T
685 ECHO_N
686 ECHO_C
687 DEFS
688 mandir
689 localedir
690 libdir
691 psdir
692 pdfdir
693 dvidir
694 htmldir
695 infodir
696 docdir
697 oldincludedir
698 includedir
699 localstatedir
700 sharedstatedir
701 sysconfdir
702 datadir
703 datarootdir
704 libexecdir
705 sbindir
706 bindir
707 program_transform_name
708 prefix
709 exec_prefix
710 PACKAGE_URL
711 PACKAGE_BUGREPORT
712 PACKAGE_STRING
713 PACKAGE_VERSION
714 PACKAGE_TARNAME
715 PACKAGE_NAME
716 PATH_SEPARATOR
717 SHELL'
718 ac_subst_files=''
719 ac_user_opts='
720 enable_option_checking
721 enable_nls
722 with_gnu_ld
723 enable_rpath
724 with_libiconv_prefix
725 with_libiconv_type
726 with_included_gettext
727 with_libintl_prefix
728 with_libintl_type
729 enable_maintainer_mode
730 enable_host_shared
732 ac_precious_vars='build_alias
733 host_alias
734 target_alias
736 CFLAGS
737 LDFLAGS
738 LIBS
739 CPPFLAGS
740 CPP'
743 # Initialize some variables set by options.
744 ac_init_help=
745 ac_init_version=false
746 ac_unrecognized_opts=
747 ac_unrecognized_sep=
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
750 cache_file=/dev/null
751 exec_prefix=NONE
752 no_create=
753 no_recursion=
754 prefix=NONE
755 program_prefix=NONE
756 program_suffix=NONE
757 program_transform_name=s,x,x,
758 silent=
759 site=
760 srcdir=
761 verbose=
762 x_includes=NONE
763 x_libraries=NONE
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir='${exec_prefix}/bin'
772 sbindir='${exec_prefix}/sbin'
773 libexecdir='${exec_prefix}/libexec'
774 datarootdir='${prefix}/share'
775 datadir='${datarootdir}'
776 sysconfdir='${prefix}/etc'
777 sharedstatedir='${prefix}/com'
778 localstatedir='${prefix}/var'
779 includedir='${prefix}/include'
780 oldincludedir='/usr/include'
781 docdir='${datarootdir}/doc/${PACKAGE}'
782 infodir='${datarootdir}/info'
783 htmldir='${docdir}'
784 dvidir='${docdir}'
785 pdfdir='${docdir}'
786 psdir='${docdir}'
787 libdir='${exec_prefix}/lib'
788 localedir='${datarootdir}/locale'
789 mandir='${datarootdir}/man'
791 ac_prev=
792 ac_dashdash=
793 for ac_option
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
802 case $ac_option in
803 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *=) ac_optarg= ;;
805 *) ac_optarg=yes ;;
806 esac
808 # Accept the important Cygnus configure options, so we can diagnose typos.
810 case $ac_dashdash$ac_option in
812 ac_dashdash=yes ;;
814 -bindir | --bindir | --bindi | --bind | --bin | --bi)
815 ac_prev=bindir ;;
816 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
817 bindir=$ac_optarg ;;
819 -build | --build | --buil | --bui | --bu)
820 ac_prev=build_alias ;;
821 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
822 build_alias=$ac_optarg ;;
824 -cache-file | --cache-file | --cache-fil | --cache-fi \
825 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
826 ac_prev=cache_file ;;
827 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
828 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
829 cache_file=$ac_optarg ;;
831 --config-cache | -C)
832 cache_file=config.cache ;;
834 -datadir | --datadir | --datadi | --datad)
835 ac_prev=datadir ;;
836 -datadir=* | --datadir=* | --datadi=* | --datad=*)
837 datadir=$ac_optarg ;;
839 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
840 | --dataroo | --dataro | --datar)
841 ac_prev=datarootdir ;;
842 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
843 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
844 datarootdir=$ac_optarg ;;
846 -disable-* | --disable-*)
847 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
848 # Reject names that are not valid shell variable names.
849 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
850 as_fn_error $? "invalid feature name: $ac_useropt"
851 ac_useropt_orig=$ac_useropt
852 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
853 case $ac_user_opts in
855 "enable_$ac_useropt"
856 "*) ;;
857 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
858 ac_unrecognized_sep=', ';;
859 esac
860 eval enable_$ac_useropt=no ;;
862 -docdir | --docdir | --docdi | --doc | --do)
863 ac_prev=docdir ;;
864 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
865 docdir=$ac_optarg ;;
867 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
868 ac_prev=dvidir ;;
869 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
870 dvidir=$ac_optarg ;;
872 -enable-* | --enable-*)
873 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
876 as_fn_error $? "invalid feature name: $ac_useropt"
877 ac_useropt_orig=$ac_useropt
878 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
879 case $ac_user_opts in
881 "enable_$ac_useropt"
882 "*) ;;
883 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
884 ac_unrecognized_sep=', ';;
885 esac
886 eval enable_$ac_useropt=\$ac_optarg ;;
888 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
889 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
890 | --exec | --exe | --ex)
891 ac_prev=exec_prefix ;;
892 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
893 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
894 | --exec=* | --exe=* | --ex=*)
895 exec_prefix=$ac_optarg ;;
897 -gas | --gas | --ga | --g)
898 # Obsolete; use --with-gas.
899 with_gas=yes ;;
901 -help | --help | --hel | --he | -h)
902 ac_init_help=long ;;
903 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
904 ac_init_help=recursive ;;
905 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
906 ac_init_help=short ;;
908 -host | --host | --hos | --ho)
909 ac_prev=host_alias ;;
910 -host=* | --host=* | --hos=* | --ho=*)
911 host_alias=$ac_optarg ;;
913 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
914 ac_prev=htmldir ;;
915 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
916 | --ht=*)
917 htmldir=$ac_optarg ;;
919 -includedir | --includedir | --includedi | --included | --include \
920 | --includ | --inclu | --incl | --inc)
921 ac_prev=includedir ;;
922 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
923 | --includ=* | --inclu=* | --incl=* | --inc=*)
924 includedir=$ac_optarg ;;
926 -infodir | --infodir | --infodi | --infod | --info | --inf)
927 ac_prev=infodir ;;
928 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
929 infodir=$ac_optarg ;;
931 -libdir | --libdir | --libdi | --libd)
932 ac_prev=libdir ;;
933 -libdir=* | --libdir=* | --libdi=* | --libd=*)
934 libdir=$ac_optarg ;;
936 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
937 | --libexe | --libex | --libe)
938 ac_prev=libexecdir ;;
939 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
940 | --libexe=* | --libex=* | --libe=*)
941 libexecdir=$ac_optarg ;;
943 -localedir | --localedir | --localedi | --localed | --locale)
944 ac_prev=localedir ;;
945 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
946 localedir=$ac_optarg ;;
948 -localstatedir | --localstatedir | --localstatedi | --localstated \
949 | --localstate | --localstat | --localsta | --localst | --locals)
950 ac_prev=localstatedir ;;
951 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
952 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
953 localstatedir=$ac_optarg ;;
955 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
956 ac_prev=mandir ;;
957 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
958 mandir=$ac_optarg ;;
960 -nfp | --nfp | --nf)
961 # Obsolete; use --without-fp.
962 with_fp=no ;;
964 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
965 | --no-cr | --no-c | -n)
966 no_create=yes ;;
968 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
969 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
970 no_recursion=yes ;;
972 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
973 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
974 | --oldin | --oldi | --old | --ol | --o)
975 ac_prev=oldincludedir ;;
976 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
977 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
978 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
979 oldincludedir=$ac_optarg ;;
981 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
982 ac_prev=prefix ;;
983 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
984 prefix=$ac_optarg ;;
986 -program-prefix | --program-prefix | --program-prefi | --program-pref \
987 | --program-pre | --program-pr | --program-p)
988 ac_prev=program_prefix ;;
989 -program-prefix=* | --program-prefix=* | --program-prefi=* \
990 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
991 program_prefix=$ac_optarg ;;
993 -program-suffix | --program-suffix | --program-suffi | --program-suff \
994 | --program-suf | --program-su | --program-s)
995 ac_prev=program_suffix ;;
996 -program-suffix=* | --program-suffix=* | --program-suffi=* \
997 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
998 program_suffix=$ac_optarg ;;
1000 -program-transform-name | --program-transform-name \
1001 | --program-transform-nam | --program-transform-na \
1002 | --program-transform-n | --program-transform- \
1003 | --program-transform | --program-transfor \
1004 | --program-transfo | --program-transf \
1005 | --program-trans | --program-tran \
1006 | --progr-tra | --program-tr | --program-t)
1007 ac_prev=program_transform_name ;;
1008 -program-transform-name=* | --program-transform-name=* \
1009 | --program-transform-nam=* | --program-transform-na=* \
1010 | --program-transform-n=* | --program-transform-=* \
1011 | --program-transform=* | --program-transfor=* \
1012 | --program-transfo=* | --program-transf=* \
1013 | --program-trans=* | --program-tran=* \
1014 | --progr-tra=* | --program-tr=* | --program-t=*)
1015 program_transform_name=$ac_optarg ;;
1017 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1018 ac_prev=pdfdir ;;
1019 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1020 pdfdir=$ac_optarg ;;
1022 -psdir | --psdir | --psdi | --psd | --ps)
1023 ac_prev=psdir ;;
1024 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1025 psdir=$ac_optarg ;;
1027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1028 | -silent | --silent | --silen | --sile | --sil)
1029 silent=yes ;;
1031 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1032 ac_prev=sbindir ;;
1033 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1034 | --sbi=* | --sb=*)
1035 sbindir=$ac_optarg ;;
1037 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1038 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1039 | --sharedst | --shareds | --shared | --share | --shar \
1040 | --sha | --sh)
1041 ac_prev=sharedstatedir ;;
1042 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1043 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1044 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1045 | --sha=* | --sh=*)
1046 sharedstatedir=$ac_optarg ;;
1048 -site | --site | --sit)
1049 ac_prev=site ;;
1050 -site=* | --site=* | --sit=*)
1051 site=$ac_optarg ;;
1053 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1054 ac_prev=srcdir ;;
1055 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1056 srcdir=$ac_optarg ;;
1058 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1059 | --syscon | --sysco | --sysc | --sys | --sy)
1060 ac_prev=sysconfdir ;;
1061 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1062 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1063 sysconfdir=$ac_optarg ;;
1065 -target | --target | --targe | --targ | --tar | --ta | --t)
1066 ac_prev=target_alias ;;
1067 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1068 target_alias=$ac_optarg ;;
1070 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1071 verbose=yes ;;
1073 -version | --version | --versio | --versi | --vers | -V)
1074 ac_init_version=: ;;
1076 -with-* | --with-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error $? "invalid package name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "with_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval with_$ac_useropt=\$ac_optarg ;;
1092 -without-* | --without-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error $? "invalid package name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1101 "with_$ac_useropt"
1102 "*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval with_$ac_useropt=no ;;
1108 --x)
1109 # Obsolete; use --with-x.
1110 with_x=yes ;;
1112 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1113 | --x-incl | --x-inc | --x-in | --x-i)
1114 ac_prev=x_includes ;;
1115 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1116 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1117 x_includes=$ac_optarg ;;
1119 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1120 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1121 ac_prev=x_libraries ;;
1122 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1123 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1124 x_libraries=$ac_optarg ;;
1126 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1127 Try \`$0 --help' for more information"
1130 *=*)
1131 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1132 # Reject names that are not valid shell variable names.
1133 case $ac_envvar in #(
1134 '' | [0-9]* | *[!_$as_cr_alnum]* )
1135 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1136 esac
1137 eval $ac_envvar=\$ac_optarg
1138 export $ac_envvar ;;
1141 # FIXME: should be removed in autoconf 3.0.
1142 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1143 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1144 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1145 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1148 esac
1149 done
1151 if test -n "$ac_prev"; then
1152 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1153 as_fn_error $? "missing argument to $ac_option"
1156 if test -n "$ac_unrecognized_opts"; then
1157 case $enable_option_checking in
1158 no) ;;
1159 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1160 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1161 esac
1164 # Check all directory arguments for consistency.
1165 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1166 datadir sysconfdir sharedstatedir localstatedir includedir \
1167 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1168 libdir localedir mandir
1170 eval ac_val=\$$ac_var
1171 # Remove trailing slashes.
1172 case $ac_val in
1173 */ )
1174 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1175 eval $ac_var=\$ac_val;;
1176 esac
1177 # Be sure to have absolute directory names.
1178 case $ac_val in
1179 [\\/$]* | ?:[\\/]* ) continue;;
1180 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1181 esac
1182 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1183 done
1185 # There might be people who depend on the old broken behavior: `$host'
1186 # used to hold the argument of --host etc.
1187 # FIXME: To remove some day.
1188 build=$build_alias
1189 host=$host_alias
1190 target=$target_alias
1192 # FIXME: To remove some day.
1193 if test "x$host_alias" != x; then
1194 if test "x$build_alias" = x; then
1195 cross_compiling=maybe
1196 elif test "x$build_alias" != "x$host_alias"; then
1197 cross_compiling=yes
1201 ac_tool_prefix=
1202 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1204 test "$silent" = yes && exec 6>/dev/null
1207 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1208 ac_ls_di=`ls -di .` &&
1209 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1210 as_fn_error $? "working directory cannot be determined"
1211 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1212 as_fn_error $? "pwd does not report name of working directory"
1215 # Find the source files, if location was not specified.
1216 if test -z "$srcdir"; then
1217 ac_srcdir_defaulted=yes
1218 # Try the directory containing this script, then the parent directory.
1219 ac_confdir=`$as_dirname -- "$as_myself" ||
1220 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1221 X"$as_myself" : 'X\(//\)[^/]' \| \
1222 X"$as_myself" : 'X\(//\)$' \| \
1223 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1224 $as_echo X"$as_myself" |
1225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1226 s//\1/
1229 /^X\(\/\/\)[^/].*/{
1230 s//\1/
1233 /^X\(\/\/\)$/{
1234 s//\1/
1237 /^X\(\/\).*/{
1238 s//\1/
1241 s/.*/./; q'`
1242 srcdir=$ac_confdir
1243 if test ! -r "$srcdir/$ac_unique_file"; then
1244 srcdir=..
1246 else
1247 ac_srcdir_defaulted=no
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1250 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1251 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1253 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1254 ac_abs_confdir=`(
1255 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1256 pwd)`
1257 # When building in place, set srcdir=.
1258 if test "$ac_abs_confdir" = "$ac_pwd"; then
1259 srcdir=.
1261 # Remove unnecessary trailing slashes from srcdir.
1262 # Double slashes in file names in object file debugging info
1263 # mess up M-x gdb in Emacs.
1264 case $srcdir in
1265 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266 esac
1267 for ac_var in $ac_precious_vars; do
1268 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_env_${ac_var}_value=\$${ac_var}
1270 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1272 done
1275 # Report the --help message.
1277 if test "$ac_init_help" = "long"; then
1278 # Omit some internal or obsolete options to make the list less imposing.
1279 # This message is too long to be a string in the A/UX 3.1 sh.
1280 cat <<_ACEOF
1281 \`configure' configures this package to adapt to many kinds of systems.
1283 Usage: $0 [OPTION]... [VAR=VALUE]...
1285 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1286 VAR=VALUE. See below for descriptions of some of the useful variables.
1288 Defaults for the options are specified in brackets.
1290 Configuration:
1291 -h, --help display this help and exit
1292 --help=short display options specific to this package
1293 --help=recursive display the short help of all the included packages
1294 -V, --version display version information and exit
1295 -q, --quiet, --silent do not print \`checking ...' messages
1296 --cache-file=FILE cache test results in FILE [disabled]
1297 -C, --config-cache alias for \`--cache-file=config.cache'
1298 -n, --no-create do not create output files
1299 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1301 Installation directories:
1302 --prefix=PREFIX install architecture-independent files in PREFIX
1303 [$ac_default_prefix]
1304 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1305 [PREFIX]
1307 By default, \`make install' will install all the files in
1308 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1309 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1310 for instance \`--prefix=\$HOME'.
1312 For better control, use the options below.
1314 Fine tuning of the installation directories:
1315 --bindir=DIR user executables [EPREFIX/bin]
1316 --sbindir=DIR system admin executables [EPREFIX/sbin]
1317 --libexecdir=DIR program executables [EPREFIX/libexec]
1318 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1319 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1320 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1321 --libdir=DIR object code libraries [EPREFIX/lib]
1322 --includedir=DIR C header files [PREFIX/include]
1323 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1324 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1325 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1326 --infodir=DIR info documentation [DATAROOTDIR/info]
1327 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1328 --mandir=DIR man documentation [DATAROOTDIR/man]
1329 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1330 --htmldir=DIR html documentation [DOCDIR]
1331 --dvidir=DIR dvi documentation [DOCDIR]
1332 --pdfdir=DIR pdf documentation [DOCDIR]
1333 --psdir=DIR ps documentation [DOCDIR]
1334 _ACEOF
1336 cat <<\_ACEOF
1338 System types:
1339 --build=BUILD configure for building on BUILD [guessed]
1340 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1341 _ACEOF
1344 if test -n "$ac_init_help"; then
1346 cat <<\_ACEOF
1348 Optional Features:
1349 --disable-option-checking ignore unrecognized --enable/--with options
1350 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1351 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1352 --disable-nls do not use Native Language Support
1353 --disable-rpath do not hardcode runtime library paths
1354 --enable-maintainer-mode enable rules only needed by maintainers
1355 --enable-host-shared build host code as shared libraries
1357 Optional Packages:
1358 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1359 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1360 --with-gnu-ld assume the C compiler uses GNU ld default=no
1361 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1362 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1363 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1364 --with-included-gettext use the GNU gettext library included here
1365 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1366 --without-libintl-prefix don't search for libintl in includedir and libdir
1367 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1369 Some influential environment variables:
1370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
1374 LIBS libraries to pass to the linker, e.g. -l<library>
1375 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1376 you have headers in a nonstandard directory <include dir>
1377 CPP C preprocessor
1379 Use these variables to override the choices made by `configure' or to help
1380 it to find libraries and programs with nonstandard names/locations.
1382 Report bugs to the package provider.
1383 _ACEOF
1384 ac_status=$?
1387 if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390 test -d "$ac_dir" ||
1391 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1392 continue
1393 ac_builddir=.
1395 case "$ac_dir" in
1396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1399 # A ".." for each directory in $ac_dir_suffix.
1400 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1401 case $ac_top_builddir_sub in
1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 esac ;;
1405 esac
1406 ac_abs_top_builddir=$ac_pwd
1407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408 # for backward compatibility:
1409 ac_top_builddir=$ac_top_build_prefix
1411 case $srcdir in
1412 .) # We are building in place.
1413 ac_srcdir=.
1414 ac_top_srcdir=$ac_top_builddir_sub
1415 ac_abs_top_srcdir=$ac_pwd ;;
1416 [\\/]* | ?:[\\/]* ) # Absolute name.
1417 ac_srcdir=$srcdir$ac_dir_suffix;
1418 ac_top_srcdir=$srcdir
1419 ac_abs_top_srcdir=$srcdir ;;
1420 *) # Relative name.
1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422 ac_top_srcdir=$ac_top_build_prefix$srcdir
1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424 esac
1425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1427 cd "$ac_dir" || { ac_status=$?; continue; }
1428 # Check for guested configure.
1429 if test -f "$ac_srcdir/configure.gnu"; then
1430 echo &&
1431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432 elif test -f "$ac_srcdir/configure"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure" --help=recursive
1435 else
1436 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437 fi || ac_status=$?
1438 cd "$ac_pwd" || { ac_status=$?; break; }
1439 done
1442 test -n "$ac_init_help" && exit $ac_status
1443 if $ac_init_version; then
1444 cat <<\_ACEOF
1445 configure
1446 generated by GNU Autoconf 2.69
1448 Copyright (C) 2012 Free Software Foundation, Inc.
1449 This configure script is free software; the Free Software Foundation
1450 gives unlimited permission to copy, distribute and modify it.
1451 _ACEOF
1452 exit
1455 ## ------------------------ ##
1456 ## Autoconf initialization. ##
1457 ## ------------------------ ##
1459 # ac_fn_c_try_compile LINENO
1460 # --------------------------
1461 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1462 ac_fn_c_try_compile ()
1464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1465 rm -f conftest.$ac_objext
1466 if { { ac_try="$ac_compile"
1467 case "(($ac_try" in
1468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1469 *) ac_try_echo=$ac_try;;
1470 esac
1471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1472 $as_echo "$ac_try_echo"; } >&5
1473 (eval "$ac_compile") 2>conftest.err
1474 ac_status=$?
1475 if test -s conftest.err; then
1476 grep -v '^ *+' conftest.err >conftest.er1
1477 cat conftest.er1 >&5
1478 mv -f conftest.er1 conftest.err
1480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1481 test $ac_status = 0; } && {
1482 test -z "$ac_c_werror_flag" ||
1483 test ! -s conftest.err
1484 } && test -s conftest.$ac_objext; then :
1485 ac_retval=0
1486 else
1487 $as_echo "$as_me: failed program was:" >&5
1488 sed 's/^/| /' conftest.$ac_ext >&5
1490 ac_retval=1
1492 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1493 as_fn_set_status $ac_retval
1495 } # ac_fn_c_try_compile
1497 # ac_fn_c_try_cpp LINENO
1498 # ----------------------
1499 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1500 ac_fn_c_try_cpp ()
1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503 if { { ac_try="$ac_cpp conftest.$ac_ext"
1504 case "(($ac_try" in
1505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1506 *) ac_try_echo=$ac_try;;
1507 esac
1508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1509 $as_echo "$ac_try_echo"; } >&5
1510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1511 ac_status=$?
1512 if test -s conftest.err; then
1513 grep -v '^ *+' conftest.err >conftest.er1
1514 cat conftest.er1 >&5
1515 mv -f conftest.er1 conftest.err
1517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518 test $ac_status = 0; } > conftest.i && {
1519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1520 test ! -s conftest.err
1521 }; then :
1522 ac_retval=0
1523 else
1524 $as_echo "$as_me: failed program was:" >&5
1525 sed 's/^/| /' conftest.$ac_ext >&5
1527 ac_retval=1
1529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1530 as_fn_set_status $ac_retval
1532 } # ac_fn_c_try_cpp
1534 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1535 # -------------------------------------------------------
1536 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1537 # the include files in INCLUDES and setting the cache variable VAR
1538 # accordingly.
1539 ac_fn_c_check_header_mongrel ()
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 if eval \${$3+:} false; then :
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1544 $as_echo_n "checking for $2... " >&6; }
1545 if eval \${$3+:} false; then :
1546 $as_echo_n "(cached) " >&6
1548 eval ac_res=\$$3
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1550 $as_echo "$ac_res" >&6; }
1551 else
1552 # Is the header compilable?
1553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1554 $as_echo_n "checking $2 usability... " >&6; }
1555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1556 /* end confdefs.h. */
1558 #include <$2>
1559 _ACEOF
1560 if ac_fn_c_try_compile "$LINENO"; then :
1561 ac_header_compiler=yes
1562 else
1563 ac_header_compiler=no
1565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1567 $as_echo "$ac_header_compiler" >&6; }
1569 # Is the header present?
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1571 $as_echo_n "checking $2 presence... " >&6; }
1572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1573 /* end confdefs.h. */
1574 #include <$2>
1575 _ACEOF
1576 if ac_fn_c_try_cpp "$LINENO"; then :
1577 ac_header_preproc=yes
1578 else
1579 ac_header_preproc=no
1581 rm -f conftest.err conftest.i conftest.$ac_ext
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1583 $as_echo "$ac_header_preproc" >&6; }
1585 # So? What about this header?
1586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1587 yes:no: )
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1589 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1591 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1593 no:yes:* )
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1595 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1597 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1599 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1601 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1603 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1605 esac
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607 $as_echo_n "checking for $2... " >&6; }
1608 if eval \${$3+:} false; then :
1609 $as_echo_n "(cached) " >&6
1610 else
1611 eval "$3=\$ac_header_compiler"
1613 eval ac_res=\$$3
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1615 $as_echo "$ac_res" >&6; }
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 } # ac_fn_c_check_header_mongrel
1621 # ac_fn_c_try_run LINENO
1622 # ----------------------
1623 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1624 # that executables *can* be run.
1625 ac_fn_c_try_run ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 if { { ac_try="$ac_link"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_link") 2>&5
1636 ac_status=$?
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1639 { { case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_try") 2>&5
1646 ac_status=$?
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; }; }; then :
1649 ac_retval=0
1650 else
1651 $as_echo "$as_me: program exited with status $ac_status" >&5
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1655 ac_retval=$ac_status
1657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1661 } # ac_fn_c_try_run
1663 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664 # -------------------------------------------------------
1665 # Tests whether HEADER exists and can be compiled using the include files in
1666 # INCLUDES, setting the cache variable VAR accordingly.
1667 ac_fn_c_check_header_compile ()
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673 $as_echo_n "(cached) " >&6
1674 else
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1678 #include <$2>
1679 _ACEOF
1680 if ac_fn_c_try_compile "$LINENO"; then :
1681 eval "$3=yes"
1682 else
1683 eval "$3=no"
1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687 eval ac_res=\$$3
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 } # ac_fn_c_check_header_compile
1694 # ac_fn_c_try_link LINENO
1695 # -----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_c_try_link ()
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 rm -f conftest.$ac_objext conftest$ac_exeext
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && {
1717 test -z "$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 } && test -s conftest$ac_exeext && {
1720 test "$cross_compiling" = yes ||
1721 test -x conftest$ac_exeext
1722 }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1728 ac_retval=1
1730 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732 # interfere with the next link command; also delete a directory that is
1733 # left behind by Apple's compiler. We do this before executing the actions.
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1738 } # ac_fn_c_try_link
1740 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1741 # -------------------------------------------
1742 # Tests whether TYPE exists after having included INCLUDES, setting cache
1743 # variable VAR accordingly.
1744 ac_fn_c_check_type ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750 $as_echo_n "(cached) " >&6
1751 else
1752 eval "$3=no"
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1757 main ()
1759 if (sizeof ($2))
1760 return 0;
1762 return 0;
1764 _ACEOF
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1770 main ()
1772 if (sizeof (($2)))
1773 return 0;
1775 return 0;
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"; then :
1780 else
1781 eval "$3=yes"
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787 eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 } # ac_fn_c_check_type
1794 # ac_fn_c_check_func LINENO FUNC VAR
1795 # ----------------------------------
1796 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1797 ac_fn_c_check_func ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803 $as_echo_n "(cached) " >&6
1804 else
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1809 #define $2 innocuous_$2
1811 /* System header to define __stub macros and hopefully few prototypes,
1812 which can conflict with char $2 (); below.
1813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814 <limits.h> exists even on freestanding compilers. */
1816 #ifdef __STDC__
1817 # include <limits.h>
1818 #else
1819 # include <assert.h>
1820 #endif
1822 #undef $2
1824 /* Override any GCC internal prototype to avoid an error.
1825 Use char because int might match the return type of a GCC
1826 builtin and then its argument prototype would still apply. */
1827 #ifdef __cplusplus
1828 extern "C"
1829 #endif
1830 char $2 ();
1831 /* The GNU C library defines this for functions which it implements
1832 to always fail with ENOSYS. Some functions are actually named
1833 something starting with __ and the normal name is an alias. */
1834 #if defined __stub_$2 || defined __stub___$2
1835 choke me
1836 #endif
1839 main ()
1841 return $2 ();
1843 return 0;
1845 _ACEOF
1846 if ac_fn_c_try_link "$LINENO"; then :
1847 eval "$3=yes"
1848 else
1849 eval "$3=no"
1851 rm -f core conftest.err conftest.$ac_objext \
1852 conftest$ac_exeext conftest.$ac_ext
1854 eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 } # ac_fn_c_check_func
1860 cat >config.log <<_ACEOF
1861 This file contains any messages produced by compilers while
1862 running configure, to aid debugging if configure makes a mistake.
1864 It was created by $as_me, which was
1865 generated by GNU Autoconf 2.69. Invocation command line was
1867 $ $0 $@
1869 _ACEOF
1870 exec 5>>config.log
1872 cat <<_ASUNAME
1873 ## --------- ##
1874 ## Platform. ##
1875 ## --------- ##
1877 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1878 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1879 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1880 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1881 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1883 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1884 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1886 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1887 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1888 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1889 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1890 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1891 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1892 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1894 _ASUNAME
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1899 IFS=$as_save_IFS
1900 test -z "$as_dir" && as_dir=.
1901 $as_echo "PATH: $as_dir"
1902 done
1903 IFS=$as_save_IFS
1905 } >&5
1907 cat >&5 <<_ACEOF
1910 ## ----------- ##
1911 ## Core tests. ##
1912 ## ----------- ##
1914 _ACEOF
1917 # Keep a trace of the command line.
1918 # Strip out --no-create and --no-recursion so they do not pile up.
1919 # Strip out --silent because we don't want to record it for future runs.
1920 # Also quote any args containing shell meta-characters.
1921 # Make two passes to allow for proper duplicate-argument suppression.
1922 ac_configure_args=
1923 ac_configure_args0=
1924 ac_configure_args1=
1925 ac_must_keep_next=false
1926 for ac_pass in 1 2
1928 for ac_arg
1930 case $ac_arg in
1931 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1933 | -silent | --silent | --silen | --sile | --sil)
1934 continue ;;
1935 *\'*)
1936 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1937 esac
1938 case $ac_pass in
1939 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1941 as_fn_append ac_configure_args1 " '$ac_arg'"
1942 if test $ac_must_keep_next = true; then
1943 ac_must_keep_next=false # Got value, back to normal.
1944 else
1945 case $ac_arg in
1946 *=* | --config-cache | -C | -disable-* | --disable-* \
1947 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1948 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1949 | -with-* | --with-* | -without-* | --without-* | --x)
1950 case "$ac_configure_args0 " in
1951 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1952 esac
1954 -* ) ac_must_keep_next=true ;;
1955 esac
1957 as_fn_append ac_configure_args " '$ac_arg'"
1959 esac
1960 done
1961 done
1962 { ac_configure_args0=; unset ac_configure_args0;}
1963 { ac_configure_args1=; unset ac_configure_args1;}
1965 # When interrupted or exit'd, cleanup temporary files, and complete
1966 # config.log. We remove comments because anyway the quotes in there
1967 # would cause problems or look ugly.
1968 # WARNING: Use '\'' to represent an apostrophe within the trap.
1969 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1970 trap 'exit_status=$?
1971 # Save into config.log some information that might help in debugging.
1973 echo
1975 $as_echo "## ---------------- ##
1976 ## Cache variables. ##
1977 ## ---------------- ##"
1978 echo
1979 # The following way of writing the cache mishandles newlines in values,
1981 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1982 eval ac_val=\$$ac_var
1983 case $ac_val in #(
1984 *${as_nl}*)
1985 case $ac_var in #(
1986 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1987 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1988 esac
1989 case $ac_var in #(
1990 _ | IFS | as_nl) ;; #(
1991 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1992 *) { eval $ac_var=; unset $ac_var;} ;;
1993 esac ;;
1994 esac
1995 done
1996 (set) 2>&1 |
1997 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1998 *${as_nl}ac_space=\ *)
1999 sed -n \
2000 "s/'\''/'\''\\\\'\'''\''/g;
2001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2002 ;; #(
2004 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2006 esac |
2007 sort
2009 echo
2011 $as_echo "## ----------------- ##
2012 ## Output variables. ##
2013 ## ----------------- ##"
2014 echo
2015 for ac_var in $ac_subst_vars
2017 eval ac_val=\$$ac_var
2018 case $ac_val in
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020 esac
2021 $as_echo "$ac_var='\''$ac_val'\''"
2022 done | sort
2023 echo
2025 if test -n "$ac_subst_files"; then
2026 $as_echo "## ------------------- ##
2027 ## File substitutions. ##
2028 ## ------------------- ##"
2029 echo
2030 for ac_var in $ac_subst_files
2032 eval ac_val=\$$ac_var
2033 case $ac_val in
2034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2035 esac
2036 $as_echo "$ac_var='\''$ac_val'\''"
2037 done | sort
2038 echo
2041 if test -s confdefs.h; then
2042 $as_echo "## ----------- ##
2043 ## confdefs.h. ##
2044 ## ----------- ##"
2045 echo
2046 cat confdefs.h
2047 echo
2049 test "$ac_signal" != 0 &&
2050 $as_echo "$as_me: caught signal $ac_signal"
2051 $as_echo "$as_me: exit $exit_status"
2052 } >&5
2053 rm -f core *.core core.conftest.* &&
2054 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2055 exit $exit_status
2057 for ac_signal in 1 2 13 15; do
2058 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2059 done
2060 ac_signal=0
2062 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2063 rm -f -r conftest* confdefs.h
2065 $as_echo "/* confdefs.h */" > confdefs.h
2067 # Predefined preprocessor variables.
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_NAME "$PACKAGE_NAME"
2071 _ACEOF
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2075 _ACEOF
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2079 _ACEOF
2081 cat >>confdefs.h <<_ACEOF
2082 #define PACKAGE_STRING "$PACKAGE_STRING"
2083 _ACEOF
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2087 _ACEOF
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_URL "$PACKAGE_URL"
2091 _ACEOF
2094 # Let the site file select an alternate cache file if it wants to.
2095 # Prefer an explicitly selected file to automatically selected ones.
2096 ac_site_file1=NONE
2097 ac_site_file2=NONE
2098 if test -n "$CONFIG_SITE"; then
2099 # We do not want a PATH search for config.site.
2100 case $CONFIG_SITE in #((
2101 -*) ac_site_file1=./$CONFIG_SITE;;
2102 */*) ac_site_file1=$CONFIG_SITE;;
2103 *) ac_site_file1=./$CONFIG_SITE;;
2104 esac
2105 elif test "x$prefix" != xNONE; then
2106 ac_site_file1=$prefix/share/config.site
2107 ac_site_file2=$prefix/etc/config.site
2108 else
2109 ac_site_file1=$ac_default_prefix/share/config.site
2110 ac_site_file2=$ac_default_prefix/etc/config.site
2112 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2114 test "x$ac_site_file" = xNONE && continue
2115 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2117 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2118 sed 's/^/| /' "$ac_site_file" >&5
2119 . "$ac_site_file" \
2120 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2122 as_fn_error $? "failed to load site script $ac_site_file
2123 See \`config.log' for more details" "$LINENO" 5; }
2125 done
2127 if test -r "$cache_file"; then
2128 # Some versions of bash will fail to source /dev/null (special files
2129 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2130 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2132 $as_echo "$as_me: loading cache $cache_file" >&6;}
2133 case $cache_file in
2134 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2135 *) . "./$cache_file";;
2136 esac
2138 else
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2140 $as_echo "$as_me: creating cache $cache_file" >&6;}
2141 >$cache_file
2144 as_fn_append ac_header_list " stdlib.h"
2145 as_fn_append ac_header_list " unistd.h"
2146 as_fn_append ac_header_list " sys/param.h"
2147 # Check that the precious variables saved in the cache have kept the same
2148 # value.
2149 ac_cache_corrupted=false
2150 for ac_var in $ac_precious_vars; do
2151 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2152 eval ac_new_set=\$ac_env_${ac_var}_set
2153 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2154 eval ac_new_val=\$ac_env_${ac_var}_value
2155 case $ac_old_set,$ac_new_set in
2156 set,)
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2158 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2159 ac_cache_corrupted=: ;;
2160 ,set)
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2162 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2163 ac_cache_corrupted=: ;;
2164 ,);;
2166 if test "x$ac_old_val" != "x$ac_new_val"; then
2167 # differences in whitespace do not lead to failure.
2168 ac_old_val_w=`echo x $ac_old_val`
2169 ac_new_val_w=`echo x $ac_new_val`
2170 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2172 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2173 ac_cache_corrupted=:
2174 else
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2176 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2177 eval $ac_var=\$ac_old_val
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2180 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2182 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2183 fi;;
2184 esac
2185 # Pass precious variables to config.status.
2186 if test "$ac_new_set" = set; then
2187 case $ac_new_val in
2188 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2189 *) ac_arg=$ac_var=$ac_new_val ;;
2190 esac
2191 case " $ac_configure_args " in
2192 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2193 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2194 esac
2196 done
2197 if $ac_cache_corrupted; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2201 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2202 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2204 ## -------------------- ##
2205 ## Main body of script. ##
2206 ## -------------------- ##
2208 ac_ext=c
2209 ac_cpp='$CPP $CPPFLAGS'
2210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2218 ac_ext=c
2219 ac_cpp='$CPP $CPPFLAGS'
2220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2223 if test -n "$ac_tool_prefix"; then
2224 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2225 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2227 $as_echo_n "checking for $ac_word... " >&6; }
2228 if ${ac_cv_prog_CC+:} false; then :
2229 $as_echo_n "(cached) " >&6
2230 else
2231 if test -n "$CC"; then
2232 ac_cv_prog_CC="$CC" # Let the user override the test.
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2237 IFS=$as_save_IFS
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2243 break 2
2245 done
2246 done
2247 IFS=$as_save_IFS
2251 CC=$ac_cv_prog_CC
2252 if test -n "$CC"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2254 $as_echo "$CC" >&6; }
2255 else
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2257 $as_echo "no" >&6; }
2262 if test -z "$ac_cv_prog_CC"; then
2263 ac_ct_CC=$CC
2264 # Extract the first word of "gcc", so it can be a program name with args.
2265 set dummy gcc; ac_word=$2
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2267 $as_echo_n "checking for $ac_word... " >&6; }
2268 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2269 $as_echo_n "(cached) " >&6
2270 else
2271 if test -n "$ac_ct_CC"; then
2272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2273 else
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 for as_dir in $PATH
2277 IFS=$as_save_IFS
2278 test -z "$as_dir" && as_dir=.
2279 for ac_exec_ext in '' $ac_executable_extensions; do
2280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2281 ac_cv_prog_ac_ct_CC="gcc"
2282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2283 break 2
2285 done
2286 done
2287 IFS=$as_save_IFS
2291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2292 if test -n "$ac_ct_CC"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2294 $as_echo "$ac_ct_CC" >&6; }
2295 else
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2297 $as_echo "no" >&6; }
2300 if test "x$ac_ct_CC" = x; then
2301 CC=""
2302 else
2303 case $cross_compiling:$ac_tool_warned in
2304 yes:)
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2307 ac_tool_warned=yes ;;
2308 esac
2309 CC=$ac_ct_CC
2311 else
2312 CC="$ac_cv_prog_CC"
2315 if test -z "$CC"; then
2316 if test -n "$ac_tool_prefix"; then
2317 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2318 set dummy ${ac_tool_prefix}cc; ac_word=$2
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2320 $as_echo_n "checking for $ac_word... " >&6; }
2321 if ${ac_cv_prog_CC+:} false; then :
2322 $as_echo_n "(cached) " >&6
2323 else
2324 if test -n "$CC"; then
2325 ac_cv_prog_CC="$CC" # Let the user override the test.
2326 else
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2330 IFS=$as_save_IFS
2331 test -z "$as_dir" && as_dir=.
2332 for ac_exec_ext in '' $ac_executable_extensions; do
2333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2334 ac_cv_prog_CC="${ac_tool_prefix}cc"
2335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 break 2
2338 done
2339 done
2340 IFS=$as_save_IFS
2344 CC=$ac_cv_prog_CC
2345 if test -n "$CC"; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2347 $as_echo "$CC" >&6; }
2348 else
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2350 $as_echo "no" >&6; }
2356 if test -z "$CC"; then
2357 # Extract the first word of "cc", so it can be a program name with args.
2358 set dummy cc; ac_word=$2
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2360 $as_echo_n "checking for $ac_word... " >&6; }
2361 if ${ac_cv_prog_CC+:} false; then :
2362 $as_echo_n "(cached) " >&6
2363 else
2364 if test -n "$CC"; then
2365 ac_cv_prog_CC="$CC" # Let the user override the test.
2366 else
2367 ac_prog_rejected=no
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2376 ac_prog_rejected=yes
2377 continue
2379 ac_cv_prog_CC="cc"
2380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 break 2
2383 done
2384 done
2385 IFS=$as_save_IFS
2387 if test $ac_prog_rejected = yes; then
2388 # We found a bogon in the path, so make sure we never use it.
2389 set dummy $ac_cv_prog_CC
2390 shift
2391 if test $# != 0; then
2392 # We chose a different compiler from the bogus one.
2393 # However, it has the same basename, so the bogon will be chosen
2394 # first if we set CC to just the basename; use the full file name.
2395 shift
2396 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2401 CC=$ac_cv_prog_CC
2402 if test -n "$CC"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2404 $as_echo "$CC" >&6; }
2405 else
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2407 $as_echo "no" >&6; }
2412 if test -z "$CC"; then
2413 if test -n "$ac_tool_prefix"; then
2414 for ac_prog in cl.exe
2416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419 $as_echo_n "checking for $ac_word... " >&6; }
2420 if ${ac_cv_prog_CC+:} false; then :
2421 $as_echo_n "(cached) " >&6
2422 else
2423 if test -n "$CC"; then
2424 ac_cv_prog_CC="$CC" # Let the user override the test.
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2433 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 break 2
2437 done
2438 done
2439 IFS=$as_save_IFS
2443 CC=$ac_cv_prog_CC
2444 if test -n "$CC"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2446 $as_echo "$CC" >&6; }
2447 else
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449 $as_echo "no" >&6; }
2453 test -n "$CC" && break
2454 done
2456 if test -z "$CC"; then
2457 ac_ct_CC=$CC
2458 for ac_prog in cl.exe
2460 # Extract the first word of "$ac_prog", so it can be a program name with args.
2461 set dummy $ac_prog; ac_word=$2
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463 $as_echo_n "checking for $ac_word... " >&6; }
2464 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 if test -n "$ac_ct_CC"; then
2468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2477 ac_cv_prog_ac_ct_CC="$ac_prog"
2478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2481 done
2482 done
2483 IFS=$as_save_IFS
2487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2488 if test -n "$ac_ct_CC"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2490 $as_echo "$ac_ct_CC" >&6; }
2491 else
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493 $as_echo "no" >&6; }
2497 test -n "$ac_ct_CC" && break
2498 done
2500 if test "x$ac_ct_CC" = x; then
2501 CC=""
2502 else
2503 case $cross_compiling:$ac_tool_warned in
2504 yes:)
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2507 ac_tool_warned=yes ;;
2508 esac
2509 CC=$ac_ct_CC
2516 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2518 as_fn_error $? "no acceptable C compiler found in \$PATH
2519 See \`config.log' for more details" "$LINENO" 5; }
2521 # Provide some information about the compiler.
2522 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2523 set X $ac_compile
2524 ac_compiler=$2
2525 for ac_option in --version -v -V -qversion; do
2526 { { ac_try="$ac_compiler $ac_option >&5"
2527 case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2530 esac
2531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2532 $as_echo "$ac_try_echo"; } >&5
2533 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2534 ac_status=$?
2535 if test -s conftest.err; then
2536 sed '10a\
2537 ... rest of stderr output deleted ...
2538 10q' conftest.err >conftest.er1
2539 cat conftest.er1 >&5
2541 rm -f conftest.er1 conftest.err
2542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2543 test $ac_status = 0; }
2544 done
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h. */
2550 main ()
2554 return 0;
2556 _ACEOF
2557 ac_clean_files_save=$ac_clean_files
2558 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2559 # Try to create an executable without -o first, disregard a.out.
2560 # It will help us diagnose broken compilers, and finding out an intuition
2561 # of exeext.
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2563 $as_echo_n "checking whether the C compiler works... " >&6; }
2564 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2566 # The possible output files:
2567 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2569 ac_rmfiles=
2570 for ac_file in $ac_files
2572 case $ac_file in
2573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2574 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2575 esac
2576 done
2577 rm -f $ac_rmfiles
2579 if { { ac_try="$ac_link_default"
2580 case "(($ac_try" in
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2583 esac
2584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2585 $as_echo "$ac_try_echo"; } >&5
2586 (eval "$ac_link_default") 2>&5
2587 ac_status=$?
2588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2589 test $ac_status = 0; }; then :
2590 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2591 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2592 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2593 # so that the user can short-circuit this test for compilers unknown to
2594 # Autoconf.
2595 for ac_file in $ac_files ''
2597 test -f "$ac_file" || continue
2598 case $ac_file in
2599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2601 [ab].out )
2602 # We found the default executable, but exeext='' is most
2603 # certainly right.
2604 break;;
2605 *.* )
2606 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2607 then :; else
2608 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2610 # We set ac_cv_exeext here because the later test for it is not
2611 # safe: cross compilers may not add the suffix if given an `-o'
2612 # argument, so we may need to know it at that point already.
2613 # Even if this section looks crufty: it has the advantage of
2614 # actually working.
2615 break;;
2617 break;;
2618 esac
2619 done
2620 test "$ac_cv_exeext" = no && ac_cv_exeext=
2622 else
2623 ac_file=''
2625 if test -z "$ac_file"; then :
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2628 $as_echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2633 as_fn_error 77 "C compiler cannot create executables
2634 See \`config.log' for more details" "$LINENO" 5; }
2635 else
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2637 $as_echo "yes" >&6; }
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2640 $as_echo_n "checking for C compiler default output file name... " >&6; }
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2642 $as_echo "$ac_file" >&6; }
2643 ac_exeext=$ac_cv_exeext
2645 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2646 ac_clean_files=$ac_clean_files_save
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2648 $as_echo_n "checking for suffix of executables... " >&6; }
2649 if { { ac_try="$ac_link"
2650 case "(($ac_try" in
2651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652 *) ac_try_echo=$ac_try;;
2653 esac
2654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2655 $as_echo "$ac_try_echo"; } >&5
2656 (eval "$ac_link") 2>&5
2657 ac_status=$?
2658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2659 test $ac_status = 0; }; then :
2660 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2661 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2662 # work properly (i.e., refer to `conftest.exe'), while it won't with
2663 # `rm'.
2664 for ac_file in conftest.exe conftest conftest.*; do
2665 test -f "$ac_file" || continue
2666 case $ac_file in
2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2668 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2669 break;;
2670 * ) break;;
2671 esac
2672 done
2673 else
2674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2677 See \`config.log' for more details" "$LINENO" 5; }
2679 rm -f conftest conftest$ac_cv_exeext
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2681 $as_echo "$ac_cv_exeext" >&6; }
2683 rm -f conftest.$ac_ext
2684 EXEEXT=$ac_cv_exeext
2685 ac_exeext=$EXEEXT
2686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2687 /* end confdefs.h. */
2688 #include <stdio.h>
2690 main ()
2692 FILE *f = fopen ("conftest.out", "w");
2693 return ferror (f) || fclose (f) != 0;
2696 return 0;
2698 _ACEOF
2699 ac_clean_files="$ac_clean_files conftest.out"
2700 # Check that the compiler produces executables we can run. If not, either
2701 # the compiler is broken, or we cross compile.
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2703 $as_echo_n "checking whether we are cross compiling... " >&6; }
2704 if test "$cross_compiling" != yes; then
2705 { { ac_try="$ac_link"
2706 case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709 esac
2710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2711 $as_echo "$ac_try_echo"; } >&5
2712 (eval "$ac_link") 2>&5
2713 ac_status=$?
2714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2715 test $ac_status = 0; }
2716 if { ac_try='./conftest$ac_cv_exeext'
2717 { { case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720 esac
2721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2722 $as_echo "$ac_try_echo"; } >&5
2723 (eval "$ac_try") 2>&5
2724 ac_status=$?
2725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2726 test $ac_status = 0; }; }; then
2727 cross_compiling=no
2728 else
2729 if test "$cross_compiling" = maybe; then
2730 cross_compiling=yes
2731 else
2732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2734 as_fn_error $? "cannot run C compiled programs.
2735 If you meant to cross compile, use \`--host'.
2736 See \`config.log' for more details" "$LINENO" 5; }
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2741 $as_echo "$cross_compiling" >&6; }
2743 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2744 ac_clean_files=$ac_clean_files_save
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2746 $as_echo_n "checking for suffix of object files... " >&6; }
2747 if ${ac_cv_objext+:} false; then :
2748 $as_echo_n "(cached) " >&6
2749 else
2750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2751 /* end confdefs.h. */
2754 main ()
2758 return 0;
2760 _ACEOF
2761 rm -f conftest.o conftest.obj
2762 if { { ac_try="$ac_compile"
2763 case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766 esac
2767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2768 $as_echo "$ac_try_echo"; } >&5
2769 (eval "$ac_compile") 2>&5
2770 ac_status=$?
2771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2772 test $ac_status = 0; }; then :
2773 for ac_file in conftest.o conftest.obj conftest.*; do
2774 test -f "$ac_file" || continue;
2775 case $ac_file in
2776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2777 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2778 break;;
2779 esac
2780 done
2781 else
2782 $as_echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2787 as_fn_error $? "cannot compute suffix of object files: cannot compile
2788 See \`config.log' for more details" "$LINENO" 5; }
2790 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2793 $as_echo "$ac_cv_objext" >&6; }
2794 OBJEXT=$ac_cv_objext
2795 ac_objext=$OBJEXT
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2797 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2798 if ${ac_cv_c_compiler_gnu+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800 else
2801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2802 /* end confdefs.h. */
2805 main ()
2807 #ifndef __GNUC__
2808 choke me
2809 #endif
2812 return 0;
2814 _ACEOF
2815 if ac_fn_c_try_compile "$LINENO"; then :
2816 ac_compiler_gnu=yes
2817 else
2818 ac_compiler_gnu=no
2820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2821 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2825 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2826 if test $ac_compiler_gnu = yes; then
2827 GCC=yes
2828 else
2829 GCC=
2831 ac_test_CFLAGS=${CFLAGS+set}
2832 ac_save_CFLAGS=$CFLAGS
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2834 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2835 if ${ac_cv_prog_cc_g+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 ac_save_c_werror_flag=$ac_c_werror_flag
2839 ac_c_werror_flag=yes
2840 ac_cv_prog_cc_g=no
2841 CFLAGS="-g"
2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h. */
2846 main ()
2850 return 0;
2852 _ACEOF
2853 if ac_fn_c_try_compile "$LINENO"; then :
2854 ac_cv_prog_cc_g=yes
2855 else
2856 CFLAGS=""
2857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2858 /* end confdefs.h. */
2861 main ()
2865 return 0;
2867 _ACEOF
2868 if ac_fn_c_try_compile "$LINENO"; then :
2870 else
2871 ac_c_werror_flag=$ac_save_c_werror_flag
2872 CFLAGS="-g"
2873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2874 /* end confdefs.h. */
2877 main ()
2881 return 0;
2883 _ACEOF
2884 if ac_fn_c_try_compile "$LINENO"; then :
2885 ac_cv_prog_cc_g=yes
2887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892 ac_c_werror_flag=$ac_save_c_werror_flag
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2895 $as_echo "$ac_cv_prog_cc_g" >&6; }
2896 if test "$ac_test_CFLAGS" = set; then
2897 CFLAGS=$ac_save_CFLAGS
2898 elif test $ac_cv_prog_cc_g = yes; then
2899 if test "$GCC" = yes; then
2900 CFLAGS="-g -O2"
2901 else
2902 CFLAGS="-g"
2904 else
2905 if test "$GCC" = yes; then
2906 CFLAGS="-O2"
2907 else
2908 CFLAGS=
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2912 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2913 if ${ac_cv_prog_cc_c89+:} false; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 ac_cv_prog_cc_c89=no
2917 ac_save_CC=$CC
2918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2919 /* end confdefs.h. */
2920 #include <stdarg.h>
2921 #include <stdio.h>
2922 struct stat;
2923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2924 struct buf { int x; };
2925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2926 static char *e (p, i)
2927 char **p;
2928 int i;
2930 return p[i];
2932 static char *f (char * (*g) (char **, int), char **p, ...)
2934 char *s;
2935 va_list v;
2936 va_start (v,p);
2937 s = g (p, va_arg (v,int));
2938 va_end (v);
2939 return s;
2942 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2943 function prototypes and stuff, but not '\xHH' hex character constants.
2944 These don't provoke an error unfortunately, instead are silently treated
2945 as 'x'. The following induces an error, until -std is added to get
2946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2947 array size at least. It's necessary to write '\x00'==0 to get something
2948 that's true only with -std. */
2949 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2951 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2952 inside strings and character constants. */
2953 #define FOO(x) 'x'
2954 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2956 int test (int i, double x);
2957 struct s1 {int (*f) (int a);};
2958 struct s2 {int (*f) (double a);};
2959 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2960 int argc;
2961 char **argv;
2963 main ()
2965 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2967 return 0;
2969 _ACEOF
2970 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2973 CC="$ac_save_CC $ac_arg"
2974 if ac_fn_c_try_compile "$LINENO"; then :
2975 ac_cv_prog_cc_c89=$ac_arg
2977 rm -f core conftest.err conftest.$ac_objext
2978 test "x$ac_cv_prog_cc_c89" != "xno" && break
2979 done
2980 rm -f conftest.$ac_ext
2981 CC=$ac_save_CC
2984 # AC_CACHE_VAL
2985 case "x$ac_cv_prog_cc_c89" in
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2988 $as_echo "none needed" >&6; } ;;
2989 xno)
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2991 $as_echo "unsupported" >&6; } ;;
2993 CC="$CC $ac_cv_prog_cc_c89"
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2995 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2996 esac
2997 if test "x$ac_cv_prog_cc_c89" != xno; then :
3001 ac_ext=c
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 ac_ext=c
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3014 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3015 # On Suns, sometimes $CPP names a directory.
3016 if test -n "$CPP" && test -d "$CPP"; then
3017 CPP=
3019 if test -z "$CPP"; then
3020 if ${ac_cv_prog_CPP+:} false; then :
3021 $as_echo_n "(cached) " >&6
3022 else
3023 # Double quotes because CPP needs to be expanded
3024 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3026 ac_preproc_ok=false
3027 for ac_c_preproc_warn_flag in '' yes
3029 # Use a header file that comes with gcc, so configuring glibc
3030 # with a fresh cross-compiler works.
3031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3032 # <limits.h> exists even on freestanding compilers.
3033 # On the NeXT, cc -E runs the code through the compiler's parser,
3034 # not just through cpp. "Syntax error" is here to catch this case.
3035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036 /* end confdefs.h. */
3037 #ifdef __STDC__
3038 # include <limits.h>
3039 #else
3040 # include <assert.h>
3041 #endif
3042 Syntax error
3043 _ACEOF
3044 if ac_fn_c_try_cpp "$LINENO"; then :
3046 else
3047 # Broken: fails on valid input.
3048 continue
3050 rm -f conftest.err conftest.i conftest.$ac_ext
3052 # OK, works on sane cases. Now check whether nonexistent headers
3053 # can be detected and how.
3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3056 #include <ac_nonexistent.h>
3057 _ACEOF
3058 if ac_fn_c_try_cpp "$LINENO"; then :
3059 # Broken: success on invalid input.
3060 continue
3061 else
3062 # Passes both tests.
3063 ac_preproc_ok=:
3064 break
3066 rm -f conftest.err conftest.i conftest.$ac_ext
3068 done
3069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3070 rm -f conftest.i conftest.err conftest.$ac_ext
3071 if $ac_preproc_ok; then :
3072 break
3075 done
3076 ac_cv_prog_CPP=$CPP
3079 CPP=$ac_cv_prog_CPP
3080 else
3081 ac_cv_prog_CPP=$CPP
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3084 $as_echo "$CPP" >&6; }
3085 ac_preproc_ok=false
3086 for ac_c_preproc_warn_flag in '' yes
3088 # Use a header file that comes with gcc, so configuring glibc
3089 # with a fresh cross-compiler works.
3090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3091 # <limits.h> exists even on freestanding compilers.
3092 # On the NeXT, cc -E runs the code through the compiler's parser,
3093 # not just through cpp. "Syntax error" is here to catch this case.
3094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095 /* end confdefs.h. */
3096 #ifdef __STDC__
3097 # include <limits.h>
3098 #else
3099 # include <assert.h>
3100 #endif
3101 Syntax error
3102 _ACEOF
3103 if ac_fn_c_try_cpp "$LINENO"; then :
3105 else
3106 # Broken: fails on valid input.
3107 continue
3109 rm -f conftest.err conftest.i conftest.$ac_ext
3111 # OK, works on sane cases. Now check whether nonexistent headers
3112 # can be detected and how.
3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114 /* end confdefs.h. */
3115 #include <ac_nonexistent.h>
3116 _ACEOF
3117 if ac_fn_c_try_cpp "$LINENO"; then :
3118 # Broken: success on invalid input.
3119 continue
3120 else
3121 # Passes both tests.
3122 ac_preproc_ok=:
3123 break
3125 rm -f conftest.err conftest.i conftest.$ac_ext
3127 done
3128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3129 rm -f conftest.i conftest.err conftest.$ac_ext
3130 if $ac_preproc_ok; then :
3132 else
3133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3136 See \`config.log' for more details" "$LINENO" 5; }
3139 ac_ext=c
3140 ac_cpp='$CPP $CPPFLAGS'
3141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3147 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3148 if ${ac_cv_path_GREP+:} false; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 if test -z "$GREP"; then
3152 ac_path_GREP_found=false
3153 # Loop through the user's path and test for each of PROGNAME-LIST
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_prog in grep ggrep; do
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3162 as_fn_executable_p "$ac_path_GREP" || continue
3163 # Check for GNU ac_path_GREP and select it if it is found.
3164 # Check for GNU $ac_path_GREP
3165 case `"$ac_path_GREP" --version 2>&1` in
3166 *GNU*)
3167 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3169 ac_count=0
3170 $as_echo_n 0123456789 >"conftest.in"
3171 while :
3173 cat "conftest.in" "conftest.in" >"conftest.tmp"
3174 mv "conftest.tmp" "conftest.in"
3175 cp "conftest.in" "conftest.nl"
3176 $as_echo 'GREP' >> "conftest.nl"
3177 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3179 as_fn_arith $ac_count + 1 && ac_count=$as_val
3180 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3181 # Best one so far, save it but keep looking for a better one
3182 ac_cv_path_GREP="$ac_path_GREP"
3183 ac_path_GREP_max=$ac_count
3185 # 10*(2^10) chars as input seems more than enough
3186 test $ac_count -gt 10 && break
3187 done
3188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3189 esac
3191 $ac_path_GREP_found && break 3
3192 done
3193 done
3194 done
3195 IFS=$as_save_IFS
3196 if test -z "$ac_cv_path_GREP"; then
3197 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3199 else
3200 ac_cv_path_GREP=$GREP
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3205 $as_echo "$ac_cv_path_GREP" >&6; }
3206 GREP="$ac_cv_path_GREP"
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3210 $as_echo_n "checking for egrep... " >&6; }
3211 if ${ac_cv_path_EGREP+:} false; then :
3212 $as_echo_n "(cached) " >&6
3213 else
3214 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3215 then ac_cv_path_EGREP="$GREP -E"
3216 else
3217 if test -z "$EGREP"; then
3218 ac_path_EGREP_found=false
3219 # Loop through the user's path and test for each of PROGNAME-LIST
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
3225 for ac_prog in egrep; do
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3228 as_fn_executable_p "$ac_path_EGREP" || continue
3229 # Check for GNU ac_path_EGREP and select it if it is found.
3230 # Check for GNU $ac_path_EGREP
3231 case `"$ac_path_EGREP" --version 2>&1` in
3232 *GNU*)
3233 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3235 ac_count=0
3236 $as_echo_n 0123456789 >"conftest.in"
3237 while :
3239 cat "conftest.in" "conftest.in" >"conftest.tmp"
3240 mv "conftest.tmp" "conftest.in"
3241 cp "conftest.in" "conftest.nl"
3242 $as_echo 'EGREP' >> "conftest.nl"
3243 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3245 as_fn_arith $ac_count + 1 && ac_count=$as_val
3246 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3247 # Best one so far, save it but keep looking for a better one
3248 ac_cv_path_EGREP="$ac_path_EGREP"
3249 ac_path_EGREP_max=$ac_count
3251 # 10*(2^10) chars as input seems more than enough
3252 test $ac_count -gt 10 && break
3253 done
3254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3255 esac
3257 $ac_path_EGREP_found && break 3
3258 done
3259 done
3260 done
3261 IFS=$as_save_IFS
3262 if test -z "$ac_cv_path_EGREP"; then
3263 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3265 else
3266 ac_cv_path_EGREP=$EGREP
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3272 $as_echo "$ac_cv_path_EGREP" >&6; }
3273 EGREP="$ac_cv_path_EGREP"
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3277 $as_echo_n "checking for ANSI C header files... " >&6; }
3278 if ${ac_cv_header_stdc+:} false; then :
3279 $as_echo_n "(cached) " >&6
3280 else
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3283 #include <stdlib.h>
3284 #include <stdarg.h>
3285 #include <string.h>
3286 #include <float.h>
3289 main ()
3293 return 0;
3295 _ACEOF
3296 if ac_fn_c_try_compile "$LINENO"; then :
3297 ac_cv_header_stdc=yes
3298 else
3299 ac_cv_header_stdc=no
3301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 if test $ac_cv_header_stdc = yes; then
3304 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3307 #include <string.h>
3309 _ACEOF
3310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3311 $EGREP "memchr" >/dev/null 2>&1; then :
3313 else
3314 ac_cv_header_stdc=no
3316 rm -f conftest*
3320 if test $ac_cv_header_stdc = yes; then
3321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3324 #include <stdlib.h>
3326 _ACEOF
3327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3328 $EGREP "free" >/dev/null 2>&1; then :
3330 else
3331 ac_cv_header_stdc=no
3333 rm -f conftest*
3337 if test $ac_cv_header_stdc = yes; then
3338 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3339 if test "$cross_compiling" = yes; then :
3341 else
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3344 #include <ctype.h>
3345 #include <stdlib.h>
3346 #if ((' ' & 0x0FF) == 0x020)
3347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3349 #else
3350 # define ISLOWER(c) \
3351 (('a' <= (c) && (c) <= 'i') \
3352 || ('j' <= (c) && (c) <= 'r') \
3353 || ('s' <= (c) && (c) <= 'z'))
3354 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3355 #endif
3357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3359 main ()
3361 int i;
3362 for (i = 0; i < 256; i++)
3363 if (XOR (islower (i), ISLOWER (i))
3364 || toupper (i) != TOUPPER (i))
3365 return 2;
3366 return 0;
3368 _ACEOF
3369 if ac_fn_c_try_run "$LINENO"; then :
3371 else
3372 ac_cv_header_stdc=no
3374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3375 conftest.$ac_objext conftest.beam conftest.$ac_ext
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3381 $as_echo "$ac_cv_header_stdc" >&6; }
3382 if test $ac_cv_header_stdc = yes; then
3384 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3388 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3389 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3390 inttypes.h stdint.h unistd.h
3391 do :
3392 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3393 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3395 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3396 cat >>confdefs.h <<_ACEOF
3397 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3398 _ACEOF
3402 done
3406 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3407 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3408 MINIX=yes
3409 else
3410 MINIX=
3414 if test "$MINIX" = yes; then
3416 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3419 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3422 $as_echo "#define _MINIX 1" >>confdefs.h
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3428 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3429 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3435 # define __EXTENSIONS__ 1
3436 $ac_includes_default
3438 main ()
3442 return 0;
3444 _ACEOF
3445 if ac_fn_c_try_compile "$LINENO"; then :
3446 ac_cv_safe_to_define___extensions__=yes
3447 else
3448 ac_cv_safe_to_define___extensions__=no
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3453 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3454 test $ac_cv_safe_to_define___extensions__ = yes &&
3455 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3457 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3459 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3461 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3463 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3467 ac_config_headers="$ac_config_headers config.h"
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3472 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3473 set x ${MAKE-make}
3474 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3475 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 cat >conftest.make <<\_ACEOF
3479 SHELL = /bin/sh
3480 all:
3481 @echo '@@@%%%=$(MAKE)=@@@%%%'
3482 _ACEOF
3483 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3484 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3485 *@@@%%%=?*=@@@%%%*)
3486 eval ac_cv_prog_make_${ac_make}_set=yes;;
3488 eval ac_cv_prog_make_${ac_make}_set=no;;
3489 esac
3490 rm -f conftest.make
3492 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3494 $as_echo "yes" >&6; }
3495 SET_MAKE=
3496 else
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 $as_echo "no" >&6; }
3499 SET_MAKE="MAKE=${MAKE-make}"
3502 ac_aux_dir=
3503 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3504 if test -f "$ac_dir/install-sh"; then
3505 ac_aux_dir=$ac_dir
3506 ac_install_sh="$ac_aux_dir/install-sh -c"
3507 break
3508 elif test -f "$ac_dir/install.sh"; then
3509 ac_aux_dir=$ac_dir
3510 ac_install_sh="$ac_aux_dir/install.sh -c"
3511 break
3512 elif test -f "$ac_dir/shtool"; then
3513 ac_aux_dir=$ac_dir
3514 ac_install_sh="$ac_aux_dir/shtool install -c"
3515 break
3517 done
3518 if test -z "$ac_aux_dir"; then
3519 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3522 # These three variables are undocumented and unsupported,
3523 # and are intended to be withdrawn in a future Autoconf release.
3524 # They can cause serious problems if a builder's source tree is in a directory
3525 # whose full name contains unusual characters.
3526 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3527 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3528 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3531 # Find a good install program. We prefer a C program (faster),
3532 # so one script is as good as another. But avoid the broken or
3533 # incompatible versions:
3534 # SysV /etc/install, /usr/sbin/install
3535 # SunOS /usr/etc/install
3536 # IRIX /sbin/install
3537 # AIX /bin/install
3538 # AmigaOS /C/install, which installs bootblocks on floppy discs
3539 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3542 # OS/2's system install, which has a completely different semantic
3543 # ./install, which can be erroneously created by make from ./install.sh.
3544 # Reject install programs that cannot install multiple files.
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3546 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3547 if test -z "$INSTALL"; then
3548 if ${ac_cv_path_install+:} false; then :
3549 $as_echo_n "(cached) " >&6
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3554 IFS=$as_save_IFS
3555 test -z "$as_dir" && as_dir=.
3556 # Account for people who put trailing slashes in PATH elements.
3557 case $as_dir/ in #((
3558 ./ | .// | /[cC]/* | \
3559 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3560 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3561 /usr/ucb/* ) ;;
3563 # OSF1 and SCO ODT 3.0 have their own names for install.
3564 # Don't use installbsd from OSF since it installs stuff as root
3565 # by default.
3566 for ac_prog in ginstall scoinst install; do
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3569 if test $ac_prog = install &&
3570 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3571 # AIX install. It has an incompatible calling convention.
3573 elif test $ac_prog = install &&
3574 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3575 # program-specific install script used by HP pwplus--don't use.
3577 else
3578 rm -rf conftest.one conftest.two conftest.dir
3579 echo one > conftest.one
3580 echo two > conftest.two
3581 mkdir conftest.dir
3582 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3583 test -s conftest.one && test -s conftest.two &&
3584 test -s conftest.dir/conftest.one &&
3585 test -s conftest.dir/conftest.two
3586 then
3587 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3588 break 3
3592 done
3593 done
3595 esac
3597 done
3598 IFS=$as_save_IFS
3600 rm -rf conftest.one conftest.two conftest.dir
3603 if test "${ac_cv_path_install+set}" = set; then
3604 INSTALL=$ac_cv_path_install
3605 else
3606 # As a last resort, use the slow shell script. Don't cache a
3607 # value for INSTALL within a source directory, because that will
3608 # break other packages using the cache if that directory is
3609 # removed, or if the value is a relative name.
3610 INSTALL=$ac_install_sh
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3614 $as_echo "$INSTALL" >&6; }
3616 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3617 # It thinks the first close brace ends the variable substitution.
3618 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3620 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3622 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3625 MKINSTALLDIRS=
3626 if test -n "$ac_aux_dir"; then
3627 case "$ac_aux_dir" in
3628 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3629 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3630 esac
3632 if test -z "$MKINSTALLDIRS"; then
3633 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3639 $as_echo_n "checking whether NLS is requested... " >&6; }
3640 # Check whether --enable-nls was given.
3641 if test "${enable_nls+set}" = set; then :
3642 enableval=$enable_nls; USE_NLS=$enableval
3643 else
3644 USE_NLS=yes
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3648 $as_echo "$USE_NLS" >&6; }
3655 # Prepare PATH_SEPARATOR.
3656 # The user is always right.
3657 if test "${PATH_SEPARATOR+set}" != set; then
3658 echo "#! /bin/sh" >conf$$.sh
3659 echo "exit 0" >>conf$$.sh
3660 chmod +x conf$$.sh
3661 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3662 PATH_SEPARATOR=';'
3663 else
3664 PATH_SEPARATOR=:
3666 rm -f conf$$.sh
3669 # Find out how to test for executable files. Don't use a zero-byte file,
3670 # as systems may use methods other than mode bits to determine executability.
3671 cat >conf$$.file <<_ASEOF
3672 #! /bin/sh
3673 exit 0
3674 _ASEOF
3675 chmod +x conf$$.file
3676 if test -x conf$$.file >/dev/null 2>&1; then
3677 ac_executable_p="test -x"
3678 else
3679 ac_executable_p="test -f"
3681 rm -f conf$$.file
3683 # Extract the first word of "msgfmt", so it can be a program name with args.
3684 set dummy msgfmt; ac_word=$2
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686 $as_echo_n "checking for $ac_word... " >&6; }
3687 if ${ac_cv_path_MSGFMT+:} false; then :
3688 $as_echo_n "(cached) " >&6
3689 else
3690 case "$MSGFMT" in
3691 [\\/]* | ?:[\\/]*)
3692 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3695 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3696 for ac_dir in $PATH; do
3697 IFS="$ac_save_IFS"
3698 test -z "$ac_dir" && ac_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3701 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3702 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3703 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3704 break 2
3707 done
3708 done
3709 IFS="$ac_save_IFS"
3710 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3712 esac
3714 MSGFMT="$ac_cv_path_MSGFMT"
3715 if test "$MSGFMT" != ":"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3717 $as_echo "$MSGFMT" >&6; }
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3723 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3724 set dummy gmsgfmt; ac_word=$2
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726 $as_echo_n "checking for $ac_word... " >&6; }
3727 if ${ac_cv_path_GMSGFMT+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 case $GMSGFMT in
3731 [\\/]* | ?:[\\/]*)
3732 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3742 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 break 2
3746 done
3747 done
3748 IFS=$as_save_IFS
3750 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3752 esac
3754 GMSGFMT=$ac_cv_path_GMSGFMT
3755 if test -n "$GMSGFMT"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3757 $as_echo "$GMSGFMT" >&6; }
3758 else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3766 # Prepare PATH_SEPARATOR.
3767 # The user is always right.
3768 if test "${PATH_SEPARATOR+set}" != set; then
3769 echo "#! /bin/sh" >conf$$.sh
3770 echo "exit 0" >>conf$$.sh
3771 chmod +x conf$$.sh
3772 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3773 PATH_SEPARATOR=';'
3774 else
3775 PATH_SEPARATOR=:
3777 rm -f conf$$.sh
3780 # Find out how to test for executable files. Don't use a zero-byte file,
3781 # as systems may use methods other than mode bits to determine executability.
3782 cat >conf$$.file <<_ASEOF
3783 #! /bin/sh
3784 exit 0
3785 _ASEOF
3786 chmod +x conf$$.file
3787 if test -x conf$$.file >/dev/null 2>&1; then
3788 ac_executable_p="test -x"
3789 else
3790 ac_executable_p="test -f"
3792 rm -f conf$$.file
3794 # Extract the first word of "xgettext", so it can be a program name with args.
3795 set dummy xgettext; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if ${ac_cv_path_XGETTEXT+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 case "$XGETTEXT" in
3802 [\\/]* | ?:[\\/]*)
3803 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3806 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3807 for ac_dir in $PATH; do
3808 IFS="$ac_save_IFS"
3809 test -z "$ac_dir" && ac_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3812 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3813 (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
3814 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3815 break 2
3818 done
3819 done
3820 IFS="$ac_save_IFS"
3821 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3823 esac
3825 XGETTEXT="$ac_cv_path_XGETTEXT"
3826 if test "$XGETTEXT" != ":"; then
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3828 $as_echo "$XGETTEXT" >&6; }
3829 else
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831 $as_echo "no" >&6; }
3834 rm -f messages.po
3837 # Prepare PATH_SEPARATOR.
3838 # The user is always right.
3839 if test "${PATH_SEPARATOR+set}" != set; then
3840 echo "#! /bin/sh" >conf$$.sh
3841 echo "exit 0" >>conf$$.sh
3842 chmod +x conf$$.sh
3843 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3844 PATH_SEPARATOR=';'
3845 else
3846 PATH_SEPARATOR=:
3848 rm -f conf$$.sh
3851 # Find out how to test for executable files. Don't use a zero-byte file,
3852 # as systems may use methods other than mode bits to determine executability.
3853 cat >conf$$.file <<_ASEOF
3854 #! /bin/sh
3855 exit 0
3856 _ASEOF
3857 chmod +x conf$$.file
3858 if test -x conf$$.file >/dev/null 2>&1; then
3859 ac_executable_p="test -x"
3860 else
3861 ac_executable_p="test -f"
3863 rm -f conf$$.file
3865 # Extract the first word of "msgmerge", so it can be a program name with args.
3866 set dummy msgmerge; ac_word=$2
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868 $as_echo_n "checking for $ac_word... " >&6; }
3869 if ${ac_cv_path_MSGMERGE+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 case "$MSGMERGE" in
3873 [\\/]* | ?:[\\/]*)
3874 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3877 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3878 for ac_dir in $PATH; do
3879 IFS="$ac_save_IFS"
3880 test -z "$ac_dir" && ac_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3883 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3884 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3885 break 2
3888 done
3889 done
3890 IFS="$ac_save_IFS"
3891 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3893 esac
3895 MSGMERGE="$ac_cv_path_MSGMERGE"
3896 if test "$MSGMERGE" != ":"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3898 $as_echo "$MSGMERGE" >&6; }
3899 else
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3905 if test "$GMSGFMT" != ":"; then
3906 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3907 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3909 else
3910 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3912 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3913 GMSGFMT=":"
3917 if test "$XGETTEXT" != ":"; then
3918 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3919 (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
3921 else
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
3923 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
3924 XGETTEXT=":"
3926 rm -f messages.po
3929 ac_config_commands="$ac_config_commands default-1"
3932 # Make sure we can run config.sub.
3933 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3934 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3937 $as_echo_n "checking build system type... " >&6; }
3938 if ${ac_cv_build+:} false; then :
3939 $as_echo_n "(cached) " >&6
3940 else
3941 ac_build_alias=$build_alias
3942 test "x$ac_build_alias" = x &&
3943 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3944 test "x$ac_build_alias" = x &&
3945 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3946 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3947 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3951 $as_echo "$ac_cv_build" >&6; }
3952 case $ac_cv_build in
3953 *-*-*) ;;
3954 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3955 esac
3956 build=$ac_cv_build
3957 ac_save_IFS=$IFS; IFS='-'
3958 set x $ac_cv_build
3959 shift
3960 build_cpu=$1
3961 build_vendor=$2
3962 shift; shift
3963 # Remember, the first character of IFS is used to create $*,
3964 # except with old shells:
3965 build_os=$*
3966 IFS=$ac_save_IFS
3967 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3971 $as_echo_n "checking host system type... " >&6; }
3972 if ${ac_cv_host+:} false; then :
3973 $as_echo_n "(cached) " >&6
3974 else
3975 if test "x$host_alias" = x; then
3976 ac_cv_host=$ac_cv_build
3977 else
3978 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3979 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3984 $as_echo "$ac_cv_host" >&6; }
3985 case $ac_cv_host in
3986 *-*-*) ;;
3987 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3988 esac
3989 host=$ac_cv_host
3990 ac_save_IFS=$IFS; IFS='-'
3991 set x $ac_cv_host
3992 shift
3993 host_cpu=$1
3994 host_vendor=$2
3995 shift; shift
3996 # Remember, the first character of IFS is used to create $*,
3997 # except with old shells:
3998 host_os=$*
3999 IFS=$ac_save_IFS
4000 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4003 if test -n "$ac_tool_prefix"; then
4004 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4005 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if ${ac_cv_prog_RANLIB+:} false; then :
4009 $as_echo_n "(cached) " >&6
4010 else
4011 if test -n "$RANLIB"; then
4012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4025 done
4026 done
4027 IFS=$as_save_IFS
4031 RANLIB=$ac_cv_prog_RANLIB
4032 if test -n "$RANLIB"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4034 $as_echo "$RANLIB" >&6; }
4035 else
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4042 if test -z "$ac_cv_prog_RANLIB"; then
4043 ac_ct_RANLIB=$RANLIB
4044 # Extract the first word of "ranlib", so it can be a program name with args.
4045 set dummy ranlib; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 if test -n "$ac_ct_RANLIB"; then
4052 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4053 else
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_ac_ct_RANLIB="ranlib"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 break 2
4065 done
4066 done
4067 IFS=$as_save_IFS
4071 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4072 if test -n "$ac_ct_RANLIB"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4074 $as_echo "$ac_ct_RANLIB" >&6; }
4075 else
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4080 if test "x$ac_ct_RANLIB" = x; then
4081 RANLIB=":"
4082 else
4083 case $cross_compiling:$ac_tool_warned in
4084 yes:)
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4087 ac_tool_warned=yes ;;
4088 esac
4089 RANLIB=$ac_ct_RANLIB
4091 else
4092 RANLIB="$ac_cv_prog_RANLIB"
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4096 $as_echo_n "checking for library containing strerror... " >&6; }
4097 if ${ac_cv_search_strerror+:} false; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 ac_func_search_save_LIBS=$LIBS
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4104 /* Override any GCC internal prototype to avoid an error.
4105 Use char because int might match the return type of a GCC
4106 builtin and then its argument prototype would still apply. */
4107 #ifdef __cplusplus
4108 extern "C"
4109 #endif
4110 char strerror ();
4112 main ()
4114 return strerror ();
4116 return 0;
4118 _ACEOF
4119 for ac_lib in '' cposix; do
4120 if test -z "$ac_lib"; then
4121 ac_res="none required"
4122 else
4123 ac_res=-l$ac_lib
4124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4126 if ac_fn_c_try_link "$LINENO"; then :
4127 ac_cv_search_strerror=$ac_res
4129 rm -f core conftest.err conftest.$ac_objext \
4130 conftest$ac_exeext
4131 if ${ac_cv_search_strerror+:} false; then :
4132 break
4134 done
4135 if ${ac_cv_search_strerror+:} false; then :
4137 else
4138 ac_cv_search_strerror=no
4140 rm conftest.$ac_ext
4141 LIBS=$ac_func_search_save_LIBS
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4144 $as_echo "$ac_cv_search_strerror" >&6; }
4145 ac_res=$ac_cv_search_strerror
4146 if test "$ac_res" != no; then :
4147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4152 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4153 if ${ac_cv_c_const+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4160 main ()
4163 #ifndef __cplusplus
4164 /* Ultrix mips cc rejects this sort of thing. */
4165 typedef int charset[2];
4166 const charset cs = { 0, 0 };
4167 /* SunOS 4.1.1 cc rejects this. */
4168 char const *const *pcpcc;
4169 char **ppc;
4170 /* NEC SVR4.0.2 mips cc rejects this. */
4171 struct point {int x, y;};
4172 static struct point const zero = {0,0};
4173 /* AIX XL C 1.02.0.0 rejects this.
4174 It does not let you subtract one const X* pointer from another in
4175 an arm of an if-expression whose if-part is not a constant
4176 expression */
4177 const char *g = "string";
4178 pcpcc = &g + (g ? g-g : 0);
4179 /* HPUX 7.0 cc rejects these. */
4180 ++pcpcc;
4181 ppc = (char**) pcpcc;
4182 pcpcc = (char const *const *) ppc;
4183 { /* SCO 3.2v4 cc rejects this sort of thing. */
4184 char tx;
4185 char *t = &tx;
4186 char const *s = 0 ? (char *) 0 : (char const *) 0;
4188 *t++ = 0;
4189 if (s) return 0;
4191 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4192 int x[] = {25, 17};
4193 const int *foo = &x[0];
4194 ++foo;
4196 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4197 typedef const int *iptr;
4198 iptr p = 0;
4199 ++p;
4201 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4202 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4203 struct s { int j; const int *ap[3]; } bx;
4204 struct s *b = &bx; b->j = 5;
4206 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4207 const int foo = 10;
4208 if (!foo) return 0;
4210 return !cs[0] && !zero.x;
4211 #endif
4214 return 0;
4216 _ACEOF
4217 if ac_fn_c_try_compile "$LINENO"; then :
4218 ac_cv_c_const=yes
4219 else
4220 ac_cv_c_const=no
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4225 $as_echo "$ac_cv_c_const" >&6; }
4226 if test $ac_cv_c_const = no; then
4228 $as_echo "#define const /**/" >>confdefs.h
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4233 $as_echo_n "checking for inline... " >&6; }
4234 if ${ac_cv_c_inline+:} false; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 ac_cv_c_inline=no
4238 for ac_kw in inline __inline__ __inline; do
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 #ifndef __cplusplus
4242 typedef int foo_t;
4243 static $ac_kw foo_t static_foo () {return 0; }
4244 $ac_kw foo_t foo () {return 0; }
4245 #endif
4247 _ACEOF
4248 if ac_fn_c_try_compile "$LINENO"; then :
4249 ac_cv_c_inline=$ac_kw
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252 test "$ac_cv_c_inline" != no && break
4253 done
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4257 $as_echo "$ac_cv_c_inline" >&6; }
4259 case $ac_cv_c_inline in
4260 inline | yes) ;;
4262 case $ac_cv_c_inline in
4263 no) ac_val=;;
4264 *) ac_val=$ac_cv_c_inline;;
4265 esac
4266 cat >>confdefs.h <<_ACEOF
4267 #ifndef __cplusplus
4268 #define inline $ac_val
4269 #endif
4270 _ACEOF
4272 esac
4274 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4275 if test "x$ac_cv_type_off_t" = xyes; then :
4277 else
4279 cat >>confdefs.h <<_ACEOF
4280 #define off_t long int
4281 _ACEOF
4285 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4286 if test "x$ac_cv_type_size_t" = xyes; then :
4288 else
4290 cat >>confdefs.h <<_ACEOF
4291 #define size_t unsigned int
4292 _ACEOF
4296 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4297 # for constant arguments. Useless!
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4299 $as_echo_n "checking for working alloca.h... " >&6; }
4300 if ${ac_cv_working_alloca_h+:} false; then :
4301 $as_echo_n "(cached) " >&6
4302 else
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4305 #include <alloca.h>
4307 main ()
4309 char *p = (char *) alloca (2 * sizeof (int));
4310 if (p) return 0;
4312 return 0;
4314 _ACEOF
4315 if ac_fn_c_try_link "$LINENO"; then :
4316 ac_cv_working_alloca_h=yes
4317 else
4318 ac_cv_working_alloca_h=no
4320 rm -f core conftest.err conftest.$ac_objext \
4321 conftest$ac_exeext conftest.$ac_ext
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4324 $as_echo "$ac_cv_working_alloca_h" >&6; }
4325 if test $ac_cv_working_alloca_h = yes; then
4327 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4332 $as_echo_n "checking for alloca... " >&6; }
4333 if ${ac_cv_func_alloca_works+:} false; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4338 #ifdef __GNUC__
4339 # define alloca __builtin_alloca
4340 #else
4341 # ifdef _MSC_VER
4342 # include <malloc.h>
4343 # define alloca _alloca
4344 # else
4345 # ifdef HAVE_ALLOCA_H
4346 # include <alloca.h>
4347 # else
4348 # ifdef _AIX
4349 #pragma alloca
4350 # else
4351 # ifndef alloca /* predefined by HP cc +Olibcalls */
4352 void *alloca (size_t);
4353 # endif
4354 # endif
4355 # endif
4356 # endif
4357 #endif
4360 main ()
4362 char *p = (char *) alloca (1);
4363 if (p) return 0;
4365 return 0;
4367 _ACEOF
4368 if ac_fn_c_try_link "$LINENO"; then :
4369 ac_cv_func_alloca_works=yes
4370 else
4371 ac_cv_func_alloca_works=no
4373 rm -f core conftest.err conftest.$ac_objext \
4374 conftest$ac_exeext conftest.$ac_ext
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4377 $as_echo "$ac_cv_func_alloca_works" >&6; }
4379 if test $ac_cv_func_alloca_works = yes; then
4381 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4383 else
4384 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4385 # that cause trouble. Some versions do not even contain alloca or
4386 # contain a buggy version. If you still want to use their alloca,
4387 # use ar to extract alloca.o from them instead of compiling alloca.c.
4389 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4391 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4395 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4396 if ${ac_cv_os_cray+:} false; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401 #if defined CRAY && ! defined CRAY2
4402 webecray
4403 #else
4404 wenotbecray
4405 #endif
4407 _ACEOF
4408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409 $EGREP "webecray" >/dev/null 2>&1; then :
4410 ac_cv_os_cray=yes
4411 else
4412 ac_cv_os_cray=no
4414 rm -f conftest*
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4418 $as_echo "$ac_cv_os_cray" >&6; }
4419 if test $ac_cv_os_cray = yes; then
4420 for ac_func in _getb67 GETB67 getb67; do
4421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4422 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4423 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4425 cat >>confdefs.h <<_ACEOF
4426 #define CRAY_STACKSEG_END $ac_func
4427 _ACEOF
4429 break
4432 done
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4436 $as_echo_n "checking stack direction for C alloca... " >&6; }
4437 if ${ac_cv_c_stack_direction+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if test "$cross_compiling" = yes; then :
4441 ac_cv_c_stack_direction=0
4442 else
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445 $ac_includes_default
4447 find_stack_direction (int *addr, int depth)
4449 int dir, dummy = 0;
4450 if (! addr)
4451 addr = &dummy;
4452 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
4453 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
4454 return dir + dummy;
4458 main (int argc, char **argv)
4460 return find_stack_direction (0, argc + !argv + 20) < 0;
4462 _ACEOF
4463 if ac_fn_c_try_run "$LINENO"; then :
4464 ac_cv_c_stack_direction=1
4465 else
4466 ac_cv_c_stack_direction=-1
4468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4469 conftest.$ac_objext conftest.beam conftest.$ac_ext
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4474 $as_echo "$ac_cv_c_stack_direction" >&6; }
4475 cat >>confdefs.h <<_ACEOF
4476 #define STACK_DIRECTION $ac_cv_c_stack_direction
4477 _ACEOF
4485 for ac_header in $ac_header_list
4486 do :
4487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4488 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4490 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4491 cat >>confdefs.h <<_ACEOF
4492 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4493 _ACEOF
4497 done
4506 for ac_func in getpagesize
4507 do :
4508 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4509 if test "x$ac_cv_func_getpagesize" = xyes; then :
4510 cat >>confdefs.h <<_ACEOF
4511 #define HAVE_GETPAGESIZE 1
4512 _ACEOF
4515 done
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4518 $as_echo_n "checking for working mmap... " >&6; }
4519 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 if test "$cross_compiling" = yes; then :
4523 ac_cv_func_mmap_fixed_mapped=no
4524 else
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4527 $ac_includes_default
4528 /* malloc might have been renamed as rpl_malloc. */
4529 #undef malloc
4531 /* Thanks to Mike Haertel and Jim Avera for this test.
4532 Here is a matrix of mmap possibilities:
4533 mmap private not fixed
4534 mmap private fixed at somewhere currently unmapped
4535 mmap private fixed at somewhere already mapped
4536 mmap shared not fixed
4537 mmap shared fixed at somewhere currently unmapped
4538 mmap shared fixed at somewhere already mapped
4539 For private mappings, we should verify that changes cannot be read()
4540 back from the file, nor mmap's back from the file at a different
4541 address. (There have been systems where private was not correctly
4542 implemented like the infamous i386 svr4.0, and systems where the
4543 VM page cache was not coherent with the file system buffer cache
4544 like early versions of FreeBSD and possibly contemporary NetBSD.)
4545 For shared mappings, we should conversely verify that changes get
4546 propagated back to all the places they're supposed to be.
4548 Grep wants private fixed already mapped.
4549 The main things grep needs to know about mmap are:
4550 * does it exist and is it safe to write into the mmap'd area
4551 * how to use it (BSD variants) */
4553 #include <fcntl.h>
4554 #include <sys/mman.h>
4556 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4557 char *malloc ();
4558 #endif
4560 /* This mess was copied from the GNU getpagesize.h. */
4561 #ifndef HAVE_GETPAGESIZE
4562 # ifdef _SC_PAGESIZE
4563 # define getpagesize() sysconf(_SC_PAGESIZE)
4564 # else /* no _SC_PAGESIZE */
4565 # ifdef HAVE_SYS_PARAM_H
4566 # include <sys/param.h>
4567 # ifdef EXEC_PAGESIZE
4568 # define getpagesize() EXEC_PAGESIZE
4569 # else /* no EXEC_PAGESIZE */
4570 # ifdef NBPG
4571 # define getpagesize() NBPG * CLSIZE
4572 # ifndef CLSIZE
4573 # define CLSIZE 1
4574 # endif /* no CLSIZE */
4575 # else /* no NBPG */
4576 # ifdef NBPC
4577 # define getpagesize() NBPC
4578 # else /* no NBPC */
4579 # ifdef PAGESIZE
4580 # define getpagesize() PAGESIZE
4581 # endif /* PAGESIZE */
4582 # endif /* no NBPC */
4583 # endif /* no NBPG */
4584 # endif /* no EXEC_PAGESIZE */
4585 # else /* no HAVE_SYS_PARAM_H */
4586 # define getpagesize() 8192 /* punt totally */
4587 # endif /* no HAVE_SYS_PARAM_H */
4588 # endif /* no _SC_PAGESIZE */
4590 #endif /* no HAVE_GETPAGESIZE */
4593 main ()
4595 char *data, *data2, *data3;
4596 const char *cdata2;
4597 int i, pagesize;
4598 int fd, fd2;
4600 pagesize = getpagesize ();
4602 /* First, make a file with some known garbage in it. */
4603 data = (char *) malloc (pagesize);
4604 if (!data)
4605 return 1;
4606 for (i = 0; i < pagesize; ++i)
4607 *(data + i) = rand ();
4608 umask (0);
4609 fd = creat ("conftest.mmap", 0600);
4610 if (fd < 0)
4611 return 2;
4612 if (write (fd, data, pagesize) != pagesize)
4613 return 3;
4614 close (fd);
4616 /* Next, check that the tail of a page is zero-filled. File must have
4617 non-zero length, otherwise we risk SIGBUS for entire page. */
4618 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4619 if (fd2 < 0)
4620 return 4;
4621 cdata2 = "";
4622 if (write (fd2, cdata2, 1) != 1)
4623 return 5;
4624 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4625 if (data2 == MAP_FAILED)
4626 return 6;
4627 for (i = 0; i < pagesize; ++i)
4628 if (*(data2 + i))
4629 return 7;
4630 close (fd2);
4631 if (munmap (data2, pagesize))
4632 return 8;
4634 /* Next, try to mmap the file at a fixed address which already has
4635 something else allocated at it. If we can, also make sure that
4636 we see the same garbage. */
4637 fd = open ("conftest.mmap", O_RDWR);
4638 if (fd < 0)
4639 return 9;
4640 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4641 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4642 return 10;
4643 for (i = 0; i < pagesize; ++i)
4644 if (*(data + i) != *(data2 + i))
4645 return 11;
4647 /* Finally, make sure that changes to the mapped area do not
4648 percolate back to the file as seen by read(). (This is a bug on
4649 some variants of i386 svr4.0.) */
4650 for (i = 0; i < pagesize; ++i)
4651 *(data2 + i) = *(data2 + i) + 1;
4652 data3 = (char *) malloc (pagesize);
4653 if (!data3)
4654 return 12;
4655 if (read (fd, data3, pagesize) != pagesize)
4656 return 13;
4657 for (i = 0; i < pagesize; ++i)
4658 if (*(data + i) != *(data3 + i))
4659 return 14;
4660 close (fd);
4661 return 0;
4663 _ACEOF
4664 if ac_fn_c_try_run "$LINENO"; then :
4665 ac_cv_func_mmap_fixed_mapped=yes
4666 else
4667 ac_cv_func_mmap_fixed_mapped=no
4669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4670 conftest.$ac_objext conftest.beam conftest.$ac_ext
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4675 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4676 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4678 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4681 rm -f conftest.mmap conftest.txt
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
4685 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
4686 if ${ac_cv_gnu_library_2_1+:} false; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4692 #include <features.h>
4693 #ifdef __GNU_LIBRARY__
4694 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4695 Lucky GNU user
4696 #endif
4697 #endif
4699 _ACEOF
4700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4701 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
4702 ac_cv_gnu_library_2_1=yes
4703 else
4704 ac_cv_gnu_library_2_1=no
4706 rm -f conftest*
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
4712 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
4714 GLIBC21="$ac_cv_gnu_library_2_1"
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
4720 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
4721 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
4722 $as_echo_n "(cached) " >&6
4723 else
4725 if test "$cross_compiling" = yes; then :
4727 # Guess based on the CPU.
4728 case "$host_cpu" in
4729 alpha* | i3456786 | m68k | s390*)
4730 gt_cv_int_divbyzero_sigfpe="guessing yes";;
4732 gt_cv_int_divbyzero_sigfpe="guessing no";;
4733 esac
4735 else
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4739 #include <stdlib.h>
4740 #include <signal.h>
4742 static void
4743 #ifdef __cplusplus
4744 sigfpe_handler (int sig)
4745 #else
4746 sigfpe_handler (sig) int sig;
4747 #endif
4749 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
4750 exit (sig != SIGFPE);
4753 int x = 1;
4754 int y = 0;
4755 int z;
4756 int nan;
4758 int main ()
4760 signal (SIGFPE, sigfpe_handler);
4761 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
4762 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
4763 signal (SIGTRAP, sigfpe_handler);
4764 #endif
4765 /* Linux/SPARC yields signal SIGILL. */
4766 #if defined (__sparc__) && defined (__linux__)
4767 signal (SIGILL, sigfpe_handler);
4768 #endif
4770 z = x / y;
4771 nan = y / y;
4772 exit (1);
4775 _ACEOF
4776 if ac_fn_c_try_run "$LINENO"; then :
4777 gt_cv_int_divbyzero_sigfpe=yes
4778 else
4779 gt_cv_int_divbyzero_sigfpe=no
4781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4782 conftest.$ac_objext conftest.beam conftest.$ac_ext
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
4788 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
4789 case "$gt_cv_int_divbyzero_sigfpe" in
4790 *yes) value=1;;
4791 *) value=0;;
4792 esac
4794 cat >>confdefs.h <<_ACEOF
4795 #define INTDIV0_RAISES_SIGFPE $value
4796 _ACEOF
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4801 $as_echo_n "checking for inttypes.h... " >&6; }
4802 if ${jm_ac_cv_header_inttypes_h+:} false; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4807 #include <sys/types.h>
4808 #include <inttypes.h>
4810 main ()
4812 uintmax_t i = (uintmax_t) -1;
4814 return 0;
4816 _ACEOF
4817 if ac_fn_c_try_compile "$LINENO"; then :
4818 jm_ac_cv_header_inttypes_h=yes
4819 else
4820 jm_ac_cv_header_inttypes_h=no
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
4825 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
4826 if test $jm_ac_cv_header_inttypes_h = yes; then
4828 cat >>confdefs.h <<_ACEOF
4829 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4830 _ACEOF
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
4836 $as_echo_n "checking for stdint.h... " >&6; }
4837 if ${jm_ac_cv_header_stdint_h+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4842 #include <sys/types.h>
4843 #include <stdint.h>
4845 main ()
4847 uintmax_t i = (uintmax_t) -1;
4849 return 0;
4851 _ACEOF
4852 if ac_fn_c_try_compile "$LINENO"; then :
4853 jm_ac_cv_header_stdint_h=yes
4854 else
4855 jm_ac_cv_header_stdint_h=no
4857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
4860 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
4861 if test $jm_ac_cv_header_stdint_h = yes; then
4863 cat >>confdefs.h <<_ACEOF
4864 #define HAVE_STDINT_H_WITH_UINTMAX 1
4865 _ACEOF
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
4871 $as_echo_n "checking for unsigned long long... " >&6; }
4872 if ${ac_cv_type_unsigned_long_long+:} false; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877 unsigned long long ull = 1; int i = 63;
4879 main ()
4881 unsigned long long ullmax = (unsigned long long) -1;
4882 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4884 return 0;
4886 _ACEOF
4887 if ac_fn_c_try_link "$LINENO"; then :
4888 ac_cv_type_unsigned_long_long=yes
4889 else
4890 ac_cv_type_unsigned_long_long=no
4892 rm -f core conftest.err conftest.$ac_objext \
4893 conftest$ac_exeext conftest.$ac_ext
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
4896 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
4897 if test $ac_cv_type_unsigned_long_long = yes; then
4899 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
4906 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
4908 test $ac_cv_type_unsigned_long_long = yes \
4909 && ac_type='unsigned long long' \
4910 || ac_type='unsigned long'
4912 cat >>confdefs.h <<_ACEOF
4913 #define uintmax_t $ac_type
4914 _ACEOF
4916 else
4918 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4924 $as_echo_n "checking for inttypes.h... " >&6; }
4925 if ${gt_cv_header_inttypes_h+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4931 #include <sys/types.h>
4932 #include <inttypes.h>
4934 main ()
4938 return 0;
4940 _ACEOF
4941 if ac_fn_c_try_compile "$LINENO"; then :
4942 gt_cv_header_inttypes_h=yes
4943 else
4944 gt_cv_header_inttypes_h=no
4946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
4950 $as_echo "$gt_cv_header_inttypes_h" >&6; }
4951 if test $gt_cv_header_inttypes_h = yes; then
4953 cat >>confdefs.h <<_ACEOF
4954 #define HAVE_INTTYPES_H 1
4955 _ACEOF
4961 if test $gt_cv_header_inttypes_h = yes; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
4963 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
4964 if ${gt_cv_inttypes_pri_broken+:} false; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4970 #include <inttypes.h>
4971 #ifdef PRId32
4972 char *p = PRId32;
4973 #endif
4976 main ()
4980 return 0;
4982 _ACEOF
4983 if ac_fn_c_try_compile "$LINENO"; then :
4984 gt_cv_inttypes_pri_broken=no
4985 else
4986 gt_cv_inttypes_pri_broken=yes
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
4992 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
4994 if test "$gt_cv_inttypes_pri_broken" = yes; then
4996 cat >>confdefs.h <<_ACEOF
4997 #define PRI_MACROS_BROKEN 1
4998 _ACEOF
5003 if test "X$prefix" = "XNONE"; then
5004 acl_final_prefix="$ac_default_prefix"
5005 else
5006 acl_final_prefix="$prefix"
5008 if test "X$exec_prefix" = "XNONE"; then
5009 acl_final_exec_prefix='${prefix}'
5010 else
5011 acl_final_exec_prefix="$exec_prefix"
5013 acl_save_prefix="$prefix"
5014 prefix="$acl_final_prefix"
5015 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5016 prefix="$acl_save_prefix"
5019 # Check whether --with-gnu-ld was given.
5020 if test "${with_gnu_ld+set}" = set; then :
5021 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5022 else
5023 with_gnu_ld=no
5026 # Prepare PATH_SEPARATOR.
5027 # The user is always right.
5028 if test "${PATH_SEPARATOR+set}" != set; then
5029 echo "#! /bin/sh" >conf$$.sh
5030 echo "exit 0" >>conf$$.sh
5031 chmod +x conf$$.sh
5032 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5033 PATH_SEPARATOR=';'
5034 else
5035 PATH_SEPARATOR=:
5037 rm -f conf$$.sh
5039 ac_prog=ld
5040 if test "$GCC" = yes; then
5041 # Check if gcc -print-prog-name=ld gives a path.
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5043 $as_echo_n "checking for ld used by GCC... " >&6; }
5044 case $host in
5045 *-*-mingw*)
5046 # gcc leaves a trailing carriage return which upsets mingw
5047 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5049 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5050 esac
5051 case $ac_prog in
5052 # Accept absolute paths.
5053 [\\/]* | [A-Za-z]:[\\/]*)
5054 re_direlt='/[^/][^/]*/\.\./'
5055 # Canonicalize the path of ld
5056 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5057 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5058 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5059 done
5060 test -z "$LD" && LD="$ac_prog"
5063 # If it fails, then pretend we aren't using GCC.
5064 ac_prog=ld
5067 # If it is relative, then search for the first ld in PATH.
5068 with_gnu_ld=unknown
5070 esac
5071 elif test "$with_gnu_ld" = yes; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5073 $as_echo_n "checking for GNU ld... " >&6; }
5074 else
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5076 $as_echo_n "checking for non-GNU ld... " >&6; }
5078 if ${acl_cv_path_LD+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 if test -z "$LD"; then
5082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5083 for ac_dir in $PATH; do
5084 test -z "$ac_dir" && ac_dir=.
5085 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5086 acl_cv_path_LD="$ac_dir/$ac_prog"
5087 # Check to see if the program is GNU ld. I'd rather use --version,
5088 # but apparently some GNU ld's only accept -v.
5089 # Break only if it was the GNU/non-GNU ld that we prefer.
5090 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5091 test "$with_gnu_ld" != no && break
5092 else
5093 test "$with_gnu_ld" != yes && break
5096 done
5097 IFS="$ac_save_ifs"
5098 else
5099 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5103 LD="$acl_cv_path_LD"
5104 if test -n "$LD"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5106 $as_echo "$LD" >&6; }
5107 else
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5111 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5113 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5114 if ${acl_cv_prog_gnu_ld+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5118 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5119 acl_cv_prog_gnu_ld=yes
5120 else
5121 acl_cv_prog_gnu_ld=no
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5125 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5126 with_gnu_ld=$acl_cv_prog_gnu_ld
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5131 $as_echo_n "checking for shared library run path origin... " >&6; }
5132 if ${acl_cv_rpath+:} false; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5136 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5137 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5138 . ./conftest.sh
5139 rm -f ./conftest.sh
5140 acl_cv_rpath=done
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5144 $as_echo "$acl_cv_rpath" >&6; }
5145 wl="$acl_cv_wl"
5146 libext="$acl_cv_libext"
5147 shlibext="$acl_cv_shlibext"
5148 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5149 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5150 hardcode_direct="$acl_cv_hardcode_direct"
5151 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5152 # Check whether --enable-rpath was given.
5153 if test "${enable_rpath+set}" = set; then :
5154 enableval=$enable_rpath; :
5155 else
5156 enable_rpath=yes
5166 use_additional=yes
5168 acl_save_prefix="$prefix"
5169 prefix="$acl_final_prefix"
5170 acl_save_exec_prefix="$exec_prefix"
5171 exec_prefix="$acl_final_exec_prefix"
5173 eval additional_includedir=\"$includedir\"
5174 eval additional_libdir=\"$libdir\"
5176 exec_prefix="$acl_save_exec_prefix"
5177 prefix="$acl_save_prefix"
5180 # Check whether --with-libiconv-prefix was given.
5181 if test "${with_libiconv_prefix+set}" = set; then :
5182 withval=$with_libiconv_prefix;
5183 if test "X$withval" = "Xno"; then
5184 use_additional=no
5185 else
5186 if test "X$withval" = "X"; then
5188 acl_save_prefix="$prefix"
5189 prefix="$acl_final_prefix"
5190 acl_save_exec_prefix="$exec_prefix"
5191 exec_prefix="$acl_final_exec_prefix"
5193 eval additional_includedir=\"$includedir\"
5194 eval additional_libdir=\"$libdir\"
5196 exec_prefix="$acl_save_exec_prefix"
5197 prefix="$acl_save_prefix"
5199 else
5200 additional_includedir="$withval/include"
5201 additional_libdir="$withval/lib"
5208 # Check whether --with-libiconv-type was given.
5209 if test "${with_libiconv_type+set}" = set; then :
5210 withval=$with_libiconv_type; with_libiconv_type=$withval
5211 else
5212 with_libiconv_type=auto
5215 lib_type=`eval echo \$with_libiconv_type`
5217 LIBICONV=
5218 LTLIBICONV=
5219 INCICONV=
5220 rpathdirs=
5221 ltrpathdirs=
5222 names_already_handled=
5223 names_next_round='iconv '
5224 while test -n "$names_next_round"; do
5225 names_this_round="$names_next_round"
5226 names_next_round=
5227 for name in $names_this_round; do
5228 already_handled=
5229 for n in $names_already_handled; do
5230 if test "$n" = "$name"; then
5231 already_handled=yes
5232 break
5234 done
5235 if test -z "$already_handled"; then
5236 names_already_handled="$names_already_handled $name"
5237 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5238 eval value=\"\$HAVE_LIB$uppername\"
5239 if test -n "$value"; then
5240 if test "$value" = yes; then
5241 eval value=\"\$LIB$uppername\"
5242 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5243 eval value=\"\$LTLIB$uppername\"
5244 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5245 else
5248 else
5249 found_dir=
5250 found_la=
5251 found_so=
5252 found_a=
5253 if test $use_additional = yes; then
5254 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
5255 found_dir="$additional_libdir"
5256 found_so="$additional_libdir/lib$name.$shlibext"
5257 if test -f "$additional_libdir/lib$name.la"; then
5258 found_la="$additional_libdir/lib$name.la"
5260 elif test x$lib_type != xshared; then
5261 if test -f "$additional_libdir/lib$name.$libext"; then
5262 found_dir="$additional_libdir"
5263 found_a="$additional_libdir/lib$name.$libext"
5264 if test -f "$additional_libdir/lib$name.la"; then
5265 found_la="$additional_libdir/lib$name.la"
5270 if test "X$found_dir" = "X"; then
5271 for x in $LDFLAGS $LTLIBICONV; do
5273 acl_save_prefix="$prefix"
5274 prefix="$acl_final_prefix"
5275 acl_save_exec_prefix="$exec_prefix"
5276 exec_prefix="$acl_final_exec_prefix"
5277 eval x=\"$x\"
5278 exec_prefix="$acl_save_exec_prefix"
5279 prefix="$acl_save_prefix"
5281 case "$x" in
5282 -L*)
5283 dir=`echo "X$x" | sed -e 's/^X-L//'`
5284 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
5285 found_dir="$dir"
5286 found_so="$dir/lib$name.$shlibext"
5287 if test -f "$dir/lib$name.la"; then
5288 found_la="$dir/lib$name.la"
5290 elif test x$lib_type != xshared; then
5291 if test -f "$dir/lib$name.$libext"; then
5292 found_dir="$dir"
5293 found_a="$dir/lib$name.$libext"
5294 if test -f "$dir/lib$name.la"; then
5295 found_la="$dir/lib$name.la"
5300 esac
5301 if test "X$found_dir" != "X"; then
5302 break
5304 done
5306 if test "X$found_dir" != "X"; then
5307 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5308 if test "X$found_so" != "X"; then
5309 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5310 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5311 else
5312 haveit=
5313 for x in $ltrpathdirs; do
5314 if test "X$x" = "X$found_dir"; then
5315 haveit=yes
5316 break
5318 done
5319 if test -z "$haveit"; then
5320 ltrpathdirs="$ltrpathdirs $found_dir"
5322 if test "$hardcode_direct" = yes; then
5323 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5324 else
5325 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5326 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5327 haveit=
5328 for x in $rpathdirs; do
5329 if test "X$x" = "X$found_dir"; then
5330 haveit=yes
5331 break
5333 done
5334 if test -z "$haveit"; then
5335 rpathdirs="$rpathdirs $found_dir"
5337 else
5338 haveit=
5339 for x in $LDFLAGS $LIBICONV; do
5341 acl_save_prefix="$prefix"
5342 prefix="$acl_final_prefix"
5343 acl_save_exec_prefix="$exec_prefix"
5344 exec_prefix="$acl_final_exec_prefix"
5345 eval x=\"$x\"
5346 exec_prefix="$acl_save_exec_prefix"
5347 prefix="$acl_save_prefix"
5349 if test "X$x" = "X-L$found_dir"; then
5350 haveit=yes
5351 break
5353 done
5354 if test -z "$haveit"; then
5355 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5357 if test "$hardcode_minus_L" != no; then
5358 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5359 else
5360 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5365 else
5366 if test "X$found_a" != "X"; then
5367 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5368 else
5369 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5372 additional_includedir=
5373 case "$found_dir" in
5374 */lib | */lib/)
5375 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5376 additional_includedir="$basedir/include"
5378 esac
5379 if test "X$additional_includedir" != "X"; then
5380 if test "X$additional_includedir" != "X/usr/include"; then
5381 haveit=
5382 if test "X$additional_includedir" = "X/usr/local/include"; then
5383 if test -n "$GCC"; then
5384 case $host_os in
5385 linux*) haveit=yes;;
5386 esac
5389 if test -z "$haveit"; then
5390 for x in $CPPFLAGS $INCICONV; do
5392 acl_save_prefix="$prefix"
5393 prefix="$acl_final_prefix"
5394 acl_save_exec_prefix="$exec_prefix"
5395 exec_prefix="$acl_final_exec_prefix"
5396 eval x=\"$x\"
5397 exec_prefix="$acl_save_exec_prefix"
5398 prefix="$acl_save_prefix"
5400 if test "X$x" = "X-I$additional_includedir"; then
5401 haveit=yes
5402 break
5404 done
5405 if test -z "$haveit"; then
5406 if test -d "$additional_includedir"; then
5407 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5413 if test -n "$found_la"; then
5414 save_libdir="$libdir"
5415 case "$found_la" in
5416 */* | *\\*) . "$found_la" ;;
5417 *) . "./$found_la" ;;
5418 esac
5419 libdir="$save_libdir"
5420 for dep in $dependency_libs; do
5421 case "$dep" in
5422 -L*)
5423 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5424 if test "X$additional_libdir" != "X/usr/lib"; then
5425 haveit=
5426 if test "X$additional_libdir" = "X/usr/local/lib"; then
5427 if test -n "$GCC"; then
5428 case $host_os in
5429 linux*) haveit=yes;;
5430 esac
5433 if test -z "$haveit"; then
5434 haveit=
5435 for x in $LDFLAGS $LIBICONV; do
5437 acl_save_prefix="$prefix"
5438 prefix="$acl_final_prefix"
5439 acl_save_exec_prefix="$exec_prefix"
5440 exec_prefix="$acl_final_exec_prefix"
5441 eval x=\"$x\"
5442 exec_prefix="$acl_save_exec_prefix"
5443 prefix="$acl_save_prefix"
5445 if test "X$x" = "X-L$additional_libdir"; then
5446 haveit=yes
5447 break
5449 done
5450 if test -z "$haveit"; then
5451 if test -d "$additional_libdir"; then
5452 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5455 haveit=
5456 for x in $LDFLAGS $LTLIBICONV; do
5458 acl_save_prefix="$prefix"
5459 prefix="$acl_final_prefix"
5460 acl_save_exec_prefix="$exec_prefix"
5461 exec_prefix="$acl_final_exec_prefix"
5462 eval x=\"$x\"
5463 exec_prefix="$acl_save_exec_prefix"
5464 prefix="$acl_save_prefix"
5466 if test "X$x" = "X-L$additional_libdir"; then
5467 haveit=yes
5468 break
5470 done
5471 if test -z "$haveit"; then
5472 if test -d "$additional_libdir"; then
5473 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5479 -R*)
5480 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5481 if test "$enable_rpath" != no; then
5482 haveit=
5483 for x in $rpathdirs; do
5484 if test "X$x" = "X$dir"; then
5485 haveit=yes
5486 break
5488 done
5489 if test -z "$haveit"; then
5490 rpathdirs="$rpathdirs $dir"
5492 haveit=
5493 for x in $ltrpathdirs; do
5494 if test "X$x" = "X$dir"; then
5495 haveit=yes
5496 break
5498 done
5499 if test -z "$haveit"; then
5500 ltrpathdirs="$ltrpathdirs $dir"
5504 -l*)
5505 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5507 *.la)
5508 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5511 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5512 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5514 esac
5515 done
5517 else
5518 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
5519 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5520 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5521 else
5522 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
5523 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
5528 done
5529 done
5530 if test "X$rpathdirs" != "X"; then
5531 if test -n "$hardcode_libdir_separator"; then
5532 alldirs=
5533 for found_dir in $rpathdirs; do
5534 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5535 done
5536 acl_save_libdir="$libdir"
5537 libdir="$alldirs"
5538 eval flag=\"$hardcode_libdir_flag_spec\"
5539 libdir="$acl_save_libdir"
5540 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5541 else
5542 for found_dir in $rpathdirs; do
5543 acl_save_libdir="$libdir"
5544 libdir="$found_dir"
5545 eval flag=\"$hardcode_libdir_flag_spec\"
5546 libdir="$acl_save_libdir"
5547 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5548 done
5551 if test "X$ltrpathdirs" != "X"; then
5552 for found_dir in $ltrpathdirs; do
5553 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5554 done
5560 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5561 stdlib.h string.h unistd.h sys/param.h
5562 do :
5563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5564 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5565 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5566 cat >>confdefs.h <<_ACEOF
5567 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5568 _ACEOF
5572 done
5574 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
5575 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
5576 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
5577 __fsetlocking
5578 do :
5579 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5580 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5581 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5582 cat >>confdefs.h <<_ACEOF
5583 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5584 _ACEOF
5587 done
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5596 $as_echo_n "checking for iconv... " >&6; }
5597 if ${am_cv_func_iconv+:} false; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5601 am_cv_func_iconv="no, consider installing GNU libiconv"
5602 am_cv_lib_iconv=no
5603 am_save_CPPFLAGS="$CPPFLAGS"
5604 CPPFLAGS="$CPPFLAGS $INCICONV"
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5607 #include <stdlib.h>
5608 #include <iconv.h>
5610 main ()
5612 iconv_t cd = iconv_open("","");
5613 iconv(cd,NULL,NULL,NULL,NULL);
5614 iconv_close(cd);
5616 return 0;
5618 _ACEOF
5619 if ac_fn_c_try_link "$LINENO"; then :
5620 am_cv_func_iconv=yes
5622 rm -f core conftest.err conftest.$ac_objext \
5623 conftest$ac_exeext conftest.$ac_ext
5624 CPPFLAGS="$am_save_CPPFLAGS"
5626 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
5627 for _libs in .libs _libs; do
5628 am_save_CPPFLAGS="$CPPFLAGS"
5629 am_save_LIBS="$LIBS"
5630 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
5631 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 #include <stdlib.h>
5635 #include <iconv.h>
5637 main ()
5639 iconv_t cd = iconv_open("","");
5640 iconv(cd,NULL,NULL,NULL,NULL);
5641 iconv_close(cd);
5643 return 0;
5645 _ACEOF
5646 if ac_fn_c_try_link "$LINENO"; then :
5647 INCICONV="-I../libiconv/include"
5648 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
5649 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
5650 am_cv_lib_iconv=yes
5651 am_cv_func_iconv=yes
5653 rm -f core conftest.err conftest.$ac_objext \
5654 conftest$ac_exeext conftest.$ac_ext
5655 CPPFLAGS="$am_save_CPPFLAGS"
5656 LIBS="$am_save_LIBS"
5657 if test "$am_cv_func_iconv" = "yes"; then
5658 break
5660 done
5663 if test "$am_cv_func_iconv" != yes; then
5664 am_save_CPPFLAGS="$CPPFLAGS"
5665 am_save_LIBS="$LIBS"
5666 CPPFLAGS="$CPPFLAGS $INCICONV"
5667 LIBS="$LIBS $LIBICONV"
5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5670 #include <stdlib.h>
5671 #include <iconv.h>
5673 main ()
5675 iconv_t cd = iconv_open("","");
5676 iconv(cd,NULL,NULL,NULL,NULL);
5677 iconv_close(cd);
5679 return 0;
5681 _ACEOF
5682 if ac_fn_c_try_link "$LINENO"; then :
5683 am_cv_lib_iconv=yes
5684 am_cv_func_iconv=yes
5686 rm -f core conftest.err conftest.$ac_objext \
5687 conftest$ac_exeext conftest.$ac_ext
5688 CPPFLAGS="$am_save_CPPFLAGS"
5689 LIBS="$am_save_LIBS"
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5694 $as_echo "$am_cv_func_iconv" >&6; }
5695 if test "$am_cv_func_iconv" = yes; then
5697 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5700 if test "$am_cv_lib_iconv" = yes; then
5702 for element in $INCICONV; do
5703 haveit=
5704 for x in $CPPFLAGS; do
5706 acl_save_prefix="$prefix"
5707 prefix="$acl_final_prefix"
5708 acl_save_exec_prefix="$exec_prefix"
5709 exec_prefix="$acl_final_exec_prefix"
5710 eval x=\"$x\"
5711 exec_prefix="$acl_save_exec_prefix"
5712 prefix="$acl_save_prefix"
5714 if test "X$x" = "X$element"; then
5715 haveit=yes
5716 break
5718 done
5719 if test -z "$haveit"; then
5720 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5722 done
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5725 $as_echo_n "checking how to link with libiconv... " >&6; }
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5727 $as_echo "$LIBICONV" >&6; }
5728 else
5729 LIBICONV=
5730 LTLIBICONV=
5735 if test "$am_cv_func_iconv" = yes; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
5737 $as_echo_n "checking for iconv declaration... " >&6; }
5738 if ${am_cv_proto_iconv+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5745 #include <stdlib.h>
5746 #include <iconv.h>
5747 extern
5748 #ifdef __cplusplus
5750 #endif
5751 #if defined(__STDC__) || defined(__cplusplus)
5752 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5753 #else
5754 size_t iconv();
5755 #endif
5758 main ()
5762 return 0;
5764 _ACEOF
5765 if ac_fn_c_try_compile "$LINENO"; then :
5766 am_cv_proto_iconv_arg1=""
5767 else
5768 am_cv_proto_iconv_arg1="const"
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 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);"
5774 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
5776 }$am_cv_proto_iconv" >&5
5777 $as_echo "${ac_t:-
5778 }$am_cv_proto_iconv" >&6; }
5780 cat >>confdefs.h <<_ACEOF
5781 #define ICONV_CONST $am_cv_proto_iconv_arg1
5782 _ACEOF
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5788 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5789 if ${am_cv_langinfo_codeset+:} false; then :
5790 $as_echo_n "(cached) " >&6
5791 else
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5794 #include <langinfo.h>
5796 main ()
5798 char* cs = nl_langinfo(CODESET);
5800 return 0;
5802 _ACEOF
5803 if ac_fn_c_try_link "$LINENO"; then :
5804 am_cv_langinfo_codeset=yes
5805 else
5806 am_cv_langinfo_codeset=no
5808 rm -f core conftest.err conftest.$ac_objext \
5809 conftest$ac_exeext conftest.$ac_ext
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5813 $as_echo "$am_cv_langinfo_codeset" >&6; }
5814 if test $am_cv_langinfo_codeset = yes; then
5816 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5820 if test $ac_cv_header_locale_h = yes; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
5823 $as_echo_n "checking for LC_MESSAGES... " >&6; }
5824 if ${am_cv_val_LC_MESSAGES+:} false; then :
5825 $as_echo_n "(cached) " >&6
5826 else
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 #include <locale.h>
5831 main ()
5833 return LC_MESSAGES
5835 return 0;
5837 _ACEOF
5838 if ac_fn_c_try_link "$LINENO"; then :
5839 am_cv_val_LC_MESSAGES=yes
5840 else
5841 am_cv_val_LC_MESSAGES=no
5843 rm -f core conftest.err conftest.$ac_objext \
5844 conftest$ac_exeext conftest.$ac_ext
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
5847 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
5848 if test $am_cv_val_LC_MESSAGES = yes; then
5850 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
5856 for ac_prog in bison
5858 # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy $ac_prog; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if ${ac_cv_prog_INTLBISON+:} false; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 if test -n "$INTLBISON"; then
5866 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875 ac_cv_prog_INTLBISON="$ac_prog"
5876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 break 2
5879 done
5880 done
5881 IFS=$as_save_IFS
5885 INTLBISON=$ac_cv_prog_INTLBISON
5886 if test -n "$INTLBISON"; then
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
5888 $as_echo "$INTLBISON" >&6; }
5889 else
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5895 test -n "$INTLBISON" && break
5896 done
5898 if test -z "$INTLBISON"; then
5899 ac_verc_fail=yes
5900 else
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
5902 $as_echo_n "checking version of bison... " >&6; }
5903 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5904 case $ac_prog_version in
5905 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5906 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5907 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5908 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5909 esac
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5911 $as_echo "$ac_prog_version" >&6; }
5913 if test $ac_verc_fail = yes; then
5914 INTLBISON=:
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5933 $as_echo_n "checking whether NLS is requested... " >&6; }
5934 # Check whether --enable-nls was given.
5935 if test "${enable_nls+set}" = set; then :
5936 enableval=$enable_nls; USE_NLS=$enableval
5937 else
5938 USE_NLS=yes
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5942 $as_echo "$USE_NLS" >&6; }
5947 BUILD_INCLUDED_LIBINTL=no
5948 USE_INCLUDED_LIBINTL=no
5950 LIBINTL=
5951 LTLIBINTL=
5952 POSUB=
5954 if test "$USE_NLS" = "yes"; then
5955 gt_use_preinstalled_gnugettext=no
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
5958 $as_echo_n "checking whether included gettext is requested... " >&6; }
5960 # Check whether --with-included-gettext was given.
5961 if test "${with_included_gettext+set}" = set; then :
5962 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
5963 else
5964 nls_cv_force_use_gnu_gettext=no
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
5968 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
5970 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5971 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5979 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5980 if ${gt_cv_func_gnugettext2_libc+:} false; then :
5981 $as_echo_n "(cached) " >&6
5982 else
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985 #include <libintl.h>
5986 extern int _nl_msg_cat_cntr;
5987 extern int *_nl_domain_bindings;
5989 main ()
5991 bindtextdomain ("", "");
5992 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
5994 return 0;
5996 _ACEOF
5997 if ac_fn_c_try_link "$LINENO"; then :
5998 gt_cv_func_gnugettext2_libc=yes
5999 else
6000 gt_cv_func_gnugettext2_libc=no
6002 rm -f core conftest.err conftest.$ac_objext \
6003 conftest$ac_exeext conftest.$ac_ext
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
6006 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
6008 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
6012 use_additional=yes
6014 acl_save_prefix="$prefix"
6015 prefix="$acl_final_prefix"
6016 acl_save_exec_prefix="$exec_prefix"
6017 exec_prefix="$acl_final_exec_prefix"
6019 eval additional_includedir=\"$includedir\"
6020 eval additional_libdir=\"$libdir\"
6022 exec_prefix="$acl_save_exec_prefix"
6023 prefix="$acl_save_prefix"
6026 # Check whether --with-libintl-prefix was given.
6027 if test "${with_libintl_prefix+set}" = set; then :
6028 withval=$with_libintl_prefix;
6029 if test "X$withval" = "Xno"; then
6030 use_additional=no
6031 else
6032 if test "X$withval" = "X"; then
6034 acl_save_prefix="$prefix"
6035 prefix="$acl_final_prefix"
6036 acl_save_exec_prefix="$exec_prefix"
6037 exec_prefix="$acl_final_exec_prefix"
6039 eval additional_includedir=\"$includedir\"
6040 eval additional_libdir=\"$libdir\"
6042 exec_prefix="$acl_save_exec_prefix"
6043 prefix="$acl_save_prefix"
6045 else
6046 additional_includedir="$withval/include"
6047 additional_libdir="$withval/lib"
6054 # Check whether --with-libintl-type was given.
6055 if test "${with_libintl_type+set}" = set; then :
6056 withval=$with_libintl_type; with_libintl_type=$withval
6057 else
6058 with_libintl_type=auto
6061 lib_type=`eval echo \$with_libintl_type`
6063 LIBINTL=
6064 LTLIBINTL=
6065 INCINTL=
6066 rpathdirs=
6067 ltrpathdirs=
6068 names_already_handled=
6069 names_next_round='intl '
6070 while test -n "$names_next_round"; do
6071 names_this_round="$names_next_round"
6072 names_next_round=
6073 for name in $names_this_round; do
6074 already_handled=
6075 for n in $names_already_handled; do
6076 if test "$n" = "$name"; then
6077 already_handled=yes
6078 break
6080 done
6081 if test -z "$already_handled"; then
6082 names_already_handled="$names_already_handled $name"
6083 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6084 eval value=\"\$HAVE_LIB$uppername\"
6085 if test -n "$value"; then
6086 if test "$value" = yes; then
6087 eval value=\"\$LIB$uppername\"
6088 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6089 eval value=\"\$LTLIB$uppername\"
6090 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6091 else
6094 else
6095 found_dir=
6096 found_la=
6097 found_so=
6098 found_a=
6099 if test $use_additional = yes; then
6100 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6101 found_dir="$additional_libdir"
6102 found_so="$additional_libdir/lib$name.$shlibext"
6103 if test -f "$additional_libdir/lib$name.la"; then
6104 found_la="$additional_libdir/lib$name.la"
6106 elif test x$lib_type != xshared; then
6107 if test -f "$additional_libdir/lib$name.$libext"; then
6108 found_dir="$additional_libdir"
6109 found_a="$additional_libdir/lib$name.$libext"
6110 if test -f "$additional_libdir/lib$name.la"; then
6111 found_la="$additional_libdir/lib$name.la"
6116 if test "X$found_dir" = "X"; then
6117 for x in $LDFLAGS $LTLIBINTL; do
6119 acl_save_prefix="$prefix"
6120 prefix="$acl_final_prefix"
6121 acl_save_exec_prefix="$exec_prefix"
6122 exec_prefix="$acl_final_exec_prefix"
6123 eval x=\"$x\"
6124 exec_prefix="$acl_save_exec_prefix"
6125 prefix="$acl_save_prefix"
6127 case "$x" in
6128 -L*)
6129 dir=`echo "X$x" | sed -e 's/^X-L//'`
6130 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6131 found_dir="$dir"
6132 found_so="$dir/lib$name.$shlibext"
6133 if test -f "$dir/lib$name.la"; then
6134 found_la="$dir/lib$name.la"
6136 elif test x$lib_type != xshared; then
6137 if test -f "$dir/lib$name.$libext"; then
6138 found_dir="$dir"
6139 found_a="$dir/lib$name.$libext"
6140 if test -f "$dir/lib$name.la"; then
6141 found_la="$dir/lib$name.la"
6146 esac
6147 if test "X$found_dir" != "X"; then
6148 break
6150 done
6152 if test "X$found_dir" != "X"; then
6153 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6154 if test "X$found_so" != "X"; then
6155 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6156 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6157 else
6158 haveit=
6159 for x in $ltrpathdirs; do
6160 if test "X$x" = "X$found_dir"; then
6161 haveit=yes
6162 break
6164 done
6165 if test -z "$haveit"; then
6166 ltrpathdirs="$ltrpathdirs $found_dir"
6168 if test "$hardcode_direct" = yes; then
6169 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6170 else
6171 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6172 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6173 haveit=
6174 for x in $rpathdirs; do
6175 if test "X$x" = "X$found_dir"; then
6176 haveit=yes
6177 break
6179 done
6180 if test -z "$haveit"; then
6181 rpathdirs="$rpathdirs $found_dir"
6183 else
6184 haveit=
6185 for x in $LDFLAGS $LIBINTL; do
6187 acl_save_prefix="$prefix"
6188 prefix="$acl_final_prefix"
6189 acl_save_exec_prefix="$exec_prefix"
6190 exec_prefix="$acl_final_exec_prefix"
6191 eval x=\"$x\"
6192 exec_prefix="$acl_save_exec_prefix"
6193 prefix="$acl_save_prefix"
6195 if test "X$x" = "X-L$found_dir"; then
6196 haveit=yes
6197 break
6199 done
6200 if test -z "$haveit"; then
6201 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6203 if test "$hardcode_minus_L" != no; then
6204 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6205 else
6206 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6211 else
6212 if test "X$found_a" != "X"; then
6213 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6214 else
6215 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6218 additional_includedir=
6219 case "$found_dir" in
6220 */lib | */lib/)
6221 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6222 additional_includedir="$basedir/include"
6224 esac
6225 if test "X$additional_includedir" != "X"; then
6226 if test "X$additional_includedir" != "X/usr/include"; then
6227 haveit=
6228 if test "X$additional_includedir" = "X/usr/local/include"; then
6229 if test -n "$GCC"; then
6230 case $host_os in
6231 linux*) haveit=yes;;
6232 esac
6235 if test -z "$haveit"; then
6236 for x in $CPPFLAGS $INCINTL; do
6238 acl_save_prefix="$prefix"
6239 prefix="$acl_final_prefix"
6240 acl_save_exec_prefix="$exec_prefix"
6241 exec_prefix="$acl_final_exec_prefix"
6242 eval x=\"$x\"
6243 exec_prefix="$acl_save_exec_prefix"
6244 prefix="$acl_save_prefix"
6246 if test "X$x" = "X-I$additional_includedir"; then
6247 haveit=yes
6248 break
6250 done
6251 if test -z "$haveit"; then
6252 if test -d "$additional_includedir"; then
6253 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6259 if test -n "$found_la"; then
6260 save_libdir="$libdir"
6261 case "$found_la" in
6262 */* | *\\*) . "$found_la" ;;
6263 *) . "./$found_la" ;;
6264 esac
6265 libdir="$save_libdir"
6266 for dep in $dependency_libs; do
6267 case "$dep" in
6268 -L*)
6269 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6270 if test "X$additional_libdir" != "X/usr/lib"; then
6271 haveit=
6272 if test "X$additional_libdir" = "X/usr/local/lib"; then
6273 if test -n "$GCC"; then
6274 case $host_os in
6275 linux*) haveit=yes;;
6276 esac
6279 if test -z "$haveit"; then
6280 haveit=
6281 for x in $LDFLAGS $LIBINTL; do
6283 acl_save_prefix="$prefix"
6284 prefix="$acl_final_prefix"
6285 acl_save_exec_prefix="$exec_prefix"
6286 exec_prefix="$acl_final_exec_prefix"
6287 eval x=\"$x\"
6288 exec_prefix="$acl_save_exec_prefix"
6289 prefix="$acl_save_prefix"
6291 if test "X$x" = "X-L$additional_libdir"; then
6292 haveit=yes
6293 break
6295 done
6296 if test -z "$haveit"; then
6297 if test -d "$additional_libdir"; then
6298 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6301 haveit=
6302 for x in $LDFLAGS $LTLIBINTL; do
6304 acl_save_prefix="$prefix"
6305 prefix="$acl_final_prefix"
6306 acl_save_exec_prefix="$exec_prefix"
6307 exec_prefix="$acl_final_exec_prefix"
6308 eval x=\"$x\"
6309 exec_prefix="$acl_save_exec_prefix"
6310 prefix="$acl_save_prefix"
6312 if test "X$x" = "X-L$additional_libdir"; then
6313 haveit=yes
6314 break
6316 done
6317 if test -z "$haveit"; then
6318 if test -d "$additional_libdir"; then
6319 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6325 -R*)
6326 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6327 if test "$enable_rpath" != no; then
6328 haveit=
6329 for x in $rpathdirs; do
6330 if test "X$x" = "X$dir"; then
6331 haveit=yes
6332 break
6334 done
6335 if test -z "$haveit"; then
6336 rpathdirs="$rpathdirs $dir"
6338 haveit=
6339 for x in $ltrpathdirs; do
6340 if test "X$x" = "X$dir"; then
6341 haveit=yes
6342 break
6344 done
6345 if test -z "$haveit"; then
6346 ltrpathdirs="$ltrpathdirs $dir"
6350 -l*)
6351 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6353 *.la)
6354 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6357 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6358 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6360 esac
6361 done
6363 else
6364 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
6365 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6366 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6367 else
6368 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
6369 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
6374 done
6375 done
6376 if test "X$rpathdirs" != "X"; then
6377 if test -n "$hardcode_libdir_separator"; then
6378 alldirs=
6379 for found_dir in $rpathdirs; do
6380 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6381 done
6382 acl_save_libdir="$libdir"
6383 libdir="$alldirs"
6384 eval flag=\"$hardcode_libdir_flag_spec\"
6385 libdir="$acl_save_libdir"
6386 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6387 else
6388 for found_dir in $rpathdirs; do
6389 acl_save_libdir="$libdir"
6390 libdir="$found_dir"
6391 eval flag=\"$hardcode_libdir_flag_spec\"
6392 libdir="$acl_save_libdir"
6393 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6394 done
6397 if test "X$ltrpathdirs" != "X"; then
6398 for found_dir in $ltrpathdirs; do
6399 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6400 done
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6404 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6405 if ${gt_cv_func_gnugettext2_libintl+:} false; then :
6406 $as_echo_n "(cached) " >&6
6407 else
6408 gt_save_CPPFLAGS="$CPPFLAGS"
6409 CPPFLAGS="$CPPFLAGS $INCINTL"
6410 gt_save_LIBS="$LIBS"
6411 LIBS="$LIBS $LIBINTL"
6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6414 #include <libintl.h>
6415 extern int _nl_msg_cat_cntr;
6416 extern
6417 #ifdef __cplusplus
6419 #endif
6420 const char *_nl_expand_alias ();
6422 main ()
6424 bindtextdomain ("", "");
6425 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6427 return 0;
6429 _ACEOF
6430 if ac_fn_c_try_link "$LINENO"; then :
6431 gt_cv_func_gnugettext2_libintl=yes
6432 else
6433 gt_cv_func_gnugettext2_libintl=no
6435 rm -f core conftest.err conftest.$ac_objext \
6436 conftest$ac_exeext conftest.$ac_ext
6437 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
6438 LIBS="$LIBS $LIBICONV"
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441 #include <libintl.h>
6442 extern int _nl_msg_cat_cntr;
6443 extern
6444 #ifdef __cplusplus
6446 #endif
6447 const char *_nl_expand_alias ();
6449 main ()
6451 bindtextdomain ("", "");
6452 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6454 return 0;
6456 _ACEOF
6457 if ac_fn_c_try_link "$LINENO"; then :
6458 LIBINTL="$LIBINTL $LIBICONV"
6459 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6460 gt_cv_func_gnugettext2_libintl=yes
6463 rm -f core conftest.err conftest.$ac_objext \
6464 conftest$ac_exeext conftest.$ac_ext
6466 CPPFLAGS="$gt_save_CPPFLAGS"
6467 LIBS="$gt_save_LIBS"
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
6470 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
6473 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
6474 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
6475 && test "$PACKAGE" != gettext-runtime \
6476 && test "$PACKAGE" != gettext-tools; }; then
6477 gt_use_preinstalled_gnugettext=yes
6478 else
6479 LIBINTL=
6480 LTLIBINTL=
6481 INCINTL=
6485 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
6486 nls_cv_use_gnu_gettext=yes
6490 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6491 BUILD_INCLUDED_LIBINTL=yes
6492 USE_INCLUDED_LIBINTL=yes
6493 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
6494 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
6495 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6498 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6499 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6500 CATOBJEXT=.gmo
6504 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6505 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6507 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6509 else
6510 USE_NLS=no
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6515 $as_echo_n "checking whether to use NLS... " >&6; }
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6517 $as_echo "$USE_NLS" >&6; }
6518 if test "$USE_NLS" = "yes"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6520 $as_echo_n "checking where the gettext function comes from... " >&6; }
6521 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6522 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
6523 gt_source="external libintl"
6524 else
6525 gt_source="libc"
6527 else
6528 gt_source="included intl directory"
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6531 $as_echo "$gt_source" >&6; }
6534 if test "$USE_NLS" = "yes"; then
6536 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6537 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6539 $as_echo_n "checking how to link with libintl... " >&6; }
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6541 $as_echo "$LIBINTL" >&6; }
6543 for element in $INCINTL; do
6544 haveit=
6545 for x in $CPPFLAGS; do
6547 acl_save_prefix="$prefix"
6548 prefix="$acl_final_prefix"
6549 acl_save_exec_prefix="$exec_prefix"
6550 exec_prefix="$acl_final_exec_prefix"
6551 eval x=\"$x\"
6552 exec_prefix="$acl_save_exec_prefix"
6553 prefix="$acl_save_prefix"
6555 if test "X$x" = "X$element"; then
6556 haveit=yes
6557 break
6559 done
6560 if test -z "$haveit"; then
6561 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6563 done
6568 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6571 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6575 POSUB=po
6579 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
6580 BUILD_INCLUDED_LIBINTL=yes
6587 nls_cv_header_intl=
6588 nls_cv_header_libgt=
6590 DATADIRNAME=share
6593 INSTOBJEXT=.mo
6596 GENCAT=gencat
6599 if test "$USE_INCLUDED_LIBINTL" = yes; then
6600 INTLOBJS="\$(GETTOBJS)"
6604 INTL_LIBTOOL_SUFFIX_PREFIX=
6608 INTLLIBS="$LIBINTL"
6616 # This replaces the extensive use of DEFS in the original Makefile.in.
6618 $as_echo "#define IN_LIBINTL 1" >>confdefs.h
6621 $as_echo "#define IN_LIBRARY 1" >>confdefs.h
6624 $as_echo "#define DEPENDS_ON_LIBICONV 1" >>confdefs.h
6627 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
6630 $as_echo "#define NO_XMALLOC 1" >>confdefs.h
6633 $as_echo "#define set_relocation_prefix libintl_set_relocation_prefix" >>confdefs.h
6636 $as_echo "#define relocate libintl_relocate" >>confdefs.h
6639 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6640 for ac_prog in aclocal
6642 # Extract the first word of "$ac_prog", so it can be a program name with args.
6643 set dummy $ac_prog; ac_word=$2
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if ${ac_cv_prog_ACLOCAL+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 if test -n "$ACLOCAL"; then
6650 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
6651 else
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6655 IFS=$as_save_IFS
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6659 ac_cv_prog_ACLOCAL="$ac_prog"
6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 break 2
6663 done
6664 done
6665 IFS=$as_save_IFS
6669 ACLOCAL=$ac_cv_prog_ACLOCAL
6670 if test -n "$ACLOCAL"; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
6672 $as_echo "$ACLOCAL" >&6; }
6673 else
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6679 test -n "$ACLOCAL" && break
6680 done
6681 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
6683 for ac_prog in autoconf
6685 # Extract the first word of "$ac_prog", so it can be a program name with args.
6686 set dummy $ac_prog; ac_word=$2
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 $as_echo_n "checking for $ac_word... " >&6; }
6689 if ${ac_cv_prog_AUTOCONF+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 if test -n "$AUTOCONF"; then
6693 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
6694 else
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6702 ac_cv_prog_AUTOCONF="$ac_prog"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 break 2
6706 done
6707 done
6708 IFS=$as_save_IFS
6712 AUTOCONF=$ac_cv_prog_AUTOCONF
6713 if test -n "$AUTOCONF"; then
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
6715 $as_echo "$AUTOCONF" >&6; }
6716 else
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 $as_echo "no" >&6; }
6722 test -n "$AUTOCONF" && break
6723 done
6724 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
6726 for ac_prog in autoheader
6728 # Extract the first word of "$ac_prog", so it can be a program name with args.
6729 set dummy $ac_prog; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if ${ac_cv_prog_AUTOHEADER+:} false; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 if test -n "$AUTOHEADER"; then
6736 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745 ac_cv_prog_AUTOHEADER="$ac_prog"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6749 done
6750 done
6751 IFS=$as_save_IFS
6755 AUTOHEADER=$ac_cv_prog_AUTOHEADER
6756 if test -n "$AUTOHEADER"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
6758 $as_echo "$AUTOHEADER" >&6; }
6759 else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6765 test -n "$AUTOHEADER" && break
6766 done
6767 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
6770 # Check whether --enable-maintainer-mode was given.
6771 if test "${enable_maintainer_mode+set}" = set; then :
6772 enableval=$enable_maintainer_mode;
6773 else
6774 enable_maintainer_mode=no
6777 if test "x$enable_maintainer_mode" = xno; then
6778 MAINT='#'
6779 else
6780 MAINT=
6784 # Additional info for config.intl.
6788 LIBINTL_DEP=
6789 INCINTL=
6790 case $USE_INCLUDED_LIBINTL in
6791 yes)
6792 LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},&/..,' `
6793 LTLIBINTL=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' `
6794 LIBINTL_DEP='${top_builddir}/../intl/libintl.a'
6795 INCINTL='-I${top_builddir}/../intl'
6797 esac
6799 BISON3_YES='#'
6800 BISON3_NO=
6801 if test "$INTLBISON" != :; then
6802 ac_bison3=no
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison 3 or later" >&5
6804 $as_echo_n "checking bison 3 or later... " >&6; }
6805 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6806 case $ac_prog_version in
6807 [3-9].*)
6808 ac_prog_version="$ac_prog_version, bison3"; ac_bison3=yes;;
6809 *) ac_prog_version="$ac_prog_version, old";;
6810 esac
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
6812 $as_echo "$ac_prog_version" >&6; }
6813 if test $ac_bison3 = yes; then
6814 BISON3_YES=
6815 BISON3_NO='#'
6821 # Check whether --enable-host-shared was given.
6822 if test "${enable_host_shared+set}" = set; then :
6823 enableval=$enable_host_shared; PICFLAG=-fPIC
6824 else
6825 PICFLAG=
6830 ac_config_files="$ac_config_files Makefile config.intl"
6832 cat >confcache <<\_ACEOF
6833 # This file is a shell script that caches the results of configure
6834 # tests run on this system so they can be shared between configure
6835 # scripts and configure runs, see configure's option --config-cache.
6836 # It is not useful on other systems. If it contains results you don't
6837 # want to keep, you may remove or edit it.
6839 # config.status only pays attention to the cache file if you give it
6840 # the --recheck option to rerun configure.
6842 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6843 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6844 # following values.
6846 _ACEOF
6848 # The following way of writing the cache mishandles newlines in values,
6849 # but we know of no workaround that is simple, portable, and efficient.
6850 # So, we kill variables containing newlines.
6851 # Ultrix sh set writes to stderr and can't be redirected directly,
6852 # and sets the high bit in the cache file unless we assign to the vars.
6854 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6855 eval ac_val=\$$ac_var
6856 case $ac_val in #(
6857 *${as_nl}*)
6858 case $ac_var in #(
6859 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6860 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6861 esac
6862 case $ac_var in #(
6863 _ | IFS | as_nl) ;; #(
6864 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6865 *) { eval $ac_var=; unset $ac_var;} ;;
6866 esac ;;
6867 esac
6868 done
6870 (set) 2>&1 |
6871 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6872 *${as_nl}ac_space=\ *)
6873 # `set' does not quote correctly, so add quotes: double-quote
6874 # substitution turns \\\\ into \\, and sed turns \\ into \.
6875 sed -n \
6876 "s/'/'\\\\''/g;
6877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6878 ;; #(
6880 # `set' quotes correctly as required by POSIX, so do not add quotes.
6881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6883 esac |
6884 sort
6886 sed '
6887 /^ac_cv_env_/b end
6888 t clear
6889 :clear
6890 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6891 t end
6892 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6893 :end' >>confcache
6894 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6895 if test -w "$cache_file"; then
6896 if test "x$cache_file" != "x/dev/null"; then
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6898 $as_echo "$as_me: updating cache $cache_file" >&6;}
6899 if test ! -f "$cache_file" || test -h "$cache_file"; then
6900 cat confcache >"$cache_file"
6901 else
6902 case $cache_file in #(
6903 */* | ?:*)
6904 mv -f confcache "$cache_file"$$ &&
6905 mv -f "$cache_file"$$ "$cache_file" ;; #(
6907 mv -f confcache "$cache_file" ;;
6908 esac
6911 else
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6913 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6916 rm -f confcache
6918 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6919 # Let make expand exec_prefix.
6920 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6922 DEFS=-DHAVE_CONFIG_H
6924 ac_libobjs=
6925 ac_ltlibobjs=
6927 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6928 # 1. Remove the extension, and $U if already installed.
6929 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6930 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6931 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6932 # will be set to the directory where LIBOBJS objects are built.
6933 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6934 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6935 done
6936 LIBOBJS=$ac_libobjs
6938 LTLIBOBJS=$ac_ltlibobjs
6942 : "${CONFIG_STATUS=./config.status}"
6943 ac_write_fail=0
6944 ac_clean_files_save=$ac_clean_files
6945 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6947 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6948 as_write_fail=0
6949 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6950 #! $SHELL
6951 # Generated by $as_me.
6952 # Run this file to recreate the current configuration.
6953 # Compiler output produced by configure, useful for debugging
6954 # configure, is in config.log if it exists.
6956 debug=false
6957 ac_cs_recheck=false
6958 ac_cs_silent=false
6960 SHELL=\${CONFIG_SHELL-$SHELL}
6961 export SHELL
6962 _ASEOF
6963 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6964 ## -------------------- ##
6965 ## M4sh Initialization. ##
6966 ## -------------------- ##
6968 # Be more Bourne compatible
6969 DUALCASE=1; export DUALCASE # for MKS sh
6970 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6971 emulate sh
6972 NULLCMD=:
6973 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6974 # is contrary to our usage. Disable this feature.
6975 alias -g '${1+"$@"}'='"$@"'
6976 setopt NO_GLOB_SUBST
6977 else
6978 case `(set -o) 2>/dev/null` in #(
6979 *posix*) :
6980 set -o posix ;; #(
6981 *) :
6983 esac
6987 as_nl='
6989 export as_nl
6990 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6991 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6992 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6993 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6994 # Prefer a ksh shell builtin over an external printf program on Solaris,
6995 # but without wasting forks for bash or zsh.
6996 if test -z "$BASH_VERSION$ZSH_VERSION" \
6997 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6998 as_echo='print -r --'
6999 as_echo_n='print -rn --'
7000 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7001 as_echo='printf %s\n'
7002 as_echo_n='printf %s'
7003 else
7004 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7005 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7006 as_echo_n='/usr/ucb/echo -n'
7007 else
7008 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7009 as_echo_n_body='eval
7010 arg=$1;
7011 case $arg in #(
7012 *"$as_nl"*)
7013 expr "X$arg" : "X\\(.*\\)$as_nl";
7014 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7015 esac;
7016 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7018 export as_echo_n_body
7019 as_echo_n='sh -c $as_echo_n_body as_echo'
7021 export as_echo_body
7022 as_echo='sh -c $as_echo_body as_echo'
7025 # The user is always right.
7026 if test "${PATH_SEPARATOR+set}" != set; then
7027 PATH_SEPARATOR=:
7028 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7029 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7030 PATH_SEPARATOR=';'
7035 # IFS
7036 # We need space, tab and new line, in precisely that order. Quoting is
7037 # there to prevent editors from complaining about space-tab.
7038 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7039 # splitting by setting IFS to empty value.)
7040 IFS=" "" $as_nl"
7042 # Find who we are. Look in the path if we contain no directory separator.
7043 as_myself=
7044 case $0 in #((
7045 *[\\/]* ) as_myself=$0 ;;
7046 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7052 done
7053 IFS=$as_save_IFS
7056 esac
7057 # We did not find ourselves, most probably we were run as `sh COMMAND'
7058 # in which case we are not to be found in the path.
7059 if test "x$as_myself" = x; then
7060 as_myself=$0
7062 if test ! -f "$as_myself"; then
7063 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7064 exit 1
7067 # Unset variables that we do not need and which cause bugs (e.g. in
7068 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7069 # suppresses any "Segmentation fault" message there. '((' could
7070 # trigger a bug in pdksh 5.2.14.
7071 for as_var in BASH_ENV ENV MAIL MAILPATH
7072 do eval test x\${$as_var+set} = xset \
7073 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7074 done
7075 PS1='$ '
7076 PS2='> '
7077 PS4='+ '
7079 # NLS nuisances.
7080 LC_ALL=C
7081 export LC_ALL
7082 LANGUAGE=C
7083 export LANGUAGE
7085 # CDPATH.
7086 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7089 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7090 # ----------------------------------------
7091 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7092 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7093 # script with STATUS, using 1 if that was 0.
7094 as_fn_error ()
7096 as_status=$1; test $as_status -eq 0 && as_status=1
7097 if test "$4"; then
7098 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7099 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7101 $as_echo "$as_me: error: $2" >&2
7102 as_fn_exit $as_status
7103 } # as_fn_error
7106 # as_fn_set_status STATUS
7107 # -----------------------
7108 # Set $? to STATUS, without forking.
7109 as_fn_set_status ()
7111 return $1
7112 } # as_fn_set_status
7114 # as_fn_exit STATUS
7115 # -----------------
7116 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7117 as_fn_exit ()
7119 set +e
7120 as_fn_set_status $1
7121 exit $1
7122 } # as_fn_exit
7124 # as_fn_unset VAR
7125 # ---------------
7126 # Portably unset VAR.
7127 as_fn_unset ()
7129 { eval $1=; unset $1;}
7131 as_unset=as_fn_unset
7132 # as_fn_append VAR VALUE
7133 # ----------------------
7134 # Append the text in VALUE to the end of the definition contained in VAR. Take
7135 # advantage of any shell optimizations that allow amortized linear growth over
7136 # repeated appends, instead of the typical quadratic growth present in naive
7137 # implementations.
7138 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7139 eval 'as_fn_append ()
7141 eval $1+=\$2
7143 else
7144 as_fn_append ()
7146 eval $1=\$$1\$2
7148 fi # as_fn_append
7150 # as_fn_arith ARG...
7151 # ------------------
7152 # Perform arithmetic evaluation on the ARGs, and store the result in the
7153 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7154 # must be portable across $(()) and expr.
7155 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7156 eval 'as_fn_arith ()
7158 as_val=$(( $* ))
7160 else
7161 as_fn_arith ()
7163 as_val=`expr "$@" || test $? -eq 1`
7165 fi # as_fn_arith
7168 if expr a : '\(a\)' >/dev/null 2>&1 &&
7169 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7170 as_expr=expr
7171 else
7172 as_expr=false
7175 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7176 as_basename=basename
7177 else
7178 as_basename=false
7181 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7182 as_dirname=dirname
7183 else
7184 as_dirname=false
7187 as_me=`$as_basename -- "$0" ||
7188 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7189 X"$0" : 'X\(//\)$' \| \
7190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7191 $as_echo X/"$0" |
7192 sed '/^.*\/\([^/][^/]*\)\/*$/{
7193 s//\1/
7196 /^X\/\(\/\/\)$/{
7197 s//\1/
7200 /^X\/\(\/\).*/{
7201 s//\1/
7204 s/.*/./; q'`
7206 # Avoid depending upon Character Ranges.
7207 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7208 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7209 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7210 as_cr_digits='0123456789'
7211 as_cr_alnum=$as_cr_Letters$as_cr_digits
7213 ECHO_C= ECHO_N= ECHO_T=
7214 case `echo -n x` in #(((((
7215 -n*)
7216 case `echo 'xy\c'` in
7217 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7218 xy) ECHO_C='\c';;
7219 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7220 ECHO_T=' ';;
7221 esac;;
7223 ECHO_N='-n';;
7224 esac
7226 rm -f conf$$ conf$$.exe conf$$.file
7227 if test -d conf$$.dir; then
7228 rm -f conf$$.dir/conf$$.file
7229 else
7230 rm -f conf$$.dir
7231 mkdir conf$$.dir 2>/dev/null
7233 if (echo >conf$$.file) 2>/dev/null; then
7234 if ln -s conf$$.file conf$$ 2>/dev/null; then
7235 as_ln_s='ln -s'
7236 # ... but there are two gotchas:
7237 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7238 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7239 # In both cases, we have to default to `cp -pR'.
7240 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7241 as_ln_s='cp -pR'
7242 elif ln conf$$.file conf$$ 2>/dev/null; then
7243 as_ln_s=ln
7244 else
7245 as_ln_s='cp -pR'
7247 else
7248 as_ln_s='cp -pR'
7250 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7251 rmdir conf$$.dir 2>/dev/null
7254 # as_fn_mkdir_p
7255 # -------------
7256 # Create "$as_dir" as a directory, including parents if necessary.
7257 as_fn_mkdir_p ()
7260 case $as_dir in #(
7261 -*) as_dir=./$as_dir;;
7262 esac
7263 test -d "$as_dir" || eval $as_mkdir_p || {
7264 as_dirs=
7265 while :; do
7266 case $as_dir in #(
7267 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7268 *) as_qdir=$as_dir;;
7269 esac
7270 as_dirs="'$as_qdir' $as_dirs"
7271 as_dir=`$as_dirname -- "$as_dir" ||
7272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7273 X"$as_dir" : 'X\(//\)[^/]' \| \
7274 X"$as_dir" : 'X\(//\)$' \| \
7275 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7276 $as_echo X"$as_dir" |
7277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7278 s//\1/
7281 /^X\(\/\/\)[^/].*/{
7282 s//\1/
7285 /^X\(\/\/\)$/{
7286 s//\1/
7289 /^X\(\/\).*/{
7290 s//\1/
7293 s/.*/./; q'`
7294 test -d "$as_dir" && break
7295 done
7296 test -z "$as_dirs" || eval "mkdir $as_dirs"
7297 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7300 } # as_fn_mkdir_p
7301 if mkdir -p . 2>/dev/null; then
7302 as_mkdir_p='mkdir -p "$as_dir"'
7303 else
7304 test -d ./-p && rmdir ./-p
7305 as_mkdir_p=false
7309 # as_fn_executable_p FILE
7310 # -----------------------
7311 # Test if FILE is an executable regular file.
7312 as_fn_executable_p ()
7314 test -f "$1" && test -x "$1"
7315 } # as_fn_executable_p
7316 as_test_x='test -x'
7317 as_executable_p=as_fn_executable_p
7319 # Sed expression to map a string onto a valid CPP name.
7320 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7322 # Sed expression to map a string onto a valid variable name.
7323 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7326 exec 6>&1
7327 ## ----------------------------------- ##
7328 ## Main body of $CONFIG_STATUS script. ##
7329 ## ----------------------------------- ##
7330 _ASEOF
7331 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7334 # Save the log message, to keep $0 and so on meaningful, and to
7335 # report actual input values of CONFIG_FILES etc. instead of their
7336 # values after options handling.
7337 ac_log="
7338 This file was extended by $as_me, which was
7339 generated by GNU Autoconf 2.69. Invocation command line was
7341 CONFIG_FILES = $CONFIG_FILES
7342 CONFIG_HEADERS = $CONFIG_HEADERS
7343 CONFIG_LINKS = $CONFIG_LINKS
7344 CONFIG_COMMANDS = $CONFIG_COMMANDS
7345 $ $0 $@
7347 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7350 _ACEOF
7352 case $ac_config_files in *"
7353 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7354 esac
7356 case $ac_config_headers in *"
7357 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7358 esac
7361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7362 # Files that config.status was made for.
7363 config_files="$ac_config_files"
7364 config_headers="$ac_config_headers"
7365 config_commands="$ac_config_commands"
7367 _ACEOF
7369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7370 ac_cs_usage="\
7371 \`$as_me' instantiates files and other configuration actions
7372 from templates according to the current configuration. Unless the files
7373 and actions are specified as TAGs, all are instantiated by default.
7375 Usage: $0 [OPTION]... [TAG]...
7377 -h, --help print this help, then exit
7378 -V, --version print version number and configuration settings, then exit
7379 --config print configuration, then exit
7380 -q, --quiet, --silent
7381 do not print progress messages
7382 -d, --debug don't remove temporary files
7383 --recheck update $as_me by reconfiguring in the same conditions
7384 --file=FILE[:TEMPLATE]
7385 instantiate the configuration file FILE
7386 --header=FILE[:TEMPLATE]
7387 instantiate the configuration header FILE
7389 Configuration files:
7390 $config_files
7392 Configuration headers:
7393 $config_headers
7395 Configuration commands:
7396 $config_commands
7398 Report bugs to the package provider."
7400 _ACEOF
7401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7402 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7403 ac_cs_version="\\
7404 config.status
7405 configured by $0, generated by GNU Autoconf 2.69,
7406 with options \\"\$ac_cs_config\\"
7408 Copyright (C) 2012 Free Software Foundation, Inc.
7409 This config.status script is free software; the Free Software Foundation
7410 gives unlimited permission to copy, distribute and modify it."
7412 ac_pwd='$ac_pwd'
7413 srcdir='$srcdir'
7414 INSTALL='$INSTALL'
7415 test -n "\$AWK" || AWK=awk
7416 _ACEOF
7418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7419 # The default lists apply if the user does not specify any file.
7420 ac_need_defaults=:
7421 while test $# != 0
7423 case $1 in
7424 --*=?*)
7425 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7426 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7427 ac_shift=:
7429 --*=)
7430 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7431 ac_optarg=
7432 ac_shift=:
7435 ac_option=$1
7436 ac_optarg=$2
7437 ac_shift=shift
7439 esac
7441 case $ac_option in
7442 # Handling of the options.
7443 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7444 ac_cs_recheck=: ;;
7445 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7446 $as_echo "$ac_cs_version"; exit ;;
7447 --config | --confi | --conf | --con | --co | --c )
7448 $as_echo "$ac_cs_config"; exit ;;
7449 --debug | --debu | --deb | --de | --d | -d )
7450 debug=: ;;
7451 --file | --fil | --fi | --f )
7452 $ac_shift
7453 case $ac_optarg in
7454 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7455 '') as_fn_error $? "missing file argument" ;;
7456 esac
7457 as_fn_append CONFIG_FILES " '$ac_optarg'"
7458 ac_need_defaults=false;;
7459 --header | --heade | --head | --hea )
7460 $ac_shift
7461 case $ac_optarg in
7462 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7463 esac
7464 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7465 ac_need_defaults=false;;
7466 --he | --h)
7467 # Conflict between --help and --header
7468 as_fn_error $? "ambiguous option: \`$1'
7469 Try \`$0 --help' for more information.";;
7470 --help | --hel | -h )
7471 $as_echo "$ac_cs_usage"; exit ;;
7472 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7473 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7474 ac_cs_silent=: ;;
7476 # This is an error.
7477 -*) as_fn_error $? "unrecognized option: \`$1'
7478 Try \`$0 --help' for more information." ;;
7480 *) as_fn_append ac_config_targets " $1"
7481 ac_need_defaults=false ;;
7483 esac
7484 shift
7485 done
7487 ac_configure_extra_args=
7489 if $ac_cs_silent; then
7490 exec 6>/dev/null
7491 ac_configure_extra_args="$ac_configure_extra_args --silent"
7494 _ACEOF
7495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7496 if \$ac_cs_recheck; then
7497 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7498 shift
7499 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7500 CONFIG_SHELL='$SHELL'
7501 export CONFIG_SHELL
7502 exec "\$@"
7505 _ACEOF
7506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7507 exec 5>>config.log
7509 echo
7510 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7511 ## Running $as_me. ##
7512 _ASBOX
7513 $as_echo "$ac_log"
7514 } >&5
7516 _ACEOF
7517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7519 # INIT-COMMANDS
7521 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
7522 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
7523 # from automake.
7524 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
7525 # Capture the value of LINGUAS because we need it to compute CATALOGS.
7526 LINGUAS="${LINGUAS-%UNSET%}"
7529 _ACEOF
7531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7533 # Handling of arguments.
7534 for ac_config_target in $ac_config_targets
7536 case $ac_config_target in
7537 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7538 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7539 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7540 "config.intl") CONFIG_FILES="$CONFIG_FILES config.intl" ;;
7542 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7543 esac
7544 done
7547 # If the user did not use the arguments to specify the items to instantiate,
7548 # then the envvar interface is used. Set only those that are not.
7549 # We use the long form for the default assignment because of an extremely
7550 # bizarre bug on SunOS 4.1.3.
7551 if $ac_need_defaults; then
7552 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7553 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7554 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7557 # Have a temporary directory for convenience. Make it in the build tree
7558 # simply because there is no reason against having it here, and in addition,
7559 # creating and moving files from /tmp can sometimes cause problems.
7560 # Hook for its removal unless debugging.
7561 # Note that there is a small window in which the directory will not be cleaned:
7562 # after its creation but before its name has been assigned to `$tmp'.
7563 $debug ||
7565 tmp= ac_tmp=
7566 trap 'exit_status=$?
7567 : "${ac_tmp:=$tmp}"
7568 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7570 trap 'as_fn_exit 1' 1 2 13 15
7572 # Create a (secure) tmp directory for tmp files.
7575 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7576 test -d "$tmp"
7577 } ||
7579 tmp=./conf$$-$RANDOM
7580 (umask 077 && mkdir "$tmp")
7581 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7582 ac_tmp=$tmp
7584 # Set up the scripts for CONFIG_FILES section.
7585 # No need to generate them if there are no CONFIG_FILES.
7586 # This happens for instance with `./config.status config.h'.
7587 if test -n "$CONFIG_FILES"; then
7590 ac_cr=`echo X | tr X '\015'`
7591 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7592 # But we know of no other shell where ac_cr would be empty at this
7593 # point, so we can use a bashism as a fallback.
7594 if test "x$ac_cr" = x; then
7595 eval ac_cr=\$\'\\r\'
7597 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7598 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7599 ac_cs_awk_cr='\\r'
7600 else
7601 ac_cs_awk_cr=$ac_cr
7604 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7605 _ACEOF
7609 echo "cat >conf$$subs.awk <<_ACEOF" &&
7610 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7611 echo "_ACEOF"
7612 } >conf$$subs.sh ||
7613 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7614 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7615 ac_delim='%!_!# '
7616 for ac_last_try in false false false false false :; do
7617 . ./conf$$subs.sh ||
7618 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7620 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7621 if test $ac_delim_n = $ac_delim_num; then
7622 break
7623 elif $ac_last_try; then
7624 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7625 else
7626 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7628 done
7629 rm -f conf$$subs.sh
7631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7632 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7633 _ACEOF
7634 sed -n '
7636 s/^/S["/; s/!.*/"]=/
7639 s/^[^!]*!//
7640 :repl
7641 t repl
7642 s/'"$ac_delim"'$//
7643 t delim
7646 s/\(.\{148\}\)..*/\1/
7647 t more1
7648 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7651 b repl
7652 :more1
7653 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7656 s/.\{148\}//
7657 t nl
7658 :delim
7660 s/\(.\{148\}\)..*/\1/
7661 t more2
7662 s/["\\]/\\&/g; s/^/"/; s/$/"/
7665 :more2
7666 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7669 s/.\{148\}//
7670 t delim
7671 ' <conf$$subs.awk | sed '
7672 /^[^""]/{
7674 s/\n//
7676 ' >>$CONFIG_STATUS || ac_write_fail=1
7677 rm -f conf$$subs.awk
7678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7679 _ACAWK
7680 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7681 for (key in S) S_is_set[key] = 1
7682 FS = "\a"
7686 line = $ 0
7687 nfields = split(line, field, "@")
7688 substed = 0
7689 len = length(field[1])
7690 for (i = 2; i < nfields; i++) {
7691 key = field[i]
7692 keylen = length(key)
7693 if (S_is_set[key]) {
7694 value = S[key]
7695 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7696 len += length(value) + length(field[++i])
7697 substed = 1
7698 } else
7699 len += 1 + keylen
7702 print line
7705 _ACAWK
7706 _ACEOF
7707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7708 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7709 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7710 else
7712 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7713 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7714 _ACEOF
7716 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7717 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7718 # trailing colons and then remove the whole line if VPATH becomes empty
7719 # (actually we leave an empty line to preserve line numbers).
7720 if test "x$srcdir" = x.; then
7721 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7723 s///
7724 s/^/:/
7725 s/[ ]*$/:/
7726 s/:\$(srcdir):/:/g
7727 s/:\${srcdir}:/:/g
7728 s/:@srcdir@:/:/g
7729 s/^:*//
7730 s/:*$//
7732 s/\(=[ ]*\).*/\1/
7734 s/\n//
7735 s/^[^=]*=[ ]*$//
7739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7740 fi # test -n "$CONFIG_FILES"
7742 # Set up the scripts for CONFIG_HEADERS section.
7743 # No need to generate them if there are no CONFIG_HEADERS.
7744 # This happens for instance with `./config.status Makefile'.
7745 if test -n "$CONFIG_HEADERS"; then
7746 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7747 BEGIN {
7748 _ACEOF
7750 # Transform confdefs.h into an awk script `defines.awk', embedded as
7751 # here-document in config.status, that substitutes the proper values into
7752 # config.h.in to produce config.h.
7754 # Create a delimiter string that does not exist in confdefs.h, to ease
7755 # handling of long lines.
7756 ac_delim='%!_!# '
7757 for ac_last_try in false false :; do
7758 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7759 if test -z "$ac_tt"; then
7760 break
7761 elif $ac_last_try; then
7762 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7763 else
7764 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7766 done
7768 # For the awk script, D is an array of macro values keyed by name,
7769 # likewise P contains macro parameters if any. Preserve backslash
7770 # newline sequences.
7772 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7773 sed -n '
7774 s/.\{148\}/&'"$ac_delim"'/g
7775 t rset
7776 :rset
7777 s/^[ ]*#[ ]*define[ ][ ]*/ /
7778 t def
7780 :def
7781 s/\\$//
7782 t bsnl
7783 s/["\\]/\\&/g
7784 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7785 D["\1"]=" \3"/p
7786 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7788 :bsnl
7789 s/["\\]/\\&/g
7790 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7791 D["\1"]=" \3\\\\\\n"\\/p
7792 t cont
7793 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7794 t cont
7796 :cont
7798 s/.\{148\}/&'"$ac_delim"'/g
7799 t clear
7800 :clear
7801 s/\\$//
7802 t bsnlc
7803 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7805 :bsnlc
7806 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7807 b cont
7808 ' <confdefs.h | sed '
7809 s/'"$ac_delim"'/"\\\
7810 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7813 for (key in D) D_is_set[key] = 1
7814 FS = "\a"
7816 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7817 line = \$ 0
7818 split(line, arg, " ")
7819 if (arg[1] == "#") {
7820 defundef = arg[2]
7821 mac1 = arg[3]
7822 } else {
7823 defundef = substr(arg[1], 2)
7824 mac1 = arg[2]
7826 split(mac1, mac2, "(") #)
7827 macro = mac2[1]
7828 prefix = substr(line, 1, index(line, defundef) - 1)
7829 if (D_is_set[macro]) {
7830 # Preserve the white space surrounding the "#".
7831 print prefix "define", macro P[macro] D[macro]
7832 next
7833 } else {
7834 # Replace #undef with comments. This is necessary, for example,
7835 # in the case of _POSIX_SOURCE, which is predefined and required
7836 # on some systems where configure will not decide to define it.
7837 if (defundef == "undef") {
7838 print "/*", prefix defundef, macro, "*/"
7839 next
7843 { print }
7844 _ACAWK
7845 _ACEOF
7846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7847 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7848 fi # test -n "$CONFIG_HEADERS"
7851 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7852 shift
7853 for ac_tag
7855 case $ac_tag in
7856 :[FHLC]) ac_mode=$ac_tag; continue;;
7857 esac
7858 case $ac_mode$ac_tag in
7859 :[FHL]*:*);;
7860 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7861 :[FH]-) ac_tag=-:-;;
7862 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7863 esac
7864 ac_save_IFS=$IFS
7865 IFS=:
7866 set x $ac_tag
7867 IFS=$ac_save_IFS
7868 shift
7869 ac_file=$1
7870 shift
7872 case $ac_mode in
7873 :L) ac_source=$1;;
7874 :[FH])
7875 ac_file_inputs=
7876 for ac_f
7878 case $ac_f in
7879 -) ac_f="$ac_tmp/stdin";;
7880 *) # Look for the file first in the build tree, then in the source tree
7881 # (if the path is not absolute). The absolute path cannot be DOS-style,
7882 # because $ac_f cannot contain `:'.
7883 test -f "$ac_f" ||
7884 case $ac_f in
7885 [\\/$]*) false;;
7886 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7887 esac ||
7888 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7889 esac
7890 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7891 as_fn_append ac_file_inputs " '$ac_f'"
7892 done
7894 # Let's still pretend it is `configure' which instantiates (i.e., don't
7895 # use $as_me), people would be surprised to read:
7896 # /* config.h. Generated by config.status. */
7897 configure_input='Generated from '`
7898 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7899 `' by configure.'
7900 if test x"$ac_file" != x-; then
7901 configure_input="$ac_file. $configure_input"
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7903 $as_echo "$as_me: creating $ac_file" >&6;}
7905 # Neutralize special characters interpreted by sed in replacement strings.
7906 case $configure_input in #(
7907 *\&* | *\|* | *\\* )
7908 ac_sed_conf_input=`$as_echo "$configure_input" |
7909 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7910 *) ac_sed_conf_input=$configure_input;;
7911 esac
7913 case $ac_tag in
7914 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7915 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7916 esac
7918 esac
7920 ac_dir=`$as_dirname -- "$ac_file" ||
7921 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7922 X"$ac_file" : 'X\(//\)[^/]' \| \
7923 X"$ac_file" : 'X\(//\)$' \| \
7924 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7925 $as_echo X"$ac_file" |
7926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7927 s//\1/
7930 /^X\(\/\/\)[^/].*/{
7931 s//\1/
7934 /^X\(\/\/\)$/{
7935 s//\1/
7938 /^X\(\/\).*/{
7939 s//\1/
7942 s/.*/./; q'`
7943 as_dir="$ac_dir"; as_fn_mkdir_p
7944 ac_builddir=.
7946 case "$ac_dir" in
7947 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7949 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7950 # A ".." for each directory in $ac_dir_suffix.
7951 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7952 case $ac_top_builddir_sub in
7953 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7954 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7955 esac ;;
7956 esac
7957 ac_abs_top_builddir=$ac_pwd
7958 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7959 # for backward compatibility:
7960 ac_top_builddir=$ac_top_build_prefix
7962 case $srcdir in
7963 .) # We are building in place.
7964 ac_srcdir=.
7965 ac_top_srcdir=$ac_top_builddir_sub
7966 ac_abs_top_srcdir=$ac_pwd ;;
7967 [\\/]* | ?:[\\/]* ) # Absolute name.
7968 ac_srcdir=$srcdir$ac_dir_suffix;
7969 ac_top_srcdir=$srcdir
7970 ac_abs_top_srcdir=$srcdir ;;
7971 *) # Relative name.
7972 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7973 ac_top_srcdir=$ac_top_build_prefix$srcdir
7974 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7975 esac
7976 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7979 case $ac_mode in
7982 # CONFIG_FILE
7985 case $INSTALL in
7986 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7987 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7988 esac
7989 _ACEOF
7991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7992 # If the template does not know about datarootdir, expand it.
7993 # FIXME: This hack should be removed a few years after 2.60.
7994 ac_datarootdir_hack=; ac_datarootdir_seen=
7995 ac_sed_dataroot='
7996 /datarootdir/ {
8000 /@datadir@/p
8001 /@docdir@/p
8002 /@infodir@/p
8003 /@localedir@/p
8004 /@mandir@/p'
8005 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8006 *datarootdir*) ac_datarootdir_seen=yes;;
8007 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8009 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8010 _ACEOF
8011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8012 ac_datarootdir_hack='
8013 s&@datadir@&$datadir&g
8014 s&@docdir@&$docdir&g
8015 s&@infodir@&$infodir&g
8016 s&@localedir@&$localedir&g
8017 s&@mandir@&$mandir&g
8018 s&\\\${datarootdir}&$datarootdir&g' ;;
8019 esac
8020 _ACEOF
8022 # Neutralize VPATH when `$srcdir' = `.'.
8023 # Shell code in configure.ac might set extrasub.
8024 # FIXME: do we really want to maintain this feature?
8025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8026 ac_sed_extra="$ac_vpsub
8027 $extrasub
8028 _ACEOF
8029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8032 s|@configure_input@|$ac_sed_conf_input|;t t
8033 s&@top_builddir@&$ac_top_builddir_sub&;t t
8034 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8035 s&@srcdir@&$ac_srcdir&;t t
8036 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8037 s&@top_srcdir@&$ac_top_srcdir&;t t
8038 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8039 s&@builddir@&$ac_builddir&;t t
8040 s&@abs_builddir@&$ac_abs_builddir&;t t
8041 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8042 s&@INSTALL@&$ac_INSTALL&;t t
8043 $ac_datarootdir_hack
8045 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8046 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8048 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8049 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8050 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8051 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8053 which seems to be undefined. Please make sure it is defined" >&5
8054 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8055 which seems to be undefined. Please make sure it is defined" >&2;}
8057 rm -f "$ac_tmp/stdin"
8058 case $ac_file in
8059 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8060 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8061 esac \
8062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8066 # CONFIG_HEADER
8068 if test x"$ac_file" != x-; then
8070 $as_echo "/* $configure_input */" \
8071 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8072 } >"$ac_tmp/config.h" \
8073 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8074 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8076 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8077 else
8078 rm -f "$ac_file"
8079 mv "$ac_tmp/config.h" "$ac_file" \
8080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8082 else
8083 $as_echo "/* $configure_input */" \
8084 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8085 || as_fn_error $? "could not create -" "$LINENO" 5
8089 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8090 $as_echo "$as_me: executing $ac_file commands" >&6;}
8092 esac
8095 case $ac_file$ac_mode in
8096 "default-1":C)
8097 for ac_file in $CONFIG_FILES; do
8098 # Support "outfile[:infile[:infile...]]"
8099 case "$ac_file" in
8100 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8101 esac
8102 # PO directories have a Makefile.in generated from Makefile.in.in.
8103 case "$ac_file" in */Makefile.in)
8104 # Adjust a relative srcdir.
8105 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8106 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
8107 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8108 # In autoconf-2.13 it is called $ac_given_srcdir.
8109 # In autoconf-2.50 it is called $srcdir.
8110 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8111 case "$ac_given_srcdir" in
8112 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8113 /*) top_srcdir="$ac_given_srcdir" ;;
8114 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8115 esac
8116 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8117 rm -f "$ac_dir/POTFILES"
8118 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8119 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8120 POMAKEFILEDEPS="POTFILES.in"
8121 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
8122 # on $ac_dir but don't depend on user-specified configuration
8123 # parameters.
8124 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8125 # The LINGUAS file contains the set of available languages.
8126 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8127 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
8129 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8130 # Hide the ALL_LINGUAS assigment from automake.
8131 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8132 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8133 else
8134 # The set of available languages was given in configure.ac.
8135 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8137 case "$ac_given_srcdir" in
8138 .) srcdirpre= ;;
8139 *) srcdirpre='$(srcdir)/' ;;
8140 esac
8141 POFILES=
8142 GMOFILES=
8143 UPDATEPOFILES=
8144 DUMMYPOFILES=
8145 for lang in $ALL_LINGUAS; do
8146 POFILES="$POFILES $srcdirpre$lang.po"
8147 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8148 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8149 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8150 done
8151 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8152 # environment variable.
8153 INST_LINGUAS=
8154 if test -n "$ALL_LINGUAS"; then
8155 for presentlang in $ALL_LINGUAS; do
8156 useit=no
8157 if test "%UNSET%" != "$LINGUAS"; then
8158 desiredlanguages="$LINGUAS"
8159 else
8160 desiredlanguages="$ALL_LINGUAS"
8162 for desiredlang in $desiredlanguages; do
8163 # Use the presentlang catalog if desiredlang is
8164 # a. equal to presentlang, or
8165 # b. a variant of presentlang (because in this case,
8166 # presentlang can be used as a fallback for messages
8167 # which are not translated in the desiredlang catalog).
8168 case "$desiredlang" in
8169 "$presentlang"*) useit=yes;;
8170 esac
8171 done
8172 if test $useit = yes; then
8173 INST_LINGUAS="$INST_LINGUAS $presentlang"
8175 done
8177 CATALOGS=
8178 if test -n "$INST_LINGUAS"; then
8179 for lang in $INST_LINGUAS; do
8180 CATALOGS="$CATALOGS $lang.gmo"
8181 done
8183 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8184 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"
8185 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
8186 if test -f "$f"; then
8187 case "$f" in
8188 *.orig | *.bak | *~) ;;
8189 *) cat "$f" >> "$ac_dir/Makefile" ;;
8190 esac
8192 done
8195 esac
8196 done ;;
8198 esac
8199 done # for ac_tag
8202 as_fn_exit 0
8203 _ACEOF
8204 ac_clean_files=$ac_clean_files_save
8206 test $ac_write_fail = 0 ||
8207 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8210 # configure is writing to config.log, and then calls config.status.
8211 # config.status does its own redirection, appending to config.log.
8212 # Unfortunately, on DOS this fails, as config.log is still kept open
8213 # by configure, so config.status won't be able to write to it; its
8214 # output is simply discarded. So we exec the FD to /dev/null,
8215 # effectively closing config.log, so it can be properly (re)opened and
8216 # appended to by config.status. When coming back to configure, we
8217 # need to make the FD available again.
8218 if test "$no_create" != yes; then
8219 ac_cs_success=:
8220 ac_config_status_args=
8221 test "$silent" = yes &&
8222 ac_config_status_args="$ac_config_status_args --quiet"
8223 exec 5>/dev/null
8224 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8225 exec 5>>config.log
8226 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8227 # would make configure fail if this is the last instruction.
8228 $ac_cs_success || as_fn_exit 1
8230 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8232 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}