Update baseline symbols for hppa-linux.
[official-gcc.git] / intl / configure
blob42b2a26b5bf005309cc81c5ab59009b2f9a3913b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 # Factoring default headers for most tests.
586 ac_includes_default="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 # include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 # include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
621 ac_unique_file="gettext.c"
622 ac_header_list=
623 ac_subst_vars='LTLIBOBJS
624 LIBOBJS
625 PICFLAG
626 enable_host_pie
627 enable_host_shared
628 BISON3_NO
629 BISON3_YES
630 INCINTL
631 LIBINTL_DEP
632 MKID
633 ETAGS
634 CTAGS
635 MAINT
636 AUTOHEADER
637 AUTOCONF
638 ACLOCAL
639 POSUB
640 LTLIBINTL
641 LIBINTL
642 INTLLIBS
643 INTL_LIBTOOL_SUFFIX_PREFIX
644 INTLOBJS
645 GENCAT
646 INSTOBJEXT
647 DATADIRNAME
648 CATOBJEXT
649 USE_INCLUDED_LIBINTL
650 BUILD_INCLUDED_LIBINTL
651 INTLBISON
652 LTLIBICONV
653 LIBICONV
654 GLIBC21
655 ALLOCA
656 RANLIB
657 host_os
658 host_vendor
659 host_cpu
660 host
661 build_os
662 build_vendor
663 build_cpu
664 build
665 MSGMERGE
666 XGETTEXT
667 GMSGFMT
668 MSGFMT
669 USE_NLS
670 MKINSTALLDIRS
671 INSTALL_DATA
672 INSTALL_SCRIPT
673 INSTALL_PROGRAM
674 SET_MAKE
675 EGREP
676 GREP
678 OBJEXT
679 EXEEXT
680 ac_ct_CC
681 CPPFLAGS
682 LDFLAGS
683 CFLAGS
685 target_alias
686 host_alias
687 build_alias
688 LIBS
689 ECHO_T
690 ECHO_N
691 ECHO_C
692 DEFS
693 mandir
694 localedir
695 libdir
696 psdir
697 pdfdir
698 dvidir
699 htmldir
700 infodir
701 docdir
702 oldincludedir
703 includedir
704 localstatedir
705 sharedstatedir
706 sysconfdir
707 datadir
708 datarootdir
709 libexecdir
710 sbindir
711 bindir
712 program_transform_name
713 prefix
714 exec_prefix
715 PACKAGE_URL
716 PACKAGE_BUGREPORT
717 PACKAGE_STRING
718 PACKAGE_VERSION
719 PACKAGE_TARNAME
720 PACKAGE_NAME
721 PATH_SEPARATOR
722 SHELL'
723 ac_subst_files=''
724 ac_user_opts='
725 enable_option_checking
726 enable_nls
727 with_gnu_ld
728 enable_rpath
729 with_libiconv_prefix
730 with_libiconv_type
731 with_included_gettext
732 with_libintl_prefix
733 with_libintl_type
734 enable_maintainer_mode
735 enable_host_shared
736 enable_host_pie
738 ac_precious_vars='build_alias
739 host_alias
740 target_alias
742 CFLAGS
743 LDFLAGS
744 LIBS
745 CPPFLAGS
746 CPP'
749 # Initialize some variables set by options.
750 ac_init_help=
751 ac_init_version=false
752 ac_unrecognized_opts=
753 ac_unrecognized_sep=
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
797 ac_prev=
798 ac_dashdash=
799 for ac_option
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
808 case $ac_option in
809 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *=) ac_optarg= ;;
811 *) ac_optarg=yes ;;
812 esac
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
818 ac_dashdash=yes ;;
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 ac_prev=bindir ;;
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823 bindir=$ac_optarg ;;
825 -build | --build | --buil | --bui | --bu)
826 ac_prev=build_alias ;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias=$ac_optarg ;;
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file=$ac_optarg ;;
837 --config-cache | -C)
838 cache_file=config.cache ;;
840 -datadir | --datadir | --datadi | --datad)
841 ac_prev=datadir ;;
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir=$ac_optarg ;;
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
852 -disable-* | --disable-*)
853 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856 as_fn_error $? "invalid feature name: $ac_useropt"
857 ac_useropt_orig=$ac_useropt
858 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859 case $ac_user_opts in
861 "enable_$ac_useropt"
862 "*) ;;
863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
864 ac_unrecognized_sep=', ';;
865 esac
866 eval enable_$ac_useropt=no ;;
868 -docdir | --docdir | --docdi | --doc | --do)
869 ac_prev=docdir ;;
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871 docdir=$ac_optarg ;;
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874 ac_prev=dvidir ;;
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876 dvidir=$ac_optarg ;;
878 -enable-* | --enable-*)
879 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 as_fn_error $? "invalid feature name: $ac_useropt"
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
887 "enable_$ac_useropt"
888 "*) ;;
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
891 esac
892 eval enable_$ac_useropt=\$ac_optarg ;;
894 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
895 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
896 | --exec | --exe | --ex)
897 ac_prev=exec_prefix ;;
898 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
899 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
900 | --exec=* | --exe=* | --ex=*)
901 exec_prefix=$ac_optarg ;;
903 -gas | --gas | --ga | --g)
904 # Obsolete; use --with-gas.
905 with_gas=yes ;;
907 -help | --help | --hel | --he | -h)
908 ac_init_help=long ;;
909 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
910 ac_init_help=recursive ;;
911 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
912 ac_init_help=short ;;
914 -host | --host | --hos | --ho)
915 ac_prev=host_alias ;;
916 -host=* | --host=* | --hos=* | --ho=*)
917 host_alias=$ac_optarg ;;
919 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
920 ac_prev=htmldir ;;
921 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
922 | --ht=*)
923 htmldir=$ac_optarg ;;
925 -includedir | --includedir | --includedi | --included | --include \
926 | --includ | --inclu | --incl | --inc)
927 ac_prev=includedir ;;
928 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
929 | --includ=* | --inclu=* | --incl=* | --inc=*)
930 includedir=$ac_optarg ;;
932 -infodir | --infodir | --infodi | --infod | --info | --inf)
933 ac_prev=infodir ;;
934 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
935 infodir=$ac_optarg ;;
937 -libdir | --libdir | --libdi | --libd)
938 ac_prev=libdir ;;
939 -libdir=* | --libdir=* | --libdi=* | --libd=*)
940 libdir=$ac_optarg ;;
942 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
943 | --libexe | --libex | --libe)
944 ac_prev=libexecdir ;;
945 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
946 | --libexe=* | --libex=* | --libe=*)
947 libexecdir=$ac_optarg ;;
949 -localedir | --localedir | --localedi | --localed | --locale)
950 ac_prev=localedir ;;
951 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
952 localedir=$ac_optarg ;;
954 -localstatedir | --localstatedir | --localstatedi | --localstated \
955 | --localstate | --localstat | --localsta | --localst | --locals)
956 ac_prev=localstatedir ;;
957 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
958 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
959 localstatedir=$ac_optarg ;;
961 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
962 ac_prev=mandir ;;
963 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
964 mandir=$ac_optarg ;;
966 -nfp | --nfp | --nf)
967 # Obsolete; use --without-fp.
968 with_fp=no ;;
970 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
971 | --no-cr | --no-c | -n)
972 no_create=yes ;;
974 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
975 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
976 no_recursion=yes ;;
978 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
979 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
980 | --oldin | --oldi | --old | --ol | --o)
981 ac_prev=oldincludedir ;;
982 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
983 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
984 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
985 oldincludedir=$ac_optarg ;;
987 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
988 ac_prev=prefix ;;
989 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
990 prefix=$ac_optarg ;;
992 -program-prefix | --program-prefix | --program-prefi | --program-pref \
993 | --program-pre | --program-pr | --program-p)
994 ac_prev=program_prefix ;;
995 -program-prefix=* | --program-prefix=* | --program-prefi=* \
996 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
997 program_prefix=$ac_optarg ;;
999 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1000 | --program-suf | --program-su | --program-s)
1001 ac_prev=program_suffix ;;
1002 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1003 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1004 program_suffix=$ac_optarg ;;
1006 -program-transform-name | --program-transform-name \
1007 | --program-transform-nam | --program-transform-na \
1008 | --program-transform-n | --program-transform- \
1009 | --program-transform | --program-transfor \
1010 | --program-transfo | --program-transf \
1011 | --program-trans | --program-tran \
1012 | --progr-tra | --program-tr | --program-t)
1013 ac_prev=program_transform_name ;;
1014 -program-transform-name=* | --program-transform-name=* \
1015 | --program-transform-nam=* | --program-transform-na=* \
1016 | --program-transform-n=* | --program-transform-=* \
1017 | --program-transform=* | --program-transfor=* \
1018 | --program-transfo=* | --program-transf=* \
1019 | --program-trans=* | --program-tran=* \
1020 | --progr-tra=* | --program-tr=* | --program-t=*)
1021 program_transform_name=$ac_optarg ;;
1023 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1024 ac_prev=pdfdir ;;
1025 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1026 pdfdir=$ac_optarg ;;
1028 -psdir | --psdir | --psdi | --psd | --ps)
1029 ac_prev=psdir ;;
1030 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1031 psdir=$ac_optarg ;;
1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034 | -silent | --silent | --silen | --sile | --sil)
1035 silent=yes ;;
1037 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038 ac_prev=sbindir ;;
1039 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040 | --sbi=* | --sb=*)
1041 sbindir=$ac_optarg ;;
1043 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045 | --sharedst | --shareds | --shared | --share | --shar \
1046 | --sha | --sh)
1047 ac_prev=sharedstatedir ;;
1048 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051 | --sha=* | --sh=*)
1052 sharedstatedir=$ac_optarg ;;
1054 -site | --site | --sit)
1055 ac_prev=site ;;
1056 -site=* | --site=* | --sit=*)
1057 site=$ac_optarg ;;
1059 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060 ac_prev=srcdir ;;
1061 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062 srcdir=$ac_optarg ;;
1064 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065 | --syscon | --sysco | --sysc | --sys | --sy)
1066 ac_prev=sysconfdir ;;
1067 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069 sysconfdir=$ac_optarg ;;
1071 -target | --target | --targe | --targ | --tar | --ta | --t)
1072 ac_prev=target_alias ;;
1073 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074 target_alias=$ac_optarg ;;
1076 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1077 verbose=yes ;;
1079 -version | --version | --versio | --versi | --vers | -V)
1080 ac_init_version=: ;;
1082 -with-* | --with-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error $? "invalid package name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1091 "with_$ac_useropt"
1092 "*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval with_$ac_useropt=\$ac_optarg ;;
1098 -without-* | --without-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error $? "invalid package name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1107 "with_$ac_useropt"
1108 "*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval with_$ac_useropt=no ;;
1114 --x)
1115 # Obsolete; use --with-x.
1116 with_x=yes ;;
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1132 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1133 Try \`$0 --help' for more information"
1136 *=*)
1137 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138 # Reject names that are not valid shell variable names.
1139 case $ac_envvar in #(
1140 '' | [0-9]* | *[!_$as_cr_alnum]* )
1141 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1142 esac
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1154 esac
1155 done
1157 if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 as_fn_error $? "missing argument to $ac_option"
1162 if test -n "$ac_unrecognized_opts"; then
1163 case $enable_option_checking in
1164 no) ;;
1165 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1166 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167 esac
1170 # Check all directory arguments for consistency.
1171 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172 datadir sysconfdir sharedstatedir localstatedir includedir \
1173 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174 libdir localedir mandir
1176 eval ac_val=\$$ac_var
1177 # Remove trailing slashes.
1178 case $ac_val in
1179 */ )
1180 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181 eval $ac_var=\$ac_val;;
1182 esac
1183 # Be sure to have absolute directory names.
1184 case $ac_val in
1185 [\\/$]* | ?:[\\/]* ) continue;;
1186 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187 esac
1188 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1189 done
1191 # There might be people who depend on the old broken behavior: `$host'
1192 # used to hold the argument of --host etc.
1193 # FIXME: To remove some day.
1194 build=$build_alias
1195 host=$host_alias
1196 target=$target_alias
1198 # FIXME: To remove some day.
1199 if test "x$host_alias" != x; then
1200 if test "x$build_alias" = x; then
1201 cross_compiling=maybe
1202 elif test "x$build_alias" != "x$host_alias"; then
1203 cross_compiling=yes
1207 ac_tool_prefix=
1208 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1210 test "$silent" = yes && exec 6>/dev/null
1213 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1214 ac_ls_di=`ls -di .` &&
1215 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1216 as_fn_error $? "working directory cannot be determined"
1217 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218 as_fn_error $? "pwd does not report name of working directory"
1221 # Find the source files, if location was not specified.
1222 if test -z "$srcdir"; then
1223 ac_srcdir_defaulted=yes
1224 # Try the directory containing this script, then the parent directory.
1225 ac_confdir=`$as_dirname -- "$as_myself" ||
1226 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1227 X"$as_myself" : 'X\(//\)[^/]' \| \
1228 X"$as_myself" : 'X\(//\)$' \| \
1229 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1230 $as_echo X"$as_myself" |
1231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1232 s//\1/
1235 /^X\(\/\/\)[^/].*/{
1236 s//\1/
1239 /^X\(\/\/\)$/{
1240 s//\1/
1243 /^X\(\/\).*/{
1244 s//\1/
1247 s/.*/./; q'`
1248 srcdir=$ac_confdir
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1250 srcdir=..
1252 else
1253 ac_srcdir_defaulted=no
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1257 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1259 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1260 ac_abs_confdir=`(
1261 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1262 pwd)`
1263 # When building in place, set srcdir=.
1264 if test "$ac_abs_confdir" = "$ac_pwd"; then
1265 srcdir=.
1267 # Remove unnecessary trailing slashes from srcdir.
1268 # Double slashes in file names in object file debugging info
1269 # mess up M-x gdb in Emacs.
1270 case $srcdir in
1271 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1272 esac
1273 for ac_var in $ac_precious_vars; do
1274 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_env_${ac_var}_value=\$${ac_var}
1276 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1278 done
1281 # Report the --help message.
1283 if test "$ac_init_help" = "long"; then
1284 # Omit some internal or obsolete options to make the list less imposing.
1285 # This message is too long to be a string in the A/UX 3.1 sh.
1286 cat <<_ACEOF
1287 \`configure' configures this package to adapt to many kinds of systems.
1289 Usage: $0 [OPTION]... [VAR=VALUE]...
1291 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1292 VAR=VALUE. See below for descriptions of some of the useful variables.
1294 Defaults for the options are specified in brackets.
1296 Configuration:
1297 -h, --help display this help and exit
1298 --help=short display options specific to this package
1299 --help=recursive display the short help of all the included packages
1300 -V, --version display version information and exit
1301 -q, --quiet, --silent do not print \`checking ...' messages
1302 --cache-file=FILE cache test results in FILE [disabled]
1303 -C, --config-cache alias for \`--cache-file=config.cache'
1304 -n, --no-create do not create output files
1305 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1307 Installation directories:
1308 --prefix=PREFIX install architecture-independent files in PREFIX
1309 [$ac_default_prefix]
1310 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1311 [PREFIX]
1313 By default, \`make install' will install all the files in
1314 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1315 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1316 for instance \`--prefix=\$HOME'.
1318 For better control, use the options below.
1320 Fine tuning of the installation directories:
1321 --bindir=DIR user executables [EPREFIX/bin]
1322 --sbindir=DIR system admin executables [EPREFIX/sbin]
1323 --libexecdir=DIR program executables [EPREFIX/libexec]
1324 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1325 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1326 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1327 --libdir=DIR object code libraries [EPREFIX/lib]
1328 --includedir=DIR C header files [PREFIX/include]
1329 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1330 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1331 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1332 --infodir=DIR info documentation [DATAROOTDIR/info]
1333 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1334 --mandir=DIR man documentation [DATAROOTDIR/man]
1335 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1336 --htmldir=DIR html documentation [DOCDIR]
1337 --dvidir=DIR dvi documentation [DOCDIR]
1338 --pdfdir=DIR pdf documentation [DOCDIR]
1339 --psdir=DIR ps documentation [DOCDIR]
1340 _ACEOF
1342 cat <<\_ACEOF
1344 System types:
1345 --build=BUILD configure for building on BUILD [guessed]
1346 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1347 _ACEOF
1350 if test -n "$ac_init_help"; then
1352 cat <<\_ACEOF
1354 Optional Features:
1355 --disable-option-checking ignore unrecognized --enable/--with options
1356 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1357 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1358 --disable-nls do not use Native Language Support
1359 --disable-rpath do not hardcode runtime library paths
1360 --enable-maintainer-mode enable rules only needed by maintainers
1361 --enable-host-shared build host code as shared libraries
1362 --enable-host-pie build host code as PIE
1364 Optional Packages:
1365 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1366 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1367 --with-gnu-ld assume the C compiler uses GNU ld default=no
1368 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1369 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1370 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1371 --with-included-gettext use the GNU gettext library included here
1372 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1373 --without-libintl-prefix don't search for libintl in includedir and libdir
1374 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1376 Some influential environment variables:
1377 CC C compiler command
1378 CFLAGS C compiler flags
1379 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1380 nonstandard directory <lib dir>
1381 LIBS libraries to pass to the linker, e.g. -l<library>
1382 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1383 you have headers in a nonstandard directory <include dir>
1384 CPP C preprocessor
1386 Use these variables to override the choices made by `configure' or to help
1387 it to find libraries and programs with nonstandard names/locations.
1389 Report bugs to the package provider.
1390 _ACEOF
1391 ac_status=$?
1394 if test "$ac_init_help" = "recursive"; then
1395 # If there are subdirs, report their specific --help.
1396 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1397 test -d "$ac_dir" ||
1398 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1399 continue
1400 ac_builddir=.
1402 case "$ac_dir" in
1403 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1406 # A ".." for each directory in $ac_dir_suffix.
1407 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1408 case $ac_top_builddir_sub in
1409 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1411 esac ;;
1412 esac
1413 ac_abs_top_builddir=$ac_pwd
1414 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1415 # for backward compatibility:
1416 ac_top_builddir=$ac_top_build_prefix
1418 case $srcdir in
1419 .) # We are building in place.
1420 ac_srcdir=.
1421 ac_top_srcdir=$ac_top_builddir_sub
1422 ac_abs_top_srcdir=$ac_pwd ;;
1423 [\\/]* | ?:[\\/]* ) # Absolute name.
1424 ac_srcdir=$srcdir$ac_dir_suffix;
1425 ac_top_srcdir=$srcdir
1426 ac_abs_top_srcdir=$srcdir ;;
1427 *) # Relative name.
1428 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1429 ac_top_srcdir=$ac_top_build_prefix$srcdir
1430 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1431 esac
1432 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1434 cd "$ac_dir" || { ac_status=$?; continue; }
1435 # Check for guested configure.
1436 if test -f "$ac_srcdir/configure.gnu"; then
1437 echo &&
1438 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1439 elif test -f "$ac_srcdir/configure"; then
1440 echo &&
1441 $SHELL "$ac_srcdir/configure" --help=recursive
1442 else
1443 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1444 fi || ac_status=$?
1445 cd "$ac_pwd" || { ac_status=$?; break; }
1446 done
1449 test -n "$ac_init_help" && exit $ac_status
1450 if $ac_init_version; then
1451 cat <<\_ACEOF
1452 configure
1453 generated by GNU Autoconf 2.69
1455 Copyright (C) 2012 Free Software Foundation, Inc.
1456 This configure script is free software; the Free Software Foundation
1457 gives unlimited permission to copy, distribute and modify it.
1458 _ACEOF
1459 exit
1462 ## ------------------------ ##
1463 ## Autoconf initialization. ##
1464 ## ------------------------ ##
1466 # ac_fn_c_try_compile LINENO
1467 # --------------------------
1468 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1469 ac_fn_c_try_compile ()
1471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1472 rm -f conftest.$ac_objext
1473 if { { ac_try="$ac_compile"
1474 case "(($ac_try" in
1475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1476 *) ac_try_echo=$ac_try;;
1477 esac
1478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1479 $as_echo "$ac_try_echo"; } >&5
1480 (eval "$ac_compile") 2>conftest.err
1481 ac_status=$?
1482 if test -s conftest.err; then
1483 grep -v '^ *+' conftest.err >conftest.er1
1484 cat conftest.er1 >&5
1485 mv -f conftest.er1 conftest.err
1487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1488 test $ac_status = 0; } && {
1489 test -z "$ac_c_werror_flag" ||
1490 test ! -s conftest.err
1491 } && test -s conftest.$ac_objext; then :
1492 ac_retval=0
1493 else
1494 $as_echo "$as_me: failed program was:" >&5
1495 sed 's/^/| /' conftest.$ac_ext >&5
1497 ac_retval=1
1499 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1500 as_fn_set_status $ac_retval
1502 } # ac_fn_c_try_compile
1504 # ac_fn_c_try_cpp LINENO
1505 # ----------------------
1506 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1507 ac_fn_c_try_cpp ()
1509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510 if { { ac_try="$ac_cpp conftest.$ac_ext"
1511 case "(($ac_try" in
1512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513 *) ac_try_echo=$ac_try;;
1514 esac
1515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516 $as_echo "$ac_try_echo"; } >&5
1517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1518 ac_status=$?
1519 if test -s conftest.err; then
1520 grep -v '^ *+' conftest.err >conftest.er1
1521 cat conftest.er1 >&5
1522 mv -f conftest.er1 conftest.err
1524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525 test $ac_status = 0; } > conftest.i && {
1526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1527 test ! -s conftest.err
1528 }; then :
1529 ac_retval=0
1530 else
1531 $as_echo "$as_me: failed program was:" >&5
1532 sed 's/^/| /' conftest.$ac_ext >&5
1534 ac_retval=1
1536 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1537 as_fn_set_status $ac_retval
1539 } # ac_fn_c_try_cpp
1541 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1542 # -------------------------------------------------------
1543 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1544 # the include files in INCLUDES and setting the cache variable VAR
1545 # accordingly.
1546 ac_fn_c_check_header_mongrel ()
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 if eval \${$3+:} false; then :
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1551 $as_echo_n "checking for $2... " >&6; }
1552 if eval \${$3+:} false; then :
1553 $as_echo_n "(cached) " >&6
1555 eval ac_res=\$$3
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1557 $as_echo "$ac_res" >&6; }
1558 else
1559 # Is the header compilable?
1560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1561 $as_echo_n "checking $2 usability... " >&6; }
1562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1563 /* end confdefs.h. */
1565 #include <$2>
1566 _ACEOF
1567 if ac_fn_c_try_compile "$LINENO"; then :
1568 ac_header_compiler=yes
1569 else
1570 ac_header_compiler=no
1572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1574 $as_echo "$ac_header_compiler" >&6; }
1576 # Is the header present?
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1578 $as_echo_n "checking $2 presence... " >&6; }
1579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1580 /* end confdefs.h. */
1581 #include <$2>
1582 _ACEOF
1583 if ac_fn_c_try_cpp "$LINENO"; then :
1584 ac_header_preproc=yes
1585 else
1586 ac_header_preproc=no
1588 rm -f conftest.err conftest.i conftest.$ac_ext
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1590 $as_echo "$ac_header_preproc" >&6; }
1592 # So? What about this header?
1593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1594 yes:no: )
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1596 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1598 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1600 no:yes:* )
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1602 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1604 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1606 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1608 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1610 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1612 esac
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614 $as_echo_n "checking for $2... " >&6; }
1615 if eval \${$3+:} false; then :
1616 $as_echo_n "(cached) " >&6
1617 else
1618 eval "$3=\$ac_header_compiler"
1620 eval ac_res=\$$3
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622 $as_echo "$ac_res" >&6; }
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 } # ac_fn_c_check_header_mongrel
1628 # ac_fn_c_try_run LINENO
1629 # ----------------------
1630 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1631 # that executables *can* be run.
1632 ac_fn_c_try_run ()
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 if { { ac_try="$ac_link"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_link") 2>&5
1643 ac_status=$?
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1646 { { case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_try") 2>&5
1653 ac_status=$?
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; }; }; then :
1656 ac_retval=0
1657 else
1658 $as_echo "$as_me: program exited with status $ac_status" >&5
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1662 ac_retval=$ac_status
1664 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1668 } # ac_fn_c_try_run
1670 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1671 # -------------------------------------------------------
1672 # Tests whether HEADER exists and can be compiled using the include files in
1673 # INCLUDES, setting the cache variable VAR accordingly.
1674 ac_fn_c_check_header_compile ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678 $as_echo_n "checking for $2... " >&6; }
1679 if eval \${$3+:} false; then :
1680 $as_echo_n "(cached) " >&6
1681 else
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1685 #include <$2>
1686 _ACEOF
1687 if ac_fn_c_try_compile "$LINENO"; then :
1688 eval "$3=yes"
1689 else
1690 eval "$3=no"
1692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694 eval ac_res=\$$3
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696 $as_echo "$ac_res" >&6; }
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 } # ac_fn_c_check_header_compile
1701 # ac_fn_c_try_link LINENO
1702 # -----------------------
1703 # Try to link conftest.$ac_ext, and return whether this succeeded.
1704 ac_fn_c_try_link ()
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 rm -f conftest.$ac_objext conftest$ac_exeext
1708 if { { ac_try="$ac_link"
1709 case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_link") 2>conftest.err
1716 ac_status=$?
1717 if test -s conftest.err; then
1718 grep -v '^ *+' conftest.err >conftest.er1
1719 cat conftest.er1 >&5
1720 mv -f conftest.er1 conftest.err
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } && {
1724 test -z "$ac_c_werror_flag" ||
1725 test ! -s conftest.err
1726 } && test -s conftest$ac_exeext && {
1727 test "$cross_compiling" = yes ||
1728 test -x conftest$ac_exeext
1729 }; then :
1730 ac_retval=0
1731 else
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1735 ac_retval=1
1737 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1738 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1739 # interfere with the next link command; also delete a directory that is
1740 # left behind by Apple's compiler. We do this before executing the actions.
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1745 } # ac_fn_c_try_link
1747 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1748 # -------------------------------------------
1749 # Tests whether TYPE exists after having included INCLUDES, setting cache
1750 # variable VAR accordingly.
1751 ac_fn_c_check_type ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1758 else
1759 eval "$3=no"
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1764 main ()
1766 if (sizeof ($2))
1767 return 0;
1769 return 0;
1771 _ACEOF
1772 if ac_fn_c_try_compile "$LINENO"; then :
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1777 main ()
1779 if (sizeof (($2)))
1780 return 0;
1782 return 0;
1784 _ACEOF
1785 if ac_fn_c_try_compile "$LINENO"; then :
1787 else
1788 eval "$3=yes"
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 } # ac_fn_c_check_type
1801 # ac_fn_c_check_func LINENO FUNC VAR
1802 # ----------------------------------
1803 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1804 ac_fn_c_check_func ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810 $as_echo_n "(cached) " >&6
1811 else
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1814 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1816 #define $2 innocuous_$2
1818 /* System header to define __stub macros and hopefully few prototypes,
1819 which can conflict with char $2 (); below.
1820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1821 <limits.h> exists even on freestanding compilers. */
1823 #ifdef __STDC__
1824 # include <limits.h>
1825 #else
1826 # include <assert.h>
1827 #endif
1829 #undef $2
1831 /* Override any GCC internal prototype to avoid an error.
1832 Use char because int might match the return type of a GCC
1833 builtin and then its argument prototype would still apply. */
1834 #ifdef __cplusplus
1835 extern "C"
1836 #endif
1837 char $2 ();
1838 /* The GNU C library defines this for functions which it implements
1839 to always fail with ENOSYS. Some functions are actually named
1840 something starting with __ and the normal name is an alias. */
1841 #if defined __stub_$2 || defined __stub___$2
1842 choke me
1843 #endif
1846 main ()
1848 return $2 ();
1850 return 0;
1852 _ACEOF
1853 if ac_fn_c_try_link "$LINENO"; then :
1854 eval "$3=yes"
1855 else
1856 eval "$3=no"
1858 rm -f core conftest.err conftest.$ac_objext \
1859 conftest$ac_exeext conftest.$ac_ext
1861 eval ac_res=\$$3
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 } # ac_fn_c_check_func
1867 cat >config.log <<_ACEOF
1868 This file contains any messages produced by compilers while
1869 running configure, to aid debugging if configure makes a mistake.
1871 It was created by $as_me, which was
1872 generated by GNU Autoconf 2.69. Invocation command line was
1874 $ $0 $@
1876 _ACEOF
1877 exec 5>>config.log
1879 cat <<_ASUNAME
1880 ## --------- ##
1881 ## Platform. ##
1882 ## --------- ##
1884 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1885 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1886 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1887 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1888 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1890 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1891 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1893 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1894 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1895 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1896 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1897 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1898 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1899 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1901 _ASUNAME
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
1908 $as_echo "PATH: $as_dir"
1909 done
1910 IFS=$as_save_IFS
1912 } >&5
1914 cat >&5 <<_ACEOF
1917 ## ----------- ##
1918 ## Core tests. ##
1919 ## ----------- ##
1921 _ACEOF
1924 # Keep a trace of the command line.
1925 # Strip out --no-create and --no-recursion so they do not pile up.
1926 # Strip out --silent because we don't want to record it for future runs.
1927 # Also quote any args containing shell meta-characters.
1928 # Make two passes to allow for proper duplicate-argument suppression.
1929 ac_configure_args=
1930 ac_configure_args0=
1931 ac_configure_args1=
1932 ac_must_keep_next=false
1933 for ac_pass in 1 2
1935 for ac_arg
1937 case $ac_arg in
1938 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1939 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1940 | -silent | --silent | --silen | --sile | --sil)
1941 continue ;;
1942 *\'*)
1943 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1944 esac
1945 case $ac_pass in
1946 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1948 as_fn_append ac_configure_args1 " '$ac_arg'"
1949 if test $ac_must_keep_next = true; then
1950 ac_must_keep_next=false # Got value, back to normal.
1951 else
1952 case $ac_arg in
1953 *=* | --config-cache | -C | -disable-* | --disable-* \
1954 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1955 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1956 | -with-* | --with-* | -without-* | --without-* | --x)
1957 case "$ac_configure_args0 " in
1958 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1959 esac
1961 -* ) ac_must_keep_next=true ;;
1962 esac
1964 as_fn_append ac_configure_args " '$ac_arg'"
1966 esac
1967 done
1968 done
1969 { ac_configure_args0=; unset ac_configure_args0;}
1970 { ac_configure_args1=; unset ac_configure_args1;}
1972 # When interrupted or exit'd, cleanup temporary files, and complete
1973 # config.log. We remove comments because anyway the quotes in there
1974 # would cause problems or look ugly.
1975 # WARNING: Use '\'' to represent an apostrophe within the trap.
1976 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1977 trap 'exit_status=$?
1978 # Save into config.log some information that might help in debugging.
1980 echo
1982 $as_echo "## ---------------- ##
1983 ## Cache variables. ##
1984 ## ---------------- ##"
1985 echo
1986 # The following way of writing the cache mishandles newlines in values,
1988 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1989 eval ac_val=\$$ac_var
1990 case $ac_val in #(
1991 *${as_nl}*)
1992 case $ac_var in #(
1993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1995 esac
1996 case $ac_var in #(
1997 _ | IFS | as_nl) ;; #(
1998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1999 *) { eval $ac_var=; unset $ac_var;} ;;
2000 esac ;;
2001 esac
2002 done
2003 (set) 2>&1 |
2004 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2005 *${as_nl}ac_space=\ *)
2006 sed -n \
2007 "s/'\''/'\''\\\\'\'''\''/g;
2008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2009 ;; #(
2011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2013 esac |
2014 sort
2016 echo
2018 $as_echo "## ----------------- ##
2019 ## Output variables. ##
2020 ## ----------------- ##"
2021 echo
2022 for ac_var in $ac_subst_vars
2024 eval ac_val=\$$ac_var
2025 case $ac_val in
2026 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027 esac
2028 $as_echo "$ac_var='\''$ac_val'\''"
2029 done | sort
2030 echo
2032 if test -n "$ac_subst_files"; then
2033 $as_echo "## ------------------- ##
2034 ## File substitutions. ##
2035 ## ------------------- ##"
2036 echo
2037 for ac_var in $ac_subst_files
2039 eval ac_val=\$$ac_var
2040 case $ac_val in
2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042 esac
2043 $as_echo "$ac_var='\''$ac_val'\''"
2044 done | sort
2045 echo
2048 if test -s confdefs.h; then
2049 $as_echo "## ----------- ##
2050 ## confdefs.h. ##
2051 ## ----------- ##"
2052 echo
2053 cat confdefs.h
2054 echo
2056 test "$ac_signal" != 0 &&
2057 $as_echo "$as_me: caught signal $ac_signal"
2058 $as_echo "$as_me: exit $exit_status"
2059 } >&5
2060 rm -f core *.core core.conftest.* &&
2061 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2062 exit $exit_status
2064 for ac_signal in 1 2 13 15; do
2065 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2066 done
2067 ac_signal=0
2069 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2070 rm -f -r conftest* confdefs.h
2072 $as_echo "/* confdefs.h */" > confdefs.h
2074 # Predefined preprocessor variables.
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_NAME "$PACKAGE_NAME"
2078 _ACEOF
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2082 _ACEOF
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2086 _ACEOF
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_STRING "$PACKAGE_STRING"
2090 _ACEOF
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2094 _ACEOF
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_URL "$PACKAGE_URL"
2098 _ACEOF
2101 # Let the site file select an alternate cache file if it wants to.
2102 # Prefer an explicitly selected file to automatically selected ones.
2103 ac_site_file1=NONE
2104 ac_site_file2=NONE
2105 if test -n "$CONFIG_SITE"; then
2106 # We do not want a PATH search for config.site.
2107 case $CONFIG_SITE in #((
2108 -*) ac_site_file1=./$CONFIG_SITE;;
2109 */*) ac_site_file1=$CONFIG_SITE;;
2110 *) ac_site_file1=./$CONFIG_SITE;;
2111 esac
2112 elif test "x$prefix" != xNONE; then
2113 ac_site_file1=$prefix/share/config.site
2114 ac_site_file2=$prefix/etc/config.site
2115 else
2116 ac_site_file1=$ac_default_prefix/share/config.site
2117 ac_site_file2=$ac_default_prefix/etc/config.site
2119 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2121 test "x$ac_site_file" = xNONE && continue
2122 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2124 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2125 sed 's/^/| /' "$ac_site_file" >&5
2126 . "$ac_site_file" \
2127 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2129 as_fn_error $? "failed to load site script $ac_site_file
2130 See \`config.log' for more details" "$LINENO" 5; }
2132 done
2134 if test -r "$cache_file"; then
2135 # Some versions of bash will fail to source /dev/null (special files
2136 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2137 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2139 $as_echo "$as_me: loading cache $cache_file" >&6;}
2140 case $cache_file in
2141 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2142 *) . "./$cache_file";;
2143 esac
2145 else
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2147 $as_echo "$as_me: creating cache $cache_file" >&6;}
2148 >$cache_file
2151 as_fn_append ac_header_list " stdlib.h"
2152 as_fn_append ac_header_list " unistd.h"
2153 as_fn_append ac_header_list " sys/param.h"
2154 # Check that the precious variables saved in the cache have kept the same
2155 # value.
2156 ac_cache_corrupted=false
2157 for ac_var in $ac_precious_vars; do
2158 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2159 eval ac_new_set=\$ac_env_${ac_var}_set
2160 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2161 eval ac_new_val=\$ac_env_${ac_var}_value
2162 case $ac_old_set,$ac_new_set in
2163 set,)
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2165 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2166 ac_cache_corrupted=: ;;
2167 ,set)
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2169 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2170 ac_cache_corrupted=: ;;
2171 ,);;
2173 if test "x$ac_old_val" != "x$ac_new_val"; then
2174 # differences in whitespace do not lead to failure.
2175 ac_old_val_w=`echo x $ac_old_val`
2176 ac_new_val_w=`echo x $ac_new_val`
2177 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2179 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2180 ac_cache_corrupted=:
2181 else
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2183 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2184 eval $ac_var=\$ac_old_val
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2187 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2189 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2190 fi;;
2191 esac
2192 # Pass precious variables to config.status.
2193 if test "$ac_new_set" = set; then
2194 case $ac_new_val in
2195 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2196 *) ac_arg=$ac_var=$ac_new_val ;;
2197 esac
2198 case " $ac_configure_args " in
2199 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2200 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2201 esac
2203 done
2204 if $ac_cache_corrupted; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2208 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2209 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2211 ## -------------------- ##
2212 ## Main body of script. ##
2213 ## -------------------- ##
2215 ac_ext=c
2216 ac_cpp='$CPP $CPPFLAGS'
2217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2225 ac_ext=c
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230 if test -n "$ac_tool_prefix"; then
2231 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2232 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2234 $as_echo_n "checking for $ac_word... " >&6; }
2235 if ${ac_cv_prog_CC+:} false; then :
2236 $as_echo_n "(cached) " >&6
2237 else
2238 if test -n "$CC"; then
2239 ac_cv_prog_CC="$CC" # Let the user override the test.
2240 else
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2244 IFS=$as_save_IFS
2245 test -z "$as_dir" && as_dir=.
2246 for ac_exec_ext in '' $ac_executable_extensions; do
2247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2248 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 break 2
2252 done
2253 done
2254 IFS=$as_save_IFS
2258 CC=$ac_cv_prog_CC
2259 if test -n "$CC"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2261 $as_echo "$CC" >&6; }
2262 else
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2264 $as_echo "no" >&6; }
2269 if test -z "$ac_cv_prog_CC"; then
2270 ac_ct_CC=$CC
2271 # Extract the first word of "gcc", so it can be a program name with args.
2272 set dummy gcc; ac_word=$2
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2274 $as_echo_n "checking for $ac_word... " >&6; }
2275 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2276 $as_echo_n "(cached) " >&6
2277 else
2278 if test -n "$ac_ct_CC"; then
2279 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2280 else
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 for as_dir in $PATH
2284 IFS=$as_save_IFS
2285 test -z "$as_dir" && as_dir=.
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288 ac_cv_prog_ac_ct_CC="gcc"
2289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2290 break 2
2292 done
2293 done
2294 IFS=$as_save_IFS
2298 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2299 if test -n "$ac_ct_CC"; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2301 $as_echo "$ac_ct_CC" >&6; }
2302 else
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2304 $as_echo "no" >&6; }
2307 if test "x$ac_ct_CC" = x; then
2308 CC=""
2309 else
2310 case $cross_compiling:$ac_tool_warned in
2311 yes:)
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2314 ac_tool_warned=yes ;;
2315 esac
2316 CC=$ac_ct_CC
2318 else
2319 CC="$ac_cv_prog_CC"
2322 if test -z "$CC"; then
2323 if test -n "$ac_tool_prefix"; then
2324 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2325 set dummy ${ac_tool_prefix}cc; ac_word=$2
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2327 $as_echo_n "checking for $ac_word... " >&6; }
2328 if ${ac_cv_prog_CC+:} false; then :
2329 $as_echo_n "(cached) " >&6
2330 else
2331 if test -n "$CC"; then
2332 ac_cv_prog_CC="$CC" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2341 ac_cv_prog_CC="${ac_tool_prefix}cc"
2342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2345 done
2346 done
2347 IFS=$as_save_IFS
2351 CC=$ac_cv_prog_CC
2352 if test -n "$CC"; then
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2354 $as_echo "$CC" >&6; }
2355 else
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2357 $as_echo "no" >&6; }
2363 if test -z "$CC"; then
2364 # Extract the first word of "cc", so it can be a program name with args.
2365 set dummy cc; ac_word=$2
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2367 $as_echo_n "checking for $ac_word... " >&6; }
2368 if ${ac_cv_prog_CC+:} false; then :
2369 $as_echo_n "(cached) " >&6
2370 else
2371 if test -n "$CC"; then
2372 ac_cv_prog_CC="$CC" # Let the user override the test.
2373 else
2374 ac_prog_rejected=no
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2383 ac_prog_rejected=yes
2384 continue
2386 ac_cv_prog_CC="cc"
2387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 break 2
2390 done
2391 done
2392 IFS=$as_save_IFS
2394 if test $ac_prog_rejected = yes; then
2395 # We found a bogon in the path, so make sure we never use it.
2396 set dummy $ac_cv_prog_CC
2397 shift
2398 if test $# != 0; then
2399 # We chose a different compiler from the bogus one.
2400 # However, it has the same basename, so the bogon will be chosen
2401 # first if we set CC to just the basename; use the full file name.
2402 shift
2403 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2408 CC=$ac_cv_prog_CC
2409 if test -n "$CC"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2411 $as_echo "$CC" >&6; }
2412 else
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2414 $as_echo "no" >&6; }
2419 if test -z "$CC"; then
2420 if test -n "$ac_tool_prefix"; then
2421 for ac_prog in cl.exe
2423 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2424 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2426 $as_echo_n "checking for $ac_word... " >&6; }
2427 if ${ac_cv_prog_CC+:} false; then :
2428 $as_echo_n "(cached) " >&6
2429 else
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2440 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 break 2
2444 done
2445 done
2446 IFS=$as_save_IFS
2450 CC=$ac_cv_prog_CC
2451 if test -n "$CC"; then
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2453 $as_echo "$CC" >&6; }
2454 else
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2456 $as_echo "no" >&6; }
2460 test -n "$CC" && break
2461 done
2463 if test -z "$CC"; then
2464 ac_ct_CC=$CC
2465 for ac_prog in cl.exe
2467 # Extract the first word of "$ac_prog", so it can be a program name with args.
2468 set dummy $ac_prog; ac_word=$2
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2470 $as_echo_n "checking for $ac_word... " >&6; }
2471 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2472 $as_echo_n "(cached) " >&6
2473 else
2474 if test -n "$ac_ct_CC"; then
2475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2476 else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2484 ac_cv_prog_ac_ct_CC="$ac_prog"
2485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 break 2
2488 done
2489 done
2490 IFS=$as_save_IFS
2494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2495 if test -n "$ac_ct_CC"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2497 $as_echo "$ac_ct_CC" >&6; }
2498 else
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2500 $as_echo "no" >&6; }
2504 test -n "$ac_ct_CC" && break
2505 done
2507 if test "x$ac_ct_CC" = x; then
2508 CC=""
2509 else
2510 case $cross_compiling:$ac_tool_warned in
2511 yes:)
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2514 ac_tool_warned=yes ;;
2515 esac
2516 CC=$ac_ct_CC
2523 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 as_fn_error $? "no acceptable C compiler found in \$PATH
2526 See \`config.log' for more details" "$LINENO" 5; }
2528 # Provide some information about the compiler.
2529 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2530 set X $ac_compile
2531 ac_compiler=$2
2532 for ac_option in --version -v -V -qversion; do
2533 { { ac_try="$ac_compiler $ac_option >&5"
2534 case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537 esac
2538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2539 $as_echo "$ac_try_echo"; } >&5
2540 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2541 ac_status=$?
2542 if test -s conftest.err; then
2543 sed '10a\
2544 ... rest of stderr output deleted ...
2545 10q' conftest.err >conftest.er1
2546 cat conftest.er1 >&5
2548 rm -f conftest.er1 conftest.err
2549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2550 test $ac_status = 0; }
2551 done
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2557 main ()
2561 return 0;
2563 _ACEOF
2564 ac_clean_files_save=$ac_clean_files
2565 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2566 # Try to create an executable without -o first, disregard a.out.
2567 # It will help us diagnose broken compilers, and finding out an intuition
2568 # of exeext.
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2570 $as_echo_n "checking whether the C compiler works... " >&6; }
2571 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2573 # The possible output files:
2574 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2576 ac_rmfiles=
2577 for ac_file in $ac_files
2579 case $ac_file in
2580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2581 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2582 esac
2583 done
2584 rm -f $ac_rmfiles
2586 if { { ac_try="$ac_link_default"
2587 case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2590 esac
2591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2592 $as_echo "$ac_try_echo"; } >&5
2593 (eval "$ac_link_default") 2>&5
2594 ac_status=$?
2595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2596 test $ac_status = 0; }; then :
2597 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2598 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2599 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2600 # so that the user can short-circuit this test for compilers unknown to
2601 # Autoconf.
2602 for ac_file in $ac_files ''
2604 test -f "$ac_file" || continue
2605 case $ac_file in
2606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2608 [ab].out )
2609 # We found the default executable, but exeext='' is most
2610 # certainly right.
2611 break;;
2612 *.* )
2613 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2614 then :; else
2615 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2617 # We set ac_cv_exeext here because the later test for it is not
2618 # safe: cross compilers may not add the suffix if given an `-o'
2619 # argument, so we may need to know it at that point already.
2620 # Even if this section looks crufty: it has the advantage of
2621 # actually working.
2622 break;;
2624 break;;
2625 esac
2626 done
2627 test "$ac_cv_exeext" = no && ac_cv_exeext=
2629 else
2630 ac_file=''
2632 if test -z "$ac_file"; then :
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634 $as_echo "no" >&6; }
2635 $as_echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2640 as_fn_error 77 "C compiler cannot create executables
2641 See \`config.log' for more details" "$LINENO" 5; }
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2644 $as_echo "yes" >&6; }
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2647 $as_echo_n "checking for C compiler default output file name... " >&6; }
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2649 $as_echo "$ac_file" >&6; }
2650 ac_exeext=$ac_cv_exeext
2652 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2653 ac_clean_files=$ac_clean_files_save
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2655 $as_echo_n "checking for suffix of executables... " >&6; }
2656 if { { ac_try="$ac_link"
2657 case "(($ac_try" in
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2660 esac
2661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2662 $as_echo "$ac_try_echo"; } >&5
2663 (eval "$ac_link") 2>&5
2664 ac_status=$?
2665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2666 test $ac_status = 0; }; then :
2667 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2668 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2669 # work properly (i.e., refer to `conftest.exe'), while it won't with
2670 # `rm'.
2671 for ac_file in conftest.exe conftest conftest.*; do
2672 test -f "$ac_file" || continue
2673 case $ac_file in
2674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2675 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2676 break;;
2677 * ) break;;
2678 esac
2679 done
2680 else
2681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2683 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2684 See \`config.log' for more details" "$LINENO" 5; }
2686 rm -f conftest conftest$ac_cv_exeext
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2688 $as_echo "$ac_cv_exeext" >&6; }
2690 rm -f conftest.$ac_ext
2691 EXEEXT=$ac_cv_exeext
2692 ac_exeext=$EXEEXT
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h. */
2695 #include <stdio.h>
2697 main ()
2699 FILE *f = fopen ("conftest.out", "w");
2700 return ferror (f) || fclose (f) != 0;
2703 return 0;
2705 _ACEOF
2706 ac_clean_files="$ac_clean_files conftest.out"
2707 # Check that the compiler produces executables we can run. If not, either
2708 # the compiler is broken, or we cross compile.
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2710 $as_echo_n "checking whether we are cross compiling... " >&6; }
2711 if test "$cross_compiling" != yes; then
2712 { { ac_try="$ac_link"
2713 case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716 esac
2717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2718 $as_echo "$ac_try_echo"; } >&5
2719 (eval "$ac_link") 2>&5
2720 ac_status=$?
2721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2722 test $ac_status = 0; }
2723 if { ac_try='./conftest$ac_cv_exeext'
2724 { { case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727 esac
2728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2729 $as_echo "$ac_try_echo"; } >&5
2730 (eval "$ac_try") 2>&5
2731 ac_status=$?
2732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2733 test $ac_status = 0; }; }; then
2734 cross_compiling=no
2735 else
2736 if test "$cross_compiling" = maybe; then
2737 cross_compiling=yes
2738 else
2739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2741 as_fn_error $? "cannot run C compiled programs.
2742 If you meant to cross compile, use \`--host'.
2743 See \`config.log' for more details" "$LINENO" 5; }
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2748 $as_echo "$cross_compiling" >&6; }
2750 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2751 ac_clean_files=$ac_clean_files_save
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2753 $as_echo_n "checking for suffix of object files... " >&6; }
2754 if ${ac_cv_objext+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2758 /* end confdefs.h. */
2761 main ()
2765 return 0;
2767 _ACEOF
2768 rm -f conftest.o conftest.obj
2769 if { { ac_try="$ac_compile"
2770 case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773 esac
2774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2775 $as_echo "$ac_try_echo"; } >&5
2776 (eval "$ac_compile") 2>&5
2777 ac_status=$?
2778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2779 test $ac_status = 0; }; then :
2780 for ac_file in conftest.o conftest.obj conftest.*; do
2781 test -f "$ac_file" || continue;
2782 case $ac_file in
2783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2784 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2785 break;;
2786 esac
2787 done
2788 else
2789 $as_echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2794 as_fn_error $? "cannot compute suffix of object files: cannot compile
2795 See \`config.log' for more details" "$LINENO" 5; }
2797 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2800 $as_echo "$ac_cv_objext" >&6; }
2801 OBJEXT=$ac_cv_objext
2802 ac_objext=$OBJEXT
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2804 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2805 if ${ac_cv_c_compiler_gnu+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2809 /* end confdefs.h. */
2812 main ()
2814 #ifndef __GNUC__
2815 choke me
2816 #endif
2819 return 0;
2821 _ACEOF
2822 if ac_fn_c_try_compile "$LINENO"; then :
2823 ac_compiler_gnu=yes
2824 else
2825 ac_compiler_gnu=no
2827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2828 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2832 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2833 if test $ac_compiler_gnu = yes; then
2834 GCC=yes
2835 else
2836 GCC=
2838 ac_test_CFLAGS=${CFLAGS+set}
2839 ac_save_CFLAGS=$CFLAGS
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2841 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2842 if ${ac_cv_prog_cc_g+:} false; then :
2843 $as_echo_n "(cached) " >&6
2844 else
2845 ac_save_c_werror_flag=$ac_c_werror_flag
2846 ac_c_werror_flag=yes
2847 ac_cv_prog_cc_g=no
2848 CFLAGS="-g"
2849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850 /* end confdefs.h. */
2853 main ()
2857 return 0;
2859 _ACEOF
2860 if ac_fn_c_try_compile "$LINENO"; then :
2861 ac_cv_prog_cc_g=yes
2862 else
2863 CFLAGS=""
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 :
2877 else
2878 ac_c_werror_flag=$ac_save_c_werror_flag
2879 CFLAGS="-g"
2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881 /* end confdefs.h. */
2884 main ()
2888 return 0;
2890 _ACEOF
2891 if ac_fn_c_try_compile "$LINENO"; then :
2892 ac_cv_prog_cc_g=yes
2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899 ac_c_werror_flag=$ac_save_c_werror_flag
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2902 $as_echo "$ac_cv_prog_cc_g" >&6; }
2903 if test "$ac_test_CFLAGS" = set; then
2904 CFLAGS=$ac_save_CFLAGS
2905 elif test $ac_cv_prog_cc_g = yes; then
2906 if test "$GCC" = yes; then
2907 CFLAGS="-g -O2"
2908 else
2909 CFLAGS="-g"
2911 else
2912 if test "$GCC" = yes; then
2913 CFLAGS="-O2"
2914 else
2915 CFLAGS=
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2919 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2920 if ${ac_cv_prog_cc_c89+:} false; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 ac_cv_prog_cc_c89=no
2924 ac_save_CC=$CC
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2927 #include <stdarg.h>
2928 #include <stdio.h>
2929 struct stat;
2930 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2931 struct buf { int x; };
2932 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2933 static char *e (p, i)
2934 char **p;
2935 int i;
2937 return p[i];
2939 static char *f (char * (*g) (char **, int), char **p, ...)
2941 char *s;
2942 va_list v;
2943 va_start (v,p);
2944 s = g (p, va_arg (v,int));
2945 va_end (v);
2946 return s;
2949 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2950 function prototypes and stuff, but not '\xHH' hex character constants.
2951 These don't provoke an error unfortunately, instead are silently treated
2952 as 'x'. The following induces an error, until -std is added to get
2953 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2954 array size at least. It's necessary to write '\x00'==0 to get something
2955 that's true only with -std. */
2956 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2958 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2959 inside strings and character constants. */
2960 #define FOO(x) 'x'
2961 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2963 int test (int i, double x);
2964 struct s1 {int (*f) (int a);};
2965 struct s2 {int (*f) (double a);};
2966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2967 int argc;
2968 char **argv;
2970 main ()
2972 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2974 return 0;
2976 _ACEOF
2977 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2978 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2980 CC="$ac_save_CC $ac_arg"
2981 if ac_fn_c_try_compile "$LINENO"; then :
2982 ac_cv_prog_cc_c89=$ac_arg
2984 rm -f core conftest.err conftest.$ac_objext
2985 test "x$ac_cv_prog_cc_c89" != "xno" && break
2986 done
2987 rm -f conftest.$ac_ext
2988 CC=$ac_save_CC
2991 # AC_CACHE_VAL
2992 case "x$ac_cv_prog_cc_c89" in
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2995 $as_echo "none needed" >&6; } ;;
2996 xno)
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2998 $as_echo "unsupported" >&6; } ;;
3000 CC="$CC $ac_cv_prog_cc_c89"
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3002 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3003 esac
3004 if test "x$ac_cv_prog_cc_c89" != xno; then :
3008 ac_ext=c
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3015 ac_ext=c
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3021 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3022 # On Suns, sometimes $CPP names a directory.
3023 if test -n "$CPP" && test -d "$CPP"; then
3024 CPP=
3026 if test -z "$CPP"; then
3027 if ${ac_cv_prog_CPP+:} false; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 # Double quotes because CPP needs to be expanded
3031 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3033 ac_preproc_ok=false
3034 for ac_c_preproc_warn_flag in '' yes
3036 # Use a header file that comes with gcc, so configuring glibc
3037 # with a fresh cross-compiler works.
3038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3039 # <limits.h> exists even on freestanding compilers.
3040 # On the NeXT, cc -E runs the code through the compiler's parser,
3041 # not just through cpp. "Syntax error" is here to catch this case.
3042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3043 /* end confdefs.h. */
3044 #ifdef __STDC__
3045 # include <limits.h>
3046 #else
3047 # include <assert.h>
3048 #endif
3049 Syntax error
3050 _ACEOF
3051 if ac_fn_c_try_cpp "$LINENO"; then :
3053 else
3054 # Broken: fails on valid input.
3055 continue
3057 rm -f conftest.err conftest.i conftest.$ac_ext
3059 # OK, works on sane cases. Now check whether nonexistent headers
3060 # can be detected and how.
3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062 /* end confdefs.h. */
3063 #include <ac_nonexistent.h>
3064 _ACEOF
3065 if ac_fn_c_try_cpp "$LINENO"; then :
3066 # Broken: success on invalid input.
3067 continue
3068 else
3069 # Passes both tests.
3070 ac_preproc_ok=:
3071 break
3073 rm -f conftest.err conftest.i conftest.$ac_ext
3075 done
3076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3077 rm -f conftest.i conftest.err conftest.$ac_ext
3078 if $ac_preproc_ok; then :
3079 break
3082 done
3083 ac_cv_prog_CPP=$CPP
3086 CPP=$ac_cv_prog_CPP
3087 else
3088 ac_cv_prog_CPP=$CPP
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3091 $as_echo "$CPP" >&6; }
3092 ac_preproc_ok=false
3093 for ac_c_preproc_warn_flag in '' yes
3095 # Use a header file that comes with gcc, so configuring glibc
3096 # with a fresh cross-compiler works.
3097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3098 # <limits.h> exists even on freestanding compilers.
3099 # On the NeXT, cc -E runs the code through the compiler's parser,
3100 # not just through cpp. "Syntax error" is here to catch this case.
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3103 #ifdef __STDC__
3104 # include <limits.h>
3105 #else
3106 # include <assert.h>
3107 #endif
3108 Syntax error
3109 _ACEOF
3110 if ac_fn_c_try_cpp "$LINENO"; then :
3112 else
3113 # Broken: fails on valid input.
3114 continue
3116 rm -f conftest.err conftest.i conftest.$ac_ext
3118 # OK, works on sane cases. Now check whether nonexistent headers
3119 # can be detected and how.
3120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3121 /* end confdefs.h. */
3122 #include <ac_nonexistent.h>
3123 _ACEOF
3124 if ac_fn_c_try_cpp "$LINENO"; then :
3125 # Broken: success on invalid input.
3126 continue
3127 else
3128 # Passes both tests.
3129 ac_preproc_ok=:
3130 break
3132 rm -f conftest.err conftest.i conftest.$ac_ext
3134 done
3135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3136 rm -f conftest.i conftest.err conftest.$ac_ext
3137 if $ac_preproc_ok; then :
3139 else
3140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3143 See \`config.log' for more details" "$LINENO" 5; }
3146 ac_ext=c
3147 ac_cpp='$CPP $CPPFLAGS'
3148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3154 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3155 if ${ac_cv_path_GREP+:} false; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 if test -z "$GREP"; then
3159 ac_path_GREP_found=false
3160 # Loop through the user's path and test for each of PROGNAME-LIST
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_prog in grep ggrep; do
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3169 as_fn_executable_p "$ac_path_GREP" || continue
3170 # Check for GNU ac_path_GREP and select it if it is found.
3171 # Check for GNU $ac_path_GREP
3172 case `"$ac_path_GREP" --version 2>&1` in
3173 *GNU*)
3174 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3176 ac_count=0
3177 $as_echo_n 0123456789 >"conftest.in"
3178 while :
3180 cat "conftest.in" "conftest.in" >"conftest.tmp"
3181 mv "conftest.tmp" "conftest.in"
3182 cp "conftest.in" "conftest.nl"
3183 $as_echo 'GREP' >> "conftest.nl"
3184 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3186 as_fn_arith $ac_count + 1 && ac_count=$as_val
3187 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3188 # Best one so far, save it but keep looking for a better one
3189 ac_cv_path_GREP="$ac_path_GREP"
3190 ac_path_GREP_max=$ac_count
3192 # 10*(2^10) chars as input seems more than enough
3193 test $ac_count -gt 10 && break
3194 done
3195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3196 esac
3198 $ac_path_GREP_found && break 3
3199 done
3200 done
3201 done
3202 IFS=$as_save_IFS
3203 if test -z "$ac_cv_path_GREP"; then
3204 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3206 else
3207 ac_cv_path_GREP=$GREP
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3212 $as_echo "$ac_cv_path_GREP" >&6; }
3213 GREP="$ac_cv_path_GREP"
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3217 $as_echo_n "checking for egrep... " >&6; }
3218 if ${ac_cv_path_EGREP+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3222 then ac_cv_path_EGREP="$GREP -E"
3223 else
3224 if test -z "$EGREP"; then
3225 ac_path_EGREP_found=false
3226 # Loop through the user's path and test for each of PROGNAME-LIST
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3230 IFS=$as_save_IFS
3231 test -z "$as_dir" && as_dir=.
3232 for ac_prog in egrep; do
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3235 as_fn_executable_p "$ac_path_EGREP" || continue
3236 # Check for GNU ac_path_EGREP and select it if it is found.
3237 # Check for GNU $ac_path_EGREP
3238 case `"$ac_path_EGREP" --version 2>&1` in
3239 *GNU*)
3240 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3242 ac_count=0
3243 $as_echo_n 0123456789 >"conftest.in"
3244 while :
3246 cat "conftest.in" "conftest.in" >"conftest.tmp"
3247 mv "conftest.tmp" "conftest.in"
3248 cp "conftest.in" "conftest.nl"
3249 $as_echo 'EGREP' >> "conftest.nl"
3250 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3252 as_fn_arith $ac_count + 1 && ac_count=$as_val
3253 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3254 # Best one so far, save it but keep looking for a better one
3255 ac_cv_path_EGREP="$ac_path_EGREP"
3256 ac_path_EGREP_max=$ac_count
3258 # 10*(2^10) chars as input seems more than enough
3259 test $ac_count -gt 10 && break
3260 done
3261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3262 esac
3264 $ac_path_EGREP_found && break 3
3265 done
3266 done
3267 done
3268 IFS=$as_save_IFS
3269 if test -z "$ac_cv_path_EGREP"; then
3270 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3272 else
3273 ac_cv_path_EGREP=$EGREP
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3279 $as_echo "$ac_cv_path_EGREP" >&6; }
3280 EGREP="$ac_cv_path_EGREP"
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3284 $as_echo_n "checking for ANSI C header files... " >&6; }
3285 if ${ac_cv_header_stdc+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 /* end confdefs.h. */
3290 #include <stdlib.h>
3291 #include <stdarg.h>
3292 #include <string.h>
3293 #include <float.h>
3296 main ()
3300 return 0;
3302 _ACEOF
3303 if ac_fn_c_try_compile "$LINENO"; then :
3304 ac_cv_header_stdc=yes
3305 else
3306 ac_cv_header_stdc=no
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 if test $ac_cv_header_stdc = yes; then
3311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3314 #include <string.h>
3316 _ACEOF
3317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3318 $EGREP "memchr" >/dev/null 2>&1; then :
3320 else
3321 ac_cv_header_stdc=no
3323 rm -f conftest*
3327 if test $ac_cv_header_stdc = yes; then
3328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3331 #include <stdlib.h>
3333 _ACEOF
3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3335 $EGREP "free" >/dev/null 2>&1; then :
3337 else
3338 ac_cv_header_stdc=no
3340 rm -f conftest*
3344 if test $ac_cv_header_stdc = yes; then
3345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3346 if test "$cross_compiling" = yes; then :
3348 else
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3351 #include <ctype.h>
3352 #include <stdlib.h>
3353 #if ((' ' & 0x0FF) == 0x020)
3354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3356 #else
3357 # define ISLOWER(c) \
3358 (('a' <= (c) && (c) <= 'i') \
3359 || ('j' <= (c) && (c) <= 'r') \
3360 || ('s' <= (c) && (c) <= 'z'))
3361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3362 #endif
3364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3366 main ()
3368 int i;
3369 for (i = 0; i < 256; i++)
3370 if (XOR (islower (i), ISLOWER (i))
3371 || toupper (i) != TOUPPER (i))
3372 return 2;
3373 return 0;
3375 _ACEOF
3376 if ac_fn_c_try_run "$LINENO"; then :
3378 else
3379 ac_cv_header_stdc=no
3381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3382 conftest.$ac_objext conftest.beam conftest.$ac_ext
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3388 $as_echo "$ac_cv_header_stdc" >&6; }
3389 if test $ac_cv_header_stdc = yes; then
3391 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3396 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3397 inttypes.h stdint.h unistd.h
3398 do :
3399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3400 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3402 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3403 cat >>confdefs.h <<_ACEOF
3404 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3405 _ACEOF
3409 done
3413 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3414 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3415 MINIX=yes
3416 else
3417 MINIX=
3421 if test "$MINIX" = yes; then
3423 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3426 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3429 $as_echo "#define _MINIX 1" >>confdefs.h
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3435 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3436 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3437 $as_echo_n "(cached) " >&6
3438 else
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h. */
3442 # define __EXTENSIONS__ 1
3443 $ac_includes_default
3445 main ()
3449 return 0;
3451 _ACEOF
3452 if ac_fn_c_try_compile "$LINENO"; then :
3453 ac_cv_safe_to_define___extensions__=yes
3454 else
3455 ac_cv_safe_to_define___extensions__=no
3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3460 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3461 test $ac_cv_safe_to_define___extensions__ = yes &&
3462 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3464 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3466 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3468 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3470 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3474 ac_config_headers="$ac_config_headers config.h"
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3479 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3480 set x ${MAKE-make}
3481 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3482 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 cat >conftest.make <<\_ACEOF
3486 SHELL = /bin/sh
3487 all:
3488 @echo '@@@%%%=$(MAKE)=@@@%%%'
3489 _ACEOF
3490 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3491 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3492 *@@@%%%=?*=@@@%%%*)
3493 eval ac_cv_prog_make_${ac_make}_set=yes;;
3495 eval ac_cv_prog_make_${ac_make}_set=no;;
3496 esac
3497 rm -f conftest.make
3499 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501 $as_echo "yes" >&6; }
3502 SET_MAKE=
3503 else
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3506 SET_MAKE="MAKE=${MAKE-make}"
3509 ac_aux_dir=
3510 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3511 if test -f "$ac_dir/install-sh"; then
3512 ac_aux_dir=$ac_dir
3513 ac_install_sh="$ac_aux_dir/install-sh -c"
3514 break
3515 elif test -f "$ac_dir/install.sh"; then
3516 ac_aux_dir=$ac_dir
3517 ac_install_sh="$ac_aux_dir/install.sh -c"
3518 break
3519 elif test -f "$ac_dir/shtool"; then
3520 ac_aux_dir=$ac_dir
3521 ac_install_sh="$ac_aux_dir/shtool install -c"
3522 break
3524 done
3525 if test -z "$ac_aux_dir"; then
3526 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3529 # These three variables are undocumented and unsupported,
3530 # and are intended to be withdrawn in a future Autoconf release.
3531 # They can cause serious problems if a builder's source tree is in a directory
3532 # whose full name contains unusual characters.
3533 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3534 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3535 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3538 # Find a good install program. We prefer a C program (faster),
3539 # so one script is as good as another. But avoid the broken or
3540 # incompatible versions:
3541 # SysV /etc/install, /usr/sbin/install
3542 # SunOS /usr/etc/install
3543 # IRIX /sbin/install
3544 # AIX /bin/install
3545 # AmigaOS /C/install, which installs bootblocks on floppy discs
3546 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3547 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3548 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3549 # OS/2's system install, which has a completely different semantic
3550 # ./install, which can be erroneously created by make from ./install.sh.
3551 # Reject install programs that cannot install multiple files.
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3553 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3554 if test -z "$INSTALL"; then
3555 if ${ac_cv_path_install+:} false; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3561 IFS=$as_save_IFS
3562 test -z "$as_dir" && as_dir=.
3563 # Account for people who put trailing slashes in PATH elements.
3564 case $as_dir/ in #((
3565 ./ | .// | /[cC]/* | \
3566 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3567 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3568 /usr/ucb/* ) ;;
3570 # OSF1 and SCO ODT 3.0 have their own names for install.
3571 # Don't use installbsd from OSF since it installs stuff as root
3572 # by default.
3573 for ac_prog in ginstall scoinst install; do
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3576 if test $ac_prog = install &&
3577 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3578 # AIX install. It has an incompatible calling convention.
3580 elif test $ac_prog = install &&
3581 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3582 # program-specific install script used by HP pwplus--don't use.
3584 else
3585 rm -rf conftest.one conftest.two conftest.dir
3586 echo one > conftest.one
3587 echo two > conftest.two
3588 mkdir conftest.dir
3589 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3590 test -s conftest.one && test -s conftest.two &&
3591 test -s conftest.dir/conftest.one &&
3592 test -s conftest.dir/conftest.two
3593 then
3594 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3595 break 3
3599 done
3600 done
3602 esac
3604 done
3605 IFS=$as_save_IFS
3607 rm -rf conftest.one conftest.two conftest.dir
3610 if test "${ac_cv_path_install+set}" = set; then
3611 INSTALL=$ac_cv_path_install
3612 else
3613 # As a last resort, use the slow shell script. Don't cache a
3614 # value for INSTALL within a source directory, because that will
3615 # break other packages using the cache if that directory is
3616 # removed, or if the value is a relative name.
3617 INSTALL=$ac_install_sh
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3621 $as_echo "$INSTALL" >&6; }
3623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3624 # It thinks the first close brace ends the variable substitution.
3625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3627 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3629 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3632 MKINSTALLDIRS=
3633 if test -n "$ac_aux_dir"; then
3634 case "$ac_aux_dir" in
3635 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3636 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3637 esac
3639 if test -z "$MKINSTALLDIRS"; then
3640 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3646 $as_echo_n "checking whether NLS is requested... " >&6; }
3647 # Check whether --enable-nls was given.
3648 if test "${enable_nls+set}" = set; then :
3649 enableval=$enable_nls; USE_NLS=$enableval
3650 else
3651 USE_NLS=yes
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3655 $as_echo "$USE_NLS" >&6; }
3662 # Prepare PATH_SEPARATOR.
3663 # The user is always right.
3664 if test "${PATH_SEPARATOR+set}" != set; then
3665 echo "#! /bin/sh" >conf$$.sh
3666 echo "exit 0" >>conf$$.sh
3667 chmod +x conf$$.sh
3668 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3669 PATH_SEPARATOR=';'
3670 else
3671 PATH_SEPARATOR=:
3673 rm -f conf$$.sh
3676 # Find out how to test for executable files. Don't use a zero-byte file,
3677 # as systems may use methods other than mode bits to determine executability.
3678 cat >conf$$.file <<_ASEOF
3679 #! /bin/sh
3680 exit 0
3681 _ASEOF
3682 chmod +x conf$$.file
3683 if test -x conf$$.file >/dev/null 2>&1; then
3684 ac_executable_p="test -x"
3685 else
3686 ac_executable_p="test -f"
3688 rm -f conf$$.file
3690 # Extract the first word of "msgfmt", so it can be a program name with args.
3691 set dummy msgfmt; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if ${ac_cv_path_MSGFMT+:} false; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 case "$MSGFMT" in
3698 [\\/]* | ?:[\\/]*)
3699 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3702 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3703 for ac_dir in $PATH; do
3704 IFS="$ac_save_IFS"
3705 test -z "$ac_dir" && ac_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3708 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3709 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3710 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3711 break 2
3714 done
3715 done
3716 IFS="$ac_save_IFS"
3717 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3719 esac
3721 MSGFMT="$ac_cv_path_MSGFMT"
3722 if test "$MSGFMT" != ":"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3724 $as_echo "$MSGFMT" >&6; }
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3730 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3731 set dummy gmsgfmt; ac_word=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if ${ac_cv_path_GMSGFMT+:} false; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 case $GMSGFMT in
3738 [\\/]* | ?:[\\/]*)
3739 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3753 done
3754 done
3755 IFS=$as_save_IFS
3757 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3759 esac
3761 GMSGFMT=$ac_cv_path_GMSGFMT
3762 if test -n "$GMSGFMT"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3764 $as_echo "$GMSGFMT" >&6; }
3765 else
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3773 # Prepare PATH_SEPARATOR.
3774 # The user is always right.
3775 if test "${PATH_SEPARATOR+set}" != set; then
3776 echo "#! /bin/sh" >conf$$.sh
3777 echo "exit 0" >>conf$$.sh
3778 chmod +x conf$$.sh
3779 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3780 PATH_SEPARATOR=';'
3781 else
3782 PATH_SEPARATOR=:
3784 rm -f conf$$.sh
3787 # Find out how to test for executable files. Don't use a zero-byte file,
3788 # as systems may use methods other than mode bits to determine executability.
3789 cat >conf$$.file <<_ASEOF
3790 #! /bin/sh
3791 exit 0
3792 _ASEOF
3793 chmod +x conf$$.file
3794 if test -x conf$$.file >/dev/null 2>&1; then
3795 ac_executable_p="test -x"
3796 else
3797 ac_executable_p="test -f"
3799 rm -f conf$$.file
3801 # Extract the first word of "xgettext", so it can be a program name with args.
3802 set dummy xgettext; ac_word=$2
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 $as_echo_n "checking for $ac_word... " >&6; }
3805 if ${ac_cv_path_XGETTEXT+:} false; then :
3806 $as_echo_n "(cached) " >&6
3807 else
3808 case "$XGETTEXT" in
3809 [\\/]* | ?:[\\/]*)
3810 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3813 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3814 for ac_dir in $PATH; do
3815 IFS="$ac_save_IFS"
3816 test -z "$ac_dir" && ac_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3819 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3820 (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
3821 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3822 break 2
3825 done
3826 done
3827 IFS="$ac_save_IFS"
3828 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3830 esac
3832 XGETTEXT="$ac_cv_path_XGETTEXT"
3833 if test "$XGETTEXT" != ":"; then
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3835 $as_echo "$XGETTEXT" >&6; }
3836 else
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838 $as_echo "no" >&6; }
3841 rm -f messages.po
3844 # Prepare PATH_SEPARATOR.
3845 # The user is always right.
3846 if test "${PATH_SEPARATOR+set}" != set; then
3847 echo "#! /bin/sh" >conf$$.sh
3848 echo "exit 0" >>conf$$.sh
3849 chmod +x conf$$.sh
3850 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3851 PATH_SEPARATOR=';'
3852 else
3853 PATH_SEPARATOR=:
3855 rm -f conf$$.sh
3858 # Find out how to test for executable files. Don't use a zero-byte file,
3859 # as systems may use methods other than mode bits to determine executability.
3860 cat >conf$$.file <<_ASEOF
3861 #! /bin/sh
3862 exit 0
3863 _ASEOF
3864 chmod +x conf$$.file
3865 if test -x conf$$.file >/dev/null 2>&1; then
3866 ac_executable_p="test -x"
3867 else
3868 ac_executable_p="test -f"
3870 rm -f conf$$.file
3872 # Extract the first word of "msgmerge", so it can be a program name with args.
3873 set dummy msgmerge; ac_word=$2
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if ${ac_cv_path_MSGMERGE+:} false; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 case "$MSGMERGE" in
3880 [\\/]* | ?:[\\/]*)
3881 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3884 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3885 for ac_dir in $PATH; do
3886 IFS="$ac_save_IFS"
3887 test -z "$ac_dir" && ac_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3890 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3891 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3892 break 2
3895 done
3896 done
3897 IFS="$ac_save_IFS"
3898 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3900 esac
3902 MSGMERGE="$ac_cv_path_MSGMERGE"
3903 if test "$MSGMERGE" != ":"; then
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3905 $as_echo "$MSGMERGE" >&6; }
3906 else
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 $as_echo "no" >&6; }
3912 if test "$GMSGFMT" != ":"; then
3913 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3914 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3916 else
3917 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3919 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3920 GMSGFMT=":"
3924 if test "$XGETTEXT" != ":"; then
3925 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3926 (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
3928 else
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
3930 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
3931 XGETTEXT=":"
3933 rm -f messages.po
3936 ac_config_commands="$ac_config_commands default-1"
3939 # Make sure we can run config.sub.
3940 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3941 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3944 $as_echo_n "checking build system type... " >&6; }
3945 if ${ac_cv_build+:} false; then :
3946 $as_echo_n "(cached) " >&6
3947 else
3948 ac_build_alias=$build_alias
3949 test "x$ac_build_alias" = x &&
3950 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3951 test "x$ac_build_alias" = x &&
3952 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3953 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3954 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3958 $as_echo "$ac_cv_build" >&6; }
3959 case $ac_cv_build in
3960 *-*-*) ;;
3961 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3962 esac
3963 build=$ac_cv_build
3964 ac_save_IFS=$IFS; IFS='-'
3965 set x $ac_cv_build
3966 shift
3967 build_cpu=$1
3968 build_vendor=$2
3969 shift; shift
3970 # Remember, the first character of IFS is used to create $*,
3971 # except with old shells:
3972 build_os=$*
3973 IFS=$ac_save_IFS
3974 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3978 $as_echo_n "checking host system type... " >&6; }
3979 if ${ac_cv_host+:} false; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if test "x$host_alias" = x; then
3983 ac_cv_host=$ac_cv_build
3984 else
3985 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3986 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3991 $as_echo "$ac_cv_host" >&6; }
3992 case $ac_cv_host in
3993 *-*-*) ;;
3994 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3995 esac
3996 host=$ac_cv_host
3997 ac_save_IFS=$IFS; IFS='-'
3998 set x $ac_cv_host
3999 shift
4000 host_cpu=$1
4001 host_vendor=$2
4002 shift; shift
4003 # Remember, the first character of IFS is used to create $*,
4004 # except with old shells:
4005 host_os=$*
4006 IFS=$ac_save_IFS
4007 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4010 if test -n "$ac_tool_prefix"; then
4011 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4012 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014 $as_echo_n "checking for $ac_word... " >&6; }
4015 if ${ac_cv_prog_RANLIB+:} false; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 if test -n "$RANLIB"; then
4019 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4020 else
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4024 IFS=$as_save_IFS
4025 test -z "$as_dir" && as_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 break 2
4032 done
4033 done
4034 IFS=$as_save_IFS
4038 RANLIB=$ac_cv_prog_RANLIB
4039 if test -n "$RANLIB"; then
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4041 $as_echo "$RANLIB" >&6; }
4042 else
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044 $as_echo "no" >&6; }
4049 if test -z "$ac_cv_prog_RANLIB"; then
4050 ac_ct_RANLIB=$RANLIB
4051 # Extract the first word of "ranlib", so it can be a program name with args.
4052 set dummy ranlib; ac_word=$2
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054 $as_echo_n "checking for $ac_word... " >&6; }
4055 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4056 $as_echo_n "(cached) " >&6
4057 else
4058 if test -n "$ac_ct_RANLIB"; then
4059 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4060 else
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 for as_dir in $PATH
4064 IFS=$as_save_IFS
4065 test -z "$as_dir" && as_dir=.
4066 for ac_exec_ext in '' $ac_executable_extensions; do
4067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4068 ac_cv_prog_ac_ct_RANLIB="ranlib"
4069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 break 2
4072 done
4073 done
4074 IFS=$as_save_IFS
4078 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4079 if test -n "$ac_ct_RANLIB"; then
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4081 $as_echo "$ac_ct_RANLIB" >&6; }
4082 else
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084 $as_echo "no" >&6; }
4087 if test "x$ac_ct_RANLIB" = x; then
4088 RANLIB=":"
4089 else
4090 case $cross_compiling:$ac_tool_warned in
4091 yes:)
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4094 ac_tool_warned=yes ;;
4095 esac
4096 RANLIB=$ac_ct_RANLIB
4098 else
4099 RANLIB="$ac_cv_prog_RANLIB"
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4103 $as_echo_n "checking for library containing strerror... " >&6; }
4104 if ${ac_cv_search_strerror+:} false; then :
4105 $as_echo_n "(cached) " >&6
4106 else
4107 ac_func_search_save_LIBS=$LIBS
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4111 /* Override any GCC internal prototype to avoid an error.
4112 Use char because int might match the return type of a GCC
4113 builtin and then its argument prototype would still apply. */
4114 #ifdef __cplusplus
4115 extern "C"
4116 #endif
4117 char strerror ();
4119 main ()
4121 return strerror ();
4123 return 0;
4125 _ACEOF
4126 for ac_lib in '' cposix; do
4127 if test -z "$ac_lib"; then
4128 ac_res="none required"
4129 else
4130 ac_res=-l$ac_lib
4131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4133 if ac_fn_c_try_link "$LINENO"; then :
4134 ac_cv_search_strerror=$ac_res
4136 rm -f core conftest.err conftest.$ac_objext \
4137 conftest$ac_exeext
4138 if ${ac_cv_search_strerror+:} false; then :
4139 break
4141 done
4142 if ${ac_cv_search_strerror+:} false; then :
4144 else
4145 ac_cv_search_strerror=no
4147 rm conftest.$ac_ext
4148 LIBS=$ac_func_search_save_LIBS
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4151 $as_echo "$ac_cv_search_strerror" >&6; }
4152 ac_res=$ac_cv_search_strerror
4153 if test "$ac_res" != no; then :
4154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4159 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4160 if ${ac_cv_c_const+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4167 main ()
4170 #ifndef __cplusplus
4171 /* Ultrix mips cc rejects this sort of thing. */
4172 typedef int charset[2];
4173 const charset cs = { 0, 0 };
4174 /* SunOS 4.1.1 cc rejects this. */
4175 char const *const *pcpcc;
4176 char **ppc;
4177 /* NEC SVR4.0.2 mips cc rejects this. */
4178 struct point {int x, y;};
4179 static struct point const zero = {0,0};
4180 /* AIX XL C 1.02.0.0 rejects this.
4181 It does not let you subtract one const X* pointer from another in
4182 an arm of an if-expression whose if-part is not a constant
4183 expression */
4184 const char *g = "string";
4185 pcpcc = &g + (g ? g-g : 0);
4186 /* HPUX 7.0 cc rejects these. */
4187 ++pcpcc;
4188 ppc = (char**) pcpcc;
4189 pcpcc = (char const *const *) ppc;
4190 { /* SCO 3.2v4 cc rejects this sort of thing. */
4191 char tx;
4192 char *t = &tx;
4193 char const *s = 0 ? (char *) 0 : (char const *) 0;
4195 *t++ = 0;
4196 if (s) return 0;
4198 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4199 int x[] = {25, 17};
4200 const int *foo = &x[0];
4201 ++foo;
4203 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4204 typedef const int *iptr;
4205 iptr p = 0;
4206 ++p;
4208 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4209 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4210 struct s { int j; const int *ap[3]; } bx;
4211 struct s *b = &bx; b->j = 5;
4213 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4214 const int foo = 10;
4215 if (!foo) return 0;
4217 return !cs[0] && !zero.x;
4218 #endif
4221 return 0;
4223 _ACEOF
4224 if ac_fn_c_try_compile "$LINENO"; then :
4225 ac_cv_c_const=yes
4226 else
4227 ac_cv_c_const=no
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4232 $as_echo "$ac_cv_c_const" >&6; }
4233 if test $ac_cv_c_const = no; then
4235 $as_echo "#define const /**/" >>confdefs.h
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4240 $as_echo_n "checking for inline... " >&6; }
4241 if ${ac_cv_c_inline+:} false; then :
4242 $as_echo_n "(cached) " >&6
4243 else
4244 ac_cv_c_inline=no
4245 for ac_kw in inline __inline__ __inline; do
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4248 #ifndef __cplusplus
4249 typedef int foo_t;
4250 static $ac_kw foo_t static_foo () {return 0; }
4251 $ac_kw foo_t foo () {return 0; }
4252 #endif
4254 _ACEOF
4255 if ac_fn_c_try_compile "$LINENO"; then :
4256 ac_cv_c_inline=$ac_kw
4258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 test "$ac_cv_c_inline" != no && break
4260 done
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4264 $as_echo "$ac_cv_c_inline" >&6; }
4266 case $ac_cv_c_inline in
4267 inline | yes) ;;
4269 case $ac_cv_c_inline in
4270 no) ac_val=;;
4271 *) ac_val=$ac_cv_c_inline;;
4272 esac
4273 cat >>confdefs.h <<_ACEOF
4274 #ifndef __cplusplus
4275 #define inline $ac_val
4276 #endif
4277 _ACEOF
4279 esac
4281 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4282 if test "x$ac_cv_type_off_t" = xyes; then :
4284 else
4286 cat >>confdefs.h <<_ACEOF
4287 #define off_t long int
4288 _ACEOF
4292 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4293 if test "x$ac_cv_type_size_t" = xyes; then :
4295 else
4297 cat >>confdefs.h <<_ACEOF
4298 #define size_t unsigned int
4299 _ACEOF
4303 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4304 # for constant arguments. Useless!
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4306 $as_echo_n "checking for working alloca.h... " >&6; }
4307 if ${ac_cv_working_alloca_h+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4312 #include <alloca.h>
4314 main ()
4316 char *p = (char *) alloca (2 * sizeof (int));
4317 if (p) return 0;
4319 return 0;
4321 _ACEOF
4322 if ac_fn_c_try_link "$LINENO"; then :
4323 ac_cv_working_alloca_h=yes
4324 else
4325 ac_cv_working_alloca_h=no
4327 rm -f core conftest.err conftest.$ac_objext \
4328 conftest$ac_exeext conftest.$ac_ext
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4331 $as_echo "$ac_cv_working_alloca_h" >&6; }
4332 if test $ac_cv_working_alloca_h = yes; then
4334 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4339 $as_echo_n "checking for alloca... " >&6; }
4340 if ${ac_cv_func_alloca_works+:} false; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4345 #ifdef __GNUC__
4346 # define alloca __builtin_alloca
4347 #else
4348 # ifdef _MSC_VER
4349 # include <malloc.h>
4350 # define alloca _alloca
4351 # else
4352 # ifdef HAVE_ALLOCA_H
4353 # include <alloca.h>
4354 # else
4355 # ifdef _AIX
4356 #pragma alloca
4357 # else
4358 # ifndef alloca /* predefined by HP cc +Olibcalls */
4359 void *alloca (size_t);
4360 # endif
4361 # endif
4362 # endif
4363 # endif
4364 #endif
4367 main ()
4369 char *p = (char *) alloca (1);
4370 if (p) return 0;
4372 return 0;
4374 _ACEOF
4375 if ac_fn_c_try_link "$LINENO"; then :
4376 ac_cv_func_alloca_works=yes
4377 else
4378 ac_cv_func_alloca_works=no
4380 rm -f core conftest.err conftest.$ac_objext \
4381 conftest$ac_exeext conftest.$ac_ext
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4384 $as_echo "$ac_cv_func_alloca_works" >&6; }
4386 if test $ac_cv_func_alloca_works = yes; then
4388 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4390 else
4391 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4392 # that cause trouble. Some versions do not even contain alloca or
4393 # contain a buggy version. If you still want to use their alloca,
4394 # use ar to extract alloca.o from them instead of compiling alloca.c.
4396 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4398 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4402 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4403 if ${ac_cv_os_cray+:} false; then :
4404 $as_echo_n "(cached) " >&6
4405 else
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408 #if defined CRAY && ! defined CRAY2
4409 webecray
4410 #else
4411 wenotbecray
4412 #endif
4414 _ACEOF
4415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4416 $EGREP "webecray" >/dev/null 2>&1; then :
4417 ac_cv_os_cray=yes
4418 else
4419 ac_cv_os_cray=no
4421 rm -f conftest*
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4425 $as_echo "$ac_cv_os_cray" >&6; }
4426 if test $ac_cv_os_cray = yes; then
4427 for ac_func in _getb67 GETB67 getb67; do
4428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4430 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4432 cat >>confdefs.h <<_ACEOF
4433 #define CRAY_STACKSEG_END $ac_func
4434 _ACEOF
4436 break
4439 done
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4443 $as_echo_n "checking stack direction for C alloca... " >&6; }
4444 if ${ac_cv_c_stack_direction+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 if test "$cross_compiling" = yes; then :
4448 ac_cv_c_stack_direction=0
4449 else
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4452 $ac_includes_default
4454 find_stack_direction (int *addr, int depth)
4456 int dir, dummy = 0;
4457 if (! addr)
4458 addr = &dummy;
4459 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
4460 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
4461 return dir + dummy;
4465 main (int argc, char **argv)
4467 return find_stack_direction (0, argc + !argv + 20) < 0;
4469 _ACEOF
4470 if ac_fn_c_try_run "$LINENO"; then :
4471 ac_cv_c_stack_direction=1
4472 else
4473 ac_cv_c_stack_direction=-1
4475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4476 conftest.$ac_objext conftest.beam conftest.$ac_ext
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4481 $as_echo "$ac_cv_c_stack_direction" >&6; }
4482 cat >>confdefs.h <<_ACEOF
4483 #define STACK_DIRECTION $ac_cv_c_stack_direction
4484 _ACEOF
4492 for ac_header in $ac_header_list
4493 do :
4494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4495 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4497 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4498 cat >>confdefs.h <<_ACEOF
4499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4500 _ACEOF
4504 done
4513 for ac_func in getpagesize
4514 do :
4515 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4516 if test "x$ac_cv_func_getpagesize" = xyes; then :
4517 cat >>confdefs.h <<_ACEOF
4518 #define HAVE_GETPAGESIZE 1
4519 _ACEOF
4522 done
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4525 $as_echo_n "checking for working mmap... " >&6; }
4526 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4529 if test "$cross_compiling" = yes; then :
4530 ac_cv_func_mmap_fixed_mapped=no
4531 else
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4534 $ac_includes_default
4535 /* malloc might have been renamed as rpl_malloc. */
4536 #undef malloc
4538 /* Thanks to Mike Haertel and Jim Avera for this test.
4539 Here is a matrix of mmap possibilities:
4540 mmap private not fixed
4541 mmap private fixed at somewhere currently unmapped
4542 mmap private fixed at somewhere already mapped
4543 mmap shared not fixed
4544 mmap shared fixed at somewhere currently unmapped
4545 mmap shared fixed at somewhere already mapped
4546 For private mappings, we should verify that changes cannot be read()
4547 back from the file, nor mmap's back from the file at a different
4548 address. (There have been systems where private was not correctly
4549 implemented like the infamous i386 svr4.0, and systems where the
4550 VM page cache was not coherent with the file system buffer cache
4551 like early versions of FreeBSD and possibly contemporary NetBSD.)
4552 For shared mappings, we should conversely verify that changes get
4553 propagated back to all the places they're supposed to be.
4555 Grep wants private fixed already mapped.
4556 The main things grep needs to know about mmap are:
4557 * does it exist and is it safe to write into the mmap'd area
4558 * how to use it (BSD variants) */
4560 #include <fcntl.h>
4561 #include <sys/mman.h>
4563 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4564 char *malloc ();
4565 #endif
4567 /* This mess was copied from the GNU getpagesize.h. */
4568 #ifndef HAVE_GETPAGESIZE
4569 # ifdef _SC_PAGESIZE
4570 # define getpagesize() sysconf(_SC_PAGESIZE)
4571 # else /* no _SC_PAGESIZE */
4572 # ifdef HAVE_SYS_PARAM_H
4573 # include <sys/param.h>
4574 # ifdef EXEC_PAGESIZE
4575 # define getpagesize() EXEC_PAGESIZE
4576 # else /* no EXEC_PAGESIZE */
4577 # ifdef NBPG
4578 # define getpagesize() NBPG * CLSIZE
4579 # ifndef CLSIZE
4580 # define CLSIZE 1
4581 # endif /* no CLSIZE */
4582 # else /* no NBPG */
4583 # ifdef NBPC
4584 # define getpagesize() NBPC
4585 # else /* no NBPC */
4586 # ifdef PAGESIZE
4587 # define getpagesize() PAGESIZE
4588 # endif /* PAGESIZE */
4589 # endif /* no NBPC */
4590 # endif /* no NBPG */
4591 # endif /* no EXEC_PAGESIZE */
4592 # else /* no HAVE_SYS_PARAM_H */
4593 # define getpagesize() 8192 /* punt totally */
4594 # endif /* no HAVE_SYS_PARAM_H */
4595 # endif /* no _SC_PAGESIZE */
4597 #endif /* no HAVE_GETPAGESIZE */
4600 main ()
4602 char *data, *data2, *data3;
4603 const char *cdata2;
4604 int i, pagesize;
4605 int fd, fd2;
4607 pagesize = getpagesize ();
4609 /* First, make a file with some known garbage in it. */
4610 data = (char *) malloc (pagesize);
4611 if (!data)
4612 return 1;
4613 for (i = 0; i < pagesize; ++i)
4614 *(data + i) = rand ();
4615 umask (0);
4616 fd = creat ("conftest.mmap", 0600);
4617 if (fd < 0)
4618 return 2;
4619 if (write (fd, data, pagesize) != pagesize)
4620 return 3;
4621 close (fd);
4623 /* Next, check that the tail of a page is zero-filled. File must have
4624 non-zero length, otherwise we risk SIGBUS for entire page. */
4625 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4626 if (fd2 < 0)
4627 return 4;
4628 cdata2 = "";
4629 if (write (fd2, cdata2, 1) != 1)
4630 return 5;
4631 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4632 if (data2 == MAP_FAILED)
4633 return 6;
4634 for (i = 0; i < pagesize; ++i)
4635 if (*(data2 + i))
4636 return 7;
4637 close (fd2);
4638 if (munmap (data2, pagesize))
4639 return 8;
4641 /* Next, try to mmap the file at a fixed address which already has
4642 something else allocated at it. If we can, also make sure that
4643 we see the same garbage. */
4644 fd = open ("conftest.mmap", O_RDWR);
4645 if (fd < 0)
4646 return 9;
4647 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4648 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4649 return 10;
4650 for (i = 0; i < pagesize; ++i)
4651 if (*(data + i) != *(data2 + i))
4652 return 11;
4654 /* Finally, make sure that changes to the mapped area do not
4655 percolate back to the file as seen by read(). (This is a bug on
4656 some variants of i386 svr4.0.) */
4657 for (i = 0; i < pagesize; ++i)
4658 *(data2 + i) = *(data2 + i) + 1;
4659 data3 = (char *) malloc (pagesize);
4660 if (!data3)
4661 return 12;
4662 if (read (fd, data3, pagesize) != pagesize)
4663 return 13;
4664 for (i = 0; i < pagesize; ++i)
4665 if (*(data + i) != *(data3 + i))
4666 return 14;
4667 close (fd);
4668 return 0;
4670 _ACEOF
4671 if ac_fn_c_try_run "$LINENO"; then :
4672 ac_cv_func_mmap_fixed_mapped=yes
4673 else
4674 ac_cv_func_mmap_fixed_mapped=no
4676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4677 conftest.$ac_objext conftest.beam conftest.$ac_ext
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4682 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4683 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4685 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4688 rm -f conftest.mmap conftest.txt
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
4692 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
4693 if ${ac_cv_gnu_library_2_1+:} false; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4699 #include <features.h>
4700 #ifdef __GNU_LIBRARY__
4701 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4702 Lucky GNU user
4703 #endif
4704 #endif
4706 _ACEOF
4707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4708 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
4709 ac_cv_gnu_library_2_1=yes
4710 else
4711 ac_cv_gnu_library_2_1=no
4713 rm -f conftest*
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
4719 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
4721 GLIBC21="$ac_cv_gnu_library_2_1"
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
4727 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
4728 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4732 if test "$cross_compiling" = yes; then :
4734 # Guess based on the CPU.
4735 case "$host_cpu" in
4736 alpha* | i3456786 | m68k | s390*)
4737 gt_cv_int_divbyzero_sigfpe="guessing yes";;
4739 gt_cv_int_divbyzero_sigfpe="guessing no";;
4740 esac
4742 else
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4746 #include <stdlib.h>
4747 #include <signal.h>
4749 static void
4750 #ifdef __cplusplus
4751 sigfpe_handler (int sig)
4752 #else
4753 sigfpe_handler (sig) int sig;
4754 #endif
4756 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
4757 exit (sig != SIGFPE);
4760 int x = 1;
4761 int y = 0;
4762 int z;
4763 int nan;
4765 int main ()
4767 signal (SIGFPE, sigfpe_handler);
4768 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
4769 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
4770 signal (SIGTRAP, sigfpe_handler);
4771 #endif
4772 /* Linux/SPARC yields signal SIGILL. */
4773 #if defined (__sparc__) && defined (__linux__)
4774 signal (SIGILL, sigfpe_handler);
4775 #endif
4777 z = x / y;
4778 nan = y / y;
4779 exit (1);
4782 _ACEOF
4783 if ac_fn_c_try_run "$LINENO"; then :
4784 gt_cv_int_divbyzero_sigfpe=yes
4785 else
4786 gt_cv_int_divbyzero_sigfpe=no
4788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4789 conftest.$ac_objext conftest.beam conftest.$ac_ext
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
4795 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
4796 case "$gt_cv_int_divbyzero_sigfpe" in
4797 *yes) value=1;;
4798 *) value=0;;
4799 esac
4801 cat >>confdefs.h <<_ACEOF
4802 #define INTDIV0_RAISES_SIGFPE $value
4803 _ACEOF
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4808 $as_echo_n "checking for inttypes.h... " >&6; }
4809 if ${jm_ac_cv_header_inttypes_h+:} false; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4814 #include <sys/types.h>
4815 #include <inttypes.h>
4817 main ()
4819 uintmax_t i = (uintmax_t) -1;
4821 return 0;
4823 _ACEOF
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825 jm_ac_cv_header_inttypes_h=yes
4826 else
4827 jm_ac_cv_header_inttypes_h=no
4829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
4832 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
4833 if test $jm_ac_cv_header_inttypes_h = yes; then
4835 cat >>confdefs.h <<_ACEOF
4836 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4837 _ACEOF
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
4843 $as_echo_n "checking for stdint.h... " >&6; }
4844 if ${jm_ac_cv_header_stdint_h+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849 #include <sys/types.h>
4850 #include <stdint.h>
4852 main ()
4854 uintmax_t i = (uintmax_t) -1;
4856 return 0;
4858 _ACEOF
4859 if ac_fn_c_try_compile "$LINENO"; then :
4860 jm_ac_cv_header_stdint_h=yes
4861 else
4862 jm_ac_cv_header_stdint_h=no
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
4867 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
4868 if test $jm_ac_cv_header_stdint_h = yes; then
4870 cat >>confdefs.h <<_ACEOF
4871 #define HAVE_STDINT_H_WITH_UINTMAX 1
4872 _ACEOF
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
4878 $as_echo_n "checking for unsigned long long... " >&6; }
4879 if ${ac_cv_type_unsigned_long_long+:} false; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4884 unsigned long long ull = 1; int i = 63;
4886 main ()
4888 unsigned long long ullmax = (unsigned long long) -1;
4889 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4891 return 0;
4893 _ACEOF
4894 if ac_fn_c_try_link "$LINENO"; then :
4895 ac_cv_type_unsigned_long_long=yes
4896 else
4897 ac_cv_type_unsigned_long_long=no
4899 rm -f core conftest.err conftest.$ac_objext \
4900 conftest$ac_exeext conftest.$ac_ext
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
4903 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
4904 if test $ac_cv_type_unsigned_long_long = yes; then
4906 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
4913 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
4915 test $ac_cv_type_unsigned_long_long = yes \
4916 && ac_type='unsigned long long' \
4917 || ac_type='unsigned long'
4919 cat >>confdefs.h <<_ACEOF
4920 #define uintmax_t $ac_type
4921 _ACEOF
4923 else
4925 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4931 $as_echo_n "checking for inttypes.h... " >&6; }
4932 if ${gt_cv_header_inttypes_h+:} false; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4938 #include <sys/types.h>
4939 #include <inttypes.h>
4941 main ()
4945 return 0;
4947 _ACEOF
4948 if ac_fn_c_try_compile "$LINENO"; then :
4949 gt_cv_header_inttypes_h=yes
4950 else
4951 gt_cv_header_inttypes_h=no
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
4957 $as_echo "$gt_cv_header_inttypes_h" >&6; }
4958 if test $gt_cv_header_inttypes_h = yes; then
4960 cat >>confdefs.h <<_ACEOF
4961 #define HAVE_INTTYPES_H 1
4962 _ACEOF
4968 if test $gt_cv_header_inttypes_h = yes; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
4970 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
4971 if ${gt_cv_inttypes_pri_broken+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977 #include <inttypes.h>
4978 #ifdef PRId32
4979 char *p = PRId32;
4980 #endif
4983 main ()
4987 return 0;
4989 _ACEOF
4990 if ac_fn_c_try_compile "$LINENO"; then :
4991 gt_cv_inttypes_pri_broken=no
4992 else
4993 gt_cv_inttypes_pri_broken=yes
4995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
4999 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
5001 if test "$gt_cv_inttypes_pri_broken" = yes; then
5003 cat >>confdefs.h <<_ACEOF
5004 #define PRI_MACROS_BROKEN 1
5005 _ACEOF
5010 if test "X$prefix" = "XNONE"; then
5011 acl_final_prefix="$ac_default_prefix"
5012 else
5013 acl_final_prefix="$prefix"
5015 if test "X$exec_prefix" = "XNONE"; then
5016 acl_final_exec_prefix='${prefix}'
5017 else
5018 acl_final_exec_prefix="$exec_prefix"
5020 acl_save_prefix="$prefix"
5021 prefix="$acl_final_prefix"
5022 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5023 prefix="$acl_save_prefix"
5026 # Check whether --with-gnu-ld was given.
5027 if test "${with_gnu_ld+set}" = set; then :
5028 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5029 else
5030 with_gnu_ld=no
5033 # Prepare PATH_SEPARATOR.
5034 # The user is always right.
5035 if test "${PATH_SEPARATOR+set}" != set; then
5036 echo "#! /bin/sh" >conf$$.sh
5037 echo "exit 0" >>conf$$.sh
5038 chmod +x conf$$.sh
5039 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5040 PATH_SEPARATOR=';'
5041 else
5042 PATH_SEPARATOR=:
5044 rm -f conf$$.sh
5046 ac_prog=ld
5047 if test "$GCC" = yes; then
5048 # Check if gcc -print-prog-name=ld gives a path.
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5050 $as_echo_n "checking for ld used by GCC... " >&6; }
5051 case $host in
5052 *-*-mingw*)
5053 # gcc leaves a trailing carriage return which upsets mingw
5054 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5056 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5057 esac
5058 case $ac_prog in
5059 # Accept absolute paths.
5060 [\\/]* | [A-Za-z]:[\\/]*)
5061 re_direlt='/[^/][^/]*/\.\./'
5062 # Canonicalize the path of ld
5063 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5064 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5065 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5066 done
5067 test -z "$LD" && LD="$ac_prog"
5070 # If it fails, then pretend we aren't using GCC.
5071 ac_prog=ld
5074 # If it is relative, then search for the first ld in PATH.
5075 with_gnu_ld=unknown
5077 esac
5078 elif test "$with_gnu_ld" = yes; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5080 $as_echo_n "checking for GNU ld... " >&6; }
5081 else
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5083 $as_echo_n "checking for non-GNU ld... " >&6; }
5085 if ${acl_cv_path_LD+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 if test -z "$LD"; then
5089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5090 for ac_dir in $PATH; do
5091 test -z "$ac_dir" && ac_dir=.
5092 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5093 acl_cv_path_LD="$ac_dir/$ac_prog"
5094 # Check to see if the program is GNU ld. I'd rather use --version,
5095 # but apparently some GNU ld's only accept -v.
5096 # Break only if it was the GNU/non-GNU ld that we prefer.
5097 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
5098 test "$with_gnu_ld" != no && break
5099 else
5100 test "$with_gnu_ld" != yes && break
5103 done
5104 IFS="$ac_save_ifs"
5105 else
5106 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5110 LD="$acl_cv_path_LD"
5111 if test -n "$LD"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5113 $as_echo "$LD" >&6; }
5114 else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5118 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5120 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5121 if ${acl_cv_prog_gnu_ld+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5125 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
5126 acl_cv_prog_gnu_ld=yes
5127 else
5128 acl_cv_prog_gnu_ld=no
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5132 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5133 with_gnu_ld=$acl_cv_prog_gnu_ld
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5138 $as_echo_n "checking for shared library run path origin... " >&6; }
5139 if ${acl_cv_rpath+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5143 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5144 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5145 . ./conftest.sh
5146 rm -f ./conftest.sh
5147 acl_cv_rpath=done
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5151 $as_echo "$acl_cv_rpath" >&6; }
5152 wl="$acl_cv_wl"
5153 libext="$acl_cv_libext"
5154 shlibext="$acl_cv_shlibext"
5155 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5156 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5157 hardcode_direct="$acl_cv_hardcode_direct"
5158 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5159 # Check whether --enable-rpath was given.
5160 if test "${enable_rpath+set}" = set; then :
5161 enableval=$enable_rpath; :
5162 else
5163 enable_rpath=yes
5173 use_additional=yes
5175 acl_save_prefix="$prefix"
5176 prefix="$acl_final_prefix"
5177 acl_save_exec_prefix="$exec_prefix"
5178 exec_prefix="$acl_final_exec_prefix"
5180 eval additional_includedir=\"$includedir\"
5181 eval additional_libdir=\"$libdir\"
5183 exec_prefix="$acl_save_exec_prefix"
5184 prefix="$acl_save_prefix"
5187 # Check whether --with-libiconv-prefix was given.
5188 if test "${with_libiconv_prefix+set}" = set; then :
5189 withval=$with_libiconv_prefix;
5190 if test "X$withval" = "Xno"; then
5191 use_additional=no
5192 else
5193 if test "X$withval" = "X"; then
5195 acl_save_prefix="$prefix"
5196 prefix="$acl_final_prefix"
5197 acl_save_exec_prefix="$exec_prefix"
5198 exec_prefix="$acl_final_exec_prefix"
5200 eval additional_includedir=\"$includedir\"
5201 eval additional_libdir=\"$libdir\"
5203 exec_prefix="$acl_save_exec_prefix"
5204 prefix="$acl_save_prefix"
5206 else
5207 additional_includedir="$withval/include"
5208 additional_libdir="$withval/lib"
5215 # Check whether --with-libiconv-type was given.
5216 if test "${with_libiconv_type+set}" = set; then :
5217 withval=$with_libiconv_type; with_libiconv_type=$withval
5218 else
5219 with_libiconv_type=auto
5222 lib_type=`eval echo \$with_libiconv_type`
5224 LIBICONV=
5225 LTLIBICONV=
5226 INCICONV=
5227 rpathdirs=
5228 ltrpathdirs=
5229 names_already_handled=
5230 names_next_round='iconv '
5231 while test -n "$names_next_round"; do
5232 names_this_round="$names_next_round"
5233 names_next_round=
5234 for name in $names_this_round; do
5235 already_handled=
5236 for n in $names_already_handled; do
5237 if test "$n" = "$name"; then
5238 already_handled=yes
5239 break
5241 done
5242 if test -z "$already_handled"; then
5243 names_already_handled="$names_already_handled $name"
5244 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5245 eval value=\"\$HAVE_LIB$uppername\"
5246 if test -n "$value"; then
5247 if test "$value" = yes; then
5248 eval value=\"\$LIB$uppername\"
5249 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5250 eval value=\"\$LTLIB$uppername\"
5251 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5252 else
5255 else
5256 found_dir=
5257 found_la=
5258 found_so=
5259 found_a=
5260 if test $use_additional = yes; then
5261 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
5262 found_dir="$additional_libdir"
5263 found_so="$additional_libdir/lib$name.$shlibext"
5264 if test -f "$additional_libdir/lib$name.la"; then
5265 found_la="$additional_libdir/lib$name.la"
5267 elif test x$lib_type != xshared; then
5268 if test -f "$additional_libdir/lib$name.$libext"; then
5269 found_dir="$additional_libdir"
5270 found_a="$additional_libdir/lib$name.$libext"
5271 if test -f "$additional_libdir/lib$name.la"; then
5272 found_la="$additional_libdir/lib$name.la"
5277 if test "X$found_dir" = "X"; then
5278 for x in $LDFLAGS $LTLIBICONV; do
5280 acl_save_prefix="$prefix"
5281 prefix="$acl_final_prefix"
5282 acl_save_exec_prefix="$exec_prefix"
5283 exec_prefix="$acl_final_exec_prefix"
5284 eval x=\"$x\"
5285 exec_prefix="$acl_save_exec_prefix"
5286 prefix="$acl_save_prefix"
5288 case "$x" in
5289 -L*)
5290 dir=`echo "X$x" | sed -e 's/^X-L//'`
5291 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
5292 found_dir="$dir"
5293 found_so="$dir/lib$name.$shlibext"
5294 if test -f "$dir/lib$name.la"; then
5295 found_la="$dir/lib$name.la"
5297 elif test x$lib_type != xshared; then
5298 if test -f "$dir/lib$name.$libext"; then
5299 found_dir="$dir"
5300 found_a="$dir/lib$name.$libext"
5301 if test -f "$dir/lib$name.la"; then
5302 found_la="$dir/lib$name.la"
5307 esac
5308 if test "X$found_dir" != "X"; then
5309 break
5311 done
5313 if test "X$found_dir" != "X"; then
5314 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5315 if test "X$found_so" != "X"; then
5316 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5317 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5318 else
5319 haveit=
5320 for x in $ltrpathdirs; do
5321 if test "X$x" = "X$found_dir"; then
5322 haveit=yes
5323 break
5325 done
5326 if test -z "$haveit"; then
5327 ltrpathdirs="$ltrpathdirs $found_dir"
5329 if test "$hardcode_direct" = yes; then
5330 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5331 else
5332 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5333 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5334 haveit=
5335 for x in $rpathdirs; do
5336 if test "X$x" = "X$found_dir"; then
5337 haveit=yes
5338 break
5340 done
5341 if test -z "$haveit"; then
5342 rpathdirs="$rpathdirs $found_dir"
5344 else
5345 haveit=
5346 for x in $LDFLAGS $LIBICONV; do
5348 acl_save_prefix="$prefix"
5349 prefix="$acl_final_prefix"
5350 acl_save_exec_prefix="$exec_prefix"
5351 exec_prefix="$acl_final_exec_prefix"
5352 eval x=\"$x\"
5353 exec_prefix="$acl_save_exec_prefix"
5354 prefix="$acl_save_prefix"
5356 if test "X$x" = "X-L$found_dir"; then
5357 haveit=yes
5358 break
5360 done
5361 if test -z "$haveit"; then
5362 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5364 if test "$hardcode_minus_L" != no; then
5365 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5366 else
5367 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5372 else
5373 if test "X$found_a" != "X"; then
5374 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5375 else
5376 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5379 additional_includedir=
5380 case "$found_dir" in
5381 */lib | */lib/)
5382 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5383 additional_includedir="$basedir/include"
5385 esac
5386 if test "X$additional_includedir" != "X"; then
5387 if test "X$additional_includedir" != "X/usr/include"; then
5388 haveit=
5389 if test "X$additional_includedir" = "X/usr/local/include"; then
5390 if test -n "$GCC"; then
5391 case $host_os in
5392 linux*) haveit=yes;;
5393 esac
5396 if test -z "$haveit"; then
5397 for x in $CPPFLAGS $INCICONV; do
5399 acl_save_prefix="$prefix"
5400 prefix="$acl_final_prefix"
5401 acl_save_exec_prefix="$exec_prefix"
5402 exec_prefix="$acl_final_exec_prefix"
5403 eval x=\"$x\"
5404 exec_prefix="$acl_save_exec_prefix"
5405 prefix="$acl_save_prefix"
5407 if test "X$x" = "X-I$additional_includedir"; then
5408 haveit=yes
5409 break
5411 done
5412 if test -z "$haveit"; then
5413 if test -d "$additional_includedir"; then
5414 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5420 if test -n "$found_la"; then
5421 save_libdir="$libdir"
5422 case "$found_la" in
5423 */* | *\\*) . "$found_la" ;;
5424 *) . "./$found_la" ;;
5425 esac
5426 libdir="$save_libdir"
5427 for dep in $dependency_libs; do
5428 case "$dep" in
5429 -L*)
5430 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5431 if test "X$additional_libdir" != "X/usr/lib"; then
5432 haveit=
5433 if test "X$additional_libdir" = "X/usr/local/lib"; then
5434 if test -n "$GCC"; then
5435 case $host_os in
5436 linux*) haveit=yes;;
5437 esac
5440 if test -z "$haveit"; then
5441 haveit=
5442 for x in $LDFLAGS $LIBICONV; do
5444 acl_save_prefix="$prefix"
5445 prefix="$acl_final_prefix"
5446 acl_save_exec_prefix="$exec_prefix"
5447 exec_prefix="$acl_final_exec_prefix"
5448 eval x=\"$x\"
5449 exec_prefix="$acl_save_exec_prefix"
5450 prefix="$acl_save_prefix"
5452 if test "X$x" = "X-L$additional_libdir"; then
5453 haveit=yes
5454 break
5456 done
5457 if test -z "$haveit"; then
5458 if test -d "$additional_libdir"; then
5459 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5462 haveit=
5463 for x in $LDFLAGS $LTLIBICONV; do
5465 acl_save_prefix="$prefix"
5466 prefix="$acl_final_prefix"
5467 acl_save_exec_prefix="$exec_prefix"
5468 exec_prefix="$acl_final_exec_prefix"
5469 eval x=\"$x\"
5470 exec_prefix="$acl_save_exec_prefix"
5471 prefix="$acl_save_prefix"
5473 if test "X$x" = "X-L$additional_libdir"; then
5474 haveit=yes
5475 break
5477 done
5478 if test -z "$haveit"; then
5479 if test -d "$additional_libdir"; then
5480 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5486 -R*)
5487 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5488 if test "$enable_rpath" != no; then
5489 haveit=
5490 for x in $rpathdirs; do
5491 if test "X$x" = "X$dir"; then
5492 haveit=yes
5493 break
5495 done
5496 if test -z "$haveit"; then
5497 rpathdirs="$rpathdirs $dir"
5499 haveit=
5500 for x in $ltrpathdirs; do
5501 if test "X$x" = "X$dir"; then
5502 haveit=yes
5503 break
5505 done
5506 if test -z "$haveit"; then
5507 ltrpathdirs="$ltrpathdirs $dir"
5511 -l*)
5512 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5514 *.la)
5515 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5518 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5519 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5521 esac
5522 done
5524 else
5525 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
5526 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5527 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5528 else
5529 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
5530 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
5535 done
5536 done
5537 if test "X$rpathdirs" != "X"; then
5538 if test -n "$hardcode_libdir_separator"; then
5539 alldirs=
5540 for found_dir in $rpathdirs; do
5541 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5542 done
5543 acl_save_libdir="$libdir"
5544 libdir="$alldirs"
5545 eval flag=\"$hardcode_libdir_flag_spec\"
5546 libdir="$acl_save_libdir"
5547 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5548 else
5549 for found_dir in $rpathdirs; do
5550 acl_save_libdir="$libdir"
5551 libdir="$found_dir"
5552 eval flag=\"$hardcode_libdir_flag_spec\"
5553 libdir="$acl_save_libdir"
5554 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5555 done
5558 if test "X$ltrpathdirs" != "X"; then
5559 for found_dir in $ltrpathdirs; do
5560 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5561 done
5567 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5568 stdlib.h string.h unistd.h sys/param.h
5569 do :
5570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5571 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5572 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5573 cat >>confdefs.h <<_ACEOF
5574 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5575 _ACEOF
5579 done
5581 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
5582 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
5583 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
5584 __fsetlocking
5585 do :
5586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5587 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5588 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5589 cat >>confdefs.h <<_ACEOF
5590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5591 _ACEOF
5594 done
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5603 $as_echo_n "checking for iconv... " >&6; }
5604 if ${am_cv_func_iconv+:} false; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5608 am_cv_func_iconv="no, consider installing GNU libiconv"
5609 am_cv_lib_iconv=no
5610 am_save_CPPFLAGS="$CPPFLAGS"
5611 CPPFLAGS="$CPPFLAGS $INCICONV"
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5614 #include <stdlib.h>
5615 #include <iconv.h>
5617 main ()
5619 iconv_t cd = iconv_open("","");
5620 iconv(cd,NULL,NULL,NULL,NULL);
5621 iconv_close(cd);
5623 return 0;
5625 _ACEOF
5626 if ac_fn_c_try_link "$LINENO"; then :
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"
5633 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
5634 for _libs in .libs _libs; do
5635 am_save_CPPFLAGS="$CPPFLAGS"
5636 am_save_LIBS="$LIBS"
5637 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
5638 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641 #include <stdlib.h>
5642 #include <iconv.h>
5644 main ()
5646 iconv_t cd = iconv_open("","");
5647 iconv(cd,NULL,NULL,NULL,NULL);
5648 iconv_close(cd);
5650 return 0;
5652 _ACEOF
5653 if ac_fn_c_try_link "$LINENO"; then :
5654 INCICONV="-I../libiconv/include"
5655 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
5656 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
5657 am_cv_lib_iconv=yes
5658 am_cv_func_iconv=yes
5660 rm -f core conftest.err conftest.$ac_objext \
5661 conftest$ac_exeext conftest.$ac_ext
5662 CPPFLAGS="$am_save_CPPFLAGS"
5663 LIBS="$am_save_LIBS"
5664 if test "$am_cv_func_iconv" = "yes"; then
5665 break
5667 done
5670 if test "$am_cv_func_iconv" != yes; then
5671 am_save_CPPFLAGS="$CPPFLAGS"
5672 am_save_LIBS="$LIBS"
5673 CPPFLAGS="$CPPFLAGS $INCICONV"
5674 LIBS="$LIBS $LIBICONV"
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677 #include <stdlib.h>
5678 #include <iconv.h>
5680 main ()
5682 iconv_t cd = iconv_open("","");
5683 iconv(cd,NULL,NULL,NULL,NULL);
5684 iconv_close(cd);
5686 return 0;
5688 _ACEOF
5689 if ac_fn_c_try_link "$LINENO"; then :
5690 am_cv_lib_iconv=yes
5691 am_cv_func_iconv=yes
5693 rm -f core conftest.err conftest.$ac_objext \
5694 conftest$ac_exeext conftest.$ac_ext
5695 CPPFLAGS="$am_save_CPPFLAGS"
5696 LIBS="$am_save_LIBS"
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5701 $as_echo "$am_cv_func_iconv" >&6; }
5702 if test "$am_cv_func_iconv" = yes; then
5704 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5707 if test "$am_cv_lib_iconv" = yes; then
5709 for element in $INCICONV; do
5710 haveit=
5711 for x in $CPPFLAGS; do
5713 acl_save_prefix="$prefix"
5714 prefix="$acl_final_prefix"
5715 acl_save_exec_prefix="$exec_prefix"
5716 exec_prefix="$acl_final_exec_prefix"
5717 eval x=\"$x\"
5718 exec_prefix="$acl_save_exec_prefix"
5719 prefix="$acl_save_prefix"
5721 if test "X$x" = "X$element"; then
5722 haveit=yes
5723 break
5725 done
5726 if test -z "$haveit"; then
5727 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5729 done
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5732 $as_echo_n "checking how to link with libiconv... " >&6; }
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5734 $as_echo "$LIBICONV" >&6; }
5735 else
5736 LIBICONV=
5737 LTLIBICONV=
5742 if test "$am_cv_func_iconv" = yes; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
5744 $as_echo_n "checking for iconv declaration... " >&6; }
5745 if ${am_cv_proto_iconv+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5752 #include <stdlib.h>
5753 #include <iconv.h>
5754 extern
5755 #ifdef __cplusplus
5757 #endif
5758 #if defined(__STDC__) || defined(__cplusplus)
5759 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5760 #else
5761 size_t iconv();
5762 #endif
5765 main ()
5769 return 0;
5771 _ACEOF
5772 if ac_fn_c_try_compile "$LINENO"; then :
5773 am_cv_proto_iconv_arg1=""
5774 else
5775 am_cv_proto_iconv_arg1="const"
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778 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);"
5781 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
5783 }$am_cv_proto_iconv" >&5
5784 $as_echo "${ac_t:-
5785 }$am_cv_proto_iconv" >&6; }
5787 cat >>confdefs.h <<_ACEOF
5788 #define ICONV_CONST $am_cv_proto_iconv_arg1
5789 _ACEOF
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5795 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5796 if ${am_cv_langinfo_codeset+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 #include <langinfo.h>
5803 main ()
5805 char* cs = nl_langinfo(CODESET);
5807 return 0;
5809 _ACEOF
5810 if ac_fn_c_try_link "$LINENO"; then :
5811 am_cv_langinfo_codeset=yes
5812 else
5813 am_cv_langinfo_codeset=no
5815 rm -f core conftest.err conftest.$ac_objext \
5816 conftest$ac_exeext conftest.$ac_ext
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5820 $as_echo "$am_cv_langinfo_codeset" >&6; }
5821 if test $am_cv_langinfo_codeset = yes; then
5823 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5827 if test $ac_cv_header_locale_h = yes; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
5830 $as_echo_n "checking for LC_MESSAGES... " >&6; }
5831 if ${am_cv_val_LC_MESSAGES+:} false; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 #include <locale.h>
5838 main ()
5840 return LC_MESSAGES
5842 return 0;
5844 _ACEOF
5845 if ac_fn_c_try_link "$LINENO"; then :
5846 am_cv_val_LC_MESSAGES=yes
5847 else
5848 am_cv_val_LC_MESSAGES=no
5850 rm -f core conftest.err conftest.$ac_objext \
5851 conftest$ac_exeext conftest.$ac_ext
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
5854 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
5855 if test $am_cv_val_LC_MESSAGES = yes; then
5857 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
5863 for ac_prog in bison
5865 # Extract the first word of "$ac_prog", so it can be a program name with args.
5866 set dummy $ac_prog; ac_word=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if ${ac_cv_prog_INTLBISON+:} false; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 if test -n "$INTLBISON"; then
5873 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
5874 else
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH
5878 IFS=$as_save_IFS
5879 test -z "$as_dir" && as_dir=.
5880 for ac_exec_ext in '' $ac_executable_extensions; do
5881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5882 ac_cv_prog_INTLBISON="$ac_prog"
5883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 break 2
5886 done
5887 done
5888 IFS=$as_save_IFS
5892 INTLBISON=$ac_cv_prog_INTLBISON
5893 if test -n "$INTLBISON"; then
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
5895 $as_echo "$INTLBISON" >&6; }
5896 else
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898 $as_echo "no" >&6; }
5902 test -n "$INTLBISON" && break
5903 done
5905 if test -z "$INTLBISON"; then
5906 ac_verc_fail=yes
5907 else
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
5909 $as_echo_n "checking version of bison... " >&6; }
5910 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5911 case $ac_prog_version in
5912 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5913 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5914 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5915 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5916 esac
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5918 $as_echo "$ac_prog_version" >&6; }
5920 if test $ac_verc_fail = yes; then
5921 INTLBISON=:
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5940 $as_echo_n "checking whether NLS is requested... " >&6; }
5941 # Check whether --enable-nls was given.
5942 if test "${enable_nls+set}" = set; then :
5943 enableval=$enable_nls; USE_NLS=$enableval
5944 else
5945 USE_NLS=yes
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5949 $as_echo "$USE_NLS" >&6; }
5954 BUILD_INCLUDED_LIBINTL=no
5955 USE_INCLUDED_LIBINTL=no
5957 LIBINTL=
5958 LTLIBINTL=
5959 POSUB=
5961 if test "$USE_NLS" = "yes"; then
5962 gt_use_preinstalled_gnugettext=no
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
5965 $as_echo_n "checking whether included gettext is requested... " >&6; }
5967 # Check whether --with-included-gettext was given.
5968 if test "${with_included_gettext+set}" = set; then :
5969 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
5970 else
5971 nls_cv_force_use_gnu_gettext=no
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
5975 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
5977 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5978 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5986 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5987 if ${gt_cv_func_gnugettext2_libc+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 #include <libintl.h>
5993 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5994 extern int _nl_msg_cat_cntr;
5995 extern int *_nl_domain_bindings;
5996 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
5997 #else
5998 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
5999 #endif
6002 main ()
6004 bindtextdomain ("", "");
6005 return (int) gettext ("") + (int) ngettext ("", "", 0) + __GNU_GETTEXT_SYMBOL_EXPRESSION
6007 return 0;
6009 _ACEOF
6010 if ac_fn_c_try_link "$LINENO"; then :
6011 gt_cv_func_gnugettext2_libc=yes
6012 else
6013 gt_cv_func_gnugettext2_libc=no
6015 rm -f core conftest.err conftest.$ac_objext \
6016 conftest$ac_exeext conftest.$ac_ext
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
6019 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
6021 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
6025 use_additional=yes
6027 acl_save_prefix="$prefix"
6028 prefix="$acl_final_prefix"
6029 acl_save_exec_prefix="$exec_prefix"
6030 exec_prefix="$acl_final_exec_prefix"
6032 eval additional_includedir=\"$includedir\"
6033 eval additional_libdir=\"$libdir\"
6035 exec_prefix="$acl_save_exec_prefix"
6036 prefix="$acl_save_prefix"
6039 # Check whether --with-libintl-prefix was given.
6040 if test "${with_libintl_prefix+set}" = set; then :
6041 withval=$with_libintl_prefix;
6042 if test "X$withval" = "Xno"; then
6043 use_additional=no
6044 else
6045 if test "X$withval" = "X"; then
6047 acl_save_prefix="$prefix"
6048 prefix="$acl_final_prefix"
6049 acl_save_exec_prefix="$exec_prefix"
6050 exec_prefix="$acl_final_exec_prefix"
6052 eval additional_includedir=\"$includedir\"
6053 eval additional_libdir=\"$libdir\"
6055 exec_prefix="$acl_save_exec_prefix"
6056 prefix="$acl_save_prefix"
6058 else
6059 additional_includedir="$withval/include"
6060 additional_libdir="$withval/lib"
6067 # Check whether --with-libintl-type was given.
6068 if test "${with_libintl_type+set}" = set; then :
6069 withval=$with_libintl_type; with_libintl_type=$withval
6070 else
6071 with_libintl_type=auto
6074 lib_type=`eval echo \$with_libintl_type`
6076 LIBINTL=
6077 LTLIBINTL=
6078 INCINTL=
6079 rpathdirs=
6080 ltrpathdirs=
6081 names_already_handled=
6082 names_next_round='intl '
6083 while test -n "$names_next_round"; do
6084 names_this_round="$names_next_round"
6085 names_next_round=
6086 for name in $names_this_round; do
6087 already_handled=
6088 for n in $names_already_handled; do
6089 if test "$n" = "$name"; then
6090 already_handled=yes
6091 break
6093 done
6094 if test -z "$already_handled"; then
6095 names_already_handled="$names_already_handled $name"
6096 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6097 eval value=\"\$HAVE_LIB$uppername\"
6098 if test -n "$value"; then
6099 if test "$value" = yes; then
6100 eval value=\"\$LIB$uppername\"
6101 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6102 eval value=\"\$LTLIB$uppername\"
6103 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6104 else
6107 else
6108 found_dir=
6109 found_la=
6110 found_so=
6111 found_a=
6112 if test $use_additional = yes; then
6113 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6114 found_dir="$additional_libdir"
6115 found_so="$additional_libdir/lib$name.$shlibext"
6116 if test -f "$additional_libdir/lib$name.la"; then
6117 found_la="$additional_libdir/lib$name.la"
6119 elif test x$lib_type != xshared; then
6120 if test -f "$additional_libdir/lib$name.$libext"; then
6121 found_dir="$additional_libdir"
6122 found_a="$additional_libdir/lib$name.$libext"
6123 if test -f "$additional_libdir/lib$name.la"; then
6124 found_la="$additional_libdir/lib$name.la"
6129 if test "X$found_dir" = "X"; then
6130 for x in $LDFLAGS $LTLIBINTL; do
6132 acl_save_prefix="$prefix"
6133 prefix="$acl_final_prefix"
6134 acl_save_exec_prefix="$exec_prefix"
6135 exec_prefix="$acl_final_exec_prefix"
6136 eval x=\"$x\"
6137 exec_prefix="$acl_save_exec_prefix"
6138 prefix="$acl_save_prefix"
6140 case "$x" in
6141 -L*)
6142 dir=`echo "X$x" | sed -e 's/^X-L//'`
6143 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6144 found_dir="$dir"
6145 found_so="$dir/lib$name.$shlibext"
6146 if test -f "$dir/lib$name.la"; then
6147 found_la="$dir/lib$name.la"
6149 elif test x$lib_type != xshared; then
6150 if test -f "$dir/lib$name.$libext"; then
6151 found_dir="$dir"
6152 found_a="$dir/lib$name.$libext"
6153 if test -f "$dir/lib$name.la"; then
6154 found_la="$dir/lib$name.la"
6159 esac
6160 if test "X$found_dir" != "X"; then
6161 break
6163 done
6165 if test "X$found_dir" != "X"; then
6166 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6167 if test "X$found_so" != "X"; then
6168 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6169 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6170 else
6171 haveit=
6172 for x in $ltrpathdirs; do
6173 if test "X$x" = "X$found_dir"; then
6174 haveit=yes
6175 break
6177 done
6178 if test -z "$haveit"; then
6179 ltrpathdirs="$ltrpathdirs $found_dir"
6181 if test "$hardcode_direct" = yes; then
6182 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6183 else
6184 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6185 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6186 haveit=
6187 for x in $rpathdirs; do
6188 if test "X$x" = "X$found_dir"; then
6189 haveit=yes
6190 break
6192 done
6193 if test -z "$haveit"; then
6194 rpathdirs="$rpathdirs $found_dir"
6196 else
6197 haveit=
6198 for x in $LDFLAGS $LIBINTL; do
6200 acl_save_prefix="$prefix"
6201 prefix="$acl_final_prefix"
6202 acl_save_exec_prefix="$exec_prefix"
6203 exec_prefix="$acl_final_exec_prefix"
6204 eval x=\"$x\"
6205 exec_prefix="$acl_save_exec_prefix"
6206 prefix="$acl_save_prefix"
6208 if test "X$x" = "X-L$found_dir"; then
6209 haveit=yes
6210 break
6212 done
6213 if test -z "$haveit"; then
6214 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6216 if test "$hardcode_minus_L" != no; then
6217 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6218 else
6219 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6224 else
6225 if test "X$found_a" != "X"; then
6226 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6227 else
6228 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6231 additional_includedir=
6232 case "$found_dir" in
6233 */lib | */lib/)
6234 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6235 additional_includedir="$basedir/include"
6237 esac
6238 if test "X$additional_includedir" != "X"; then
6239 if test "X$additional_includedir" != "X/usr/include"; then
6240 haveit=
6241 if test "X$additional_includedir" = "X/usr/local/include"; then
6242 if test -n "$GCC"; then
6243 case $host_os in
6244 linux*) haveit=yes;;
6245 esac
6248 if test -z "$haveit"; then
6249 for x in $CPPFLAGS $INCINTL; do
6251 acl_save_prefix="$prefix"
6252 prefix="$acl_final_prefix"
6253 acl_save_exec_prefix="$exec_prefix"
6254 exec_prefix="$acl_final_exec_prefix"
6255 eval x=\"$x\"
6256 exec_prefix="$acl_save_exec_prefix"
6257 prefix="$acl_save_prefix"
6259 if test "X$x" = "X-I$additional_includedir"; then
6260 haveit=yes
6261 break
6263 done
6264 if test -z "$haveit"; then
6265 if test -d "$additional_includedir"; then
6266 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6272 if test -n "$found_la"; then
6273 save_libdir="$libdir"
6274 case "$found_la" in
6275 */* | *\\*) . "$found_la" ;;
6276 *) . "./$found_la" ;;
6277 esac
6278 libdir="$save_libdir"
6279 for dep in $dependency_libs; do
6280 case "$dep" in
6281 -L*)
6282 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6283 if test "X$additional_libdir" != "X/usr/lib"; then
6284 haveit=
6285 if test "X$additional_libdir" = "X/usr/local/lib"; then
6286 if test -n "$GCC"; then
6287 case $host_os in
6288 linux*) haveit=yes;;
6289 esac
6292 if test -z "$haveit"; then
6293 haveit=
6294 for x in $LDFLAGS $LIBINTL; do
6296 acl_save_prefix="$prefix"
6297 prefix="$acl_final_prefix"
6298 acl_save_exec_prefix="$exec_prefix"
6299 exec_prefix="$acl_final_exec_prefix"
6300 eval x=\"$x\"
6301 exec_prefix="$acl_save_exec_prefix"
6302 prefix="$acl_save_prefix"
6304 if test "X$x" = "X-L$additional_libdir"; then
6305 haveit=yes
6306 break
6308 done
6309 if test -z "$haveit"; then
6310 if test -d "$additional_libdir"; then
6311 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6314 haveit=
6315 for x in $LDFLAGS $LTLIBINTL; do
6317 acl_save_prefix="$prefix"
6318 prefix="$acl_final_prefix"
6319 acl_save_exec_prefix="$exec_prefix"
6320 exec_prefix="$acl_final_exec_prefix"
6321 eval x=\"$x\"
6322 exec_prefix="$acl_save_exec_prefix"
6323 prefix="$acl_save_prefix"
6325 if test "X$x" = "X-L$additional_libdir"; then
6326 haveit=yes
6327 break
6329 done
6330 if test -z "$haveit"; then
6331 if test -d "$additional_libdir"; then
6332 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6338 -R*)
6339 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6340 if test "$enable_rpath" != no; then
6341 haveit=
6342 for x in $rpathdirs; do
6343 if test "X$x" = "X$dir"; then
6344 haveit=yes
6345 break
6347 done
6348 if test -z "$haveit"; then
6349 rpathdirs="$rpathdirs $dir"
6351 haveit=
6352 for x in $ltrpathdirs; do
6353 if test "X$x" = "X$dir"; then
6354 haveit=yes
6355 break
6357 done
6358 if test -z "$haveit"; then
6359 ltrpathdirs="$ltrpathdirs $dir"
6363 -l*)
6364 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6366 *.la)
6367 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6370 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6371 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6373 esac
6374 done
6376 else
6377 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
6378 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6379 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6380 else
6381 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
6382 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
6387 done
6388 done
6389 if test "X$rpathdirs" != "X"; then
6390 if test -n "$hardcode_libdir_separator"; then
6391 alldirs=
6392 for found_dir in $rpathdirs; do
6393 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6394 done
6395 acl_save_libdir="$libdir"
6396 libdir="$alldirs"
6397 eval flag=\"$hardcode_libdir_flag_spec\"
6398 libdir="$acl_save_libdir"
6399 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6400 else
6401 for found_dir in $rpathdirs; do
6402 acl_save_libdir="$libdir"
6403 libdir="$found_dir"
6404 eval flag=\"$hardcode_libdir_flag_spec\"
6405 libdir="$acl_save_libdir"
6406 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6407 done
6410 if test "X$ltrpathdirs" != "X"; then
6411 for found_dir in $ltrpathdirs; do
6412 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6413 done
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6417 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6418 if ${gt_cv_func_gnugettext2_libintl+:} false; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 gt_save_CPPFLAGS="$CPPFLAGS"
6422 CPPFLAGS="$CPPFLAGS $INCINTL"
6423 gt_save_LIBS="$LIBS"
6424 LIBS="$LIBS $LIBINTL"
6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6427 #include <libintl.h>
6428 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6429 extern int _nl_msg_cat_cntr;
6430 extern
6431 #ifdef __cplusplus
6433 #endif
6434 const char *_nl_expand_alias ();
6435 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (0))
6436 #else
6437 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6438 #endif
6441 main ()
6443 bindtextdomain ("", "");
6444 return (int) gettext ("") + (int) ngettext ("", "", 0) + __GNU_GETTEXT_SYMBOL_EXPRESSION
6446 return 0;
6448 _ACEOF
6449 if ac_fn_c_try_link "$LINENO"; then :
6450 gt_cv_func_gnugettext2_libintl=yes
6451 else
6452 gt_cv_func_gnugettext2_libintl=no
6454 rm -f core conftest.err conftest.$ac_objext \
6455 conftest$ac_exeext conftest.$ac_ext
6456 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
6457 LIBS="$LIBS $LIBICONV"
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 #include <libintl.h>
6461 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6462 extern int _nl_msg_cat_cntr;
6463 extern
6464 #ifdef __cplusplus
6466 #endif
6467 const char *_nl_expand_alias ();
6468 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (0))
6469 #else
6470 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
6471 #endif
6474 main ()
6476 bindtextdomain ("", "");
6477 return (int) gettext ("") + (int) ngettext ("", "", 0) + __GNU_GETTEXT_SYMBOL_EXPRESSION
6479 return 0;
6481 _ACEOF
6482 if ac_fn_c_try_link "$LINENO"; then :
6483 LIBINTL="$LIBINTL $LIBICONV"
6484 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6485 gt_cv_func_gnugettext2_libintl=yes
6488 rm -f core conftest.err conftest.$ac_objext \
6489 conftest$ac_exeext conftest.$ac_ext
6491 CPPFLAGS="$gt_save_CPPFLAGS"
6492 LIBS="$gt_save_LIBS"
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
6495 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
6498 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
6499 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
6500 && test "$PACKAGE" != gettext-runtime \
6501 && test "$PACKAGE" != gettext-tools; }; then
6502 gt_use_preinstalled_gnugettext=yes
6503 else
6504 LIBINTL=
6505 LTLIBINTL=
6506 INCINTL=
6510 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
6511 nls_cv_use_gnu_gettext=yes
6515 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6516 BUILD_INCLUDED_LIBINTL=yes
6517 USE_INCLUDED_LIBINTL=yes
6518 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
6519 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
6520 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6523 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6524 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6525 CATOBJEXT=.gmo
6529 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6530 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6532 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6534 else
6535 USE_NLS=no
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6540 $as_echo_n "checking whether to use NLS... " >&6; }
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6542 $as_echo "$USE_NLS" >&6; }
6543 if test "$USE_NLS" = "yes"; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6545 $as_echo_n "checking where the gettext function comes from... " >&6; }
6546 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6547 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
6548 gt_source="external libintl"
6549 else
6550 gt_source="libc"
6552 else
6553 gt_source="included intl directory"
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6556 $as_echo "$gt_source" >&6; }
6559 if test "$USE_NLS" = "yes"; then
6561 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6562 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6564 $as_echo_n "checking how to link with libintl... " >&6; }
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6566 $as_echo "$LIBINTL" >&6; }
6568 for element in $INCINTL; do
6569 haveit=
6570 for x in $CPPFLAGS; do
6572 acl_save_prefix="$prefix"
6573 prefix="$acl_final_prefix"
6574 acl_save_exec_prefix="$exec_prefix"
6575 exec_prefix="$acl_final_exec_prefix"
6576 eval x=\"$x\"
6577 exec_prefix="$acl_save_exec_prefix"
6578 prefix="$acl_save_prefix"
6580 if test "X$x" = "X$element"; then
6581 haveit=yes
6582 break
6584 done
6585 if test -z "$haveit"; then
6586 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6588 done
6593 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6596 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6600 POSUB=po
6604 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
6605 BUILD_INCLUDED_LIBINTL=yes
6612 nls_cv_header_intl=
6613 nls_cv_header_libgt=
6615 DATADIRNAME=share
6618 INSTOBJEXT=.mo
6621 GENCAT=gencat
6624 if test "$USE_INCLUDED_LIBINTL" = yes; then
6625 INTLOBJS="\$(GETTOBJS)"
6629 INTL_LIBTOOL_SUFFIX_PREFIX=
6633 INTLLIBS="$LIBINTL"
6641 # This replaces the extensive use of DEFS in the original Makefile.in.
6643 $as_echo "#define IN_LIBINTL 1" >>confdefs.h
6646 $as_echo "#define IN_LIBRARY 1" >>confdefs.h
6649 $as_echo "#define DEPENDS_ON_LIBICONV 1" >>confdefs.h
6652 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
6655 $as_echo "#define NO_XMALLOC 1" >>confdefs.h
6658 $as_echo "#define set_relocation_prefix libintl_set_relocation_prefix" >>confdefs.h
6661 $as_echo "#define relocate libintl_relocate" >>confdefs.h
6664 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6665 for ac_prog in aclocal
6667 # Extract the first word of "$ac_prog", so it can be a program name with args.
6668 set dummy $ac_prog; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if ${ac_cv_prog_ACLOCAL+:} false; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 if test -n "$ACLOCAL"; then
6675 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6684 ac_cv_prog_ACLOCAL="$ac_prog"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6688 done
6689 done
6690 IFS=$as_save_IFS
6694 ACLOCAL=$ac_cv_prog_ACLOCAL
6695 if test -n "$ACLOCAL"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
6697 $as_echo "$ACLOCAL" >&6; }
6698 else
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6704 test -n "$ACLOCAL" && break
6705 done
6706 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
6708 for ac_prog in autoconf
6710 # Extract the first word of "$ac_prog", so it can be a program name with args.
6711 set dummy $ac_prog; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if ${ac_cv_prog_AUTOCONF+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 if test -n "$AUTOCONF"; then
6718 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727 ac_cv_prog_AUTOCONF="$ac_prog"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6731 done
6732 done
6733 IFS=$as_save_IFS
6737 AUTOCONF=$ac_cv_prog_AUTOCONF
6738 if test -n "$AUTOCONF"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
6740 $as_echo "$AUTOCONF" >&6; }
6741 else
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6747 test -n "$AUTOCONF" && break
6748 done
6749 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
6751 for ac_prog in autoheader
6753 # Extract the first word of "$ac_prog", so it can be a program name with args.
6754 set dummy $ac_prog; ac_word=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if ${ac_cv_prog_AUTOHEADER+:} false; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760 if test -n "$AUTOHEADER"; then
6761 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
6762 else
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6770 ac_cv_prog_AUTOHEADER="$ac_prog"
6771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 break 2
6774 done
6775 done
6776 IFS=$as_save_IFS
6780 AUTOHEADER=$ac_cv_prog_AUTOHEADER
6781 if test -n "$AUTOHEADER"; then
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
6783 $as_echo "$AUTOHEADER" >&6; }
6784 else
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 $as_echo "no" >&6; }
6790 test -n "$AUTOHEADER" && break
6791 done
6792 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
6795 # Check whether --enable-maintainer-mode was given.
6796 if test "${enable_maintainer_mode+set}" = set; then :
6797 enableval=$enable_maintainer_mode;
6798 else
6799 enable_maintainer_mode=no
6802 if test "x$enable_maintainer_mode" = xno; then
6803 MAINT='#'
6804 else
6805 MAINT=
6809 if test -z "$CTAGS"; then
6810 CTAGS=ctags
6813 if test -z "$ETAGS"; then
6814 ETAGS=etags
6817 if test -z "$MKID"; then
6818 MKID=mkid
6822 # Additional info for config.intl.
6826 LIBINTL_DEP=
6827 INCINTL=
6828 case $USE_INCLUDED_LIBINTL in
6829 yes)
6830 LIBINTL=`echo $LIBINTL | sed 's,${top_builddir},&/..,' `
6831 LTLIBINTL=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' `
6832 LIBINTL_DEP='${top_builddir}/../intl/libintl.a'
6833 INCINTL='-I${top_builddir}/../intl'
6835 esac
6837 BISON3_YES='#'
6838 BISON3_NO=
6839 if test "$INTLBISON" != :; then
6840 ac_bison3=no
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison 3 or later" >&5
6842 $as_echo_n "checking bison 3 or later... " >&6; }
6843 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6844 case $ac_prog_version in
6845 [3-9].*)
6846 ac_prog_version="$ac_prog_version, bison3"; ac_bison3=yes;;
6847 *) ac_prog_version="$ac_prog_version, old";;
6848 esac
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
6850 $as_echo "$ac_prog_version" >&6; }
6851 if test $ac_bison3 = yes; then
6852 BISON3_YES=
6853 BISON3_NO='#'
6859 # Enable --enable-host-shared.
6860 # Check whether --enable-host-shared was given.
6861 if test "${enable_host_shared+set}" = set; then :
6862 enableval=$enable_host_shared;
6867 # Enable --enable-host-pie.
6868 # Check whether --enable-host-pie was given.
6869 if test "${enable_host_pie+set}" = set; then :
6870 enableval=$enable_host_pie;
6875 if test x$enable_host_shared = xyes; then
6876 PICFLAG=-fPIC
6877 elif test x$enable_host_pie = xyes; then
6878 PICFLAG=-fPIE
6879 else
6880 PICFLAG=
6884 ac_config_files="$ac_config_files Makefile config.intl"
6886 cat >confcache <<\_ACEOF
6887 # This file is a shell script that caches the results of configure
6888 # tests run on this system so they can be shared between configure
6889 # scripts and configure runs, see configure's option --config-cache.
6890 # It is not useful on other systems. If it contains results you don't
6891 # want to keep, you may remove or edit it.
6893 # config.status only pays attention to the cache file if you give it
6894 # the --recheck option to rerun configure.
6896 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6897 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6898 # following values.
6900 _ACEOF
6902 # The following way of writing the cache mishandles newlines in values,
6903 # but we know of no workaround that is simple, portable, and efficient.
6904 # So, we kill variables containing newlines.
6905 # Ultrix sh set writes to stderr and can't be redirected directly,
6906 # and sets the high bit in the cache file unless we assign to the vars.
6908 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6909 eval ac_val=\$$ac_var
6910 case $ac_val in #(
6911 *${as_nl}*)
6912 case $ac_var in #(
6913 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6914 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6915 esac
6916 case $ac_var in #(
6917 _ | IFS | as_nl) ;; #(
6918 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6919 *) { eval $ac_var=; unset $ac_var;} ;;
6920 esac ;;
6921 esac
6922 done
6924 (set) 2>&1 |
6925 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6926 *${as_nl}ac_space=\ *)
6927 # `set' does not quote correctly, so add quotes: double-quote
6928 # substitution turns \\\\ into \\, and sed turns \\ into \.
6929 sed -n \
6930 "s/'/'\\\\''/g;
6931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6932 ;; #(
6934 # `set' quotes correctly as required by POSIX, so do not add quotes.
6935 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6937 esac |
6938 sort
6940 sed '
6941 /^ac_cv_env_/b end
6942 t clear
6943 :clear
6944 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6945 t end
6946 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6947 :end' >>confcache
6948 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6949 if test -w "$cache_file"; then
6950 if test "x$cache_file" != "x/dev/null"; then
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6952 $as_echo "$as_me: updating cache $cache_file" >&6;}
6953 if test ! -f "$cache_file" || test -h "$cache_file"; then
6954 cat confcache >"$cache_file"
6955 else
6956 case $cache_file in #(
6957 */* | ?:*)
6958 mv -f confcache "$cache_file"$$ &&
6959 mv -f "$cache_file"$$ "$cache_file" ;; #(
6961 mv -f confcache "$cache_file" ;;
6962 esac
6965 else
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6967 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6970 rm -f confcache
6972 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6973 # Let make expand exec_prefix.
6974 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6976 DEFS=-DHAVE_CONFIG_H
6978 ac_libobjs=
6979 ac_ltlibobjs=
6981 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6982 # 1. Remove the extension, and $U if already installed.
6983 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6984 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6985 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6986 # will be set to the directory where LIBOBJS objects are built.
6987 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6988 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6989 done
6990 LIBOBJS=$ac_libobjs
6992 LTLIBOBJS=$ac_ltlibobjs
6996 : "${CONFIG_STATUS=./config.status}"
6997 ac_write_fail=0
6998 ac_clean_files_save=$ac_clean_files
6999 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7001 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7002 as_write_fail=0
7003 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7004 #! $SHELL
7005 # Generated by $as_me.
7006 # Run this file to recreate the current configuration.
7007 # Compiler output produced by configure, useful for debugging
7008 # configure, is in config.log if it exists.
7010 debug=false
7011 ac_cs_recheck=false
7012 ac_cs_silent=false
7014 SHELL=\${CONFIG_SHELL-$SHELL}
7015 export SHELL
7016 _ASEOF
7017 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7018 ## -------------------- ##
7019 ## M4sh Initialization. ##
7020 ## -------------------- ##
7022 # Be more Bourne compatible
7023 DUALCASE=1; export DUALCASE # for MKS sh
7024 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7025 emulate sh
7026 NULLCMD=:
7027 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7028 # is contrary to our usage. Disable this feature.
7029 alias -g '${1+"$@"}'='"$@"'
7030 setopt NO_GLOB_SUBST
7031 else
7032 case `(set -o) 2>/dev/null` in #(
7033 *posix*) :
7034 set -o posix ;; #(
7035 *) :
7037 esac
7041 as_nl='
7043 export as_nl
7044 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7045 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7046 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7047 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7048 # Prefer a ksh shell builtin over an external printf program on Solaris,
7049 # but without wasting forks for bash or zsh.
7050 if test -z "$BASH_VERSION$ZSH_VERSION" \
7051 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7052 as_echo='print -r --'
7053 as_echo_n='print -rn --'
7054 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7055 as_echo='printf %s\n'
7056 as_echo_n='printf %s'
7057 else
7058 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7059 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7060 as_echo_n='/usr/ucb/echo -n'
7061 else
7062 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7063 as_echo_n_body='eval
7064 arg=$1;
7065 case $arg in #(
7066 *"$as_nl"*)
7067 expr "X$arg" : "X\\(.*\\)$as_nl";
7068 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7069 esac;
7070 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7072 export as_echo_n_body
7073 as_echo_n='sh -c $as_echo_n_body as_echo'
7075 export as_echo_body
7076 as_echo='sh -c $as_echo_body as_echo'
7079 # The user is always right.
7080 if test "${PATH_SEPARATOR+set}" != set; then
7081 PATH_SEPARATOR=:
7082 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7083 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7084 PATH_SEPARATOR=';'
7089 # IFS
7090 # We need space, tab and new line, in precisely that order. Quoting is
7091 # there to prevent editors from complaining about space-tab.
7092 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7093 # splitting by setting IFS to empty value.)
7094 IFS=" "" $as_nl"
7096 # Find who we are. Look in the path if we contain no directory separator.
7097 as_myself=
7098 case $0 in #((
7099 *[\\/]* ) as_myself=$0 ;;
7100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
7105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7106 done
7107 IFS=$as_save_IFS
7110 esac
7111 # We did not find ourselves, most probably we were run as `sh COMMAND'
7112 # in which case we are not to be found in the path.
7113 if test "x$as_myself" = x; then
7114 as_myself=$0
7116 if test ! -f "$as_myself"; then
7117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7118 exit 1
7121 # Unset variables that we do not need and which cause bugs (e.g. in
7122 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7123 # suppresses any "Segmentation fault" message there. '((' could
7124 # trigger a bug in pdksh 5.2.14.
7125 for as_var in BASH_ENV ENV MAIL MAILPATH
7126 do eval test x\${$as_var+set} = xset \
7127 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7128 done
7129 PS1='$ '
7130 PS2='> '
7131 PS4='+ '
7133 # NLS nuisances.
7134 LC_ALL=C
7135 export LC_ALL
7136 LANGUAGE=C
7137 export LANGUAGE
7139 # CDPATH.
7140 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7143 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7144 # ----------------------------------------
7145 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7146 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7147 # script with STATUS, using 1 if that was 0.
7148 as_fn_error ()
7150 as_status=$1; test $as_status -eq 0 && as_status=1
7151 if test "$4"; then
7152 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7153 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7155 $as_echo "$as_me: error: $2" >&2
7156 as_fn_exit $as_status
7157 } # as_fn_error
7160 # as_fn_set_status STATUS
7161 # -----------------------
7162 # Set $? to STATUS, without forking.
7163 as_fn_set_status ()
7165 return $1
7166 } # as_fn_set_status
7168 # as_fn_exit STATUS
7169 # -----------------
7170 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7171 as_fn_exit ()
7173 set +e
7174 as_fn_set_status $1
7175 exit $1
7176 } # as_fn_exit
7178 # as_fn_unset VAR
7179 # ---------------
7180 # Portably unset VAR.
7181 as_fn_unset ()
7183 { eval $1=; unset $1;}
7185 as_unset=as_fn_unset
7186 # as_fn_append VAR VALUE
7187 # ----------------------
7188 # Append the text in VALUE to the end of the definition contained in VAR. Take
7189 # advantage of any shell optimizations that allow amortized linear growth over
7190 # repeated appends, instead of the typical quadratic growth present in naive
7191 # implementations.
7192 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7193 eval 'as_fn_append ()
7195 eval $1+=\$2
7197 else
7198 as_fn_append ()
7200 eval $1=\$$1\$2
7202 fi # as_fn_append
7204 # as_fn_arith ARG...
7205 # ------------------
7206 # Perform arithmetic evaluation on the ARGs, and store the result in the
7207 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7208 # must be portable across $(()) and expr.
7209 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7210 eval 'as_fn_arith ()
7212 as_val=$(( $* ))
7214 else
7215 as_fn_arith ()
7217 as_val=`expr "$@" || test $? -eq 1`
7219 fi # as_fn_arith
7222 if expr a : '\(a\)' >/dev/null 2>&1 &&
7223 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7224 as_expr=expr
7225 else
7226 as_expr=false
7229 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7230 as_basename=basename
7231 else
7232 as_basename=false
7235 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7236 as_dirname=dirname
7237 else
7238 as_dirname=false
7241 as_me=`$as_basename -- "$0" ||
7242 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7243 X"$0" : 'X\(//\)$' \| \
7244 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7245 $as_echo X/"$0" |
7246 sed '/^.*\/\([^/][^/]*\)\/*$/{
7247 s//\1/
7250 /^X\/\(\/\/\)$/{
7251 s//\1/
7254 /^X\/\(\/\).*/{
7255 s//\1/
7258 s/.*/./; q'`
7260 # Avoid depending upon Character Ranges.
7261 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7262 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7263 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7264 as_cr_digits='0123456789'
7265 as_cr_alnum=$as_cr_Letters$as_cr_digits
7267 ECHO_C= ECHO_N= ECHO_T=
7268 case `echo -n x` in #(((((
7269 -n*)
7270 case `echo 'xy\c'` in
7271 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7272 xy) ECHO_C='\c';;
7273 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7274 ECHO_T=' ';;
7275 esac;;
7277 ECHO_N='-n';;
7278 esac
7280 rm -f conf$$ conf$$.exe conf$$.file
7281 if test -d conf$$.dir; then
7282 rm -f conf$$.dir/conf$$.file
7283 else
7284 rm -f conf$$.dir
7285 mkdir conf$$.dir 2>/dev/null
7287 if (echo >conf$$.file) 2>/dev/null; then
7288 if ln -s conf$$.file conf$$ 2>/dev/null; then
7289 as_ln_s='ln -s'
7290 # ... but there are two gotchas:
7291 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7292 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7293 # In both cases, we have to default to `cp -pR'.
7294 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7295 as_ln_s='cp -pR'
7296 elif ln conf$$.file conf$$ 2>/dev/null; then
7297 as_ln_s=ln
7298 else
7299 as_ln_s='cp -pR'
7301 else
7302 as_ln_s='cp -pR'
7304 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7305 rmdir conf$$.dir 2>/dev/null
7308 # as_fn_mkdir_p
7309 # -------------
7310 # Create "$as_dir" as a directory, including parents if necessary.
7311 as_fn_mkdir_p ()
7314 case $as_dir in #(
7315 -*) as_dir=./$as_dir;;
7316 esac
7317 test -d "$as_dir" || eval $as_mkdir_p || {
7318 as_dirs=
7319 while :; do
7320 case $as_dir in #(
7321 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7322 *) as_qdir=$as_dir;;
7323 esac
7324 as_dirs="'$as_qdir' $as_dirs"
7325 as_dir=`$as_dirname -- "$as_dir" ||
7326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7327 X"$as_dir" : 'X\(//\)[^/]' \| \
7328 X"$as_dir" : 'X\(//\)$' \| \
7329 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7330 $as_echo X"$as_dir" |
7331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7332 s//\1/
7335 /^X\(\/\/\)[^/].*/{
7336 s//\1/
7339 /^X\(\/\/\)$/{
7340 s//\1/
7343 /^X\(\/\).*/{
7344 s//\1/
7347 s/.*/./; q'`
7348 test -d "$as_dir" && break
7349 done
7350 test -z "$as_dirs" || eval "mkdir $as_dirs"
7351 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7354 } # as_fn_mkdir_p
7355 if mkdir -p . 2>/dev/null; then
7356 as_mkdir_p='mkdir -p "$as_dir"'
7357 else
7358 test -d ./-p && rmdir ./-p
7359 as_mkdir_p=false
7363 # as_fn_executable_p FILE
7364 # -----------------------
7365 # Test if FILE is an executable regular file.
7366 as_fn_executable_p ()
7368 test -f "$1" && test -x "$1"
7369 } # as_fn_executable_p
7370 as_test_x='test -x'
7371 as_executable_p=as_fn_executable_p
7373 # Sed expression to map a string onto a valid CPP name.
7374 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7376 # Sed expression to map a string onto a valid variable name.
7377 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7380 exec 6>&1
7381 ## ----------------------------------- ##
7382 ## Main body of $CONFIG_STATUS script. ##
7383 ## ----------------------------------- ##
7384 _ASEOF
7385 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7388 # Save the log message, to keep $0 and so on meaningful, and to
7389 # report actual input values of CONFIG_FILES etc. instead of their
7390 # values after options handling.
7391 ac_log="
7392 This file was extended by $as_me, which was
7393 generated by GNU Autoconf 2.69. Invocation command line was
7395 CONFIG_FILES = $CONFIG_FILES
7396 CONFIG_HEADERS = $CONFIG_HEADERS
7397 CONFIG_LINKS = $CONFIG_LINKS
7398 CONFIG_COMMANDS = $CONFIG_COMMANDS
7399 $ $0 $@
7401 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7404 _ACEOF
7406 case $ac_config_files in *"
7407 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7408 esac
7410 case $ac_config_headers in *"
7411 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7412 esac
7415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7416 # Files that config.status was made for.
7417 config_files="$ac_config_files"
7418 config_headers="$ac_config_headers"
7419 config_commands="$ac_config_commands"
7421 _ACEOF
7423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7424 ac_cs_usage="\
7425 \`$as_me' instantiates files and other configuration actions
7426 from templates according to the current configuration. Unless the files
7427 and actions are specified as TAGs, all are instantiated by default.
7429 Usage: $0 [OPTION]... [TAG]...
7431 -h, --help print this help, then exit
7432 -V, --version print version number and configuration settings, then exit
7433 --config print configuration, then exit
7434 -q, --quiet, --silent
7435 do not print progress messages
7436 -d, --debug don't remove temporary files
7437 --recheck update $as_me by reconfiguring in the same conditions
7438 --file=FILE[:TEMPLATE]
7439 instantiate the configuration file FILE
7440 --header=FILE[:TEMPLATE]
7441 instantiate the configuration header FILE
7443 Configuration files:
7444 $config_files
7446 Configuration headers:
7447 $config_headers
7449 Configuration commands:
7450 $config_commands
7452 Report bugs to the package provider."
7454 _ACEOF
7455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7456 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7457 ac_cs_version="\\
7458 config.status
7459 configured by $0, generated by GNU Autoconf 2.69,
7460 with options \\"\$ac_cs_config\\"
7462 Copyright (C) 2012 Free Software Foundation, Inc.
7463 This config.status script is free software; the Free Software Foundation
7464 gives unlimited permission to copy, distribute and modify it."
7466 ac_pwd='$ac_pwd'
7467 srcdir='$srcdir'
7468 INSTALL='$INSTALL'
7469 test -n "\$AWK" || AWK=awk
7470 _ACEOF
7472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7473 # The default lists apply if the user does not specify any file.
7474 ac_need_defaults=:
7475 while test $# != 0
7477 case $1 in
7478 --*=?*)
7479 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7480 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7481 ac_shift=:
7483 --*=)
7484 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7485 ac_optarg=
7486 ac_shift=:
7489 ac_option=$1
7490 ac_optarg=$2
7491 ac_shift=shift
7493 esac
7495 case $ac_option in
7496 # Handling of the options.
7497 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7498 ac_cs_recheck=: ;;
7499 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7500 $as_echo "$ac_cs_version"; exit ;;
7501 --config | --confi | --conf | --con | --co | --c )
7502 $as_echo "$ac_cs_config"; exit ;;
7503 --debug | --debu | --deb | --de | --d | -d )
7504 debug=: ;;
7505 --file | --fil | --fi | --f )
7506 $ac_shift
7507 case $ac_optarg in
7508 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7509 '') as_fn_error $? "missing file argument" ;;
7510 esac
7511 as_fn_append CONFIG_FILES " '$ac_optarg'"
7512 ac_need_defaults=false;;
7513 --header | --heade | --head | --hea )
7514 $ac_shift
7515 case $ac_optarg in
7516 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7517 esac
7518 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7519 ac_need_defaults=false;;
7520 --he | --h)
7521 # Conflict between --help and --header
7522 as_fn_error $? "ambiguous option: \`$1'
7523 Try \`$0 --help' for more information.";;
7524 --help | --hel | -h )
7525 $as_echo "$ac_cs_usage"; exit ;;
7526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7527 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7528 ac_cs_silent=: ;;
7530 # This is an error.
7531 -*) as_fn_error $? "unrecognized option: \`$1'
7532 Try \`$0 --help' for more information." ;;
7534 *) as_fn_append ac_config_targets " $1"
7535 ac_need_defaults=false ;;
7537 esac
7538 shift
7539 done
7541 ac_configure_extra_args=
7543 if $ac_cs_silent; then
7544 exec 6>/dev/null
7545 ac_configure_extra_args="$ac_configure_extra_args --silent"
7548 _ACEOF
7549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7550 if \$ac_cs_recheck; then
7551 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7552 shift
7553 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7554 CONFIG_SHELL='$SHELL'
7555 export CONFIG_SHELL
7556 exec "\$@"
7559 _ACEOF
7560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7561 exec 5>>config.log
7563 echo
7564 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7565 ## Running $as_me. ##
7566 _ASBOX
7567 $as_echo "$ac_log"
7568 } >&5
7570 _ACEOF
7571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7573 # INIT-COMMANDS
7575 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
7576 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
7577 # from automake.
7578 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
7579 # Capture the value of LINGUAS because we need it to compute CATALOGS.
7580 LINGUAS="${LINGUAS-%UNSET%}"
7583 _ACEOF
7585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7587 # Handling of arguments.
7588 for ac_config_target in $ac_config_targets
7590 case $ac_config_target in
7591 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7592 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7593 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7594 "config.intl") CONFIG_FILES="$CONFIG_FILES config.intl" ;;
7596 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7597 esac
7598 done
7601 # If the user did not use the arguments to specify the items to instantiate,
7602 # then the envvar interface is used. Set only those that are not.
7603 # We use the long form for the default assignment because of an extremely
7604 # bizarre bug on SunOS 4.1.3.
7605 if $ac_need_defaults; then
7606 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7607 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7608 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7611 # Have a temporary directory for convenience. Make it in the build tree
7612 # simply because there is no reason against having it here, and in addition,
7613 # creating and moving files from /tmp can sometimes cause problems.
7614 # Hook for its removal unless debugging.
7615 # Note that there is a small window in which the directory will not be cleaned:
7616 # after its creation but before its name has been assigned to `$tmp'.
7617 $debug ||
7619 tmp= ac_tmp=
7620 trap 'exit_status=$?
7621 : "${ac_tmp:=$tmp}"
7622 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7624 trap 'as_fn_exit 1' 1 2 13 15
7626 # Create a (secure) tmp directory for tmp files.
7629 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7630 test -d "$tmp"
7631 } ||
7633 tmp=./conf$$-$RANDOM
7634 (umask 077 && mkdir "$tmp")
7635 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7636 ac_tmp=$tmp
7638 # Set up the scripts for CONFIG_FILES section.
7639 # No need to generate them if there are no CONFIG_FILES.
7640 # This happens for instance with `./config.status config.h'.
7641 if test -n "$CONFIG_FILES"; then
7644 ac_cr=`echo X | tr X '\015'`
7645 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7646 # But we know of no other shell where ac_cr would be empty at this
7647 # point, so we can use a bashism as a fallback.
7648 if test "x$ac_cr" = x; then
7649 eval ac_cr=\$\'\\r\'
7651 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7652 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7653 ac_cs_awk_cr='\\r'
7654 else
7655 ac_cs_awk_cr=$ac_cr
7658 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7659 _ACEOF
7663 echo "cat >conf$$subs.awk <<_ACEOF" &&
7664 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7665 echo "_ACEOF"
7666 } >conf$$subs.sh ||
7667 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7668 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7669 ac_delim='%!_!# '
7670 for ac_last_try in false false false false false :; do
7671 . ./conf$$subs.sh ||
7672 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7674 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7675 if test $ac_delim_n = $ac_delim_num; then
7676 break
7677 elif $ac_last_try; then
7678 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7679 else
7680 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7682 done
7683 rm -f conf$$subs.sh
7685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7686 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7687 _ACEOF
7688 sed -n '
7690 s/^/S["/; s/!.*/"]=/
7693 s/^[^!]*!//
7694 :repl
7695 t repl
7696 s/'"$ac_delim"'$//
7697 t delim
7700 s/\(.\{148\}\)..*/\1/
7701 t more1
7702 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7705 b repl
7706 :more1
7707 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7710 s/.\{148\}//
7711 t nl
7712 :delim
7714 s/\(.\{148\}\)..*/\1/
7715 t more2
7716 s/["\\]/\\&/g; s/^/"/; s/$/"/
7719 :more2
7720 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7723 s/.\{148\}//
7724 t delim
7725 ' <conf$$subs.awk | sed '
7726 /^[^""]/{
7728 s/\n//
7730 ' >>$CONFIG_STATUS || ac_write_fail=1
7731 rm -f conf$$subs.awk
7732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7733 _ACAWK
7734 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7735 for (key in S) S_is_set[key] = 1
7736 FS = "\a"
7740 line = $ 0
7741 nfields = split(line, field, "@")
7742 substed = 0
7743 len = length(field[1])
7744 for (i = 2; i < nfields; i++) {
7745 key = field[i]
7746 keylen = length(key)
7747 if (S_is_set[key]) {
7748 value = S[key]
7749 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7750 len += length(value) + length(field[++i])
7751 substed = 1
7752 } else
7753 len += 1 + keylen
7756 print line
7759 _ACAWK
7760 _ACEOF
7761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7762 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7763 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7764 else
7766 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7767 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7768 _ACEOF
7770 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7771 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7772 # trailing colons and then remove the whole line if VPATH becomes empty
7773 # (actually we leave an empty line to preserve line numbers).
7774 if test "x$srcdir" = x.; then
7775 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7777 s///
7778 s/^/:/
7779 s/[ ]*$/:/
7780 s/:\$(srcdir):/:/g
7781 s/:\${srcdir}:/:/g
7782 s/:@srcdir@:/:/g
7783 s/^:*//
7784 s/:*$//
7786 s/\(=[ ]*\).*/\1/
7788 s/\n//
7789 s/^[^=]*=[ ]*$//
7793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7794 fi # test -n "$CONFIG_FILES"
7796 # Set up the scripts for CONFIG_HEADERS section.
7797 # No need to generate them if there are no CONFIG_HEADERS.
7798 # This happens for instance with `./config.status Makefile'.
7799 if test -n "$CONFIG_HEADERS"; then
7800 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7801 BEGIN {
7802 _ACEOF
7804 # Transform confdefs.h into an awk script `defines.awk', embedded as
7805 # here-document in config.status, that substitutes the proper values into
7806 # config.h.in to produce config.h.
7808 # Create a delimiter string that does not exist in confdefs.h, to ease
7809 # handling of long lines.
7810 ac_delim='%!_!# '
7811 for ac_last_try in false false :; do
7812 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7813 if test -z "$ac_tt"; then
7814 break
7815 elif $ac_last_try; then
7816 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7817 else
7818 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7820 done
7822 # For the awk script, D is an array of macro values keyed by name,
7823 # likewise P contains macro parameters if any. Preserve backslash
7824 # newline sequences.
7826 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7827 sed -n '
7828 s/.\{148\}/&'"$ac_delim"'/g
7829 t rset
7830 :rset
7831 s/^[ ]*#[ ]*define[ ][ ]*/ /
7832 t def
7834 :def
7835 s/\\$//
7836 t bsnl
7837 s/["\\]/\\&/g
7838 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7839 D["\1"]=" \3"/p
7840 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7842 :bsnl
7843 s/["\\]/\\&/g
7844 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7845 D["\1"]=" \3\\\\\\n"\\/p
7846 t cont
7847 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7848 t cont
7850 :cont
7852 s/.\{148\}/&'"$ac_delim"'/g
7853 t clear
7854 :clear
7855 s/\\$//
7856 t bsnlc
7857 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7859 :bsnlc
7860 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7861 b cont
7862 ' <confdefs.h | sed '
7863 s/'"$ac_delim"'/"\\\
7864 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7867 for (key in D) D_is_set[key] = 1
7868 FS = "\a"
7870 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7871 line = \$ 0
7872 split(line, arg, " ")
7873 if (arg[1] == "#") {
7874 defundef = arg[2]
7875 mac1 = arg[3]
7876 } else {
7877 defundef = substr(arg[1], 2)
7878 mac1 = arg[2]
7880 split(mac1, mac2, "(") #)
7881 macro = mac2[1]
7882 prefix = substr(line, 1, index(line, defundef) - 1)
7883 if (D_is_set[macro]) {
7884 # Preserve the white space surrounding the "#".
7885 print prefix "define", macro P[macro] D[macro]
7886 next
7887 } else {
7888 # Replace #undef with comments. This is necessary, for example,
7889 # in the case of _POSIX_SOURCE, which is predefined and required
7890 # on some systems where configure will not decide to define it.
7891 if (defundef == "undef") {
7892 print "/*", prefix defundef, macro, "*/"
7893 next
7897 { print }
7898 _ACAWK
7899 _ACEOF
7900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7901 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7902 fi # test -n "$CONFIG_HEADERS"
7905 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7906 shift
7907 for ac_tag
7909 case $ac_tag in
7910 :[FHLC]) ac_mode=$ac_tag; continue;;
7911 esac
7912 case $ac_mode$ac_tag in
7913 :[FHL]*:*);;
7914 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7915 :[FH]-) ac_tag=-:-;;
7916 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7917 esac
7918 ac_save_IFS=$IFS
7919 IFS=:
7920 set x $ac_tag
7921 IFS=$ac_save_IFS
7922 shift
7923 ac_file=$1
7924 shift
7926 case $ac_mode in
7927 :L) ac_source=$1;;
7928 :[FH])
7929 ac_file_inputs=
7930 for ac_f
7932 case $ac_f in
7933 -) ac_f="$ac_tmp/stdin";;
7934 *) # Look for the file first in the build tree, then in the source tree
7935 # (if the path is not absolute). The absolute path cannot be DOS-style,
7936 # because $ac_f cannot contain `:'.
7937 test -f "$ac_f" ||
7938 case $ac_f in
7939 [\\/$]*) false;;
7940 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7941 esac ||
7942 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7943 esac
7944 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7945 as_fn_append ac_file_inputs " '$ac_f'"
7946 done
7948 # Let's still pretend it is `configure' which instantiates (i.e., don't
7949 # use $as_me), people would be surprised to read:
7950 # /* config.h. Generated by config.status. */
7951 configure_input='Generated from '`
7952 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7953 `' by configure.'
7954 if test x"$ac_file" != x-; then
7955 configure_input="$ac_file. $configure_input"
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7957 $as_echo "$as_me: creating $ac_file" >&6;}
7959 # Neutralize special characters interpreted by sed in replacement strings.
7960 case $configure_input in #(
7961 *\&* | *\|* | *\\* )
7962 ac_sed_conf_input=`$as_echo "$configure_input" |
7963 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7964 *) ac_sed_conf_input=$configure_input;;
7965 esac
7967 case $ac_tag in
7968 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7969 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7970 esac
7972 esac
7974 ac_dir=`$as_dirname -- "$ac_file" ||
7975 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7976 X"$ac_file" : 'X\(//\)[^/]' \| \
7977 X"$ac_file" : 'X\(//\)$' \| \
7978 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7979 $as_echo X"$ac_file" |
7980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7981 s//\1/
7984 /^X\(\/\/\)[^/].*/{
7985 s//\1/
7988 /^X\(\/\/\)$/{
7989 s//\1/
7992 /^X\(\/\).*/{
7993 s//\1/
7996 s/.*/./; q'`
7997 as_dir="$ac_dir"; as_fn_mkdir_p
7998 ac_builddir=.
8000 case "$ac_dir" in
8001 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8003 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8004 # A ".." for each directory in $ac_dir_suffix.
8005 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8006 case $ac_top_builddir_sub in
8007 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8008 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8009 esac ;;
8010 esac
8011 ac_abs_top_builddir=$ac_pwd
8012 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8013 # for backward compatibility:
8014 ac_top_builddir=$ac_top_build_prefix
8016 case $srcdir in
8017 .) # We are building in place.
8018 ac_srcdir=.
8019 ac_top_srcdir=$ac_top_builddir_sub
8020 ac_abs_top_srcdir=$ac_pwd ;;
8021 [\\/]* | ?:[\\/]* ) # Absolute name.
8022 ac_srcdir=$srcdir$ac_dir_suffix;
8023 ac_top_srcdir=$srcdir
8024 ac_abs_top_srcdir=$srcdir ;;
8025 *) # Relative name.
8026 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8027 ac_top_srcdir=$ac_top_build_prefix$srcdir
8028 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8029 esac
8030 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8033 case $ac_mode in
8036 # CONFIG_FILE
8039 case $INSTALL in
8040 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8041 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8042 esac
8043 _ACEOF
8045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8046 # If the template does not know about datarootdir, expand it.
8047 # FIXME: This hack should be removed a few years after 2.60.
8048 ac_datarootdir_hack=; ac_datarootdir_seen=
8049 ac_sed_dataroot='
8050 /datarootdir/ {
8054 /@datadir@/p
8055 /@docdir@/p
8056 /@infodir@/p
8057 /@localedir@/p
8058 /@mandir@/p'
8059 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8060 *datarootdir*) ac_datarootdir_seen=yes;;
8061 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8063 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8064 _ACEOF
8065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8066 ac_datarootdir_hack='
8067 s&@datadir@&$datadir&g
8068 s&@docdir@&$docdir&g
8069 s&@infodir@&$infodir&g
8070 s&@localedir@&$localedir&g
8071 s&@mandir@&$mandir&g
8072 s&\\\${datarootdir}&$datarootdir&g' ;;
8073 esac
8074 _ACEOF
8076 # Neutralize VPATH when `$srcdir' = `.'.
8077 # Shell code in configure.ac might set extrasub.
8078 # FIXME: do we really want to maintain this feature?
8079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8080 ac_sed_extra="$ac_vpsub
8081 $extrasub
8082 _ACEOF
8083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8085 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8086 s|@configure_input@|$ac_sed_conf_input|;t t
8087 s&@top_builddir@&$ac_top_builddir_sub&;t t
8088 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8089 s&@srcdir@&$ac_srcdir&;t t
8090 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8091 s&@top_srcdir@&$ac_top_srcdir&;t t
8092 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8093 s&@builddir@&$ac_builddir&;t t
8094 s&@abs_builddir@&$ac_abs_builddir&;t t
8095 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8096 s&@INSTALL@&$ac_INSTALL&;t t
8097 $ac_datarootdir_hack
8099 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8100 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8102 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8103 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8104 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8105 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8107 which seems to be undefined. Please make sure it is defined" >&5
8108 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8109 which seems to be undefined. Please make sure it is defined" >&2;}
8111 rm -f "$ac_tmp/stdin"
8112 case $ac_file in
8113 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8114 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8115 esac \
8116 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8120 # CONFIG_HEADER
8122 if test x"$ac_file" != x-; then
8124 $as_echo "/* $configure_input */" \
8125 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8126 } >"$ac_tmp/config.h" \
8127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8128 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8130 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8131 else
8132 rm -f "$ac_file"
8133 mv "$ac_tmp/config.h" "$ac_file" \
8134 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8136 else
8137 $as_echo "/* $configure_input */" \
8138 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8139 || as_fn_error $? "could not create -" "$LINENO" 5
8143 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8144 $as_echo "$as_me: executing $ac_file commands" >&6;}
8146 esac
8149 case $ac_file$ac_mode in
8150 "default-1":C)
8151 for ac_file in $CONFIG_FILES; do
8152 # Support "outfile[:infile[:infile...]]"
8153 case "$ac_file" in
8154 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8155 esac
8156 # PO directories have a Makefile.in generated from Makefile.in.in.
8157 case "$ac_file" in */Makefile.in)
8158 # Adjust a relative srcdir.
8159 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8160 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
8161 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8162 # In autoconf-2.13 it is called $ac_given_srcdir.
8163 # In autoconf-2.50 it is called $srcdir.
8164 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8165 case "$ac_given_srcdir" in
8166 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8167 /*) top_srcdir="$ac_given_srcdir" ;;
8168 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8169 esac
8170 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8171 rm -f "$ac_dir/POTFILES"
8172 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8173 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8174 POMAKEFILEDEPS="POTFILES.in"
8175 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
8176 # on $ac_dir but don't depend on user-specified configuration
8177 # parameters.
8178 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8179 # The LINGUAS file contains the set of available languages.
8180 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8181 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
8183 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8184 # Hide the ALL_LINGUAS assigment from automake.
8185 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8186 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8187 else
8188 # The set of available languages was given in configure.ac.
8189 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8191 case "$ac_given_srcdir" in
8192 .) srcdirpre= ;;
8193 *) srcdirpre='$(srcdir)/' ;;
8194 esac
8195 POFILES=
8196 GMOFILES=
8197 UPDATEPOFILES=
8198 DUMMYPOFILES=
8199 for lang in $ALL_LINGUAS; do
8200 POFILES="$POFILES $srcdirpre$lang.po"
8201 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8202 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8203 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8204 done
8205 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8206 # environment variable.
8207 INST_LINGUAS=
8208 if test -n "$ALL_LINGUAS"; then
8209 for presentlang in $ALL_LINGUAS; do
8210 useit=no
8211 if test "%UNSET%" != "$LINGUAS"; then
8212 desiredlanguages="$LINGUAS"
8213 else
8214 desiredlanguages="$ALL_LINGUAS"
8216 for desiredlang in $desiredlanguages; do
8217 # Use the presentlang catalog if desiredlang is
8218 # a. equal to presentlang, or
8219 # b. a variant of presentlang (because in this case,
8220 # presentlang can be used as a fallback for messages
8221 # which are not translated in the desiredlang catalog).
8222 case "$desiredlang" in
8223 "$presentlang"*) useit=yes;;
8224 esac
8225 done
8226 if test $useit = yes; then
8227 INST_LINGUAS="$INST_LINGUAS $presentlang"
8229 done
8231 CATALOGS=
8232 if test -n "$INST_LINGUAS"; then
8233 for lang in $INST_LINGUAS; do
8234 CATALOGS="$CATALOGS $lang.gmo"
8235 done
8237 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8238 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"
8239 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
8240 if test -f "$f"; then
8241 case "$f" in
8242 *.orig | *.bak | *~) ;;
8243 *) cat "$f" >> "$ac_dir/Makefile" ;;
8244 esac
8246 done
8249 esac
8250 done ;;
8252 esac
8253 done # for ac_tag
8256 as_fn_exit 0
8257 _ACEOF
8258 ac_clean_files=$ac_clean_files_save
8260 test $ac_write_fail = 0 ||
8261 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8264 # configure is writing to config.log, and then calls config.status.
8265 # config.status does its own redirection, appending to config.log.
8266 # Unfortunately, on DOS this fails, as config.log is still kept open
8267 # by configure, so config.status won't be able to write to it; its
8268 # output is simply discarded. So we exec the FD to /dev/null,
8269 # effectively closing config.log, so it can be properly (re)opened and
8270 # appended to by config.status. When coming back to configure, we
8271 # need to make the FD available again.
8272 if test "$no_create" != yes; then
8273 ac_cs_success=:
8274 ac_config_status_args=
8275 test "$silent" = yes &&
8276 ac_config_status_args="$ac_config_status_args --quiet"
8277 exec 5>/dev/null
8278 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8279 exec 5>>config.log
8280 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8281 # would make configure fail if this is the last instruction.
8282 $ac_cs_success || as_fn_exit 1
8284 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8286 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}