hppa: Fix bug in atomic_storedi_1 pattern
[official-gcc.git] / libcpp / configure
blob8a38c0546e3e663d7bb05871f9e1c6848454cb79
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for cpplib .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: gcc-bugs@gcc.gnu.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='cpplib'
582 PACKAGE_TARNAME='cpplib'
583 PACKAGE_VERSION=' '
584 PACKAGE_STRING='cpplib '
585 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
586 PACKAGE_URL=''
588 ac_unique_file="ucnid.h"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 gt_needs=
626 ac_subst_vars='LTLIBOBJS
627 CET_HOST_FLAGS
628 PICFLAG
629 enable_host_pie
630 enable_host_shared
631 MAINT
632 USED_CATALOGS
633 PACKAGE
634 CATOBJEXT
635 GENCAT
636 INSTOBJEXT
637 DATADIRNAME
638 CATALOGS
639 INCINTL
640 LIBINTL_DEP
641 POSUB
642 LTLIBINTL
643 LIBINTL
644 INTLLIBS
645 LTLIBICONV
646 LIBICONV
647 INTL_MACOSX_LIBS
648 MSGMERGE
649 XGETTEXT
650 GMSGFMT
651 MSGFMT
652 USE_NLS
653 MKINSTALLDIRS
654 ALLOCA
655 LIBOBJS
656 CXXDEPMODE
657 DEPDIR
658 am__leading_dot
659 WERROR
660 noexception_flags
661 WARN_PEDANTIC
662 c_warn
663 warn
664 ETAGS
665 AUTOHEADER
666 AUTOCONF
667 ACLOCAL
668 EGREP
669 GREP
672 RANLIB
673 ac_ct_CXX
674 CXXFLAGS
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
683 INSTALL_DATA
684 INSTALL_SCRIPT
685 INSTALL_PROGRAM
686 SET_MAKE
687 target_os
688 target_vendor
689 target_cpu
690 target
691 host_os
692 host_vendor
693 host_cpu
694 host
695 build_os
696 build_vendor
697 build_cpu
698 build
699 target_alias
700 host_alias
701 build_alias
702 LIBS
703 ECHO_T
704 ECHO_N
705 ECHO_C
706 DEFS
707 mandir
708 localedir
709 libdir
710 psdir
711 pdfdir
712 dvidir
713 htmldir
714 infodir
715 docdir
716 oldincludedir
717 includedir
718 localstatedir
719 sharedstatedir
720 sysconfdir
721 datadir
722 datarootdir
723 libexecdir
724 sbindir
725 bindir
726 program_transform_name
727 prefix
728 exec_prefix
729 PACKAGE_URL
730 PACKAGE_BUGREPORT
731 PACKAGE_STRING
732 PACKAGE_VERSION
733 PACKAGE_TARNAME
734 PACKAGE_NAME
735 PATH_SEPARATOR
736 SHELL'
737 ac_subst_files=''
738 ac_user_opts='
739 enable_option_checking
740 enable_largefile
741 enable_werror_always
742 enable_nls
743 with_gnu_ld
744 enable_rpath
745 with_libiconv_prefix
746 with_libiconv_type
747 with_libintl_prefix
748 with_libintl_type
749 enable_maintainer_mode
750 enable_checking
751 enable_canonical_system_headers
752 enable_host_shared
753 enable_host_pie
754 enable_cet
755 enable_valgrind_annotations
757 ac_precious_vars='build_alias
758 host_alias
759 target_alias
761 CFLAGS
762 LDFLAGS
763 LIBS
764 CPPFLAGS
766 CXXFLAGS
768 CPP'
771 # Initialize some variables set by options.
772 ac_init_help=
773 ac_init_version=false
774 ac_unrecognized_opts=
775 ac_unrecognized_sep=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
778 cache_file=/dev/null
779 exec_prefix=NONE
780 no_create=
781 no_recursion=
782 prefix=NONE
783 program_prefix=NONE
784 program_suffix=NONE
785 program_transform_name=s,x,x,
786 silent=
787 site=
788 srcdir=
789 verbose=
790 x_includes=NONE
791 x_libraries=NONE
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir='${exec_prefix}/bin'
800 sbindir='${exec_prefix}/sbin'
801 libexecdir='${exec_prefix}/libexec'
802 datarootdir='${prefix}/share'
803 datadir='${datarootdir}'
804 sysconfdir='${prefix}/etc'
805 sharedstatedir='${prefix}/com'
806 localstatedir='${prefix}/var'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810 infodir='${datarootdir}/info'
811 htmldir='${docdir}'
812 dvidir='${docdir}'
813 pdfdir='${docdir}'
814 psdir='${docdir}'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
819 ac_prev=
820 ac_dashdash=
821 for ac_option
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
826 ac_prev=
827 continue
830 case $ac_option in
831 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 *=) ac_optarg= ;;
833 *) ac_optarg=yes ;;
834 esac
836 # Accept the important Cygnus configure options, so we can diagnose typos.
838 case $ac_dashdash$ac_option in
840 ac_dashdash=yes ;;
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
843 ac_prev=bindir ;;
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845 bindir=$ac_optarg ;;
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
859 --config-cache | -C)
860 cache_file=config.cache ;;
862 -datadir | --datadir | --datadi | --datad)
863 ac_prev=datadir ;;
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
874 -disable-* | --disable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error $? "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
883 "enable_$ac_useropt"
884 "*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=no ;;
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=\$ac_optarg ;;
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
927 with_gas=yes ;;
929 -help | --help | --hel | --he | -h)
930 ac_init_help=long ;;
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942 ac_prev=htmldir ;;
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944 | --ht=*)
945 htmldir=$ac_optarg ;;
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
955 ac_prev=infodir ;;
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
959 -libdir | --libdir | --libdi | --libd)
960 ac_prev=libdir ;;
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
962 libdir=$ac_optarg ;;
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
971 -localedir | --localedir | --localedi | --localed | --locale)
972 ac_prev=localedir ;;
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984 ac_prev=mandir ;;
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986 mandir=$ac_optarg ;;
988 -nfp | --nfp | --nf)
989 # Obsolete; use --without-fp.
990 with_fp=no ;;
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
994 no_create=yes ;;
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 no_recursion=yes ;;
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010 ac_prev=prefix ;;
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046 ac_prev=pdfdir ;;
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1050 -psdir | --psdir | --psdi | --psd | --ps)
1051 ac_prev=psdir ;;
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053 psdir=$ac_optarg ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 silent=yes ;;
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060 ac_prev=sbindir ;;
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062 | --sbi=* | --sb=*)
1063 sbindir=$ac_optarg ;;
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1068 | --sha | --sh)
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073 | --sha=* | --sh=*)
1074 sharedstatedir=$ac_optarg ;;
1076 -site | --site | --sit)
1077 ac_prev=site ;;
1078 -site=* | --site=* | --sit=*)
1079 site=$ac_optarg ;;
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082 ac_prev=srcdir ;;
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099 verbose=yes ;;
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1104 -with-* | --with-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1113 "with_$ac_useropt"
1114 "*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval with_$ac_useropt=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=no ;;
1136 --x)
1137 # Obsolete; use --with-x.
1138 with_x=yes ;;
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1154 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information"
1158 *=*)
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' | [0-9]* | *[!_$as_cr_alnum]* )
1163 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1164 esac
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1176 esac
1177 done
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error $? "missing argument to $ac_option"
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1186 no) ;;
1187 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189 esac
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1200 case $ac_val in
1201 */ )
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1204 esac
1205 # Be sure to have absolute directory names.
1206 case $ac_val in
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209 esac
1210 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1211 done
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1216 build=$build_alias
1217 host=$host_alias
1218 target=$target_alias
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 elif test "x$build_alias" != "x$host_alias"; then
1225 cross_compiling=yes
1229 ac_tool_prefix=
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232 test "$silent" = yes && exec 6>/dev/null
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238 as_fn_error $? "working directory cannot be determined"
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240 as_fn_error $? "pwd does not report name of working directory"
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245 ac_srcdir_defaulted=yes
1246 # Try the directory containing this script, then the parent directory.
1247 ac_confdir=`$as_dirname -- "$as_myself" ||
1248 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249 X"$as_myself" : 'X\(//\)[^/]' \| \
1250 X"$as_myself" : 'X\(//\)$' \| \
1251 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252 $as_echo X"$as_myself" |
1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254 s//\1/
1257 /^X\(\/\/\)[^/].*/{
1258 s//\1/
1261 /^X\(\/\/\)$/{
1262 s//\1/
1265 /^X\(\/\).*/{
1266 s//\1/
1269 s/.*/./; q'`
1270 srcdir=$ac_confdir
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 srcdir=..
1274 else
1275 ac_srcdir_defaulted=no
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1282 ac_abs_confdir=`(
1283 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1284 pwd)`
1285 # When building in place, set srcdir=.
1286 if test "$ac_abs_confdir" = "$ac_pwd"; then
1287 srcdir=.
1289 # Remove unnecessary trailing slashes from srcdir.
1290 # Double slashes in file names in object file debugging info
1291 # mess up M-x gdb in Emacs.
1292 case $srcdir in
1293 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1294 esac
1295 for ac_var in $ac_precious_vars; do
1296 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_env_${ac_var}_value=\$${ac_var}
1298 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1300 done
1303 # Report the --help message.
1305 if test "$ac_init_help" = "long"; then
1306 # Omit some internal or obsolete options to make the list less imposing.
1307 # This message is too long to be a string in the A/UX 3.1 sh.
1308 cat <<_ACEOF
1309 \`configure' configures cpplib to adapt to many kinds of systems.
1311 Usage: $0 [OPTION]... [VAR=VALUE]...
1313 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1314 VAR=VALUE. See below for descriptions of some of the useful variables.
1316 Defaults for the options are specified in brackets.
1318 Configuration:
1319 -h, --help display this help and exit
1320 --help=short display options specific to this package
1321 --help=recursive display the short help of all the included packages
1322 -V, --version display version information and exit
1323 -q, --quiet, --silent do not print \`checking ...' messages
1324 --cache-file=FILE cache test results in FILE [disabled]
1325 -C, --config-cache alias for \`--cache-file=config.cache'
1326 -n, --no-create do not create output files
1327 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1329 Installation directories:
1330 --prefix=PREFIX install architecture-independent files in PREFIX
1331 [$ac_default_prefix]
1332 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1333 [PREFIX]
1335 By default, \`make install' will install all the files in
1336 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1337 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1338 for instance \`--prefix=\$HOME'.
1340 For better control, use the options below.
1342 Fine tuning of the installation directories:
1343 --bindir=DIR user executables [EPREFIX/bin]
1344 --sbindir=DIR system admin executables [EPREFIX/sbin]
1345 --libexecdir=DIR program executables [EPREFIX/libexec]
1346 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1347 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1348 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1349 --libdir=DIR object code libraries [EPREFIX/lib]
1350 --includedir=DIR C header files [PREFIX/include]
1351 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1352 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1353 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1354 --infodir=DIR info documentation [DATAROOTDIR/info]
1355 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1356 --mandir=DIR man documentation [DATAROOTDIR/man]
1357 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
1358 --htmldir=DIR html documentation [DOCDIR]
1359 --dvidir=DIR dvi documentation [DOCDIR]
1360 --pdfdir=DIR pdf documentation [DOCDIR]
1361 --psdir=DIR ps documentation [DOCDIR]
1362 _ACEOF
1364 cat <<\_ACEOF
1366 System types:
1367 --build=BUILD configure for building on BUILD [guessed]
1368 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1369 --target=TARGET configure for building compilers for TARGET [HOST]
1370 _ACEOF
1373 if test -n "$ac_init_help"; then
1374 case $ac_init_help in
1375 short | recursive ) echo "Configuration of cpplib :";;
1376 esac
1377 cat <<\_ACEOF
1379 Optional Features:
1380 --disable-option-checking ignore unrecognized --enable/--with options
1381 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1382 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1383 --disable-largefile omit support for large files
1384 --enable-werror-always enable -Werror despite compiler version
1385 --disable-nls do not use Native Language Support
1386 --disable-rpath do not hardcode runtime library paths
1387 --enable-maintainer-mode enable rules only needed by maintainers
1388 --enable-checking[=LIST]
1389 enable expensive run-time checks. With LIST, enable
1390 only specific categories of checks. Categories are:
1391 yes,no,all,none,release. Flags are: misc,valgrind or
1392 other strings
1393 --enable-canonical-system-headers
1394 enable or disable system headers canonicalization
1395 --enable-host-shared build host code as shared libraries
1396 --enable-host-pie build host code as PIE
1397 --enable-cet enable Intel CET in host libraries [default=auto]
1398 --enable-valgrind-annotations
1399 enable valgrind runtime interaction
1401 Optional Packages:
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404 --with-gnu-ld assume the C compiler uses GNU ld default=no
1405 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1406 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1407 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1408 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1409 --without-libintl-prefix don't search for libintl in includedir and libdir
1410 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1412 Some influential environment variables:
1413 CC C compiler command
1414 CFLAGS C compiler flags
1415 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1416 nonstandard directory <lib dir>
1417 LIBS libraries to pass to the linker, e.g. -l<library>
1418 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1419 you have headers in a nonstandard directory <include dir>
1420 CXX C++ compiler command
1421 CXXFLAGS C++ compiler flags
1422 CPP C preprocessor
1424 Use these variables to override the choices made by `configure' or to help
1425 it to find libraries and programs with nonstandard names/locations.
1427 Report bugs to <gcc-bugs@gcc.gnu.org>.
1428 _ACEOF
1429 ac_status=$?
1432 if test "$ac_init_help" = "recursive"; then
1433 # If there are subdirs, report their specific --help.
1434 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1435 test -d "$ac_dir" ||
1436 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1437 continue
1438 ac_builddir=.
1440 case "$ac_dir" in
1441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1444 # A ".." for each directory in $ac_dir_suffix.
1445 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1446 case $ac_top_builddir_sub in
1447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1449 esac ;;
1450 esac
1451 ac_abs_top_builddir=$ac_pwd
1452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1453 # for backward compatibility:
1454 ac_top_builddir=$ac_top_build_prefix
1456 case $srcdir in
1457 .) # We are building in place.
1458 ac_srcdir=.
1459 ac_top_srcdir=$ac_top_builddir_sub
1460 ac_abs_top_srcdir=$ac_pwd ;;
1461 [\\/]* | ?:[\\/]* ) # Absolute name.
1462 ac_srcdir=$srcdir$ac_dir_suffix;
1463 ac_top_srcdir=$srcdir
1464 ac_abs_top_srcdir=$srcdir ;;
1465 *) # Relative name.
1466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1467 ac_top_srcdir=$ac_top_build_prefix$srcdir
1468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1469 esac
1470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1472 cd "$ac_dir" || { ac_status=$?; continue; }
1473 # Check for guested configure.
1474 if test -f "$ac_srcdir/configure.gnu"; then
1475 echo &&
1476 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1477 elif test -f "$ac_srcdir/configure"; then
1478 echo &&
1479 $SHELL "$ac_srcdir/configure" --help=recursive
1480 else
1481 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1482 fi || ac_status=$?
1483 cd "$ac_pwd" || { ac_status=$?; break; }
1484 done
1487 test -n "$ac_init_help" && exit $ac_status
1488 if $ac_init_version; then
1489 cat <<\_ACEOF
1490 cpplib configure
1491 generated by GNU Autoconf 2.69
1493 Copyright (C) 2012 Free Software Foundation, Inc.
1494 This configure script is free software; the Free Software Foundation
1495 gives unlimited permission to copy, distribute and modify it.
1496 _ACEOF
1497 exit
1500 ## ------------------------ ##
1501 ## Autoconf initialization. ##
1502 ## ------------------------ ##
1504 # ac_fn_c_try_compile LINENO
1505 # --------------------------
1506 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1507 ac_fn_c_try_compile ()
1509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510 rm -f conftest.$ac_objext
1511 if { { ac_try="$ac_compile"
1512 case "(($ac_try" in
1513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1514 *) ac_try_echo=$ac_try;;
1515 esac
1516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1517 $as_echo "$ac_try_echo"; } >&5
1518 (eval "$ac_compile") 2>conftest.err
1519 ac_status=$?
1520 if test -s conftest.err; then
1521 grep -v '^ *+' conftest.err >conftest.er1
1522 cat conftest.er1 >&5
1523 mv -f conftest.er1 conftest.err
1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526 test $ac_status = 0; } && {
1527 test -z "$ac_c_werror_flag" ||
1528 test ! -s conftest.err
1529 } && test -s conftest.$ac_objext; then :
1530 ac_retval=0
1531 else
1532 $as_echo "$as_me: failed program was:" >&5
1533 sed 's/^/| /' conftest.$ac_ext >&5
1535 ac_retval=1
1537 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1538 as_fn_set_status $ac_retval
1540 } # ac_fn_c_try_compile
1542 # ac_fn_cxx_try_compile LINENO
1543 # ----------------------------
1544 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_cxx_try_compile ()
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext
1549 if { { ac_try="$ac_compile"
1550 case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553 esac
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_compile") 2>conftest.err
1557 ac_status=$?
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && {
1565 test -z "$ac_cxx_werror_flag" ||
1566 test ! -s conftest.err
1567 } && test -s conftest.$ac_objext; then :
1568 ac_retval=0
1569 else
1570 $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1573 ac_retval=1
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 as_fn_set_status $ac_retval
1578 } # ac_fn_cxx_try_compile
1580 # ac_fn_c_try_cpp LINENO
1581 # ----------------------
1582 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_cpp ()
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 if { { ac_try="$ac_cpp conftest.$ac_ext"
1587 case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1594 ac_status=$?
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } > conftest.i && {
1602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 }; then :
1605 ac_retval=0
1606 else
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1610 ac_retval=1
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1615 } # ac_fn_c_try_cpp
1617 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1618 # -------------------------------------------------------
1619 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1620 # the include files in INCLUDES and setting the cache variable VAR
1621 # accordingly.
1622 ac_fn_c_check_header_mongrel ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if eval \${$3+:} false; then :
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627 $as_echo_n "checking for $2... " >&6; }
1628 if eval \${$3+:} false; then :
1629 $as_echo_n "(cached) " >&6
1631 eval ac_res=\$$3
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 $as_echo "$ac_res" >&6; }
1634 else
1635 # Is the header compilable?
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1637 $as_echo_n "checking $2 usability... " >&6; }
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1641 #include <$2>
1642 _ACEOF
1643 if ac_fn_c_try_compile "$LINENO"; then :
1644 ac_header_compiler=yes
1645 else
1646 ac_header_compiler=no
1648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1650 $as_echo "$ac_header_compiler" >&6; }
1652 # Is the header present?
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1654 $as_echo_n "checking $2 presence... " >&6; }
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1657 #include <$2>
1658 _ACEOF
1659 if ac_fn_c_try_cpp "$LINENO"; then :
1660 ac_header_preproc=yes
1661 else
1662 ac_header_preproc=no
1664 rm -f conftest.err conftest.i conftest.$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1666 $as_echo "$ac_header_preproc" >&6; }
1668 # So? What about this header?
1669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1670 yes:no: )
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1672 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1674 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1676 no:yes:* )
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1678 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1680 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1682 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1684 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1686 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1687 ( $as_echo "## ----------------------------------- ##
1688 ## Report this to gcc-bugs@gcc.gnu.org ##
1689 ## ----------------------------------- ##"
1690 ) | sed "s/^/$as_me: WARNING: /" >&2
1692 esac
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694 $as_echo_n "checking for $2... " >&6; }
1695 if eval \${$3+:} false; then :
1696 $as_echo_n "(cached) " >&6
1697 else
1698 eval "$3=\$ac_header_compiler"
1700 eval ac_res=\$$3
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 $as_echo "$ac_res" >&6; }
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 } # ac_fn_c_check_header_mongrel
1708 # ac_fn_c_try_run LINENO
1709 # ----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1711 # that executables *can* be run.
1712 ac_fn_c_try_run ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_link"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>&5
1723 ac_status=$?
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1726 { { case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_try") 2>&5
1733 ac_status=$?
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; }; }; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: program exited with status $ac_status" >&5
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1742 ac_retval=$ac_status
1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1748 } # ac_fn_c_try_run
1750 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists and can be compiled using the include files in
1753 # INCLUDES, setting the cache variable VAR accordingly.
1754 ac_fn_c_check_header_compile ()
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if eval \${$3+:} false; then :
1760 $as_echo_n "(cached) " >&6
1761 else
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1765 #include <$2>
1766 _ACEOF
1767 if ac_fn_c_try_compile "$LINENO"; then :
1768 eval "$3=yes"
1769 else
1770 eval "$3=no"
1772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 eval ac_res=\$$3
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 } # ac_fn_c_check_header_compile
1781 # ac_fn_c_try_link LINENO
1782 # -----------------------
1783 # Try to link conftest.$ac_ext, and return whether this succeeded.
1784 ac_fn_c_try_link ()
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 rm -f conftest.$ac_objext conftest$ac_exeext
1788 if { { ac_try="$ac_link"
1789 case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_link") 2>conftest.err
1796 ac_status=$?
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && {
1804 test -z "$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 } && test -s conftest$ac_exeext && {
1807 test "$cross_compiling" = yes ||
1808 test -x conftest$ac_exeext
1809 }; then :
1810 ac_retval=0
1811 else
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1815 ac_retval=1
1817 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1818 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1819 # interfere with the next link command; also delete a directory that is
1820 # left behind by Apple's compiler. We do this before executing the actions.
1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1825 } # ac_fn_c_try_link
1827 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1828 # -------------------------------------------
1829 # Tests whether TYPE exists after having included INCLUDES, setting cache
1830 # variable VAR accordingly.
1831 ac_fn_c_check_type ()
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval \${$3+:} false; then :
1837 $as_echo_n "(cached) " >&6
1838 else
1839 eval "$3=no"
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1844 main ()
1846 if (sizeof ($2))
1847 return 0;
1849 return 0;
1851 _ACEOF
1852 if ac_fn_c_try_compile "$LINENO"; then :
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1857 main ()
1859 if (sizeof (($2)))
1860 return 0;
1862 return 0;
1864 _ACEOF
1865 if ac_fn_c_try_compile "$LINENO"; then :
1867 else
1868 eval "$3=yes"
1870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 } # ac_fn_c_check_type
1881 # ac_fn_c_find_uintX_t LINENO BITS VAR
1882 # ------------------------------------
1883 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1884 # accordingly.
1885 ac_fn_c_find_uintX_t ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1889 $as_echo_n "checking for uint$2_t... " >&6; }
1890 if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1892 else
1893 eval "$3=no"
1894 # Order is important - never check a type that is potentially smaller
1895 # than half of the expected target width.
1896 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1897 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 $ac_includes_default
1902 main ()
1904 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1905 test_array [0] = 0;
1906 return test_array [0];
1909 return 0;
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913 case $ac_type in #(
1914 uint$2_t) :
1915 eval "$3=yes" ;; #(
1916 *) :
1917 eval "$3=\$ac_type" ;;
1918 esac
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 if eval test \"x\$"$3"\" = x"no"; then :
1923 else
1924 break
1926 done
1928 eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 } # ac_fn_c_find_uintX_t
1935 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1936 # --------------------------------------------
1937 # Tries to find the compile-time value of EXPR in a program that includes
1938 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1939 # computed
1940 ac_fn_c_compute_int ()
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if test "$cross_compiling" = yes; then
1944 # Depending upon the size, compute the lo and hi bounds.
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1949 main ()
1951 static int test_array [1 - 2 * !(($2) >= 0)];
1952 test_array [0] = 0;
1953 return test_array [0];
1956 return 0;
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_lo=0 ac_mid=0
1961 while :; do
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1966 main ()
1968 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1969 test_array [0] = 0;
1970 return test_array [0];
1973 return 0;
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977 ac_hi=$ac_mid; break
1978 else
1979 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1980 if test $ac_lo -le $ac_mid; then
1981 ac_lo= ac_hi=
1982 break
1984 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 done
1988 else
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1993 main ()
1995 static int test_array [1 - 2 * !(($2) < 0)];
1996 test_array [0] = 0;
1997 return test_array [0];
2000 return 0;
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 ac_hi=-1 ac_mid=-1
2005 while :; do
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2010 main ()
2012 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2013 test_array [0] = 0;
2014 return test_array [0];
2017 return 0;
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021 ac_lo=$ac_mid; break
2022 else
2023 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2024 if test $ac_mid -le $ac_hi; then
2025 ac_lo= ac_hi=
2026 break
2028 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 done
2032 else
2033 ac_lo= ac_hi=
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 # Binary search between lo and hi bounds.
2039 while test "x$ac_lo" != "x$ac_hi"; do
2040 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2045 main ()
2047 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2048 test_array [0] = 0;
2049 return test_array [0];
2052 return 0;
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056 ac_hi=$ac_mid
2057 else
2058 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 done
2062 case $ac_lo in #((
2063 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2064 '') ac_retval=1 ;;
2065 esac
2066 else
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2070 static long int longval () { return $2; }
2071 static unsigned long int ulongval () { return $2; }
2072 #include <stdio.h>
2073 #include <stdlib.h>
2075 main ()
2078 FILE *f = fopen ("conftest.val", "w");
2079 if (! f)
2080 return 1;
2081 if (($2) < 0)
2083 long int i = longval ();
2084 if (i != ($2))
2085 return 1;
2086 fprintf (f, "%ld", i);
2088 else
2090 unsigned long int i = ulongval ();
2091 if (i != ($2))
2092 return 1;
2093 fprintf (f, "%lu", i);
2095 /* Do not output a trailing newline, as this causes \r\n confusion
2096 on some platforms. */
2097 return ferror (f) || fclose (f) != 0;
2100 return 0;
2102 _ACEOF
2103 if ac_fn_c_try_run "$LINENO"; then :
2104 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2105 else
2106 ac_retval=1
2108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2109 conftest.$ac_objext conftest.beam conftest.$ac_ext
2110 rm -f conftest.val
2113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 as_fn_set_status $ac_retval
2116 } # ac_fn_c_compute_int
2118 # ac_fn_c_check_func LINENO FUNC VAR
2119 # ----------------------------------
2120 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2121 ac_fn_c_check_func ()
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2125 $as_echo_n "checking for $2... " >&6; }
2126 if eval \${$3+:} false; then :
2127 $as_echo_n "(cached) " >&6
2128 else
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2131 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2133 #define $2 innocuous_$2
2135 /* System header to define __stub macros and hopefully few prototypes,
2136 which can conflict with char $2 (); below.
2137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2138 <limits.h> exists even on freestanding compilers. */
2140 #ifdef __STDC__
2141 # include <limits.h>
2142 #else
2143 # include <assert.h>
2144 #endif
2146 #undef $2
2148 /* Override any GCC internal prototype to avoid an error.
2149 Use char because int might match the return type of a GCC
2150 builtin and then its argument prototype would still apply. */
2151 #ifdef __cplusplus
2152 extern "C"
2153 #endif
2154 char $2 ();
2155 /* The GNU C library defines this for functions which it implements
2156 to always fail with ENOSYS. Some functions are actually named
2157 something starting with __ and the normal name is an alias. */
2158 #if defined __stub_$2 || defined __stub___$2
2159 choke me
2160 #endif
2163 main ()
2165 return $2 ();
2167 return 0;
2169 _ACEOF
2170 if ac_fn_c_try_link "$LINENO"; then :
2171 eval "$3=yes"
2172 else
2173 eval "$3=no"
2175 rm -f core conftest.err conftest.$ac_objext \
2176 conftest$ac_exeext conftest.$ac_ext
2178 eval ac_res=\$$3
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2180 $as_echo "$ac_res" >&6; }
2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183 } # ac_fn_c_check_func
2185 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2186 # ---------------------------------------------
2187 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2188 # accordingly.
2189 ac_fn_c_check_decl ()
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 as_decl_name=`echo $2|sed 's/ *(.*//'`
2193 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2195 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2196 if eval \${$3+:} false; then :
2197 $as_echo_n "(cached) " >&6
2198 else
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2203 main ()
2205 #ifndef $as_decl_name
2206 #ifdef __cplusplus
2207 (void) $as_decl_use;
2208 #else
2209 (void) $as_decl_name;
2210 #endif
2211 #endif
2214 return 0;
2216 _ACEOF
2217 if ac_fn_c_try_compile "$LINENO"; then :
2218 eval "$3=yes"
2219 else
2220 eval "$3=no"
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 eval ac_res=\$$3
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226 $as_echo "$ac_res" >&6; }
2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 } # ac_fn_c_check_decl
2231 # ac_fn_cxx_try_link LINENO
2232 # -------------------------
2233 # Try to link conftest.$ac_ext, and return whether this succeeded.
2234 ac_fn_cxx_try_link ()
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 rm -f conftest.$ac_objext conftest$ac_exeext
2238 if { { ac_try="$ac_link"
2239 case "(($ac_try" in
2240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2242 esac
2243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244 $as_echo "$ac_try_echo"; } >&5
2245 (eval "$ac_link") 2>conftest.err
2246 ac_status=$?
2247 if test -s conftest.err; then
2248 grep -v '^ *+' conftest.err >conftest.er1
2249 cat conftest.er1 >&5
2250 mv -f conftest.er1 conftest.err
2252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2253 test $ac_status = 0; } && {
2254 test -z "$ac_cxx_werror_flag" ||
2255 test ! -s conftest.err
2256 } && test -s conftest$ac_exeext && {
2257 test "$cross_compiling" = yes ||
2258 test -x conftest$ac_exeext
2259 }; then :
2260 ac_retval=0
2261 else
2262 $as_echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2265 ac_retval=1
2267 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2268 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2269 # interfere with the next link command; also delete a directory that is
2270 # left behind by Apple's compiler. We do this before executing the actions.
2271 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273 as_fn_set_status $ac_retval
2275 } # ac_fn_cxx_try_link
2277 # ac_fn_cxx_try_run LINENO
2278 # ------------------------
2279 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2280 # that executables *can* be run.
2281 ac_fn_cxx_try_run ()
2283 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284 if { { ac_try="$ac_link"
2285 case "(($ac_try" in
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2288 esac
2289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290 $as_echo "$ac_try_echo"; } >&5
2291 (eval "$ac_link") 2>&5
2292 ac_status=$?
2293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2294 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2295 { { case "(($ac_try" in
2296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2297 *) ac_try_echo=$ac_try;;
2298 esac
2299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2300 $as_echo "$ac_try_echo"; } >&5
2301 (eval "$ac_try") 2>&5
2302 ac_status=$?
2303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2304 test $ac_status = 0; }; }; then :
2305 ac_retval=0
2306 else
2307 $as_echo "$as_me: program exited with status $ac_status" >&5
2308 $as_echo "$as_me: failed program was:" >&5
2309 sed 's/^/| /' conftest.$ac_ext >&5
2311 ac_retval=$ac_status
2313 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315 as_fn_set_status $ac_retval
2317 } # ac_fn_cxx_try_run
2318 cat >config.log <<_ACEOF
2319 This file contains any messages produced by compilers while
2320 running configure, to aid debugging if configure makes a mistake.
2322 It was created by cpplib $as_me , which was
2323 generated by GNU Autoconf 2.69. Invocation command line was
2325 $ $0 $@
2327 _ACEOF
2328 exec 5>>config.log
2330 cat <<_ASUNAME
2331 ## --------- ##
2332 ## Platform. ##
2333 ## --------- ##
2335 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2336 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2337 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2338 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2339 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2341 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2342 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2344 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2345 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2346 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2347 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2348 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2349 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2350 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2352 _ASUNAME
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 $as_echo "PATH: $as_dir"
2360 done
2361 IFS=$as_save_IFS
2363 } >&5
2365 cat >&5 <<_ACEOF
2368 ## ----------- ##
2369 ## Core tests. ##
2370 ## ----------- ##
2372 _ACEOF
2375 # Keep a trace of the command line.
2376 # Strip out --no-create and --no-recursion so they do not pile up.
2377 # Strip out --silent because we don't want to record it for future runs.
2378 # Also quote any args containing shell meta-characters.
2379 # Make two passes to allow for proper duplicate-argument suppression.
2380 ac_configure_args=
2381 ac_configure_args0=
2382 ac_configure_args1=
2383 ac_must_keep_next=false
2384 for ac_pass in 1 2
2386 for ac_arg
2388 case $ac_arg in
2389 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2391 | -silent | --silent | --silen | --sile | --sil)
2392 continue ;;
2393 *\'*)
2394 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2395 esac
2396 case $ac_pass in
2397 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2399 as_fn_append ac_configure_args1 " '$ac_arg'"
2400 if test $ac_must_keep_next = true; then
2401 ac_must_keep_next=false # Got value, back to normal.
2402 else
2403 case $ac_arg in
2404 *=* | --config-cache | -C | -disable-* | --disable-* \
2405 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2406 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2407 | -with-* | --with-* | -without-* | --without-* | --x)
2408 case "$ac_configure_args0 " in
2409 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2410 esac
2412 -* ) ac_must_keep_next=true ;;
2413 esac
2415 as_fn_append ac_configure_args " '$ac_arg'"
2417 esac
2418 done
2419 done
2420 { ac_configure_args0=; unset ac_configure_args0;}
2421 { ac_configure_args1=; unset ac_configure_args1;}
2423 # When interrupted or exit'd, cleanup temporary files, and complete
2424 # config.log. We remove comments because anyway the quotes in there
2425 # would cause problems or look ugly.
2426 # WARNING: Use '\'' to represent an apostrophe within the trap.
2427 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2428 trap 'exit_status=$?
2429 # Save into config.log some information that might help in debugging.
2431 echo
2433 $as_echo "## ---------------- ##
2434 ## Cache variables. ##
2435 ## ---------------- ##"
2436 echo
2437 # The following way of writing the cache mishandles newlines in values,
2439 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2440 eval ac_val=\$$ac_var
2441 case $ac_val in #(
2442 *${as_nl}*)
2443 case $ac_var in #(
2444 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2446 esac
2447 case $ac_var in #(
2448 _ | IFS | as_nl) ;; #(
2449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2450 *) { eval $ac_var=; unset $ac_var;} ;;
2451 esac ;;
2452 esac
2453 done
2454 (set) 2>&1 |
2455 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2456 *${as_nl}ac_space=\ *)
2457 sed -n \
2458 "s/'\''/'\''\\\\'\'''\''/g;
2459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2460 ;; #(
2462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2464 esac |
2465 sort
2467 echo
2469 $as_echo "## ----------------- ##
2470 ## Output variables. ##
2471 ## ----------------- ##"
2472 echo
2473 for ac_var in $ac_subst_vars
2475 eval ac_val=\$$ac_var
2476 case $ac_val in
2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478 esac
2479 $as_echo "$ac_var='\''$ac_val'\''"
2480 done | sort
2481 echo
2483 if test -n "$ac_subst_files"; then
2484 $as_echo "## ------------------- ##
2485 ## File substitutions. ##
2486 ## ------------------- ##"
2487 echo
2488 for ac_var in $ac_subst_files
2490 eval ac_val=\$$ac_var
2491 case $ac_val in
2492 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493 esac
2494 $as_echo "$ac_var='\''$ac_val'\''"
2495 done | sort
2496 echo
2499 if test -s confdefs.h; then
2500 $as_echo "## ----------- ##
2501 ## confdefs.h. ##
2502 ## ----------- ##"
2503 echo
2504 cat confdefs.h
2505 echo
2507 test "$ac_signal" != 0 &&
2508 $as_echo "$as_me: caught signal $ac_signal"
2509 $as_echo "$as_me: exit $exit_status"
2510 } >&5
2511 rm -f core *.core core.conftest.* &&
2512 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2513 exit $exit_status
2515 for ac_signal in 1 2 13 15; do
2516 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2517 done
2518 ac_signal=0
2520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2521 rm -f -r conftest* confdefs.h
2523 $as_echo "/* confdefs.h */" > confdefs.h
2525 # Predefined preprocessor variables.
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_NAME "$PACKAGE_NAME"
2529 _ACEOF
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2533 _ACEOF
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2537 _ACEOF
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_STRING "$PACKAGE_STRING"
2541 _ACEOF
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2545 _ACEOF
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_URL "$PACKAGE_URL"
2549 _ACEOF
2552 # Let the site file select an alternate cache file if it wants to.
2553 # Prefer an explicitly selected file to automatically selected ones.
2554 ac_site_file1=NONE
2555 ac_site_file2=NONE
2556 if test -n "$CONFIG_SITE"; then
2557 # We do not want a PATH search for config.site.
2558 case $CONFIG_SITE in #((
2559 -*) ac_site_file1=./$CONFIG_SITE;;
2560 */*) ac_site_file1=$CONFIG_SITE;;
2561 *) ac_site_file1=./$CONFIG_SITE;;
2562 esac
2563 elif test "x$prefix" != xNONE; then
2564 ac_site_file1=$prefix/share/config.site
2565 ac_site_file2=$prefix/etc/config.site
2566 else
2567 ac_site_file1=$ac_default_prefix/share/config.site
2568 ac_site_file2=$ac_default_prefix/etc/config.site
2570 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2572 test "x$ac_site_file" = xNONE && continue
2573 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2575 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2576 sed 's/^/| /' "$ac_site_file" >&5
2577 . "$ac_site_file" \
2578 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580 as_fn_error $? "failed to load site script $ac_site_file
2581 See \`config.log' for more details" "$LINENO" 5; }
2583 done
2585 if test -r "$cache_file"; then
2586 # Some versions of bash will fail to source /dev/null (special files
2587 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2588 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2590 $as_echo "$as_me: loading cache $cache_file" >&6;}
2591 case $cache_file in
2592 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2593 *) . "./$cache_file";;
2594 esac
2596 else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2598 $as_echo "$as_me: creating cache $cache_file" >&6;}
2599 >$cache_file
2602 gt_needs="$gt_needs "
2603 # Check that the precious variables saved in the cache have kept the same
2604 # value.
2605 ac_cache_corrupted=false
2606 for ac_var in $ac_precious_vars; do
2607 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2608 eval ac_new_set=\$ac_env_${ac_var}_set
2609 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2610 eval ac_new_val=\$ac_env_${ac_var}_value
2611 case $ac_old_set,$ac_new_set in
2612 set,)
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2614 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2615 ac_cache_corrupted=: ;;
2616 ,set)
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2618 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2619 ac_cache_corrupted=: ;;
2620 ,);;
2622 if test "x$ac_old_val" != "x$ac_new_val"; then
2623 # differences in whitespace do not lead to failure.
2624 ac_old_val_w=`echo x $ac_old_val`
2625 ac_new_val_w=`echo x $ac_new_val`
2626 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2628 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2629 ac_cache_corrupted=:
2630 else
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2632 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2633 eval $ac_var=\$ac_old_val
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2636 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2638 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2639 fi;;
2640 esac
2641 # Pass precious variables to config.status.
2642 if test "$ac_new_set" = set; then
2643 case $ac_new_val in
2644 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2645 *) ac_arg=$ac_var=$ac_new_val ;;
2646 esac
2647 case " $ac_configure_args " in
2648 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2649 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2650 esac
2652 done
2653 if $ac_cache_corrupted; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2657 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2658 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2660 ## -------------------- ##
2661 ## Main body of script. ##
2662 ## -------------------- ##
2664 ac_ext=c
2665 ac_cpp='$CPP $CPPFLAGS'
2666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673 ac_aux_dir=
2674 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2675 if test -f "$ac_dir/install-sh"; then
2676 ac_aux_dir=$ac_dir
2677 ac_install_sh="$ac_aux_dir/install-sh -c"
2678 break
2679 elif test -f "$ac_dir/install.sh"; then
2680 ac_aux_dir=$ac_dir
2681 ac_install_sh="$ac_aux_dir/install.sh -c"
2682 break
2683 elif test -f "$ac_dir/shtool"; then
2684 ac_aux_dir=$ac_dir
2685 ac_install_sh="$ac_aux_dir/shtool install -c"
2686 break
2688 done
2689 if test -z "$ac_aux_dir"; then
2690 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2693 # These three variables are undocumented and unsupported,
2694 # and are intended to be withdrawn in a future Autoconf release.
2695 # They can cause serious problems if a builder's source tree is in a directory
2696 # whose full name contains unusual characters.
2697 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2698 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2699 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2702 # Make sure we can run config.sub.
2703 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2704 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2707 $as_echo_n "checking build system type... " >&6; }
2708 if ${ac_cv_build+:} false; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 ac_build_alias=$build_alias
2712 test "x$ac_build_alias" = x &&
2713 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2714 test "x$ac_build_alias" = x &&
2715 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2716 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2717 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2721 $as_echo "$ac_cv_build" >&6; }
2722 case $ac_cv_build in
2723 *-*-*) ;;
2724 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2725 esac
2726 build=$ac_cv_build
2727 ac_save_IFS=$IFS; IFS='-'
2728 set x $ac_cv_build
2729 shift
2730 build_cpu=$1
2731 build_vendor=$2
2732 shift; shift
2733 # Remember, the first character of IFS is used to create $*,
2734 # except with old shells:
2735 build_os=$*
2736 IFS=$ac_save_IFS
2737 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2741 $as_echo_n "checking host system type... " >&6; }
2742 if ${ac_cv_host+:} false; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 if test "x$host_alias" = x; then
2746 ac_cv_host=$ac_cv_build
2747 else
2748 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2749 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2754 $as_echo "$ac_cv_host" >&6; }
2755 case $ac_cv_host in
2756 *-*-*) ;;
2757 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2758 esac
2759 host=$ac_cv_host
2760 ac_save_IFS=$IFS; IFS='-'
2761 set x $ac_cv_host
2762 shift
2763 host_cpu=$1
2764 host_vendor=$2
2765 shift; shift
2766 # Remember, the first character of IFS is used to create $*,
2767 # except with old shells:
2768 host_os=$*
2769 IFS=$ac_save_IFS
2770 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2774 $as_echo_n "checking target system type... " >&6; }
2775 if ${ac_cv_target+:} false; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if test "x$target_alias" = x; then
2779 ac_cv_target=$ac_cv_host
2780 else
2781 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2782 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2787 $as_echo "$ac_cv_target" >&6; }
2788 case $ac_cv_target in
2789 *-*-*) ;;
2790 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2791 esac
2792 target=$ac_cv_target
2793 ac_save_IFS=$IFS; IFS='-'
2794 set x $ac_cv_target
2795 shift
2796 target_cpu=$1
2797 target_vendor=$2
2798 shift; shift
2799 # Remember, the first character of IFS is used to create $*,
2800 # except with old shells:
2801 target_os=$*
2802 IFS=$ac_save_IFS
2803 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2806 # The aliases save the names the user supplied, while $host etc.
2807 # will get canonicalized.
2808 test -n "$target_alias" &&
2809 test "$program_prefix$program_suffix$program_transform_name" = \
2810 NONENONEs,x,x, &&
2811 program_prefix=${target_alias}-
2814 # Checks for programs.
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2816 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2817 set x ${MAKE-make}
2818 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2819 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 cat >conftest.make <<\_ACEOF
2823 SHELL = /bin/sh
2824 all:
2825 @echo '@@@%%%=$(MAKE)=@@@%%%'
2826 _ACEOF
2827 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2828 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2829 *@@@%%%=?*=@@@%%%*)
2830 eval ac_cv_prog_make_${ac_make}_set=yes;;
2832 eval ac_cv_prog_make_${ac_make}_set=no;;
2833 esac
2834 rm -f conftest.make
2836 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2838 $as_echo "yes" >&6; }
2839 SET_MAKE=
2840 else
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2843 SET_MAKE="MAKE=${MAKE-make}"
2846 # Find a good install program. We prefer a C program (faster),
2847 # so one script is as good as another. But avoid the broken or
2848 # incompatible versions:
2849 # SysV /etc/install, /usr/sbin/install
2850 # SunOS /usr/etc/install
2851 # IRIX /sbin/install
2852 # AIX /bin/install
2853 # AmigaOS /C/install, which installs bootblocks on floppy discs
2854 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2855 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2856 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2857 # OS/2's system install, which has a completely different semantic
2858 # ./install, which can be erroneously created by make from ./install.sh.
2859 # Reject install programs that cannot install multiple files.
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2861 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2862 if test -z "$INSTALL"; then
2863 if ${ac_cv_path_install+:} false; then :
2864 $as_echo_n "(cached) " >&6
2865 else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 # Account for people who put trailing slashes in PATH elements.
2872 case $as_dir/ in #((
2873 ./ | .// | /[cC]/* | \
2874 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2875 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2876 /usr/ucb/* ) ;;
2878 # OSF1 and SCO ODT 3.0 have their own names for install.
2879 # Don't use installbsd from OSF since it installs stuff as root
2880 # by default.
2881 for ac_prog in ginstall scoinst install; do
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2884 if test $ac_prog = install &&
2885 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2886 # AIX install. It has an incompatible calling convention.
2888 elif test $ac_prog = install &&
2889 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2890 # program-specific install script used by HP pwplus--don't use.
2892 else
2893 rm -rf conftest.one conftest.two conftest.dir
2894 echo one > conftest.one
2895 echo two > conftest.two
2896 mkdir conftest.dir
2897 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2898 test -s conftest.one && test -s conftest.two &&
2899 test -s conftest.dir/conftest.one &&
2900 test -s conftest.dir/conftest.two
2901 then
2902 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2903 break 3
2907 done
2908 done
2910 esac
2912 done
2913 IFS=$as_save_IFS
2915 rm -rf conftest.one conftest.two conftest.dir
2918 if test "${ac_cv_path_install+set}" = set; then
2919 INSTALL=$ac_cv_path_install
2920 else
2921 # As a last resort, use the slow shell script. Don't cache a
2922 # value for INSTALL within a source directory, because that will
2923 # break other packages using the cache if that directory is
2924 # removed, or if the value is a relative name.
2925 INSTALL=$ac_install_sh
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2929 $as_echo "$INSTALL" >&6; }
2931 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2932 # It thinks the first close brace ends the variable substitution.
2933 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2935 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2937 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2939 ac_ext=c
2940 ac_cpp='$CPP $CPPFLAGS'
2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944 if test -n "$ac_tool_prefix"; then
2945 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2946 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_CC+:} false; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2966 done
2967 done
2968 IFS=$as_save_IFS
2972 CC=$ac_cv_prog_CC
2973 if test -n "$CC"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975 $as_echo "$CC" >&6; }
2976 else
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2983 if test -z "$ac_cv_prog_CC"; then
2984 ac_ct_CC=$CC
2985 # Extract the first word of "gcc", so it can be a program name with args.
2986 set dummy gcc; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 if test -n "$ac_ct_CC"; then
2993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_ac_ct_CC="gcc"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3006 done
3007 done
3008 IFS=$as_save_IFS
3012 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3013 if test -n "$ac_ct_CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3015 $as_echo "$ac_ct_CC" >&6; }
3016 else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3021 if test "x$ac_ct_CC" = x; then
3022 CC=""
3023 else
3024 case $cross_compiling:$ac_tool_warned in
3025 yes:)
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028 ac_tool_warned=yes ;;
3029 esac
3030 CC=$ac_ct_CC
3032 else
3033 CC="$ac_cv_prog_CC"
3036 if test -z "$CC"; then
3037 if test -n "$ac_tool_prefix"; then
3038 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3039 set dummy ${ac_tool_prefix}cc; ac_word=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if ${ac_cv_prog_CC+:} false; then :
3043 $as_echo_n "(cached) " >&6
3044 else
3045 if test -n "$CC"; then
3046 ac_cv_prog_CC="$CC" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3055 ac_cv_prog_CC="${ac_tool_prefix}cc"
3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 break 2
3059 done
3060 done
3061 IFS=$as_save_IFS
3065 CC=$ac_cv_prog_CC
3066 if test -n "$CC"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3068 $as_echo "$CC" >&6; }
3069 else
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3077 if test -z "$CC"; then
3078 # Extract the first word of "cc", so it can be a program name with args.
3079 set dummy cc; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_CC+:} false; then :
3083 $as_echo_n "(cached) " >&6
3084 else
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 else
3088 ac_prog_rejected=no
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3097 ac_prog_rejected=yes
3098 continue
3100 ac_cv_prog_CC="cc"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3104 done
3105 done
3106 IFS=$as_save_IFS
3108 if test $ac_prog_rejected = yes; then
3109 # We found a bogon in the path, so make sure we never use it.
3110 set dummy $ac_cv_prog_CC
3111 shift
3112 if test $# != 0; then
3113 # We chose a different compiler from the bogus one.
3114 # However, it has the same basename, so the bogon will be chosen
3115 # first if we set CC to just the basename; use the full file name.
3116 shift
3117 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3122 CC=$ac_cv_prog_CC
3123 if test -n "$CC"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3126 else
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3133 if test -z "$CC"; then
3134 if test -n "$ac_tool_prefix"; then
3135 for ac_prog in cl.exe
3137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_CC+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3158 done
3159 done
3160 IFS=$as_save_IFS
3164 CC=$ac_cv_prog_CC
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3174 test -n "$CC" && break
3175 done
3177 if test -z "$CC"; then
3178 ac_ct_CC=$CC
3179 for ac_prog in cl.exe
3181 # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 if test -n "$ac_ct_CC"; then
3189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3194 IFS=$as_save_IFS
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198 ac_cv_prog_ac_ct_CC="$ac_prog"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 break 2
3202 done
3203 done
3204 IFS=$as_save_IFS
3208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3212 else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3218 test -n "$ac_ct_CC" && break
3219 done
3221 if test "x$ac_ct_CC" = x; then
3222 CC=""
3223 else
3224 case $cross_compiling:$ac_tool_warned in
3225 yes:)
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3228 ac_tool_warned=yes ;;
3229 esac
3230 CC=$ac_ct_CC
3237 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $? "no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details" "$LINENO" 5; }
3242 # Provide some information about the compiler.
3243 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3244 set X $ac_compile
3245 ac_compiler=$2
3246 for ac_option in --version -v -V -qversion; do
3247 { { ac_try="$ac_compiler $ac_option >&5"
3248 case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3255 ac_status=$?
3256 if test -s conftest.err; then
3257 sed '10a\
3258 ... rest of stderr output deleted ...
3259 10q' conftest.err >conftest.er1
3260 cat conftest.er1 >&5
3262 rm -f conftest.er1 conftest.err
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }
3265 done
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 /* end confdefs.h. */
3271 main ()
3275 return 0;
3277 _ACEOF
3278 ac_clean_files_save=$ac_clean_files
3279 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3280 # Try to create an executable without -o first, disregard a.out.
3281 # It will help us diagnose broken compilers, and finding out an intuition
3282 # of exeext.
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3284 $as_echo_n "checking whether the C compiler works... " >&6; }
3285 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3287 # The possible output files:
3288 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3290 ac_rmfiles=
3291 for ac_file in $ac_files
3293 case $ac_file in
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3295 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3296 esac
3297 done
3298 rm -f $ac_rmfiles
3300 if { { ac_try="$ac_link_default"
3301 case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304 esac
3305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306 $as_echo "$ac_try_echo"; } >&5
3307 (eval "$ac_link_default") 2>&5
3308 ac_status=$?
3309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310 test $ac_status = 0; }; then :
3311 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3312 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3313 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3314 # so that the user can short-circuit this test for compilers unknown to
3315 # Autoconf.
3316 for ac_file in $ac_files ''
3318 test -f "$ac_file" || continue
3319 case $ac_file in
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3322 [ab].out )
3323 # We found the default executable, but exeext='' is most
3324 # certainly right.
3325 break;;
3326 *.* )
3327 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3328 then :; else
3329 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3331 # We set ac_cv_exeext here because the later test for it is not
3332 # safe: cross compilers may not add the suffix if given an `-o'
3333 # argument, so we may need to know it at that point already.
3334 # Even if this section looks crufty: it has the advantage of
3335 # actually working.
3336 break;;
3338 break;;
3339 esac
3340 done
3341 test "$ac_cv_exeext" = no && ac_cv_exeext=
3343 else
3344 ac_file=''
3346 if test -z "$ac_file"; then :
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 $as_echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354 as_fn_error 77 "C compiler cannot create executables
3355 See \`config.log' for more details" "$LINENO" 5; }
3356 else
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3358 $as_echo "yes" >&6; }
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3361 $as_echo_n "checking for C compiler default output file name... " >&6; }
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3363 $as_echo "$ac_file" >&6; }
3364 ac_exeext=$ac_cv_exeext
3366 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3367 ac_clean_files=$ac_clean_files_save
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3369 $as_echo_n "checking for suffix of executables... " >&6; }
3370 if { { ac_try="$ac_link"
3371 case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374 esac
3375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376 $as_echo "$ac_try_echo"; } >&5
3377 (eval "$ac_link") 2>&5
3378 ac_status=$?
3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380 test $ac_status = 0; }; then :
3381 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3382 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3383 # work properly (i.e., refer to `conftest.exe'), while it won't with
3384 # `rm'.
3385 for ac_file in conftest.exe conftest conftest.*; do
3386 test -f "$ac_file" || continue
3387 case $ac_file in
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3389 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390 break;;
3391 * ) break;;
3392 esac
3393 done
3394 else
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3398 See \`config.log' for more details" "$LINENO" 5; }
3400 rm -f conftest conftest$ac_cv_exeext
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3402 $as_echo "$ac_cv_exeext" >&6; }
3404 rm -f conftest.$ac_ext
3405 EXEEXT=$ac_cv_exeext
3406 ac_exeext=$EXEEXT
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3409 #include <stdio.h>
3411 main ()
3413 FILE *f = fopen ("conftest.out", "w");
3414 return ferror (f) || fclose (f) != 0;
3417 return 0;
3419 _ACEOF
3420 ac_clean_files="$ac_clean_files conftest.out"
3421 # Check that the compiler produces executables we can run. If not, either
3422 # the compiler is broken, or we cross compile.
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3424 $as_echo_n "checking whether we are cross compiling... " >&6; }
3425 if test "$cross_compiling" != yes; then
3426 { { ac_try="$ac_link"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link") 2>&5
3434 ac_status=$?
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }
3437 if { ac_try='./conftest$ac_cv_exeext'
3438 { { case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_try") 2>&5
3445 ac_status=$?
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }; }; then
3448 cross_compiling=no
3449 else
3450 if test "$cross_compiling" = maybe; then
3451 cross_compiling=yes
3452 else
3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error $? "cannot run C compiled programs.
3456 If you meant to cross compile, use \`--host'.
3457 See \`config.log' for more details" "$LINENO" 5; }
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3462 $as_echo "$cross_compiling" >&6; }
3464 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3465 ac_clean_files=$ac_clean_files_save
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3467 $as_echo_n "checking for suffix of object files... " >&6; }
3468 if ${ac_cv_objext+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3475 main ()
3479 return 0;
3481 _ACEOF
3482 rm -f conftest.o conftest.obj
3483 if { { ac_try="$ac_compile"
3484 case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_compile") 2>&5
3491 ac_status=$?
3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493 test $ac_status = 0; }; then :
3494 for ac_file in conftest.o conftest.obj conftest.*; do
3495 test -f "$ac_file" || continue;
3496 case $ac_file in
3497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3498 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3499 break;;
3500 esac
3501 done
3502 else
3503 $as_echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508 as_fn_error $? "cannot compute suffix of object files: cannot compile
3509 See \`config.log' for more details" "$LINENO" 5; }
3511 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3514 $as_echo "$ac_cv_objext" >&6; }
3515 OBJEXT=$ac_cv_objext
3516 ac_objext=$OBJEXT
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3518 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3519 if ${ac_cv_c_compiler_gnu+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3526 main ()
3528 #ifndef __GNUC__
3529 choke me
3530 #endif
3533 return 0;
3535 _ACEOF
3536 if ac_fn_c_try_compile "$LINENO"; then :
3537 ac_compiler_gnu=yes
3538 else
3539 ac_compiler_gnu=no
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3546 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3547 if test $ac_compiler_gnu = yes; then
3548 GCC=yes
3549 else
3550 GCC=
3552 ac_test_CFLAGS=${CFLAGS+set}
3553 ac_save_CFLAGS=$CFLAGS
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3555 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3556 if ${ac_cv_prog_cc_g+:} false; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 ac_save_c_werror_flag=$ac_c_werror_flag
3560 ac_c_werror_flag=yes
3561 ac_cv_prog_cc_g=no
3562 CFLAGS="-g"
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3567 main ()
3571 return 0;
3573 _ACEOF
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_cv_prog_cc_g=yes
3576 else
3577 CFLAGS=""
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3582 main ()
3586 return 0;
3588 _ACEOF
3589 if ac_fn_c_try_compile "$LINENO"; then :
3591 else
3592 ac_c_werror_flag=$ac_save_c_werror_flag
3593 CFLAGS="-g"
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3598 main ()
3602 return 0;
3604 _ACEOF
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_cv_prog_cc_g=yes
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 ac_c_werror_flag=$ac_save_c_werror_flag
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3616 $as_echo "$ac_cv_prog_cc_g" >&6; }
3617 if test "$ac_test_CFLAGS" = set; then
3618 CFLAGS=$ac_save_CFLAGS
3619 elif test $ac_cv_prog_cc_g = yes; then
3620 if test "$GCC" = yes; then
3621 CFLAGS="-g -O2"
3622 else
3623 CFLAGS="-g"
3625 else
3626 if test "$GCC" = yes; then
3627 CFLAGS="-O2"
3628 else
3629 CFLAGS=
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3633 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3634 if ${ac_cv_prog_cc_c89+:} false; then :
3635 $as_echo_n "(cached) " >&6
3636 else
3637 ac_cv_prog_cc_c89=no
3638 ac_save_CC=$CC
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641 #include <stdarg.h>
3642 #include <stdio.h>
3643 struct stat;
3644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3645 struct buf { int x; };
3646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3647 static char *e (p, i)
3648 char **p;
3649 int i;
3651 return p[i];
3653 static char *f (char * (*g) (char **, int), char **p, ...)
3655 char *s;
3656 va_list v;
3657 va_start (v,p);
3658 s = g (p, va_arg (v,int));
3659 va_end (v);
3660 return s;
3663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3664 function prototypes and stuff, but not '\xHH' hex character constants.
3665 These don't provoke an error unfortunately, instead are silently treated
3666 as 'x'. The following induces an error, until -std is added to get
3667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3668 array size at least. It's necessary to write '\x00'==0 to get something
3669 that's true only with -std. */
3670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3673 inside strings and character constants. */
3674 #define FOO(x) 'x'
3675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3677 int test (int i, double x);
3678 struct s1 {int (*f) (int a);};
3679 struct s2 {int (*f) (double a);};
3680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3681 int argc;
3682 char **argv;
3684 main ()
3686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3688 return 0;
3690 _ACEOF
3691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3694 CC="$ac_save_CC $ac_arg"
3695 if ac_fn_c_try_compile "$LINENO"; then :
3696 ac_cv_prog_cc_c89=$ac_arg
3698 rm -f core conftest.err conftest.$ac_objext
3699 test "x$ac_cv_prog_cc_c89" != "xno" && break
3700 done
3701 rm -f conftest.$ac_ext
3702 CC=$ac_save_CC
3705 # AC_CACHE_VAL
3706 case "x$ac_cv_prog_cc_c89" in
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3709 $as_echo "none needed" >&6; } ;;
3710 xno)
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3712 $as_echo "unsupported" >&6; } ;;
3714 CC="$CC $ac_cv_prog_cc_c89"
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3716 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3717 esac
3718 if test "x$ac_cv_prog_cc_c89" != xno; then :
3722 ac_ext=c
3723 ac_cpp='$CPP $CPPFLAGS'
3724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3728 ac_ext=cpp
3729 ac_cpp='$CXXCPP $CPPFLAGS'
3730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3733 if test -z "$CXX"; then
3734 if test -n "$CCC"; then
3735 CXX=$CCC
3736 else
3737 if test -n "$ac_tool_prefix"; then
3738 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_CXX+:} false; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 if test -n "$CXX"; then
3748 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3761 done
3762 done
3763 IFS=$as_save_IFS
3767 CXX=$ac_cv_prog_CXX
3768 if test -n "$CXX"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3770 $as_echo "$CXX" >&6; }
3771 else
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3777 test -n "$CXX" && break
3778 done
3780 if test -z "$CXX"; then
3781 ac_ct_CXX=$CXX
3782 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3784 # Extract the first word of "$ac_prog", so it can be a program name with args.
3785 set dummy $ac_prog; ac_word=$2
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 $as_echo_n "checking for $ac_word... " >&6; }
3788 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3789 $as_echo_n "(cached) " >&6
3790 else
3791 if test -n "$ac_ct_CXX"; then
3792 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_ac_ct_CXX="$ac_prog"
3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 break 2
3805 done
3806 done
3807 IFS=$as_save_IFS
3811 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3812 if test -n "$ac_ct_CXX"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3814 $as_echo "$ac_ct_CXX" >&6; }
3815 else
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 $as_echo "no" >&6; }
3821 test -n "$ac_ct_CXX" && break
3822 done
3824 if test "x$ac_ct_CXX" = x; then
3825 CXX="g++"
3826 else
3827 case $cross_compiling:$ac_tool_warned in
3828 yes:)
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3831 ac_tool_warned=yes ;;
3832 esac
3833 CXX=$ac_ct_CXX
3839 # Provide some information about the compiler.
3840 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3841 set X $ac_compile
3842 ac_compiler=$2
3843 for ac_option in --version -v -V -qversion; do
3844 { { ac_try="$ac_compiler $ac_option >&5"
3845 case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848 esac
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 $as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3852 ac_status=$?
3853 if test -s conftest.err; then
3854 sed '10a\
3855 ... rest of stderr output deleted ...
3856 10q' conftest.err >conftest.er1
3857 cat conftest.er1 >&5
3859 rm -f conftest.er1 conftest.err
3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861 test $ac_status = 0; }
3862 done
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3865 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3866 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3867 $as_echo_n "(cached) " >&6
3868 else
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3873 main ()
3875 #ifndef __GNUC__
3876 choke me
3877 #endif
3880 return 0;
3882 _ACEOF
3883 if ac_fn_cxx_try_compile "$LINENO"; then :
3884 ac_compiler_gnu=yes
3885 else
3886 ac_compiler_gnu=no
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3893 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3894 if test $ac_compiler_gnu = yes; then
3895 GXX=yes
3896 else
3897 GXX=
3899 ac_test_CXXFLAGS=${CXXFLAGS+set}
3900 ac_save_CXXFLAGS=$CXXFLAGS
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3902 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3903 if ${ac_cv_prog_cxx_g+:} false; then :
3904 $as_echo_n "(cached) " >&6
3905 else
3906 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3907 ac_cxx_werror_flag=yes
3908 ac_cv_prog_cxx_g=no
3909 CXXFLAGS="-g"
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3914 main ()
3918 return 0;
3920 _ACEOF
3921 if ac_fn_cxx_try_compile "$LINENO"; then :
3922 ac_cv_prog_cxx_g=yes
3923 else
3924 CXXFLAGS=""
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3929 main ()
3933 return 0;
3935 _ACEOF
3936 if ac_fn_cxx_try_compile "$LINENO"; then :
3938 else
3939 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3940 CXXFLAGS="-g"
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3945 main ()
3949 return 0;
3951 _ACEOF
3952 if ac_fn_cxx_try_compile "$LINENO"; then :
3953 ac_cv_prog_cxx_g=yes
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3963 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3964 if test "$ac_test_CXXFLAGS" = set; then
3965 CXXFLAGS=$ac_save_CXXFLAGS
3966 elif test $ac_cv_prog_cxx_g = yes; then
3967 if test "$GXX" = yes; then
3968 CXXFLAGS="-g -O2"
3969 else
3970 CXXFLAGS="-g"
3972 else
3973 if test "$GXX" = yes; then
3974 CXXFLAGS="-O2"
3975 else
3976 CXXFLAGS=
3979 ac_ext=c
3980 ac_cpp='$CPP $CPPFLAGS'
3981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3985 if test -n "$ac_tool_prefix"; then
3986 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3987 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989 $as_echo_n "checking for $ac_word... " >&6; }
3990 if ${ac_cv_prog_RANLIB+:} false; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 if test -n "$RANLIB"; then
3994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3995 else
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 break 2
4007 done
4008 done
4009 IFS=$as_save_IFS
4013 RANLIB=$ac_cv_prog_RANLIB
4014 if test -n "$RANLIB"; then
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4016 $as_echo "$RANLIB" >&6; }
4017 else
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019 $as_echo "no" >&6; }
4024 if test -z "$ac_cv_prog_RANLIB"; then
4025 ac_ct_RANLIB=$RANLIB
4026 # Extract the first word of "ranlib", so it can be a program name with args.
4027 set dummy ranlib; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 if test -n "$ac_ct_RANLIB"; then
4034 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4035 else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4043 ac_cv_prog_ac_ct_RANLIB="ranlib"
4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 break 2
4047 done
4048 done
4049 IFS=$as_save_IFS
4053 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4054 if test -n "$ac_ct_RANLIB"; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4056 $as_echo "$ac_ct_RANLIB" >&6; }
4057 else
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4062 if test "x$ac_ct_RANLIB" = x; then
4063 RANLIB=":"
4064 else
4065 case $cross_compiling:$ac_tool_warned in
4066 yes:)
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4069 ac_tool_warned=yes ;;
4070 esac
4071 RANLIB=$ac_ct_RANLIB
4073 else
4074 RANLIB="$ac_cv_prog_RANLIB"
4077 if test -n "$ac_tool_prefix"; then
4078 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4079 set dummy ${ac_tool_prefix}ar; ac_word=$2
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 $as_echo_n "checking for $ac_word... " >&6; }
4082 if ${ac_cv_prog_AR+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test -n "$AR"; then
4086 ac_cv_prog_AR="$AR" # Let the user override the test.
4087 else
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4095 ac_cv_prog_AR="${ac_tool_prefix}ar"
4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 break 2
4099 done
4100 done
4101 IFS=$as_save_IFS
4105 AR=$ac_cv_prog_AR
4106 if test -n "$AR"; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4108 $as_echo "$AR" >&6; }
4109 else
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4116 if test -z "$ac_cv_prog_AR"; then
4117 ac_ct_AR=$AR
4118 # Extract the first word of "ar", so it can be a program name with args.
4119 set dummy ar; ac_word=$2
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 $as_echo_n "checking for $ac_word... " >&6; }
4122 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 if test -n "$ac_ct_AR"; then
4126 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4127 else
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135 ac_cv_prog_ac_ct_AR="ar"
4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4139 done
4140 done
4141 IFS=$as_save_IFS
4145 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4146 if test -n "$ac_ct_AR"; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4148 $as_echo "$ac_ct_AR" >&6; }
4149 else
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4154 if test "x$ac_ct_AR" = x; then
4155 AR=""
4156 else
4157 case $cross_compiling:$ac_tool_warned in
4158 yes:)
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4161 ac_tool_warned=yes ;;
4162 esac
4163 AR=$ac_ct_AR
4165 else
4166 AR="$ac_cv_prog_AR"
4171 ac_ext=c
4172 ac_cpp='$CPP $CPPFLAGS'
4173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4177 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4178 # On Suns, sometimes $CPP names a directory.
4179 if test -n "$CPP" && test -d "$CPP"; then
4180 CPP=
4182 if test -z "$CPP"; then
4183 if ${ac_cv_prog_CPP+:} false; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 # Double quotes because CPP needs to be expanded
4187 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4189 ac_preproc_ok=false
4190 for ac_c_preproc_warn_flag in '' yes
4192 # Use a header file that comes with gcc, so configuring glibc
4193 # with a fresh cross-compiler works.
4194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195 # <limits.h> exists even on freestanding compilers.
4196 # On the NeXT, cc -E runs the code through the compiler's parser,
4197 # not just through cpp. "Syntax error" is here to catch this case.
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200 #ifdef __STDC__
4201 # include <limits.h>
4202 #else
4203 # include <assert.h>
4204 #endif
4205 Syntax error
4206 _ACEOF
4207 if ac_fn_c_try_cpp "$LINENO"; then :
4209 else
4210 # Broken: fails on valid input.
4211 continue
4213 rm -f conftest.err conftest.i conftest.$ac_ext
4215 # OK, works on sane cases. Now check whether nonexistent headers
4216 # can be detected and how.
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219 #include <ac_nonexistent.h>
4220 _ACEOF
4221 if ac_fn_c_try_cpp "$LINENO"; then :
4222 # Broken: success on invalid input.
4223 continue
4224 else
4225 # Passes both tests.
4226 ac_preproc_ok=:
4227 break
4229 rm -f conftest.err conftest.i conftest.$ac_ext
4231 done
4232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4233 rm -f conftest.i conftest.err conftest.$ac_ext
4234 if $ac_preproc_ok; then :
4235 break
4238 done
4239 ac_cv_prog_CPP=$CPP
4242 CPP=$ac_cv_prog_CPP
4243 else
4244 ac_cv_prog_CPP=$CPP
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4247 $as_echo "$CPP" >&6; }
4248 ac_preproc_ok=false
4249 for ac_c_preproc_warn_flag in '' yes
4251 # Use a header file that comes with gcc, so configuring glibc
4252 # with a fresh cross-compiler works.
4253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4254 # <limits.h> exists even on freestanding compilers.
4255 # On the NeXT, cc -E runs the code through the compiler's parser,
4256 # not just through cpp. "Syntax error" is here to catch this case.
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259 #ifdef __STDC__
4260 # include <limits.h>
4261 #else
4262 # include <assert.h>
4263 #endif
4264 Syntax error
4265 _ACEOF
4266 if ac_fn_c_try_cpp "$LINENO"; then :
4268 else
4269 # Broken: fails on valid input.
4270 continue
4272 rm -f conftest.err conftest.i conftest.$ac_ext
4274 # OK, works on sane cases. Now check whether nonexistent headers
4275 # can be detected and how.
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278 #include <ac_nonexistent.h>
4279 _ACEOF
4280 if ac_fn_c_try_cpp "$LINENO"; then :
4281 # Broken: success on invalid input.
4282 continue
4283 else
4284 # Passes both tests.
4285 ac_preproc_ok=:
4286 break
4288 rm -f conftest.err conftest.i conftest.$ac_ext
4290 done
4291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4292 rm -f conftest.i conftest.err conftest.$ac_ext
4293 if $ac_preproc_ok; then :
4295 else
4296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4298 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4299 See \`config.log' for more details" "$LINENO" 5; }
4302 ac_ext=c
4303 ac_cpp='$CPP $CPPFLAGS'
4304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4310 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4311 if ${ac_cv_path_GREP+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if test -z "$GREP"; then
4315 ac_path_GREP_found=false
4316 # Loop through the user's path and test for each of PROGNAME-LIST
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_prog in grep ggrep; do
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4325 as_fn_executable_p "$ac_path_GREP" || continue
4326 # Check for GNU ac_path_GREP and select it if it is found.
4327 # Check for GNU $ac_path_GREP
4328 case `"$ac_path_GREP" --version 2>&1` in
4329 *GNU*)
4330 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4332 ac_count=0
4333 $as_echo_n 0123456789 >"conftest.in"
4334 while :
4336 cat "conftest.in" "conftest.in" >"conftest.tmp"
4337 mv "conftest.tmp" "conftest.in"
4338 cp "conftest.in" "conftest.nl"
4339 $as_echo 'GREP' >> "conftest.nl"
4340 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4342 as_fn_arith $ac_count + 1 && ac_count=$as_val
4343 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4344 # Best one so far, save it but keep looking for a better one
4345 ac_cv_path_GREP="$ac_path_GREP"
4346 ac_path_GREP_max=$ac_count
4348 # 10*(2^10) chars as input seems more than enough
4349 test $ac_count -gt 10 && break
4350 done
4351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4352 esac
4354 $ac_path_GREP_found && break 3
4355 done
4356 done
4357 done
4358 IFS=$as_save_IFS
4359 if test -z "$ac_cv_path_GREP"; then
4360 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4362 else
4363 ac_cv_path_GREP=$GREP
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4368 $as_echo "$ac_cv_path_GREP" >&6; }
4369 GREP="$ac_cv_path_GREP"
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4373 $as_echo_n "checking for egrep... " >&6; }
4374 if ${ac_cv_path_EGREP+:} false; then :
4375 $as_echo_n "(cached) " >&6
4376 else
4377 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4378 then ac_cv_path_EGREP="$GREP -E"
4379 else
4380 if test -z "$EGREP"; then
4381 ac_path_EGREP_found=false
4382 # Loop through the user's path and test for each of PROGNAME-LIST
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_prog in egrep; do
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4391 as_fn_executable_p "$ac_path_EGREP" || continue
4392 # Check for GNU ac_path_EGREP and select it if it is found.
4393 # Check for GNU $ac_path_EGREP
4394 case `"$ac_path_EGREP" --version 2>&1` in
4395 *GNU*)
4396 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4398 ac_count=0
4399 $as_echo_n 0123456789 >"conftest.in"
4400 while :
4402 cat "conftest.in" "conftest.in" >"conftest.tmp"
4403 mv "conftest.tmp" "conftest.in"
4404 cp "conftest.in" "conftest.nl"
4405 $as_echo 'EGREP' >> "conftest.nl"
4406 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4408 as_fn_arith $ac_count + 1 && ac_count=$as_val
4409 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4410 # Best one so far, save it but keep looking for a better one
4411 ac_cv_path_EGREP="$ac_path_EGREP"
4412 ac_path_EGREP_max=$ac_count
4414 # 10*(2^10) chars as input seems more than enough
4415 test $ac_count -gt 10 && break
4416 done
4417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4418 esac
4420 $ac_path_EGREP_found && break 3
4421 done
4422 done
4423 done
4424 IFS=$as_save_IFS
4425 if test -z "$ac_cv_path_EGREP"; then
4426 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4428 else
4429 ac_cv_path_EGREP=$EGREP
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4435 $as_echo "$ac_cv_path_EGREP" >&6; }
4436 EGREP="$ac_cv_path_EGREP"
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4440 $as_echo_n "checking for ANSI C header files... " >&6; }
4441 if ${ac_cv_header_stdc+:} false; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #include <stdlib.h>
4447 #include <stdarg.h>
4448 #include <string.h>
4449 #include <float.h>
4452 main ()
4456 return 0;
4458 _ACEOF
4459 if ac_fn_c_try_compile "$LINENO"; then :
4460 ac_cv_header_stdc=yes
4461 else
4462 ac_cv_header_stdc=no
4464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466 if test $ac_cv_header_stdc = yes; then
4467 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 #include <string.h>
4472 _ACEOF
4473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474 $EGREP "memchr" >/dev/null 2>&1; then :
4476 else
4477 ac_cv_header_stdc=no
4479 rm -f conftest*
4483 if test $ac_cv_header_stdc = yes; then
4484 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487 #include <stdlib.h>
4489 _ACEOF
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 $EGREP "free" >/dev/null 2>&1; then :
4493 else
4494 ac_cv_header_stdc=no
4496 rm -f conftest*
4500 if test $ac_cv_header_stdc = yes; then
4501 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4502 if test "$cross_compiling" = yes; then :
4504 else
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507 #include <ctype.h>
4508 #include <stdlib.h>
4509 #if ((' ' & 0x0FF) == 0x020)
4510 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4511 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4512 #else
4513 # define ISLOWER(c) \
4514 (('a' <= (c) && (c) <= 'i') \
4515 || ('j' <= (c) && (c) <= 'r') \
4516 || ('s' <= (c) && (c) <= 'z'))
4517 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4518 #endif
4520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4522 main ()
4524 int i;
4525 for (i = 0; i < 256; i++)
4526 if (XOR (islower (i), ISLOWER (i))
4527 || toupper (i) != TOUPPER (i))
4528 return 2;
4529 return 0;
4531 _ACEOF
4532 if ac_fn_c_try_run "$LINENO"; then :
4534 else
4535 ac_cv_header_stdc=no
4537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4538 conftest.$ac_objext conftest.beam conftest.$ac_ext
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4544 $as_echo "$ac_cv_header_stdc" >&6; }
4545 if test $ac_cv_header_stdc = yes; then
4547 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4551 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4552 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4553 inttypes.h stdint.h unistd.h
4554 do :
4555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4556 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4558 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4559 cat >>confdefs.h <<_ACEOF
4560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4561 _ACEOF
4565 done
4569 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4570 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4571 MINIX=yes
4572 else
4573 MINIX=
4577 if test "$MINIX" = yes; then
4579 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4582 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4585 $as_echo "#define _MINIX 1" >>confdefs.h
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4591 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4592 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4598 # define __EXTENSIONS__ 1
4599 $ac_includes_default
4601 main ()
4605 return 0;
4607 _ACEOF
4608 if ac_fn_c_try_compile "$LINENO"; then :
4609 ac_cv_safe_to_define___extensions__=yes
4610 else
4611 ac_cv_safe_to_define___extensions__=no
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4616 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4617 test $ac_cv_safe_to_define___extensions__ = yes &&
4618 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4620 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4622 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4624 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4626 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4629 # Check whether --enable-largefile was given.
4630 if test "${enable_largefile+set}" = set; then :
4631 enableval=$enable_largefile;
4634 if test "$enable_largefile" != no; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4637 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4638 if ${ac_cv_sys_largefile_CC+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 ac_cv_sys_largefile_CC=no
4642 if test "$GCC" != yes; then
4643 ac_save_CC=$CC
4644 while :; do
4645 # IRIX 6.2 and later do not support large files by default,
4646 # so use the C compiler's -n32 option if that helps.
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649 #include <sys/types.h>
4650 /* Check that off_t can represent 2**63 - 1 correctly.
4651 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4652 since some C++ compilers masquerading as C compilers
4653 incorrectly reject 9223372036854775807. */
4654 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4655 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4656 && LARGE_OFF_T % 2147483647 == 1)
4657 ? 1 : -1];
4659 main ()
4663 return 0;
4665 _ACEOF
4666 if ac_fn_c_try_compile "$LINENO"; then :
4667 break
4669 rm -f core conftest.err conftest.$ac_objext
4670 CC="$CC -n32"
4671 if ac_fn_c_try_compile "$LINENO"; then :
4672 ac_cv_sys_largefile_CC=' -n32'; break
4674 rm -f core conftest.err conftest.$ac_objext
4675 break
4676 done
4677 CC=$ac_save_CC
4678 rm -f conftest.$ac_ext
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4682 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4683 if test "$ac_cv_sys_largefile_CC" != no; then
4684 CC=$CC$ac_cv_sys_largefile_CC
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4688 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4689 if ${ac_cv_sys_file_offset_bits+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 while :; do
4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4695 #include <sys/types.h>
4696 /* Check that off_t can represent 2**63 - 1 correctly.
4697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4698 since some C++ compilers masquerading as C compilers
4699 incorrectly reject 9223372036854775807. */
4700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4702 && LARGE_OFF_T % 2147483647 == 1)
4703 ? 1 : -1];
4705 main ()
4709 return 0;
4711 _ACEOF
4712 if ac_fn_c_try_compile "$LINENO"; then :
4713 ac_cv_sys_file_offset_bits=no; break
4715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4718 #define _FILE_OFFSET_BITS 64
4719 #include <sys/types.h>
4720 /* Check that off_t can represent 2**63 - 1 correctly.
4721 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4722 since some C++ compilers masquerading as C compilers
4723 incorrectly reject 9223372036854775807. */
4724 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4725 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4726 && LARGE_OFF_T % 2147483647 == 1)
4727 ? 1 : -1];
4729 main ()
4733 return 0;
4735 _ACEOF
4736 if ac_fn_c_try_compile "$LINENO"; then :
4737 ac_cv_sys_file_offset_bits=64; break
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 ac_cv_sys_file_offset_bits=unknown
4741 break
4742 done
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4745 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4746 case $ac_cv_sys_file_offset_bits in #(
4747 no | unknown) ;;
4749 cat >>confdefs.h <<_ACEOF
4750 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4751 _ACEOF
4753 esac
4754 rm -rf conftest*
4755 if test $ac_cv_sys_file_offset_bits = unknown; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4757 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4758 if ${ac_cv_sys_large_files+:} false; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 while :; do
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4764 #include <sys/types.h>
4765 /* Check that off_t can represent 2**63 - 1 correctly.
4766 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4767 since some C++ compilers masquerading as C compilers
4768 incorrectly reject 9223372036854775807. */
4769 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4771 && LARGE_OFF_T % 2147483647 == 1)
4772 ? 1 : -1];
4774 main ()
4778 return 0;
4780 _ACEOF
4781 if ac_fn_c_try_compile "$LINENO"; then :
4782 ac_cv_sys_large_files=no; break
4784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4787 #define _LARGE_FILES 1
4788 #include <sys/types.h>
4789 /* Check that off_t can represent 2**63 - 1 correctly.
4790 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4791 since some C++ compilers masquerading as C compilers
4792 incorrectly reject 9223372036854775807. */
4793 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4795 && LARGE_OFF_T % 2147483647 == 1)
4796 ? 1 : -1];
4798 main ()
4802 return 0;
4804 _ACEOF
4805 if ac_fn_c_try_compile "$LINENO"; then :
4806 ac_cv_sys_large_files=1; break
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 ac_cv_sys_large_files=unknown
4810 break
4811 done
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4814 $as_echo "$ac_cv_sys_large_files" >&6; }
4815 case $ac_cv_sys_large_files in #(
4816 no | unknown) ;;
4818 cat >>confdefs.h <<_ACEOF
4819 #define _LARGE_FILES $ac_cv_sys_large_files
4820 _ACEOF
4822 esac
4823 rm -rf conftest*
4830 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4831 for ac_prog in aclocal
4833 # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy $ac_prog; ac_word=$2
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836 $as_echo_n "checking for $ac_word... " >&6; }
4837 if ${ac_cv_prog_ACLOCAL+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 if test -n "$ACLOCAL"; then
4841 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_prog_ACLOCAL="$ac_prog"
4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4854 done
4855 done
4856 IFS=$as_save_IFS
4860 ACLOCAL=$ac_cv_prog_ACLOCAL
4861 if test -n "$ACLOCAL"; then
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4863 $as_echo "$ACLOCAL" >&6; }
4864 else
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 $as_echo "no" >&6; }
4870 test -n "$ACLOCAL" && break
4871 done
4872 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
4874 for ac_prog in autoconf
4876 # Extract the first word of "$ac_prog", so it can be a program name with args.
4877 set dummy $ac_prog; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if ${ac_cv_prog_AUTOCONF+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 if test -n "$AUTOCONF"; then
4884 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4885 else
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893 ac_cv_prog_AUTOCONF="$ac_prog"
4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 break 2
4897 done
4898 done
4899 IFS=$as_save_IFS
4903 AUTOCONF=$ac_cv_prog_AUTOCONF
4904 if test -n "$AUTOCONF"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4906 $as_echo "$AUTOCONF" >&6; }
4907 else
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4913 test -n "$AUTOCONF" && break
4914 done
4915 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
4917 for ac_prog in autoheader
4919 # Extract the first word of "$ac_prog", so it can be a program name with args.
4920 set dummy $ac_prog; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if ${ac_cv_prog_AUTOHEADER+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 if test -n "$AUTOHEADER"; then
4927 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936 ac_cv_prog_AUTOHEADER="$ac_prog"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4940 done
4941 done
4942 IFS=$as_save_IFS
4946 AUTOHEADER=$ac_cv_prog_AUTOHEADER
4947 if test -n "$AUTOHEADER"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4949 $as_echo "$AUTOHEADER" >&6; }
4950 else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4956 test -n "$AUTOHEADER" && break
4957 done
4958 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
4961 if test -z "$ETAGS"; then
4962 ETAGS=etags
4966 # Figure out what compiler warnings we can enable.
4967 # See config/warnings.m4 for details.
4969 ac_ext=c
4970 ac_cpp='$CPP $CPPFLAGS'
4971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975 warn=
4976 save_CFLAGS="$CFLAGS"
4977 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
4978 -Wmissing-format-attribute; do
4979 # Do the check with the no- prefix removed since gcc silently
4980 # accepts any -Wno-* option on purpose
4981 case $real_option in
4982 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4983 *) option=$real_option ;;
4984 esac
4985 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4988 $as_echo_n "checking whether $CC supports $option... " >&6; }
4989 if eval \${$as_acx_Woption+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 CFLAGS="$option"
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4997 main ()
5001 return 0;
5003 _ACEOF
5004 if ac_fn_c_try_compile "$LINENO"; then :
5005 eval "$as_acx_Woption=yes"
5006 else
5007 eval "$as_acx_Woption=no"
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012 eval ac_res=\$$as_acx_Woption
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5014 $as_echo "$ac_res" >&6; }
5015 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5016 warn="$warn${warn:+ }$real_option"
5018 done
5019 CFLAGS="$save_CFLAGS"
5020 ac_ext=c
5021 ac_cpp='$CPP $CPPFLAGS'
5022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5027 ac_ext=c
5028 ac_cpp='$CPP $CPPFLAGS'
5029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5033 c_warn=
5034 save_CFLAGS="$CFLAGS"
5035 for real_option in -Wstrict-prototypes -Wmissing-prototypes \
5036 -Wold-style-definition -Wc++-compat; do
5037 # Do the check with the no- prefix removed since gcc silently
5038 # accepts any -Wno-* option on purpose
5039 case $real_option in
5040 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5041 *) option=$real_option ;;
5042 esac
5043 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5046 $as_echo_n "checking whether $CC supports $option... " >&6; }
5047 if eval \${$as_acx_Woption+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 CFLAGS="$option"
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5055 main ()
5059 return 0;
5061 _ACEOF
5062 if ac_fn_c_try_compile "$LINENO"; then :
5063 eval "$as_acx_Woption=yes"
5064 else
5065 eval "$as_acx_Woption=no"
5067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070 eval ac_res=\$$as_acx_Woption
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5072 $as_echo "$ac_res" >&6; }
5073 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5074 c_warn="$c_warn${c_warn:+ }$real_option"
5076 done
5077 CFLAGS="$save_CFLAGS"
5078 ac_ext=c
5079 ac_cpp='$CPP $CPPFLAGS'
5080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5085 ac_ext=c
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091 WARN_PEDANTIC=
5092 # Do the check with the no- prefix removed from the warning options
5093 # since gcc silently accepts any -Wno-* option on purpose
5094 if test "$GCC" = yes; then :
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
5096 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
5097 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 save_CFLAGS="$CFLAGS"
5101 CFLAGS="-pedantic -Wlong-long"
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h. */
5106 main ()
5110 return 0;
5112 _ACEOF
5113 if ac_fn_c_try_compile "$LINENO"; then :
5114 acx_cv_prog_cc_pedantic__Wlong_long=yes
5115 else
5116 acx_cv_prog_cc_pedantic__Wlong_long=no
5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 CFLAGS="$save_CFLAGS"
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
5122 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
5123 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
5124 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
5128 ac_ext=c
5129 ac_cpp='$CPP $CPPFLAGS'
5130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136 # Disable exceptions and RTTI if building with g++
5137 ac_ext=c
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143 noexception_flags=
5144 save_CFLAGS="$CFLAGS"
5145 for real_option in -fno-exceptions -fno-rtti; do
5146 # Do the check with the no- prefix removed since gcc silently
5147 # accepts any -Wno-* option on purpose
5148 case $real_option in
5149 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5150 *) option=$real_option ;;
5151 esac
5152 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5155 $as_echo_n "checking whether $CC supports $option... " >&6; }
5156 if eval \${$as_acx_Woption+:} false; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 CFLAGS="$option"
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5164 main ()
5168 return 0;
5170 _ACEOF
5171 if ac_fn_c_try_compile "$LINENO"; then :
5172 eval "$as_acx_Woption=yes"
5173 else
5174 eval "$as_acx_Woption=no"
5176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 eval ac_res=\$$as_acx_Woption
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5181 $as_echo "$ac_res" >&6; }
5182 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5183 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
5185 done
5186 CFLAGS="$save_CFLAGS"
5187 ac_ext=c
5188 ac_cpp='$CPP $CPPFLAGS'
5189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195 # Only enable with --enable-werror-always until existing warnings are
5196 # corrected.
5197 ac_ext=c
5198 ac_cpp='$CPP $CPPFLAGS'
5199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203 WERROR=
5204 # Check whether --enable-werror-always was given.
5205 if test "${enable_werror_always+set}" = set; then :
5206 enableval=$enable_werror_always;
5207 else
5208 enable_werror_always=no
5211 if test $enable_werror_always = yes; then :
5212 WERROR="$WERROR${WERROR:+ }-Werror"
5215 ac_ext=c
5216 ac_cpp='$CPP $CPPFLAGS'
5217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5223 # Dependency checking.
5224 rm -rf .tst 2>/dev/null
5225 mkdir .tst 2>/dev/null
5226 if test -d .tst; then
5227 am__leading_dot=.
5228 else
5229 am__leading_dot=_
5231 rmdir .tst 2>/dev/null
5233 DEPDIR="${am__leading_dot}deps"
5235 ac_config_commands="$ac_config_commands depdir"
5238 ac_ext=cpp
5239 ac_cpp='$CXXCPP $CPPFLAGS'
5240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5247 int i;
5248 _ACEOF
5249 if ac_fn_cxx_try_compile "$LINENO"; then :
5251 else
5252 as_fn_error $? "C++ compiler missing or inoperational" "$LINENO" 5
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 ac_ext=c
5256 ac_cpp='$CPP $CPPFLAGS'
5257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5261 depcc="$CXX" am_compiler_list=
5263 am_depcomp=$ac_aux_dir/depcomp
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5265 $as_echo_n "checking dependency style of $depcc... " >&6; }
5266 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 if test -f "$am_depcomp"; then
5270 # We make a subdir and do the tests there. Otherwise we can end up
5271 # making bogus files that we don't know about and never remove. For
5272 # instance it was reported that on HP-UX the gcc test will end up
5273 # making a dummy file named `D' -- because `-MD' means `put the output
5274 # in D'.
5275 mkdir conftest.dir
5276 # Copy depcomp to subdir because otherwise we won't find it if we're
5277 # using a relative directory.
5278 cp "$am_depcomp" conftest.dir
5279 cd conftest.dir
5280 # We will build objects and dependencies in a subdirectory because
5281 # it helps to detect inapplicable dependency modes. For instance
5282 # both Tru64's cc and ICC support -MD to output dependencies as a
5283 # side effect of compilation, but ICC will put the dependencies in
5284 # the current directory while Tru64 will put them in the object
5285 # directory.
5286 mkdir sub
5288 am_cv_CXX_dependencies_compiler_type=none
5289 if test "$am_compiler_list" = ""; then
5290 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5292 for depmode in $am_compiler_list; do
5293 if test $depmode = none; then break; fi
5295 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5296 # Setup a source with many dependencies, because some compilers
5297 # like to wrap large dependency lists on column 80 (with \), and
5298 # we should not choose a depcomp mode which is confused by this.
5300 # We need to recreate these files for each test, as the compiler may
5301 # overwrite some of them when testing with obscure command lines.
5302 # This happens at least with the AIX C compiler.
5303 : > sub/conftest.c
5304 for i in 1 2 3 4 5 6; do
5305 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5306 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5307 # Solaris 8's {/usr,}/bin/sh.
5308 touch sub/conftst$i.h
5309 done
5310 echo "include sub/conftest.Po" > confmf
5312 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5313 # mode. It turns out that the SunPro C++ compiler does not properly
5314 # handle `-M -o', and we need to detect this.
5315 depcmd="depmode=$depmode \
5316 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5317 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5318 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5319 echo "| $depcmd" | sed -e 's/ */ /g' >&5
5320 if env $depcmd > conftest.err 2>&1 &&
5321 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5322 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5323 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5324 # icc doesn't choke on unknown options, it will just issue warnings
5325 # or remarks (even with -Werror). So we grep stderr for any message
5326 # that says an option was ignored or not supported.
5327 # When given -MP, icc 7.0 and 7.1 complain thusly:
5328 # icc: Command line warning: ignoring option '-M'; no argument required
5329 # The diagnosis changed in icc 8.0:
5330 # icc: Command line remark: option '-MP' not supported
5331 if (grep 'ignoring option' conftest.err ||
5332 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5333 am_cv_CXX_dependencies_compiler_type=$depmode
5334 $as_echo "$as_me:$LINENO: success" >&5
5335 break
5338 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5339 sed -e 's/^/| /' < conftest.err >&5
5340 done
5342 cd ..
5343 rm -rf conftest.dir
5344 else
5345 am_cv_CXX_dependencies_compiler_type=none
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5350 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5351 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
5352 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
5353 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5358 # Checks for header files.
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5360 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5361 if ${ac_cv_header_time+:} false; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5366 #include <sys/types.h>
5367 #include <sys/time.h>
5368 #include <time.h>
5371 main ()
5373 if ((struct tm *) 0)
5374 return 0;
5376 return 0;
5378 _ACEOF
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380 ac_cv_header_time=yes
5381 else
5382 ac_cv_header_time=no
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5387 $as_echo "$ac_cv_header_time" >&6; }
5388 if test $ac_cv_header_time = yes; then
5390 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5395 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5396 if ${gcc_cv_header_string+:} false; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5401 #include <string.h>
5402 #include <strings.h>
5404 main ()
5408 return 0;
5410 _ACEOF
5411 if ac_fn_c_try_compile "$LINENO"; then :
5412 gcc_cv_header_string=yes
5413 else
5414 gcc_cv_header_string=no
5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5419 $as_echo "$gcc_cv_header_string" >&6; }
5420 if test $gcc_cv_header_string = yes; then
5422 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5427 for ac_header in locale.h fcntl.h limits.h stddef.h \
5428 stdlib.h strings.h string.h sys/file.h unistd.h
5429 do :
5430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5431 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5432 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5433 cat >>confdefs.h <<_ACEOF
5434 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5435 _ACEOF
5439 done
5442 # Checks for typedefs, structures, and compiler characteristics.
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5444 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5445 if ${ac_cv_c_bigendian+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 ac_cv_c_bigendian=unknown
5449 # See if we're dealing with a universal compiler.
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 #ifndef __APPLE_CC__
5453 not a universal capable compiler
5454 #endif
5455 typedef int dummy;
5457 _ACEOF
5458 if ac_fn_c_try_compile "$LINENO"; then :
5460 # Check for potential -arch flags. It is not universal unless
5461 # there are at least two -arch flags with different values.
5462 ac_arch=
5463 ac_prev=
5464 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5465 if test -n "$ac_prev"; then
5466 case $ac_word in
5467 i?86 | x86_64 | ppc | ppc64)
5468 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5469 ac_arch=$ac_word
5470 else
5471 ac_cv_c_bigendian=universal
5472 break
5475 esac
5476 ac_prev=
5477 elif test "x$ac_word" = "x-arch"; then
5478 ac_prev=arch
5480 done
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 if test $ac_cv_c_bigendian = unknown; then
5484 # See if sys/param.h defines the BYTE_ORDER macro.
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487 #include <sys/types.h>
5488 #include <sys/param.h>
5491 main ()
5493 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5494 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5495 && LITTLE_ENDIAN)
5496 bogus endian macros
5497 #endif
5500 return 0;
5502 _ACEOF
5503 if ac_fn_c_try_compile "$LINENO"; then :
5504 # It does; now see whether it defined to BIG_ENDIAN or not.
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5507 #include <sys/types.h>
5508 #include <sys/param.h>
5511 main ()
5513 #if BYTE_ORDER != BIG_ENDIAN
5514 not big endian
5515 #endif
5518 return 0;
5520 _ACEOF
5521 if ac_fn_c_try_compile "$LINENO"; then :
5522 ac_cv_c_bigendian=yes
5523 else
5524 ac_cv_c_bigendian=no
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 if test $ac_cv_c_bigendian = unknown; then
5531 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 #include <limits.h>
5537 main ()
5539 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5540 bogus endian macros
5541 #endif
5544 return 0;
5546 _ACEOF
5547 if ac_fn_c_try_compile "$LINENO"; then :
5548 # It does; now see whether it defined to _BIG_ENDIAN or not.
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 #include <limits.h>
5554 main ()
5556 #ifndef _BIG_ENDIAN
5557 not big endian
5558 #endif
5561 return 0;
5563 _ACEOF
5564 if ac_fn_c_try_compile "$LINENO"; then :
5565 ac_cv_c_bigendian=yes
5566 else
5567 ac_cv_c_bigendian=no
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 if test $ac_cv_c_bigendian = unknown; then
5574 # Compile a test program.
5575 if test "$cross_compiling" = yes; then :
5576 # Try to guess by grepping values from an object file.
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 short int ascii_mm[] =
5580 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5581 short int ascii_ii[] =
5582 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5583 int use_ascii (int i) {
5584 return ascii_mm[i] + ascii_ii[i];
5586 short int ebcdic_ii[] =
5587 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5588 short int ebcdic_mm[] =
5589 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5590 int use_ebcdic (int i) {
5591 return ebcdic_mm[i] + ebcdic_ii[i];
5593 extern int foo;
5596 main ()
5598 return use_ascii (foo) == use_ebcdic (foo);
5600 return 0;
5602 _ACEOF
5603 if ac_fn_c_try_compile "$LINENO"; then :
5604 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5605 ac_cv_c_bigendian=yes
5607 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5608 if test "$ac_cv_c_bigendian" = unknown; then
5609 ac_cv_c_bigendian=no
5610 else
5611 # finding both strings is unlikely to happen, but who knows?
5612 ac_cv_c_bigendian=unknown
5616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5617 else
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 $ac_includes_default
5622 main ()
5625 /* Are we little or big endian? From Harbison&Steele. */
5626 union
5628 long int l;
5629 char c[sizeof (long int)];
5630 } u;
5631 u.l = 1;
5632 return u.c[sizeof (long int) - 1] == 1;
5635 return 0;
5637 _ACEOF
5638 if ac_fn_c_try_run "$LINENO"; then :
5639 ac_cv_c_bigendian=no
5640 else
5641 ac_cv_c_bigendian=yes
5643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5644 conftest.$ac_objext conftest.beam conftest.$ac_ext
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5650 $as_echo "$ac_cv_c_bigendian" >&6; }
5651 case $ac_cv_c_bigendian in #(
5652 yes)
5653 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5654 ;; #(
5656 ;; #(
5657 universal)
5659 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5661 ;; #(
5663 as_fn_error $? "unknown endianness
5664 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5665 esac
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5668 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5669 if ${ac_cv_c_const+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5676 main ()
5679 #ifndef __cplusplus
5680 /* Ultrix mips cc rejects this sort of thing. */
5681 typedef int charset[2];
5682 const charset cs = { 0, 0 };
5683 /* SunOS 4.1.1 cc rejects this. */
5684 char const *const *pcpcc;
5685 char **ppc;
5686 /* NEC SVR4.0.2 mips cc rejects this. */
5687 struct point {int x, y;};
5688 static struct point const zero = {0,0};
5689 /* AIX XL C 1.02.0.0 rejects this.
5690 It does not let you subtract one const X* pointer from another in
5691 an arm of an if-expression whose if-part is not a constant
5692 expression */
5693 const char *g = "string";
5694 pcpcc = &g + (g ? g-g : 0);
5695 /* HPUX 7.0 cc rejects these. */
5696 ++pcpcc;
5697 ppc = (char**) pcpcc;
5698 pcpcc = (char const *const *) ppc;
5699 { /* SCO 3.2v4 cc rejects this sort of thing. */
5700 char tx;
5701 char *t = &tx;
5702 char const *s = 0 ? (char *) 0 : (char const *) 0;
5704 *t++ = 0;
5705 if (s) return 0;
5707 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5708 int x[] = {25, 17};
5709 const int *foo = &x[0];
5710 ++foo;
5712 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5713 typedef const int *iptr;
5714 iptr p = 0;
5715 ++p;
5717 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5718 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5719 struct s { int j; const int *ap[3]; } bx;
5720 struct s *b = &bx; b->j = 5;
5722 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5723 const int foo = 10;
5724 if (!foo) return 0;
5726 return !cs[0] && !zero.x;
5727 #endif
5730 return 0;
5732 _ACEOF
5733 if ac_fn_c_try_compile "$LINENO"; then :
5734 ac_cv_c_const=yes
5735 else
5736 ac_cv_c_const=no
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5741 $as_echo "$ac_cv_c_const" >&6; }
5742 if test $ac_cv_c_const = no; then
5744 $as_echo "#define const /**/" >>confdefs.h
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5749 $as_echo_n "checking for inline... " >&6; }
5750 if ${ac_cv_c_inline+:} false; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5753 ac_cv_c_inline=no
5754 for ac_kw in inline __inline__ __inline; do
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757 #ifndef __cplusplus
5758 typedef int foo_t;
5759 static $ac_kw foo_t static_foo () {return 0; }
5760 $ac_kw foo_t foo () {return 0; }
5761 #endif
5763 _ACEOF
5764 if ac_fn_c_try_compile "$LINENO"; then :
5765 ac_cv_c_inline=$ac_kw
5767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5768 test "$ac_cv_c_inline" != no && break
5769 done
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5773 $as_echo "$ac_cv_c_inline" >&6; }
5775 case $ac_cv_c_inline in
5776 inline | yes) ;;
5778 case $ac_cv_c_inline in
5779 no) ac_val=;;
5780 *) ac_val=$ac_cv_c_inline;;
5781 esac
5782 cat >>confdefs.h <<_ACEOF
5783 #ifndef __cplusplus
5784 #define inline $ac_val
5785 #endif
5786 _ACEOF
5788 esac
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5791 $as_echo_n "checking for obstacks... " >&6; }
5792 if ${ac_cv_func_obstack+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797 $ac_includes_default
5798 #include "obstack.h"
5800 main ()
5802 struct obstack mem;
5803 #define obstack_chunk_alloc malloc
5804 #define obstack_chunk_free free
5805 obstack_init (&mem);
5806 obstack_free (&mem, 0);
5808 return 0;
5810 _ACEOF
5811 if ac_fn_c_try_link "$LINENO"; then :
5812 ac_cv_func_obstack=yes
5813 else
5814 ac_cv_func_obstack=no
5816 rm -f core conftest.err conftest.$ac_objext \
5817 conftest$ac_exeext conftest.$ac_ext
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5820 $as_echo "$ac_cv_func_obstack" >&6; }
5821 if test $ac_cv_func_obstack = yes; then
5823 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5825 else
5826 case " $LIBOBJS " in
5827 *" obstack.$ac_objext "* ) ;;
5828 *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
5830 esac
5834 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5835 if test "x$ac_cv_type_off_t" = xyes; then :
5837 else
5839 cat >>confdefs.h <<_ACEOF
5840 #define off_t long int
5841 _ACEOF
5845 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5846 if test "x$ac_cv_type_size_t" = xyes; then :
5848 else
5850 cat >>confdefs.h <<_ACEOF
5851 #define size_t unsigned int
5852 _ACEOF
5856 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5857 if test "x$ac_cv_type_ssize_t" = xyes; then :
5859 else
5861 cat >>confdefs.h <<_ACEOF
5862 #define ssize_t int
5863 _ACEOF
5868 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5869 if test "x$ac_cv_type_uintptr_t" = xyes; then :
5871 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5873 else
5874 for ac_type in 'unsigned int' 'unsigned long int' \
5875 'unsigned long long int'; do
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 $ac_includes_default
5880 main ()
5882 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5883 test_array [0] = 0;
5884 return test_array [0];
5887 return 0;
5889 _ACEOF
5890 if ac_fn_c_try_compile "$LINENO"; then :
5892 cat >>confdefs.h <<_ACEOF
5893 #define uintptr_t $ac_type
5894 _ACEOF
5896 ac_type=
5898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899 test -z "$ac_type" && break
5900 done
5904 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5905 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
5907 else
5909 cat >>confdefs.h <<_ACEOF
5910 #define ptrdiff_t int
5911 _ACEOF
5915 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5916 case $ac_cv_c_uint64_t in #(
5917 no|yes) ;; #(
5920 $as_echo "#define _UINT64_T 1" >>confdefs.h
5923 cat >>confdefs.h <<_ACEOF
5924 #define uint64_t $ac_cv_c_uint64_t
5925 _ACEOF
5927 esac
5929 if test x"$ac_cv_c_uint64_t" = x"no"; then
5930 as_fn_error $? "uint64_t not found" "$LINENO" 5
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5933 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5934 if ${ac_cv_struct_tm+:} false; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5939 #include <sys/types.h>
5940 #include <time.h>
5943 main ()
5945 struct tm tm;
5946 int *p = &tm.tm_sec;
5947 return !p;
5949 return 0;
5951 _ACEOF
5952 if ac_fn_c_try_compile "$LINENO"; then :
5953 ac_cv_struct_tm=time.h
5954 else
5955 ac_cv_struct_tm=sys/time.h
5957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5960 $as_echo "$ac_cv_struct_tm" >&6; }
5961 if test $ac_cv_struct_tm = sys/time.h; then
5963 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5967 # The cast to long int works around a bug in the HP C Compiler
5968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5970 # This bug is HP SR number 8606223364.
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5972 $as_echo_n "checking size of int... " >&6; }
5973 if ${ac_cv_sizeof_int+:} false; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5978 else
5979 if test "$ac_cv_type_int" = yes; then
5980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5982 as_fn_error 77 "cannot compute sizeof (int)
5983 See \`config.log' for more details" "$LINENO" 5; }
5984 else
5985 ac_cv_sizeof_int=0
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5991 $as_echo "$ac_cv_sizeof_int" >&6; }
5995 cat >>confdefs.h <<_ACEOF
5996 #define SIZEOF_INT $ac_cv_sizeof_int
5997 _ACEOF
6000 # The cast to long int works around a bug in the HP C Compiler
6001 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6002 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6003 # This bug is HP SR number 8606223364.
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6005 $as_echo_n "checking size of long... " >&6; }
6006 if ${ac_cv_sizeof_long+:} false; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6011 else
6012 if test "$ac_cv_type_long" = yes; then
6013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6015 as_fn_error 77 "cannot compute sizeof (long)
6016 See \`config.log' for more details" "$LINENO" 5; }
6017 else
6018 ac_cv_sizeof_long=0
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6024 $as_echo "$ac_cv_sizeof_long" >&6; }
6028 cat >>confdefs.h <<_ACEOF
6029 #define SIZEOF_LONG $ac_cv_sizeof_long
6030 _ACEOF
6034 for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
6035 do :
6036 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6037 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6038 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6039 cat >>confdefs.h <<_ACEOF
6040 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6041 _ACEOF
6044 done
6046 ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
6047 if test "x$ac_cv_have_decl_abort" = xyes; then :
6048 ac_have_decl=1
6049 else
6050 ac_have_decl=0
6053 cat >>confdefs.h <<_ACEOF
6054 #define HAVE_DECL_ABORT $ac_have_decl
6055 _ACEOF
6056 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
6057 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
6058 ac_have_decl=1
6059 else
6060 ac_have_decl=0
6063 cat >>confdefs.h <<_ACEOF
6064 #define HAVE_DECL_ASPRINTF $ac_have_decl
6065 _ACEOF
6066 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
6067 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
6068 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
6069 ac_have_decl=1
6070 else
6071 ac_have_decl=0
6074 cat >>confdefs.h <<_ACEOF
6075 #define HAVE_DECL_BASENAME $ac_have_decl
6076 _ACEOF
6077 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
6078 if test "x$ac_cv_have_decl_errno" = xyes; then :
6079 ac_have_decl=1
6080 else
6081 ac_have_decl=0
6084 cat >>confdefs.h <<_ACEOF
6085 #define HAVE_DECL_ERRNO $ac_have_decl
6086 _ACEOF
6087 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
6088 if test "x$ac_cv_have_decl_getopt" = xyes; then :
6089 ac_have_decl=1
6090 else
6091 ac_have_decl=0
6094 cat >>confdefs.h <<_ACEOF
6095 #define HAVE_DECL_GETOPT $ac_have_decl
6096 _ACEOF
6097 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6098 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
6099 ac_have_decl=1
6100 else
6101 ac_have_decl=0
6104 cat >>confdefs.h <<_ACEOF
6105 #define HAVE_DECL_VASPRINTF $ac_have_decl
6106 _ACEOF
6108 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
6109 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
6110 ac_have_decl=1
6111 else
6112 ac_have_decl=0
6115 cat >>confdefs.h <<_ACEOF
6116 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
6117 _ACEOF
6118 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
6119 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
6120 ac_have_decl=1
6121 else
6122 ac_have_decl=0
6125 cat >>confdefs.h <<_ACEOF
6126 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
6127 _ACEOF
6128 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
6129 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
6130 ac_have_decl=1
6131 else
6132 ac_have_decl=0
6135 cat >>confdefs.h <<_ACEOF
6136 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
6137 _ACEOF
6138 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
6139 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
6140 ac_have_decl=1
6141 else
6142 ac_have_decl=0
6145 cat >>confdefs.h <<_ACEOF
6146 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
6147 _ACEOF
6148 ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
6149 if test "x$ac_cv_have_decl_fgetc_unlocked" = xyes; then :
6150 ac_have_decl=1
6151 else
6152 ac_have_decl=0
6155 cat >>confdefs.h <<_ACEOF
6156 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
6157 _ACEOF
6158 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
6159 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
6160 ac_have_decl=1
6161 else
6162 ac_have_decl=0
6165 cat >>confdefs.h <<_ACEOF
6166 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
6167 _ACEOF
6168 ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
6169 if test "x$ac_cv_have_decl_fileno_unlocked" = xyes; then :
6170 ac_have_decl=1
6171 else
6172 ac_have_decl=0
6175 cat >>confdefs.h <<_ACEOF
6176 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
6177 _ACEOF
6178 ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
6179 if test "x$ac_cv_have_decl_fprintf_unlocked" = xyes; then :
6180 ac_have_decl=1
6181 else
6182 ac_have_decl=0
6185 cat >>confdefs.h <<_ACEOF
6186 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
6187 _ACEOF
6188 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
6189 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
6190 ac_have_decl=1
6191 else
6192 ac_have_decl=0
6195 cat >>confdefs.h <<_ACEOF
6196 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
6197 _ACEOF
6198 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
6199 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
6200 ac_have_decl=1
6201 else
6202 ac_have_decl=0
6205 cat >>confdefs.h <<_ACEOF
6206 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
6207 _ACEOF
6208 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
6209 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
6210 ac_have_decl=1
6211 else
6212 ac_have_decl=0
6215 cat >>confdefs.h <<_ACEOF
6216 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
6217 _ACEOF
6218 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
6219 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
6220 ac_have_decl=1
6221 else
6222 ac_have_decl=0
6225 cat >>confdefs.h <<_ACEOF
6226 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
6227 _ACEOF
6228 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
6229 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
6230 ac_have_decl=1
6231 else
6232 ac_have_decl=0
6235 cat >>confdefs.h <<_ACEOF
6236 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
6237 _ACEOF
6238 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6239 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
6240 ac_have_decl=1
6241 else
6242 ac_have_decl=0
6245 cat >>confdefs.h <<_ACEOF
6246 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6247 _ACEOF
6248 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
6249 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
6250 ac_have_decl=1
6251 else
6252 ac_have_decl=0
6255 cat >>confdefs.h <<_ACEOF
6256 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
6257 _ACEOF
6258 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
6259 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
6260 ac_have_decl=1
6261 else
6262 ac_have_decl=0
6265 cat >>confdefs.h <<_ACEOF
6266 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
6267 _ACEOF
6270 # Checks for library functions.
6271 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6272 # for constant arguments. Useless!
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6274 $as_echo_n "checking for working alloca.h... " >&6; }
6275 if ${ac_cv_working_alloca_h+:} false; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6280 #include <alloca.h>
6282 main ()
6284 char *p = (char *) alloca (2 * sizeof (int));
6285 if (p) return 0;
6287 return 0;
6289 _ACEOF
6290 if ac_fn_c_try_link "$LINENO"; then :
6291 ac_cv_working_alloca_h=yes
6292 else
6293 ac_cv_working_alloca_h=no
6295 rm -f core conftest.err conftest.$ac_objext \
6296 conftest$ac_exeext conftest.$ac_ext
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6299 $as_echo "$ac_cv_working_alloca_h" >&6; }
6300 if test $ac_cv_working_alloca_h = yes; then
6302 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6307 $as_echo_n "checking for alloca... " >&6; }
6308 if ${ac_cv_func_alloca_works+:} false; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6313 #ifdef __GNUC__
6314 # define alloca __builtin_alloca
6315 #else
6316 # ifdef _MSC_VER
6317 # include <malloc.h>
6318 # define alloca _alloca
6319 # else
6320 # ifdef HAVE_ALLOCA_H
6321 # include <alloca.h>
6322 # else
6323 # ifdef _AIX
6324 #pragma alloca
6325 # else
6326 # ifndef alloca /* predefined by HP cc +Olibcalls */
6327 void *alloca (size_t);
6328 # endif
6329 # endif
6330 # endif
6331 # endif
6332 #endif
6335 main ()
6337 char *p = (char *) alloca (1);
6338 if (p) return 0;
6340 return 0;
6342 _ACEOF
6343 if ac_fn_c_try_link "$LINENO"; then :
6344 ac_cv_func_alloca_works=yes
6345 else
6346 ac_cv_func_alloca_works=no
6348 rm -f core conftest.err conftest.$ac_objext \
6349 conftest$ac_exeext conftest.$ac_ext
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6352 $as_echo "$ac_cv_func_alloca_works" >&6; }
6354 if test $ac_cv_func_alloca_works = yes; then
6356 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6358 else
6359 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6360 # that cause trouble. Some versions do not even contain alloca or
6361 # contain a buggy version. If you still want to use their alloca,
6362 # use ar to extract alloca.o from them instead of compiling alloca.c.
6364 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6366 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6370 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6371 if ${ac_cv_os_cray+:} false; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h. */
6376 #if defined CRAY && ! defined CRAY2
6377 webecray
6378 #else
6379 wenotbecray
6380 #endif
6382 _ACEOF
6383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6384 $EGREP "webecray" >/dev/null 2>&1; then :
6385 ac_cv_os_cray=yes
6386 else
6387 ac_cv_os_cray=no
6389 rm -f conftest*
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6393 $as_echo "$ac_cv_os_cray" >&6; }
6394 if test $ac_cv_os_cray = yes; then
6395 for ac_func in _getb67 GETB67 getb67; do
6396 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6397 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6398 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6400 cat >>confdefs.h <<_ACEOF
6401 #define CRAY_STACKSEG_END $ac_func
6402 _ACEOF
6404 break
6407 done
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6411 $as_echo_n "checking stack direction for C alloca... " >&6; }
6412 if ${ac_cv_c_stack_direction+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 if test "$cross_compiling" = yes; then :
6416 ac_cv_c_stack_direction=0
6417 else
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6420 $ac_includes_default
6422 find_stack_direction (int *addr, int depth)
6424 int dir, dummy = 0;
6425 if (! addr)
6426 addr = &dummy;
6427 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6428 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6429 return dir + dummy;
6433 main (int argc, char **argv)
6435 return find_stack_direction (0, argc + !argv + 20) < 0;
6437 _ACEOF
6438 if ac_fn_c_try_run "$LINENO"; then :
6439 ac_cv_c_stack_direction=1
6440 else
6441 ac_cv_c_stack_direction=-1
6443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6444 conftest.$ac_objext conftest.beam conftest.$ac_ext
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6449 $as_echo "$ac_cv_c_stack_direction" >&6; }
6450 cat >>confdefs.h <<_ACEOF
6451 #define STACK_DIRECTION $ac_cv_c_stack_direction
6452 _ACEOF
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6458 $as_echo_n "checking for ANSI C header files... " >&6; }
6459 if ${ac_cv_header_stdc+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 #include <stdlib.h>
6465 #include <stdarg.h>
6466 #include <string.h>
6467 #include <float.h>
6470 main ()
6474 return 0;
6476 _ACEOF
6477 if ac_fn_c_try_compile "$LINENO"; then :
6478 ac_cv_header_stdc=yes
6479 else
6480 ac_cv_header_stdc=no
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 if test $ac_cv_header_stdc = yes; then
6485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6488 #include <string.h>
6490 _ACEOF
6491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6492 $EGREP "memchr" >/dev/null 2>&1; then :
6494 else
6495 ac_cv_header_stdc=no
6497 rm -f conftest*
6501 if test $ac_cv_header_stdc = yes; then
6502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6505 #include <stdlib.h>
6507 _ACEOF
6508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6509 $EGREP "free" >/dev/null 2>&1; then :
6511 else
6512 ac_cv_header_stdc=no
6514 rm -f conftest*
6518 if test $ac_cv_header_stdc = yes; then
6519 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6520 if test "$cross_compiling" = yes; then :
6522 else
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 #include <ctype.h>
6526 #include <stdlib.h>
6527 #if ((' ' & 0x0FF) == 0x020)
6528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6530 #else
6531 # define ISLOWER(c) \
6532 (('a' <= (c) && (c) <= 'i') \
6533 || ('j' <= (c) && (c) <= 'r') \
6534 || ('s' <= (c) && (c) <= 'z'))
6535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6536 #endif
6538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6540 main ()
6542 int i;
6543 for (i = 0; i < 256; i++)
6544 if (XOR (islower (i), ISLOWER (i))
6545 || toupper (i) != TOUPPER (i))
6546 return 2;
6547 return 0;
6549 _ACEOF
6550 if ac_fn_c_try_run "$LINENO"; then :
6552 else
6553 ac_cv_header_stdc=no
6555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6556 conftest.$ac_objext conftest.beam conftest.$ac_ext
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6562 $as_echo "$ac_cv_header_stdc" >&6; }
6563 if test $ac_cv_header_stdc = yes; then
6565 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6571 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6572 if ${am_cv_langinfo_codeset+:} false; then :
6573 $as_echo_n "(cached) " >&6
6574 else
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6577 #include <langinfo.h>
6579 main ()
6581 char* cs = nl_langinfo(CODESET);
6583 return 0;
6585 _ACEOF
6586 if ac_fn_c_try_link "$LINENO"; then :
6587 am_cv_langinfo_codeset=yes
6588 else
6589 am_cv_langinfo_codeset=no
6591 rm -f core conftest.err conftest.$ac_objext \
6592 conftest$ac_exeext conftest.$ac_ext
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6596 $as_echo "$am_cv_langinfo_codeset" >&6; }
6597 if test $am_cv_langinfo_codeset = yes; then
6599 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6604 MKINSTALLDIRS=
6605 if test -n "$ac_aux_dir"; then
6606 case "$ac_aux_dir" in
6607 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6608 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6609 esac
6611 if test -z "$MKINSTALLDIRS"; then
6612 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6618 $as_echo_n "checking whether NLS is requested... " >&6; }
6619 # Check whether --enable-nls was given.
6620 if test "${enable_nls+set}" = set; then :
6621 enableval=$enable_nls; USE_NLS=$enableval
6622 else
6623 USE_NLS=yes
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6627 $as_echo "$USE_NLS" >&6; }
6634 # Prepare PATH_SEPARATOR.
6635 # The user is always right.
6636 if test "${PATH_SEPARATOR+set}" != set; then
6637 echo "#! /bin/sh" >conf$$.sh
6638 echo "exit 0" >>conf$$.sh
6639 chmod +x conf$$.sh
6640 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6641 PATH_SEPARATOR=';'
6642 else
6643 PATH_SEPARATOR=:
6645 rm -f conf$$.sh
6648 # Find out how to test for executable files. Don't use a zero-byte file,
6649 # as systems may use methods other than mode bits to determine executability.
6650 cat >conf$$.file <<_ASEOF
6651 #! /bin/sh
6652 exit 0
6653 _ASEOF
6654 chmod +x conf$$.file
6655 if test -x conf$$.file >/dev/null 2>&1; then
6656 ac_executable_p="test -x"
6657 else
6658 ac_executable_p="test -f"
6660 rm -f conf$$.file
6662 # Extract the first word of "msgfmt", so it can be a program name with args.
6663 set dummy msgfmt; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if ${ac_cv_path_MSGFMT+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 case "$MSGFMT" in
6670 [\\/]* | ?:[\\/]*)
6671 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6674 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6675 for ac_dir in $PATH; do
6676 IFS="$ac_save_IFS"
6677 test -z "$ac_dir" && ac_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6680 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6681 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6682 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6683 break 2
6686 done
6687 done
6688 IFS="$ac_save_IFS"
6689 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6691 esac
6693 MSGFMT="$ac_cv_path_MSGFMT"
6694 if test "$MSGFMT" != ":"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6696 $as_echo "$MSGFMT" >&6; }
6697 else
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6702 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6703 set dummy gmsgfmt; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_path_GMSGFMT+:} false; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 case $GMSGFMT in
6710 [\\/]* | ?:[\\/]*)
6711 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6717 IFS=$as_save_IFS
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6721 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 break 2
6725 done
6726 done
6727 IFS=$as_save_IFS
6729 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6731 esac
6733 GMSGFMT=$ac_cv_path_GMSGFMT
6734 if test -n "$GMSGFMT"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6736 $as_echo "$GMSGFMT" >&6; }
6737 else
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6745 # Prepare PATH_SEPARATOR.
6746 # The user is always right.
6747 if test "${PATH_SEPARATOR+set}" != set; then
6748 echo "#! /bin/sh" >conf$$.sh
6749 echo "exit 0" >>conf$$.sh
6750 chmod +x conf$$.sh
6751 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6752 PATH_SEPARATOR=';'
6753 else
6754 PATH_SEPARATOR=:
6756 rm -f conf$$.sh
6759 # Find out how to test for executable files. Don't use a zero-byte file,
6760 # as systems may use methods other than mode bits to determine executability.
6761 cat >conf$$.file <<_ASEOF
6762 #! /bin/sh
6763 exit 0
6764 _ASEOF
6765 chmod +x conf$$.file
6766 if test -x conf$$.file >/dev/null 2>&1; then
6767 ac_executable_p="test -x"
6768 else
6769 ac_executable_p="test -f"
6771 rm -f conf$$.file
6773 # Extract the first word of "xgettext", so it can be a program name with args.
6774 set dummy xgettext; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if ${ac_cv_path_XGETTEXT+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 case "$XGETTEXT" in
6781 [\\/]* | ?:[\\/]*)
6782 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6785 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6786 for ac_dir in $PATH; do
6787 IFS="$ac_save_IFS"
6788 test -z "$ac_dir" && ac_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6791 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6792 (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
6793 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6794 break 2
6797 done
6798 done
6799 IFS="$ac_save_IFS"
6800 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6802 esac
6804 XGETTEXT="$ac_cv_path_XGETTEXT"
6805 if test "$XGETTEXT" != ":"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6807 $as_echo "$XGETTEXT" >&6; }
6808 else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6813 rm -f messages.po
6816 # Prepare PATH_SEPARATOR.
6817 # The user is always right.
6818 if test "${PATH_SEPARATOR+set}" != set; then
6819 echo "#! /bin/sh" >conf$$.sh
6820 echo "exit 0" >>conf$$.sh
6821 chmod +x conf$$.sh
6822 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6823 PATH_SEPARATOR=';'
6824 else
6825 PATH_SEPARATOR=:
6827 rm -f conf$$.sh
6830 # Find out how to test for executable files. Don't use a zero-byte file,
6831 # as systems may use methods other than mode bits to determine executability.
6832 cat >conf$$.file <<_ASEOF
6833 #! /bin/sh
6834 exit 0
6835 _ASEOF
6836 chmod +x conf$$.file
6837 if test -x conf$$.file >/dev/null 2>&1; then
6838 ac_executable_p="test -x"
6839 else
6840 ac_executable_p="test -f"
6842 rm -f conf$$.file
6844 # Extract the first word of "msgmerge", so it can be a program name with args.
6845 set dummy msgmerge; ac_word=$2
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if ${ac_cv_path_MSGMERGE+:} false; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 case "$MSGMERGE" in
6852 [\\/]* | ?:[\\/]*)
6853 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6856 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6857 for ac_dir in $PATH; do
6858 IFS="$ac_save_IFS"
6859 test -z "$ac_dir" && ac_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6862 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6863 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6864 break 2
6867 done
6868 done
6869 IFS="$ac_save_IFS"
6870 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6872 esac
6874 MSGMERGE="$ac_cv_path_MSGMERGE"
6875 if test "$MSGMERGE" != ":"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6877 $as_echo "$MSGMERGE" >&6; }
6878 else
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6884 if test "$GMSGFMT" != ":"; then
6885 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6886 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6888 else
6889 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6891 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6892 GMSGFMT=":"
6896 if test "$XGETTEXT" != ":"; then
6897 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6898 (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
6900 else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6902 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6903 XGETTEXT=":"
6905 rm -f messages.po
6908 ac_config_commands="$ac_config_commands default-1"
6912 if test "X$prefix" = "XNONE"; then
6913 acl_final_prefix="$ac_default_prefix"
6914 else
6915 acl_final_prefix="$prefix"
6917 if test "X$exec_prefix" = "XNONE"; then
6918 acl_final_exec_prefix='${prefix}'
6919 else
6920 acl_final_exec_prefix="$exec_prefix"
6922 acl_save_prefix="$prefix"
6923 prefix="$acl_final_prefix"
6924 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6925 prefix="$acl_save_prefix"
6928 # Check whether --with-gnu-ld was given.
6929 if test "${with_gnu_ld+set}" = set; then :
6930 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6931 else
6932 with_gnu_ld=no
6935 # Prepare PATH_SEPARATOR.
6936 # The user is always right.
6937 if test "${PATH_SEPARATOR+set}" != set; then
6938 echo "#! /bin/sh" >conf$$.sh
6939 echo "exit 0" >>conf$$.sh
6940 chmod +x conf$$.sh
6941 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6942 PATH_SEPARATOR=';'
6943 else
6944 PATH_SEPARATOR=:
6946 rm -f conf$$.sh
6948 ac_prog=ld
6949 if test "$GCC" = yes; then
6950 # Check if gcc -print-prog-name=ld gives a path.
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6952 $as_echo_n "checking for ld used by GCC... " >&6; }
6953 case $host in
6954 *-*-mingw*)
6955 # gcc leaves a trailing carriage return which upsets mingw
6956 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6958 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6959 esac
6960 case $ac_prog in
6961 # Accept absolute paths.
6962 [\\/]* | [A-Za-z]:[\\/]*)
6963 re_direlt='/[^/][^/]*/\.\./'
6964 # Canonicalize the path of ld
6965 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6966 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6967 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6968 done
6969 test -z "$LD" && LD="$ac_prog"
6972 # If it fails, then pretend we aren't using GCC.
6973 ac_prog=ld
6976 # If it is relative, then search for the first ld in PATH.
6977 with_gnu_ld=unknown
6979 esac
6980 elif test "$with_gnu_ld" = yes; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6982 $as_echo_n "checking for GNU ld... " >&6; }
6983 else
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6985 $as_echo_n "checking for non-GNU ld... " >&6; }
6987 if ${acl_cv_path_LD+:} false; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 if test -z "$LD"; then
6991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6992 for ac_dir in $PATH; do
6993 test -z "$ac_dir" && ac_dir=.
6994 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6995 acl_cv_path_LD="$ac_dir/$ac_prog"
6996 # Check to see if the program is GNU ld. I'd rather use --version,
6997 # but apparently some GNU ld's only accept -v.
6998 # Break only if it was the GNU/non-GNU ld that we prefer.
6999 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
7000 test "$with_gnu_ld" != no && break
7001 else
7002 test "$with_gnu_ld" != yes && break
7005 done
7006 IFS="$ac_save_ifs"
7007 else
7008 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7012 LD="$acl_cv_path_LD"
7013 if test -n "$LD"; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7015 $as_echo "$LD" >&6; }
7016 else
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7020 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7022 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7023 if ${acl_cv_prog_gnu_ld+:} false; then :
7024 $as_echo_n "(cached) " >&6
7025 else
7026 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7027 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
7028 acl_cv_prog_gnu_ld=yes
7029 else
7030 acl_cv_prog_gnu_ld=no
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7034 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7035 with_gnu_ld=$acl_cv_prog_gnu_ld
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7040 $as_echo_n "checking for shared library run path origin... " >&6; }
7041 if ${acl_cv_rpath+:} false; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7045 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7046 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7047 . ./conftest.sh
7048 rm -f ./conftest.sh
7049 acl_cv_rpath=done
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7053 $as_echo "$acl_cv_rpath" >&6; }
7054 wl="$acl_cv_wl"
7055 libext="$acl_cv_libext"
7056 shlibext="$acl_cv_shlibext"
7057 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7058 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7059 hardcode_direct="$acl_cv_hardcode_direct"
7060 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7061 # Check whether --enable-rpath was given.
7062 if test "${enable_rpath+set}" = set; then :
7063 enableval=$enable_rpath; :
7064 else
7065 enable_rpath=yes
7075 use_additional=yes
7077 acl_save_prefix="$prefix"
7078 prefix="$acl_final_prefix"
7079 acl_save_exec_prefix="$exec_prefix"
7080 exec_prefix="$acl_final_exec_prefix"
7082 eval additional_includedir=\"$includedir\"
7083 eval additional_libdir=\"$libdir\"
7085 exec_prefix="$acl_save_exec_prefix"
7086 prefix="$acl_save_prefix"
7089 # Check whether --with-libiconv-prefix was given.
7090 if test "${with_libiconv_prefix+set}" = set; then :
7091 withval=$with_libiconv_prefix;
7092 if test "X$withval" = "Xno"; then
7093 use_additional=no
7094 else
7095 if test "X$withval" = "X"; then
7097 acl_save_prefix="$prefix"
7098 prefix="$acl_final_prefix"
7099 acl_save_exec_prefix="$exec_prefix"
7100 exec_prefix="$acl_final_exec_prefix"
7102 eval additional_includedir=\"$includedir\"
7103 eval additional_libdir=\"$libdir\"
7105 exec_prefix="$acl_save_exec_prefix"
7106 prefix="$acl_save_prefix"
7108 else
7109 additional_includedir="$withval/include"
7110 additional_libdir="$withval/lib"
7117 # Check whether --with-libiconv-type was given.
7118 if test "${with_libiconv_type+set}" = set; then :
7119 withval=$with_libiconv_type; with_libiconv_type=$withval
7120 else
7121 with_libiconv_type=auto
7124 lib_type=`eval echo \$with_libiconv_type`
7126 LIBICONV=
7127 LTLIBICONV=
7128 INCICONV=
7129 rpathdirs=
7130 ltrpathdirs=
7131 names_already_handled=
7132 names_next_round='iconv '
7133 while test -n "$names_next_round"; do
7134 names_this_round="$names_next_round"
7135 names_next_round=
7136 for name in $names_this_round; do
7137 already_handled=
7138 for n in $names_already_handled; do
7139 if test "$n" = "$name"; then
7140 already_handled=yes
7141 break
7143 done
7144 if test -z "$already_handled"; then
7145 names_already_handled="$names_already_handled $name"
7146 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7147 eval value=\"\$HAVE_LIB$uppername\"
7148 if test -n "$value"; then
7149 if test "$value" = yes; then
7150 eval value=\"\$LIB$uppername\"
7151 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7152 eval value=\"\$LTLIB$uppername\"
7153 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7154 else
7157 else
7158 found_dir=
7159 found_la=
7160 found_so=
7161 found_a=
7162 if test $use_additional = yes; then
7163 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
7164 found_dir="$additional_libdir"
7165 found_so="$additional_libdir/lib$name.$shlibext"
7166 if test -f "$additional_libdir/lib$name.la"; then
7167 found_la="$additional_libdir/lib$name.la"
7169 elif test x$lib_type != xshared; then
7170 if test -f "$additional_libdir/lib$name.$libext"; then
7171 found_dir="$additional_libdir"
7172 found_a="$additional_libdir/lib$name.$libext"
7173 if test -f "$additional_libdir/lib$name.la"; then
7174 found_la="$additional_libdir/lib$name.la"
7179 if test "X$found_dir" = "X"; then
7180 for x in $LDFLAGS $LTLIBICONV; do
7182 acl_save_prefix="$prefix"
7183 prefix="$acl_final_prefix"
7184 acl_save_exec_prefix="$exec_prefix"
7185 exec_prefix="$acl_final_exec_prefix"
7186 eval x=\"$x\"
7187 exec_prefix="$acl_save_exec_prefix"
7188 prefix="$acl_save_prefix"
7190 case "$x" in
7191 -L*)
7192 dir=`echo "X$x" | sed -e 's/^X-L//'`
7193 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
7194 found_dir="$dir"
7195 found_so="$dir/lib$name.$shlibext"
7196 if test -f "$dir/lib$name.la"; then
7197 found_la="$dir/lib$name.la"
7199 elif test x$lib_type != xshared; then
7200 if test -f "$dir/lib$name.$libext"; then
7201 found_dir="$dir"
7202 found_a="$dir/lib$name.$libext"
7203 if test -f "$dir/lib$name.la"; then
7204 found_la="$dir/lib$name.la"
7209 esac
7210 if test "X$found_dir" != "X"; then
7211 break
7213 done
7215 if test "X$found_dir" != "X"; then
7216 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7217 if test "X$found_so" != "X"; then
7218 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7219 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7220 else
7221 haveit=
7222 for x in $ltrpathdirs; do
7223 if test "X$x" = "X$found_dir"; then
7224 haveit=yes
7225 break
7227 done
7228 if test -z "$haveit"; then
7229 ltrpathdirs="$ltrpathdirs $found_dir"
7231 if test "$hardcode_direct" = yes; then
7232 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7233 else
7234 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7235 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7236 haveit=
7237 for x in $rpathdirs; do
7238 if test "X$x" = "X$found_dir"; then
7239 haveit=yes
7240 break
7242 done
7243 if test -z "$haveit"; then
7244 rpathdirs="$rpathdirs $found_dir"
7246 else
7247 haveit=
7248 for x in $LDFLAGS $LIBICONV; do
7250 acl_save_prefix="$prefix"
7251 prefix="$acl_final_prefix"
7252 acl_save_exec_prefix="$exec_prefix"
7253 exec_prefix="$acl_final_exec_prefix"
7254 eval x=\"$x\"
7255 exec_prefix="$acl_save_exec_prefix"
7256 prefix="$acl_save_prefix"
7258 if test "X$x" = "X-L$found_dir"; then
7259 haveit=yes
7260 break
7262 done
7263 if test -z "$haveit"; then
7264 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7266 if test "$hardcode_minus_L" != no; then
7267 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7268 else
7269 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7274 else
7275 if test "X$found_a" != "X"; then
7276 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7277 else
7278 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7281 additional_includedir=
7282 case "$found_dir" in
7283 */lib | */lib/)
7284 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7285 additional_includedir="$basedir/include"
7287 esac
7288 if test "X$additional_includedir" != "X"; then
7289 if test "X$additional_includedir" != "X/usr/include"; then
7290 haveit=
7291 if test "X$additional_includedir" = "X/usr/local/include"; then
7292 if test -n "$GCC"; then
7293 case $host_os in
7294 linux*) haveit=yes;;
7295 esac
7298 if test -z "$haveit"; then
7299 for x in $CPPFLAGS $INCICONV; do
7301 acl_save_prefix="$prefix"
7302 prefix="$acl_final_prefix"
7303 acl_save_exec_prefix="$exec_prefix"
7304 exec_prefix="$acl_final_exec_prefix"
7305 eval x=\"$x\"
7306 exec_prefix="$acl_save_exec_prefix"
7307 prefix="$acl_save_prefix"
7309 if test "X$x" = "X-I$additional_includedir"; then
7310 haveit=yes
7311 break
7313 done
7314 if test -z "$haveit"; then
7315 if test -d "$additional_includedir"; then
7316 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7322 if test -n "$found_la"; then
7323 save_libdir="$libdir"
7324 case "$found_la" in
7325 */* | *\\*) . "$found_la" ;;
7326 *) . "./$found_la" ;;
7327 esac
7328 libdir="$save_libdir"
7329 for dep in $dependency_libs; do
7330 case "$dep" in
7331 -L*)
7332 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7333 if test "X$additional_libdir" != "X/usr/lib"; then
7334 haveit=
7335 if test "X$additional_libdir" = "X/usr/local/lib"; then
7336 if test -n "$GCC"; then
7337 case $host_os in
7338 linux*) haveit=yes;;
7339 esac
7342 if test -z "$haveit"; then
7343 haveit=
7344 for x in $LDFLAGS $LIBICONV; do
7346 acl_save_prefix="$prefix"
7347 prefix="$acl_final_prefix"
7348 acl_save_exec_prefix="$exec_prefix"
7349 exec_prefix="$acl_final_exec_prefix"
7350 eval x=\"$x\"
7351 exec_prefix="$acl_save_exec_prefix"
7352 prefix="$acl_save_prefix"
7354 if test "X$x" = "X-L$additional_libdir"; then
7355 haveit=yes
7356 break
7358 done
7359 if test -z "$haveit"; then
7360 if test -d "$additional_libdir"; then
7361 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7364 haveit=
7365 for x in $LDFLAGS $LTLIBICONV; do
7367 acl_save_prefix="$prefix"
7368 prefix="$acl_final_prefix"
7369 acl_save_exec_prefix="$exec_prefix"
7370 exec_prefix="$acl_final_exec_prefix"
7371 eval x=\"$x\"
7372 exec_prefix="$acl_save_exec_prefix"
7373 prefix="$acl_save_prefix"
7375 if test "X$x" = "X-L$additional_libdir"; then
7376 haveit=yes
7377 break
7379 done
7380 if test -z "$haveit"; then
7381 if test -d "$additional_libdir"; then
7382 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7388 -R*)
7389 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7390 if test "$enable_rpath" != no; then
7391 haveit=
7392 for x in $rpathdirs; do
7393 if test "X$x" = "X$dir"; then
7394 haveit=yes
7395 break
7397 done
7398 if test -z "$haveit"; then
7399 rpathdirs="$rpathdirs $dir"
7401 haveit=
7402 for x in $ltrpathdirs; do
7403 if test "X$x" = "X$dir"; then
7404 haveit=yes
7405 break
7407 done
7408 if test -z "$haveit"; then
7409 ltrpathdirs="$ltrpathdirs $dir"
7413 -l*)
7414 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7416 *.la)
7417 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7420 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7421 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7423 esac
7424 done
7426 else
7427 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
7428 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7429 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7430 else
7431 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
7432 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
7437 done
7438 done
7439 if test "X$rpathdirs" != "X"; then
7440 if test -n "$hardcode_libdir_separator"; then
7441 alldirs=
7442 for found_dir in $rpathdirs; do
7443 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7444 done
7445 acl_save_libdir="$libdir"
7446 libdir="$alldirs"
7447 eval flag=\"$hardcode_libdir_flag_spec\"
7448 libdir="$acl_save_libdir"
7449 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7450 else
7451 for found_dir in $rpathdirs; do
7452 acl_save_libdir="$libdir"
7453 libdir="$found_dir"
7454 eval flag=\"$hardcode_libdir_flag_spec\"
7455 libdir="$acl_save_libdir"
7456 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7457 done
7460 if test "X$ltrpathdirs" != "X"; then
7461 for found_dir in $ltrpathdirs; do
7462 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7463 done
7470 if test -f ../gettext/uninstalled-config.sh; then
7471 relative_builddir='$(top_builddir)/../gettext'
7472 . ../gettext/uninstalled-config.sh
7473 else
7474 # The sister gettext directory doesn't exist and won't collect information on
7475 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7500 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7501 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504 gt_save_LIBS="$LIBS"
7505 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7508 #include <CoreFoundation/CFPreferences.h>
7510 main ()
7512 CFPreferencesCopyAppValue(NULL, NULL)
7514 return 0;
7516 _ACEOF
7517 if ac_fn_c_try_link "$LINENO"; then :
7518 gt_cv_func_CFPreferencesCopyAppValue=yes
7519 else
7520 gt_cv_func_CFPreferencesCopyAppValue=no
7522 rm -f core conftest.err conftest.$ac_objext \
7523 conftest$ac_exeext conftest.$ac_ext
7524 LIBS="$gt_save_LIBS"
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7527 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7528 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7530 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
7534 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
7535 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
7536 $as_echo_n "(cached) " >&6
7537 else
7538 gt_save_LIBS="$LIBS"
7539 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h. */
7542 #include <CoreFoundation/CFLocale.h>
7544 main ()
7546 CFLocaleCopyPreferredLanguages();
7548 return 0;
7550 _ACEOF
7551 if ac_fn_c_try_link "$LINENO"; then :
7552 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
7553 else
7554 gt_cv_func_CFLocaleCopyPreferredLanguages=no
7556 rm -f core conftest.err conftest.$ac_objext \
7557 conftest$ac_exeext conftest.$ac_ext
7558 LIBS="$gt_save_LIBS"
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
7561 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
7562 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7564 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
7567 INTL_MACOSX_LIBS=
7568 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
7569 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7570 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
7578 LIBINTL=
7579 LTLIBINTL=
7580 POSUB=
7582 case " $gt_needs " in
7583 *" need-formatstring-macros "*) gt_api_version=3 ;;
7584 *" need-ngettext "*) gt_api_version=2 ;;
7585 *) gt_api_version=1 ;;
7586 esac
7587 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7588 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7590 if test "$USE_NLS" = "yes"; then
7591 gt_use_preinstalled_gnugettext=no
7594 if test $gt_api_version -ge 3; then
7595 gt_revision_test_code='
7596 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7597 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7598 #endif
7599 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7601 else
7602 gt_revision_test_code=
7604 if test $gt_api_version -ge 2; then
7605 gt_expression_test_code=' + * ngettext ("", "", 0)'
7606 else
7607 gt_expression_test_code=
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7611 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7612 if eval \${$gt_func_gnugettext_libc+:} false; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7618 #include <libintl.h>
7619 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7620 extern int _nl_msg_cat_cntr;
7621 extern int *_nl_domain_bindings;
7622 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
7623 #else
7624 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7625 #endif
7626 $gt_revision_test_code
7629 main ()
7632 bindtextdomain ("", "");
7633 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7636 return 0;
7638 _ACEOF
7639 if ac_fn_c_try_link "$LINENO"; then :
7640 eval "$gt_func_gnugettext_libc=yes"
7641 else
7642 eval "$gt_func_gnugettext_libc=no"
7644 rm -f core conftest.err conftest.$ac_objext \
7645 conftest$ac_exeext conftest.$ac_ext
7647 eval ac_res=\$$gt_func_gnugettext_libc
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7649 $as_echo "$ac_res" >&6; }
7651 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7657 am_save_CPPFLAGS="$CPPFLAGS"
7659 for element in $INCICONV; do
7660 haveit=
7661 for x in $CPPFLAGS; do
7663 acl_save_prefix="$prefix"
7664 prefix="$acl_final_prefix"
7665 acl_save_exec_prefix="$exec_prefix"
7666 exec_prefix="$acl_final_exec_prefix"
7667 eval x=\"$x\"
7668 exec_prefix="$acl_save_exec_prefix"
7669 prefix="$acl_save_prefix"
7671 if test "X$x" = "X$element"; then
7672 haveit=yes
7673 break
7675 done
7676 if test -z "$haveit"; then
7677 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7679 done
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7683 $as_echo_n "checking for iconv... " >&6; }
7684 if ${am_cv_func_iconv+:} false; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7688 am_cv_func_iconv="no, consider installing GNU libiconv"
7689 am_cv_lib_iconv=no
7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h. */
7693 #include <stdlib.h>
7694 #include <iconv.h>
7697 main ()
7699 iconv_t cd = iconv_open("","");
7700 iconv(cd,NULL,NULL,NULL,NULL);
7701 iconv_close(cd);
7703 return 0;
7705 _ACEOF
7706 if ac_fn_c_try_link "$LINENO"; then :
7707 am_cv_func_iconv=yes
7709 rm -f core conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7711 if test "$am_cv_func_iconv" != yes; then
7712 am_save_LIBS="$LIBS"
7713 LIBS="$LIBS $LIBICONV"
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7717 #include <stdlib.h>
7718 #include <iconv.h>
7721 main ()
7723 iconv_t cd = iconv_open("","");
7724 iconv(cd,NULL,NULL,NULL,NULL);
7725 iconv_close(cd);
7727 return 0;
7729 _ACEOF
7730 if ac_fn_c_try_link "$LINENO"; then :
7731 am_cv_lib_iconv=yes
7732 am_cv_func_iconv=yes
7734 rm -f core conftest.err conftest.$ac_objext \
7735 conftest$ac_exeext conftest.$ac_ext
7736 LIBS="$am_save_LIBS"
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7741 $as_echo "$am_cv_func_iconv" >&6; }
7742 if test "$am_cv_func_iconv" = yes; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7744 $as_echo_n "checking for working iconv... " >&6; }
7745 if ${am_cv_func_iconv_works+:} false; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7749 am_save_LIBS="$LIBS"
7750 if test $am_cv_lib_iconv = yes; then
7751 LIBS="$LIBS $LIBICONV"
7753 am_cv_func_iconv_works=no
7754 for ac_iconv_const in '' 'const'; do
7755 if test "$cross_compiling" = yes; then :
7756 case "$host_os" in
7757 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7758 *) am_cv_func_iconv_works="guessing yes" ;;
7759 esac
7760 else
7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h. */
7764 #include <iconv.h>
7765 #include <string.h>
7767 #ifndef ICONV_CONST
7768 # define ICONV_CONST $ac_iconv_const
7769 #endif
7772 main ()
7774 int result = 0;
7775 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
7776 successful returns. This is even documented in
7777 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
7779 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7780 if (cd_utf8_to_88591 != (iconv_t)(-1))
7782 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
7783 char buf[10];
7784 ICONV_CONST char *inptr = input;
7785 size_t inbytesleft = strlen (input);
7786 char *outptr = buf;
7787 size_t outbytesleft = sizeof (buf);
7788 size_t res = iconv (cd_utf8_to_88591,
7789 &inptr, &inbytesleft,
7790 &outptr, &outbytesleft);
7791 if (res == 0)
7792 result |= 1;
7793 iconv_close (cd_utf8_to_88591);
7796 /* Test against Solaris 10 bug: Failures are not distinguishable from
7797 successful returns. */
7799 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7800 if (cd_ascii_to_88591 != (iconv_t)(-1))
7802 static ICONV_CONST char input[] = "\263";
7803 char buf[10];
7804 ICONV_CONST char *inptr = input;
7805 size_t inbytesleft = strlen (input);
7806 char *outptr = buf;
7807 size_t outbytesleft = sizeof (buf);
7808 size_t res = iconv (cd_ascii_to_88591,
7809 &inptr, &inbytesleft,
7810 &outptr, &outbytesleft);
7811 if (res == 0)
7812 result |= 2;
7813 iconv_close (cd_ascii_to_88591);
7816 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
7818 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
7819 if (cd_88591_to_utf8 != (iconv_t)(-1))
7821 static ICONV_CONST char input[] = "\304";
7822 static char buf[2] = { (char)0xDE, (char)0xAD };
7823 ICONV_CONST char *inptr = input;
7824 size_t inbytesleft = 1;
7825 char *outptr = buf;
7826 size_t outbytesleft = 1;
7827 size_t res = iconv (cd_88591_to_utf8,
7828 &inptr, &inbytesleft,
7829 &outptr, &outbytesleft);
7830 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
7831 result |= 4;
7832 iconv_close (cd_88591_to_utf8);
7835 #if 0 /* This bug could be worked around by the caller. */
7836 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7838 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7839 if (cd_88591_to_utf8 != (iconv_t)(-1))
7841 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7842 char buf[50];
7843 ICONV_CONST char *inptr = input;
7844 size_t inbytesleft = strlen (input);
7845 char *outptr = buf;
7846 size_t outbytesleft = sizeof (buf);
7847 size_t res = iconv (cd_88591_to_utf8,
7848 &inptr, &inbytesleft,
7849 &outptr, &outbytesleft);
7850 if ((int)res > 0)
7851 result |= 8;
7852 iconv_close (cd_88591_to_utf8);
7855 #endif
7856 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7857 provided. */
7859 /* Try standardized names. */
7860 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
7861 /* Try IRIX, OSF/1 names. */
7862 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
7863 /* Try AIX names. */
7864 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
7865 /* Try HP-UX names. */
7866 iconv_t cd4 = iconv_open ("utf8", "eucJP");
7867 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
7868 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
7869 result |= 16;
7870 if (cd1 != (iconv_t)(-1))
7871 iconv_close (cd1);
7872 if (cd2 != (iconv_t)(-1))
7873 iconv_close (cd2);
7874 if (cd3 != (iconv_t)(-1))
7875 iconv_close (cd3);
7876 if (cd4 != (iconv_t)(-1))
7877 iconv_close (cd4);
7879 return result;
7882 return 0;
7884 _ACEOF
7885 if ac_fn_c_try_run "$LINENO"; then :
7886 am_cv_func_iconv_works=yes
7888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7889 conftest.$ac_objext conftest.beam conftest.$ac_ext
7892 test "$am_cv_func_iconv_works" = no || break
7893 done
7894 LIBS="$am_save_LIBS"
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7898 $as_echo "$am_cv_func_iconv_works" >&6; }
7899 case "$am_cv_func_iconv_works" in
7900 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7901 *) am_func_iconv=yes ;;
7902 esac
7903 else
7904 am_func_iconv=no am_cv_lib_iconv=no
7906 if test "$am_func_iconv" = yes; then
7908 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7911 if test "$am_cv_lib_iconv" = yes; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7913 $as_echo_n "checking how to link with libiconv... " >&6; }
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7915 $as_echo "$LIBICONV" >&6; }
7916 else
7917 CPPFLAGS="$am_save_CPPFLAGS"
7918 LIBICONV=
7919 LTLIBICONV=
7927 use_additional=yes
7929 acl_save_prefix="$prefix"
7930 prefix="$acl_final_prefix"
7931 acl_save_exec_prefix="$exec_prefix"
7932 exec_prefix="$acl_final_exec_prefix"
7934 eval additional_includedir=\"$includedir\"
7935 eval additional_libdir=\"$libdir\"
7937 exec_prefix="$acl_save_exec_prefix"
7938 prefix="$acl_save_prefix"
7941 # Check whether --with-libintl-prefix was given.
7942 if test "${with_libintl_prefix+set}" = set; then :
7943 withval=$with_libintl_prefix;
7944 if test "X$withval" = "Xno"; then
7945 use_additional=no
7946 else
7947 if test "X$withval" = "X"; then
7949 acl_save_prefix="$prefix"
7950 prefix="$acl_final_prefix"
7951 acl_save_exec_prefix="$exec_prefix"
7952 exec_prefix="$acl_final_exec_prefix"
7954 eval additional_includedir=\"$includedir\"
7955 eval additional_libdir=\"$libdir\"
7957 exec_prefix="$acl_save_exec_prefix"
7958 prefix="$acl_save_prefix"
7960 else
7961 additional_includedir="$withval/include"
7962 additional_libdir="$withval/lib"
7969 # Check whether --with-libintl-type was given.
7970 if test "${with_libintl_type+set}" = set; then :
7971 withval=$with_libintl_type; with_libintl_type=$withval
7972 else
7973 with_libintl_type=auto
7976 lib_type=`eval echo \$with_libintl_type`
7978 LIBINTL=
7979 LTLIBINTL=
7980 INCINTL=
7981 rpathdirs=
7982 ltrpathdirs=
7983 names_already_handled=
7984 names_next_round='intl '
7985 while test -n "$names_next_round"; do
7986 names_this_round="$names_next_round"
7987 names_next_round=
7988 for name in $names_this_round; do
7989 already_handled=
7990 for n in $names_already_handled; do
7991 if test "$n" = "$name"; then
7992 already_handled=yes
7993 break
7995 done
7996 if test -z "$already_handled"; then
7997 names_already_handled="$names_already_handled $name"
7998 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7999 eval value=\"\$HAVE_LIB$uppername\"
8000 if test -n "$value"; then
8001 if test "$value" = yes; then
8002 eval value=\"\$LIB$uppername\"
8003 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8004 eval value=\"\$LTLIB$uppername\"
8005 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8006 else
8009 else
8010 found_dir=
8011 found_la=
8012 found_so=
8013 found_a=
8014 if test $use_additional = yes; then
8015 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8016 found_dir="$additional_libdir"
8017 found_so="$additional_libdir/lib$name.$shlibext"
8018 if test -f "$additional_libdir/lib$name.la"; then
8019 found_la="$additional_libdir/lib$name.la"
8021 elif test x$lib_type != xshared; then
8022 if test -f "$additional_libdir/lib$name.$libext"; then
8023 found_dir="$additional_libdir"
8024 found_a="$additional_libdir/lib$name.$libext"
8025 if test -f "$additional_libdir/lib$name.la"; then
8026 found_la="$additional_libdir/lib$name.la"
8031 if test "X$found_dir" = "X"; then
8032 for x in $LDFLAGS $LTLIBINTL; do
8034 acl_save_prefix="$prefix"
8035 prefix="$acl_final_prefix"
8036 acl_save_exec_prefix="$exec_prefix"
8037 exec_prefix="$acl_final_exec_prefix"
8038 eval x=\"$x\"
8039 exec_prefix="$acl_save_exec_prefix"
8040 prefix="$acl_save_prefix"
8042 case "$x" in
8043 -L*)
8044 dir=`echo "X$x" | sed -e 's/^X-L//'`
8045 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8046 found_dir="$dir"
8047 found_so="$dir/lib$name.$shlibext"
8048 if test -f "$dir/lib$name.la"; then
8049 found_la="$dir/lib$name.la"
8051 elif test x$lib_type != xshared; then
8052 if test -f "$dir/lib$name.$libext"; then
8053 found_dir="$dir"
8054 found_a="$dir/lib$name.$libext"
8055 if test -f "$dir/lib$name.la"; then
8056 found_la="$dir/lib$name.la"
8061 esac
8062 if test "X$found_dir" != "X"; then
8063 break
8065 done
8067 if test "X$found_dir" != "X"; then
8068 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8069 if test "X$found_so" != "X"; then
8070 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8071 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8072 else
8073 haveit=
8074 for x in $ltrpathdirs; do
8075 if test "X$x" = "X$found_dir"; then
8076 haveit=yes
8077 break
8079 done
8080 if test -z "$haveit"; then
8081 ltrpathdirs="$ltrpathdirs $found_dir"
8083 if test "$hardcode_direct" = yes; then
8084 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8085 else
8086 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8087 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8088 haveit=
8089 for x in $rpathdirs; do
8090 if test "X$x" = "X$found_dir"; then
8091 haveit=yes
8092 break
8094 done
8095 if test -z "$haveit"; then
8096 rpathdirs="$rpathdirs $found_dir"
8098 else
8099 haveit=
8100 for x in $LDFLAGS $LIBINTL; do
8102 acl_save_prefix="$prefix"
8103 prefix="$acl_final_prefix"
8104 acl_save_exec_prefix="$exec_prefix"
8105 exec_prefix="$acl_final_exec_prefix"
8106 eval x=\"$x\"
8107 exec_prefix="$acl_save_exec_prefix"
8108 prefix="$acl_save_prefix"
8110 if test "X$x" = "X-L$found_dir"; then
8111 haveit=yes
8112 break
8114 done
8115 if test -z "$haveit"; then
8116 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8118 if test "$hardcode_minus_L" != no; then
8119 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8120 else
8121 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8126 else
8127 if test "X$found_a" != "X"; then
8128 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8129 else
8130 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8133 additional_includedir=
8134 case "$found_dir" in
8135 */lib | */lib/)
8136 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8137 additional_includedir="$basedir/include"
8139 esac
8140 if test "X$additional_includedir" != "X"; then
8141 if test "X$additional_includedir" != "X/usr/include"; then
8142 haveit=
8143 if test "X$additional_includedir" = "X/usr/local/include"; then
8144 if test -n "$GCC"; then
8145 case $host_os in
8146 linux*) haveit=yes;;
8147 esac
8150 if test -z "$haveit"; then
8151 for x in $CPPFLAGS $INCINTL; do
8153 acl_save_prefix="$prefix"
8154 prefix="$acl_final_prefix"
8155 acl_save_exec_prefix="$exec_prefix"
8156 exec_prefix="$acl_final_exec_prefix"
8157 eval x=\"$x\"
8158 exec_prefix="$acl_save_exec_prefix"
8159 prefix="$acl_save_prefix"
8161 if test "X$x" = "X-I$additional_includedir"; then
8162 haveit=yes
8163 break
8165 done
8166 if test -z "$haveit"; then
8167 if test -d "$additional_includedir"; then
8168 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8174 if test -n "$found_la"; then
8175 save_libdir="$libdir"
8176 case "$found_la" in
8177 */* | *\\*) . "$found_la" ;;
8178 *) . "./$found_la" ;;
8179 esac
8180 libdir="$save_libdir"
8181 for dep in $dependency_libs; do
8182 case "$dep" in
8183 -L*)
8184 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8185 if test "X$additional_libdir" != "X/usr/lib"; then
8186 haveit=
8187 if test "X$additional_libdir" = "X/usr/local/lib"; then
8188 if test -n "$GCC"; then
8189 case $host_os in
8190 linux*) haveit=yes;;
8191 esac
8194 if test -z "$haveit"; then
8195 haveit=
8196 for x in $LDFLAGS $LIBINTL; do
8198 acl_save_prefix="$prefix"
8199 prefix="$acl_final_prefix"
8200 acl_save_exec_prefix="$exec_prefix"
8201 exec_prefix="$acl_final_exec_prefix"
8202 eval x=\"$x\"
8203 exec_prefix="$acl_save_exec_prefix"
8204 prefix="$acl_save_prefix"
8206 if test "X$x" = "X-L$additional_libdir"; then
8207 haveit=yes
8208 break
8210 done
8211 if test -z "$haveit"; then
8212 if test -d "$additional_libdir"; then
8213 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8216 haveit=
8217 for x in $LDFLAGS $LTLIBINTL; do
8219 acl_save_prefix="$prefix"
8220 prefix="$acl_final_prefix"
8221 acl_save_exec_prefix="$exec_prefix"
8222 exec_prefix="$acl_final_exec_prefix"
8223 eval x=\"$x\"
8224 exec_prefix="$acl_save_exec_prefix"
8225 prefix="$acl_save_prefix"
8227 if test "X$x" = "X-L$additional_libdir"; then
8228 haveit=yes
8229 break
8231 done
8232 if test -z "$haveit"; then
8233 if test -d "$additional_libdir"; then
8234 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8240 -R*)
8241 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8242 if test "$enable_rpath" != no; then
8243 haveit=
8244 for x in $rpathdirs; do
8245 if test "X$x" = "X$dir"; then
8246 haveit=yes
8247 break
8249 done
8250 if test -z "$haveit"; then
8251 rpathdirs="$rpathdirs $dir"
8253 haveit=
8254 for x in $ltrpathdirs; do
8255 if test "X$x" = "X$dir"; then
8256 haveit=yes
8257 break
8259 done
8260 if test -z "$haveit"; then
8261 ltrpathdirs="$ltrpathdirs $dir"
8265 -l*)
8266 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8268 *.la)
8269 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8272 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8273 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8275 esac
8276 done
8278 else
8279 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
8280 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8281 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8282 else
8283 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
8284 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
8289 done
8290 done
8291 if test "X$rpathdirs" != "X"; then
8292 if test -n "$hardcode_libdir_separator"; then
8293 alldirs=
8294 for found_dir in $rpathdirs; do
8295 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8296 done
8297 acl_save_libdir="$libdir"
8298 libdir="$alldirs"
8299 eval flag=\"$hardcode_libdir_flag_spec\"
8300 libdir="$acl_save_libdir"
8301 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8302 else
8303 for found_dir in $rpathdirs; do
8304 acl_save_libdir="$libdir"
8305 libdir="$found_dir"
8306 eval flag=\"$hardcode_libdir_flag_spec\"
8307 libdir="$acl_save_libdir"
8308 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8309 done
8312 if test "X$ltrpathdirs" != "X"; then
8313 for found_dir in $ltrpathdirs; do
8314 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8315 done
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8319 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8320 if eval \${$gt_func_gnugettext_libintl+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 gt_save_CPPFLAGS="$CPPFLAGS"
8324 CPPFLAGS="$CPPFLAGS $INCINTL"
8325 gt_save_LIBS="$LIBS"
8326 LIBS="$LIBS $LIBINTL"
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8330 #include <libintl.h>
8331 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8332 extern int _nl_msg_cat_cntr;
8333 extern
8334 #ifdef __cplusplus
8336 #endif
8337 const char *_nl_expand_alias (const char *);
8338 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8339 #else
8340 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8341 #endif
8342 $gt_revision_test_code
8345 main ()
8348 bindtextdomain ("", "");
8349 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8352 return 0;
8354 _ACEOF
8355 if ac_fn_c_try_link "$LINENO"; then :
8356 eval "$gt_func_gnugettext_libintl=yes"
8357 else
8358 eval "$gt_func_gnugettext_libintl=no"
8360 rm -f core conftest.err conftest.$ac_objext \
8361 conftest$ac_exeext conftest.$ac_ext
8362 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8363 LIBS="$LIBS $LIBICONV"
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8367 #include <libintl.h>
8368 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8369 extern int _nl_msg_cat_cntr;
8370 extern
8371 #ifdef __cplusplus
8373 #endif
8374 const char *_nl_expand_alias (const char *);
8375 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8376 #else
8377 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8378 #endif
8379 $gt_revision_test_code
8382 main ()
8385 bindtextdomain ("", "");
8386 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8389 return 0;
8391 _ACEOF
8392 if ac_fn_c_try_link "$LINENO"; then :
8393 LIBINTL="$LIBINTL $LIBICONV"
8394 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8395 eval "$gt_func_gnugettext_libintl=yes"
8398 rm -f core conftest.err conftest.$ac_objext \
8399 conftest$ac_exeext conftest.$ac_ext
8401 CPPFLAGS="$gt_save_CPPFLAGS"
8402 LIBS="$gt_save_LIBS"
8404 eval ac_res=\$$gt_func_gnugettext_libintl
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8406 $as_echo "$ac_res" >&6; }
8409 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8410 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8411 && test "$PACKAGE" != gettext-runtime \
8412 && test "$PACKAGE" != gettext-tools; }; then
8413 gt_use_preinstalled_gnugettext=yes
8414 else
8415 LIBINTL=
8416 LTLIBINTL=
8417 INCINTL=
8422 if test -n "$INTL_MACOSX_LIBS"; then
8423 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8424 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8425 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8426 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8430 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8431 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8433 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8435 else
8436 USE_NLS=no
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8441 $as_echo_n "checking whether to use NLS... " >&6; }
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8443 $as_echo "$USE_NLS" >&6; }
8444 if test "$USE_NLS" = "yes"; then
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8446 $as_echo_n "checking where the gettext function comes from... " >&6; }
8447 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8448 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8449 gt_source="external libintl"
8450 else
8451 gt_source="libc"
8453 else
8454 gt_source="included intl directory"
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8457 $as_echo "$gt_source" >&6; }
8460 if test "$USE_NLS" = "yes"; then
8462 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8463 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8465 $as_echo_n "checking how to link with libintl... " >&6; }
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8467 $as_echo "$LIBINTL" >&6; }
8469 for element in $INCINTL; do
8470 haveit=
8471 for x in $CPPFLAGS; do
8473 acl_save_prefix="$prefix"
8474 prefix="$acl_final_prefix"
8475 acl_save_exec_prefix="$exec_prefix"
8476 exec_prefix="$acl_final_exec_prefix"
8477 eval x=\"$x\"
8478 exec_prefix="$acl_save_exec_prefix"
8479 prefix="$acl_save_prefix"
8481 if test "X$x" = "X$element"; then
8482 haveit=yes
8483 break
8485 done
8486 if test -z "$haveit"; then
8487 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8489 done
8494 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8497 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8501 POSUB=po
8506 INTLLIBS="$LIBINTL"
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8526 $as_echo_n "checking whether NLS is requested... " >&6; }
8527 if test x"$USE_NLS" != xyes; then
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8530 else
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8532 $as_echo "yes" >&6; }
8534 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8538 $as_echo_n "checking for catalogs to be installed... " >&6; }
8539 # Look for .po and .gmo files in the source directory.
8540 CATALOGS=
8541 XLINGUAS=
8542 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8543 # If there aren't any .gmo files the shell will give us the
8544 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8545 # weeded out.
8546 case "$cat" in *\**)
8547 continue;;
8548 esac
8549 # The quadruple backslash is collapsed to a double backslash
8550 # by the backticks, then collapsed again by the double quotes,
8551 # leaving us with one backslash in the sed expression (right
8552 # before the dot that mustn't act as a wildcard).
8553 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8554 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8555 # The user is allowed to set LINGUAS to a list of languages to
8556 # install catalogs for. If it's empty that means "all of them."
8557 if test "x$LINGUAS" = x; then
8558 CATALOGS="$CATALOGS $cat"
8559 XLINGUAS="$XLINGUAS $lang"
8560 else
8561 case "$LINGUAS" in *$lang*)
8562 CATALOGS="$CATALOGS $cat"
8563 XLINGUAS="$XLINGUAS $lang"
8565 esac
8567 done
8568 LINGUAS="$XLINGUAS"
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8570 $as_echo "$LINGUAS" >&6; }
8573 DATADIRNAME=share
8575 INSTOBJEXT=.mo
8577 GENCAT=gencat
8579 CATOBJEXT=.gmo
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
8584 $as_echo_n "checking for uchar... " >&6; }
8585 if ${gcc_cv_type_uchar+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h. */
8591 #include <sys/types.h>
8594 main ()
8596 if ((uchar *)0) return 0;
8597 if (sizeof(uchar)) return 0;
8599 return 0;
8601 _ACEOF
8602 if ac_fn_c_try_compile "$LINENO"; then :
8603 ac_cv_type_uchar=yes
8604 else
8605 ac_cv_type_uchar=no
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
8610 $as_echo "$gcc_cv_type_uchar" >&6; }
8611 if test $ac_cv_type_uchar = yes; then
8613 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
8617 # The cast to long int works around a bug in the HP C Compiler
8618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8620 # This bug is HP SR number 8606223364.
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
8622 $as_echo_n "checking size of ino_t... " >&6; }
8623 if ${ac_cv_sizeof_ino_t+:} false; then :
8624 $as_echo_n "(cached) " >&6
8625 else
8626 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
8628 else
8629 if test "$ac_cv_type_ino_t" = yes; then
8630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8632 as_fn_error 77 "cannot compute sizeof (ino_t)
8633 See \`config.log' for more details" "$LINENO" 5; }
8634 else
8635 ac_cv_sizeof_ino_t=0
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
8641 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
8645 cat >>confdefs.h <<_ACEOF
8646 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
8647 _ACEOF
8650 # The cast to long int works around a bug in the HP C Compiler
8651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8653 # This bug is HP SR number 8606223364.
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
8655 $as_echo_n "checking size of dev_t... " >&6; }
8656 if ${ac_cv_sizeof_dev_t+:} false; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
8661 else
8662 if test "$ac_cv_type_dev_t" = yes; then
8663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8665 as_fn_error 77 "cannot compute sizeof (dev_t)
8666 See \`config.log' for more details" "$LINENO" 5; }
8667 else
8668 ac_cv_sizeof_dev_t=0
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
8674 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
8678 cat >>confdefs.h <<_ACEOF
8679 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
8680 _ACEOF
8684 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
8685 # iconv() prototype.
8686 ac_ext=cpp
8687 ac_cpp='$CXXCPP $CPPFLAGS'
8688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8697 am_save_CPPFLAGS="$CPPFLAGS"
8699 for element in $INCICONV; do
8700 haveit=
8701 for x in $CPPFLAGS; do
8703 acl_save_prefix="$prefix"
8704 prefix="$acl_final_prefix"
8705 acl_save_exec_prefix="$exec_prefix"
8706 exec_prefix="$acl_final_exec_prefix"
8707 eval x=\"$x\"
8708 exec_prefix="$acl_save_exec_prefix"
8709 prefix="$acl_save_prefix"
8711 if test "X$x" = "X$element"; then
8712 haveit=yes
8713 break
8715 done
8716 if test -z "$haveit"; then
8717 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8719 done
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8723 $as_echo_n "checking for iconv... " >&6; }
8724 if ${am_cv_func_iconv+:} false; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8728 am_cv_func_iconv="no, consider installing GNU libiconv"
8729 am_cv_lib_iconv=no
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8733 #include <stdlib.h>
8734 #include <iconv.h>
8737 main ()
8739 iconv_t cd = iconv_open("","");
8740 iconv(cd,NULL,NULL,NULL,NULL);
8741 iconv_close(cd);
8743 return 0;
8745 _ACEOF
8746 if ac_fn_cxx_try_link "$LINENO"; then :
8747 am_cv_func_iconv=yes
8749 rm -f core conftest.err conftest.$ac_objext \
8750 conftest$ac_exeext conftest.$ac_ext
8751 if test "$am_cv_func_iconv" != yes; then
8752 am_save_LIBS="$LIBS"
8753 LIBS="$LIBS $LIBICONV"
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8757 #include <stdlib.h>
8758 #include <iconv.h>
8761 main ()
8763 iconv_t cd = iconv_open("","");
8764 iconv(cd,NULL,NULL,NULL,NULL);
8765 iconv_close(cd);
8767 return 0;
8769 _ACEOF
8770 if ac_fn_cxx_try_link "$LINENO"; then :
8771 am_cv_lib_iconv=yes
8772 am_cv_func_iconv=yes
8774 rm -f core conftest.err conftest.$ac_objext \
8775 conftest$ac_exeext conftest.$ac_ext
8776 LIBS="$am_save_LIBS"
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8781 $as_echo "$am_cv_func_iconv" >&6; }
8782 if test "$am_cv_func_iconv" = yes; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8784 $as_echo_n "checking for working iconv... " >&6; }
8785 if ${am_cv_func_iconv_works+:} false; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8789 am_save_LIBS="$LIBS"
8790 if test $am_cv_lib_iconv = yes; then
8791 LIBS="$LIBS $LIBICONV"
8793 am_cv_func_iconv_works=no
8794 for ac_iconv_const in '' 'const'; do
8795 if test "$cross_compiling" = yes; then :
8796 case "$host_os" in
8797 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8798 *) am_cv_func_iconv_works="guessing yes" ;;
8799 esac
8800 else
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8804 #include <iconv.h>
8805 #include <string.h>
8807 #ifndef ICONV_CONST
8808 # define ICONV_CONST $ac_iconv_const
8809 #endif
8812 main ()
8814 int result = 0;
8815 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
8816 successful returns. This is even documented in
8817 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
8819 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8820 if (cd_utf8_to_88591 != (iconv_t)(-1))
8822 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8823 char buf[10];
8824 ICONV_CONST char *inptr = input;
8825 size_t inbytesleft = strlen (input);
8826 char *outptr = buf;
8827 size_t outbytesleft = sizeof (buf);
8828 size_t res = iconv (cd_utf8_to_88591,
8829 &inptr, &inbytesleft,
8830 &outptr, &outbytesleft);
8831 if (res == 0)
8832 result |= 1;
8833 iconv_close (cd_utf8_to_88591);
8836 /* Test against Solaris 10 bug: Failures are not distinguishable from
8837 successful returns. */
8839 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8840 if (cd_ascii_to_88591 != (iconv_t)(-1))
8842 static ICONV_CONST char input[] = "\263";
8843 char buf[10];
8844 ICONV_CONST char *inptr = input;
8845 size_t inbytesleft = strlen (input);
8846 char *outptr = buf;
8847 size_t outbytesleft = sizeof (buf);
8848 size_t res = iconv (cd_ascii_to_88591,
8849 &inptr, &inbytesleft,
8850 &outptr, &outbytesleft);
8851 if (res == 0)
8852 result |= 2;
8853 iconv_close (cd_ascii_to_88591);
8856 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8858 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8859 if (cd_88591_to_utf8 != (iconv_t)(-1))
8861 static ICONV_CONST char input[] = "\304";
8862 static char buf[2] = { (char)0xDE, (char)0xAD };
8863 ICONV_CONST char *inptr = input;
8864 size_t inbytesleft = 1;
8865 char *outptr = buf;
8866 size_t outbytesleft = 1;
8867 size_t res = iconv (cd_88591_to_utf8,
8868 &inptr, &inbytesleft,
8869 &outptr, &outbytesleft);
8870 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8871 result |= 4;
8872 iconv_close (cd_88591_to_utf8);
8875 #if 0 /* This bug could be worked around by the caller. */
8876 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8878 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8879 if (cd_88591_to_utf8 != (iconv_t)(-1))
8881 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8882 char buf[50];
8883 ICONV_CONST char *inptr = input;
8884 size_t inbytesleft = strlen (input);
8885 char *outptr = buf;
8886 size_t outbytesleft = sizeof (buf);
8887 size_t res = iconv (cd_88591_to_utf8,
8888 &inptr, &inbytesleft,
8889 &outptr, &outbytesleft);
8890 if ((int)res > 0)
8891 result |= 8;
8892 iconv_close (cd_88591_to_utf8);
8895 #endif
8896 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8897 provided. */
8899 /* Try standardized names. */
8900 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8901 /* Try IRIX, OSF/1 names. */
8902 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8903 /* Try AIX names. */
8904 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8905 /* Try HP-UX names. */
8906 iconv_t cd4 = iconv_open ("utf8", "eucJP");
8907 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8908 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8909 result |= 16;
8910 if (cd1 != (iconv_t)(-1))
8911 iconv_close (cd1);
8912 if (cd2 != (iconv_t)(-1))
8913 iconv_close (cd2);
8914 if (cd3 != (iconv_t)(-1))
8915 iconv_close (cd3);
8916 if (cd4 != (iconv_t)(-1))
8917 iconv_close (cd4);
8919 return result;
8922 return 0;
8924 _ACEOF
8925 if ac_fn_cxx_try_run "$LINENO"; then :
8926 am_cv_func_iconv_works=yes
8928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8929 conftest.$ac_objext conftest.beam conftest.$ac_ext
8932 test "$am_cv_func_iconv_works" = no || break
8933 done
8934 LIBS="$am_save_LIBS"
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8938 $as_echo "$am_cv_func_iconv_works" >&6; }
8939 case "$am_cv_func_iconv_works" in
8940 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8941 *) am_func_iconv=yes ;;
8942 esac
8943 else
8944 am_func_iconv=no am_cv_lib_iconv=no
8946 if test "$am_func_iconv" = yes; then
8948 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8951 if test "$am_cv_lib_iconv" = yes; then
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8953 $as_echo_n "checking how to link with libiconv... " >&6; }
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8955 $as_echo "$LIBICONV" >&6; }
8956 else
8957 CPPFLAGS="$am_save_CPPFLAGS"
8958 LIBICONV=
8959 LTLIBICONV=
8964 if test "$am_cv_func_iconv" = yes; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
8966 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
8967 if ${gl_cv_iconv_nonconst+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8973 #include <stdlib.h>
8974 #include <iconv.h>
8975 extern
8976 #ifdef __cplusplus
8978 #endif
8979 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8982 main ()
8986 return 0;
8988 _ACEOF
8989 if ac_fn_cxx_try_compile "$LINENO"; then :
8990 gl_cv_iconv_nonconst=yes
8991 else
8992 gl_cv_iconv_nonconst=no
8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
8998 $as_echo "$gl_cv_iconv_nonconst" >&6; }
8999 else
9000 gl_cv_iconv_nonconst=yes
9002 if test $gl_cv_iconv_nonconst = yes; then
9003 iconv_arg1=""
9004 else
9005 iconv_arg1="const"
9008 cat >>confdefs.h <<_ACEOF
9009 #define ICONV_CONST $iconv_arg1
9010 _ACEOF
9014 if test "$am_func_iconv" = yes; then
9015 if test -n "$LIBICONV"; then
9016 am_cv_func_iconv_summary='yes, in libiconv'
9017 else
9018 am_cv_func_iconv_summary='yes, in libc'
9020 else
9021 if test "$am_cv_func_iconv" = yes; then
9022 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
9023 else
9024 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
9028 ac_ext=c
9029 ac_cpp='$CPP $CPPFLAGS'
9030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9035 # More defines and substitutions.
9036 PACKAGE="$PACKAGE_TARNAME"
9038 cat >>confdefs.h <<_ACEOF
9039 #define PACKAGE "$PACKAGE"
9040 _ACEOF
9044 if test "x$enable_nls" != xno; then
9045 USED_CATALOGS='$(CATALOGS)'
9046 else
9047 USED_CATALOGS=
9051 # Check whether --enable-maintainer-mode was given.
9052 if test "${enable_maintainer_mode+set}" = set; then :
9053 enableval=$enable_maintainer_mode;
9054 else
9055 enable_maintainer_mode=no
9059 if test "x$enable_maintainer_mode" = xno; then
9060 MAINT='#'
9061 else
9062 MAINT=
9066 # Enable expensive internal checks
9067 is_release=
9068 if test -f $srcdir/../gcc/DEV-PHASE \
9069 && test x"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental; then
9070 is_release=yes
9073 # Check whether --enable-checking was given.
9074 if test "${enable_checking+set}" = set; then :
9075 enableval=$enable_checking; ac_checking_flags="${enableval}"
9076 else
9078 # Determine the default checks.
9079 if test x$is_release = x ; then
9080 ac_checking_flags=yes
9081 else
9082 ac_checking_flags=release
9086 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
9087 for check in release $ac_checking_flags
9089 case $check in
9090 # these set all the flags to specific states
9091 yes|all) ac_checking=1 ; ac_assert_checking=1 ; ac_valgrind_checking= ;;
9092 no|none) ac_checking= ; ac_assert_checking= ; ac_valgrind_checking= ;;
9093 release) ac_checking= ; ac_assert_checking=1 ; ac_valgrind_checking= ;;
9094 # these enable particular checks
9095 assert) ac_assert_checking=1 ;;
9096 misc) ac_checking=1 ;;
9097 valgrind) ac_valgrind_checking=1 ;;
9098 # accept
9099 *) ;;
9100 esac
9101 done
9102 IFS="$ac_save_IFS"
9104 if test x$ac_checking != x ; then
9106 $as_echo "#define CHECKING_P 1" >>confdefs.h
9108 else
9109 $as_echo "#define CHECKING_P 0" >>confdefs.h
9113 if test x$ac_assert_checking != x ; then
9115 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
9119 # Check whether --enable-canonical-system-headers was given.
9120 if test "${enable_canonical_system_headers+set}" = set; then :
9121 enableval=$enable_canonical_system_headers;
9122 else
9123 enable_canonical_system_headers=yes
9126 if test $enable_canonical_system_headers != no; then
9128 $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
9132 case $target in
9133 i?86-* | x86_64-*)
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9138 main ()
9140 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
9142 return 0;
9144 _ACEOF
9145 if ac_fn_c_try_compile "$LINENO"; then :
9147 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9151 esac
9153 # Enable --enable-host-shared.
9154 # Check whether --enable-host-shared was given.
9155 if test "${enable_host_shared+set}" = set; then :
9156 enableval=$enable_host_shared;
9161 # Enable --enable-host-pie.
9162 # Check whether --enable-host-pie was given.
9163 if test "${enable_host_pie+set}" = set; then :
9164 enableval=$enable_host_pie;
9169 if test x$enable_host_shared = xyes; then
9170 PICFLAG=-fPIC
9171 elif test x$enable_host_pie = xyes; then
9172 PICFLAG=-fPIE
9173 else
9174 PICFLAG=
9179 # Enable Intel CET on Intel CET enabled host if jit is enabled.
9180 # Check whether --enable-cet was given.
9181 if test "${enable_cet+set}" = set; then :
9182 enableval=$enable_cet;
9183 case "$enableval" in
9184 yes|no|auto) ;;
9185 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
9186 esac
9188 else
9189 enable_cet=auto
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
9194 $as_echo_n "checking for CET support... " >&6; }
9196 case "$host" in
9197 i[34567]86-*-linux* | x86_64-*-linux*)
9198 may_have_cet=yes
9199 cet_save_CFLAGS="$CFLAGS"
9200 CFLAGS="$CFLAGS -fcf-protection"
9201 case "$enable_cet" in
9202 auto)
9203 # Check if target supports multi-byte NOPs
9204 # and if compiler and assembler support CET.
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9209 main ()
9212 #if !defined(__SSE2__)
9213 #error target does not support multi-byte NOPs
9214 #else
9215 asm ("setssbsy");
9216 #endif
9219 return 0;
9221 _ACEOF
9222 if ac_fn_c_try_compile "$LINENO"; then :
9223 enable_cet=yes
9224 else
9225 enable_cet=no
9227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9229 yes)
9230 # Check if compiler and assembler support CET.
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9235 main ()
9237 asm ("setssbsy");
9239 return 0;
9241 _ACEOF
9242 if ac_fn_c_try_compile "$LINENO"; then :
9243 support_cet=yes
9244 else
9245 support_cet=no
9247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248 if test $support_cet = "no"; then
9249 if test x$enable_bootstrap != xno \
9250 && test -z "${with_build_subdir}" \
9251 && (test ! -f ../stage_current \
9252 || test `cat ../stage_current` != "stage1"); then
9253 # Require CET support only for the final GCC build.
9254 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
9255 else
9256 # Don't enable CET without CET support for non-bootstrap
9257 # build, in stage1 nor for build support.
9258 enable_cet=no
9262 esac
9263 CFLAGS="$cet_save_CFLAGS"
9266 may_have_cet=no
9267 enable_cet=no
9269 esac
9271 cet_save_CFLAGS="$CFLAGS"
9272 CFLAGS="$CFLAGS -fcf-protection=none"
9273 cet_save_LDFLAGS="$LDFLAGS"
9274 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
9275 if test x$may_have_cet = xyes; then
9276 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9281 main ()
9283 return 0;
9285 return 0;
9287 _ACEOF
9288 if ac_fn_c_try_link "$LINENO"; then :
9289 may_have_cet=yes
9290 else
9291 may_have_cet=no
9293 rm -f core conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9297 if test x$may_have_cet = xyes; then
9298 if test x$cross_compiling = xno; then
9299 if test "$cross_compiling" = yes; then :
9300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9302 as_fn_error $? "cannot run test program while cross compiling
9303 See \`config.log' for more details" "$LINENO" 5; }
9304 else
9305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306 /* end confdefs.h. */
9309 main ()
9311 asm ("endbr32");
9312 return 0;
9315 _ACEOF
9316 if ac_fn_c_try_run "$LINENO"; then :
9317 have_multi_byte_nop=yes
9318 else
9319 have_multi_byte_nop=no
9321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9322 conftest.$ac_objext conftest.beam conftest.$ac_ext
9325 have_cet=no
9326 if test x$have_multi_byte_nop = xyes; then
9327 if test "$cross_compiling" = yes; then :
9328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9330 as_fn_error $? "cannot run test program while cross compiling
9331 See \`config.log' for more details" "$LINENO" 5; }
9332 else
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9336 static void
9337 foo (void)
9341 static void
9342 __attribute__ ((noinline, noclone))
9343 xxx (void (*f) (void))
9345 f ();
9348 static void
9349 __attribute__ ((noinline, noclone))
9350 bar (void)
9352 xxx (foo);
9356 main ()
9358 bar ();
9359 return 0;
9362 _ACEOF
9363 if ac_fn_c_try_run "$LINENO"; then :
9364 have_cet=no
9365 else
9366 have_cet=yes
9368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9369 conftest.$ac_objext conftest.beam conftest.$ac_ext
9373 if test x$enable_cet = xno -a x$have_cet = xyes; then
9374 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
9377 else
9378 # Enable CET in cross compiler if possible so that it will run on both
9379 # CET and non-CET hosts.
9380 have_cet=yes
9382 if test x$enable_cet = xyes; then
9383 CET_HOST_FLAGS="-fcf-protection"
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9385 $as_echo "yes" >&6; }
9386 else
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388 $as_echo "no" >&6; }
9390 CFLAGS="$cet_save_CFLAGS"
9391 LDFLAGS="$cet_save_LDFLAGS"
9393 case x$enable_languages in
9394 *jit*)
9397 CET_HOST_FLAGS=
9399 esac
9402 # Check whether --enable-valgrind-annotations was given.
9403 if test "${enable_valgrind_annotations+set}" = set; then :
9404 enableval=$enable_valgrind_annotations;
9405 else
9406 enable_valgrind_annotations=no
9409 if test x$enable_valgrind_annotations != xno \
9410 || test x$ac_valgrind_checking != x; then
9412 $as_echo "#define ENABLE_VALGRIND_WORKAROUNDS 1" >>confdefs.h
9416 # Output.
9418 ac_config_headers="$ac_config_headers config.h:config.in"
9420 ac_config_files="$ac_config_files Makefile"
9422 cat >confcache <<\_ACEOF
9423 # This file is a shell script that caches the results of configure
9424 # tests run on this system so they can be shared between configure
9425 # scripts and configure runs, see configure's option --config-cache.
9426 # It is not useful on other systems. If it contains results you don't
9427 # want to keep, you may remove or edit it.
9429 # config.status only pays attention to the cache file if you give it
9430 # the --recheck option to rerun configure.
9432 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9433 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9434 # following values.
9436 _ACEOF
9438 # The following way of writing the cache mishandles newlines in values,
9439 # but we know of no workaround that is simple, portable, and efficient.
9440 # So, we kill variables containing newlines.
9441 # Ultrix sh set writes to stderr and can't be redirected directly,
9442 # and sets the high bit in the cache file unless we assign to the vars.
9444 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9445 eval ac_val=\$$ac_var
9446 case $ac_val in #(
9447 *${as_nl}*)
9448 case $ac_var in #(
9449 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9450 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9451 esac
9452 case $ac_var in #(
9453 _ | IFS | as_nl) ;; #(
9454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9455 *) { eval $ac_var=; unset $ac_var;} ;;
9456 esac ;;
9457 esac
9458 done
9460 (set) 2>&1 |
9461 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9462 *${as_nl}ac_space=\ *)
9463 # `set' does not quote correctly, so add quotes: double-quote
9464 # substitution turns \\\\ into \\, and sed turns \\ into \.
9465 sed -n \
9466 "s/'/'\\\\''/g;
9467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9468 ;; #(
9470 # `set' quotes correctly as required by POSIX, so do not add quotes.
9471 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9473 esac |
9474 sort
9476 sed '
9477 /^ac_cv_env_/b end
9478 t clear
9479 :clear
9480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9481 t end
9482 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9483 :end' >>confcache
9484 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9485 if test -w "$cache_file"; then
9486 if test "x$cache_file" != "x/dev/null"; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9488 $as_echo "$as_me: updating cache $cache_file" >&6;}
9489 if test ! -f "$cache_file" || test -h "$cache_file"; then
9490 cat confcache >"$cache_file"
9491 else
9492 case $cache_file in #(
9493 */* | ?:*)
9494 mv -f confcache "$cache_file"$$ &&
9495 mv -f "$cache_file"$$ "$cache_file" ;; #(
9497 mv -f confcache "$cache_file" ;;
9498 esac
9501 else
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9503 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9506 rm -f confcache
9508 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9509 # Let make expand exec_prefix.
9510 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9512 DEFS=-DHAVE_CONFIG_H
9514 ac_libobjs=
9515 ac_ltlibobjs=
9517 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9518 # 1. Remove the extension, and $U if already installed.
9519 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9520 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9521 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9522 # will be set to the directory where LIBOBJS objects are built.
9523 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9524 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9525 done
9526 LIBOBJS=$ac_libobjs
9528 LTLIBOBJS=$ac_ltlibobjs
9533 : "${CONFIG_STATUS=./config.status}"
9534 ac_write_fail=0
9535 ac_clean_files_save=$ac_clean_files
9536 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9538 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9539 as_write_fail=0
9540 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9541 #! $SHELL
9542 # Generated by $as_me.
9543 # Run this file to recreate the current configuration.
9544 # Compiler output produced by configure, useful for debugging
9545 # configure, is in config.log if it exists.
9547 debug=false
9548 ac_cs_recheck=false
9549 ac_cs_silent=false
9551 SHELL=\${CONFIG_SHELL-$SHELL}
9552 export SHELL
9553 _ASEOF
9554 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9555 ## -------------------- ##
9556 ## M4sh Initialization. ##
9557 ## -------------------- ##
9559 # Be more Bourne compatible
9560 DUALCASE=1; export DUALCASE # for MKS sh
9561 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9562 emulate sh
9563 NULLCMD=:
9564 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9565 # is contrary to our usage. Disable this feature.
9566 alias -g '${1+"$@"}'='"$@"'
9567 setopt NO_GLOB_SUBST
9568 else
9569 case `(set -o) 2>/dev/null` in #(
9570 *posix*) :
9571 set -o posix ;; #(
9572 *) :
9574 esac
9578 as_nl='
9580 export as_nl
9581 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9582 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9583 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9584 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9585 # Prefer a ksh shell builtin over an external printf program on Solaris,
9586 # but without wasting forks for bash or zsh.
9587 if test -z "$BASH_VERSION$ZSH_VERSION" \
9588 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9589 as_echo='print -r --'
9590 as_echo_n='print -rn --'
9591 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9592 as_echo='printf %s\n'
9593 as_echo_n='printf %s'
9594 else
9595 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9596 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9597 as_echo_n='/usr/ucb/echo -n'
9598 else
9599 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9600 as_echo_n_body='eval
9601 arg=$1;
9602 case $arg in #(
9603 *"$as_nl"*)
9604 expr "X$arg" : "X\\(.*\\)$as_nl";
9605 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9606 esac;
9607 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9609 export as_echo_n_body
9610 as_echo_n='sh -c $as_echo_n_body as_echo'
9612 export as_echo_body
9613 as_echo='sh -c $as_echo_body as_echo'
9616 # The user is always right.
9617 if test "${PATH_SEPARATOR+set}" != set; then
9618 PATH_SEPARATOR=:
9619 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9620 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9621 PATH_SEPARATOR=';'
9626 # IFS
9627 # We need space, tab and new line, in precisely that order. Quoting is
9628 # there to prevent editors from complaining about space-tab.
9629 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9630 # splitting by setting IFS to empty value.)
9631 IFS=" "" $as_nl"
9633 # Find who we are. Look in the path if we contain no directory separator.
9634 as_myself=
9635 case $0 in #((
9636 *[\\/]* ) as_myself=$0 ;;
9637 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9638 for as_dir in $PATH
9640 IFS=$as_save_IFS
9641 test -z "$as_dir" && as_dir=.
9642 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9643 done
9644 IFS=$as_save_IFS
9647 esac
9648 # We did not find ourselves, most probably we were run as `sh COMMAND'
9649 # in which case we are not to be found in the path.
9650 if test "x$as_myself" = x; then
9651 as_myself=$0
9653 if test ! -f "$as_myself"; then
9654 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9655 exit 1
9658 # Unset variables that we do not need and which cause bugs (e.g. in
9659 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9660 # suppresses any "Segmentation fault" message there. '((' could
9661 # trigger a bug in pdksh 5.2.14.
9662 for as_var in BASH_ENV ENV MAIL MAILPATH
9663 do eval test x\${$as_var+set} = xset \
9664 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9665 done
9666 PS1='$ '
9667 PS2='> '
9668 PS4='+ '
9670 # NLS nuisances.
9671 LC_ALL=C
9672 export LC_ALL
9673 LANGUAGE=C
9674 export LANGUAGE
9676 # CDPATH.
9677 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9680 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9681 # ----------------------------------------
9682 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9683 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9684 # script with STATUS, using 1 if that was 0.
9685 as_fn_error ()
9687 as_status=$1; test $as_status -eq 0 && as_status=1
9688 if test "$4"; then
9689 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9690 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9692 $as_echo "$as_me: error: $2" >&2
9693 as_fn_exit $as_status
9694 } # as_fn_error
9697 # as_fn_set_status STATUS
9698 # -----------------------
9699 # Set $? to STATUS, without forking.
9700 as_fn_set_status ()
9702 return $1
9703 } # as_fn_set_status
9705 # as_fn_exit STATUS
9706 # -----------------
9707 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9708 as_fn_exit ()
9710 set +e
9711 as_fn_set_status $1
9712 exit $1
9713 } # as_fn_exit
9715 # as_fn_unset VAR
9716 # ---------------
9717 # Portably unset VAR.
9718 as_fn_unset ()
9720 { eval $1=; unset $1;}
9722 as_unset=as_fn_unset
9723 # as_fn_append VAR VALUE
9724 # ----------------------
9725 # Append the text in VALUE to the end of the definition contained in VAR. Take
9726 # advantage of any shell optimizations that allow amortized linear growth over
9727 # repeated appends, instead of the typical quadratic growth present in naive
9728 # implementations.
9729 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9730 eval 'as_fn_append ()
9732 eval $1+=\$2
9734 else
9735 as_fn_append ()
9737 eval $1=\$$1\$2
9739 fi # as_fn_append
9741 # as_fn_arith ARG...
9742 # ------------------
9743 # Perform arithmetic evaluation on the ARGs, and store the result in the
9744 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9745 # must be portable across $(()) and expr.
9746 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9747 eval 'as_fn_arith ()
9749 as_val=$(( $* ))
9751 else
9752 as_fn_arith ()
9754 as_val=`expr "$@" || test $? -eq 1`
9756 fi # as_fn_arith
9759 if expr a : '\(a\)' >/dev/null 2>&1 &&
9760 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9761 as_expr=expr
9762 else
9763 as_expr=false
9766 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9767 as_basename=basename
9768 else
9769 as_basename=false
9772 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9773 as_dirname=dirname
9774 else
9775 as_dirname=false
9778 as_me=`$as_basename -- "$0" ||
9779 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9780 X"$0" : 'X\(//\)$' \| \
9781 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9782 $as_echo X/"$0" |
9783 sed '/^.*\/\([^/][^/]*\)\/*$/{
9784 s//\1/
9787 /^X\/\(\/\/\)$/{
9788 s//\1/
9791 /^X\/\(\/\).*/{
9792 s//\1/
9795 s/.*/./; q'`
9797 # Avoid depending upon Character Ranges.
9798 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9799 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9800 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9801 as_cr_digits='0123456789'
9802 as_cr_alnum=$as_cr_Letters$as_cr_digits
9804 ECHO_C= ECHO_N= ECHO_T=
9805 case `echo -n x` in #(((((
9806 -n*)
9807 case `echo 'xy\c'` in
9808 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9809 xy) ECHO_C='\c';;
9810 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9811 ECHO_T=' ';;
9812 esac;;
9814 ECHO_N='-n';;
9815 esac
9817 rm -f conf$$ conf$$.exe conf$$.file
9818 if test -d conf$$.dir; then
9819 rm -f conf$$.dir/conf$$.file
9820 else
9821 rm -f conf$$.dir
9822 mkdir conf$$.dir 2>/dev/null
9824 if (echo >conf$$.file) 2>/dev/null; then
9825 if ln -s conf$$.file conf$$ 2>/dev/null; then
9826 as_ln_s='ln -s'
9827 # ... but there are two gotchas:
9828 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9829 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9830 # In both cases, we have to default to `cp -pR'.
9831 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9832 as_ln_s='cp -pR'
9833 elif ln conf$$.file conf$$ 2>/dev/null; then
9834 as_ln_s=ln
9835 else
9836 as_ln_s='cp -pR'
9838 else
9839 as_ln_s='cp -pR'
9841 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9842 rmdir conf$$.dir 2>/dev/null
9845 # as_fn_mkdir_p
9846 # -------------
9847 # Create "$as_dir" as a directory, including parents if necessary.
9848 as_fn_mkdir_p ()
9851 case $as_dir in #(
9852 -*) as_dir=./$as_dir;;
9853 esac
9854 test -d "$as_dir" || eval $as_mkdir_p || {
9855 as_dirs=
9856 while :; do
9857 case $as_dir in #(
9858 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9859 *) as_qdir=$as_dir;;
9860 esac
9861 as_dirs="'$as_qdir' $as_dirs"
9862 as_dir=`$as_dirname -- "$as_dir" ||
9863 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9864 X"$as_dir" : 'X\(//\)[^/]' \| \
9865 X"$as_dir" : 'X\(//\)$' \| \
9866 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9867 $as_echo X"$as_dir" |
9868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9869 s//\1/
9872 /^X\(\/\/\)[^/].*/{
9873 s//\1/
9876 /^X\(\/\/\)$/{
9877 s//\1/
9880 /^X\(\/\).*/{
9881 s//\1/
9884 s/.*/./; q'`
9885 test -d "$as_dir" && break
9886 done
9887 test -z "$as_dirs" || eval "mkdir $as_dirs"
9888 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9891 } # as_fn_mkdir_p
9892 if mkdir -p . 2>/dev/null; then
9893 as_mkdir_p='mkdir -p "$as_dir"'
9894 else
9895 test -d ./-p && rmdir ./-p
9896 as_mkdir_p=false
9900 # as_fn_executable_p FILE
9901 # -----------------------
9902 # Test if FILE is an executable regular file.
9903 as_fn_executable_p ()
9905 test -f "$1" && test -x "$1"
9906 } # as_fn_executable_p
9907 as_test_x='test -x'
9908 as_executable_p=as_fn_executable_p
9910 # Sed expression to map a string onto a valid CPP name.
9911 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9913 # Sed expression to map a string onto a valid variable name.
9914 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9917 exec 6>&1
9918 ## ----------------------------------- ##
9919 ## Main body of $CONFIG_STATUS script. ##
9920 ## ----------------------------------- ##
9921 _ASEOF
9922 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9925 # Save the log message, to keep $0 and so on meaningful, and to
9926 # report actual input values of CONFIG_FILES etc. instead of their
9927 # values after options handling.
9928 ac_log="
9929 This file was extended by cpplib $as_me , which was
9930 generated by GNU Autoconf 2.69. Invocation command line was
9932 CONFIG_FILES = $CONFIG_FILES
9933 CONFIG_HEADERS = $CONFIG_HEADERS
9934 CONFIG_LINKS = $CONFIG_LINKS
9935 CONFIG_COMMANDS = $CONFIG_COMMANDS
9936 $ $0 $@
9938 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9941 _ACEOF
9943 case $ac_config_files in *"
9944 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9945 esac
9947 case $ac_config_headers in *"
9948 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9949 esac
9952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9953 # Files that config.status was made for.
9954 config_files="$ac_config_files"
9955 config_headers="$ac_config_headers"
9956 config_commands="$ac_config_commands"
9958 _ACEOF
9960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9961 ac_cs_usage="\
9962 \`$as_me' instantiates files and other configuration actions
9963 from templates according to the current configuration. Unless the files
9964 and actions are specified as TAGs, all are instantiated by default.
9966 Usage: $0 [OPTION]... [TAG]...
9968 -h, --help print this help, then exit
9969 -V, --version print version number and configuration settings, then exit
9970 --config print configuration, then exit
9971 -q, --quiet, --silent
9972 do not print progress messages
9973 -d, --debug don't remove temporary files
9974 --recheck update $as_me by reconfiguring in the same conditions
9975 --file=FILE[:TEMPLATE]
9976 instantiate the configuration file FILE
9977 --header=FILE[:TEMPLATE]
9978 instantiate the configuration header FILE
9980 Configuration files:
9981 $config_files
9983 Configuration headers:
9984 $config_headers
9986 Configuration commands:
9987 $config_commands
9989 Report bugs to <gcc-bugs@gcc.gnu.org>."
9991 _ACEOF
9992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9993 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9994 ac_cs_version="\\
9995 cpplib config.status
9996 configured by $0, generated by GNU Autoconf 2.69,
9997 with options \\"\$ac_cs_config\\"
9999 Copyright (C) 2012 Free Software Foundation, Inc.
10000 This config.status script is free software; the Free Software Foundation
10001 gives unlimited permission to copy, distribute and modify it."
10003 ac_pwd='$ac_pwd'
10004 srcdir='$srcdir'
10005 INSTALL='$INSTALL'
10006 test -n "\$AWK" || AWK=awk
10007 _ACEOF
10009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10010 # The default lists apply if the user does not specify any file.
10011 ac_need_defaults=:
10012 while test $# != 0
10014 case $1 in
10015 --*=?*)
10016 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10017 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10018 ac_shift=:
10020 --*=)
10021 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10022 ac_optarg=
10023 ac_shift=:
10026 ac_option=$1
10027 ac_optarg=$2
10028 ac_shift=shift
10030 esac
10032 case $ac_option in
10033 # Handling of the options.
10034 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10035 ac_cs_recheck=: ;;
10036 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10037 $as_echo "$ac_cs_version"; exit ;;
10038 --config | --confi | --conf | --con | --co | --c )
10039 $as_echo "$ac_cs_config"; exit ;;
10040 --debug | --debu | --deb | --de | --d | -d )
10041 debug=: ;;
10042 --file | --fil | --fi | --f )
10043 $ac_shift
10044 case $ac_optarg in
10045 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10046 '') as_fn_error $? "missing file argument" ;;
10047 esac
10048 as_fn_append CONFIG_FILES " '$ac_optarg'"
10049 ac_need_defaults=false;;
10050 --header | --heade | --head | --hea )
10051 $ac_shift
10052 case $ac_optarg in
10053 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10054 esac
10055 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10056 ac_need_defaults=false;;
10057 --he | --h)
10058 # Conflict between --help and --header
10059 as_fn_error $? "ambiguous option: \`$1'
10060 Try \`$0 --help' for more information.";;
10061 --help | --hel | -h )
10062 $as_echo "$ac_cs_usage"; exit ;;
10063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10064 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10065 ac_cs_silent=: ;;
10067 # This is an error.
10068 -*) as_fn_error $? "unrecognized option: \`$1'
10069 Try \`$0 --help' for more information." ;;
10071 *) as_fn_append ac_config_targets " $1"
10072 ac_need_defaults=false ;;
10074 esac
10075 shift
10076 done
10078 ac_configure_extra_args=
10080 if $ac_cs_silent; then
10081 exec 6>/dev/null
10082 ac_configure_extra_args="$ac_configure_extra_args --silent"
10085 _ACEOF
10086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10087 if \$ac_cs_recheck; then
10088 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10089 shift
10090 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10091 CONFIG_SHELL='$SHELL'
10092 export CONFIG_SHELL
10093 exec "\$@"
10096 _ACEOF
10097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10098 exec 5>>config.log
10100 echo
10101 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10102 ## Running $as_me. ##
10103 _ASBOX
10104 $as_echo "$ac_log"
10105 } >&5
10107 _ACEOF
10108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10110 # INIT-COMMANDS
10112 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
10113 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10114 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
10115 # from automake.
10116 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10117 # Capture the value of LINGUAS because we need it to compute CATALOGS.
10118 LINGUAS="${LINGUAS-%UNSET%}"
10121 _ACEOF
10123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10125 # Handling of arguments.
10126 for ac_config_target in $ac_config_targets
10128 case $ac_config_target in
10129 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
10130 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10131 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10132 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10134 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10135 esac
10136 done
10139 # If the user did not use the arguments to specify the items to instantiate,
10140 # then the envvar interface is used. Set only those that are not.
10141 # We use the long form for the default assignment because of an extremely
10142 # bizarre bug on SunOS 4.1.3.
10143 if $ac_need_defaults; then
10144 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10145 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10146 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10149 # Have a temporary directory for convenience. Make it in the build tree
10150 # simply because there is no reason against having it here, and in addition,
10151 # creating and moving files from /tmp can sometimes cause problems.
10152 # Hook for its removal unless debugging.
10153 # Note that there is a small window in which the directory will not be cleaned:
10154 # after its creation but before its name has been assigned to `$tmp'.
10155 $debug ||
10157 tmp= ac_tmp=
10158 trap 'exit_status=$?
10159 : "${ac_tmp:=$tmp}"
10160 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10162 trap 'as_fn_exit 1' 1 2 13 15
10164 # Create a (secure) tmp directory for tmp files.
10167 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10168 test -d "$tmp"
10169 } ||
10171 tmp=./conf$$-$RANDOM
10172 (umask 077 && mkdir "$tmp")
10173 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10174 ac_tmp=$tmp
10176 # Set up the scripts for CONFIG_FILES section.
10177 # No need to generate them if there are no CONFIG_FILES.
10178 # This happens for instance with `./config.status config.h'.
10179 if test -n "$CONFIG_FILES"; then
10182 ac_cr=`echo X | tr X '\015'`
10183 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10184 # But we know of no other shell where ac_cr would be empty at this
10185 # point, so we can use a bashism as a fallback.
10186 if test "x$ac_cr" = x; then
10187 eval ac_cr=\$\'\\r\'
10189 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10190 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10191 ac_cs_awk_cr='\\r'
10192 else
10193 ac_cs_awk_cr=$ac_cr
10196 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10197 _ACEOF
10201 echo "cat >conf$$subs.awk <<_ACEOF" &&
10202 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10203 echo "_ACEOF"
10204 } >conf$$subs.sh ||
10205 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10206 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10207 ac_delim='%!_!# '
10208 for ac_last_try in false false false false false :; do
10209 . ./conf$$subs.sh ||
10210 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10212 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10213 if test $ac_delim_n = $ac_delim_num; then
10214 break
10215 elif $ac_last_try; then
10216 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10217 else
10218 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10220 done
10221 rm -f conf$$subs.sh
10223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10224 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10225 _ACEOF
10226 sed -n '
10228 s/^/S["/; s/!.*/"]=/
10231 s/^[^!]*!//
10232 :repl
10233 t repl
10234 s/'"$ac_delim"'$//
10235 t delim
10238 s/\(.\{148\}\)..*/\1/
10239 t more1
10240 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10243 b repl
10244 :more1
10245 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10248 s/.\{148\}//
10249 t nl
10250 :delim
10252 s/\(.\{148\}\)..*/\1/
10253 t more2
10254 s/["\\]/\\&/g; s/^/"/; s/$/"/
10257 :more2
10258 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10261 s/.\{148\}//
10262 t delim
10263 ' <conf$$subs.awk | sed '
10264 /^[^""]/{
10266 s/\n//
10268 ' >>$CONFIG_STATUS || ac_write_fail=1
10269 rm -f conf$$subs.awk
10270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10271 _ACAWK
10272 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10273 for (key in S) S_is_set[key] = 1
10274 FS = "\a"
10278 line = $ 0
10279 nfields = split(line, field, "@")
10280 substed = 0
10281 len = length(field[1])
10282 for (i = 2; i < nfields; i++) {
10283 key = field[i]
10284 keylen = length(key)
10285 if (S_is_set[key]) {
10286 value = S[key]
10287 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10288 len += length(value) + length(field[++i])
10289 substed = 1
10290 } else
10291 len += 1 + keylen
10294 print line
10297 _ACAWK
10298 _ACEOF
10299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10300 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10301 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10302 else
10304 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10305 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10306 _ACEOF
10308 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10309 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10310 # trailing colons and then remove the whole line if VPATH becomes empty
10311 # (actually we leave an empty line to preserve line numbers).
10312 if test "x$srcdir" = x.; then
10313 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10315 s///
10316 s/^/:/
10317 s/[ ]*$/:/
10318 s/:\$(srcdir):/:/g
10319 s/:\${srcdir}:/:/g
10320 s/:@srcdir@:/:/g
10321 s/^:*//
10322 s/:*$//
10324 s/\(=[ ]*\).*/\1/
10326 s/\n//
10327 s/^[^=]*=[ ]*$//
10331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10332 fi # test -n "$CONFIG_FILES"
10334 # Set up the scripts for CONFIG_HEADERS section.
10335 # No need to generate them if there are no CONFIG_HEADERS.
10336 # This happens for instance with `./config.status Makefile'.
10337 if test -n "$CONFIG_HEADERS"; then
10338 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10339 BEGIN {
10340 _ACEOF
10342 # Transform confdefs.h into an awk script `defines.awk', embedded as
10343 # here-document in config.status, that substitutes the proper values into
10344 # config.h.in to produce config.h.
10346 # Create a delimiter string that does not exist in confdefs.h, to ease
10347 # handling of long lines.
10348 ac_delim='%!_!# '
10349 for ac_last_try in false false :; do
10350 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10351 if test -z "$ac_tt"; then
10352 break
10353 elif $ac_last_try; then
10354 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10355 else
10356 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10358 done
10360 # For the awk script, D is an array of macro values keyed by name,
10361 # likewise P contains macro parameters if any. Preserve backslash
10362 # newline sequences.
10364 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10365 sed -n '
10366 s/.\{148\}/&'"$ac_delim"'/g
10367 t rset
10368 :rset
10369 s/^[ ]*#[ ]*define[ ][ ]*/ /
10370 t def
10372 :def
10373 s/\\$//
10374 t bsnl
10375 s/["\\]/\\&/g
10376 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10377 D["\1"]=" \3"/p
10378 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10380 :bsnl
10381 s/["\\]/\\&/g
10382 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10383 D["\1"]=" \3\\\\\\n"\\/p
10384 t cont
10385 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10386 t cont
10388 :cont
10390 s/.\{148\}/&'"$ac_delim"'/g
10391 t clear
10392 :clear
10393 s/\\$//
10394 t bsnlc
10395 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10397 :bsnlc
10398 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10399 b cont
10400 ' <confdefs.h | sed '
10401 s/'"$ac_delim"'/"\\\
10402 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10405 for (key in D) D_is_set[key] = 1
10406 FS = "\a"
10408 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10409 line = \$ 0
10410 split(line, arg, " ")
10411 if (arg[1] == "#") {
10412 defundef = arg[2]
10413 mac1 = arg[3]
10414 } else {
10415 defundef = substr(arg[1], 2)
10416 mac1 = arg[2]
10418 split(mac1, mac2, "(") #)
10419 macro = mac2[1]
10420 prefix = substr(line, 1, index(line, defundef) - 1)
10421 if (D_is_set[macro]) {
10422 # Preserve the white space surrounding the "#".
10423 print prefix "define", macro P[macro] D[macro]
10424 next
10425 } else {
10426 # Replace #undef with comments. This is necessary, for example,
10427 # in the case of _POSIX_SOURCE, which is predefined and required
10428 # on some systems where configure will not decide to define it.
10429 if (defundef == "undef") {
10430 print "/*", prefix defundef, macro, "*/"
10431 next
10435 { print }
10436 _ACAWK
10437 _ACEOF
10438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10439 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10440 fi # test -n "$CONFIG_HEADERS"
10443 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10444 shift
10445 for ac_tag
10447 case $ac_tag in
10448 :[FHLC]) ac_mode=$ac_tag; continue;;
10449 esac
10450 case $ac_mode$ac_tag in
10451 :[FHL]*:*);;
10452 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10453 :[FH]-) ac_tag=-:-;;
10454 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10455 esac
10456 ac_save_IFS=$IFS
10457 IFS=:
10458 set x $ac_tag
10459 IFS=$ac_save_IFS
10460 shift
10461 ac_file=$1
10462 shift
10464 case $ac_mode in
10465 :L) ac_source=$1;;
10466 :[FH])
10467 ac_file_inputs=
10468 for ac_f
10470 case $ac_f in
10471 -) ac_f="$ac_tmp/stdin";;
10472 *) # Look for the file first in the build tree, then in the source tree
10473 # (if the path is not absolute). The absolute path cannot be DOS-style,
10474 # because $ac_f cannot contain `:'.
10475 test -f "$ac_f" ||
10476 case $ac_f in
10477 [\\/$]*) false;;
10478 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10479 esac ||
10480 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10481 esac
10482 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10483 as_fn_append ac_file_inputs " '$ac_f'"
10484 done
10486 # Let's still pretend it is `configure' which instantiates (i.e., don't
10487 # use $as_me), people would be surprised to read:
10488 # /* config.h. Generated by config.status. */
10489 configure_input='Generated from '`
10490 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10491 `' by configure.'
10492 if test x"$ac_file" != x-; then
10493 configure_input="$ac_file. $configure_input"
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10495 $as_echo "$as_me: creating $ac_file" >&6;}
10497 # Neutralize special characters interpreted by sed in replacement strings.
10498 case $configure_input in #(
10499 *\&* | *\|* | *\\* )
10500 ac_sed_conf_input=`$as_echo "$configure_input" |
10501 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10502 *) ac_sed_conf_input=$configure_input;;
10503 esac
10505 case $ac_tag in
10506 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10507 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10508 esac
10510 esac
10512 ac_dir=`$as_dirname -- "$ac_file" ||
10513 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10514 X"$ac_file" : 'X\(//\)[^/]' \| \
10515 X"$ac_file" : 'X\(//\)$' \| \
10516 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10517 $as_echo X"$ac_file" |
10518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10519 s//\1/
10522 /^X\(\/\/\)[^/].*/{
10523 s//\1/
10526 /^X\(\/\/\)$/{
10527 s//\1/
10530 /^X\(\/\).*/{
10531 s//\1/
10534 s/.*/./; q'`
10535 as_dir="$ac_dir"; as_fn_mkdir_p
10536 ac_builddir=.
10538 case "$ac_dir" in
10539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10541 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10542 # A ".." for each directory in $ac_dir_suffix.
10543 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10544 case $ac_top_builddir_sub in
10545 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10546 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10547 esac ;;
10548 esac
10549 ac_abs_top_builddir=$ac_pwd
10550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10551 # for backward compatibility:
10552 ac_top_builddir=$ac_top_build_prefix
10554 case $srcdir in
10555 .) # We are building in place.
10556 ac_srcdir=.
10557 ac_top_srcdir=$ac_top_builddir_sub
10558 ac_abs_top_srcdir=$ac_pwd ;;
10559 [\\/]* | ?:[\\/]* ) # Absolute name.
10560 ac_srcdir=$srcdir$ac_dir_suffix;
10561 ac_top_srcdir=$srcdir
10562 ac_abs_top_srcdir=$srcdir ;;
10563 *) # Relative name.
10564 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10565 ac_top_srcdir=$ac_top_build_prefix$srcdir
10566 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10567 esac
10568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10571 case $ac_mode in
10574 # CONFIG_FILE
10577 case $INSTALL in
10578 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10579 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10580 esac
10581 _ACEOF
10583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10584 # If the template does not know about datarootdir, expand it.
10585 # FIXME: This hack should be removed a few years after 2.60.
10586 ac_datarootdir_hack=; ac_datarootdir_seen=
10587 ac_sed_dataroot='
10588 /datarootdir/ {
10592 /@datadir@/p
10593 /@docdir@/p
10594 /@infodir@/p
10595 /@localedir@/p
10596 /@mandir@/p'
10597 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10598 *datarootdir*) ac_datarootdir_seen=yes;;
10599 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10601 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10602 _ACEOF
10603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10604 ac_datarootdir_hack='
10605 s&@datadir@&$datadir&g
10606 s&@docdir@&$docdir&g
10607 s&@infodir@&$infodir&g
10608 s&@localedir@&$localedir&g
10609 s&@mandir@&$mandir&g
10610 s&\\\${datarootdir}&$datarootdir&g' ;;
10611 esac
10612 _ACEOF
10614 # Neutralize VPATH when `$srcdir' = `.'.
10615 # Shell code in configure.ac might set extrasub.
10616 # FIXME: do we really want to maintain this feature?
10617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10618 ac_sed_extra="$ac_vpsub
10619 $extrasub
10620 _ACEOF
10621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10624 s|@configure_input@|$ac_sed_conf_input|;t t
10625 s&@top_builddir@&$ac_top_builddir_sub&;t t
10626 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10627 s&@srcdir@&$ac_srcdir&;t t
10628 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10629 s&@top_srcdir@&$ac_top_srcdir&;t t
10630 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10631 s&@builddir@&$ac_builddir&;t t
10632 s&@abs_builddir@&$ac_abs_builddir&;t t
10633 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10634 s&@INSTALL@&$ac_INSTALL&;t t
10635 $ac_datarootdir_hack
10637 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10638 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10640 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10641 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10642 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10643 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10645 which seems to be undefined. Please make sure it is defined" >&5
10646 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10647 which seems to be undefined. Please make sure it is defined" >&2;}
10649 rm -f "$ac_tmp/stdin"
10650 case $ac_file in
10651 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10652 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10653 esac \
10654 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10658 # CONFIG_HEADER
10660 if test x"$ac_file" != x-; then
10662 $as_echo "/* $configure_input */" \
10663 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10664 } >"$ac_tmp/config.h" \
10665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10666 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10668 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10669 else
10670 rm -f "$ac_file"
10671 mv "$ac_tmp/config.h" "$ac_file" \
10672 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10674 else
10675 $as_echo "/* $configure_input */" \
10676 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10677 || as_fn_error $? "could not create -" "$LINENO" 5
10681 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10682 $as_echo "$as_me: executing $ac_file commands" >&6;}
10684 esac
10687 case $ac_file$ac_mode in
10688 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
10689 "default-1":C)
10690 for ac_file in $CONFIG_FILES; do
10691 # Support "outfile[:infile[:infile...]]"
10692 case "$ac_file" in
10693 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10694 esac
10695 # PO directories have a Makefile.in generated from Makefile.in.in.
10696 case "$ac_file" in */Makefile.in)
10697 # Adjust a relative srcdir.
10698 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10699 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
10700 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10701 # In autoconf-2.13 it is called $ac_given_srcdir.
10702 # In autoconf-2.50 it is called $srcdir.
10703 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10704 case "$ac_given_srcdir" in
10705 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10706 /*) top_srcdir="$ac_given_srcdir" ;;
10707 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10708 esac
10709 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10710 rm -f "$ac_dir/POTFILES"
10711 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10712 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10713 POMAKEFILEDEPS="POTFILES.in"
10714 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10715 # on $ac_dir but don't depend on user-specified configuration
10716 # parameters.
10717 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10718 # The LINGUAS file contains the set of available languages.
10719 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10720 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
10722 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10723 # Hide the ALL_LINGUAS assigment from automake.
10724 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10725 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10726 else
10727 # The set of available languages was given in configure.ac.
10728 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10730 case "$ac_given_srcdir" in
10731 .) srcdirpre= ;;
10732 *) srcdirpre='$(srcdir)/' ;;
10733 esac
10734 POFILES=
10735 GMOFILES=
10736 UPDATEPOFILES=
10737 DUMMYPOFILES=
10738 for lang in $ALL_LINGUAS; do
10739 POFILES="$POFILES $srcdirpre$lang.po"
10740 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10741 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10742 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10743 done
10744 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10745 # environment variable.
10746 INST_LINGUAS=
10747 if test -n "$ALL_LINGUAS"; then
10748 for presentlang in $ALL_LINGUAS; do
10749 useit=no
10750 if test "%UNSET%" != "$LINGUAS"; then
10751 desiredlanguages="$LINGUAS"
10752 else
10753 desiredlanguages="$ALL_LINGUAS"
10755 for desiredlang in $desiredlanguages; do
10756 # Use the presentlang catalog if desiredlang is
10757 # a. equal to presentlang, or
10758 # b. a variant of presentlang (because in this case,
10759 # presentlang can be used as a fallback for messages
10760 # which are not translated in the desiredlang catalog).
10761 case "$desiredlang" in
10762 "$presentlang"*) useit=yes;;
10763 esac
10764 done
10765 if test $useit = yes; then
10766 INST_LINGUAS="$INST_LINGUAS $presentlang"
10768 done
10770 CATALOGS=
10771 if test -n "$INST_LINGUAS"; then
10772 for lang in $INST_LINGUAS; do
10773 CATALOGS="$CATALOGS $lang.gmo"
10774 done
10776 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10777 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"
10778 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10779 if test -f "$f"; then
10780 case "$f" in
10781 *.orig | *.bak | *~) ;;
10782 *) cat "$f" >> "$ac_dir/Makefile" ;;
10783 esac
10785 done
10788 esac
10789 done ;;
10790 "config.h":H) echo timestamp > stamp-h1 ;;
10792 esac
10793 done # for ac_tag
10796 as_fn_exit 0
10797 _ACEOF
10798 ac_clean_files=$ac_clean_files_save
10800 test $ac_write_fail = 0 ||
10801 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10804 # configure is writing to config.log, and then calls config.status.
10805 # config.status does its own redirection, appending to config.log.
10806 # Unfortunately, on DOS this fails, as config.log is still kept open
10807 # by configure, so config.status won't be able to write to it; its
10808 # output is simply discarded. So we exec the FD to /dev/null,
10809 # effectively closing config.log, so it can be properly (re)opened and
10810 # appended to by config.status. When coming back to configure, we
10811 # need to make the FD available again.
10812 if test "$no_create" != yes; then
10813 ac_cs_success=:
10814 ac_config_status_args=
10815 test "$silent" = yes &&
10816 ac_config_status_args="$ac_config_status_args --quiet"
10817 exec 5>/dev/null
10818 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10819 exec 5>>config.log
10820 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10821 # would make configure fail if this is the last instruction.
10822 $ac_cs_success || as_fn_exit 1
10824 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10826 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}