[PATCH 22/57][Arm][GAS] Add support for MVE instructions: vmlaldav, vmlalv, vmlsldav...
[binutils-gdb.git] / intl / configure
blob2f35993148e526cdb9ce68d04dae16a0e5d7b5ae
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 INCINTL
626 LIBINTL_DEP
627 MAINT
628 AUTOHEADER
629 AUTOCONF
630 ACLOCAL
631 POSUB
632 LTLIBINTL
633 LIBINTL
634 INTLLIBS
635 INTL_LIBTOOL_SUFFIX_PREFIX
636 INTLOBJS
637 GENCAT
638 INSTOBJEXT
639 DATADIRNAME
640 CATOBJEXT
641 USE_INCLUDED_LIBINTL
642 BUILD_INCLUDED_LIBINTL
643 INTLBISON
644 LTLIBICONV
645 LIBICONV
646 GLIBC21
647 ALLOCA
648 RANLIB
649 host_os
650 host_vendor
651 host_cpu
652 host
653 build_os
654 build_vendor
655 build_cpu
656 build
657 MSGMERGE
658 XGETTEXT
659 GMSGFMT
660 MSGFMT
661 USE_NLS
662 MKINSTALLDIRS
663 INSTALL_DATA
664 INSTALL_SCRIPT
665 INSTALL_PROGRAM
666 SET_MAKE
667 EGREP
668 GREP
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
677 target_alias
678 host_alias
679 build_alias
680 LIBS
681 ECHO_T
682 ECHO_N
683 ECHO_C
684 DEFS
685 mandir
686 localedir
687 libdir
688 psdir
689 pdfdir
690 dvidir
691 htmldir
692 infodir
693 docdir
694 oldincludedir
695 includedir
696 localstatedir
697 sharedstatedir
698 sysconfdir
699 datadir
700 datarootdir
701 libexecdir
702 sbindir
703 bindir
704 program_transform_name
705 prefix
706 exec_prefix
707 PACKAGE_URL
708 PACKAGE_BUGREPORT
709 PACKAGE_STRING
710 PACKAGE_VERSION
711 PACKAGE_TARNAME
712 PACKAGE_NAME
713 PATH_SEPARATOR
714 SHELL'
715 ac_subst_files=''
716 ac_user_opts='
717 enable_option_checking
718 enable_nls
719 with_gnu_ld
720 enable_rpath
721 with_libiconv_prefix
722 with_included_gettext
723 with_libintl_prefix
724 enable_maintainer_mode
726 ac_precious_vars='build_alias
727 host_alias
728 target_alias
730 CFLAGS
731 LDFLAGS
732 LIBS
733 CPPFLAGS
734 CPP'
737 # Initialize some variables set by options.
738 ac_init_help=
739 ac_init_version=false
740 ac_unrecognized_opts=
741 ac_unrecognized_sep=
742 # The variables have the same names as the options, with
743 # dashes changed to underlines.
744 cache_file=/dev/null
745 exec_prefix=NONE
746 no_create=
747 no_recursion=
748 prefix=NONE
749 program_prefix=NONE
750 program_suffix=NONE
751 program_transform_name=s,x,x,
752 silent=
753 site=
754 srcdir=
755 verbose=
756 x_includes=NONE
757 x_libraries=NONE
759 # Installation directory options.
760 # These are left unexpanded so users can "make install exec_prefix=/foo"
761 # and all the variables that are supposed to be based on exec_prefix
762 # by default will actually change.
763 # Use braces instead of parens because sh, perl, etc. also accept them.
764 # (The list follows the same order as the GNU Coding Standards.)
765 bindir='${exec_prefix}/bin'
766 sbindir='${exec_prefix}/sbin'
767 libexecdir='${exec_prefix}/libexec'
768 datarootdir='${prefix}/share'
769 datadir='${datarootdir}'
770 sysconfdir='${prefix}/etc'
771 sharedstatedir='${prefix}/com'
772 localstatedir='${prefix}/var'
773 includedir='${prefix}/include'
774 oldincludedir='/usr/include'
775 docdir='${datarootdir}/doc/${PACKAGE}'
776 infodir='${datarootdir}/info'
777 htmldir='${docdir}'
778 dvidir='${docdir}'
779 pdfdir='${docdir}'
780 psdir='${docdir}'
781 libdir='${exec_prefix}/lib'
782 localedir='${datarootdir}/locale'
783 mandir='${datarootdir}/man'
785 ac_prev=
786 ac_dashdash=
787 for ac_option
789 # If the previous option needs an argument, assign it.
790 if test -n "$ac_prev"; then
791 eval $ac_prev=\$ac_option
792 ac_prev=
793 continue
796 case $ac_option in
797 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
798 *=) ac_optarg= ;;
799 *) ac_optarg=yes ;;
800 esac
802 # Accept the important Cygnus configure options, so we can diagnose typos.
804 case $ac_dashdash$ac_option in
806 ac_dashdash=yes ;;
808 -bindir | --bindir | --bindi | --bind | --bin | --bi)
809 ac_prev=bindir ;;
810 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
811 bindir=$ac_optarg ;;
813 -build | --build | --buil | --bui | --bu)
814 ac_prev=build_alias ;;
815 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
816 build_alias=$ac_optarg ;;
818 -cache-file | --cache-file | --cache-fil | --cache-fi \
819 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
820 ac_prev=cache_file ;;
821 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
822 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
823 cache_file=$ac_optarg ;;
825 --config-cache | -C)
826 cache_file=config.cache ;;
828 -datadir | --datadir | --datadi | --datad)
829 ac_prev=datadir ;;
830 -datadir=* | --datadir=* | --datadi=* | --datad=*)
831 datadir=$ac_optarg ;;
833 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
834 | --dataroo | --dataro | --datar)
835 ac_prev=datarootdir ;;
836 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
837 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
838 datarootdir=$ac_optarg ;;
840 -disable-* | --disable-*)
841 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
842 # Reject names that are not valid shell variable names.
843 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
844 as_fn_error $? "invalid feature name: $ac_useropt"
845 ac_useropt_orig=$ac_useropt
846 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
847 case $ac_user_opts in
849 "enable_$ac_useropt"
850 "*) ;;
851 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
852 ac_unrecognized_sep=', ';;
853 esac
854 eval enable_$ac_useropt=no ;;
856 -docdir | --docdir | --docdi | --doc | --do)
857 ac_prev=docdir ;;
858 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
859 docdir=$ac_optarg ;;
861 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
862 ac_prev=dvidir ;;
863 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
864 dvidir=$ac_optarg ;;
866 -enable-* | --enable-*)
867 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870 as_fn_error $? "invalid feature name: $ac_useropt"
871 ac_useropt_orig=$ac_useropt
872 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873 case $ac_user_opts in
875 "enable_$ac_useropt"
876 "*) ;;
877 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
878 ac_unrecognized_sep=', ';;
879 esac
880 eval enable_$ac_useropt=\$ac_optarg ;;
882 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
883 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
884 | --exec | --exe | --ex)
885 ac_prev=exec_prefix ;;
886 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
887 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
888 | --exec=* | --exe=* | --ex=*)
889 exec_prefix=$ac_optarg ;;
891 -gas | --gas | --ga | --g)
892 # Obsolete; use --with-gas.
893 with_gas=yes ;;
895 -help | --help | --hel | --he | -h)
896 ac_init_help=long ;;
897 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
898 ac_init_help=recursive ;;
899 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
900 ac_init_help=short ;;
902 -host | --host | --hos | --ho)
903 ac_prev=host_alias ;;
904 -host=* | --host=* | --hos=* | --ho=*)
905 host_alias=$ac_optarg ;;
907 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
908 ac_prev=htmldir ;;
909 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
910 | --ht=*)
911 htmldir=$ac_optarg ;;
913 -includedir | --includedir | --includedi | --included | --include \
914 | --includ | --inclu | --incl | --inc)
915 ac_prev=includedir ;;
916 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
917 | --includ=* | --inclu=* | --incl=* | --inc=*)
918 includedir=$ac_optarg ;;
920 -infodir | --infodir | --infodi | --infod | --info | --inf)
921 ac_prev=infodir ;;
922 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
923 infodir=$ac_optarg ;;
925 -libdir | --libdir | --libdi | --libd)
926 ac_prev=libdir ;;
927 -libdir=* | --libdir=* | --libdi=* | --libd=*)
928 libdir=$ac_optarg ;;
930 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
931 | --libexe | --libex | --libe)
932 ac_prev=libexecdir ;;
933 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
934 | --libexe=* | --libex=* | --libe=*)
935 libexecdir=$ac_optarg ;;
937 -localedir | --localedir | --localedi | --localed | --locale)
938 ac_prev=localedir ;;
939 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
940 localedir=$ac_optarg ;;
942 -localstatedir | --localstatedir | --localstatedi | --localstated \
943 | --localstate | --localstat | --localsta | --localst | --locals)
944 ac_prev=localstatedir ;;
945 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
946 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
947 localstatedir=$ac_optarg ;;
949 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
950 ac_prev=mandir ;;
951 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
952 mandir=$ac_optarg ;;
954 -nfp | --nfp | --nf)
955 # Obsolete; use --without-fp.
956 with_fp=no ;;
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959 | --no-cr | --no-c | -n)
960 no_create=yes ;;
962 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
963 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
964 no_recursion=yes ;;
966 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
967 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
968 | --oldin | --oldi | --old | --ol | --o)
969 ac_prev=oldincludedir ;;
970 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
971 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
972 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
973 oldincludedir=$ac_optarg ;;
975 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
976 ac_prev=prefix ;;
977 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
978 prefix=$ac_optarg ;;
980 -program-prefix | --program-prefix | --program-prefi | --program-pref \
981 | --program-pre | --program-pr | --program-p)
982 ac_prev=program_prefix ;;
983 -program-prefix=* | --program-prefix=* | --program-prefi=* \
984 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
985 program_prefix=$ac_optarg ;;
987 -program-suffix | --program-suffix | --program-suffi | --program-suff \
988 | --program-suf | --program-su | --program-s)
989 ac_prev=program_suffix ;;
990 -program-suffix=* | --program-suffix=* | --program-suffi=* \
991 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
992 program_suffix=$ac_optarg ;;
994 -program-transform-name | --program-transform-name \
995 | --program-transform-nam | --program-transform-na \
996 | --program-transform-n | --program-transform- \
997 | --program-transform | --program-transfor \
998 | --program-transfo | --program-transf \
999 | --program-trans | --program-tran \
1000 | --progr-tra | --program-tr | --program-t)
1001 ac_prev=program_transform_name ;;
1002 -program-transform-name=* | --program-transform-name=* \
1003 | --program-transform-nam=* | --program-transform-na=* \
1004 | --program-transform-n=* | --program-transform-=* \
1005 | --program-transform=* | --program-transfor=* \
1006 | --program-transfo=* | --program-transf=* \
1007 | --program-trans=* | --program-tran=* \
1008 | --progr-tra=* | --program-tr=* | --program-t=*)
1009 program_transform_name=$ac_optarg ;;
1011 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1012 ac_prev=pdfdir ;;
1013 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1014 pdfdir=$ac_optarg ;;
1016 -psdir | --psdir | --psdi | --psd | --ps)
1017 ac_prev=psdir ;;
1018 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1019 psdir=$ac_optarg ;;
1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1023 silent=yes ;;
1025 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1026 ac_prev=sbindir ;;
1027 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1028 | --sbi=* | --sb=*)
1029 sbindir=$ac_optarg ;;
1031 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1032 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1033 | --sharedst | --shareds | --shared | --share | --shar \
1034 | --sha | --sh)
1035 ac_prev=sharedstatedir ;;
1036 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1037 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1038 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1039 | --sha=* | --sh=*)
1040 sharedstatedir=$ac_optarg ;;
1042 -site | --site | --sit)
1043 ac_prev=site ;;
1044 -site=* | --site=* | --sit=*)
1045 site=$ac_optarg ;;
1047 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1048 ac_prev=srcdir ;;
1049 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1050 srcdir=$ac_optarg ;;
1052 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1053 | --syscon | --sysco | --sysc | --sys | --sy)
1054 ac_prev=sysconfdir ;;
1055 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1056 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1057 sysconfdir=$ac_optarg ;;
1059 -target | --target | --targe | --targ | --tar | --ta | --t)
1060 ac_prev=target_alias ;;
1061 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1062 target_alias=$ac_optarg ;;
1064 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1065 verbose=yes ;;
1067 -version | --version | --versio | --versi | --vers | -V)
1068 ac_init_version=: ;;
1070 -with-* | --with-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error $? "invalid package name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "with_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval with_$ac_useropt=\$ac_optarg ;;
1086 -without-* | --without-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error $? "invalid package name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1095 "with_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval with_$ac_useropt=no ;;
1102 --x)
1103 # Obsolete; use --with-x.
1104 with_x=yes ;;
1106 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1107 | --x-incl | --x-inc | --x-in | --x-i)
1108 ac_prev=x_includes ;;
1109 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1110 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1111 x_includes=$ac_optarg ;;
1113 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1114 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1115 ac_prev=x_libraries ;;
1116 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1117 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1118 x_libraries=$ac_optarg ;;
1120 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1121 Try \`$0 --help' for more information"
1124 *=*)
1125 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1126 # Reject names that are not valid shell variable names.
1127 case $ac_envvar in #(
1128 '' | [0-9]* | *[!_$as_cr_alnum]* )
1129 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1130 esac
1131 eval $ac_envvar=\$ac_optarg
1132 export $ac_envvar ;;
1135 # FIXME: should be removed in autoconf 3.0.
1136 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1137 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1138 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1139 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1142 esac
1143 done
1145 if test -n "$ac_prev"; then
1146 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1147 as_fn_error $? "missing argument to $ac_option"
1150 if test -n "$ac_unrecognized_opts"; then
1151 case $enable_option_checking in
1152 no) ;;
1153 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1154 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1155 esac
1158 # Check all directory arguments for consistency.
1159 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1160 datadir sysconfdir sharedstatedir localstatedir includedir \
1161 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1162 libdir localedir mandir
1164 eval ac_val=\$$ac_var
1165 # Remove trailing slashes.
1166 case $ac_val in
1167 */ )
1168 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1169 eval $ac_var=\$ac_val;;
1170 esac
1171 # Be sure to have absolute directory names.
1172 case $ac_val in
1173 [\\/$]* | ?:[\\/]* ) continue;;
1174 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1175 esac
1176 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1177 done
1179 # There might be people who depend on the old broken behavior: `$host'
1180 # used to hold the argument of --host etc.
1181 # FIXME: To remove some day.
1182 build=$build_alias
1183 host=$host_alias
1184 target=$target_alias
1186 # FIXME: To remove some day.
1187 if test "x$host_alias" != x; then
1188 if test "x$build_alias" = x; then
1189 cross_compiling=maybe
1190 elif test "x$build_alias" != "x$host_alias"; then
1191 cross_compiling=yes
1195 ac_tool_prefix=
1196 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1198 test "$silent" = yes && exec 6>/dev/null
1201 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1202 ac_ls_di=`ls -di .` &&
1203 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1204 as_fn_error $? "working directory cannot be determined"
1205 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1206 as_fn_error $? "pwd does not report name of working directory"
1209 # Find the source files, if location was not specified.
1210 if test -z "$srcdir"; then
1211 ac_srcdir_defaulted=yes
1212 # Try the directory containing this script, then the parent directory.
1213 ac_confdir=`$as_dirname -- "$as_myself" ||
1214 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1215 X"$as_myself" : 'X\(//\)[^/]' \| \
1216 X"$as_myself" : 'X\(//\)$' \| \
1217 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1218 $as_echo X"$as_myself" |
1219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1220 s//\1/
1223 /^X\(\/\/\)[^/].*/{
1224 s//\1/
1227 /^X\(\/\/\)$/{
1228 s//\1/
1231 /^X\(\/\).*/{
1232 s//\1/
1235 s/.*/./; q'`
1236 srcdir=$ac_confdir
1237 if test ! -r "$srcdir/$ac_unique_file"; then
1238 srcdir=..
1240 else
1241 ac_srcdir_defaulted=no
1243 if test ! -r "$srcdir/$ac_unique_file"; then
1244 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1245 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1247 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1248 ac_abs_confdir=`(
1249 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1250 pwd)`
1251 # When building in place, set srcdir=.
1252 if test "$ac_abs_confdir" = "$ac_pwd"; then
1253 srcdir=.
1255 # Remove unnecessary trailing slashes from srcdir.
1256 # Double slashes in file names in object file debugging info
1257 # mess up M-x gdb in Emacs.
1258 case $srcdir in
1259 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1260 esac
1261 for ac_var in $ac_precious_vars; do
1262 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1263 eval ac_env_${ac_var}_value=\$${ac_var}
1264 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1265 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1266 done
1269 # Report the --help message.
1271 if test "$ac_init_help" = "long"; then
1272 # Omit some internal or obsolete options to make the list less imposing.
1273 # This message is too long to be a string in the A/UX 3.1 sh.
1274 cat <<_ACEOF
1275 \`configure' configures this package to adapt to many kinds of systems.
1277 Usage: $0 [OPTION]... [VAR=VALUE]...
1279 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1280 VAR=VALUE. See below for descriptions of some of the useful variables.
1282 Defaults for the options are specified in brackets.
1284 Configuration:
1285 -h, --help display this help and exit
1286 --help=short display options specific to this package
1287 --help=recursive display the short help of all the included packages
1288 -V, --version display version information and exit
1289 -q, --quiet, --silent do not print \`checking ...' messages
1290 --cache-file=FILE cache test results in FILE [disabled]
1291 -C, --config-cache alias for \`--cache-file=config.cache'
1292 -n, --no-create do not create output files
1293 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1295 Installation directories:
1296 --prefix=PREFIX install architecture-independent files in PREFIX
1297 [$ac_default_prefix]
1298 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1299 [PREFIX]
1301 By default, \`make install' will install all the files in
1302 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1303 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1304 for instance \`--prefix=\$HOME'.
1306 For better control, use the options below.
1308 Fine tuning of the installation directories:
1309 --bindir=DIR user executables [EPREFIX/bin]
1310 --sbindir=DIR system admin executables [EPREFIX/sbin]
1311 --libexecdir=DIR program executables [EPREFIX/libexec]
1312 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1313 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1314 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1315 --libdir=DIR object code libraries [EPREFIX/lib]
1316 --includedir=DIR C header files [PREFIX/include]
1317 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1318 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1319 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1320 --infodir=DIR info documentation [DATAROOTDIR/info]
1321 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1322 --mandir=DIR man documentation [DATAROOTDIR/man]
1323 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1324 --htmldir=DIR html documentation [DOCDIR]
1325 --dvidir=DIR dvi documentation [DOCDIR]
1326 --pdfdir=DIR pdf documentation [DOCDIR]
1327 --psdir=DIR ps documentation [DOCDIR]
1328 _ACEOF
1330 cat <<\_ACEOF
1332 System types:
1333 --build=BUILD configure for building on BUILD [guessed]
1334 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1335 _ACEOF
1338 if test -n "$ac_init_help"; then
1340 cat <<\_ACEOF
1342 Optional Features:
1343 --disable-option-checking ignore unrecognized --enable/--with options
1344 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1345 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1346 --disable-nls do not use Native Language Support
1347 --disable-rpath do not hardcode runtime library paths
1348 --enable-maintainer-mode enable rules only needed by maintainers
1350 Optional Packages:
1351 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1352 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1353 --with-gnu-ld assume the C compiler uses GNU ld default=no
1354 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1355 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1356 --with-included-gettext use the GNU gettext library included here
1357 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1358 --without-libintl-prefix don't search for libintl in includedir and libdir
1360 Some influential environment variables:
1361 CC C compiler command
1362 CFLAGS C compiler flags
1363 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1364 nonstandard directory <lib dir>
1365 LIBS libraries to pass to the linker, e.g. -l<library>
1366 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1367 you have headers in a nonstandard directory <include dir>
1368 CPP C preprocessor
1370 Use these variables to override the choices made by `configure' or to help
1371 it to find libraries and programs with nonstandard names/locations.
1373 Report bugs to the package provider.
1374 _ACEOF
1375 ac_status=$?
1378 if test "$ac_init_help" = "recursive"; then
1379 # If there are subdirs, report their specific --help.
1380 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1381 test -d "$ac_dir" ||
1382 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1383 continue
1384 ac_builddir=.
1386 case "$ac_dir" in
1387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1390 # A ".." for each directory in $ac_dir_suffix.
1391 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1392 case $ac_top_builddir_sub in
1393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1395 esac ;;
1396 esac
1397 ac_abs_top_builddir=$ac_pwd
1398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1399 # for backward compatibility:
1400 ac_top_builddir=$ac_top_build_prefix
1402 case $srcdir in
1403 .) # We are building in place.
1404 ac_srcdir=.
1405 ac_top_srcdir=$ac_top_builddir_sub
1406 ac_abs_top_srcdir=$ac_pwd ;;
1407 [\\/]* | ?:[\\/]* ) # Absolute name.
1408 ac_srcdir=$srcdir$ac_dir_suffix;
1409 ac_top_srcdir=$srcdir
1410 ac_abs_top_srcdir=$srcdir ;;
1411 *) # Relative name.
1412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1413 ac_top_srcdir=$ac_top_build_prefix$srcdir
1414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1415 esac
1416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1418 cd "$ac_dir" || { ac_status=$?; continue; }
1419 # Check for guested configure.
1420 if test -f "$ac_srcdir/configure.gnu"; then
1421 echo &&
1422 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1423 elif test -f "$ac_srcdir/configure"; then
1424 echo &&
1425 $SHELL "$ac_srcdir/configure" --help=recursive
1426 else
1427 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1428 fi || ac_status=$?
1429 cd "$ac_pwd" || { ac_status=$?; break; }
1430 done
1433 test -n "$ac_init_help" && exit $ac_status
1434 if $ac_init_version; then
1435 cat <<\_ACEOF
1436 configure
1437 generated by GNU Autoconf 2.69
1439 Copyright (C) 2012 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1442 _ACEOF
1443 exit
1446 ## ------------------------ ##
1447 ## Autoconf initialization. ##
1448 ## ------------------------ ##
1450 # ac_fn_c_try_compile LINENO
1451 # --------------------------
1452 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1453 ac_fn_c_try_compile ()
1455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1456 rm -f conftest.$ac_objext
1457 if { { ac_try="$ac_compile"
1458 case "(($ac_try" in
1459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1460 *) ac_try_echo=$ac_try;;
1461 esac
1462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1463 $as_echo "$ac_try_echo"; } >&5
1464 (eval "$ac_compile") 2>conftest.err
1465 ac_status=$?
1466 if test -s conftest.err; then
1467 grep -v '^ *+' conftest.err >conftest.er1
1468 cat conftest.er1 >&5
1469 mv -f conftest.er1 conftest.err
1471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1472 test $ac_status = 0; } && {
1473 test -z "$ac_c_werror_flag" ||
1474 test ! -s conftest.err
1475 } && test -s conftest.$ac_objext; then :
1476 ac_retval=0
1477 else
1478 $as_echo "$as_me: failed program was:" >&5
1479 sed 's/^/| /' conftest.$ac_ext >&5
1481 ac_retval=1
1483 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1484 as_fn_set_status $ac_retval
1486 } # ac_fn_c_try_compile
1488 # ac_fn_c_try_cpp LINENO
1489 # ----------------------
1490 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1491 ac_fn_c_try_cpp ()
1493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1494 if { { ac_try="$ac_cpp conftest.$ac_ext"
1495 case "(($ac_try" in
1496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1497 *) ac_try_echo=$ac_try;;
1498 esac
1499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1500 $as_echo "$ac_try_echo"; } >&5
1501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1502 ac_status=$?
1503 if test -s conftest.err; then
1504 grep -v '^ *+' conftest.err >conftest.er1
1505 cat conftest.er1 >&5
1506 mv -f conftest.er1 conftest.err
1508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1509 test $ac_status = 0; } > conftest.i && {
1510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1511 test ! -s conftest.err
1512 }; then :
1513 ac_retval=0
1514 else
1515 $as_echo "$as_me: failed program was:" >&5
1516 sed 's/^/| /' conftest.$ac_ext >&5
1518 ac_retval=1
1520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1521 as_fn_set_status $ac_retval
1523 } # ac_fn_c_try_cpp
1525 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1526 # -------------------------------------------------------
1527 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1528 # the include files in INCLUDES and setting the cache variable VAR
1529 # accordingly.
1530 ac_fn_c_check_header_mongrel ()
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 if eval \${$3+:} false; then :
1534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1535 $as_echo_n "checking for $2... " >&6; }
1536 if eval \${$3+:} false; then :
1537 $as_echo_n "(cached) " >&6
1539 eval ac_res=\$$3
1540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1541 $as_echo "$ac_res" >&6; }
1542 else
1543 # Is the header compilable?
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1545 $as_echo_n "checking $2 usability... " >&6; }
1546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1547 /* end confdefs.h. */
1549 #include <$2>
1550 _ACEOF
1551 if ac_fn_c_try_compile "$LINENO"; then :
1552 ac_header_compiler=yes
1553 else
1554 ac_header_compiler=no
1556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1558 $as_echo "$ac_header_compiler" >&6; }
1560 # Is the header present?
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1562 $as_echo_n "checking $2 presence... " >&6; }
1563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1564 /* end confdefs.h. */
1565 #include <$2>
1566 _ACEOF
1567 if ac_fn_c_try_cpp "$LINENO"; then :
1568 ac_header_preproc=yes
1569 else
1570 ac_header_preproc=no
1572 rm -f conftest.err conftest.i conftest.$ac_ext
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1574 $as_echo "$ac_header_preproc" >&6; }
1576 # So? What about this header?
1577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1578 yes:no: )
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1580 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1582 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1584 no:yes:* )
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1586 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1588 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1590 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1592 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1594 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1596 esac
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1598 $as_echo_n "checking for $2... " >&6; }
1599 if eval \${$3+:} false; then :
1600 $as_echo_n "(cached) " >&6
1601 else
1602 eval "$3=\$ac_header_compiler"
1604 eval ac_res=\$$3
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1606 $as_echo "$ac_res" >&6; }
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 } # ac_fn_c_check_header_mongrel
1612 # ac_fn_c_try_run LINENO
1613 # ----------------------
1614 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1615 # that executables *can* be run.
1616 ac_fn_c_try_run ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 if { { ac_try="$ac_link"
1620 case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_link") 2>&5
1627 ac_status=$?
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1630 { { case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_try") 2>&5
1637 ac_status=$?
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; }; }; then :
1640 ac_retval=0
1641 else
1642 $as_echo "$as_me: program exited with status $ac_status" >&5
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1646 ac_retval=$ac_status
1648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1652 } # ac_fn_c_try_run
1654 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655 # -------------------------------------------------------
1656 # Tests whether HEADER exists and can be compiled using the include files in
1657 # INCLUDES, setting the cache variable VAR accordingly.
1658 ac_fn_c_check_header_compile ()
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \${$3+:} false; then :
1664 $as_echo_n "(cached) " >&6
1665 else
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1669 #include <$2>
1670 _ACEOF
1671 if ac_fn_c_try_compile "$LINENO"; then :
1672 eval "$3=yes"
1673 else
1674 eval "$3=no"
1676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 eval ac_res=\$$3
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 } # ac_fn_c_check_header_compile
1685 # ac_fn_c_try_link LINENO
1686 # -----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_link ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 rm -f conftest.$ac_objext conftest$ac_exeext
1692 if { { ac_try="$ac_link"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest$ac_exeext && {
1711 test "$cross_compiling" = yes ||
1712 test -x conftest$ac_exeext
1713 }; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1719 ac_retval=1
1721 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1722 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1723 # interfere with the next link command; also delete a directory that is
1724 # left behind by Apple's compiler. We do this before executing the actions.
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1729 } # ac_fn_c_try_link
1731 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1732 # -------------------------------------------
1733 # Tests whether TYPE exists after having included INCLUDES, setting cache
1734 # variable VAR accordingly.
1735 ac_fn_c_check_type ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1742 else
1743 eval "$3=no"
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1748 main ()
1750 if (sizeof ($2))
1751 return 0;
1753 return 0;
1755 _ACEOF
1756 if ac_fn_c_try_compile "$LINENO"; then :
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1761 main ()
1763 if (sizeof (($2)))
1764 return 0;
1766 return 0;
1768 _ACEOF
1769 if ac_fn_c_try_compile "$LINENO"; then :
1771 else
1772 eval "$3=yes"
1774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778 eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 } # ac_fn_c_check_type
1785 # ac_fn_c_check_func LINENO FUNC VAR
1786 # ----------------------------------
1787 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1788 ac_fn_c_check_func ()
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1795 else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1800 #define $2 innocuous_$2
1802 /* System header to define __stub macros and hopefully few prototypes,
1803 which can conflict with char $2 (); below.
1804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1805 <limits.h> exists even on freestanding compilers. */
1807 #ifdef __STDC__
1808 # include <limits.h>
1809 #else
1810 # include <assert.h>
1811 #endif
1813 #undef $2
1815 /* Override any GCC internal prototype to avoid an error.
1816 Use char because int might match the return type of a GCC
1817 builtin and then its argument prototype would still apply. */
1818 #ifdef __cplusplus
1819 extern "C"
1820 #endif
1821 char $2 ();
1822 /* The GNU C library defines this for functions which it implements
1823 to always fail with ENOSYS. Some functions are actually named
1824 something starting with __ and the normal name is an alias. */
1825 #if defined __stub_$2 || defined __stub___$2
1826 choke me
1827 #endif
1830 main ()
1832 return $2 ();
1834 return 0;
1836 _ACEOF
1837 if ac_fn_c_try_link "$LINENO"; then :
1838 eval "$3=yes"
1839 else
1840 eval "$3=no"
1842 rm -f core conftest.err conftest.$ac_objext \
1843 conftest$ac_exeext conftest.$ac_ext
1845 eval ac_res=\$$3
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 } # ac_fn_c_check_func
1851 cat >config.log <<_ACEOF
1852 This file contains any messages produced by compilers while
1853 running configure, to aid debugging if configure makes a mistake.
1855 It was created by $as_me, which was
1856 generated by GNU Autoconf 2.69. Invocation command line was
1858 $ $0 $@
1860 _ACEOF
1861 exec 5>>config.log
1863 cat <<_ASUNAME
1864 ## --------- ##
1865 ## Platform. ##
1866 ## --------- ##
1868 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1869 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1870 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1871 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1872 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1874 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1875 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1877 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1878 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1879 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1880 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1881 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1882 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1883 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1885 _ASUNAME
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 for as_dir in $PATH
1890 IFS=$as_save_IFS
1891 test -z "$as_dir" && as_dir=.
1892 $as_echo "PATH: $as_dir"
1893 done
1894 IFS=$as_save_IFS
1896 } >&5
1898 cat >&5 <<_ACEOF
1901 ## ----------- ##
1902 ## Core tests. ##
1903 ## ----------- ##
1905 _ACEOF
1908 # Keep a trace of the command line.
1909 # Strip out --no-create and --no-recursion so they do not pile up.
1910 # Strip out --silent because we don't want to record it for future runs.
1911 # Also quote any args containing shell meta-characters.
1912 # Make two passes to allow for proper duplicate-argument suppression.
1913 ac_configure_args=
1914 ac_configure_args0=
1915 ac_configure_args1=
1916 ac_must_keep_next=false
1917 for ac_pass in 1 2
1919 for ac_arg
1921 case $ac_arg in
1922 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1924 | -silent | --silent | --silen | --sile | --sil)
1925 continue ;;
1926 *\'*)
1927 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1928 esac
1929 case $ac_pass in
1930 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1932 as_fn_append ac_configure_args1 " '$ac_arg'"
1933 if test $ac_must_keep_next = true; then
1934 ac_must_keep_next=false # Got value, back to normal.
1935 else
1936 case $ac_arg in
1937 *=* | --config-cache | -C | -disable-* | --disable-* \
1938 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1939 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1940 | -with-* | --with-* | -without-* | --without-* | --x)
1941 case "$ac_configure_args0 " in
1942 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1943 esac
1945 -* ) ac_must_keep_next=true ;;
1946 esac
1948 as_fn_append ac_configure_args " '$ac_arg'"
1950 esac
1951 done
1952 done
1953 { ac_configure_args0=; unset ac_configure_args0;}
1954 { ac_configure_args1=; unset ac_configure_args1;}
1956 # When interrupted or exit'd, cleanup temporary files, and complete
1957 # config.log. We remove comments because anyway the quotes in there
1958 # would cause problems or look ugly.
1959 # WARNING: Use '\'' to represent an apostrophe within the trap.
1960 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1961 trap 'exit_status=$?
1962 # Save into config.log some information that might help in debugging.
1964 echo
1966 $as_echo "## ---------------- ##
1967 ## Cache variables. ##
1968 ## ---------------- ##"
1969 echo
1970 # The following way of writing the cache mishandles newlines in values,
1972 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1973 eval ac_val=\$$ac_var
1974 case $ac_val in #(
1975 *${as_nl}*)
1976 case $ac_var in #(
1977 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1978 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1979 esac
1980 case $ac_var in #(
1981 _ | IFS | as_nl) ;; #(
1982 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1983 *) { eval $ac_var=; unset $ac_var;} ;;
1984 esac ;;
1985 esac
1986 done
1987 (set) 2>&1 |
1988 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1989 *${as_nl}ac_space=\ *)
1990 sed -n \
1991 "s/'\''/'\''\\\\'\'''\''/g;
1992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1993 ;; #(
1995 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1997 esac |
1998 sort
2000 echo
2002 $as_echo "## ----------------- ##
2003 ## Output variables. ##
2004 ## ----------------- ##"
2005 echo
2006 for ac_var in $ac_subst_vars
2008 eval ac_val=\$$ac_var
2009 case $ac_val in
2010 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011 esac
2012 $as_echo "$ac_var='\''$ac_val'\''"
2013 done | sort
2014 echo
2016 if test -n "$ac_subst_files"; then
2017 $as_echo "## ------------------- ##
2018 ## File substitutions. ##
2019 ## ------------------- ##"
2020 echo
2021 for ac_var in $ac_subst_files
2023 eval ac_val=\$$ac_var
2024 case $ac_val in
2025 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026 esac
2027 $as_echo "$ac_var='\''$ac_val'\''"
2028 done | sort
2029 echo
2032 if test -s confdefs.h; then
2033 $as_echo "## ----------- ##
2034 ## confdefs.h. ##
2035 ## ----------- ##"
2036 echo
2037 cat confdefs.h
2038 echo
2040 test "$ac_signal" != 0 &&
2041 $as_echo "$as_me: caught signal $ac_signal"
2042 $as_echo "$as_me: exit $exit_status"
2043 } >&5
2044 rm -f core *.core core.conftest.* &&
2045 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2046 exit $exit_status
2048 for ac_signal in 1 2 13 15; do
2049 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2050 done
2051 ac_signal=0
2053 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2054 rm -f -r conftest* confdefs.h
2056 $as_echo "/* confdefs.h */" > confdefs.h
2058 # Predefined preprocessor variables.
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_NAME "$PACKAGE_NAME"
2062 _ACEOF
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2066 _ACEOF
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2070 _ACEOF
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_STRING "$PACKAGE_STRING"
2074 _ACEOF
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2078 _ACEOF
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_URL "$PACKAGE_URL"
2082 _ACEOF
2085 # Let the site file select an alternate cache file if it wants to.
2086 # Prefer an explicitly selected file to automatically selected ones.
2087 ac_site_file1=NONE
2088 ac_site_file2=NONE
2089 if test -n "$CONFIG_SITE"; then
2090 # We do not want a PATH search for config.site.
2091 case $CONFIG_SITE in #((
2092 -*) ac_site_file1=./$CONFIG_SITE;;
2093 */*) ac_site_file1=$CONFIG_SITE;;
2094 *) ac_site_file1=./$CONFIG_SITE;;
2095 esac
2096 elif test "x$prefix" != xNONE; then
2097 ac_site_file1=$prefix/share/config.site
2098 ac_site_file2=$prefix/etc/config.site
2099 else
2100 ac_site_file1=$ac_default_prefix/share/config.site
2101 ac_site_file2=$ac_default_prefix/etc/config.site
2103 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2105 test "x$ac_site_file" = xNONE && continue
2106 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2108 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2109 sed 's/^/| /' "$ac_site_file" >&5
2110 . "$ac_site_file" \
2111 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2113 as_fn_error $? "failed to load site script $ac_site_file
2114 See \`config.log' for more details" "$LINENO" 5; }
2116 done
2118 if test -r "$cache_file"; then
2119 # Some versions of bash will fail to source /dev/null (special files
2120 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2121 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2123 $as_echo "$as_me: loading cache $cache_file" >&6;}
2124 case $cache_file in
2125 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2126 *) . "./$cache_file";;
2127 esac
2129 else
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2131 $as_echo "$as_me: creating cache $cache_file" >&6;}
2132 >$cache_file
2135 as_fn_append ac_header_list " stdlib.h"
2136 as_fn_append ac_header_list " unistd.h"
2137 as_fn_append ac_header_list " sys/param.h"
2138 # Check that the precious variables saved in the cache have kept the same
2139 # value.
2140 ac_cache_corrupted=false
2141 for ac_var in $ac_precious_vars; do
2142 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2143 eval ac_new_set=\$ac_env_${ac_var}_set
2144 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2145 eval ac_new_val=\$ac_env_${ac_var}_value
2146 case $ac_old_set,$ac_new_set in
2147 set,)
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2149 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2150 ac_cache_corrupted=: ;;
2151 ,set)
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2153 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2154 ac_cache_corrupted=: ;;
2155 ,);;
2157 if test "x$ac_old_val" != "x$ac_new_val"; then
2158 # differences in whitespace do not lead to failure.
2159 ac_old_val_w=`echo x $ac_old_val`
2160 ac_new_val_w=`echo x $ac_new_val`
2161 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2163 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2164 ac_cache_corrupted=:
2165 else
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2167 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2168 eval $ac_var=\$ac_old_val
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2171 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2173 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2174 fi;;
2175 esac
2176 # Pass precious variables to config.status.
2177 if test "$ac_new_set" = set; then
2178 case $ac_new_val in
2179 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2180 *) ac_arg=$ac_var=$ac_new_val ;;
2181 esac
2182 case " $ac_configure_args " in
2183 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2184 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2185 esac
2187 done
2188 if $ac_cache_corrupted; then
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2192 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2193 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2195 ## -------------------- ##
2196 ## Main body of script. ##
2197 ## -------------------- ##
2199 ac_ext=c
2200 ac_cpp='$CPP $CPPFLAGS'
2201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2209 ac_ext=c
2210 ac_cpp='$CPP $CPPFLAGS'
2211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2214 if test -n "$ac_tool_prefix"; then
2215 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2216 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2218 $as_echo_n "checking for $ac_word... " >&6; }
2219 if ${ac_cv_prog_CC+:} false; then :
2220 $as_echo_n "(cached) " >&6
2221 else
2222 if test -n "$CC"; then
2223 ac_cv_prog_CC="$CC" # Let the user override the test.
2224 else
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 for ac_exec_ext in '' $ac_executable_extensions; do
2231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2232 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 break 2
2236 done
2237 done
2238 IFS=$as_save_IFS
2242 CC=$ac_cv_prog_CC
2243 if test -n "$CC"; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2245 $as_echo "$CC" >&6; }
2246 else
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2248 $as_echo "no" >&6; }
2253 if test -z "$ac_cv_prog_CC"; then
2254 ac_ct_CC=$CC
2255 # Extract the first word of "gcc", so it can be a program name with args.
2256 set dummy gcc; ac_word=$2
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2258 $as_echo_n "checking for $ac_word... " >&6; }
2259 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2260 $as_echo_n "(cached) " >&6
2261 else
2262 if test -n "$ac_ct_CC"; then
2263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2264 else
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272 ac_cv_prog_ac_ct_CC="gcc"
2273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 break 2
2276 done
2277 done
2278 IFS=$as_save_IFS
2282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2283 if test -n "$ac_ct_CC"; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2285 $as_echo "$ac_ct_CC" >&6; }
2286 else
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2288 $as_echo "no" >&6; }
2291 if test "x$ac_ct_CC" = x; then
2292 CC=""
2293 else
2294 case $cross_compiling:$ac_tool_warned in
2295 yes:)
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2298 ac_tool_warned=yes ;;
2299 esac
2300 CC=$ac_ct_CC
2302 else
2303 CC="$ac_cv_prog_CC"
2306 if test -z "$CC"; then
2307 if test -n "$ac_tool_prefix"; then
2308 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2309 set dummy ${ac_tool_prefix}cc; ac_word=$2
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2311 $as_echo_n "checking for $ac_word... " >&6; }
2312 if ${ac_cv_prog_CC+:} false; then :
2313 $as_echo_n "(cached) " >&6
2314 else
2315 if test -n "$CC"; then
2316 ac_cv_prog_CC="$CC" # Let the user override the test.
2317 else
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2325 ac_cv_prog_CC="${ac_tool_prefix}cc"
2326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 break 2
2329 done
2330 done
2331 IFS=$as_save_IFS
2335 CC=$ac_cv_prog_CC
2336 if test -n "$CC"; then
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2338 $as_echo "$CC" >&6; }
2339 else
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2341 $as_echo "no" >&6; }
2347 if test -z "$CC"; then
2348 # Extract the first word of "cc", so it can be a program name with args.
2349 set dummy cc; ac_word=$2
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2351 $as_echo_n "checking for $ac_word... " >&6; }
2352 if ${ac_cv_prog_CC+:} false; then :
2353 $as_echo_n "(cached) " >&6
2354 else
2355 if test -n "$CC"; then
2356 ac_cv_prog_CC="$CC" # Let the user override the test.
2357 else
2358 ac_prog_rejected=no
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2366 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2367 ac_prog_rejected=yes
2368 continue
2370 ac_cv_prog_CC="cc"
2371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 break 2
2374 done
2375 done
2376 IFS=$as_save_IFS
2378 if test $ac_prog_rejected = yes; then
2379 # We found a bogon in the path, so make sure we never use it.
2380 set dummy $ac_cv_prog_CC
2381 shift
2382 if test $# != 0; then
2383 # We chose a different compiler from the bogus one.
2384 # However, it has the same basename, so the bogon will be chosen
2385 # first if we set CC to just the basename; use the full file name.
2386 shift
2387 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2392 CC=$ac_cv_prog_CC
2393 if test -n "$CC"; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2395 $as_echo "$CC" >&6; }
2396 else
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2398 $as_echo "no" >&6; }
2403 if test -z "$CC"; then
2404 if test -n "$ac_tool_prefix"; then
2405 for ac_prog in cl.exe
2407 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2408 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2410 $as_echo_n "checking for $ac_word... " >&6; }
2411 if ${ac_cv_prog_CC+:} false; then :
2412 $as_echo_n "(cached) " >&6
2413 else
2414 if test -n "$CC"; then
2415 ac_cv_prog_CC="$CC" # Let the user override the test.
2416 else
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH
2420 IFS=$as_save_IFS
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2424 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 break 2
2428 done
2429 done
2430 IFS=$as_save_IFS
2434 CC=$ac_cv_prog_CC
2435 if test -n "$CC"; then
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2437 $as_echo "$CC" >&6; }
2438 else
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2440 $as_echo "no" >&6; }
2444 test -n "$CC" && break
2445 done
2447 if test -z "$CC"; then
2448 ac_ct_CC=$CC
2449 for ac_prog in cl.exe
2451 # Extract the first word of "$ac_prog", so it can be a program name with args.
2452 set dummy $ac_prog; ac_word=$2
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2454 $as_echo_n "checking for $ac_word... " >&6; }
2455 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 if test -n "$ac_ct_CC"; then
2459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2468 ac_cv_prog_ac_ct_CC="$ac_prog"
2469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 break 2
2472 done
2473 done
2474 IFS=$as_save_IFS
2478 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2479 if test -n "$ac_ct_CC"; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2481 $as_echo "$ac_ct_CC" >&6; }
2482 else
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2484 $as_echo "no" >&6; }
2488 test -n "$ac_ct_CC" && break
2489 done
2491 if test "x$ac_ct_CC" = x; then
2492 CC=""
2493 else
2494 case $cross_compiling:$ac_tool_warned in
2495 yes:)
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2498 ac_tool_warned=yes ;;
2499 esac
2500 CC=$ac_ct_CC
2507 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2509 as_fn_error $? "no acceptable C compiler found in \$PATH
2510 See \`config.log' for more details" "$LINENO" 5; }
2512 # Provide some information about the compiler.
2513 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2514 set X $ac_compile
2515 ac_compiler=$2
2516 for ac_option in --version -v -V -qversion; do
2517 { { ac_try="$ac_compiler $ac_option >&5"
2518 case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521 esac
2522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2523 $as_echo "$ac_try_echo"; } >&5
2524 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2525 ac_status=$?
2526 if test -s conftest.err; then
2527 sed '10a\
2528 ... rest of stderr output deleted ...
2529 10q' conftest.err >conftest.er1
2530 cat conftest.er1 >&5
2532 rm -f conftest.er1 conftest.err
2533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2534 test $ac_status = 0; }
2535 done
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h. */
2541 main ()
2545 return 0;
2547 _ACEOF
2548 ac_clean_files_save=$ac_clean_files
2549 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2550 # Try to create an executable without -o first, disregard a.out.
2551 # It will help us diagnose broken compilers, and finding out an intuition
2552 # of exeext.
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2554 $as_echo_n "checking whether the C compiler works... " >&6; }
2555 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2557 # The possible output files:
2558 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2560 ac_rmfiles=
2561 for ac_file in $ac_files
2563 case $ac_file in
2564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2565 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2566 esac
2567 done
2568 rm -f $ac_rmfiles
2570 if { { ac_try="$ac_link_default"
2571 case "(($ac_try" in
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2574 esac
2575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2576 $as_echo "$ac_try_echo"; } >&5
2577 (eval "$ac_link_default") 2>&5
2578 ac_status=$?
2579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2580 test $ac_status = 0; }; then :
2581 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2582 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2583 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2584 # so that the user can short-circuit this test for compilers unknown to
2585 # Autoconf.
2586 for ac_file in $ac_files ''
2588 test -f "$ac_file" || continue
2589 case $ac_file in
2590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2592 [ab].out )
2593 # We found the default executable, but exeext='' is most
2594 # certainly right.
2595 break;;
2596 *.* )
2597 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2598 then :; else
2599 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2601 # We set ac_cv_exeext here because the later test for it is not
2602 # safe: cross compilers may not add the suffix if given an `-o'
2603 # argument, so we may need to know it at that point already.
2604 # Even if this section looks crufty: it has the advantage of
2605 # actually working.
2606 break;;
2608 break;;
2609 esac
2610 done
2611 test "$ac_cv_exeext" = no && ac_cv_exeext=
2613 else
2614 ac_file=''
2616 if test -z "$ac_file"; then :
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618 $as_echo "no" >&6; }
2619 $as_echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2624 as_fn_error 77 "C compiler cannot create executables
2625 See \`config.log' for more details" "$LINENO" 5; }
2626 else
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2628 $as_echo "yes" >&6; }
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2631 $as_echo_n "checking for C compiler default output file name... " >&6; }
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2633 $as_echo "$ac_file" >&6; }
2634 ac_exeext=$ac_cv_exeext
2636 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2637 ac_clean_files=$ac_clean_files_save
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2639 $as_echo_n "checking for suffix of executables... " >&6; }
2640 if { { ac_try="$ac_link"
2641 case "(($ac_try" in
2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643 *) ac_try_echo=$ac_try;;
2644 esac
2645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2646 $as_echo "$ac_try_echo"; } >&5
2647 (eval "$ac_link") 2>&5
2648 ac_status=$?
2649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2650 test $ac_status = 0; }; then :
2651 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2652 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2653 # work properly (i.e., refer to `conftest.exe'), while it won't with
2654 # `rm'.
2655 for ac_file in conftest.exe conftest conftest.*; do
2656 test -f "$ac_file" || continue
2657 case $ac_file in
2658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2659 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2660 break;;
2661 * ) break;;
2662 esac
2663 done
2664 else
2665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2667 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2668 See \`config.log' for more details" "$LINENO" 5; }
2670 rm -f conftest conftest$ac_cv_exeext
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2672 $as_echo "$ac_cv_exeext" >&6; }
2674 rm -f conftest.$ac_ext
2675 EXEEXT=$ac_cv_exeext
2676 ac_exeext=$EXEEXT
2677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h. */
2679 #include <stdio.h>
2681 main ()
2683 FILE *f = fopen ("conftest.out", "w");
2684 return ferror (f) || fclose (f) != 0;
2687 return 0;
2689 _ACEOF
2690 ac_clean_files="$ac_clean_files conftest.out"
2691 # Check that the compiler produces executables we can run. If not, either
2692 # the compiler is broken, or we cross compile.
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2694 $as_echo_n "checking whether we are cross compiling... " >&6; }
2695 if test "$cross_compiling" != yes; then
2696 { { ac_try="$ac_link"
2697 case "(($ac_try" in
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2700 esac
2701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2702 $as_echo "$ac_try_echo"; } >&5
2703 (eval "$ac_link") 2>&5
2704 ac_status=$?
2705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2706 test $ac_status = 0; }
2707 if { ac_try='./conftest$ac_cv_exeext'
2708 { { case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711 esac
2712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2713 $as_echo "$ac_try_echo"; } >&5
2714 (eval "$ac_try") 2>&5
2715 ac_status=$?
2716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2717 test $ac_status = 0; }; }; then
2718 cross_compiling=no
2719 else
2720 if test "$cross_compiling" = maybe; then
2721 cross_compiling=yes
2722 else
2723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2725 as_fn_error $? "cannot run C compiled programs.
2726 If you meant to cross compile, use \`--host'.
2727 See \`config.log' for more details" "$LINENO" 5; }
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2732 $as_echo "$cross_compiling" >&6; }
2734 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2735 ac_clean_files=$ac_clean_files_save
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2737 $as_echo_n "checking for suffix of object files... " >&6; }
2738 if ${ac_cv_objext+:} false; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h. */
2745 main ()
2749 return 0;
2751 _ACEOF
2752 rm -f conftest.o conftest.obj
2753 if { { ac_try="$ac_compile"
2754 case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2757 esac
2758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2759 $as_echo "$ac_try_echo"; } >&5
2760 (eval "$ac_compile") 2>&5
2761 ac_status=$?
2762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2763 test $ac_status = 0; }; then :
2764 for ac_file in conftest.o conftest.obj conftest.*; do
2765 test -f "$ac_file" || continue;
2766 case $ac_file in
2767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2768 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2769 break;;
2770 esac
2771 done
2772 else
2773 $as_echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2778 as_fn_error $? "cannot compute suffix of object files: cannot compile
2779 See \`config.log' for more details" "$LINENO" 5; }
2781 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2784 $as_echo "$ac_cv_objext" >&6; }
2785 OBJEXT=$ac_cv_objext
2786 ac_objext=$OBJEXT
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2788 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2789 if ${ac_cv_c_compiler_gnu+:} false; then :
2790 $as_echo_n "(cached) " >&6
2791 else
2792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2793 /* end confdefs.h. */
2796 main ()
2798 #ifndef __GNUC__
2799 choke me
2800 #endif
2803 return 0;
2805 _ACEOF
2806 if ac_fn_c_try_compile "$LINENO"; then :
2807 ac_compiler_gnu=yes
2808 else
2809 ac_compiler_gnu=no
2811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2812 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2816 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2817 if test $ac_compiler_gnu = yes; then
2818 GCC=yes
2819 else
2820 GCC=
2822 ac_test_CFLAGS=${CFLAGS+set}
2823 ac_save_CFLAGS=$CFLAGS
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2825 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2826 if ${ac_cv_prog_cc_g+:} false; then :
2827 $as_echo_n "(cached) " >&6
2828 else
2829 ac_save_c_werror_flag=$ac_c_werror_flag
2830 ac_c_werror_flag=yes
2831 ac_cv_prog_cc_g=no
2832 CFLAGS="-g"
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h. */
2837 main ()
2841 return 0;
2843 _ACEOF
2844 if ac_fn_c_try_compile "$LINENO"; then :
2845 ac_cv_prog_cc_g=yes
2846 else
2847 CFLAGS=""
2848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2849 /* end confdefs.h. */
2852 main ()
2856 return 0;
2858 _ACEOF
2859 if ac_fn_c_try_compile "$LINENO"; then :
2861 else
2862 ac_c_werror_flag=$ac_save_c_werror_flag
2863 CFLAGS="-g"
2864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2865 /* end confdefs.h. */
2868 main ()
2872 return 0;
2874 _ACEOF
2875 if ac_fn_c_try_compile "$LINENO"; then :
2876 ac_cv_prog_cc_g=yes
2878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2883 ac_c_werror_flag=$ac_save_c_werror_flag
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2886 $as_echo "$ac_cv_prog_cc_g" >&6; }
2887 if test "$ac_test_CFLAGS" = set; then
2888 CFLAGS=$ac_save_CFLAGS
2889 elif test $ac_cv_prog_cc_g = yes; then
2890 if test "$GCC" = yes; then
2891 CFLAGS="-g -O2"
2892 else
2893 CFLAGS="-g"
2895 else
2896 if test "$GCC" = yes; then
2897 CFLAGS="-O2"
2898 else
2899 CFLAGS=
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2903 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2904 if ${ac_cv_prog_cc_c89+:} false; then :
2905 $as_echo_n "(cached) " >&6
2906 else
2907 ac_cv_prog_cc_c89=no
2908 ac_save_CC=$CC
2909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2910 /* end confdefs.h. */
2911 #include <stdarg.h>
2912 #include <stdio.h>
2913 struct stat;
2914 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2915 struct buf { int x; };
2916 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2917 static char *e (p, i)
2918 char **p;
2919 int i;
2921 return p[i];
2923 static char *f (char * (*g) (char **, int), char **p, ...)
2925 char *s;
2926 va_list v;
2927 va_start (v,p);
2928 s = g (p, va_arg (v,int));
2929 va_end (v);
2930 return s;
2933 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2934 function prototypes and stuff, but not '\xHH' hex character constants.
2935 These don't provoke an error unfortunately, instead are silently treated
2936 as 'x'. The following induces an error, until -std is added to get
2937 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2938 array size at least. It's necessary to write '\x00'==0 to get something
2939 that's true only with -std. */
2940 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2942 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2943 inside strings and character constants. */
2944 #define FOO(x) 'x'
2945 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2947 int test (int i, double x);
2948 struct s1 {int (*f) (int a);};
2949 struct s2 {int (*f) (double a);};
2950 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2951 int argc;
2952 char **argv;
2954 main ()
2956 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2958 return 0;
2960 _ACEOF
2961 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2962 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2964 CC="$ac_save_CC $ac_arg"
2965 if ac_fn_c_try_compile "$LINENO"; then :
2966 ac_cv_prog_cc_c89=$ac_arg
2968 rm -f core conftest.err conftest.$ac_objext
2969 test "x$ac_cv_prog_cc_c89" != "xno" && break
2970 done
2971 rm -f conftest.$ac_ext
2972 CC=$ac_save_CC
2975 # AC_CACHE_VAL
2976 case "x$ac_cv_prog_cc_c89" in
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2979 $as_echo "none needed" >&6; } ;;
2980 xno)
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2982 $as_echo "unsupported" >&6; } ;;
2984 CC="$CC $ac_cv_prog_cc_c89"
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2986 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2987 esac
2988 if test "x$ac_cv_prog_cc_c89" != xno; then :
2992 ac_ext=c
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 ac_ext=c
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3005 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3006 # On Suns, sometimes $CPP names a directory.
3007 if test -n "$CPP" && test -d "$CPP"; then
3008 CPP=
3010 if test -z "$CPP"; then
3011 if ${ac_cv_prog_CPP+:} false; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 # Double quotes because CPP needs to be expanded
3015 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3017 ac_preproc_ok=false
3018 for ac_c_preproc_warn_flag in '' yes
3020 # Use a header file that comes with gcc, so configuring glibc
3021 # with a fresh cross-compiler works.
3022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3023 # <limits.h> exists even on freestanding compilers.
3024 # On the NeXT, cc -E runs the code through the compiler's parser,
3025 # not just through cpp. "Syntax error" is here to catch this case.
3026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3027 /* end confdefs.h. */
3028 #ifdef __STDC__
3029 # include <limits.h>
3030 #else
3031 # include <assert.h>
3032 #endif
3033 Syntax error
3034 _ACEOF
3035 if ac_fn_c_try_cpp "$LINENO"; then :
3037 else
3038 # Broken: fails on valid input.
3039 continue
3041 rm -f conftest.err conftest.i conftest.$ac_ext
3043 # OK, works on sane cases. Now check whether nonexistent headers
3044 # can be detected and how.
3045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3046 /* end confdefs.h. */
3047 #include <ac_nonexistent.h>
3048 _ACEOF
3049 if ac_fn_c_try_cpp "$LINENO"; then :
3050 # Broken: success on invalid input.
3051 continue
3052 else
3053 # Passes both tests.
3054 ac_preproc_ok=:
3055 break
3057 rm -f conftest.err conftest.i conftest.$ac_ext
3059 done
3060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3061 rm -f conftest.i conftest.err conftest.$ac_ext
3062 if $ac_preproc_ok; then :
3063 break
3066 done
3067 ac_cv_prog_CPP=$CPP
3070 CPP=$ac_cv_prog_CPP
3071 else
3072 ac_cv_prog_CPP=$CPP
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3075 $as_echo "$CPP" >&6; }
3076 ac_preproc_ok=false
3077 for ac_c_preproc_warn_flag in '' yes
3079 # Use a header file that comes with gcc, so configuring glibc
3080 # with a fresh cross-compiler works.
3081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3082 # <limits.h> exists even on freestanding compilers.
3083 # On the NeXT, cc -E runs the code through the compiler's parser,
3084 # not just through cpp. "Syntax error" is here to catch this case.
3085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086 /* end confdefs.h. */
3087 #ifdef __STDC__
3088 # include <limits.h>
3089 #else
3090 # include <assert.h>
3091 #endif
3092 Syntax error
3093 _ACEOF
3094 if ac_fn_c_try_cpp "$LINENO"; then :
3096 else
3097 # Broken: fails on valid input.
3098 continue
3100 rm -f conftest.err conftest.i conftest.$ac_ext
3102 # OK, works on sane cases. Now check whether nonexistent headers
3103 # can be detected and how.
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105 /* end confdefs.h. */
3106 #include <ac_nonexistent.h>
3107 _ACEOF
3108 if ac_fn_c_try_cpp "$LINENO"; then :
3109 # Broken: success on invalid input.
3110 continue
3111 else
3112 # Passes both tests.
3113 ac_preproc_ok=:
3114 break
3116 rm -f conftest.err conftest.i conftest.$ac_ext
3118 done
3119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3120 rm -f conftest.i conftest.err conftest.$ac_ext
3121 if $ac_preproc_ok; then :
3123 else
3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3127 See \`config.log' for more details" "$LINENO" 5; }
3130 ac_ext=c
3131 ac_cpp='$CPP $CPPFLAGS'
3132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3138 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3139 if ${ac_cv_path_GREP+:} false; then :
3140 $as_echo_n "(cached) " >&6
3141 else
3142 if test -z "$GREP"; then
3143 ac_path_GREP_found=false
3144 # Loop through the user's path and test for each of PROGNAME-LIST
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
3150 for ac_prog in grep ggrep; do
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3153 as_fn_executable_p "$ac_path_GREP" || continue
3154 # Check for GNU ac_path_GREP and select it if it is found.
3155 # Check for GNU $ac_path_GREP
3156 case `"$ac_path_GREP" --version 2>&1` in
3157 *GNU*)
3158 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3160 ac_count=0
3161 $as_echo_n 0123456789 >"conftest.in"
3162 while :
3164 cat "conftest.in" "conftest.in" >"conftest.tmp"
3165 mv "conftest.tmp" "conftest.in"
3166 cp "conftest.in" "conftest.nl"
3167 $as_echo 'GREP' >> "conftest.nl"
3168 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3169 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3170 as_fn_arith $ac_count + 1 && ac_count=$as_val
3171 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3172 # Best one so far, save it but keep looking for a better one
3173 ac_cv_path_GREP="$ac_path_GREP"
3174 ac_path_GREP_max=$ac_count
3176 # 10*(2^10) chars as input seems more than enough
3177 test $ac_count -gt 10 && break
3178 done
3179 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3180 esac
3182 $ac_path_GREP_found && break 3
3183 done
3184 done
3185 done
3186 IFS=$as_save_IFS
3187 if test -z "$ac_cv_path_GREP"; then
3188 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3190 else
3191 ac_cv_path_GREP=$GREP
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3196 $as_echo "$ac_cv_path_GREP" >&6; }
3197 GREP="$ac_cv_path_GREP"
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3201 $as_echo_n "checking for egrep... " >&6; }
3202 if ${ac_cv_path_EGREP+:} false; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3206 then ac_cv_path_EGREP="$GREP -E"
3207 else
3208 if test -z "$EGREP"; then
3209 ac_path_EGREP_found=false
3210 # Loop through the user's path and test for each of PROGNAME-LIST
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_prog in egrep; do
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3219 as_fn_executable_p "$ac_path_EGREP" || continue
3220 # Check for GNU ac_path_EGREP and select it if it is found.
3221 # Check for GNU $ac_path_EGREP
3222 case `"$ac_path_EGREP" --version 2>&1` in
3223 *GNU*)
3224 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3226 ac_count=0
3227 $as_echo_n 0123456789 >"conftest.in"
3228 while :
3230 cat "conftest.in" "conftest.in" >"conftest.tmp"
3231 mv "conftest.tmp" "conftest.in"
3232 cp "conftest.in" "conftest.nl"
3233 $as_echo 'EGREP' >> "conftest.nl"
3234 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3236 as_fn_arith $ac_count + 1 && ac_count=$as_val
3237 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3238 # Best one so far, save it but keep looking for a better one
3239 ac_cv_path_EGREP="$ac_path_EGREP"
3240 ac_path_EGREP_max=$ac_count
3242 # 10*(2^10) chars as input seems more than enough
3243 test $ac_count -gt 10 && break
3244 done
3245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3246 esac
3248 $ac_path_EGREP_found && break 3
3249 done
3250 done
3251 done
3252 IFS=$as_save_IFS
3253 if test -z "$ac_cv_path_EGREP"; then
3254 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3256 else
3257 ac_cv_path_EGREP=$EGREP
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3263 $as_echo "$ac_cv_path_EGREP" >&6; }
3264 EGREP="$ac_cv_path_EGREP"
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3268 $as_echo_n "checking for ANSI C header files... " >&6; }
3269 if ${ac_cv_header_stdc+:} false; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3274 #include <stdlib.h>
3275 #include <stdarg.h>
3276 #include <string.h>
3277 #include <float.h>
3280 main ()
3284 return 0;
3286 _ACEOF
3287 if ac_fn_c_try_compile "$LINENO"; then :
3288 ac_cv_header_stdc=yes
3289 else
3290 ac_cv_header_stdc=no
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 if test $ac_cv_header_stdc = yes; then
3295 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3298 #include <string.h>
3300 _ACEOF
3301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3302 $EGREP "memchr" >/dev/null 2>&1; then :
3304 else
3305 ac_cv_header_stdc=no
3307 rm -f conftest*
3311 if test $ac_cv_header_stdc = yes; then
3312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3315 #include <stdlib.h>
3317 _ACEOF
3318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3319 $EGREP "free" >/dev/null 2>&1; then :
3321 else
3322 ac_cv_header_stdc=no
3324 rm -f conftest*
3328 if test $ac_cv_header_stdc = yes; then
3329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3330 if test "$cross_compiling" = yes; then :
3332 else
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3335 #include <ctype.h>
3336 #include <stdlib.h>
3337 #if ((' ' & 0x0FF) == 0x020)
3338 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3339 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3340 #else
3341 # define ISLOWER(c) \
3342 (('a' <= (c) && (c) <= 'i') \
3343 || ('j' <= (c) && (c) <= 'r') \
3344 || ('s' <= (c) && (c) <= 'z'))
3345 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3346 #endif
3348 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3350 main ()
3352 int i;
3353 for (i = 0; i < 256; i++)
3354 if (XOR (islower (i), ISLOWER (i))
3355 || toupper (i) != TOUPPER (i))
3356 return 2;
3357 return 0;
3359 _ACEOF
3360 if ac_fn_c_try_run "$LINENO"; then :
3362 else
3363 ac_cv_header_stdc=no
3365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3366 conftest.$ac_objext conftest.beam conftest.$ac_ext
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3372 $as_echo "$ac_cv_header_stdc" >&6; }
3373 if test $ac_cv_header_stdc = yes; then
3375 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3379 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3380 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3381 inttypes.h stdint.h unistd.h
3382 do :
3383 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3384 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3386 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3387 cat >>confdefs.h <<_ACEOF
3388 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3389 _ACEOF
3393 done
3397 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3398 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3399 MINIX=yes
3400 else
3401 MINIX=
3405 if test "$MINIX" = yes; then
3407 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3410 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3413 $as_echo "#define _MINIX 1" >>confdefs.h
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3419 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3420 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3426 # define __EXTENSIONS__ 1
3427 $ac_includes_default
3429 main ()
3433 return 0;
3435 _ACEOF
3436 if ac_fn_c_try_compile "$LINENO"; then :
3437 ac_cv_safe_to_define___extensions__=yes
3438 else
3439 ac_cv_safe_to_define___extensions__=no
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3444 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3445 test $ac_cv_safe_to_define___extensions__ = yes &&
3446 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3448 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3450 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3452 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3454 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3458 ac_config_headers="$ac_config_headers config.h"
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3463 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3464 set x ${MAKE-make}
3465 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3466 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 cat >conftest.make <<\_ACEOF
3470 SHELL = /bin/sh
3471 all:
3472 @echo '@@@%%%=$(MAKE)=@@@%%%'
3473 _ACEOF
3474 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3475 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3476 *@@@%%%=?*=@@@%%%*)
3477 eval ac_cv_prog_make_${ac_make}_set=yes;;
3479 eval ac_cv_prog_make_${ac_make}_set=no;;
3480 esac
3481 rm -f conftest.make
3483 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3485 $as_echo "yes" >&6; }
3486 SET_MAKE=
3487 else
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3490 SET_MAKE="MAKE=${MAKE-make}"
3493 ac_aux_dir=
3494 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3495 if test -f "$ac_dir/install-sh"; then
3496 ac_aux_dir=$ac_dir
3497 ac_install_sh="$ac_aux_dir/install-sh -c"
3498 break
3499 elif test -f "$ac_dir/install.sh"; then
3500 ac_aux_dir=$ac_dir
3501 ac_install_sh="$ac_aux_dir/install.sh -c"
3502 break
3503 elif test -f "$ac_dir/shtool"; then
3504 ac_aux_dir=$ac_dir
3505 ac_install_sh="$ac_aux_dir/shtool install -c"
3506 break
3508 done
3509 if test -z "$ac_aux_dir"; then
3510 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3513 # These three variables are undocumented and unsupported,
3514 # and are intended to be withdrawn in a future Autoconf release.
3515 # They can cause serious problems if a builder's source tree is in a directory
3516 # whose full name contains unusual characters.
3517 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3518 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3519 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3522 # Find a good install program. We prefer a C program (faster),
3523 # so one script is as good as another. But avoid the broken or
3524 # incompatible versions:
3525 # SysV /etc/install, /usr/sbin/install
3526 # SunOS /usr/etc/install
3527 # IRIX /sbin/install
3528 # AIX /bin/install
3529 # AmigaOS /C/install, which installs bootblocks on floppy discs
3530 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3531 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3532 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3533 # OS/2's system install, which has a completely different semantic
3534 # ./install, which can be erroneously created by make from ./install.sh.
3535 # Reject install programs that cannot install multiple files.
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3537 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3538 if test -z "$INSTALL"; then
3539 if ${ac_cv_path_install+:} false; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 # Account for people who put trailing slashes in PATH elements.
3548 case $as_dir/ in #((
3549 ./ | .// | /[cC]/* | \
3550 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3551 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3552 /usr/ucb/* ) ;;
3554 # OSF1 and SCO ODT 3.0 have their own names for install.
3555 # Don't use installbsd from OSF since it installs stuff as root
3556 # by default.
3557 for ac_prog in ginstall scoinst install; do
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3560 if test $ac_prog = install &&
3561 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3562 # AIX install. It has an incompatible calling convention.
3564 elif test $ac_prog = install &&
3565 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3566 # program-specific install script used by HP pwplus--don't use.
3568 else
3569 rm -rf conftest.one conftest.two conftest.dir
3570 echo one > conftest.one
3571 echo two > conftest.two
3572 mkdir conftest.dir
3573 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3574 test -s conftest.one && test -s conftest.two &&
3575 test -s conftest.dir/conftest.one &&
3576 test -s conftest.dir/conftest.two
3577 then
3578 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3579 break 3
3583 done
3584 done
3586 esac
3588 done
3589 IFS=$as_save_IFS
3591 rm -rf conftest.one conftest.two conftest.dir
3594 if test "${ac_cv_path_install+set}" = set; then
3595 INSTALL=$ac_cv_path_install
3596 else
3597 # As a last resort, use the slow shell script. Don't cache a
3598 # value for INSTALL within a source directory, because that will
3599 # break other packages using the cache if that directory is
3600 # removed, or if the value is a relative name.
3601 INSTALL=$ac_install_sh
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3605 $as_echo "$INSTALL" >&6; }
3607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3608 # It thinks the first close brace ends the variable substitution.
3609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3613 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3616 MKINSTALLDIRS=
3617 if test -n "$ac_aux_dir"; then
3618 case "$ac_aux_dir" in
3619 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3620 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3621 esac
3623 if test -z "$MKINSTALLDIRS"; then
3624 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3630 $as_echo_n "checking whether NLS is requested... " >&6; }
3631 # Check whether --enable-nls was given.
3632 if test "${enable_nls+set}" = set; then :
3633 enableval=$enable_nls; USE_NLS=$enableval
3634 else
3635 USE_NLS=yes
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3639 $as_echo "$USE_NLS" >&6; }
3646 # Prepare PATH_SEPARATOR.
3647 # The user is always right.
3648 if test "${PATH_SEPARATOR+set}" != set; then
3649 echo "#! /bin/sh" >conf$$.sh
3650 echo "exit 0" >>conf$$.sh
3651 chmod +x conf$$.sh
3652 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3653 PATH_SEPARATOR=';'
3654 else
3655 PATH_SEPARATOR=:
3657 rm -f conf$$.sh
3660 # Find out how to test for executable files. Don't use a zero-byte file,
3661 # as systems may use methods other than mode bits to determine executability.
3662 cat >conf$$.file <<_ASEOF
3663 #! /bin/sh
3664 exit 0
3665 _ASEOF
3666 chmod +x conf$$.file
3667 if test -x conf$$.file >/dev/null 2>&1; then
3668 ac_executable_p="test -x"
3669 else
3670 ac_executable_p="test -f"
3672 rm -f conf$$.file
3674 # Extract the first word of "msgfmt", so it can be a program name with args.
3675 set dummy msgfmt; ac_word=$2
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 $as_echo_n "checking for $ac_word... " >&6; }
3678 if ${ac_cv_path_MSGFMT+:} false; then :
3679 $as_echo_n "(cached) " >&6
3680 else
3681 case "$MSGFMT" in
3682 [\\/]* | ?:[\\/]*)
3683 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3686 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3687 for ac_dir in $PATH; do
3688 IFS="$ac_save_IFS"
3689 test -z "$ac_dir" && ac_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3692 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3693 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3694 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3695 break 2
3698 done
3699 done
3700 IFS="$ac_save_IFS"
3701 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3703 esac
3705 MSGFMT="$ac_cv_path_MSGFMT"
3706 if test "$MSGFMT" != ":"; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3708 $as_echo "$MSGFMT" >&6; }
3709 else
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3714 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3715 set dummy gmsgfmt; ac_word=$2
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3717 $as_echo_n "checking for $ac_word... " >&6; }
3718 if ${ac_cv_path_GMSGFMT+:} false; then :
3719 $as_echo_n "(cached) " >&6
3720 else
3721 case $GMSGFMT in
3722 [\\/]* | ?:[\\/]*)
3723 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 break 2
3737 done
3738 done
3739 IFS=$as_save_IFS
3741 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3743 esac
3745 GMSGFMT=$ac_cv_path_GMSGFMT
3746 if test -n "$GMSGFMT"; then
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3748 $as_echo "$GMSGFMT" >&6; }
3749 else
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3757 # Prepare PATH_SEPARATOR.
3758 # The user is always right.
3759 if test "${PATH_SEPARATOR+set}" != set; then
3760 echo "#! /bin/sh" >conf$$.sh
3761 echo "exit 0" >>conf$$.sh
3762 chmod +x conf$$.sh
3763 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3764 PATH_SEPARATOR=';'
3765 else
3766 PATH_SEPARATOR=:
3768 rm -f conf$$.sh
3771 # Find out how to test for executable files. Don't use a zero-byte file,
3772 # as systems may use methods other than mode bits to determine executability.
3773 cat >conf$$.file <<_ASEOF
3774 #! /bin/sh
3775 exit 0
3776 _ASEOF
3777 chmod +x conf$$.file
3778 if test -x conf$$.file >/dev/null 2>&1; then
3779 ac_executable_p="test -x"
3780 else
3781 ac_executable_p="test -f"
3783 rm -f conf$$.file
3785 # Extract the first word of "xgettext", so it can be a program name with args.
3786 set dummy xgettext; ac_word=$2
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788 $as_echo_n "checking for $ac_word... " >&6; }
3789 if ${ac_cv_path_XGETTEXT+:} false; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 case "$XGETTEXT" in
3793 [\\/]* | ?:[\\/]*)
3794 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3797 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3798 for ac_dir in $PATH; do
3799 IFS="$ac_save_IFS"
3800 test -z "$ac_dir" && ac_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3803 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3804 (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
3805 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3806 break 2
3809 done
3810 done
3811 IFS="$ac_save_IFS"
3812 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3814 esac
3816 XGETTEXT="$ac_cv_path_XGETTEXT"
3817 if test "$XGETTEXT" != ":"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3819 $as_echo "$XGETTEXT" >&6; }
3820 else
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3825 rm -f messages.po
3828 # Prepare PATH_SEPARATOR.
3829 # The user is always right.
3830 if test "${PATH_SEPARATOR+set}" != set; then
3831 echo "#! /bin/sh" >conf$$.sh
3832 echo "exit 0" >>conf$$.sh
3833 chmod +x conf$$.sh
3834 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3835 PATH_SEPARATOR=';'
3836 else
3837 PATH_SEPARATOR=:
3839 rm -f conf$$.sh
3842 # Find out how to test for executable files. Don't use a zero-byte file,
3843 # as systems may use methods other than mode bits to determine executability.
3844 cat >conf$$.file <<_ASEOF
3845 #! /bin/sh
3846 exit 0
3847 _ASEOF
3848 chmod +x conf$$.file
3849 if test -x conf$$.file >/dev/null 2>&1; then
3850 ac_executable_p="test -x"
3851 else
3852 ac_executable_p="test -f"
3854 rm -f conf$$.file
3856 # Extract the first word of "msgmerge", so it can be a program name with args.
3857 set dummy msgmerge; ac_word=$2
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3859 $as_echo_n "checking for $ac_word... " >&6; }
3860 if ${ac_cv_path_MSGMERGE+:} false; then :
3861 $as_echo_n "(cached) " >&6
3862 else
3863 case "$MSGMERGE" in
3864 [\\/]* | ?:[\\/]*)
3865 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3868 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3869 for ac_dir in $PATH; do
3870 IFS="$ac_save_IFS"
3871 test -z "$ac_dir" && ac_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3874 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3875 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3876 break 2
3879 done
3880 done
3881 IFS="$ac_save_IFS"
3882 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3884 esac
3886 MSGMERGE="$ac_cv_path_MSGMERGE"
3887 if test "$MSGMERGE" != ":"; then
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3889 $as_echo "$MSGMERGE" >&6; }
3890 else
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892 $as_echo "no" >&6; }
3896 if test "$GMSGFMT" != ":"; then
3897 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3898 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3900 else
3901 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3903 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3904 GMSGFMT=":"
3908 if test "$XGETTEXT" != ":"; then
3909 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3910 (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
3912 else
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
3914 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
3915 XGETTEXT=":"
3917 rm -f messages.po
3920 ac_config_commands="$ac_config_commands default-1"
3923 # Make sure we can run config.sub.
3924 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3925 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3928 $as_echo_n "checking build system type... " >&6; }
3929 if ${ac_cv_build+:} false; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 ac_build_alias=$build_alias
3933 test "x$ac_build_alias" = x &&
3934 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3935 test "x$ac_build_alias" = x &&
3936 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3937 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3938 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3942 $as_echo "$ac_cv_build" >&6; }
3943 case $ac_cv_build in
3944 *-*-*) ;;
3945 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3946 esac
3947 build=$ac_cv_build
3948 ac_save_IFS=$IFS; IFS='-'
3949 set x $ac_cv_build
3950 shift
3951 build_cpu=$1
3952 build_vendor=$2
3953 shift; shift
3954 # Remember, the first character of IFS is used to create $*,
3955 # except with old shells:
3956 build_os=$*
3957 IFS=$ac_save_IFS
3958 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3962 $as_echo_n "checking host system type... " >&6; }
3963 if ${ac_cv_host+:} false; then :
3964 $as_echo_n "(cached) " >&6
3965 else
3966 if test "x$host_alias" = x; then
3967 ac_cv_host=$ac_cv_build
3968 else
3969 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3970 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3975 $as_echo "$ac_cv_host" >&6; }
3976 case $ac_cv_host in
3977 *-*-*) ;;
3978 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3979 esac
3980 host=$ac_cv_host
3981 ac_save_IFS=$IFS; IFS='-'
3982 set x $ac_cv_host
3983 shift
3984 host_cpu=$1
3985 host_vendor=$2
3986 shift; shift
3987 # Remember, the first character of IFS is used to create $*,
3988 # except with old shells:
3989 host_os=$*
3990 IFS=$ac_save_IFS
3991 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3994 if test -n "$ac_tool_prefix"; then
3995 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3996 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if ${ac_cv_prog_RANLIB+:} false; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 if test -n "$RANLIB"; then
4003 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4004 else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4016 done
4017 done
4018 IFS=$as_save_IFS
4022 RANLIB=$ac_cv_prog_RANLIB
4023 if test -n "$RANLIB"; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4025 $as_echo "$RANLIB" >&6; }
4026 else
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028 $as_echo "no" >&6; }
4033 if test -z "$ac_cv_prog_RANLIB"; then
4034 ac_ct_RANLIB=$RANLIB
4035 # Extract the first word of "ranlib", so it can be a program name with args.
4036 set dummy ranlib; ac_word=$2
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038 $as_echo_n "checking for $ac_word... " >&6; }
4039 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4040 $as_echo_n "(cached) " >&6
4041 else
4042 if test -n "$ac_ct_RANLIB"; then
4043 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4044 else
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4052 ac_cv_prog_ac_ct_RANLIB="ranlib"
4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4056 done
4057 done
4058 IFS=$as_save_IFS
4062 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4063 if test -n "$ac_ct_RANLIB"; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4065 $as_echo "$ac_ct_RANLIB" >&6; }
4066 else
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068 $as_echo "no" >&6; }
4071 if test "x$ac_ct_RANLIB" = x; then
4072 RANLIB=":"
4073 else
4074 case $cross_compiling:$ac_tool_warned in
4075 yes:)
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4078 ac_tool_warned=yes ;;
4079 esac
4080 RANLIB=$ac_ct_RANLIB
4082 else
4083 RANLIB="$ac_cv_prog_RANLIB"
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4087 $as_echo_n "checking for library containing strerror... " >&6; }
4088 if ${ac_cv_search_strerror+:} false; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 ac_func_search_save_LIBS=$LIBS
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4095 /* Override any GCC internal prototype to avoid an error.
4096 Use char because int might match the return type of a GCC
4097 builtin and then its argument prototype would still apply. */
4098 #ifdef __cplusplus
4099 extern "C"
4100 #endif
4101 char strerror ();
4103 main ()
4105 return strerror ();
4107 return 0;
4109 _ACEOF
4110 for ac_lib in '' cposix; do
4111 if test -z "$ac_lib"; then
4112 ac_res="none required"
4113 else
4114 ac_res=-l$ac_lib
4115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4117 if ac_fn_c_try_link "$LINENO"; then :
4118 ac_cv_search_strerror=$ac_res
4120 rm -f core conftest.err conftest.$ac_objext \
4121 conftest$ac_exeext
4122 if ${ac_cv_search_strerror+:} false; then :
4123 break
4125 done
4126 if ${ac_cv_search_strerror+:} false; then :
4128 else
4129 ac_cv_search_strerror=no
4131 rm conftest.$ac_ext
4132 LIBS=$ac_func_search_save_LIBS
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4135 $as_echo "$ac_cv_search_strerror" >&6; }
4136 ac_res=$ac_cv_search_strerror
4137 if test "$ac_res" != no; then :
4138 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4143 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4144 if ${ac_cv_c_const+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4151 main ()
4154 #ifndef __cplusplus
4155 /* Ultrix mips cc rejects this sort of thing. */
4156 typedef int charset[2];
4157 const charset cs = { 0, 0 };
4158 /* SunOS 4.1.1 cc rejects this. */
4159 char const *const *pcpcc;
4160 char **ppc;
4161 /* NEC SVR4.0.2 mips cc rejects this. */
4162 struct point {int x, y;};
4163 static struct point const zero = {0,0};
4164 /* AIX XL C 1.02.0.0 rejects this.
4165 It does not let you subtract one const X* pointer from another in
4166 an arm of an if-expression whose if-part is not a constant
4167 expression */
4168 const char *g = "string";
4169 pcpcc = &g + (g ? g-g : 0);
4170 /* HPUX 7.0 cc rejects these. */
4171 ++pcpcc;
4172 ppc = (char**) pcpcc;
4173 pcpcc = (char const *const *) ppc;
4174 { /* SCO 3.2v4 cc rejects this sort of thing. */
4175 char tx;
4176 char *t = &tx;
4177 char const *s = 0 ? (char *) 0 : (char const *) 0;
4179 *t++ = 0;
4180 if (s) return 0;
4182 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4183 int x[] = {25, 17};
4184 const int *foo = &x[0];
4185 ++foo;
4187 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4188 typedef const int *iptr;
4189 iptr p = 0;
4190 ++p;
4192 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4193 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4194 struct s { int j; const int *ap[3]; } bx;
4195 struct s *b = &bx; b->j = 5;
4197 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4198 const int foo = 10;
4199 if (!foo) return 0;
4201 return !cs[0] && !zero.x;
4202 #endif
4205 return 0;
4207 _ACEOF
4208 if ac_fn_c_try_compile "$LINENO"; then :
4209 ac_cv_c_const=yes
4210 else
4211 ac_cv_c_const=no
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4216 $as_echo "$ac_cv_c_const" >&6; }
4217 if test $ac_cv_c_const = no; then
4219 $as_echo "#define const /**/" >>confdefs.h
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4224 $as_echo_n "checking for inline... " >&6; }
4225 if ${ac_cv_c_inline+:} false; then :
4226 $as_echo_n "(cached) " >&6
4227 else
4228 ac_cv_c_inline=no
4229 for ac_kw in inline __inline__ __inline; do
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4232 #ifndef __cplusplus
4233 typedef int foo_t;
4234 static $ac_kw foo_t static_foo () {return 0; }
4235 $ac_kw foo_t foo () {return 0; }
4236 #endif
4238 _ACEOF
4239 if ac_fn_c_try_compile "$LINENO"; then :
4240 ac_cv_c_inline=$ac_kw
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243 test "$ac_cv_c_inline" != no && break
4244 done
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4248 $as_echo "$ac_cv_c_inline" >&6; }
4250 case $ac_cv_c_inline in
4251 inline | yes) ;;
4253 case $ac_cv_c_inline in
4254 no) ac_val=;;
4255 *) ac_val=$ac_cv_c_inline;;
4256 esac
4257 cat >>confdefs.h <<_ACEOF
4258 #ifndef __cplusplus
4259 #define inline $ac_val
4260 #endif
4261 _ACEOF
4263 esac
4265 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4266 if test "x$ac_cv_type_off_t" = xyes; then :
4268 else
4270 cat >>confdefs.h <<_ACEOF
4271 #define off_t long int
4272 _ACEOF
4276 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4277 if test "x$ac_cv_type_size_t" = xyes; then :
4279 else
4281 cat >>confdefs.h <<_ACEOF
4282 #define size_t unsigned int
4283 _ACEOF
4287 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4288 # for constant arguments. Useless!
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4290 $as_echo_n "checking for working alloca.h... " >&6; }
4291 if ${ac_cv_working_alloca_h+:} false; then :
4292 $as_echo_n "(cached) " >&6
4293 else
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296 #include <alloca.h>
4298 main ()
4300 char *p = (char *) alloca (2 * sizeof (int));
4301 if (p) return 0;
4303 return 0;
4305 _ACEOF
4306 if ac_fn_c_try_link "$LINENO"; then :
4307 ac_cv_working_alloca_h=yes
4308 else
4309 ac_cv_working_alloca_h=no
4311 rm -f core conftest.err conftest.$ac_objext \
4312 conftest$ac_exeext conftest.$ac_ext
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4315 $as_echo "$ac_cv_working_alloca_h" >&6; }
4316 if test $ac_cv_working_alloca_h = yes; then
4318 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4323 $as_echo_n "checking for alloca... " >&6; }
4324 if ${ac_cv_func_alloca_works+:} false; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329 #ifdef __GNUC__
4330 # define alloca __builtin_alloca
4331 #else
4332 # ifdef _MSC_VER
4333 # include <malloc.h>
4334 # define alloca _alloca
4335 # else
4336 # ifdef HAVE_ALLOCA_H
4337 # include <alloca.h>
4338 # else
4339 # ifdef _AIX
4340 #pragma alloca
4341 # else
4342 # ifndef alloca /* predefined by HP cc +Olibcalls */
4343 void *alloca (size_t);
4344 # endif
4345 # endif
4346 # endif
4347 # endif
4348 #endif
4351 main ()
4353 char *p = (char *) alloca (1);
4354 if (p) return 0;
4356 return 0;
4358 _ACEOF
4359 if ac_fn_c_try_link "$LINENO"; then :
4360 ac_cv_func_alloca_works=yes
4361 else
4362 ac_cv_func_alloca_works=no
4364 rm -f core conftest.err conftest.$ac_objext \
4365 conftest$ac_exeext conftest.$ac_ext
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4368 $as_echo "$ac_cv_func_alloca_works" >&6; }
4370 if test $ac_cv_func_alloca_works = yes; then
4372 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4374 else
4375 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4376 # that cause trouble. Some versions do not even contain alloca or
4377 # contain a buggy version. If you still want to use their alloca,
4378 # use ar to extract alloca.o from them instead of compiling alloca.c.
4380 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4382 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4386 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4387 if ${ac_cv_os_cray+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392 #if defined CRAY && ! defined CRAY2
4393 webecray
4394 #else
4395 wenotbecray
4396 #endif
4398 _ACEOF
4399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4400 $EGREP "webecray" >/dev/null 2>&1; then :
4401 ac_cv_os_cray=yes
4402 else
4403 ac_cv_os_cray=no
4405 rm -f conftest*
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4409 $as_echo "$ac_cv_os_cray" >&6; }
4410 if test $ac_cv_os_cray = yes; then
4411 for ac_func in _getb67 GETB67 getb67; do
4412 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4413 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4414 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4416 cat >>confdefs.h <<_ACEOF
4417 #define CRAY_STACKSEG_END $ac_func
4418 _ACEOF
4420 break
4423 done
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4427 $as_echo_n "checking stack direction for C alloca... " >&6; }
4428 if ${ac_cv_c_stack_direction+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 if test "$cross_compiling" = yes; then :
4432 ac_cv_c_stack_direction=0
4433 else
4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h. */
4436 $ac_includes_default
4438 find_stack_direction (int *addr, int depth)
4440 int dir, dummy = 0;
4441 if (! addr)
4442 addr = &dummy;
4443 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
4444 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
4445 return dir + dummy;
4449 main (int argc, char **argv)
4451 return find_stack_direction (0, argc + !argv + 20) < 0;
4453 _ACEOF
4454 if ac_fn_c_try_run "$LINENO"; then :
4455 ac_cv_c_stack_direction=1
4456 else
4457 ac_cv_c_stack_direction=-1
4459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4460 conftest.$ac_objext conftest.beam conftest.$ac_ext
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4465 $as_echo "$ac_cv_c_stack_direction" >&6; }
4466 cat >>confdefs.h <<_ACEOF
4467 #define STACK_DIRECTION $ac_cv_c_stack_direction
4468 _ACEOF
4476 for ac_header in $ac_header_list
4477 do :
4478 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4479 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4481 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4482 cat >>confdefs.h <<_ACEOF
4483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4484 _ACEOF
4488 done
4497 for ac_func in getpagesize
4498 do :
4499 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4500 if test "x$ac_cv_func_getpagesize" = xyes; then :
4501 cat >>confdefs.h <<_ACEOF
4502 #define HAVE_GETPAGESIZE 1
4503 _ACEOF
4506 done
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4509 $as_echo_n "checking for working mmap... " >&6; }
4510 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if test "$cross_compiling" = yes; then :
4514 ac_cv_func_mmap_fixed_mapped=no
4515 else
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4518 $ac_includes_default
4519 /* malloc might have been renamed as rpl_malloc. */
4520 #undef malloc
4522 /* Thanks to Mike Haertel and Jim Avera for this test.
4523 Here is a matrix of mmap possibilities:
4524 mmap private not fixed
4525 mmap private fixed at somewhere currently unmapped
4526 mmap private fixed at somewhere already mapped
4527 mmap shared not fixed
4528 mmap shared fixed at somewhere currently unmapped
4529 mmap shared fixed at somewhere already mapped
4530 For private mappings, we should verify that changes cannot be read()
4531 back from the file, nor mmap's back from the file at a different
4532 address. (There have been systems where private was not correctly
4533 implemented like the infamous i386 svr4.0, and systems where the
4534 VM page cache was not coherent with the file system buffer cache
4535 like early versions of FreeBSD and possibly contemporary NetBSD.)
4536 For shared mappings, we should conversely verify that changes get
4537 propagated back to all the places they're supposed to be.
4539 Grep wants private fixed already mapped.
4540 The main things grep needs to know about mmap are:
4541 * does it exist and is it safe to write into the mmap'd area
4542 * how to use it (BSD variants) */
4544 #include <fcntl.h>
4545 #include <sys/mman.h>
4547 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4548 char *malloc ();
4549 #endif
4551 /* This mess was copied from the GNU getpagesize.h. */
4552 #ifndef HAVE_GETPAGESIZE
4553 # ifdef _SC_PAGESIZE
4554 # define getpagesize() sysconf(_SC_PAGESIZE)
4555 # else /* no _SC_PAGESIZE */
4556 # ifdef HAVE_SYS_PARAM_H
4557 # include <sys/param.h>
4558 # ifdef EXEC_PAGESIZE
4559 # define getpagesize() EXEC_PAGESIZE
4560 # else /* no EXEC_PAGESIZE */
4561 # ifdef NBPG
4562 # define getpagesize() NBPG * CLSIZE
4563 # ifndef CLSIZE
4564 # define CLSIZE 1
4565 # endif /* no CLSIZE */
4566 # else /* no NBPG */
4567 # ifdef NBPC
4568 # define getpagesize() NBPC
4569 # else /* no NBPC */
4570 # ifdef PAGESIZE
4571 # define getpagesize() PAGESIZE
4572 # endif /* PAGESIZE */
4573 # endif /* no NBPC */
4574 # endif /* no NBPG */
4575 # endif /* no EXEC_PAGESIZE */
4576 # else /* no HAVE_SYS_PARAM_H */
4577 # define getpagesize() 8192 /* punt totally */
4578 # endif /* no HAVE_SYS_PARAM_H */
4579 # endif /* no _SC_PAGESIZE */
4581 #endif /* no HAVE_GETPAGESIZE */
4584 main ()
4586 char *data, *data2, *data3;
4587 const char *cdata2;
4588 int i, pagesize;
4589 int fd, fd2;
4591 pagesize = getpagesize ();
4593 /* First, make a file with some known garbage in it. */
4594 data = (char *) malloc (pagesize);
4595 if (!data)
4596 return 1;
4597 for (i = 0; i < pagesize; ++i)
4598 *(data + i) = rand ();
4599 umask (0);
4600 fd = creat ("conftest.mmap", 0600);
4601 if (fd < 0)
4602 return 2;
4603 if (write (fd, data, pagesize) != pagesize)
4604 return 3;
4605 close (fd);
4607 /* Next, check that the tail of a page is zero-filled. File must have
4608 non-zero length, otherwise we risk SIGBUS for entire page. */
4609 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4610 if (fd2 < 0)
4611 return 4;
4612 cdata2 = "";
4613 if (write (fd2, cdata2, 1) != 1)
4614 return 5;
4615 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4616 if (data2 == MAP_FAILED)
4617 return 6;
4618 for (i = 0; i < pagesize; ++i)
4619 if (*(data2 + i))
4620 return 7;
4621 close (fd2);
4622 if (munmap (data2, pagesize))
4623 return 8;
4625 /* Next, try to mmap the file at a fixed address which already has
4626 something else allocated at it. If we can, also make sure that
4627 we see the same garbage. */
4628 fd = open ("conftest.mmap", O_RDWR);
4629 if (fd < 0)
4630 return 9;
4631 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4632 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4633 return 10;
4634 for (i = 0; i < pagesize; ++i)
4635 if (*(data + i) != *(data2 + i))
4636 return 11;
4638 /* Finally, make sure that changes to the mapped area do not
4639 percolate back to the file as seen by read(). (This is a bug on
4640 some variants of i386 svr4.0.) */
4641 for (i = 0; i < pagesize; ++i)
4642 *(data2 + i) = *(data2 + i) + 1;
4643 data3 = (char *) malloc (pagesize);
4644 if (!data3)
4645 return 12;
4646 if (read (fd, data3, pagesize) != pagesize)
4647 return 13;
4648 for (i = 0; i < pagesize; ++i)
4649 if (*(data + i) != *(data3 + i))
4650 return 14;
4651 close (fd);
4652 return 0;
4654 _ACEOF
4655 if ac_fn_c_try_run "$LINENO"; then :
4656 ac_cv_func_mmap_fixed_mapped=yes
4657 else
4658 ac_cv_func_mmap_fixed_mapped=no
4660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4661 conftest.$ac_objext conftest.beam conftest.$ac_ext
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4666 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4667 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4669 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4672 rm -f conftest.mmap conftest.txt
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
4676 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
4677 if ${ac_cv_gnu_library_2_1+:} false; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4683 #include <features.h>
4684 #ifdef __GNU_LIBRARY__
4685 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4686 Lucky GNU user
4687 #endif
4688 #endif
4690 _ACEOF
4691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4692 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
4693 ac_cv_gnu_library_2_1=yes
4694 else
4695 ac_cv_gnu_library_2_1=no
4697 rm -f conftest*
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
4703 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
4705 GLIBC21="$ac_cv_gnu_library_2_1"
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
4711 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
4712 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4716 if test "$cross_compiling" = yes; then :
4718 # Guess based on the CPU.
4719 case "$host_cpu" in
4720 alpha* | i3456786 | m68k | s390*)
4721 gt_cv_int_divbyzero_sigfpe="guessing yes";;
4723 gt_cv_int_divbyzero_sigfpe="guessing no";;
4724 esac
4726 else
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4730 #include <stdlib.h>
4731 #include <signal.h>
4733 static void
4734 #ifdef __cplusplus
4735 sigfpe_handler (int sig)
4736 #else
4737 sigfpe_handler (sig) int sig;
4738 #endif
4740 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
4741 exit (sig != SIGFPE);
4744 int x = 1;
4745 int y = 0;
4746 int z;
4747 int nan;
4749 int main ()
4751 signal (SIGFPE, sigfpe_handler);
4752 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
4753 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
4754 signal (SIGTRAP, sigfpe_handler);
4755 #endif
4756 /* Linux/SPARC yields signal SIGILL. */
4757 #if defined (__sparc__) && defined (__linux__)
4758 signal (SIGILL, sigfpe_handler);
4759 #endif
4761 z = x / y;
4762 nan = y / y;
4763 exit (1);
4766 _ACEOF
4767 if ac_fn_c_try_run "$LINENO"; then :
4768 gt_cv_int_divbyzero_sigfpe=yes
4769 else
4770 gt_cv_int_divbyzero_sigfpe=no
4772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4773 conftest.$ac_objext conftest.beam conftest.$ac_ext
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
4779 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
4780 case "$gt_cv_int_divbyzero_sigfpe" in
4781 *yes) value=1;;
4782 *) value=0;;
4783 esac
4785 cat >>confdefs.h <<_ACEOF
4786 #define INTDIV0_RAISES_SIGFPE $value
4787 _ACEOF
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4792 $as_echo_n "checking for inttypes.h... " >&6; }
4793 if ${jm_ac_cv_header_inttypes_h+:} false; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4798 #include <sys/types.h>
4799 #include <inttypes.h>
4801 main ()
4803 uintmax_t i = (uintmax_t) -1;
4805 return 0;
4807 _ACEOF
4808 if ac_fn_c_try_compile "$LINENO"; then :
4809 jm_ac_cv_header_inttypes_h=yes
4810 else
4811 jm_ac_cv_header_inttypes_h=no
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
4816 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
4817 if test $jm_ac_cv_header_inttypes_h = yes; then
4819 cat >>confdefs.h <<_ACEOF
4820 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4821 _ACEOF
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
4827 $as_echo_n "checking for stdint.h... " >&6; }
4828 if ${jm_ac_cv_header_stdint_h+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833 #include <sys/types.h>
4834 #include <stdint.h>
4836 main ()
4838 uintmax_t i = (uintmax_t) -1;
4840 return 0;
4842 _ACEOF
4843 if ac_fn_c_try_compile "$LINENO"; then :
4844 jm_ac_cv_header_stdint_h=yes
4845 else
4846 jm_ac_cv_header_stdint_h=no
4848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
4851 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
4852 if test $jm_ac_cv_header_stdint_h = yes; then
4854 cat >>confdefs.h <<_ACEOF
4855 #define HAVE_STDINT_H_WITH_UINTMAX 1
4856 _ACEOF
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
4862 $as_echo_n "checking for unsigned long long... " >&6; }
4863 if ${ac_cv_type_unsigned_long_long+:} false; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4868 unsigned long long ull = 1; int i = 63;
4870 main ()
4872 unsigned long long ullmax = (unsigned long long) -1;
4873 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4875 return 0;
4877 _ACEOF
4878 if ac_fn_c_try_link "$LINENO"; then :
4879 ac_cv_type_unsigned_long_long=yes
4880 else
4881 ac_cv_type_unsigned_long_long=no
4883 rm -f core conftest.err conftest.$ac_objext \
4884 conftest$ac_exeext conftest.$ac_ext
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
4887 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
4888 if test $ac_cv_type_unsigned_long_long = yes; then
4890 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
4897 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
4899 test $ac_cv_type_unsigned_long_long = yes \
4900 && ac_type='unsigned long long' \
4901 || ac_type='unsigned long'
4903 cat >>confdefs.h <<_ACEOF
4904 #define uintmax_t $ac_type
4905 _ACEOF
4907 else
4909 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4915 $as_echo_n "checking for inttypes.h... " >&6; }
4916 if ${gt_cv_header_inttypes_h+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4922 #include <sys/types.h>
4923 #include <inttypes.h>
4925 main ()
4929 return 0;
4931 _ACEOF
4932 if ac_fn_c_try_compile "$LINENO"; then :
4933 gt_cv_header_inttypes_h=yes
4934 else
4935 gt_cv_header_inttypes_h=no
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
4941 $as_echo "$gt_cv_header_inttypes_h" >&6; }
4942 if test $gt_cv_header_inttypes_h = yes; then
4944 cat >>confdefs.h <<_ACEOF
4945 #define HAVE_INTTYPES_H 1
4946 _ACEOF
4952 if test $gt_cv_header_inttypes_h = yes; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
4954 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
4955 if ${gt_cv_inttypes_pri_broken+:} false; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4961 #include <inttypes.h>
4962 #ifdef PRId32
4963 char *p = PRId32;
4964 #endif
4967 main ()
4971 return 0;
4973 _ACEOF
4974 if ac_fn_c_try_compile "$LINENO"; then :
4975 gt_cv_inttypes_pri_broken=no
4976 else
4977 gt_cv_inttypes_pri_broken=yes
4979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
4983 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
4985 if test "$gt_cv_inttypes_pri_broken" = yes; then
4987 cat >>confdefs.h <<_ACEOF
4988 #define PRI_MACROS_BROKEN 1
4989 _ACEOF
4994 if test "X$prefix" = "XNONE"; then
4995 acl_final_prefix="$ac_default_prefix"
4996 else
4997 acl_final_prefix="$prefix"
4999 if test "X$exec_prefix" = "XNONE"; then
5000 acl_final_exec_prefix='${prefix}'
5001 else
5002 acl_final_exec_prefix="$exec_prefix"
5004 acl_save_prefix="$prefix"
5005 prefix="$acl_final_prefix"
5006 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5007 prefix="$acl_save_prefix"
5010 # Check whether --with-gnu-ld was given.
5011 if test "${with_gnu_ld+set}" = set; then :
5012 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5013 else
5014 with_gnu_ld=no
5017 # Prepare PATH_SEPARATOR.
5018 # The user is always right.
5019 if test "${PATH_SEPARATOR+set}" != set; then
5020 echo "#! /bin/sh" >conf$$.sh
5021 echo "exit 0" >>conf$$.sh
5022 chmod +x conf$$.sh
5023 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5024 PATH_SEPARATOR=';'
5025 else
5026 PATH_SEPARATOR=:
5028 rm -f conf$$.sh
5030 ac_prog=ld
5031 if test "$GCC" = yes; then
5032 # Check if gcc -print-prog-name=ld gives a path.
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5034 $as_echo_n "checking for ld used by GCC... " >&6; }
5035 case $host in
5036 *-*-mingw*)
5037 # gcc leaves a trailing carriage return which upsets mingw
5038 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5040 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5041 esac
5042 case $ac_prog in
5043 # Accept absolute paths.
5044 [\\/]* | [A-Za-z]:[\\/]*)
5045 re_direlt='/[^/][^/]*/\.\./'
5046 # Canonicalize the path of ld
5047 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5048 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5049 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5050 done
5051 test -z "$LD" && LD="$ac_prog"
5054 # If it fails, then pretend we aren't using GCC.
5055 ac_prog=ld
5058 # If it is relative, then search for the first ld in PATH.
5059 with_gnu_ld=unknown
5061 esac
5062 elif test "$with_gnu_ld" = yes; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5064 $as_echo_n "checking for GNU ld... " >&6; }
5065 else
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5067 $as_echo_n "checking for non-GNU ld... " >&6; }
5069 if ${acl_cv_path_LD+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 if test -z "$LD"; then
5073 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5074 for ac_dir in $PATH; do
5075 test -z "$ac_dir" && ac_dir=.
5076 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5077 acl_cv_path_LD="$ac_dir/$ac_prog"
5078 # Check to see if the program is GNU ld. I'd rather use --version,
5079 # but apparently some GNU ld's only accept -v.
5080 # Break only if it was the GNU/non-GNU ld that we prefer.
5081 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5082 test "$with_gnu_ld" != no && break
5083 else
5084 test "$with_gnu_ld" != yes && break
5087 done
5088 IFS="$ac_save_ifs"
5089 else
5090 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5094 LD="$acl_cv_path_LD"
5095 if test -n "$LD"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5097 $as_echo "$LD" >&6; }
5098 else
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5102 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5104 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5105 if ${acl_cv_prog_gnu_ld+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5109 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5110 acl_cv_prog_gnu_ld=yes
5111 else
5112 acl_cv_prog_gnu_ld=no
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5116 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5117 with_gnu_ld=$acl_cv_prog_gnu_ld
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5122 $as_echo_n "checking for shared library run path origin... " >&6; }
5123 if ${acl_cv_rpath+:} false; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5127 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5128 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5129 . ./conftest.sh
5130 rm -f ./conftest.sh
5131 acl_cv_rpath=done
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5135 $as_echo "$acl_cv_rpath" >&6; }
5136 wl="$acl_cv_wl"
5137 libext="$acl_cv_libext"
5138 shlibext="$acl_cv_shlibext"
5139 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5140 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5141 hardcode_direct="$acl_cv_hardcode_direct"
5142 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5143 # Check whether --enable-rpath was given.
5144 if test "${enable_rpath+set}" = set; then :
5145 enableval=$enable_rpath; :
5146 else
5147 enable_rpath=yes
5157 use_additional=yes
5159 acl_save_prefix="$prefix"
5160 prefix="$acl_final_prefix"
5161 acl_save_exec_prefix="$exec_prefix"
5162 exec_prefix="$acl_final_exec_prefix"
5164 eval additional_includedir=\"$includedir\"
5165 eval additional_libdir=\"$libdir\"
5167 exec_prefix="$acl_save_exec_prefix"
5168 prefix="$acl_save_prefix"
5171 # Check whether --with-libiconv-prefix was given.
5172 if test "${with_libiconv_prefix+set}" = set; then :
5173 withval=$with_libiconv_prefix;
5174 if test "X$withval" = "Xno"; then
5175 use_additional=no
5176 else
5177 if test "X$withval" = "X"; then
5179 acl_save_prefix="$prefix"
5180 prefix="$acl_final_prefix"
5181 acl_save_exec_prefix="$exec_prefix"
5182 exec_prefix="$acl_final_exec_prefix"
5184 eval additional_includedir=\"$includedir\"
5185 eval additional_libdir=\"$libdir\"
5187 exec_prefix="$acl_save_exec_prefix"
5188 prefix="$acl_save_prefix"
5190 else
5191 additional_includedir="$withval/include"
5192 additional_libdir="$withval/lib"
5198 LIBICONV=
5199 LTLIBICONV=
5200 INCICONV=
5201 rpathdirs=
5202 ltrpathdirs=
5203 names_already_handled=
5204 names_next_round='iconv '
5205 while test -n "$names_next_round"; do
5206 names_this_round="$names_next_round"
5207 names_next_round=
5208 for name in $names_this_round; do
5209 already_handled=
5210 for n in $names_already_handled; do
5211 if test "$n" = "$name"; then
5212 already_handled=yes
5213 break
5215 done
5216 if test -z "$already_handled"; then
5217 names_already_handled="$names_already_handled $name"
5218 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5219 eval value=\"\$HAVE_LIB$uppername\"
5220 if test -n "$value"; then
5221 if test "$value" = yes; then
5222 eval value=\"\$LIB$uppername\"
5223 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5224 eval value=\"\$LTLIB$uppername\"
5225 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5226 else
5229 else
5230 found_dir=
5231 found_la=
5232 found_so=
5233 found_a=
5234 if test $use_additional = yes; then
5235 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5236 found_dir="$additional_libdir"
5237 found_so="$additional_libdir/lib$name.$shlibext"
5238 if test -f "$additional_libdir/lib$name.la"; then
5239 found_la="$additional_libdir/lib$name.la"
5241 else
5242 if test -f "$additional_libdir/lib$name.$libext"; then
5243 found_dir="$additional_libdir"
5244 found_a="$additional_libdir/lib$name.$libext"
5245 if test -f "$additional_libdir/lib$name.la"; then
5246 found_la="$additional_libdir/lib$name.la"
5251 if test "X$found_dir" = "X"; then
5252 for x in $LDFLAGS $LTLIBICONV; do
5254 acl_save_prefix="$prefix"
5255 prefix="$acl_final_prefix"
5256 acl_save_exec_prefix="$exec_prefix"
5257 exec_prefix="$acl_final_exec_prefix"
5258 eval x=\"$x\"
5259 exec_prefix="$acl_save_exec_prefix"
5260 prefix="$acl_save_prefix"
5262 case "$x" in
5263 -L*)
5264 dir=`echo "X$x" | sed -e 's/^X-L//'`
5265 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5266 found_dir="$dir"
5267 found_so="$dir/lib$name.$shlibext"
5268 if test -f "$dir/lib$name.la"; then
5269 found_la="$dir/lib$name.la"
5271 else
5272 if test -f "$dir/lib$name.$libext"; then
5273 found_dir="$dir"
5274 found_a="$dir/lib$name.$libext"
5275 if test -f "$dir/lib$name.la"; then
5276 found_la="$dir/lib$name.la"
5281 esac
5282 if test "X$found_dir" != "X"; then
5283 break
5285 done
5287 if test "X$found_dir" != "X"; then
5288 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5289 if test "X$found_so" != "X"; then
5290 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5291 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5292 else
5293 haveit=
5294 for x in $ltrpathdirs; do
5295 if test "X$x" = "X$found_dir"; then
5296 haveit=yes
5297 break
5299 done
5300 if test -z "$haveit"; then
5301 ltrpathdirs="$ltrpathdirs $found_dir"
5303 if test "$hardcode_direct" = yes; then
5304 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5305 else
5306 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5307 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5308 haveit=
5309 for x in $rpathdirs; do
5310 if test "X$x" = "X$found_dir"; then
5311 haveit=yes
5312 break
5314 done
5315 if test -z "$haveit"; then
5316 rpathdirs="$rpathdirs $found_dir"
5318 else
5319 haveit=
5320 for x in $LDFLAGS $LIBICONV; do
5322 acl_save_prefix="$prefix"
5323 prefix="$acl_final_prefix"
5324 acl_save_exec_prefix="$exec_prefix"
5325 exec_prefix="$acl_final_exec_prefix"
5326 eval x=\"$x\"
5327 exec_prefix="$acl_save_exec_prefix"
5328 prefix="$acl_save_prefix"
5330 if test "X$x" = "X-L$found_dir"; then
5331 haveit=yes
5332 break
5334 done
5335 if test -z "$haveit"; then
5336 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5338 if test "$hardcode_minus_L" != no; then
5339 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5340 else
5341 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5346 else
5347 if test "X$found_a" != "X"; then
5348 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5349 else
5350 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5353 additional_includedir=
5354 case "$found_dir" in
5355 */lib | */lib/)
5356 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5357 additional_includedir="$basedir/include"
5359 esac
5360 if test "X$additional_includedir" != "X"; then
5361 if test "X$additional_includedir" != "X/usr/include"; then
5362 haveit=
5363 if test "X$additional_includedir" = "X/usr/local/include"; then
5364 if test -n "$GCC"; then
5365 case $host_os in
5366 linux*) haveit=yes;;
5367 esac
5370 if test -z "$haveit"; then
5371 for x in $CPPFLAGS $INCICONV; do
5373 acl_save_prefix="$prefix"
5374 prefix="$acl_final_prefix"
5375 acl_save_exec_prefix="$exec_prefix"
5376 exec_prefix="$acl_final_exec_prefix"
5377 eval x=\"$x\"
5378 exec_prefix="$acl_save_exec_prefix"
5379 prefix="$acl_save_prefix"
5381 if test "X$x" = "X-I$additional_includedir"; then
5382 haveit=yes
5383 break
5385 done
5386 if test -z "$haveit"; then
5387 if test -d "$additional_includedir"; then
5388 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5394 if test -n "$found_la"; then
5395 save_libdir="$libdir"
5396 case "$found_la" in
5397 */* | *\\*) . "$found_la" ;;
5398 *) . "./$found_la" ;;
5399 esac
5400 libdir="$save_libdir"
5401 for dep in $dependency_libs; do
5402 case "$dep" in
5403 -L*)
5404 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5405 if test "X$additional_libdir" != "X/usr/lib"; then
5406 haveit=
5407 if test "X$additional_libdir" = "X/usr/local/lib"; then
5408 if test -n "$GCC"; then
5409 case $host_os in
5410 linux*) haveit=yes;;
5411 esac
5414 if test -z "$haveit"; then
5415 haveit=
5416 for x in $LDFLAGS $LIBICONV; do
5418 acl_save_prefix="$prefix"
5419 prefix="$acl_final_prefix"
5420 acl_save_exec_prefix="$exec_prefix"
5421 exec_prefix="$acl_final_exec_prefix"
5422 eval x=\"$x\"
5423 exec_prefix="$acl_save_exec_prefix"
5424 prefix="$acl_save_prefix"
5426 if test "X$x" = "X-L$additional_libdir"; then
5427 haveit=yes
5428 break
5430 done
5431 if test -z "$haveit"; then
5432 if test -d "$additional_libdir"; then
5433 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5436 haveit=
5437 for x in $LDFLAGS $LTLIBICONV; do
5439 acl_save_prefix="$prefix"
5440 prefix="$acl_final_prefix"
5441 acl_save_exec_prefix="$exec_prefix"
5442 exec_prefix="$acl_final_exec_prefix"
5443 eval x=\"$x\"
5444 exec_prefix="$acl_save_exec_prefix"
5445 prefix="$acl_save_prefix"
5447 if test "X$x" = "X-L$additional_libdir"; then
5448 haveit=yes
5449 break
5451 done
5452 if test -z "$haveit"; then
5453 if test -d "$additional_libdir"; then
5454 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5460 -R*)
5461 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5462 if test "$enable_rpath" != no; then
5463 haveit=
5464 for x in $rpathdirs; do
5465 if test "X$x" = "X$dir"; then
5466 haveit=yes
5467 break
5469 done
5470 if test -z "$haveit"; then
5471 rpathdirs="$rpathdirs $dir"
5473 haveit=
5474 for x in $ltrpathdirs; do
5475 if test "X$x" = "X$dir"; then
5476 haveit=yes
5477 break
5479 done
5480 if test -z "$haveit"; then
5481 ltrpathdirs="$ltrpathdirs $dir"
5485 -l*)
5486 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5488 *.la)
5489 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5492 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5493 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5495 esac
5496 done
5498 else
5499 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5500 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5504 done
5505 done
5506 if test "X$rpathdirs" != "X"; then
5507 if test -n "$hardcode_libdir_separator"; then
5508 alldirs=
5509 for found_dir in $rpathdirs; do
5510 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5511 done
5512 acl_save_libdir="$libdir"
5513 libdir="$alldirs"
5514 eval flag=\"$hardcode_libdir_flag_spec\"
5515 libdir="$acl_save_libdir"
5516 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5517 else
5518 for found_dir in $rpathdirs; do
5519 acl_save_libdir="$libdir"
5520 libdir="$found_dir"
5521 eval flag=\"$hardcode_libdir_flag_spec\"
5522 libdir="$acl_save_libdir"
5523 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5524 done
5527 if test "X$ltrpathdirs" != "X"; then
5528 for found_dir in $ltrpathdirs; do
5529 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5530 done
5536 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5537 stdlib.h string.h unistd.h sys/param.h
5538 do :
5539 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5540 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5541 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5542 cat >>confdefs.h <<_ACEOF
5543 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5544 _ACEOF
5548 done
5550 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
5551 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
5552 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
5553 __fsetlocking
5554 do :
5555 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5556 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5557 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5558 cat >>confdefs.h <<_ACEOF
5559 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5560 _ACEOF
5563 done
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5572 $as_echo_n "checking for iconv... " >&6; }
5573 if ${am_cv_func_iconv+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5577 am_cv_func_iconv="no, consider installing GNU libiconv"
5578 am_cv_lib_iconv=no
5579 am_save_CPPFLAGS="$CPPFLAGS"
5580 CPPFLAGS="$CPPFLAGS $INCICONV"
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5583 #include <stdlib.h>
5584 #include <iconv.h>
5586 main ()
5588 iconv_t cd = iconv_open("","");
5589 iconv(cd,NULL,NULL,NULL,NULL);
5590 iconv_close(cd);
5592 return 0;
5594 _ACEOF
5595 if ac_fn_c_try_link "$LINENO"; then :
5596 am_cv_func_iconv=yes
5598 rm -f core conftest.err conftest.$ac_objext \
5599 conftest$ac_exeext conftest.$ac_ext
5600 CPPFLAGS="$am_save_CPPFLAGS"
5602 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
5603 for _libs in .libs _libs; do
5604 am_save_CPPFLAGS="$CPPFLAGS"
5605 am_save_LIBS="$LIBS"
5606 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
5607 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5610 #include <stdlib.h>
5611 #include <iconv.h>
5613 main ()
5615 iconv_t cd = iconv_open("","");
5616 iconv(cd,NULL,NULL,NULL,NULL);
5617 iconv_close(cd);
5619 return 0;
5621 _ACEOF
5622 if ac_fn_c_try_link "$LINENO"; then :
5623 INCICONV="-I../libiconv/include"
5624 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
5625 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
5626 am_cv_lib_iconv=yes
5627 am_cv_func_iconv=yes
5629 rm -f core conftest.err conftest.$ac_objext \
5630 conftest$ac_exeext conftest.$ac_ext
5631 CPPFLAGS="$am_save_CPPFLAGS"
5632 LIBS="$am_save_LIBS"
5633 if test "$am_cv_func_iconv" = "yes"; then
5634 break
5636 done
5639 if test "$am_cv_func_iconv" != yes; then
5640 am_save_CPPFLAGS="$CPPFLAGS"
5641 am_save_LIBS="$LIBS"
5642 CPPFLAGS="$CPPFLAGS $INCICONV"
5643 LIBS="$LIBS $LIBICONV"
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646 #include <stdlib.h>
5647 #include <iconv.h>
5649 main ()
5651 iconv_t cd = iconv_open("","");
5652 iconv(cd,NULL,NULL,NULL,NULL);
5653 iconv_close(cd);
5655 return 0;
5657 _ACEOF
5658 if ac_fn_c_try_link "$LINENO"; then :
5659 am_cv_lib_iconv=yes
5660 am_cv_func_iconv=yes
5662 rm -f core conftest.err conftest.$ac_objext \
5663 conftest$ac_exeext conftest.$ac_ext
5664 CPPFLAGS="$am_save_CPPFLAGS"
5665 LIBS="$am_save_LIBS"
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5670 $as_echo "$am_cv_func_iconv" >&6; }
5671 if test "$am_cv_func_iconv" = yes; then
5673 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5676 if test "$am_cv_lib_iconv" = yes; then
5678 for element in $INCICONV; do
5679 haveit=
5680 for x in $CPPFLAGS; do
5682 acl_save_prefix="$prefix"
5683 prefix="$acl_final_prefix"
5684 acl_save_exec_prefix="$exec_prefix"
5685 exec_prefix="$acl_final_exec_prefix"
5686 eval x=\"$x\"
5687 exec_prefix="$acl_save_exec_prefix"
5688 prefix="$acl_save_prefix"
5690 if test "X$x" = "X$element"; then
5691 haveit=yes
5692 break
5694 done
5695 if test -z "$haveit"; then
5696 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5698 done
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5701 $as_echo_n "checking how to link with libiconv... " >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5703 $as_echo "$LIBICONV" >&6; }
5704 else
5705 LIBICONV=
5706 LTLIBICONV=
5711 if test "$am_cv_func_iconv" = yes; then
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
5713 $as_echo_n "checking for iconv declaration... " >&6; }
5714 if ${am_cv_proto_iconv+:} false; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5721 #include <stdlib.h>
5722 #include <iconv.h>
5723 extern
5724 #ifdef __cplusplus
5726 #endif
5727 #if defined(__STDC__) || defined(__cplusplus)
5728 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5729 #else
5730 size_t iconv();
5731 #endif
5734 main ()
5738 return 0;
5740 _ACEOF
5741 if ac_fn_c_try_compile "$LINENO"; then :
5742 am_cv_proto_iconv_arg1=""
5743 else
5744 am_cv_proto_iconv_arg1="const"
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 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);"
5750 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
5752 }$am_cv_proto_iconv" >&5
5753 $as_echo "${ac_t:-
5754 }$am_cv_proto_iconv" >&6; }
5756 cat >>confdefs.h <<_ACEOF
5757 #define ICONV_CONST $am_cv_proto_iconv_arg1
5758 _ACEOF
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5764 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5765 if ${am_cv_langinfo_codeset+:} false; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #include <langinfo.h>
5772 main ()
5774 char* cs = nl_langinfo(CODESET);
5776 return 0;
5778 _ACEOF
5779 if ac_fn_c_try_link "$LINENO"; then :
5780 am_cv_langinfo_codeset=yes
5781 else
5782 am_cv_langinfo_codeset=no
5784 rm -f core conftest.err conftest.$ac_objext \
5785 conftest$ac_exeext conftest.$ac_ext
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5789 $as_echo "$am_cv_langinfo_codeset" >&6; }
5790 if test $am_cv_langinfo_codeset = yes; then
5792 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5796 if test $ac_cv_header_locale_h = yes; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
5799 $as_echo_n "checking for LC_MESSAGES... " >&6; }
5800 if ${am_cv_val_LC_MESSAGES+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 #include <locale.h>
5807 main ()
5809 return LC_MESSAGES
5811 return 0;
5813 _ACEOF
5814 if ac_fn_c_try_link "$LINENO"; then :
5815 am_cv_val_LC_MESSAGES=yes
5816 else
5817 am_cv_val_LC_MESSAGES=no
5819 rm -f core conftest.err conftest.$ac_objext \
5820 conftest$ac_exeext conftest.$ac_ext
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
5823 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
5824 if test $am_cv_val_LC_MESSAGES = yes; then
5826 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
5832 for ac_prog in bison
5834 # Extract the first word of "$ac_prog", so it can be a program name with args.
5835 set dummy $ac_prog; ac_word=$2
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837 $as_echo_n "checking for $ac_word... " >&6; }
5838 if ${ac_cv_prog_INTLBISON+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 if test -n "$INTLBISON"; then
5842 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
5843 else
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851 ac_cv_prog_INTLBISON="$ac_prog"
5852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 break 2
5855 done
5856 done
5857 IFS=$as_save_IFS
5861 INTLBISON=$ac_cv_prog_INTLBISON
5862 if test -n "$INTLBISON"; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
5864 $as_echo "$INTLBISON" >&6; }
5865 else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867 $as_echo "no" >&6; }
5871 test -n "$INTLBISON" && break
5872 done
5874 if test -z "$INTLBISON"; then
5875 ac_verc_fail=yes
5876 else
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
5878 $as_echo_n "checking version of bison... " >&6; }
5879 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5880 case $ac_prog_version in
5881 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5882 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5883 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5884 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5885 esac
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5887 $as_echo "$ac_prog_version" >&6; }
5889 if test $ac_verc_fail = yes; then
5890 INTLBISON=:
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5909 $as_echo_n "checking whether NLS is requested... " >&6; }
5910 # Check whether --enable-nls was given.
5911 if test "${enable_nls+set}" = set; then :
5912 enableval=$enable_nls; USE_NLS=$enableval
5913 else
5914 USE_NLS=yes
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5918 $as_echo "$USE_NLS" >&6; }
5923 BUILD_INCLUDED_LIBINTL=no
5924 USE_INCLUDED_LIBINTL=no
5926 LIBINTL=
5927 LTLIBINTL=
5928 POSUB=
5930 if test "$USE_NLS" = "yes"; then
5931 gt_use_preinstalled_gnugettext=no
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
5934 $as_echo_n "checking whether included gettext is requested... " >&6; }
5936 # Check whether --with-included-gettext was given.
5937 if test "${with_included_gettext+set}" = set; then :
5938 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
5939 else
5940 nls_cv_force_use_gnu_gettext=no
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
5944 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
5946 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5947 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5955 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5956 if ${gt_cv_func_gnugettext2_libc+:} false; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5961 #include <libintl.h>
5962 extern int _nl_msg_cat_cntr;
5963 extern int *_nl_domain_bindings;
5965 main ()
5967 bindtextdomain ("", "");
5968 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
5970 return 0;
5972 _ACEOF
5973 if ac_fn_c_try_link "$LINENO"; then :
5974 gt_cv_func_gnugettext2_libc=yes
5975 else
5976 gt_cv_func_gnugettext2_libc=no
5978 rm -f core conftest.err conftest.$ac_objext \
5979 conftest$ac_exeext conftest.$ac_ext
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
5982 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
5984 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
5988 use_additional=yes
5990 acl_save_prefix="$prefix"
5991 prefix="$acl_final_prefix"
5992 acl_save_exec_prefix="$exec_prefix"
5993 exec_prefix="$acl_final_exec_prefix"
5995 eval additional_includedir=\"$includedir\"
5996 eval additional_libdir=\"$libdir\"
5998 exec_prefix="$acl_save_exec_prefix"
5999 prefix="$acl_save_prefix"
6002 # Check whether --with-libintl-prefix was given.
6003 if test "${with_libintl_prefix+set}" = set; then :
6004 withval=$with_libintl_prefix;
6005 if test "X$withval" = "Xno"; then
6006 use_additional=no
6007 else
6008 if test "X$withval" = "X"; then
6010 acl_save_prefix="$prefix"
6011 prefix="$acl_final_prefix"
6012 acl_save_exec_prefix="$exec_prefix"
6013 exec_prefix="$acl_final_exec_prefix"
6015 eval additional_includedir=\"$includedir\"
6016 eval additional_libdir=\"$libdir\"
6018 exec_prefix="$acl_save_exec_prefix"
6019 prefix="$acl_save_prefix"
6021 else
6022 additional_includedir="$withval/include"
6023 additional_libdir="$withval/lib"
6029 LIBINTL=
6030 LTLIBINTL=
6031 INCINTL=
6032 rpathdirs=
6033 ltrpathdirs=
6034 names_already_handled=
6035 names_next_round='intl '
6036 while test -n "$names_next_round"; do
6037 names_this_round="$names_next_round"
6038 names_next_round=
6039 for name in $names_this_round; do
6040 already_handled=
6041 for n in $names_already_handled; do
6042 if test "$n" = "$name"; then
6043 already_handled=yes
6044 break
6046 done
6047 if test -z "$already_handled"; then
6048 names_already_handled="$names_already_handled $name"
6049 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6050 eval value=\"\$HAVE_LIB$uppername\"
6051 if test -n "$value"; then
6052 if test "$value" = yes; then
6053 eval value=\"\$LIB$uppername\"
6054 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6055 eval value=\"\$LTLIB$uppername\"
6056 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6057 else
6060 else
6061 found_dir=
6062 found_la=
6063 found_so=
6064 found_a=
6065 if test $use_additional = yes; then
6066 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6067 found_dir="$additional_libdir"
6068 found_so="$additional_libdir/lib$name.$shlibext"
6069 if test -f "$additional_libdir/lib$name.la"; then
6070 found_la="$additional_libdir/lib$name.la"
6072 else
6073 if test -f "$additional_libdir/lib$name.$libext"; then
6074 found_dir="$additional_libdir"
6075 found_a="$additional_libdir/lib$name.$libext"
6076 if test -f "$additional_libdir/lib$name.la"; then
6077 found_la="$additional_libdir/lib$name.la"
6082 if test "X$found_dir" = "X"; then
6083 for x in $LDFLAGS $LTLIBINTL; do
6085 acl_save_prefix="$prefix"
6086 prefix="$acl_final_prefix"
6087 acl_save_exec_prefix="$exec_prefix"
6088 exec_prefix="$acl_final_exec_prefix"
6089 eval x=\"$x\"
6090 exec_prefix="$acl_save_exec_prefix"
6091 prefix="$acl_save_prefix"
6093 case "$x" in
6094 -L*)
6095 dir=`echo "X$x" | sed -e 's/^X-L//'`
6096 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6097 found_dir="$dir"
6098 found_so="$dir/lib$name.$shlibext"
6099 if test -f "$dir/lib$name.la"; then
6100 found_la="$dir/lib$name.la"
6102 else
6103 if test -f "$dir/lib$name.$libext"; then
6104 found_dir="$dir"
6105 found_a="$dir/lib$name.$libext"
6106 if test -f "$dir/lib$name.la"; then
6107 found_la="$dir/lib$name.la"
6112 esac
6113 if test "X$found_dir" != "X"; then
6114 break
6116 done
6118 if test "X$found_dir" != "X"; then
6119 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6120 if test "X$found_so" != "X"; then
6121 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6122 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6123 else
6124 haveit=
6125 for x in $ltrpathdirs; do
6126 if test "X$x" = "X$found_dir"; then
6127 haveit=yes
6128 break
6130 done
6131 if test -z "$haveit"; then
6132 ltrpathdirs="$ltrpathdirs $found_dir"
6134 if test "$hardcode_direct" = yes; then
6135 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6136 else
6137 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6138 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6139 haveit=
6140 for x in $rpathdirs; do
6141 if test "X$x" = "X$found_dir"; then
6142 haveit=yes
6143 break
6145 done
6146 if test -z "$haveit"; then
6147 rpathdirs="$rpathdirs $found_dir"
6149 else
6150 haveit=
6151 for x in $LDFLAGS $LIBINTL; do
6153 acl_save_prefix="$prefix"
6154 prefix="$acl_final_prefix"
6155 acl_save_exec_prefix="$exec_prefix"
6156 exec_prefix="$acl_final_exec_prefix"
6157 eval x=\"$x\"
6158 exec_prefix="$acl_save_exec_prefix"
6159 prefix="$acl_save_prefix"
6161 if test "X$x" = "X-L$found_dir"; then
6162 haveit=yes
6163 break
6165 done
6166 if test -z "$haveit"; then
6167 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6169 if test "$hardcode_minus_L" != no; then
6170 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6171 else
6172 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6177 else
6178 if test "X$found_a" != "X"; then
6179 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6180 else
6181 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6184 additional_includedir=
6185 case "$found_dir" in
6186 */lib | */lib/)
6187 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6188 additional_includedir="$basedir/include"
6190 esac
6191 if test "X$additional_includedir" != "X"; then
6192 if test "X$additional_includedir" != "X/usr/include"; then
6193 haveit=
6194 if test "X$additional_includedir" = "X/usr/local/include"; then
6195 if test -n "$GCC"; then
6196 case $host_os in
6197 linux*) haveit=yes;;
6198 esac
6201 if test -z "$haveit"; then
6202 for x in $CPPFLAGS $INCINTL; do
6204 acl_save_prefix="$prefix"
6205 prefix="$acl_final_prefix"
6206 acl_save_exec_prefix="$exec_prefix"
6207 exec_prefix="$acl_final_exec_prefix"
6208 eval x=\"$x\"
6209 exec_prefix="$acl_save_exec_prefix"
6210 prefix="$acl_save_prefix"
6212 if test "X$x" = "X-I$additional_includedir"; then
6213 haveit=yes
6214 break
6216 done
6217 if test -z "$haveit"; then
6218 if test -d "$additional_includedir"; then
6219 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6225 if test -n "$found_la"; then
6226 save_libdir="$libdir"
6227 case "$found_la" in
6228 */* | *\\*) . "$found_la" ;;
6229 *) . "./$found_la" ;;
6230 esac
6231 libdir="$save_libdir"
6232 for dep in $dependency_libs; do
6233 case "$dep" in
6234 -L*)
6235 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6236 if test "X$additional_libdir" != "X/usr/lib"; then
6237 haveit=
6238 if test "X$additional_libdir" = "X/usr/local/lib"; then
6239 if test -n "$GCC"; then
6240 case $host_os in
6241 linux*) haveit=yes;;
6242 esac
6245 if test -z "$haveit"; then
6246 haveit=
6247 for x in $LDFLAGS $LIBINTL; do
6249 acl_save_prefix="$prefix"
6250 prefix="$acl_final_prefix"
6251 acl_save_exec_prefix="$exec_prefix"
6252 exec_prefix="$acl_final_exec_prefix"
6253 eval x=\"$x\"
6254 exec_prefix="$acl_save_exec_prefix"
6255 prefix="$acl_save_prefix"
6257 if test "X$x" = "X-L$additional_libdir"; then
6258 haveit=yes
6259 break
6261 done
6262 if test -z "$haveit"; then
6263 if test -d "$additional_libdir"; then
6264 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6267 haveit=
6268 for x in $LDFLAGS $LTLIBINTL; do
6270 acl_save_prefix="$prefix"
6271 prefix="$acl_final_prefix"
6272 acl_save_exec_prefix="$exec_prefix"
6273 exec_prefix="$acl_final_exec_prefix"
6274 eval x=\"$x\"
6275 exec_prefix="$acl_save_exec_prefix"
6276 prefix="$acl_save_prefix"
6278 if test "X$x" = "X-L$additional_libdir"; then
6279 haveit=yes
6280 break
6282 done
6283 if test -z "$haveit"; then
6284 if test -d "$additional_libdir"; then
6285 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6291 -R*)
6292 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6293 if test "$enable_rpath" != no; then
6294 haveit=
6295 for x in $rpathdirs; do
6296 if test "X$x" = "X$dir"; then
6297 haveit=yes
6298 break
6300 done
6301 if test -z "$haveit"; then
6302 rpathdirs="$rpathdirs $dir"
6304 haveit=
6305 for x in $ltrpathdirs; do
6306 if test "X$x" = "X$dir"; then
6307 haveit=yes
6308 break
6310 done
6311 if test -z "$haveit"; then
6312 ltrpathdirs="$ltrpathdirs $dir"
6316 -l*)
6317 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6319 *.la)
6320 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6323 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6324 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6326 esac
6327 done
6329 else
6330 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6331 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6335 done
6336 done
6337 if test "X$rpathdirs" != "X"; then
6338 if test -n "$hardcode_libdir_separator"; then
6339 alldirs=
6340 for found_dir in $rpathdirs; do
6341 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6342 done
6343 acl_save_libdir="$libdir"
6344 libdir="$alldirs"
6345 eval flag=\"$hardcode_libdir_flag_spec\"
6346 libdir="$acl_save_libdir"
6347 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6348 else
6349 for found_dir in $rpathdirs; do
6350 acl_save_libdir="$libdir"
6351 libdir="$found_dir"
6352 eval flag=\"$hardcode_libdir_flag_spec\"
6353 libdir="$acl_save_libdir"
6354 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6355 done
6358 if test "X$ltrpathdirs" != "X"; then
6359 for found_dir in $ltrpathdirs; do
6360 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6361 done
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6365 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6366 if ${gt_cv_func_gnugettext2_libintl+:} false; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 gt_save_CPPFLAGS="$CPPFLAGS"
6370 CPPFLAGS="$CPPFLAGS $INCINTL"
6371 gt_save_LIBS="$LIBS"
6372 LIBS="$LIBS $LIBINTL"
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6375 #include <libintl.h>
6376 extern int _nl_msg_cat_cntr;
6377 extern
6378 #ifdef __cplusplus
6380 #endif
6381 const char *_nl_expand_alias ();
6383 main ()
6385 bindtextdomain ("", "");
6386 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6388 return 0;
6390 _ACEOF
6391 if ac_fn_c_try_link "$LINENO"; then :
6392 gt_cv_func_gnugettext2_libintl=yes
6393 else
6394 gt_cv_func_gnugettext2_libintl=no
6396 rm -f core conftest.err conftest.$ac_objext \
6397 conftest$ac_exeext conftest.$ac_ext
6398 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
6399 LIBS="$LIBS $LIBICONV"
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6402 #include <libintl.h>
6403 extern int _nl_msg_cat_cntr;
6404 extern
6405 #ifdef __cplusplus
6407 #endif
6408 const char *_nl_expand_alias ();
6410 main ()
6412 bindtextdomain ("", "");
6413 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6415 return 0;
6417 _ACEOF
6418 if ac_fn_c_try_link "$LINENO"; then :
6419 LIBINTL="$LIBINTL $LIBICONV"
6420 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6421 gt_cv_func_gnugettext2_libintl=yes
6424 rm -f core conftest.err conftest.$ac_objext \
6425 conftest$ac_exeext conftest.$ac_ext
6427 CPPFLAGS="$gt_save_CPPFLAGS"
6428 LIBS="$gt_save_LIBS"
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
6431 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
6434 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
6435 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
6436 && test "$PACKAGE" != gettext-runtime \
6437 && test "$PACKAGE" != gettext-tools; }; then
6438 gt_use_preinstalled_gnugettext=yes
6439 else
6440 LIBINTL=
6441 LTLIBINTL=
6442 INCINTL=
6446 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
6447 nls_cv_use_gnu_gettext=yes
6451 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6452 BUILD_INCLUDED_LIBINTL=yes
6453 USE_INCLUDED_LIBINTL=yes
6454 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
6455 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
6456 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6459 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6460 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6461 CATOBJEXT=.gmo
6465 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6466 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6468 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6470 else
6471 USE_NLS=no
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6476 $as_echo_n "checking whether to use NLS... " >&6; }
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6478 $as_echo "$USE_NLS" >&6; }
6479 if test "$USE_NLS" = "yes"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6481 $as_echo_n "checking where the gettext function comes from... " >&6; }
6482 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6483 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
6484 gt_source="external libintl"
6485 else
6486 gt_source="libc"
6488 else
6489 gt_source="included intl directory"
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6492 $as_echo "$gt_source" >&6; }
6495 if test "$USE_NLS" = "yes"; then
6497 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6498 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6500 $as_echo_n "checking how to link with libintl... " >&6; }
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6502 $as_echo "$LIBINTL" >&6; }
6504 for element in $INCINTL; do
6505 haveit=
6506 for x in $CPPFLAGS; do
6508 acl_save_prefix="$prefix"
6509 prefix="$acl_final_prefix"
6510 acl_save_exec_prefix="$exec_prefix"
6511 exec_prefix="$acl_final_exec_prefix"
6512 eval x=\"$x\"
6513 exec_prefix="$acl_save_exec_prefix"
6514 prefix="$acl_save_prefix"
6516 if test "X$x" = "X$element"; then
6517 haveit=yes
6518 break
6520 done
6521 if test -z "$haveit"; then
6522 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6524 done
6529 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6532 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6536 POSUB=po
6540 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
6541 BUILD_INCLUDED_LIBINTL=yes
6548 nls_cv_header_intl=
6549 nls_cv_header_libgt=
6551 DATADIRNAME=share
6554 INSTOBJEXT=.mo
6557 GENCAT=gencat
6560 if test "$USE_INCLUDED_LIBINTL" = yes; then
6561 INTLOBJS="\$(GETTOBJS)"
6565 INTL_LIBTOOL_SUFFIX_PREFIX=
6569 INTLLIBS="$LIBINTL"
6577 # This replaces the extensive use of DEFS in the original Makefile.in.
6579 $as_echo "#define IN_LIBINTL 1" >>confdefs.h
6582 $as_echo "#define IN_LIBRARY 1" >>confdefs.h
6585 $as_echo "#define DEPENDS_ON_LIBICONV 1" >>confdefs.h
6588 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
6591 $as_echo "#define NO_XMALLOC 1" >>confdefs.h
6594 $as_echo "#define set_relocation_prefix libintl_set_relocation_prefix" >>confdefs.h
6597 $as_echo "#define relocate libintl_relocate" >>confdefs.h
6600 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6601 for ac_prog in aclocal
6603 # Extract the first word of "$ac_prog", so it can be a program name with args.
6604 set dummy $ac_prog; ac_word=$2
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if ${ac_cv_prog_ACLOCAL+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 if test -n "$ACLOCAL"; then
6611 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6620 ac_cv_prog_ACLOCAL="$ac_prog"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6624 done
6625 done
6626 IFS=$as_save_IFS
6630 ACLOCAL=$ac_cv_prog_ACLOCAL
6631 if test -n "$ACLOCAL"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
6633 $as_echo "$ACLOCAL" >&6; }
6634 else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6640 test -n "$ACLOCAL" && break
6641 done
6642 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
6644 for ac_prog in autoconf
6646 # Extract the first word of "$ac_prog", so it can be a program name with args.
6647 set dummy $ac_prog; ac_word=$2
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649 $as_echo_n "checking for $ac_word... " >&6; }
6650 if ${ac_cv_prog_AUTOCONF+:} false; then :
6651 $as_echo_n "(cached) " >&6
6652 else
6653 if test -n "$AUTOCONF"; then
6654 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
6655 else
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 for as_dir in $PATH
6659 IFS=$as_save_IFS
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6663 ac_cv_prog_AUTOCONF="$ac_prog"
6664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 break 2
6667 done
6668 done
6669 IFS=$as_save_IFS
6673 AUTOCONF=$ac_cv_prog_AUTOCONF
6674 if test -n "$AUTOCONF"; then
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
6676 $as_echo "$AUTOCONF" >&6; }
6677 else
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679 $as_echo "no" >&6; }
6683 test -n "$AUTOCONF" && break
6684 done
6685 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
6687 for ac_prog in autoheader
6689 # Extract the first word of "$ac_prog", so it can be a program name with args.
6690 set dummy $ac_prog; ac_word=$2
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if ${ac_cv_prog_AUTOHEADER+:} false; then :
6694 $as_echo_n "(cached) " >&6
6695 else
6696 if test -n "$AUTOHEADER"; then
6697 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706 ac_cv_prog_AUTOHEADER="$ac_prog"
6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 break 2
6710 done
6711 done
6712 IFS=$as_save_IFS
6716 AUTOHEADER=$ac_cv_prog_AUTOHEADER
6717 if test -n "$AUTOHEADER"; then
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
6719 $as_echo "$AUTOHEADER" >&6; }
6720 else
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6726 test -n "$AUTOHEADER" && break
6727 done
6728 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
6731 # Check whether --enable-maintainer-mode was given.
6732 if test "${enable_maintainer_mode+set}" = set; then :
6733 enableval=$enable_maintainer_mode;
6734 else
6735 enable_maintainer_mode=no
6738 if test "x$enable_maintainer_mode" = xno; then
6739 MAINT='#'
6740 else
6741 MAINT=
6745 # Additional info for config.intl.
6749 LIBINTL_DEP=
6750 INCINTL=
6751 case $USE_INCLUDED_LIBINTL in
6752 yes)
6753 LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},&/..,' `
6754 LTLIBINTL=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' `
6755 LIBINTL_DEP='${top_builddir}/../intl/libintl.a'
6756 INCINTL='-I${top_builddir}/../intl'
6758 esac
6760 ac_config_files="$ac_config_files Makefile config.intl"
6762 cat >confcache <<\_ACEOF
6763 # This file is a shell script that caches the results of configure
6764 # tests run on this system so they can be shared between configure
6765 # scripts and configure runs, see configure's option --config-cache.
6766 # It is not useful on other systems. If it contains results you don't
6767 # want to keep, you may remove or edit it.
6769 # config.status only pays attention to the cache file if you give it
6770 # the --recheck option to rerun configure.
6772 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6773 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6774 # following values.
6776 _ACEOF
6778 # The following way of writing the cache mishandles newlines in values,
6779 # but we know of no workaround that is simple, portable, and efficient.
6780 # So, we kill variables containing newlines.
6781 # Ultrix sh set writes to stderr and can't be redirected directly,
6782 # and sets the high bit in the cache file unless we assign to the vars.
6784 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6785 eval ac_val=\$$ac_var
6786 case $ac_val in #(
6787 *${as_nl}*)
6788 case $ac_var in #(
6789 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6790 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6791 esac
6792 case $ac_var in #(
6793 _ | IFS | as_nl) ;; #(
6794 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6795 *) { eval $ac_var=; unset $ac_var;} ;;
6796 esac ;;
6797 esac
6798 done
6800 (set) 2>&1 |
6801 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6802 *${as_nl}ac_space=\ *)
6803 # `set' does not quote correctly, so add quotes: double-quote
6804 # substitution turns \\\\ into \\, and sed turns \\ into \.
6805 sed -n \
6806 "s/'/'\\\\''/g;
6807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6808 ;; #(
6810 # `set' quotes correctly as required by POSIX, so do not add quotes.
6811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6813 esac |
6814 sort
6816 sed '
6817 /^ac_cv_env_/b end
6818 t clear
6819 :clear
6820 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6821 t end
6822 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6823 :end' >>confcache
6824 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6825 if test -w "$cache_file"; then
6826 if test "x$cache_file" != "x/dev/null"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6828 $as_echo "$as_me: updating cache $cache_file" >&6;}
6829 if test ! -f "$cache_file" || test -h "$cache_file"; then
6830 cat confcache >"$cache_file"
6831 else
6832 case $cache_file in #(
6833 */* | ?:*)
6834 mv -f confcache "$cache_file"$$ &&
6835 mv -f "$cache_file"$$ "$cache_file" ;; #(
6837 mv -f confcache "$cache_file" ;;
6838 esac
6841 else
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6843 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6846 rm -f confcache
6848 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6849 # Let make expand exec_prefix.
6850 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6852 DEFS=-DHAVE_CONFIG_H
6854 ac_libobjs=
6855 ac_ltlibobjs=
6857 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6858 # 1. Remove the extension, and $U if already installed.
6859 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6860 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6861 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6862 # will be set to the directory where LIBOBJS objects are built.
6863 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6864 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6865 done
6866 LIBOBJS=$ac_libobjs
6868 LTLIBOBJS=$ac_ltlibobjs
6872 : "${CONFIG_STATUS=./config.status}"
6873 ac_write_fail=0
6874 ac_clean_files_save=$ac_clean_files
6875 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6877 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6878 as_write_fail=0
6879 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6880 #! $SHELL
6881 # Generated by $as_me.
6882 # Run this file to recreate the current configuration.
6883 # Compiler output produced by configure, useful for debugging
6884 # configure, is in config.log if it exists.
6886 debug=false
6887 ac_cs_recheck=false
6888 ac_cs_silent=false
6890 SHELL=\${CONFIG_SHELL-$SHELL}
6891 export SHELL
6892 _ASEOF
6893 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6894 ## -------------------- ##
6895 ## M4sh Initialization. ##
6896 ## -------------------- ##
6898 # Be more Bourne compatible
6899 DUALCASE=1; export DUALCASE # for MKS sh
6900 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6901 emulate sh
6902 NULLCMD=:
6903 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6904 # is contrary to our usage. Disable this feature.
6905 alias -g '${1+"$@"}'='"$@"'
6906 setopt NO_GLOB_SUBST
6907 else
6908 case `(set -o) 2>/dev/null` in #(
6909 *posix*) :
6910 set -o posix ;; #(
6911 *) :
6913 esac
6917 as_nl='
6919 export as_nl
6920 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6921 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6922 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6923 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6924 # Prefer a ksh shell builtin over an external printf program on Solaris,
6925 # but without wasting forks for bash or zsh.
6926 if test -z "$BASH_VERSION$ZSH_VERSION" \
6927 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6928 as_echo='print -r --'
6929 as_echo_n='print -rn --'
6930 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6931 as_echo='printf %s\n'
6932 as_echo_n='printf %s'
6933 else
6934 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6935 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6936 as_echo_n='/usr/ucb/echo -n'
6937 else
6938 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6939 as_echo_n_body='eval
6940 arg=$1;
6941 case $arg in #(
6942 *"$as_nl"*)
6943 expr "X$arg" : "X\\(.*\\)$as_nl";
6944 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6945 esac;
6946 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6948 export as_echo_n_body
6949 as_echo_n='sh -c $as_echo_n_body as_echo'
6951 export as_echo_body
6952 as_echo='sh -c $as_echo_body as_echo'
6955 # The user is always right.
6956 if test "${PATH_SEPARATOR+set}" != set; then
6957 PATH_SEPARATOR=:
6958 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6959 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6960 PATH_SEPARATOR=';'
6965 # IFS
6966 # We need space, tab and new line, in precisely that order. Quoting is
6967 # there to prevent editors from complaining about space-tab.
6968 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6969 # splitting by setting IFS to empty value.)
6970 IFS=" "" $as_nl"
6972 # Find who we are. Look in the path if we contain no directory separator.
6973 as_myself=
6974 case $0 in #((
6975 *[\\/]* ) as_myself=$0 ;;
6976 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
6981 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6982 done
6983 IFS=$as_save_IFS
6986 esac
6987 # We did not find ourselves, most probably we were run as `sh COMMAND'
6988 # in which case we are not to be found in the path.
6989 if test "x$as_myself" = x; then
6990 as_myself=$0
6992 if test ! -f "$as_myself"; then
6993 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6994 exit 1
6997 # Unset variables that we do not need and which cause bugs (e.g. in
6998 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6999 # suppresses any "Segmentation fault" message there. '((' could
7000 # trigger a bug in pdksh 5.2.14.
7001 for as_var in BASH_ENV ENV MAIL MAILPATH
7002 do eval test x\${$as_var+set} = xset \
7003 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7004 done
7005 PS1='$ '
7006 PS2='> '
7007 PS4='+ '
7009 # NLS nuisances.
7010 LC_ALL=C
7011 export LC_ALL
7012 LANGUAGE=C
7013 export LANGUAGE
7015 # CDPATH.
7016 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7019 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7020 # ----------------------------------------
7021 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7022 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7023 # script with STATUS, using 1 if that was 0.
7024 as_fn_error ()
7026 as_status=$1; test $as_status -eq 0 && as_status=1
7027 if test "$4"; then
7028 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7029 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7031 $as_echo "$as_me: error: $2" >&2
7032 as_fn_exit $as_status
7033 } # as_fn_error
7036 # as_fn_set_status STATUS
7037 # -----------------------
7038 # Set $? to STATUS, without forking.
7039 as_fn_set_status ()
7041 return $1
7042 } # as_fn_set_status
7044 # as_fn_exit STATUS
7045 # -----------------
7046 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7047 as_fn_exit ()
7049 set +e
7050 as_fn_set_status $1
7051 exit $1
7052 } # as_fn_exit
7054 # as_fn_unset VAR
7055 # ---------------
7056 # Portably unset VAR.
7057 as_fn_unset ()
7059 { eval $1=; unset $1;}
7061 as_unset=as_fn_unset
7062 # as_fn_append VAR VALUE
7063 # ----------------------
7064 # Append the text in VALUE to the end of the definition contained in VAR. Take
7065 # advantage of any shell optimizations that allow amortized linear growth over
7066 # repeated appends, instead of the typical quadratic growth present in naive
7067 # implementations.
7068 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7069 eval 'as_fn_append ()
7071 eval $1+=\$2
7073 else
7074 as_fn_append ()
7076 eval $1=\$$1\$2
7078 fi # as_fn_append
7080 # as_fn_arith ARG...
7081 # ------------------
7082 # Perform arithmetic evaluation on the ARGs, and store the result in the
7083 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7084 # must be portable across $(()) and expr.
7085 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7086 eval 'as_fn_arith ()
7088 as_val=$(( $* ))
7090 else
7091 as_fn_arith ()
7093 as_val=`expr "$@" || test $? -eq 1`
7095 fi # as_fn_arith
7098 if expr a : '\(a\)' >/dev/null 2>&1 &&
7099 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7100 as_expr=expr
7101 else
7102 as_expr=false
7105 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7106 as_basename=basename
7107 else
7108 as_basename=false
7111 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7112 as_dirname=dirname
7113 else
7114 as_dirname=false
7117 as_me=`$as_basename -- "$0" ||
7118 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7119 X"$0" : 'X\(//\)$' \| \
7120 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7121 $as_echo X/"$0" |
7122 sed '/^.*\/\([^/][^/]*\)\/*$/{
7123 s//\1/
7126 /^X\/\(\/\/\)$/{
7127 s//\1/
7130 /^X\/\(\/\).*/{
7131 s//\1/
7134 s/.*/./; q'`
7136 # Avoid depending upon Character Ranges.
7137 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7138 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7139 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7140 as_cr_digits='0123456789'
7141 as_cr_alnum=$as_cr_Letters$as_cr_digits
7143 ECHO_C= ECHO_N= ECHO_T=
7144 case `echo -n x` in #(((((
7145 -n*)
7146 case `echo 'xy\c'` in
7147 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7148 xy) ECHO_C='\c';;
7149 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7150 ECHO_T=' ';;
7151 esac;;
7153 ECHO_N='-n';;
7154 esac
7156 rm -f conf$$ conf$$.exe conf$$.file
7157 if test -d conf$$.dir; then
7158 rm -f conf$$.dir/conf$$.file
7159 else
7160 rm -f conf$$.dir
7161 mkdir conf$$.dir 2>/dev/null
7163 if (echo >conf$$.file) 2>/dev/null; then
7164 if ln -s conf$$.file conf$$ 2>/dev/null; then
7165 as_ln_s='ln -s'
7166 # ... but there are two gotchas:
7167 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7168 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7169 # In both cases, we have to default to `cp -pR'.
7170 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7171 as_ln_s='cp -pR'
7172 elif ln conf$$.file conf$$ 2>/dev/null; then
7173 as_ln_s=ln
7174 else
7175 as_ln_s='cp -pR'
7177 else
7178 as_ln_s='cp -pR'
7180 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7181 rmdir conf$$.dir 2>/dev/null
7184 # as_fn_mkdir_p
7185 # -------------
7186 # Create "$as_dir" as a directory, including parents if necessary.
7187 as_fn_mkdir_p ()
7190 case $as_dir in #(
7191 -*) as_dir=./$as_dir;;
7192 esac
7193 test -d "$as_dir" || eval $as_mkdir_p || {
7194 as_dirs=
7195 while :; do
7196 case $as_dir in #(
7197 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7198 *) as_qdir=$as_dir;;
7199 esac
7200 as_dirs="'$as_qdir' $as_dirs"
7201 as_dir=`$as_dirname -- "$as_dir" ||
7202 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7203 X"$as_dir" : 'X\(//\)[^/]' \| \
7204 X"$as_dir" : 'X\(//\)$' \| \
7205 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7206 $as_echo X"$as_dir" |
7207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7208 s//\1/
7211 /^X\(\/\/\)[^/].*/{
7212 s//\1/
7215 /^X\(\/\/\)$/{
7216 s//\1/
7219 /^X\(\/\).*/{
7220 s//\1/
7223 s/.*/./; q'`
7224 test -d "$as_dir" && break
7225 done
7226 test -z "$as_dirs" || eval "mkdir $as_dirs"
7227 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7230 } # as_fn_mkdir_p
7231 if mkdir -p . 2>/dev/null; then
7232 as_mkdir_p='mkdir -p "$as_dir"'
7233 else
7234 test -d ./-p && rmdir ./-p
7235 as_mkdir_p=false
7239 # as_fn_executable_p FILE
7240 # -----------------------
7241 # Test if FILE is an executable regular file.
7242 as_fn_executable_p ()
7244 test -f "$1" && test -x "$1"
7245 } # as_fn_executable_p
7246 as_test_x='test -x'
7247 as_executable_p=as_fn_executable_p
7249 # Sed expression to map a string onto a valid CPP name.
7250 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7252 # Sed expression to map a string onto a valid variable name.
7253 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7256 exec 6>&1
7257 ## ----------------------------------- ##
7258 ## Main body of $CONFIG_STATUS script. ##
7259 ## ----------------------------------- ##
7260 _ASEOF
7261 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7264 # Save the log message, to keep $0 and so on meaningful, and to
7265 # report actual input values of CONFIG_FILES etc. instead of their
7266 # values after options handling.
7267 ac_log="
7268 This file was extended by $as_me, which was
7269 generated by GNU Autoconf 2.69. Invocation command line was
7271 CONFIG_FILES = $CONFIG_FILES
7272 CONFIG_HEADERS = $CONFIG_HEADERS
7273 CONFIG_LINKS = $CONFIG_LINKS
7274 CONFIG_COMMANDS = $CONFIG_COMMANDS
7275 $ $0 $@
7277 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7280 _ACEOF
7282 case $ac_config_files in *"
7283 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7284 esac
7286 case $ac_config_headers in *"
7287 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7288 esac
7291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7292 # Files that config.status was made for.
7293 config_files="$ac_config_files"
7294 config_headers="$ac_config_headers"
7295 config_commands="$ac_config_commands"
7297 _ACEOF
7299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7300 ac_cs_usage="\
7301 \`$as_me' instantiates files and other configuration actions
7302 from templates according to the current configuration. Unless the files
7303 and actions are specified as TAGs, all are instantiated by default.
7305 Usage: $0 [OPTION]... [TAG]...
7307 -h, --help print this help, then exit
7308 -V, --version print version number and configuration settings, then exit
7309 --config print configuration, then exit
7310 -q, --quiet, --silent
7311 do not print progress messages
7312 -d, --debug don't remove temporary files
7313 --recheck update $as_me by reconfiguring in the same conditions
7314 --file=FILE[:TEMPLATE]
7315 instantiate the configuration file FILE
7316 --header=FILE[:TEMPLATE]
7317 instantiate the configuration header FILE
7319 Configuration files:
7320 $config_files
7322 Configuration headers:
7323 $config_headers
7325 Configuration commands:
7326 $config_commands
7328 Report bugs to the package provider."
7330 _ACEOF
7331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7332 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7333 ac_cs_version="\\
7334 config.status
7335 configured by $0, generated by GNU Autoconf 2.69,
7336 with options \\"\$ac_cs_config\\"
7338 Copyright (C) 2012 Free Software Foundation, Inc.
7339 This config.status script is free software; the Free Software Foundation
7340 gives unlimited permission to copy, distribute and modify it."
7342 ac_pwd='$ac_pwd'
7343 srcdir='$srcdir'
7344 INSTALL='$INSTALL'
7345 test -n "\$AWK" || AWK=awk
7346 _ACEOF
7348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7349 # The default lists apply if the user does not specify any file.
7350 ac_need_defaults=:
7351 while test $# != 0
7353 case $1 in
7354 --*=?*)
7355 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7356 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7357 ac_shift=:
7359 --*=)
7360 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7361 ac_optarg=
7362 ac_shift=:
7365 ac_option=$1
7366 ac_optarg=$2
7367 ac_shift=shift
7369 esac
7371 case $ac_option in
7372 # Handling of the options.
7373 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7374 ac_cs_recheck=: ;;
7375 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7376 $as_echo "$ac_cs_version"; exit ;;
7377 --config | --confi | --conf | --con | --co | --c )
7378 $as_echo "$ac_cs_config"; exit ;;
7379 --debug | --debu | --deb | --de | --d | -d )
7380 debug=: ;;
7381 --file | --fil | --fi | --f )
7382 $ac_shift
7383 case $ac_optarg in
7384 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7385 '') as_fn_error $? "missing file argument" ;;
7386 esac
7387 as_fn_append CONFIG_FILES " '$ac_optarg'"
7388 ac_need_defaults=false;;
7389 --header | --heade | --head | --hea )
7390 $ac_shift
7391 case $ac_optarg in
7392 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7393 esac
7394 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7395 ac_need_defaults=false;;
7396 --he | --h)
7397 # Conflict between --help and --header
7398 as_fn_error $? "ambiguous option: \`$1'
7399 Try \`$0 --help' for more information.";;
7400 --help | --hel | -h )
7401 $as_echo "$ac_cs_usage"; exit ;;
7402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7403 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7404 ac_cs_silent=: ;;
7406 # This is an error.
7407 -*) as_fn_error $? "unrecognized option: \`$1'
7408 Try \`$0 --help' for more information." ;;
7410 *) as_fn_append ac_config_targets " $1"
7411 ac_need_defaults=false ;;
7413 esac
7414 shift
7415 done
7417 ac_configure_extra_args=
7419 if $ac_cs_silent; then
7420 exec 6>/dev/null
7421 ac_configure_extra_args="$ac_configure_extra_args --silent"
7424 _ACEOF
7425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7426 if \$ac_cs_recheck; then
7427 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7428 shift
7429 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7430 CONFIG_SHELL='$SHELL'
7431 export CONFIG_SHELL
7432 exec "\$@"
7435 _ACEOF
7436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7437 exec 5>>config.log
7439 echo
7440 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7441 ## Running $as_me. ##
7442 _ASBOX
7443 $as_echo "$ac_log"
7444 } >&5
7446 _ACEOF
7447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7449 # INIT-COMMANDS
7451 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
7452 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
7453 # from automake.
7454 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
7455 # Capture the value of LINGUAS because we need it to compute CATALOGS.
7456 LINGUAS="${LINGUAS-%UNSET%}"
7459 _ACEOF
7461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7463 # Handling of arguments.
7464 for ac_config_target in $ac_config_targets
7466 case $ac_config_target in
7467 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7468 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7469 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7470 "config.intl") CONFIG_FILES="$CONFIG_FILES config.intl" ;;
7472 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7473 esac
7474 done
7477 # If the user did not use the arguments to specify the items to instantiate,
7478 # then the envvar interface is used. Set only those that are not.
7479 # We use the long form for the default assignment because of an extremely
7480 # bizarre bug on SunOS 4.1.3.
7481 if $ac_need_defaults; then
7482 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7483 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7484 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7487 # Have a temporary directory for convenience. Make it in the build tree
7488 # simply because there is no reason against having it here, and in addition,
7489 # creating and moving files from /tmp can sometimes cause problems.
7490 # Hook for its removal unless debugging.
7491 # Note that there is a small window in which the directory will not be cleaned:
7492 # after its creation but before its name has been assigned to `$tmp'.
7493 $debug ||
7495 tmp= ac_tmp=
7496 trap 'exit_status=$?
7497 : "${ac_tmp:=$tmp}"
7498 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7500 trap 'as_fn_exit 1' 1 2 13 15
7502 # Create a (secure) tmp directory for tmp files.
7505 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7506 test -d "$tmp"
7507 } ||
7509 tmp=./conf$$-$RANDOM
7510 (umask 077 && mkdir "$tmp")
7511 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7512 ac_tmp=$tmp
7514 # Set up the scripts for CONFIG_FILES section.
7515 # No need to generate them if there are no CONFIG_FILES.
7516 # This happens for instance with `./config.status config.h'.
7517 if test -n "$CONFIG_FILES"; then
7520 ac_cr=`echo X | tr X '\015'`
7521 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7522 # But we know of no other shell where ac_cr would be empty at this
7523 # point, so we can use a bashism as a fallback.
7524 if test "x$ac_cr" = x; then
7525 eval ac_cr=\$\'\\r\'
7527 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7528 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7529 ac_cs_awk_cr='\\r'
7530 else
7531 ac_cs_awk_cr=$ac_cr
7534 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7535 _ACEOF
7539 echo "cat >conf$$subs.awk <<_ACEOF" &&
7540 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7541 echo "_ACEOF"
7542 } >conf$$subs.sh ||
7543 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7544 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7545 ac_delim='%!_!# '
7546 for ac_last_try in false false false false false :; do
7547 . ./conf$$subs.sh ||
7548 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7550 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7551 if test $ac_delim_n = $ac_delim_num; then
7552 break
7553 elif $ac_last_try; then
7554 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7555 else
7556 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7558 done
7559 rm -f conf$$subs.sh
7561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7562 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7563 _ACEOF
7564 sed -n '
7566 s/^/S["/; s/!.*/"]=/
7569 s/^[^!]*!//
7570 :repl
7571 t repl
7572 s/'"$ac_delim"'$//
7573 t delim
7576 s/\(.\{148\}\)..*/\1/
7577 t more1
7578 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7581 b repl
7582 :more1
7583 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7586 s/.\{148\}//
7587 t nl
7588 :delim
7590 s/\(.\{148\}\)..*/\1/
7591 t more2
7592 s/["\\]/\\&/g; s/^/"/; s/$/"/
7595 :more2
7596 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7599 s/.\{148\}//
7600 t delim
7601 ' <conf$$subs.awk | sed '
7602 /^[^""]/{
7604 s/\n//
7606 ' >>$CONFIG_STATUS || ac_write_fail=1
7607 rm -f conf$$subs.awk
7608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7609 _ACAWK
7610 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7611 for (key in S) S_is_set[key] = 1
7612 FS = "\a"
7616 line = $ 0
7617 nfields = split(line, field, "@")
7618 substed = 0
7619 len = length(field[1])
7620 for (i = 2; i < nfields; i++) {
7621 key = field[i]
7622 keylen = length(key)
7623 if (S_is_set[key]) {
7624 value = S[key]
7625 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7626 len += length(value) + length(field[++i])
7627 substed = 1
7628 } else
7629 len += 1 + keylen
7632 print line
7635 _ACAWK
7636 _ACEOF
7637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7638 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7639 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7640 else
7642 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7643 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7644 _ACEOF
7646 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7647 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7648 # trailing colons and then remove the whole line if VPATH becomes empty
7649 # (actually we leave an empty line to preserve line numbers).
7650 if test "x$srcdir" = x.; then
7651 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7653 s///
7654 s/^/:/
7655 s/[ ]*$/:/
7656 s/:\$(srcdir):/:/g
7657 s/:\${srcdir}:/:/g
7658 s/:@srcdir@:/:/g
7659 s/^:*//
7660 s/:*$//
7662 s/\(=[ ]*\).*/\1/
7664 s/\n//
7665 s/^[^=]*=[ ]*$//
7669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7670 fi # test -n "$CONFIG_FILES"
7672 # Set up the scripts for CONFIG_HEADERS section.
7673 # No need to generate them if there are no CONFIG_HEADERS.
7674 # This happens for instance with `./config.status Makefile'.
7675 if test -n "$CONFIG_HEADERS"; then
7676 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7677 BEGIN {
7678 _ACEOF
7680 # Transform confdefs.h into an awk script `defines.awk', embedded as
7681 # here-document in config.status, that substitutes the proper values into
7682 # config.h.in to produce config.h.
7684 # Create a delimiter string that does not exist in confdefs.h, to ease
7685 # handling of long lines.
7686 ac_delim='%!_!# '
7687 for ac_last_try in false false :; do
7688 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7689 if test -z "$ac_tt"; then
7690 break
7691 elif $ac_last_try; then
7692 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7693 else
7694 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7696 done
7698 # For the awk script, D is an array of macro values keyed by name,
7699 # likewise P contains macro parameters if any. Preserve backslash
7700 # newline sequences.
7702 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7703 sed -n '
7704 s/.\{148\}/&'"$ac_delim"'/g
7705 t rset
7706 :rset
7707 s/^[ ]*#[ ]*define[ ][ ]*/ /
7708 t def
7710 :def
7711 s/\\$//
7712 t bsnl
7713 s/["\\]/\\&/g
7714 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7715 D["\1"]=" \3"/p
7716 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7718 :bsnl
7719 s/["\\]/\\&/g
7720 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7721 D["\1"]=" \3\\\\\\n"\\/p
7722 t cont
7723 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7724 t cont
7726 :cont
7728 s/.\{148\}/&'"$ac_delim"'/g
7729 t clear
7730 :clear
7731 s/\\$//
7732 t bsnlc
7733 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7735 :bsnlc
7736 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7737 b cont
7738 ' <confdefs.h | sed '
7739 s/'"$ac_delim"'/"\\\
7740 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7743 for (key in D) D_is_set[key] = 1
7744 FS = "\a"
7746 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7747 line = \$ 0
7748 split(line, arg, " ")
7749 if (arg[1] == "#") {
7750 defundef = arg[2]
7751 mac1 = arg[3]
7752 } else {
7753 defundef = substr(arg[1], 2)
7754 mac1 = arg[2]
7756 split(mac1, mac2, "(") #)
7757 macro = mac2[1]
7758 prefix = substr(line, 1, index(line, defundef) - 1)
7759 if (D_is_set[macro]) {
7760 # Preserve the white space surrounding the "#".
7761 print prefix "define", macro P[macro] D[macro]
7762 next
7763 } else {
7764 # Replace #undef with comments. This is necessary, for example,
7765 # in the case of _POSIX_SOURCE, which is predefined and required
7766 # on some systems where configure will not decide to define it.
7767 if (defundef == "undef") {
7768 print "/*", prefix defundef, macro, "*/"
7769 next
7773 { print }
7774 _ACAWK
7775 _ACEOF
7776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7777 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7778 fi # test -n "$CONFIG_HEADERS"
7781 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7782 shift
7783 for ac_tag
7785 case $ac_tag in
7786 :[FHLC]) ac_mode=$ac_tag; continue;;
7787 esac
7788 case $ac_mode$ac_tag in
7789 :[FHL]*:*);;
7790 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7791 :[FH]-) ac_tag=-:-;;
7792 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7793 esac
7794 ac_save_IFS=$IFS
7795 IFS=:
7796 set x $ac_tag
7797 IFS=$ac_save_IFS
7798 shift
7799 ac_file=$1
7800 shift
7802 case $ac_mode in
7803 :L) ac_source=$1;;
7804 :[FH])
7805 ac_file_inputs=
7806 for ac_f
7808 case $ac_f in
7809 -) ac_f="$ac_tmp/stdin";;
7810 *) # Look for the file first in the build tree, then in the source tree
7811 # (if the path is not absolute). The absolute path cannot be DOS-style,
7812 # because $ac_f cannot contain `:'.
7813 test -f "$ac_f" ||
7814 case $ac_f in
7815 [\\/$]*) false;;
7816 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7817 esac ||
7818 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7819 esac
7820 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7821 as_fn_append ac_file_inputs " '$ac_f'"
7822 done
7824 # Let's still pretend it is `configure' which instantiates (i.e., don't
7825 # use $as_me), people would be surprised to read:
7826 # /* config.h. Generated by config.status. */
7827 configure_input='Generated from '`
7828 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7829 `' by configure.'
7830 if test x"$ac_file" != x-; then
7831 configure_input="$ac_file. $configure_input"
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7833 $as_echo "$as_me: creating $ac_file" >&6;}
7835 # Neutralize special characters interpreted by sed in replacement strings.
7836 case $configure_input in #(
7837 *\&* | *\|* | *\\* )
7838 ac_sed_conf_input=`$as_echo "$configure_input" |
7839 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7840 *) ac_sed_conf_input=$configure_input;;
7841 esac
7843 case $ac_tag in
7844 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7845 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7846 esac
7848 esac
7850 ac_dir=`$as_dirname -- "$ac_file" ||
7851 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7852 X"$ac_file" : 'X\(//\)[^/]' \| \
7853 X"$ac_file" : 'X\(//\)$' \| \
7854 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7855 $as_echo X"$ac_file" |
7856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7857 s//\1/
7860 /^X\(\/\/\)[^/].*/{
7861 s//\1/
7864 /^X\(\/\/\)$/{
7865 s//\1/
7868 /^X\(\/\).*/{
7869 s//\1/
7872 s/.*/./; q'`
7873 as_dir="$ac_dir"; as_fn_mkdir_p
7874 ac_builddir=.
7876 case "$ac_dir" in
7877 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7879 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7880 # A ".." for each directory in $ac_dir_suffix.
7881 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7882 case $ac_top_builddir_sub in
7883 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7884 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7885 esac ;;
7886 esac
7887 ac_abs_top_builddir=$ac_pwd
7888 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7889 # for backward compatibility:
7890 ac_top_builddir=$ac_top_build_prefix
7892 case $srcdir in
7893 .) # We are building in place.
7894 ac_srcdir=.
7895 ac_top_srcdir=$ac_top_builddir_sub
7896 ac_abs_top_srcdir=$ac_pwd ;;
7897 [\\/]* | ?:[\\/]* ) # Absolute name.
7898 ac_srcdir=$srcdir$ac_dir_suffix;
7899 ac_top_srcdir=$srcdir
7900 ac_abs_top_srcdir=$srcdir ;;
7901 *) # Relative name.
7902 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7903 ac_top_srcdir=$ac_top_build_prefix$srcdir
7904 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7905 esac
7906 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7909 case $ac_mode in
7912 # CONFIG_FILE
7915 case $INSTALL in
7916 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7917 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7918 esac
7919 _ACEOF
7921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7922 # If the template does not know about datarootdir, expand it.
7923 # FIXME: This hack should be removed a few years after 2.60.
7924 ac_datarootdir_hack=; ac_datarootdir_seen=
7925 ac_sed_dataroot='
7926 /datarootdir/ {
7930 /@datadir@/p
7931 /@docdir@/p
7932 /@infodir@/p
7933 /@localedir@/p
7934 /@mandir@/p'
7935 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7936 *datarootdir*) ac_datarootdir_seen=yes;;
7937 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7939 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7940 _ACEOF
7941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7942 ac_datarootdir_hack='
7943 s&@datadir@&$datadir&g
7944 s&@docdir@&$docdir&g
7945 s&@infodir@&$infodir&g
7946 s&@localedir@&$localedir&g
7947 s&@mandir@&$mandir&g
7948 s&\\\${datarootdir}&$datarootdir&g' ;;
7949 esac
7950 _ACEOF
7952 # Neutralize VPATH when `$srcdir' = `.'.
7953 # Shell code in configure.ac might set extrasub.
7954 # FIXME: do we really want to maintain this feature?
7955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7956 ac_sed_extra="$ac_vpsub
7957 $extrasub
7958 _ACEOF
7959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7961 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7962 s|@configure_input@|$ac_sed_conf_input|;t t
7963 s&@top_builddir@&$ac_top_builddir_sub&;t t
7964 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7965 s&@srcdir@&$ac_srcdir&;t t
7966 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7967 s&@top_srcdir@&$ac_top_srcdir&;t t
7968 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7969 s&@builddir@&$ac_builddir&;t t
7970 s&@abs_builddir@&$ac_abs_builddir&;t t
7971 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7972 s&@INSTALL@&$ac_INSTALL&;t t
7973 $ac_datarootdir_hack
7975 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7976 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7978 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7979 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7980 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7981 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7983 which seems to be undefined. Please make sure it is defined" >&5
7984 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7985 which seems to be undefined. Please make sure it is defined" >&2;}
7987 rm -f "$ac_tmp/stdin"
7988 case $ac_file in
7989 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7990 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7991 esac \
7992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7996 # CONFIG_HEADER
7998 if test x"$ac_file" != x-; then
8000 $as_echo "/* $configure_input */" \
8001 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8002 } >"$ac_tmp/config.h" \
8003 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8004 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8006 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8007 else
8008 rm -f "$ac_file"
8009 mv "$ac_tmp/config.h" "$ac_file" \
8010 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8012 else
8013 $as_echo "/* $configure_input */" \
8014 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8015 || as_fn_error $? "could not create -" "$LINENO" 5
8019 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8020 $as_echo "$as_me: executing $ac_file commands" >&6;}
8022 esac
8025 case $ac_file$ac_mode in
8026 "default-1":C)
8027 for ac_file in $CONFIG_FILES; do
8028 # Support "outfile[:infile[:infile...]]"
8029 case "$ac_file" in
8030 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8031 esac
8032 # PO directories have a Makefile.in generated from Makefile.in.in.
8033 case "$ac_file" in */Makefile.in)
8034 # Adjust a relative srcdir.
8035 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8036 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
8037 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8038 # In autoconf-2.13 it is called $ac_given_srcdir.
8039 # In autoconf-2.50 it is called $srcdir.
8040 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8041 case "$ac_given_srcdir" in
8042 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8043 /*) top_srcdir="$ac_given_srcdir" ;;
8044 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8045 esac
8046 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8047 rm -f "$ac_dir/POTFILES"
8048 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8049 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8050 POMAKEFILEDEPS="POTFILES.in"
8051 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
8052 # on $ac_dir but don't depend on user-specified configuration
8053 # parameters.
8054 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8055 # The LINGUAS file contains the set of available languages.
8056 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8057 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
8059 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8060 # Hide the ALL_LINGUAS assigment from automake.
8061 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8062 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8063 else
8064 # The set of available languages was given in configure.ac.
8065 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8067 case "$ac_given_srcdir" in
8068 .) srcdirpre= ;;
8069 *) srcdirpre='$(srcdir)/' ;;
8070 esac
8071 POFILES=
8072 GMOFILES=
8073 UPDATEPOFILES=
8074 DUMMYPOFILES=
8075 for lang in $ALL_LINGUAS; do
8076 POFILES="$POFILES $srcdirpre$lang.po"
8077 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8078 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8079 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8080 done
8081 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8082 # environment variable.
8083 INST_LINGUAS=
8084 if test -n "$ALL_LINGUAS"; then
8085 for presentlang in $ALL_LINGUAS; do
8086 useit=no
8087 if test "%UNSET%" != "$LINGUAS"; then
8088 desiredlanguages="$LINGUAS"
8089 else
8090 desiredlanguages="$ALL_LINGUAS"
8092 for desiredlang in $desiredlanguages; do
8093 # Use the presentlang catalog if desiredlang is
8094 # a. equal to presentlang, or
8095 # b. a variant of presentlang (because in this case,
8096 # presentlang can be used as a fallback for messages
8097 # which are not translated in the desiredlang catalog).
8098 case "$desiredlang" in
8099 "$presentlang"*) useit=yes;;
8100 esac
8101 done
8102 if test $useit = yes; then
8103 INST_LINGUAS="$INST_LINGUAS $presentlang"
8105 done
8107 CATALOGS=
8108 if test -n "$INST_LINGUAS"; then
8109 for lang in $INST_LINGUAS; do
8110 CATALOGS="$CATALOGS $lang.gmo"
8111 done
8113 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8114 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"
8115 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
8116 if test -f "$f"; then
8117 case "$f" in
8118 *.orig | *.bak | *~) ;;
8119 *) cat "$f" >> "$ac_dir/Makefile" ;;
8120 esac
8122 done
8125 esac
8126 done ;;
8128 esac
8129 done # for ac_tag
8132 as_fn_exit 0
8133 _ACEOF
8134 ac_clean_files=$ac_clean_files_save
8136 test $ac_write_fail = 0 ||
8137 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8140 # configure is writing to config.log, and then calls config.status.
8141 # config.status does its own redirection, appending to config.log.
8142 # Unfortunately, on DOS this fails, as config.log is still kept open
8143 # by configure, so config.status won't be able to write to it; its
8144 # output is simply discarded. So we exec the FD to /dev/null,
8145 # effectively closing config.log, so it can be properly (re)opened and
8146 # appended to by config.status. When coming back to configure, we
8147 # need to make the FD available again.
8148 if test "$no_create" != yes; then
8149 ac_cs_success=:
8150 ac_config_status_args=
8151 test "$silent" = yes &&
8152 ac_config_status_args="$ac_config_status_args --quiet"
8153 exec 5>/dev/null
8154 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8155 exec 5>>config.log
8156 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8157 # would make configure fail if this is the last instruction.
8158 $ac_cs_success || as_fn_exit 1
8160 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8162 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}