Move PREFERRED_DEBUGGING_TYPE define in pa64-hpux.h to pa.h
[official-gcc.git] / libcpp / configure
blob9674cd9c7a7b97b6d8975ec55b99d3842810d688
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 ac_subst_vars='LTLIBOBJS
626 CET_HOST_FLAGS
627 PICFLAG
628 MAINT
629 USED_CATALOGS
630 PACKAGE
631 LTLIBICONV
632 LIBICONV
633 CATOBJEXT
634 GENCAT
635 INSTOBJEXT
636 DATADIRNAME
637 CATALOGS
638 POSUB
639 GMSGFMT
640 XGETTEXT
641 INCINTL
642 LIBINTL_DEP
643 LIBINTL
644 USE_NLS
645 ALLOCA
646 LIBOBJS
647 CXXDEPMODE
648 DEPDIR
649 am__leading_dot
650 WERROR
651 noexception_flags
652 WARN_PEDANTIC
653 c_warn
654 warn
655 AUTOHEADER
656 AUTOCONF
657 ACLOCAL
658 EGREP
659 GREP
662 RANLIB
663 ac_ct_CXX
664 CXXFLAGS
666 OBJEXT
667 EXEEXT
668 ac_ct_CC
669 CPPFLAGS
670 LDFLAGS
671 CFLAGS
673 INSTALL_DATA
674 INSTALL_SCRIPT
675 INSTALL_PROGRAM
676 SET_MAKE
677 target_os
678 target_vendor
679 target_cpu
680 target
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 target_alias
690 host_alias
691 build_alias
692 LIBS
693 ECHO_T
694 ECHO_N
695 ECHO_C
696 DEFS
697 mandir
698 localedir
699 libdir
700 psdir
701 pdfdir
702 dvidir
703 htmldir
704 infodir
705 docdir
706 oldincludedir
707 includedir
708 localstatedir
709 sharedstatedir
710 sysconfdir
711 datadir
712 datarootdir
713 libexecdir
714 sbindir
715 bindir
716 program_transform_name
717 prefix
718 exec_prefix
719 PACKAGE_URL
720 PACKAGE_BUGREPORT
721 PACKAGE_STRING
722 PACKAGE_VERSION
723 PACKAGE_TARNAME
724 PACKAGE_NAME
725 PATH_SEPARATOR
726 SHELL'
727 ac_subst_files=''
728 ac_user_opts='
729 enable_option_checking
730 enable_largefile
731 enable_werror_always
732 with_gnu_ld
733 enable_rpath
734 with_libiconv_prefix
735 with_libiconv_type
736 enable_maintainer_mode
737 enable_checking
738 enable_canonical_system_headers
739 enable_host_shared
740 enable_cet
741 enable_valgrind_annotations
743 ac_precious_vars='build_alias
744 host_alias
745 target_alias
747 CFLAGS
748 LDFLAGS
749 LIBS
750 CPPFLAGS
752 CXXFLAGS
754 CPP'
757 # Initialize some variables set by options.
758 ac_init_help=
759 ac_init_version=false
760 ac_unrecognized_opts=
761 ac_unrecognized_sep=
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
764 cache_file=/dev/null
765 exec_prefix=NONE
766 no_create=
767 no_recursion=
768 prefix=NONE
769 program_prefix=NONE
770 program_suffix=NONE
771 program_transform_name=s,x,x,
772 silent=
773 site=
774 srcdir=
775 verbose=
776 x_includes=NONE
777 x_libraries=NONE
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
797 htmldir='${docdir}'
798 dvidir='${docdir}'
799 pdfdir='${docdir}'
800 psdir='${docdir}'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
805 ac_prev=
806 ac_dashdash=
807 for ac_option
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\$ac_option
812 ac_prev=
813 continue
816 case $ac_option in
817 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 *=) ac_optarg= ;;
819 *) ac_optarg=yes ;;
820 esac
822 # Accept the important Cygnus configure options, so we can diagnose typos.
824 case $ac_dashdash$ac_option in
826 ac_dashdash=yes ;;
828 -bindir | --bindir | --bindi | --bind | --bin | --bi)
829 ac_prev=bindir ;;
830 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831 bindir=$ac_optarg ;;
833 -build | --build | --buil | --bui | --bu)
834 ac_prev=build_alias ;;
835 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
836 build_alias=$ac_optarg ;;
838 -cache-file | --cache-file | --cache-fil | --cache-fi \
839 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
840 ac_prev=cache_file ;;
841 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
842 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
843 cache_file=$ac_optarg ;;
845 --config-cache | -C)
846 cache_file=config.cache ;;
848 -datadir | --datadir | --datadi | --datad)
849 ac_prev=datadir ;;
850 -datadir=* | --datadir=* | --datadi=* | --datad=*)
851 datadir=$ac_optarg ;;
853 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
854 | --dataroo | --dataro | --datar)
855 ac_prev=datarootdir ;;
856 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
857 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
858 datarootdir=$ac_optarg ;;
860 -disable-* | --disable-*)
861 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864 as_fn_error $? "invalid feature name: $ac_useropt"
865 ac_useropt_orig=$ac_useropt
866 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867 case $ac_user_opts in
869 "enable_$ac_useropt"
870 "*) ;;
871 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872 ac_unrecognized_sep=', ';;
873 esac
874 eval enable_$ac_useropt=no ;;
876 -docdir | --docdir | --docdi | --doc | --do)
877 ac_prev=docdir ;;
878 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879 docdir=$ac_optarg ;;
881 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
882 ac_prev=dvidir ;;
883 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884 dvidir=$ac_optarg ;;
886 -enable-* | --enable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
895 "enable_$ac_useropt"
896 "*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=\$ac_optarg ;;
902 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904 | --exec | --exe | --ex)
905 ac_prev=exec_prefix ;;
906 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908 | --exec=* | --exe=* | --ex=*)
909 exec_prefix=$ac_optarg ;;
911 -gas | --gas | --ga | --g)
912 # Obsolete; use --with-gas.
913 with_gas=yes ;;
915 -help | --help | --hel | --he | -h)
916 ac_init_help=long ;;
917 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918 ac_init_help=recursive ;;
919 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920 ac_init_help=short ;;
922 -host | --host | --hos | --ho)
923 ac_prev=host_alias ;;
924 -host=* | --host=* | --hos=* | --ho=*)
925 host_alias=$ac_optarg ;;
927 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928 ac_prev=htmldir ;;
929 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930 | --ht=*)
931 htmldir=$ac_optarg ;;
933 -includedir | --includedir | --includedi | --included | --include \
934 | --includ | --inclu | --incl | --inc)
935 ac_prev=includedir ;;
936 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937 | --includ=* | --inclu=* | --incl=* | --inc=*)
938 includedir=$ac_optarg ;;
940 -infodir | --infodir | --infodi | --infod | --info | --inf)
941 ac_prev=infodir ;;
942 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943 infodir=$ac_optarg ;;
945 -libdir | --libdir | --libdi | --libd)
946 ac_prev=libdir ;;
947 -libdir=* | --libdir=* | --libdi=* | --libd=*)
948 libdir=$ac_optarg ;;
950 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951 | --libexe | --libex | --libe)
952 ac_prev=libexecdir ;;
953 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954 | --libexe=* | --libex=* | --libe=*)
955 libexecdir=$ac_optarg ;;
957 -localedir | --localedir | --localedi | --localed | --locale)
958 ac_prev=localedir ;;
959 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960 localedir=$ac_optarg ;;
962 -localstatedir | --localstatedir | --localstatedi | --localstated \
963 | --localstate | --localstat | --localsta | --localst | --locals)
964 ac_prev=localstatedir ;;
965 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967 localstatedir=$ac_optarg ;;
969 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970 ac_prev=mandir ;;
971 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972 mandir=$ac_optarg ;;
974 -nfp | --nfp | --nf)
975 # Obsolete; use --without-fp.
976 with_fp=no ;;
978 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979 | --no-cr | --no-c | -n)
980 no_create=yes ;;
982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984 no_recursion=yes ;;
986 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988 | --oldin | --oldi | --old | --ol | --o)
989 ac_prev=oldincludedir ;;
990 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993 oldincludedir=$ac_optarg ;;
995 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996 ac_prev=prefix ;;
997 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998 prefix=$ac_optarg ;;
1000 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001 | --program-pre | --program-pr | --program-p)
1002 ac_prev=program_prefix ;;
1003 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005 program_prefix=$ac_optarg ;;
1007 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008 | --program-suf | --program-su | --program-s)
1009 ac_prev=program_suffix ;;
1010 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012 program_suffix=$ac_optarg ;;
1014 -program-transform-name | --program-transform-name \
1015 | --program-transform-nam | --program-transform-na \
1016 | --program-transform-n | --program-transform- \
1017 | --program-transform | --program-transfor \
1018 | --program-transfo | --program-transf \
1019 | --program-trans | --program-tran \
1020 | --progr-tra | --program-tr | --program-t)
1021 ac_prev=program_transform_name ;;
1022 -program-transform-name=* | --program-transform-name=* \
1023 | --program-transform-nam=* | --program-transform-na=* \
1024 | --program-transform-n=* | --program-transform-=* \
1025 | --program-transform=* | --program-transfor=* \
1026 | --program-transfo=* | --program-transf=* \
1027 | --program-trans=* | --program-tran=* \
1028 | --progr-tra=* | --program-tr=* | --program-t=*)
1029 program_transform_name=$ac_optarg ;;
1031 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032 ac_prev=pdfdir ;;
1033 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034 pdfdir=$ac_optarg ;;
1036 -psdir | --psdir | --psdi | --psd | --ps)
1037 ac_prev=psdir ;;
1038 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039 psdir=$ac_optarg ;;
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1043 silent=yes ;;
1045 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046 ac_prev=sbindir ;;
1047 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048 | --sbi=* | --sb=*)
1049 sbindir=$ac_optarg ;;
1051 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053 | --sharedst | --shareds | --shared | --share | --shar \
1054 | --sha | --sh)
1055 ac_prev=sharedstatedir ;;
1056 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059 | --sha=* | --sh=*)
1060 sharedstatedir=$ac_optarg ;;
1062 -site | --site | --sit)
1063 ac_prev=site ;;
1064 -site=* | --site=* | --sit=*)
1065 site=$ac_optarg ;;
1067 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068 ac_prev=srcdir ;;
1069 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070 srcdir=$ac_optarg ;;
1072 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073 | --syscon | --sysco | --sysc | --sys | --sy)
1074 ac_prev=sysconfdir ;;
1075 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077 sysconfdir=$ac_optarg ;;
1079 -target | --target | --targe | --targ | --tar | --ta | --t)
1080 ac_prev=target_alias ;;
1081 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082 target_alias=$ac_optarg ;;
1084 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085 verbose=yes ;;
1087 -version | --version | --versio | --versi | --vers | -V)
1088 ac_init_version=: ;;
1090 -with-* | --with-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error $? "invalid package name: $ac_useropt"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1099 "with_$ac_useropt"
1100 "*) ;;
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1103 esac
1104 eval with_$ac_useropt=\$ac_optarg ;;
1106 -without-* | --without-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid package name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1115 "with_$ac_useropt"
1116 "*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval with_$ac_useropt=no ;;
1122 --x)
1123 # Obsolete; use --with-x.
1124 with_x=yes ;;
1126 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127 | --x-incl | --x-inc | --x-in | --x-i)
1128 ac_prev=x_includes ;;
1129 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1131 x_includes=$ac_optarg ;;
1133 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135 ac_prev=x_libraries ;;
1136 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1138 x_libraries=$ac_optarg ;;
1140 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1141 Try \`$0 --help' for more information"
1144 *=*)
1145 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146 # Reject names that are not valid shell variable names.
1147 case $ac_envvar in #(
1148 '' | [0-9]* | *[!_$as_cr_alnum]* )
1149 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1150 esac
1151 eval $ac_envvar=\$ac_optarg
1152 export $ac_envvar ;;
1155 # FIXME: should be removed in autoconf 3.0.
1156 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1162 esac
1163 done
1165 if test -n "$ac_prev"; then
1166 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167 as_fn_error $? "missing argument to $ac_option"
1170 if test -n "$ac_unrecognized_opts"; then
1171 case $enable_option_checking in
1172 no) ;;
1173 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1174 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1175 esac
1178 # Check all directory arguments for consistency.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1184 eval ac_val=\$$ac_var
1185 # Remove trailing slashes.
1186 case $ac_val in
1187 */ )
1188 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1189 eval $ac_var=\$ac_val;;
1190 esac
1191 # Be sure to have absolute directory names.
1192 case $ac_val in
1193 [\\/$]* | ?:[\\/]* ) continue;;
1194 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1195 esac
1196 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1197 done
1199 # There might be people who depend on the old broken behavior: `$host'
1200 # used to hold the argument of --host etc.
1201 # FIXME: To remove some day.
1202 build=$build_alias
1203 host=$host_alias
1204 target=$target_alias
1206 # FIXME: To remove some day.
1207 if test "x$host_alias" != x; then
1208 if test "x$build_alias" = x; then
1209 cross_compiling=maybe
1210 elif test "x$build_alias" != "x$host_alias"; then
1211 cross_compiling=yes
1215 ac_tool_prefix=
1216 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1218 test "$silent" = yes && exec 6>/dev/null
1221 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1222 ac_ls_di=`ls -di .` &&
1223 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1224 as_fn_error $? "working directory cannot be determined"
1225 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226 as_fn_error $? "pwd does not report name of working directory"
1229 # Find the source files, if location was not specified.
1230 if test -z "$srcdir"; then
1231 ac_srcdir_defaulted=yes
1232 # Try the directory containing this script, then the parent directory.
1233 ac_confdir=`$as_dirname -- "$as_myself" ||
1234 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235 X"$as_myself" : 'X\(//\)[^/]' \| \
1236 X"$as_myself" : 'X\(//\)$' \| \
1237 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1238 $as_echo X"$as_myself" |
1239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240 s//\1/
1243 /^X\(\/\/\)[^/].*/{
1244 s//\1/
1247 /^X\(\/\/\)$/{
1248 s//\1/
1251 /^X\(\/\).*/{
1252 s//\1/
1255 s/.*/./; q'`
1256 srcdir=$ac_confdir
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 srcdir=..
1260 else
1261 ac_srcdir_defaulted=no
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1264 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1265 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1267 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 ac_abs_confdir=`(
1269 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1270 pwd)`
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 srcdir=.
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1278 case $srcdir in
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 esac
1281 for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286 done
1289 # Report the --help message.
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1294 cat <<_ACEOF
1295 \`configure' configures cpplib to adapt to many kinds of systems.
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1302 Defaults for the options are specified in brackets.
1304 Configuration:
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking ...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 [PREFIX]
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1326 For better control, use the options below.
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1348 _ACEOF
1350 cat <<\_ACEOF
1352 System types:
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355 --target=TARGET configure for building compilers for TARGET [HOST]
1356 _ACEOF
1359 if test -n "$ac_init_help"; then
1360 case $ac_init_help in
1361 short | recursive ) echo "Configuration of cpplib :";;
1362 esac
1363 cat <<\_ACEOF
1365 Optional Features:
1366 --disable-option-checking ignore unrecognized --enable/--with options
1367 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1368 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1369 --disable-largefile omit support for large files
1370 --enable-werror-always enable -Werror despite compiler version
1371 --disable-rpath do not hardcode runtime library paths
1372 --enable-maintainer-mode enable rules only needed by maintainers
1373 --enable-checking[=LIST]
1374 enable expensive run-time checks. With LIST, enable
1375 only specific categories of checks. Categories are:
1376 yes,no,all,none,release. Flags are: misc,valgrind or
1377 other strings
1378 --enable-canonical-system-headers
1379 enable or disable system headers canonicalization
1380 --enable-host-shared build host code as shared libraries
1381 --enable-cet enable Intel CET in host libraries [default=auto]
1382 --enable-valgrind-annotations
1383 enable valgrind runtime interaction
1385 Optional Packages:
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1388 --with-gnu-ld assume the C compiler uses GNU ld default=no
1389 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1390 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1391 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1393 Some influential environment variables:
1394 CC C compiler command
1395 CFLAGS C compiler flags
1396 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1397 nonstandard directory <lib dir>
1398 LIBS libraries to pass to the linker, e.g. -l<library>
1399 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1400 you have headers in a nonstandard directory <include dir>
1401 CXX C++ compiler command
1402 CXXFLAGS C++ compiler flags
1403 CPP C preprocessor
1405 Use these variables to override the choices made by `configure' or to help
1406 it to find libraries and programs with nonstandard names/locations.
1408 Report bugs to <gcc-bugs@gcc.gnu.org>.
1409 _ACEOF
1410 ac_status=$?
1413 if test "$ac_init_help" = "recursive"; then
1414 # If there are subdirs, report their specific --help.
1415 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1416 test -d "$ac_dir" ||
1417 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1418 continue
1419 ac_builddir=.
1421 case "$ac_dir" in
1422 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1425 # A ".." for each directory in $ac_dir_suffix.
1426 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1427 case $ac_top_builddir_sub in
1428 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430 esac ;;
1431 esac
1432 ac_abs_top_builddir=$ac_pwd
1433 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434 # for backward compatibility:
1435 ac_top_builddir=$ac_top_build_prefix
1437 case $srcdir in
1438 .) # We are building in place.
1439 ac_srcdir=.
1440 ac_top_srcdir=$ac_top_builddir_sub
1441 ac_abs_top_srcdir=$ac_pwd ;;
1442 [\\/]* | ?:[\\/]* ) # Absolute name.
1443 ac_srcdir=$srcdir$ac_dir_suffix;
1444 ac_top_srcdir=$srcdir
1445 ac_abs_top_srcdir=$srcdir ;;
1446 *) # Relative name.
1447 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448 ac_top_srcdir=$ac_top_build_prefix$srcdir
1449 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1450 esac
1451 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1453 cd "$ac_dir" || { ac_status=$?; continue; }
1454 # Check for guested configure.
1455 if test -f "$ac_srcdir/configure.gnu"; then
1456 echo &&
1457 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458 elif test -f "$ac_srcdir/configure"; then
1459 echo &&
1460 $SHELL "$ac_srcdir/configure" --help=recursive
1461 else
1462 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1463 fi || ac_status=$?
1464 cd "$ac_pwd" || { ac_status=$?; break; }
1465 done
1468 test -n "$ac_init_help" && exit $ac_status
1469 if $ac_init_version; then
1470 cat <<\_ACEOF
1471 cpplib configure
1472 generated by GNU Autoconf 2.69
1474 Copyright (C) 2012 Free Software Foundation, Inc.
1475 This configure script is free software; the Free Software Foundation
1476 gives unlimited permission to copy, distribute and modify it.
1477 _ACEOF
1478 exit
1481 ## ------------------------ ##
1482 ## Autoconf initialization. ##
1483 ## ------------------------ ##
1485 # ac_fn_c_try_compile LINENO
1486 # --------------------------
1487 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1488 ac_fn_c_try_compile ()
1490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491 rm -f conftest.$ac_objext
1492 if { { ac_try="$ac_compile"
1493 case "(($ac_try" in
1494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495 *) ac_try_echo=$ac_try;;
1496 esac
1497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498 $as_echo "$ac_try_echo"; } >&5
1499 (eval "$ac_compile") 2>conftest.err
1500 ac_status=$?
1501 if test -s conftest.err; then
1502 grep -v '^ *+' conftest.err >conftest.er1
1503 cat conftest.er1 >&5
1504 mv -f conftest.er1 conftest.err
1506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507 test $ac_status = 0; } && {
1508 test -z "$ac_c_werror_flag" ||
1509 test ! -s conftest.err
1510 } && test -s conftest.$ac_objext; then :
1511 ac_retval=0
1512 else
1513 $as_echo "$as_me: failed program was:" >&5
1514 sed 's/^/| /' conftest.$ac_ext >&5
1516 ac_retval=1
1518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519 as_fn_set_status $ac_retval
1521 } # ac_fn_c_try_compile
1523 # ac_fn_cxx_try_compile LINENO
1524 # ----------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_cxx_try_compile ()
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1531 case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_cxx_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1549 ac_retval=0
1550 else
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1554 ac_retval=1
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1559 } # ac_fn_cxx_try_compile
1561 # ac_fn_c_try_cpp LINENO
1562 # ----------------------
1563 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_cpp ()
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 if { { ac_try="$ac_cpp conftest.$ac_ext"
1568 case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } > conftest.i && {
1583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 }; then :
1586 ac_retval=0
1587 else
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1591 ac_retval=1
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1596 } # ac_fn_c_try_cpp
1598 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1599 # -------------------------------------------------------
1600 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1601 # the include files in INCLUDES and setting the cache variable VAR
1602 # accordingly.
1603 ac_fn_c_check_header_mongrel ()
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if eval \${$3+:} false; then :
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608 $as_echo_n "checking for $2... " >&6; }
1609 if eval \${$3+:} false; then :
1610 $as_echo_n "(cached) " >&6
1612 eval ac_res=\$$3
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1614 $as_echo "$ac_res" >&6; }
1615 else
1616 # Is the header compilable?
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1618 $as_echo_n "checking $2 usability... " >&6; }
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h. */
1622 #include <$2>
1623 _ACEOF
1624 if ac_fn_c_try_compile "$LINENO"; then :
1625 ac_header_compiler=yes
1626 else
1627 ac_header_compiler=no
1629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1631 $as_echo "$ac_header_compiler" >&6; }
1633 # Is the header present?
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1635 $as_echo_n "checking $2 presence... " >&6; }
1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637 /* end confdefs.h. */
1638 #include <$2>
1639 _ACEOF
1640 if ac_fn_c_try_cpp "$LINENO"; then :
1641 ac_header_preproc=yes
1642 else
1643 ac_header_preproc=no
1645 rm -f conftest.err conftest.i conftest.$ac_ext
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1647 $as_echo "$ac_header_preproc" >&6; }
1649 # So? What about this header?
1650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1651 yes:no: )
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1653 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1655 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1657 no:yes:* )
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1659 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1661 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1663 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1665 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1667 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1668 ( $as_echo "## ----------------------------------- ##
1669 ## Report this to gcc-bugs@gcc.gnu.org ##
1670 ## ----------------------------------- ##"
1671 ) | sed "s/^/$as_me: WARNING: /" >&2
1673 esac
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1678 else
1679 eval "$3=\$ac_header_compiler"
1681 eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 } # ac_fn_c_check_header_mongrel
1689 # ac_fn_c_try_run LINENO
1690 # ----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692 # that executables *can* be run.
1693 ac_fn_c_try_run ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1723 ac_retval=$ac_status
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1729 } # ac_fn_c_try_run
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1742 else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749 eval "$3=yes"
1750 else
1751 eval "$3=no"
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 } # ac_fn_c_check_header_compile
1762 # ac_fn_c_try_link LINENO
1763 # -----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_link ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest$ac_exeext && {
1788 test "$cross_compiling" = yes ||
1789 test -x conftest$ac_exeext
1790 }; then :
1791 ac_retval=0
1792 else
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1796 ac_retval=1
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
1806 } # ac_fn_c_try_link
1808 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1809 # -------------------------------------------
1810 # Tests whether TYPE exists after having included INCLUDES, setting cache
1811 # variable VAR accordingly.
1812 ac_fn_c_check_type ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818 $as_echo_n "(cached) " >&6
1819 else
1820 eval "$3=no"
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1825 main ()
1827 if (sizeof ($2))
1828 return 0;
1830 return 0;
1832 _ACEOF
1833 if ac_fn_c_try_compile "$LINENO"; then :
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1838 main ()
1840 if (sizeof (($2)))
1841 return 0;
1843 return 0;
1845 _ACEOF
1846 if ac_fn_c_try_compile "$LINENO"; then :
1848 else
1849 eval "$3=yes"
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855 eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 } # ac_fn_c_check_type
1862 # ac_fn_c_find_uintX_t LINENO BITS VAR
1863 # ------------------------------------
1864 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1865 # accordingly.
1866 ac_fn_c_find_uintX_t ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1870 $as_echo_n "checking for uint$2_t... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873 else
1874 eval "$3=no"
1875 # Order is important - never check a type that is potentially smaller
1876 # than half of the expected target width.
1877 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1878 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1881 $ac_includes_default
1883 main ()
1885 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1886 test_array [0] = 0;
1887 return test_array [0];
1890 return 0;
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894 case $ac_type in #(
1895 uint$2_t) :
1896 eval "$3=yes" ;; #(
1897 *) :
1898 eval "$3=\$ac_type" ;;
1899 esac
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 if eval test \"x\$"$3"\" = x"no"; then :
1904 else
1905 break
1907 done
1909 eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 } # ac_fn_c_find_uintX_t
1916 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1917 # --------------------------------------------
1918 # Tries to find the compile-time value of EXPR in a program that includes
1919 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1920 # computed
1921 ac_fn_c_compute_int ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if test "$cross_compiling" = yes; then
1925 # Depending upon the size, compute the lo and hi bounds.
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1930 main ()
1932 static int test_array [1 - 2 * !(($2) >= 0)];
1933 test_array [0] = 0;
1934 return test_array [0];
1937 return 0;
1939 _ACEOF
1940 if ac_fn_c_try_compile "$LINENO"; then :
1941 ac_lo=0 ac_mid=0
1942 while :; do
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1947 main ()
1949 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1950 test_array [0] = 0;
1951 return test_array [0];
1954 return 0;
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 ac_hi=$ac_mid; break
1959 else
1960 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1961 if test $ac_lo -le $ac_mid; then
1962 ac_lo= ac_hi=
1963 break
1965 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 done
1969 else
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1974 main ()
1976 static int test_array [1 - 2 * !(($2) < 0)];
1977 test_array [0] = 0;
1978 return test_array [0];
1981 return 0;
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985 ac_hi=-1 ac_mid=-1
1986 while :; do
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1991 main ()
1993 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1994 test_array [0] = 0;
1995 return test_array [0];
1998 return 0;
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_lo=$ac_mid; break
2003 else
2004 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2005 if test $ac_mid -le $ac_hi; then
2006 ac_lo= ac_hi=
2007 break
2009 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 done
2013 else
2014 ac_lo= ac_hi=
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 # Binary search between lo and hi bounds.
2020 while test "x$ac_lo" != "x$ac_hi"; do
2021 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2026 main ()
2028 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2029 test_array [0] = 0;
2030 return test_array [0];
2033 return 0;
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037 ac_hi=$ac_mid
2038 else
2039 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 done
2043 case $ac_lo in #((
2044 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2045 '') ac_retval=1 ;;
2046 esac
2047 else
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2051 static long int longval () { return $2; }
2052 static unsigned long int ulongval () { return $2; }
2053 #include <stdio.h>
2054 #include <stdlib.h>
2056 main ()
2059 FILE *f = fopen ("conftest.val", "w");
2060 if (! f)
2061 return 1;
2062 if (($2) < 0)
2064 long int i = longval ();
2065 if (i != ($2))
2066 return 1;
2067 fprintf (f, "%ld", i);
2069 else
2071 unsigned long int i = ulongval ();
2072 if (i != ($2))
2073 return 1;
2074 fprintf (f, "%lu", i);
2076 /* Do not output a trailing newline, as this causes \r\n confusion
2077 on some platforms. */
2078 return ferror (f) || fclose (f) != 0;
2081 return 0;
2083 _ACEOF
2084 if ac_fn_c_try_run "$LINENO"; then :
2085 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2086 else
2087 ac_retval=1
2089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2090 conftest.$ac_objext conftest.beam conftest.$ac_ext
2091 rm -f conftest.val
2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 as_fn_set_status $ac_retval
2097 } # ac_fn_c_compute_int
2099 # ac_fn_c_check_func LINENO FUNC VAR
2100 # ----------------------------------
2101 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2102 ac_fn_c_check_func ()
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2106 $as_echo_n "checking for $2... " >&6; }
2107 if eval \${$3+:} false; then :
2108 $as_echo_n "(cached) " >&6
2109 else
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2112 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2114 #define $2 innocuous_$2
2116 /* System header to define __stub macros and hopefully few prototypes,
2117 which can conflict with char $2 (); below.
2118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2119 <limits.h> exists even on freestanding compilers. */
2121 #ifdef __STDC__
2122 # include <limits.h>
2123 #else
2124 # include <assert.h>
2125 #endif
2127 #undef $2
2129 /* Override any GCC internal prototype to avoid an error.
2130 Use char because int might match the return type of a GCC
2131 builtin and then its argument prototype would still apply. */
2132 #ifdef __cplusplus
2133 extern "C"
2134 #endif
2135 char $2 ();
2136 /* The GNU C library defines this for functions which it implements
2137 to always fail with ENOSYS. Some functions are actually named
2138 something starting with __ and the normal name is an alias. */
2139 #if defined __stub_$2 || defined __stub___$2
2140 choke me
2141 #endif
2144 main ()
2146 return $2 ();
2148 return 0;
2150 _ACEOF
2151 if ac_fn_c_try_link "$LINENO"; then :
2152 eval "$3=yes"
2153 else
2154 eval "$3=no"
2156 rm -f core conftest.err conftest.$ac_objext \
2157 conftest$ac_exeext conftest.$ac_ext
2159 eval ac_res=\$$3
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161 $as_echo "$ac_res" >&6; }
2162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164 } # ac_fn_c_check_func
2166 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2167 # ---------------------------------------------
2168 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2169 # accordingly.
2170 ac_fn_c_check_decl ()
2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173 as_decl_name=`echo $2|sed 's/ *(.*//'`
2174 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2176 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2177 if eval \${$3+:} false; then :
2178 $as_echo_n "(cached) " >&6
2179 else
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2184 main ()
2186 #ifndef $as_decl_name
2187 #ifdef __cplusplus
2188 (void) $as_decl_use;
2189 #else
2190 (void) $as_decl_name;
2191 #endif
2192 #endif
2195 return 0;
2197 _ACEOF
2198 if ac_fn_c_try_compile "$LINENO"; then :
2199 eval "$3=yes"
2200 else
2201 eval "$3=no"
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 eval ac_res=\$$3
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207 $as_echo "$ac_res" >&6; }
2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210 } # ac_fn_c_check_decl
2212 # ac_fn_cxx_try_link LINENO
2213 # -------------------------
2214 # Try to link conftest.$ac_ext, and return whether this succeeded.
2215 ac_fn_cxx_try_link ()
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 rm -f conftest.$ac_objext conftest$ac_exeext
2219 if { { ac_try="$ac_link"
2220 case "(($ac_try" in
2221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2222 *) ac_try_echo=$ac_try;;
2223 esac
2224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2225 $as_echo "$ac_try_echo"; } >&5
2226 (eval "$ac_link") 2>conftest.err
2227 ac_status=$?
2228 if test -s conftest.err; then
2229 grep -v '^ *+' conftest.err >conftest.er1
2230 cat conftest.er1 >&5
2231 mv -f conftest.er1 conftest.err
2233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2234 test $ac_status = 0; } && {
2235 test -z "$ac_cxx_werror_flag" ||
2236 test ! -s conftest.err
2237 } && test -s conftest$ac_exeext && {
2238 test "$cross_compiling" = yes ||
2239 test -x conftest$ac_exeext
2240 }; then :
2241 ac_retval=0
2242 else
2243 $as_echo "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.$ac_ext >&5
2246 ac_retval=1
2248 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2249 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2250 # interfere with the next link command; also delete a directory that is
2251 # left behind by Apple's compiler. We do this before executing the actions.
2252 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254 as_fn_set_status $ac_retval
2256 } # ac_fn_cxx_try_link
2257 cat >config.log <<_ACEOF
2258 This file contains any messages produced by compilers while
2259 running configure, to aid debugging if configure makes a mistake.
2261 It was created by cpplib $as_me , which was
2262 generated by GNU Autoconf 2.69. Invocation command line was
2264 $ $0 $@
2266 _ACEOF
2267 exec 5>>config.log
2269 cat <<_ASUNAME
2270 ## --------- ##
2271 ## Platform. ##
2272 ## --------- ##
2274 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2275 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2276 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2277 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2278 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2280 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2281 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2283 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2284 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2285 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2286 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2287 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2288 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2289 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2291 _ASUNAME
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 $as_echo "PATH: $as_dir"
2299 done
2300 IFS=$as_save_IFS
2302 } >&5
2304 cat >&5 <<_ACEOF
2307 ## ----------- ##
2308 ## Core tests. ##
2309 ## ----------- ##
2311 _ACEOF
2314 # Keep a trace of the command line.
2315 # Strip out --no-create and --no-recursion so they do not pile up.
2316 # Strip out --silent because we don't want to record it for future runs.
2317 # Also quote any args containing shell meta-characters.
2318 # Make two passes to allow for proper duplicate-argument suppression.
2319 ac_configure_args=
2320 ac_configure_args0=
2321 ac_configure_args1=
2322 ac_must_keep_next=false
2323 for ac_pass in 1 2
2325 for ac_arg
2327 case $ac_arg in
2328 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2330 | -silent | --silent | --silen | --sile | --sil)
2331 continue ;;
2332 *\'*)
2333 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2334 esac
2335 case $ac_pass in
2336 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2338 as_fn_append ac_configure_args1 " '$ac_arg'"
2339 if test $ac_must_keep_next = true; then
2340 ac_must_keep_next=false # Got value, back to normal.
2341 else
2342 case $ac_arg in
2343 *=* | --config-cache | -C | -disable-* | --disable-* \
2344 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2345 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2346 | -with-* | --with-* | -without-* | --without-* | --x)
2347 case "$ac_configure_args0 " in
2348 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2349 esac
2351 -* ) ac_must_keep_next=true ;;
2352 esac
2354 as_fn_append ac_configure_args " '$ac_arg'"
2356 esac
2357 done
2358 done
2359 { ac_configure_args0=; unset ac_configure_args0;}
2360 { ac_configure_args1=; unset ac_configure_args1;}
2362 # When interrupted or exit'd, cleanup temporary files, and complete
2363 # config.log. We remove comments because anyway the quotes in there
2364 # would cause problems or look ugly.
2365 # WARNING: Use '\'' to represent an apostrophe within the trap.
2366 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2367 trap 'exit_status=$?
2368 # Save into config.log some information that might help in debugging.
2370 echo
2372 $as_echo "## ---------------- ##
2373 ## Cache variables. ##
2374 ## ---------------- ##"
2375 echo
2376 # The following way of writing the cache mishandles newlines in values,
2378 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2379 eval ac_val=\$$ac_var
2380 case $ac_val in #(
2381 *${as_nl}*)
2382 case $ac_var in #(
2383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2384 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385 esac
2386 case $ac_var in #(
2387 _ | IFS | as_nl) ;; #(
2388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2389 *) { eval $ac_var=; unset $ac_var;} ;;
2390 esac ;;
2391 esac
2392 done
2393 (set) 2>&1 |
2394 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2395 *${as_nl}ac_space=\ *)
2396 sed -n \
2397 "s/'\''/'\''\\\\'\'''\''/g;
2398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399 ;; #(
2401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2403 esac |
2404 sort
2406 echo
2408 $as_echo "## ----------------- ##
2409 ## Output variables. ##
2410 ## ----------------- ##"
2411 echo
2412 for ac_var in $ac_subst_vars
2414 eval ac_val=\$$ac_var
2415 case $ac_val in
2416 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417 esac
2418 $as_echo "$ac_var='\''$ac_val'\''"
2419 done | sort
2420 echo
2422 if test -n "$ac_subst_files"; then
2423 $as_echo "## ------------------- ##
2424 ## File substitutions. ##
2425 ## ------------------- ##"
2426 echo
2427 for ac_var in $ac_subst_files
2429 eval ac_val=\$$ac_var
2430 case $ac_val in
2431 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432 esac
2433 $as_echo "$ac_var='\''$ac_val'\''"
2434 done | sort
2435 echo
2438 if test -s confdefs.h; then
2439 $as_echo "## ----------- ##
2440 ## confdefs.h. ##
2441 ## ----------- ##"
2442 echo
2443 cat confdefs.h
2444 echo
2446 test "$ac_signal" != 0 &&
2447 $as_echo "$as_me: caught signal $ac_signal"
2448 $as_echo "$as_me: exit $exit_status"
2449 } >&5
2450 rm -f core *.core core.conftest.* &&
2451 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2452 exit $exit_status
2454 for ac_signal in 1 2 13 15; do
2455 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2456 done
2457 ac_signal=0
2459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2460 rm -f -r conftest* confdefs.h
2462 $as_echo "/* confdefs.h */" > confdefs.h
2464 # Predefined preprocessor variables.
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_NAME "$PACKAGE_NAME"
2468 _ACEOF
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2472 _ACEOF
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2476 _ACEOF
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_STRING "$PACKAGE_STRING"
2480 _ACEOF
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2484 _ACEOF
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_URL "$PACKAGE_URL"
2488 _ACEOF
2491 # Let the site file select an alternate cache file if it wants to.
2492 # Prefer an explicitly selected file to automatically selected ones.
2493 ac_site_file1=NONE
2494 ac_site_file2=NONE
2495 if test -n "$CONFIG_SITE"; then
2496 # We do not want a PATH search for config.site.
2497 case $CONFIG_SITE in #((
2498 -*) ac_site_file1=./$CONFIG_SITE;;
2499 */*) ac_site_file1=$CONFIG_SITE;;
2500 *) ac_site_file1=./$CONFIG_SITE;;
2501 esac
2502 elif test "x$prefix" != xNONE; then
2503 ac_site_file1=$prefix/share/config.site
2504 ac_site_file2=$prefix/etc/config.site
2505 else
2506 ac_site_file1=$ac_default_prefix/share/config.site
2507 ac_site_file2=$ac_default_prefix/etc/config.site
2509 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2511 test "x$ac_site_file" = xNONE && continue
2512 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2514 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2515 sed 's/^/| /' "$ac_site_file" >&5
2516 . "$ac_site_file" \
2517 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519 as_fn_error $? "failed to load site script $ac_site_file
2520 See \`config.log' for more details" "$LINENO" 5; }
2522 done
2524 if test -r "$cache_file"; then
2525 # Some versions of bash will fail to source /dev/null (special files
2526 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2527 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2529 $as_echo "$as_me: loading cache $cache_file" >&6;}
2530 case $cache_file in
2531 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2532 *) . "./$cache_file";;
2533 esac
2535 else
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2537 $as_echo "$as_me: creating cache $cache_file" >&6;}
2538 >$cache_file
2541 # Check that the precious variables saved in the cache have kept the same
2542 # value.
2543 ac_cache_corrupted=false
2544 for ac_var in $ac_precious_vars; do
2545 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2546 eval ac_new_set=\$ac_env_${ac_var}_set
2547 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2548 eval ac_new_val=\$ac_env_${ac_var}_value
2549 case $ac_old_set,$ac_new_set in
2550 set,)
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2552 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2553 ac_cache_corrupted=: ;;
2554 ,set)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2556 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2557 ac_cache_corrupted=: ;;
2558 ,);;
2560 if test "x$ac_old_val" != "x$ac_new_val"; then
2561 # differences in whitespace do not lead to failure.
2562 ac_old_val_w=`echo x $ac_old_val`
2563 ac_new_val_w=`echo x $ac_new_val`
2564 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2566 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2567 ac_cache_corrupted=:
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2570 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2571 eval $ac_var=\$ac_old_val
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2574 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2576 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2577 fi;;
2578 esac
2579 # Pass precious variables to config.status.
2580 if test "$ac_new_set" = set; then
2581 case $ac_new_val in
2582 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2583 *) ac_arg=$ac_var=$ac_new_val ;;
2584 esac
2585 case " $ac_configure_args " in
2586 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2587 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2588 esac
2590 done
2591 if $ac_cache_corrupted; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2595 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2596 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2598 ## -------------------- ##
2599 ## Main body of script. ##
2600 ## -------------------- ##
2602 ac_ext=c
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2611 ac_aux_dir=
2612 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2613 if test -f "$ac_dir/install-sh"; then
2614 ac_aux_dir=$ac_dir
2615 ac_install_sh="$ac_aux_dir/install-sh -c"
2616 break
2617 elif test -f "$ac_dir/install.sh"; then
2618 ac_aux_dir=$ac_dir
2619 ac_install_sh="$ac_aux_dir/install.sh -c"
2620 break
2621 elif test -f "$ac_dir/shtool"; then
2622 ac_aux_dir=$ac_dir
2623 ac_install_sh="$ac_aux_dir/shtool install -c"
2624 break
2626 done
2627 if test -z "$ac_aux_dir"; then
2628 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2631 # These three variables are undocumented and unsupported,
2632 # and are intended to be withdrawn in a future Autoconf release.
2633 # They can cause serious problems if a builder's source tree is in a directory
2634 # whose full name contains unusual characters.
2635 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2636 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2637 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2640 # Make sure we can run config.sub.
2641 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2642 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2645 $as_echo_n "checking build system type... " >&6; }
2646 if ${ac_cv_build+:} false; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 ac_build_alias=$build_alias
2650 test "x$ac_build_alias" = x &&
2651 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2652 test "x$ac_build_alias" = x &&
2653 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2654 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2655 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2659 $as_echo "$ac_cv_build" >&6; }
2660 case $ac_cv_build in
2661 *-*-*) ;;
2662 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2663 esac
2664 build=$ac_cv_build
2665 ac_save_IFS=$IFS; IFS='-'
2666 set x $ac_cv_build
2667 shift
2668 build_cpu=$1
2669 build_vendor=$2
2670 shift; shift
2671 # Remember, the first character of IFS is used to create $*,
2672 # except with old shells:
2673 build_os=$*
2674 IFS=$ac_save_IFS
2675 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2679 $as_echo_n "checking host system type... " >&6; }
2680 if ${ac_cv_host+:} false; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 if test "x$host_alias" = x; then
2684 ac_cv_host=$ac_cv_build
2685 else
2686 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2687 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2692 $as_echo "$ac_cv_host" >&6; }
2693 case $ac_cv_host in
2694 *-*-*) ;;
2695 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2696 esac
2697 host=$ac_cv_host
2698 ac_save_IFS=$IFS; IFS='-'
2699 set x $ac_cv_host
2700 shift
2701 host_cpu=$1
2702 host_vendor=$2
2703 shift; shift
2704 # Remember, the first character of IFS is used to create $*,
2705 # except with old shells:
2706 host_os=$*
2707 IFS=$ac_save_IFS
2708 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2712 $as_echo_n "checking target system type... " >&6; }
2713 if ${ac_cv_target+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 if test "x$target_alias" = x; then
2717 ac_cv_target=$ac_cv_host
2718 else
2719 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2720 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2725 $as_echo "$ac_cv_target" >&6; }
2726 case $ac_cv_target in
2727 *-*-*) ;;
2728 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2729 esac
2730 target=$ac_cv_target
2731 ac_save_IFS=$IFS; IFS='-'
2732 set x $ac_cv_target
2733 shift
2734 target_cpu=$1
2735 target_vendor=$2
2736 shift; shift
2737 # Remember, the first character of IFS is used to create $*,
2738 # except with old shells:
2739 target_os=$*
2740 IFS=$ac_save_IFS
2741 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2744 # The aliases save the names the user supplied, while $host etc.
2745 # will get canonicalized.
2746 test -n "$target_alias" &&
2747 test "$program_prefix$program_suffix$program_transform_name" = \
2748 NONENONEs,x,x, &&
2749 program_prefix=${target_alias}-
2752 # Checks for programs.
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2754 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2755 set x ${MAKE-make}
2756 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2757 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2758 $as_echo_n "(cached) " >&6
2759 else
2760 cat >conftest.make <<\_ACEOF
2761 SHELL = /bin/sh
2762 all:
2763 @echo '@@@%%%=$(MAKE)=@@@%%%'
2764 _ACEOF
2765 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2766 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2767 *@@@%%%=?*=@@@%%%*)
2768 eval ac_cv_prog_make_${ac_make}_set=yes;;
2770 eval ac_cv_prog_make_${ac_make}_set=no;;
2771 esac
2772 rm -f conftest.make
2774 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2776 $as_echo "yes" >&6; }
2777 SET_MAKE=
2778 else
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780 $as_echo "no" >&6; }
2781 SET_MAKE="MAKE=${MAKE-make}"
2784 # Find a good install program. We prefer a C program (faster),
2785 # so one script is as good as another. But avoid the broken or
2786 # incompatible versions:
2787 # SysV /etc/install, /usr/sbin/install
2788 # SunOS /usr/etc/install
2789 # IRIX /sbin/install
2790 # AIX /bin/install
2791 # AmigaOS /C/install, which installs bootblocks on floppy discs
2792 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2793 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2794 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2795 # OS/2's system install, which has a completely different semantic
2796 # ./install, which can be erroneously created by make from ./install.sh.
2797 # Reject install programs that cannot install multiple files.
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2799 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2800 if test -z "$INSTALL"; then
2801 if ${ac_cv_path_install+:} false; then :
2802 $as_echo_n "(cached) " >&6
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 # Account for people who put trailing slashes in PATH elements.
2810 case $as_dir/ in #((
2811 ./ | .// | /[cC]/* | \
2812 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2813 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2814 /usr/ucb/* ) ;;
2816 # OSF1 and SCO ODT 3.0 have their own names for install.
2817 # Don't use installbsd from OSF since it installs stuff as root
2818 # by default.
2819 for ac_prog in ginstall scoinst install; do
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2822 if test $ac_prog = install &&
2823 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2824 # AIX install. It has an incompatible calling convention.
2826 elif test $ac_prog = install &&
2827 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2828 # program-specific install script used by HP pwplus--don't use.
2830 else
2831 rm -rf conftest.one conftest.two conftest.dir
2832 echo one > conftest.one
2833 echo two > conftest.two
2834 mkdir conftest.dir
2835 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2836 test -s conftest.one && test -s conftest.two &&
2837 test -s conftest.dir/conftest.one &&
2838 test -s conftest.dir/conftest.two
2839 then
2840 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2841 break 3
2845 done
2846 done
2848 esac
2850 done
2851 IFS=$as_save_IFS
2853 rm -rf conftest.one conftest.two conftest.dir
2856 if test "${ac_cv_path_install+set}" = set; then
2857 INSTALL=$ac_cv_path_install
2858 else
2859 # As a last resort, use the slow shell script. Don't cache a
2860 # value for INSTALL within a source directory, because that will
2861 # break other packages using the cache if that directory is
2862 # removed, or if the value is a relative name.
2863 INSTALL=$ac_install_sh
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2867 $as_echo "$INSTALL" >&6; }
2869 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2870 # It thinks the first close brace ends the variable substitution.
2871 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2873 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2875 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2877 ac_ext=c
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882 if test -n "$ac_tool_prefix"; then
2883 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2884 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if ${ac_cv_prog_CC+:} false; then :
2888 $as_echo_n "(cached) " >&6
2889 else
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 break 2
2904 done
2905 done
2906 IFS=$as_save_IFS
2910 CC=$ac_cv_prog_CC
2911 if test -n "$CC"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2913 $as_echo "$CC" >&6; }
2914 else
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 $as_echo "no" >&6; }
2921 if test -z "$ac_cv_prog_CC"; then
2922 ac_ct_CC=$CC
2923 # Extract the first word of "gcc", so it can be a program name with args.
2924 set dummy gcc; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2928 $as_echo_n "(cached) " >&6
2929 else
2930 if test -n "$ac_ct_CC"; then
2931 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940 ac_cv_prog_ac_ct_CC="gcc"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 break 2
2944 done
2945 done
2946 IFS=$as_save_IFS
2950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2951 if test -n "$ac_ct_CC"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2953 $as_echo "$ac_ct_CC" >&6; }
2954 else
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2959 if test "x$ac_ct_CC" = x; then
2960 CC=""
2961 else
2962 case $cross_compiling:$ac_tool_warned in
2963 yes:)
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2966 ac_tool_warned=yes ;;
2967 esac
2968 CC=$ac_ct_CC
2970 else
2971 CC="$ac_cv_prog_CC"
2974 if test -z "$CC"; then
2975 if test -n "$ac_tool_prefix"; then
2976 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2977 set dummy ${ac_tool_prefix}cc; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if ${ac_cv_prog_CC+:} false; then :
2981 $as_echo_n "(cached) " >&6
2982 else
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 ac_cv_prog_CC="${ac_tool_prefix}cc"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 break 2
2997 done
2998 done
2999 IFS=$as_save_IFS
3003 CC=$ac_cv_prog_CC
3004 if test -n "$CC"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3006 $as_echo "$CC" >&6; }
3007 else
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3015 if test -z "$CC"; then
3016 # Extract the first word of "cc", so it can be a program name with args.
3017 set dummy cc; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if ${ac_cv_prog_CC+:} false; then :
3021 $as_echo_n "(cached) " >&6
3022 else
3023 if test -n "$CC"; then
3024 ac_cv_prog_CC="$CC" # Let the user override the test.
3025 else
3026 ac_prog_rejected=no
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3035 ac_prog_rejected=yes
3036 continue
3038 ac_cv_prog_CC="cc"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 break 2
3042 done
3043 done
3044 IFS=$as_save_IFS
3046 if test $ac_prog_rejected = yes; then
3047 # We found a bogon in the path, so make sure we never use it.
3048 set dummy $ac_cv_prog_CC
3049 shift
3050 if test $# != 0; then
3051 # We chose a different compiler from the bogus one.
3052 # However, it has the same basename, so the bogon will be chosen
3053 # first if we set CC to just the basename; use the full file name.
3054 shift
3055 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3060 CC=$ac_cv_prog_CC
3061 if test -n "$CC"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063 $as_echo "$CC" >&6; }
3064 else
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3071 if test -z "$CC"; then
3072 if test -n "$ac_tool_prefix"; then
3073 for ac_prog in cl.exe
3075 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3076 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_CC+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3096 done
3097 done
3098 IFS=$as_save_IFS
3102 CC=$ac_cv_prog_CC
3103 if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3112 test -n "$CC" && break
3113 done
3115 if test -z "$CC"; then
3116 ac_ct_CC=$CC
3117 for ac_prog in cl.exe
3119 # Extract the first word of "$ac_prog", so it can be a program name with args.
3120 set dummy $ac_prog; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3125 else
3126 if test -n "$ac_ct_CC"; then
3127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_ac_ct_CC="$ac_prog"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3140 done
3141 done
3142 IFS=$as_save_IFS
3146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3147 if test -n "$ac_ct_CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3149 $as_echo "$ac_ct_CC" >&6; }
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3156 test -n "$ac_ct_CC" && break
3157 done
3159 if test "x$ac_ct_CC" = x; then
3160 CC=""
3161 else
3162 case $cross_compiling:$ac_tool_warned in
3163 yes:)
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3166 ac_tool_warned=yes ;;
3167 esac
3168 CC=$ac_ct_CC
3175 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3177 as_fn_error $? "no acceptable C compiler found in \$PATH
3178 See \`config.log' for more details" "$LINENO" 5; }
3180 # Provide some information about the compiler.
3181 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3182 set X $ac_compile
3183 ac_compiler=$2
3184 for ac_option in --version -v -V -qversion; do
3185 { { ac_try="$ac_compiler $ac_option >&5"
3186 case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189 esac
3190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191 $as_echo "$ac_try_echo"; } >&5
3192 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3193 ac_status=$?
3194 if test -s conftest.err; then
3195 sed '10a\
3196 ... rest of stderr output deleted ...
3197 10q' conftest.err >conftest.er1
3198 cat conftest.er1 >&5
3200 rm -f conftest.er1 conftest.err
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }
3203 done
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3209 main ()
3213 return 0;
3215 _ACEOF
3216 ac_clean_files_save=$ac_clean_files
3217 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3218 # Try to create an executable without -o first, disregard a.out.
3219 # It will help us diagnose broken compilers, and finding out an intuition
3220 # of exeext.
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3222 $as_echo_n "checking whether the C compiler works... " >&6; }
3223 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3225 # The possible output files:
3226 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3228 ac_rmfiles=
3229 for ac_file in $ac_files
3231 case $ac_file in
3232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3233 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3234 esac
3235 done
3236 rm -f $ac_rmfiles
3238 if { { ac_try="$ac_link_default"
3239 case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_link_default") 2>&5
3246 ac_status=$?
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }; then :
3249 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3250 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3251 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3252 # so that the user can short-circuit this test for compilers unknown to
3253 # Autoconf.
3254 for ac_file in $ac_files ''
3256 test -f "$ac_file" || continue
3257 case $ac_file in
3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3260 [ab].out )
3261 # We found the default executable, but exeext='' is most
3262 # certainly right.
3263 break;;
3264 *.* )
3265 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3266 then :; else
3267 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3269 # We set ac_cv_exeext here because the later test for it is not
3270 # safe: cross compilers may not add the suffix if given an `-o'
3271 # argument, so we may need to know it at that point already.
3272 # Even if this section looks crufty: it has the advantage of
3273 # actually working.
3274 break;;
3276 break;;
3277 esac
3278 done
3279 test "$ac_cv_exeext" = no && ac_cv_exeext=
3281 else
3282 ac_file=''
3284 if test -z "$ac_file"; then :
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 $as_echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 as_fn_error 77 "C compiler cannot create executables
3293 See \`config.log' for more details" "$LINENO" 5; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3296 $as_echo "yes" >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3299 $as_echo_n "checking for C compiler default output file name... " >&6; }
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3301 $as_echo "$ac_file" >&6; }
3302 ac_exeext=$ac_cv_exeext
3304 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3305 ac_clean_files=$ac_clean_files_save
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3307 $as_echo_n "checking for suffix of executables... " >&6; }
3308 if { { ac_try="$ac_link"
3309 case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312 esac
3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314 $as_echo "$ac_try_echo"; } >&5
3315 (eval "$ac_link") 2>&5
3316 ac_status=$?
3317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }; then :
3319 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3320 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3321 # work properly (i.e., refer to `conftest.exe'), while it won't with
3322 # `rm'.
3323 for ac_file in conftest.exe conftest conftest.*; do
3324 test -f "$ac_file" || continue
3325 case $ac_file in
3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3328 break;;
3329 * ) break;;
3330 esac
3331 done
3332 else
3333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3336 See \`config.log' for more details" "$LINENO" 5; }
3338 rm -f conftest conftest$ac_cv_exeext
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3340 $as_echo "$ac_cv_exeext" >&6; }
3342 rm -f conftest.$ac_ext
3343 EXEEXT=$ac_cv_exeext
3344 ac_exeext=$EXEEXT
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3347 #include <stdio.h>
3349 main ()
3351 FILE *f = fopen ("conftest.out", "w");
3352 return ferror (f) || fclose (f) != 0;
3355 return 0;
3357 _ACEOF
3358 ac_clean_files="$ac_clean_files conftest.out"
3359 # Check that the compiler produces executables we can run. If not, either
3360 # the compiler is broken, or we cross compile.
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3362 $as_echo_n "checking whether we are cross compiling... " >&6; }
3363 if test "$cross_compiling" != yes; then
3364 { { ac_try="$ac_link"
3365 case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_link") 2>&5
3372 ac_status=$?
3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }
3375 if { ac_try='./conftest$ac_cv_exeext'
3376 { { case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381 $as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_try") 2>&5
3383 ac_status=$?
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }; }; then
3386 cross_compiling=no
3387 else
3388 if test "$cross_compiling" = maybe; then
3389 cross_compiling=yes
3390 else
3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error $? "cannot run C compiled programs.
3394 If you meant to cross compile, use \`--host'.
3395 See \`config.log' for more details" "$LINENO" 5; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3400 $as_echo "$cross_compiling" >&6; }
3402 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3403 ac_clean_files=$ac_clean_files_save
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3405 $as_echo_n "checking for suffix of object files... " >&6; }
3406 if ${ac_cv_objext+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408 else
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3413 main ()
3417 return 0;
3419 _ACEOF
3420 rm -f conftest.o conftest.obj
3421 if { { ac_try="$ac_compile"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_compile") 2>&5
3429 ac_status=$?
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }; then :
3432 for ac_file in conftest.o conftest.obj conftest.*; do
3433 test -f "$ac_file" || continue;
3434 case $ac_file in
3435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3436 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3437 break;;
3438 esac
3439 done
3440 else
3441 $as_echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error $? "cannot compute suffix of object files: cannot compile
3447 See \`config.log' for more details" "$LINENO" 5; }
3449 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3452 $as_echo "$ac_cv_objext" >&6; }
3453 OBJEXT=$ac_cv_objext
3454 ac_objext=$OBJEXT
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3456 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3457 if ${ac_cv_c_compiler_gnu+:} false; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3464 main ()
3466 #ifndef __GNUC__
3467 choke me
3468 #endif
3471 return 0;
3473 _ACEOF
3474 if ac_fn_c_try_compile "$LINENO"; then :
3475 ac_compiler_gnu=yes
3476 else
3477 ac_compiler_gnu=no
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3484 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3485 if test $ac_compiler_gnu = yes; then
3486 GCC=yes
3487 else
3488 GCC=
3490 ac_test_CFLAGS=${CFLAGS+set}
3491 ac_save_CFLAGS=$CFLAGS
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3493 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3494 if ${ac_cv_prog_cc_g+:} false; then :
3495 $as_echo_n "(cached) " >&6
3496 else
3497 ac_save_c_werror_flag=$ac_c_werror_flag
3498 ac_c_werror_flag=yes
3499 ac_cv_prog_cc_g=no
3500 CFLAGS="-g"
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3505 main ()
3509 return 0;
3511 _ACEOF
3512 if ac_fn_c_try_compile "$LINENO"; then :
3513 ac_cv_prog_cc_g=yes
3514 else
3515 CFLAGS=""
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3520 main ()
3524 return 0;
3526 _ACEOF
3527 if ac_fn_c_try_compile "$LINENO"; then :
3529 else
3530 ac_c_werror_flag=$ac_save_c_werror_flag
3531 CFLAGS="-g"
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3536 main ()
3540 return 0;
3542 _ACEOF
3543 if ac_fn_c_try_compile "$LINENO"; then :
3544 ac_cv_prog_cc_g=yes
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 ac_c_werror_flag=$ac_save_c_werror_flag
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3554 $as_echo "$ac_cv_prog_cc_g" >&6; }
3555 if test "$ac_test_CFLAGS" = set; then
3556 CFLAGS=$ac_save_CFLAGS
3557 elif test $ac_cv_prog_cc_g = yes; then
3558 if test "$GCC" = yes; then
3559 CFLAGS="-g -O2"
3560 else
3561 CFLAGS="-g"
3563 else
3564 if test "$GCC" = yes; then
3565 CFLAGS="-O2"
3566 else
3567 CFLAGS=
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3571 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3572 if ${ac_cv_prog_cc_c89+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 ac_cv_prog_cc_c89=no
3576 ac_save_CC=$CC
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579 #include <stdarg.h>
3580 #include <stdio.h>
3581 struct stat;
3582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3583 struct buf { int x; };
3584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3585 static char *e (p, i)
3586 char **p;
3587 int i;
3589 return p[i];
3591 static char *f (char * (*g) (char **, int), char **p, ...)
3593 char *s;
3594 va_list v;
3595 va_start (v,p);
3596 s = g (p, va_arg (v,int));
3597 va_end (v);
3598 return s;
3601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3602 function prototypes and stuff, but not '\xHH' hex character constants.
3603 These don't provoke an error unfortunately, instead are silently treated
3604 as 'x'. The following induces an error, until -std is added to get
3605 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3606 array size at least. It's necessary to write '\x00'==0 to get something
3607 that's true only with -std. */
3608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3610 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3611 inside strings and character constants. */
3612 #define FOO(x) 'x'
3613 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3615 int test (int i, double x);
3616 struct s1 {int (*f) (int a);};
3617 struct s2 {int (*f) (double a);};
3618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3619 int argc;
3620 char **argv;
3622 main ()
3624 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3626 return 0;
3628 _ACEOF
3629 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3630 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3632 CC="$ac_save_CC $ac_arg"
3633 if ac_fn_c_try_compile "$LINENO"; then :
3634 ac_cv_prog_cc_c89=$ac_arg
3636 rm -f core conftest.err conftest.$ac_objext
3637 test "x$ac_cv_prog_cc_c89" != "xno" && break
3638 done
3639 rm -f conftest.$ac_ext
3640 CC=$ac_save_CC
3643 # AC_CACHE_VAL
3644 case "x$ac_cv_prog_cc_c89" in
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3647 $as_echo "none needed" >&6; } ;;
3648 xno)
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3650 $as_echo "unsupported" >&6; } ;;
3652 CC="$CC $ac_cv_prog_cc_c89"
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3654 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3655 esac
3656 if test "x$ac_cv_prog_cc_c89" != xno; then :
3660 ac_ext=c
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666 ac_ext=cpp
3667 ac_cpp='$CXXCPP $CPPFLAGS'
3668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3671 if test -z "$CXX"; then
3672 if test -n "$CCC"; then
3673 CXX=$CCC
3674 else
3675 if test -n "$ac_tool_prefix"; then
3676 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if ${ac_cv_prog_CXX+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 if test -n "$CXX"; then
3686 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 break 2
3699 done
3700 done
3701 IFS=$as_save_IFS
3705 CXX=$ac_cv_prog_CXX
3706 if test -n "$CXX"; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3708 $as_echo "$CXX" >&6; }
3709 else
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3715 test -n "$CXX" && break
3716 done
3718 if test -z "$CXX"; then
3719 ac_ct_CXX=$CXX
3720 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3722 # Extract the first word of "$ac_prog", so it can be a program name with args.
3723 set dummy $ac_prog; ac_word=$2
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725 $as_echo_n "checking for $ac_word... " >&6; }
3726 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 if test -n "$ac_ct_CXX"; then
3730 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3731 else
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_ac_ct_CXX="$ac_prog"
3740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 break 2
3743 done
3744 done
3745 IFS=$as_save_IFS
3749 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3750 if test -n "$ac_ct_CXX"; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3752 $as_echo "$ac_ct_CXX" >&6; }
3753 else
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3759 test -n "$ac_ct_CXX" && break
3760 done
3762 if test "x$ac_ct_CXX" = x; then
3763 CXX="g++"
3764 else
3765 case $cross_compiling:$ac_tool_warned in
3766 yes:)
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3769 ac_tool_warned=yes ;;
3770 esac
3771 CXX=$ac_ct_CXX
3777 # Provide some information about the compiler.
3778 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3779 set X $ac_compile
3780 ac_compiler=$2
3781 for ac_option in --version -v -V -qversion; do
3782 { { ac_try="$ac_compiler $ac_option >&5"
3783 case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788 $as_echo "$ac_try_echo"; } >&5
3789 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3790 ac_status=$?
3791 if test -s conftest.err; then
3792 sed '10a\
3793 ... rest of stderr output deleted ...
3794 10q' conftest.err >conftest.er1
3795 cat conftest.er1 >&5
3797 rm -f conftest.er1 conftest.err
3798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799 test $ac_status = 0; }
3800 done
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3803 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3804 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3811 main ()
3813 #ifndef __GNUC__
3814 choke me
3815 #endif
3818 return 0;
3820 _ACEOF
3821 if ac_fn_cxx_try_compile "$LINENO"; then :
3822 ac_compiler_gnu=yes
3823 else
3824 ac_compiler_gnu=no
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3831 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3832 if test $ac_compiler_gnu = yes; then
3833 GXX=yes
3834 else
3835 GXX=
3837 ac_test_CXXFLAGS=${CXXFLAGS+set}
3838 ac_save_CXXFLAGS=$CXXFLAGS
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3840 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3841 if ${ac_cv_prog_cxx_g+:} false; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3845 ac_cxx_werror_flag=yes
3846 ac_cv_prog_cxx_g=no
3847 CXXFLAGS="-g"
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3852 main ()
3856 return 0;
3858 _ACEOF
3859 if ac_fn_cxx_try_compile "$LINENO"; then :
3860 ac_cv_prog_cxx_g=yes
3861 else
3862 CXXFLAGS=""
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3867 main ()
3871 return 0;
3873 _ACEOF
3874 if ac_fn_cxx_try_compile "$LINENO"; then :
3876 else
3877 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3878 CXXFLAGS="-g"
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3883 main ()
3887 return 0;
3889 _ACEOF
3890 if ac_fn_cxx_try_compile "$LINENO"; then :
3891 ac_cv_prog_cxx_g=yes
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3901 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3902 if test "$ac_test_CXXFLAGS" = set; then
3903 CXXFLAGS=$ac_save_CXXFLAGS
3904 elif test $ac_cv_prog_cxx_g = yes; then
3905 if test "$GXX" = yes; then
3906 CXXFLAGS="-g -O2"
3907 else
3908 CXXFLAGS="-g"
3910 else
3911 if test "$GXX" = yes; then
3912 CXXFLAGS="-O2"
3913 else
3914 CXXFLAGS=
3917 ac_ext=c
3918 ac_cpp='$CPP $CPPFLAGS'
3919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923 if test -n "$ac_tool_prefix"; then
3924 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3925 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927 $as_echo_n "checking for $ac_word... " >&6; }
3928 if ${ac_cv_prog_RANLIB+:} false; then :
3929 $as_echo_n "(cached) " >&6
3930 else
3931 if test -n "$RANLIB"; then
3932 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3933 else
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3941 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3945 done
3946 done
3947 IFS=$as_save_IFS
3951 RANLIB=$ac_cv_prog_RANLIB
3952 if test -n "$RANLIB"; then
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3954 $as_echo "$RANLIB" >&6; }
3955 else
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957 $as_echo "no" >&6; }
3962 if test -z "$ac_cv_prog_RANLIB"; then
3963 ac_ct_RANLIB=$RANLIB
3964 # Extract the first word of "ranlib", so it can be a program name with args.
3965 set dummy ranlib; ac_word=$2
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 $as_echo_n "checking for $ac_word... " >&6; }
3968 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3969 $as_echo_n "(cached) " >&6
3970 else
3971 if test -n "$ac_ct_RANLIB"; then
3972 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3973 else
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981 ac_cv_prog_ac_ct_RANLIB="ranlib"
3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 break 2
3985 done
3986 done
3987 IFS=$as_save_IFS
3991 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3992 if test -n "$ac_ct_RANLIB"; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3994 $as_echo "$ac_ct_RANLIB" >&6; }
3995 else
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
4000 if test "x$ac_ct_RANLIB" = x; then
4001 RANLIB=":"
4002 else
4003 case $cross_compiling:$ac_tool_warned in
4004 yes:)
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4007 ac_tool_warned=yes ;;
4008 esac
4009 RANLIB=$ac_ct_RANLIB
4011 else
4012 RANLIB="$ac_cv_prog_RANLIB"
4015 if test -n "$ac_tool_prefix"; then
4016 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4017 set dummy ${ac_tool_prefix}ar; ac_word=$2
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if ${ac_cv_prog_AR+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 if test -n "$AR"; then
4024 ac_cv_prog_AR="$AR" # Let the user override the test.
4025 else
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4029 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033 ac_cv_prog_AR="${ac_tool_prefix}ar"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 break 2
4037 done
4038 done
4039 IFS=$as_save_IFS
4043 AR=$ac_cv_prog_AR
4044 if test -n "$AR"; then
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4046 $as_echo "$AR" >&6; }
4047 else
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 $as_echo "no" >&6; }
4054 if test -z "$ac_cv_prog_AR"; then
4055 ac_ct_AR=$AR
4056 # Extract the first word of "ar", so it can be a program name with args.
4057 set dummy ar; ac_word=$2
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059 $as_echo_n "checking for $ac_word... " >&6; }
4060 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 if test -n "$ac_ct_AR"; then
4064 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4065 else
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073 ac_cv_prog_ac_ct_AR="ar"
4074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075 break 2
4077 done
4078 done
4079 IFS=$as_save_IFS
4083 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4084 if test -n "$ac_ct_AR"; then
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4086 $as_echo "$ac_ct_AR" >&6; }
4087 else
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089 $as_echo "no" >&6; }
4092 if test "x$ac_ct_AR" = x; then
4093 AR=""
4094 else
4095 case $cross_compiling:$ac_tool_warned in
4096 yes:)
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4099 ac_tool_warned=yes ;;
4100 esac
4101 AR=$ac_ct_AR
4103 else
4104 AR="$ac_cv_prog_AR"
4109 ac_ext=c
4110 ac_cpp='$CPP $CPPFLAGS'
4111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4115 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4116 # On Suns, sometimes $CPP names a directory.
4117 if test -n "$CPP" && test -d "$CPP"; then
4118 CPP=
4120 if test -z "$CPP"; then
4121 if ${ac_cv_prog_CPP+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 # Double quotes because CPP needs to be expanded
4125 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4127 ac_preproc_ok=false
4128 for ac_c_preproc_warn_flag in '' yes
4130 # Use a header file that comes with gcc, so configuring glibc
4131 # with a fresh cross-compiler works.
4132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4133 # <limits.h> exists even on freestanding compilers.
4134 # On the NeXT, cc -E runs the code through the compiler's parser,
4135 # not just through cpp. "Syntax error" is here to catch this case.
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4138 #ifdef __STDC__
4139 # include <limits.h>
4140 #else
4141 # include <assert.h>
4142 #endif
4143 Syntax error
4144 _ACEOF
4145 if ac_fn_c_try_cpp "$LINENO"; then :
4147 else
4148 # Broken: fails on valid input.
4149 continue
4151 rm -f conftest.err conftest.i conftest.$ac_ext
4153 # OK, works on sane cases. Now check whether nonexistent headers
4154 # can be detected and how.
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157 #include <ac_nonexistent.h>
4158 _ACEOF
4159 if ac_fn_c_try_cpp "$LINENO"; then :
4160 # Broken: success on invalid input.
4161 continue
4162 else
4163 # Passes both tests.
4164 ac_preproc_ok=:
4165 break
4167 rm -f conftest.err conftest.i conftest.$ac_ext
4169 done
4170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4171 rm -f conftest.i conftest.err conftest.$ac_ext
4172 if $ac_preproc_ok; then :
4173 break
4176 done
4177 ac_cv_prog_CPP=$CPP
4180 CPP=$ac_cv_prog_CPP
4181 else
4182 ac_cv_prog_CPP=$CPP
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4185 $as_echo "$CPP" >&6; }
4186 ac_preproc_ok=false
4187 for ac_c_preproc_warn_flag in '' yes
4189 # Use a header file that comes with gcc, so configuring glibc
4190 # with a fresh cross-compiler works.
4191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4192 # <limits.h> exists even on freestanding compilers.
4193 # On the NeXT, cc -E runs the code through the compiler's parser,
4194 # not just through cpp. "Syntax error" is here to catch this case.
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4197 #ifdef __STDC__
4198 # include <limits.h>
4199 #else
4200 # include <assert.h>
4201 #endif
4202 Syntax error
4203 _ACEOF
4204 if ac_fn_c_try_cpp "$LINENO"; then :
4206 else
4207 # Broken: fails on valid input.
4208 continue
4210 rm -f conftest.err conftest.i conftest.$ac_ext
4212 # OK, works on sane cases. Now check whether nonexistent headers
4213 # can be detected and how.
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216 #include <ac_nonexistent.h>
4217 _ACEOF
4218 if ac_fn_c_try_cpp "$LINENO"; then :
4219 # Broken: success on invalid input.
4220 continue
4221 else
4222 # Passes both tests.
4223 ac_preproc_ok=:
4224 break
4226 rm -f conftest.err conftest.i conftest.$ac_ext
4228 done
4229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4230 rm -f conftest.i conftest.err conftest.$ac_ext
4231 if $ac_preproc_ok; then :
4233 else
4234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4236 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4237 See \`config.log' for more details" "$LINENO" 5; }
4240 ac_ext=c
4241 ac_cpp='$CPP $CPPFLAGS'
4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4248 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4249 if ${ac_cv_path_GREP+:} false; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 if test -z "$GREP"; then
4253 ac_path_GREP_found=false
4254 # Loop through the user's path and test for each of PROGNAME-LIST
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_prog in grep ggrep; do
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4263 as_fn_executable_p "$ac_path_GREP" || continue
4264 # Check for GNU ac_path_GREP and select it if it is found.
4265 # Check for GNU $ac_path_GREP
4266 case `"$ac_path_GREP" --version 2>&1` in
4267 *GNU*)
4268 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4270 ac_count=0
4271 $as_echo_n 0123456789 >"conftest.in"
4272 while :
4274 cat "conftest.in" "conftest.in" >"conftest.tmp"
4275 mv "conftest.tmp" "conftest.in"
4276 cp "conftest.in" "conftest.nl"
4277 $as_echo 'GREP' >> "conftest.nl"
4278 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4280 as_fn_arith $ac_count + 1 && ac_count=$as_val
4281 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4282 # Best one so far, save it but keep looking for a better one
4283 ac_cv_path_GREP="$ac_path_GREP"
4284 ac_path_GREP_max=$ac_count
4286 # 10*(2^10) chars as input seems more than enough
4287 test $ac_count -gt 10 && break
4288 done
4289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4290 esac
4292 $ac_path_GREP_found && break 3
4293 done
4294 done
4295 done
4296 IFS=$as_save_IFS
4297 if test -z "$ac_cv_path_GREP"; then
4298 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4300 else
4301 ac_cv_path_GREP=$GREP
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4306 $as_echo "$ac_cv_path_GREP" >&6; }
4307 GREP="$ac_cv_path_GREP"
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4311 $as_echo_n "checking for egrep... " >&6; }
4312 if ${ac_cv_path_EGREP+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4316 then ac_cv_path_EGREP="$GREP -E"
4317 else
4318 if test -z "$EGREP"; then
4319 ac_path_EGREP_found=false
4320 # Loop through the user's path and test for each of PROGNAME-LIST
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_prog in egrep; do
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4329 as_fn_executable_p "$ac_path_EGREP" || continue
4330 # Check for GNU ac_path_EGREP and select it if it is found.
4331 # Check for GNU $ac_path_EGREP
4332 case `"$ac_path_EGREP" --version 2>&1` in
4333 *GNU*)
4334 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4336 ac_count=0
4337 $as_echo_n 0123456789 >"conftest.in"
4338 while :
4340 cat "conftest.in" "conftest.in" >"conftest.tmp"
4341 mv "conftest.tmp" "conftest.in"
4342 cp "conftest.in" "conftest.nl"
4343 $as_echo 'EGREP' >> "conftest.nl"
4344 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4346 as_fn_arith $ac_count + 1 && ac_count=$as_val
4347 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4348 # Best one so far, save it but keep looking for a better one
4349 ac_cv_path_EGREP="$ac_path_EGREP"
4350 ac_path_EGREP_max=$ac_count
4352 # 10*(2^10) chars as input seems more than enough
4353 test $ac_count -gt 10 && break
4354 done
4355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4356 esac
4358 $ac_path_EGREP_found && break 3
4359 done
4360 done
4361 done
4362 IFS=$as_save_IFS
4363 if test -z "$ac_cv_path_EGREP"; then
4364 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4366 else
4367 ac_cv_path_EGREP=$EGREP
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4373 $as_echo "$ac_cv_path_EGREP" >&6; }
4374 EGREP="$ac_cv_path_EGREP"
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4378 $as_echo_n "checking for ANSI C header files... " >&6; }
4379 if ${ac_cv_header_stdc+:} false; then :
4380 $as_echo_n "(cached) " >&6
4381 else
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4384 #include <stdlib.h>
4385 #include <stdarg.h>
4386 #include <string.h>
4387 #include <float.h>
4390 main ()
4394 return 0;
4396 _ACEOF
4397 if ac_fn_c_try_compile "$LINENO"; then :
4398 ac_cv_header_stdc=yes
4399 else
4400 ac_cv_header_stdc=no
4402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 if test $ac_cv_header_stdc = yes; then
4405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408 #include <string.h>
4410 _ACEOF
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 $EGREP "memchr" >/dev/null 2>&1; then :
4414 else
4415 ac_cv_header_stdc=no
4417 rm -f conftest*
4421 if test $ac_cv_header_stdc = yes; then
4422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4425 #include <stdlib.h>
4427 _ACEOF
4428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4429 $EGREP "free" >/dev/null 2>&1; then :
4431 else
4432 ac_cv_header_stdc=no
4434 rm -f conftest*
4438 if test $ac_cv_header_stdc = yes; then
4439 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4440 if test "$cross_compiling" = yes; then :
4442 else
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445 #include <ctype.h>
4446 #include <stdlib.h>
4447 #if ((' ' & 0x0FF) == 0x020)
4448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4450 #else
4451 # define ISLOWER(c) \
4452 (('a' <= (c) && (c) <= 'i') \
4453 || ('j' <= (c) && (c) <= 'r') \
4454 || ('s' <= (c) && (c) <= 'z'))
4455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4456 #endif
4458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4460 main ()
4462 int i;
4463 for (i = 0; i < 256; i++)
4464 if (XOR (islower (i), ISLOWER (i))
4465 || toupper (i) != TOUPPER (i))
4466 return 2;
4467 return 0;
4469 _ACEOF
4470 if ac_fn_c_try_run "$LINENO"; then :
4472 else
4473 ac_cv_header_stdc=no
4475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4476 conftest.$ac_objext conftest.beam conftest.$ac_ext
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4482 $as_echo "$ac_cv_header_stdc" >&6; }
4483 if test $ac_cv_header_stdc = yes; then
4485 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4489 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4490 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4491 inttypes.h stdint.h unistd.h
4492 do :
4493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4494 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4496 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4497 cat >>confdefs.h <<_ACEOF
4498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4499 _ACEOF
4503 done
4507 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4508 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4509 MINIX=yes
4510 else
4511 MINIX=
4515 if test "$MINIX" = yes; then
4517 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4520 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4523 $as_echo "#define _MINIX 1" >>confdefs.h
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4529 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4530 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4536 # define __EXTENSIONS__ 1
4537 $ac_includes_default
4539 main ()
4543 return 0;
4545 _ACEOF
4546 if ac_fn_c_try_compile "$LINENO"; then :
4547 ac_cv_safe_to_define___extensions__=yes
4548 else
4549 ac_cv_safe_to_define___extensions__=no
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4554 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4555 test $ac_cv_safe_to_define___extensions__ = yes &&
4556 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4558 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4560 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4562 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4564 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4567 # Check whether --enable-largefile was given.
4568 if test "${enable_largefile+set}" = set; then :
4569 enableval=$enable_largefile;
4572 if test "$enable_largefile" != no; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4575 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4576 if ${ac_cv_sys_largefile_CC+:} false; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 ac_cv_sys_largefile_CC=no
4580 if test "$GCC" != yes; then
4581 ac_save_CC=$CC
4582 while :; do
4583 # IRIX 6.2 and later do not support large files by default,
4584 # so use the C compiler's -n32 option if that helps.
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4587 #include <sys/types.h>
4588 /* Check that off_t can represent 2**63 - 1 correctly.
4589 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4590 since some C++ compilers masquerading as C compilers
4591 incorrectly reject 9223372036854775807. */
4592 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4593 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4594 && LARGE_OFF_T % 2147483647 == 1)
4595 ? 1 : -1];
4597 main ()
4601 return 0;
4603 _ACEOF
4604 if ac_fn_c_try_compile "$LINENO"; then :
4605 break
4607 rm -f core conftest.err conftest.$ac_objext
4608 CC="$CC -n32"
4609 if ac_fn_c_try_compile "$LINENO"; then :
4610 ac_cv_sys_largefile_CC=' -n32'; break
4612 rm -f core conftest.err conftest.$ac_objext
4613 break
4614 done
4615 CC=$ac_save_CC
4616 rm -f conftest.$ac_ext
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4620 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4621 if test "$ac_cv_sys_largefile_CC" != no; then
4622 CC=$CC$ac_cv_sys_largefile_CC
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4626 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4627 if ${ac_cv_sys_file_offset_bits+:} false; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 while :; do
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633 #include <sys/types.h>
4634 /* Check that off_t can represent 2**63 - 1 correctly.
4635 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4636 since some C++ compilers masquerading as C compilers
4637 incorrectly reject 9223372036854775807. */
4638 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4639 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4640 && LARGE_OFF_T % 2147483647 == 1)
4641 ? 1 : -1];
4643 main ()
4647 return 0;
4649 _ACEOF
4650 if ac_fn_c_try_compile "$LINENO"; then :
4651 ac_cv_sys_file_offset_bits=no; break
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656 #define _FILE_OFFSET_BITS 64
4657 #include <sys/types.h>
4658 /* Check that off_t can represent 2**63 - 1 correctly.
4659 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4660 since some C++ compilers masquerading as C compilers
4661 incorrectly reject 9223372036854775807. */
4662 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4663 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4664 && LARGE_OFF_T % 2147483647 == 1)
4665 ? 1 : -1];
4667 main ()
4671 return 0;
4673 _ACEOF
4674 if ac_fn_c_try_compile "$LINENO"; then :
4675 ac_cv_sys_file_offset_bits=64; break
4677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678 ac_cv_sys_file_offset_bits=unknown
4679 break
4680 done
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4683 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4684 case $ac_cv_sys_file_offset_bits in #(
4685 no | unknown) ;;
4687 cat >>confdefs.h <<_ACEOF
4688 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4689 _ACEOF
4691 esac
4692 rm -rf conftest*
4693 if test $ac_cv_sys_file_offset_bits = unknown; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4695 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4696 if ${ac_cv_sys_large_files+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 while :; do
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702 #include <sys/types.h>
4703 /* Check that off_t can represent 2**63 - 1 correctly.
4704 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4705 since some C++ compilers masquerading as C compilers
4706 incorrectly reject 9223372036854775807. */
4707 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4708 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4709 && LARGE_OFF_T % 2147483647 == 1)
4710 ? 1 : -1];
4712 main ()
4716 return 0;
4718 _ACEOF
4719 if ac_fn_c_try_compile "$LINENO"; then :
4720 ac_cv_sys_large_files=no; break
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725 #define _LARGE_FILES 1
4726 #include <sys/types.h>
4727 /* Check that off_t can represent 2**63 - 1 correctly.
4728 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4729 since some C++ compilers masquerading as C compilers
4730 incorrectly reject 9223372036854775807. */
4731 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4732 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4733 && LARGE_OFF_T % 2147483647 == 1)
4734 ? 1 : -1];
4736 main ()
4740 return 0;
4742 _ACEOF
4743 if ac_fn_c_try_compile "$LINENO"; then :
4744 ac_cv_sys_large_files=1; break
4746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747 ac_cv_sys_large_files=unknown
4748 break
4749 done
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4752 $as_echo "$ac_cv_sys_large_files" >&6; }
4753 case $ac_cv_sys_large_files in #(
4754 no | unknown) ;;
4756 cat >>confdefs.h <<_ACEOF
4757 #define _LARGE_FILES $ac_cv_sys_large_files
4758 _ACEOF
4760 esac
4761 rm -rf conftest*
4768 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4769 for ac_prog in aclocal
4771 # Extract the first word of "$ac_prog", so it can be a program name with args.
4772 set dummy $ac_prog; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if ${ac_cv_prog_ACLOCAL+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 if test -n "$ACLOCAL"; then
4779 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
4780 else
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788 ac_cv_prog_ACLOCAL="$ac_prog"
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 break 2
4792 done
4793 done
4794 IFS=$as_save_IFS
4798 ACLOCAL=$ac_cv_prog_ACLOCAL
4799 if test -n "$ACLOCAL"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4801 $as_echo "$ACLOCAL" >&6; }
4802 else
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4808 test -n "$ACLOCAL" && break
4809 done
4810 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
4812 for ac_prog in autoconf
4814 # Extract the first word of "$ac_prog", so it can be a program name with args.
4815 set dummy $ac_prog; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if ${ac_cv_prog_AUTOCONF+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$AUTOCONF"; then
4822 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831 ac_cv_prog_AUTOCONF="$ac_prog"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4835 done
4836 done
4837 IFS=$as_save_IFS
4841 AUTOCONF=$ac_cv_prog_AUTOCONF
4842 if test -n "$AUTOCONF"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4844 $as_echo "$AUTOCONF" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4851 test -n "$AUTOCONF" && break
4852 done
4853 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
4855 for ac_prog in autoheader
4857 # Extract the first word of "$ac_prog", so it can be a program name with args.
4858 set dummy $ac_prog; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if ${ac_cv_prog_AUTOHEADER+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 if test -n "$AUTOHEADER"; then
4865 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874 ac_cv_prog_AUTOHEADER="$ac_prog"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 break 2
4878 done
4879 done
4880 IFS=$as_save_IFS
4884 AUTOHEADER=$ac_cv_prog_AUTOHEADER
4885 if test -n "$AUTOHEADER"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4887 $as_echo "$AUTOHEADER" >&6; }
4888 else
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4894 test -n "$AUTOHEADER" && break
4895 done
4896 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
4899 # Figure out what compiler warnings we can enable.
4900 # See config/warnings.m4 for details.
4902 ac_ext=c
4903 ac_cpp='$CPP $CPPFLAGS'
4904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908 warn=
4909 save_CFLAGS="$CFLAGS"
4910 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
4911 -Wmissing-format-attribute; do
4912 # Do the check with the no- prefix removed since gcc silently
4913 # accepts any -Wno-* option on purpose
4914 case $real_option in
4915 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4916 *) option=$real_option ;;
4917 esac
4918 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4921 $as_echo_n "checking whether $CC supports $option... " >&6; }
4922 if eval \${$as_acx_Woption+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 CFLAGS="$option"
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4930 main ()
4934 return 0;
4936 _ACEOF
4937 if ac_fn_c_try_compile "$LINENO"; then :
4938 eval "$as_acx_Woption=yes"
4939 else
4940 eval "$as_acx_Woption=no"
4942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945 eval ac_res=\$$as_acx_Woption
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4947 $as_echo "$ac_res" >&6; }
4948 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4949 warn="$warn${warn:+ }$real_option"
4951 done
4952 CFLAGS="$save_CFLAGS"
4953 ac_ext=c
4954 ac_cpp='$CPP $CPPFLAGS'
4955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4960 ac_ext=c
4961 ac_cpp='$CPP $CPPFLAGS'
4962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966 c_warn=
4967 save_CFLAGS="$CFLAGS"
4968 for real_option in -Wstrict-prototypes -Wmissing-prototypes \
4969 -Wold-style-definition -Wc++-compat; do
4970 # Do the check with the no- prefix removed since gcc silently
4971 # accepts any -Wno-* option on purpose
4972 case $real_option in
4973 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4974 *) option=$real_option ;;
4975 esac
4976 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4979 $as_echo_n "checking whether $CC supports $option... " >&6; }
4980 if eval \${$as_acx_Woption+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 CFLAGS="$option"
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4988 main ()
4992 return 0;
4994 _ACEOF
4995 if ac_fn_c_try_compile "$LINENO"; then :
4996 eval "$as_acx_Woption=yes"
4997 else
4998 eval "$as_acx_Woption=no"
5000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 eval ac_res=\$$as_acx_Woption
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5005 $as_echo "$ac_res" >&6; }
5006 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5007 c_warn="$c_warn${c_warn:+ }$real_option"
5009 done
5010 CFLAGS="$save_CFLAGS"
5011 ac_ext=c
5012 ac_cpp='$CPP $CPPFLAGS'
5013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5018 ac_ext=c
5019 ac_cpp='$CPP $CPPFLAGS'
5020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5024 WARN_PEDANTIC=
5025 # Do the check with the no- prefix removed from the warning options
5026 # since gcc silently accepts any -Wno-* option on purpose
5027 if test "$GCC" = yes; then :
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
5029 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
5030 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 save_CFLAGS="$CFLAGS"
5034 CFLAGS="-pedantic -Wlong-long"
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5039 main ()
5043 return 0;
5045 _ACEOF
5046 if ac_fn_c_try_compile "$LINENO"; then :
5047 acx_cv_prog_cc_pedantic__Wlong_long=yes
5048 else
5049 acx_cv_prog_cc_pedantic__Wlong_long=no
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 CFLAGS="$save_CFLAGS"
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
5055 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
5056 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
5057 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
5061 ac_ext=c
5062 ac_cpp='$CPP $CPPFLAGS'
5063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5069 # Disable exceptions and RTTI if building with g++
5070 ac_ext=c
5071 ac_cpp='$CPP $CPPFLAGS'
5072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5076 noexception_flags=
5077 save_CFLAGS="$CFLAGS"
5078 for real_option in -fno-exceptions -fno-rtti; do
5079 # Do the check with the no- prefix removed since gcc silently
5080 # accepts any -Wno-* option on purpose
5081 case $real_option in
5082 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5083 *) option=$real_option ;;
5084 esac
5085 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5088 $as_echo_n "checking whether $CC supports $option... " >&6; }
5089 if eval \${$as_acx_Woption+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 CFLAGS="$option"
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5097 main ()
5101 return 0;
5103 _ACEOF
5104 if ac_fn_c_try_compile "$LINENO"; then :
5105 eval "$as_acx_Woption=yes"
5106 else
5107 eval "$as_acx_Woption=no"
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5112 eval ac_res=\$$as_acx_Woption
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5114 $as_echo "$ac_res" >&6; }
5115 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5116 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
5118 done
5119 CFLAGS="$save_CFLAGS"
5120 ac_ext=c
5121 ac_cpp='$CPP $CPPFLAGS'
5122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5128 # Only enable with --enable-werror-always until existing warnings are
5129 # corrected.
5130 ac_ext=c
5131 ac_cpp='$CPP $CPPFLAGS'
5132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136 WERROR=
5137 # Check whether --enable-werror-always was given.
5138 if test "${enable_werror_always+set}" = set; then :
5139 enableval=$enable_werror_always;
5140 else
5141 enable_werror_always=no
5144 if test $enable_werror_always = yes; then :
5145 WERROR="$WERROR${WERROR:+ }-Werror"
5148 ac_ext=c
5149 ac_cpp='$CPP $CPPFLAGS'
5150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5156 # Dependency checking.
5157 rm -rf .tst 2>/dev/null
5158 mkdir .tst 2>/dev/null
5159 if test -d .tst; then
5160 am__leading_dot=.
5161 else
5162 am__leading_dot=_
5164 rmdir .tst 2>/dev/null
5166 DEPDIR="${am__leading_dot}deps"
5168 ac_config_commands="$ac_config_commands depdir"
5171 ac_ext=cpp
5172 ac_cpp='$CXXCPP $CPPFLAGS'
5173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 int i;
5181 _ACEOF
5182 if ac_fn_cxx_try_compile "$LINENO"; then :
5184 else
5185 as_fn_error $? "C++ compiler missing or inoperational" "$LINENO" 5
5187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188 ac_ext=c
5189 ac_cpp='$CPP $CPPFLAGS'
5190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5194 depcc="$CXX" am_compiler_list=
5196 am_depcomp=$ac_aux_dir/depcomp
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5198 $as_echo_n "checking dependency style of $depcc... " >&6; }
5199 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 if test -f "$am_depcomp"; then
5203 # We make a subdir and do the tests there. Otherwise we can end up
5204 # making bogus files that we don't know about and never remove. For
5205 # instance it was reported that on HP-UX the gcc test will end up
5206 # making a dummy file named `D' -- because `-MD' means `put the output
5207 # in D'.
5208 mkdir conftest.dir
5209 # Copy depcomp to subdir because otherwise we won't find it if we're
5210 # using a relative directory.
5211 cp "$am_depcomp" conftest.dir
5212 cd conftest.dir
5213 # We will build objects and dependencies in a subdirectory because
5214 # it helps to detect inapplicable dependency modes. For instance
5215 # both Tru64's cc and ICC support -MD to output dependencies as a
5216 # side effect of compilation, but ICC will put the dependencies in
5217 # the current directory while Tru64 will put them in the object
5218 # directory.
5219 mkdir sub
5221 am_cv_CXX_dependencies_compiler_type=none
5222 if test "$am_compiler_list" = ""; then
5223 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5225 for depmode in $am_compiler_list; do
5226 if test $depmode = none; then break; fi
5228 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5229 # Setup a source with many dependencies, because some compilers
5230 # like to wrap large dependency lists on column 80 (with \), and
5231 # we should not choose a depcomp mode which is confused by this.
5233 # We need to recreate these files for each test, as the compiler may
5234 # overwrite some of them when testing with obscure command lines.
5235 # This happens at least with the AIX C compiler.
5236 : > sub/conftest.c
5237 for i in 1 2 3 4 5 6; do
5238 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5239 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5240 # Solaris 8's {/usr,}/bin/sh.
5241 touch sub/conftst$i.h
5242 done
5243 echo "include sub/conftest.Po" > confmf
5245 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5246 # mode. It turns out that the SunPro C++ compiler does not properly
5247 # handle `-M -o', and we need to detect this.
5248 depcmd="depmode=$depmode \
5249 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5250 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5251 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5252 echo "| $depcmd" | sed -e 's/ */ /g' >&5
5253 if env $depcmd > conftest.err 2>&1 &&
5254 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5255 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5256 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5257 # icc doesn't choke on unknown options, it will just issue warnings
5258 # or remarks (even with -Werror). So we grep stderr for any message
5259 # that says an option was ignored or not supported.
5260 # When given -MP, icc 7.0 and 7.1 complain thusly:
5261 # icc: Command line warning: ignoring option '-M'; no argument required
5262 # The diagnosis changed in icc 8.0:
5263 # icc: Command line remark: option '-MP' not supported
5264 if (grep 'ignoring option' conftest.err ||
5265 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5266 am_cv_CXX_dependencies_compiler_type=$depmode
5267 $as_echo "$as_me:$LINENO: success" >&5
5268 break
5271 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5272 sed -e 's/^/| /' < conftest.err >&5
5273 done
5275 cd ..
5276 rm -rf conftest.dir
5277 else
5278 am_cv_CXX_dependencies_compiler_type=none
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5283 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5284 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
5285 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
5286 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5291 # Checks for header files.
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5293 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5294 if ${ac_cv_header_time+:} false; then :
5295 $as_echo_n "(cached) " >&6
5296 else
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 #include <sys/types.h>
5300 #include <sys/time.h>
5301 #include <time.h>
5304 main ()
5306 if ((struct tm *) 0)
5307 return 0;
5309 return 0;
5311 _ACEOF
5312 if ac_fn_c_try_compile "$LINENO"; then :
5313 ac_cv_header_time=yes
5314 else
5315 ac_cv_header_time=no
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5320 $as_echo "$ac_cv_header_time" >&6; }
5321 if test $ac_cv_header_time = yes; then
5323 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5328 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5329 if ${gcc_cv_header_string+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 #include <string.h>
5335 #include <strings.h>
5337 main ()
5341 return 0;
5343 _ACEOF
5344 if ac_fn_c_try_compile "$LINENO"; then :
5345 gcc_cv_header_string=yes
5346 else
5347 gcc_cv_header_string=no
5349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5352 $as_echo "$gcc_cv_header_string" >&6; }
5353 if test $gcc_cv_header_string = yes; then
5355 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5360 for ac_header in locale.h fcntl.h limits.h stddef.h \
5361 stdlib.h strings.h string.h sys/file.h unistd.h
5362 do :
5363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5364 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5365 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5366 cat >>confdefs.h <<_ACEOF
5367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5368 _ACEOF
5372 done
5375 # Checks for typedefs, structures, and compiler characteristics.
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5377 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5378 if ${ac_cv_c_bigendian+:} false; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 ac_cv_c_bigendian=unknown
5382 # See if we're dealing with a universal compiler.
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #ifndef __APPLE_CC__
5386 not a universal capable compiler
5387 #endif
5388 typedef int dummy;
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"; then :
5393 # Check for potential -arch flags. It is not universal unless
5394 # there are at least two -arch flags with different values.
5395 ac_arch=
5396 ac_prev=
5397 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5398 if test -n "$ac_prev"; then
5399 case $ac_word in
5400 i?86 | x86_64 | ppc | ppc64)
5401 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5402 ac_arch=$ac_word
5403 else
5404 ac_cv_c_bigendian=universal
5405 break
5408 esac
5409 ac_prev=
5410 elif test "x$ac_word" = "x-arch"; then
5411 ac_prev=arch
5413 done
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 if test $ac_cv_c_bigendian = unknown; then
5417 # See if sys/param.h defines the BYTE_ORDER macro.
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420 #include <sys/types.h>
5421 #include <sys/param.h>
5424 main ()
5426 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5427 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5428 && LITTLE_ENDIAN)
5429 bogus endian macros
5430 #endif
5433 return 0;
5435 _ACEOF
5436 if ac_fn_c_try_compile "$LINENO"; then :
5437 # It does; now see whether it defined to BIG_ENDIAN or not.
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5440 #include <sys/types.h>
5441 #include <sys/param.h>
5444 main ()
5446 #if BYTE_ORDER != BIG_ENDIAN
5447 not big endian
5448 #endif
5451 return 0;
5453 _ACEOF
5454 if ac_fn_c_try_compile "$LINENO"; then :
5455 ac_cv_c_bigendian=yes
5456 else
5457 ac_cv_c_bigendian=no
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 if test $ac_cv_c_bigendian = unknown; then
5464 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 #include <limits.h>
5470 main ()
5472 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5473 bogus endian macros
5474 #endif
5477 return 0;
5479 _ACEOF
5480 if ac_fn_c_try_compile "$LINENO"; then :
5481 # It does; now see whether it defined to _BIG_ENDIAN or not.
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484 #include <limits.h>
5487 main ()
5489 #ifndef _BIG_ENDIAN
5490 not big endian
5491 #endif
5494 return 0;
5496 _ACEOF
5497 if ac_fn_c_try_compile "$LINENO"; then :
5498 ac_cv_c_bigendian=yes
5499 else
5500 ac_cv_c_bigendian=no
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 if test $ac_cv_c_bigendian = unknown; then
5507 # Compile a test program.
5508 if test "$cross_compiling" = yes; then :
5509 # Try to guess by grepping values from an object file.
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512 short int ascii_mm[] =
5513 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5514 short int ascii_ii[] =
5515 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5516 int use_ascii (int i) {
5517 return ascii_mm[i] + ascii_ii[i];
5519 short int ebcdic_ii[] =
5520 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5521 short int ebcdic_mm[] =
5522 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5523 int use_ebcdic (int i) {
5524 return ebcdic_mm[i] + ebcdic_ii[i];
5526 extern int foo;
5529 main ()
5531 return use_ascii (foo) == use_ebcdic (foo);
5533 return 0;
5535 _ACEOF
5536 if ac_fn_c_try_compile "$LINENO"; then :
5537 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5538 ac_cv_c_bigendian=yes
5540 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5541 if test "$ac_cv_c_bigendian" = unknown; then
5542 ac_cv_c_bigendian=no
5543 else
5544 # finding both strings is unlikely to happen, but who knows?
5545 ac_cv_c_bigendian=unknown
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 else
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 $ac_includes_default
5555 main ()
5558 /* Are we little or big endian? From Harbison&Steele. */
5559 union
5561 long int l;
5562 char c[sizeof (long int)];
5563 } u;
5564 u.l = 1;
5565 return u.c[sizeof (long int) - 1] == 1;
5568 return 0;
5570 _ACEOF
5571 if ac_fn_c_try_run "$LINENO"; then :
5572 ac_cv_c_bigendian=no
5573 else
5574 ac_cv_c_bigendian=yes
5576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5577 conftest.$ac_objext conftest.beam conftest.$ac_ext
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5583 $as_echo "$ac_cv_c_bigendian" >&6; }
5584 case $ac_cv_c_bigendian in #(
5585 yes)
5586 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5587 ;; #(
5589 ;; #(
5590 universal)
5592 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5594 ;; #(
5596 as_fn_error $? "unknown endianness
5597 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5598 esac
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5601 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5602 if ${ac_cv_c_const+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5609 main ()
5612 #ifndef __cplusplus
5613 /* Ultrix mips cc rejects this sort of thing. */
5614 typedef int charset[2];
5615 const charset cs = { 0, 0 };
5616 /* SunOS 4.1.1 cc rejects this. */
5617 char const *const *pcpcc;
5618 char **ppc;
5619 /* NEC SVR4.0.2 mips cc rejects this. */
5620 struct point {int x, y;};
5621 static struct point const zero = {0,0};
5622 /* AIX XL C 1.02.0.0 rejects this.
5623 It does not let you subtract one const X* pointer from another in
5624 an arm of an if-expression whose if-part is not a constant
5625 expression */
5626 const char *g = "string";
5627 pcpcc = &g + (g ? g-g : 0);
5628 /* HPUX 7.0 cc rejects these. */
5629 ++pcpcc;
5630 ppc = (char**) pcpcc;
5631 pcpcc = (char const *const *) ppc;
5632 { /* SCO 3.2v4 cc rejects this sort of thing. */
5633 char tx;
5634 char *t = &tx;
5635 char const *s = 0 ? (char *) 0 : (char const *) 0;
5637 *t++ = 0;
5638 if (s) return 0;
5640 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5641 int x[] = {25, 17};
5642 const int *foo = &x[0];
5643 ++foo;
5645 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5646 typedef const int *iptr;
5647 iptr p = 0;
5648 ++p;
5650 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5651 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5652 struct s { int j; const int *ap[3]; } bx;
5653 struct s *b = &bx; b->j = 5;
5655 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5656 const int foo = 10;
5657 if (!foo) return 0;
5659 return !cs[0] && !zero.x;
5660 #endif
5663 return 0;
5665 _ACEOF
5666 if ac_fn_c_try_compile "$LINENO"; then :
5667 ac_cv_c_const=yes
5668 else
5669 ac_cv_c_const=no
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5674 $as_echo "$ac_cv_c_const" >&6; }
5675 if test $ac_cv_c_const = no; then
5677 $as_echo "#define const /**/" >>confdefs.h
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5682 $as_echo_n "checking for inline... " >&6; }
5683 if ${ac_cv_c_inline+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 ac_cv_c_inline=no
5687 for ac_kw in inline __inline__ __inline; do
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 #ifndef __cplusplus
5691 typedef int foo_t;
5692 static $ac_kw foo_t static_foo () {return 0; }
5693 $ac_kw foo_t foo () {return 0; }
5694 #endif
5696 _ACEOF
5697 if ac_fn_c_try_compile "$LINENO"; then :
5698 ac_cv_c_inline=$ac_kw
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 test "$ac_cv_c_inline" != no && break
5702 done
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5706 $as_echo "$ac_cv_c_inline" >&6; }
5708 case $ac_cv_c_inline in
5709 inline | yes) ;;
5711 case $ac_cv_c_inline in
5712 no) ac_val=;;
5713 *) ac_val=$ac_cv_c_inline;;
5714 esac
5715 cat >>confdefs.h <<_ACEOF
5716 #ifndef __cplusplus
5717 #define inline $ac_val
5718 #endif
5719 _ACEOF
5721 esac
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5724 $as_echo_n "checking for obstacks... " >&6; }
5725 if ${ac_cv_func_obstack+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h. */
5730 $ac_includes_default
5731 #include "obstack.h"
5733 main ()
5735 struct obstack mem;
5736 #define obstack_chunk_alloc malloc
5737 #define obstack_chunk_free free
5738 obstack_init (&mem);
5739 obstack_free (&mem, 0);
5741 return 0;
5743 _ACEOF
5744 if ac_fn_c_try_link "$LINENO"; then :
5745 ac_cv_func_obstack=yes
5746 else
5747 ac_cv_func_obstack=no
5749 rm -f core conftest.err conftest.$ac_objext \
5750 conftest$ac_exeext conftest.$ac_ext
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5753 $as_echo "$ac_cv_func_obstack" >&6; }
5754 if test $ac_cv_func_obstack = yes; then
5756 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5758 else
5759 case " $LIBOBJS " in
5760 *" obstack.$ac_objext "* ) ;;
5761 *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
5763 esac
5767 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5768 if test "x$ac_cv_type_off_t" = xyes; then :
5770 else
5772 cat >>confdefs.h <<_ACEOF
5773 #define off_t long int
5774 _ACEOF
5778 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5779 if test "x$ac_cv_type_size_t" = xyes; then :
5781 else
5783 cat >>confdefs.h <<_ACEOF
5784 #define size_t unsigned int
5785 _ACEOF
5789 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5790 if test "x$ac_cv_type_ssize_t" = xyes; then :
5792 else
5794 cat >>confdefs.h <<_ACEOF
5795 #define ssize_t int
5796 _ACEOF
5801 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5802 if test "x$ac_cv_type_uintptr_t" = xyes; then :
5804 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5806 else
5807 for ac_type in 'unsigned int' 'unsigned long int' \
5808 'unsigned long long int'; do
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5811 $ac_includes_default
5813 main ()
5815 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5816 test_array [0] = 0;
5817 return test_array [0];
5820 return 0;
5822 _ACEOF
5823 if ac_fn_c_try_compile "$LINENO"; then :
5825 cat >>confdefs.h <<_ACEOF
5826 #define uintptr_t $ac_type
5827 _ACEOF
5829 ac_type=
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 test -z "$ac_type" && break
5833 done
5837 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5838 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
5840 else
5842 cat >>confdefs.h <<_ACEOF
5843 #define ptrdiff_t int
5844 _ACEOF
5848 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5849 case $ac_cv_c_uint64_t in #(
5850 no|yes) ;; #(
5853 $as_echo "#define _UINT64_T 1" >>confdefs.h
5856 cat >>confdefs.h <<_ACEOF
5857 #define uint64_t $ac_cv_c_uint64_t
5858 _ACEOF
5860 esac
5862 if test x"$ac_cv_c_uint64_t" = x"no"; then
5863 as_fn_error $? "uint64_t not found" "$LINENO" 5
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5866 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5867 if ${ac_cv_struct_tm+:} false; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h. */
5872 #include <sys/types.h>
5873 #include <time.h>
5876 main ()
5878 struct tm tm;
5879 int *p = &tm.tm_sec;
5880 return !p;
5882 return 0;
5884 _ACEOF
5885 if ac_fn_c_try_compile "$LINENO"; then :
5886 ac_cv_struct_tm=time.h
5887 else
5888 ac_cv_struct_tm=sys/time.h
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5893 $as_echo "$ac_cv_struct_tm" >&6; }
5894 if test $ac_cv_struct_tm = sys/time.h; then
5896 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5900 # The cast to long int works around a bug in the HP C Compiler
5901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5903 # This bug is HP SR number 8606223364.
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5905 $as_echo_n "checking size of int... " >&6; }
5906 if ${ac_cv_sizeof_int+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5911 else
5912 if test "$ac_cv_type_int" = yes; then
5913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5915 as_fn_error 77 "cannot compute sizeof (int)
5916 See \`config.log' for more details" "$LINENO" 5; }
5917 else
5918 ac_cv_sizeof_int=0
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5924 $as_echo "$ac_cv_sizeof_int" >&6; }
5928 cat >>confdefs.h <<_ACEOF
5929 #define SIZEOF_INT $ac_cv_sizeof_int
5930 _ACEOF
5933 # The cast to long int works around a bug in the HP C Compiler
5934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5936 # This bug is HP SR number 8606223364.
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5938 $as_echo_n "checking size of long... " >&6; }
5939 if ${ac_cv_sizeof_long+:} false; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5944 else
5945 if test "$ac_cv_type_long" = yes; then
5946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5948 as_fn_error 77 "cannot compute sizeof (long)
5949 See \`config.log' for more details" "$LINENO" 5; }
5950 else
5951 ac_cv_sizeof_long=0
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5957 $as_echo "$ac_cv_sizeof_long" >&6; }
5961 cat >>confdefs.h <<_ACEOF
5962 #define SIZEOF_LONG $ac_cv_sizeof_long
5963 _ACEOF
5967 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
5968 do :
5969 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5970 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5971 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5972 cat >>confdefs.h <<_ACEOF
5973 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5974 _ACEOF
5977 done
5979 ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5980 if test "x$ac_cv_have_decl_abort" = xyes; then :
5981 ac_have_decl=1
5982 else
5983 ac_have_decl=0
5986 cat >>confdefs.h <<_ACEOF
5987 #define HAVE_DECL_ABORT $ac_have_decl
5988 _ACEOF
5989 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5990 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
5991 ac_have_decl=1
5992 else
5993 ac_have_decl=0
5996 cat >>confdefs.h <<_ACEOF
5997 #define HAVE_DECL_ASPRINTF $ac_have_decl
5998 _ACEOF
5999 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
6000 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
6001 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
6002 ac_have_decl=1
6003 else
6004 ac_have_decl=0
6007 cat >>confdefs.h <<_ACEOF
6008 #define HAVE_DECL_BASENAME $ac_have_decl
6009 _ACEOF
6010 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
6011 if test "x$ac_cv_have_decl_errno" = xyes; then :
6012 ac_have_decl=1
6013 else
6014 ac_have_decl=0
6017 cat >>confdefs.h <<_ACEOF
6018 #define HAVE_DECL_ERRNO $ac_have_decl
6019 _ACEOF
6020 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
6021 if test "x$ac_cv_have_decl_getopt" = xyes; then :
6022 ac_have_decl=1
6023 else
6024 ac_have_decl=0
6027 cat >>confdefs.h <<_ACEOF
6028 #define HAVE_DECL_GETOPT $ac_have_decl
6029 _ACEOF
6030 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6031 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
6032 ac_have_decl=1
6033 else
6034 ac_have_decl=0
6037 cat >>confdefs.h <<_ACEOF
6038 #define HAVE_DECL_VASPRINTF $ac_have_decl
6039 _ACEOF
6041 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
6042 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
6043 ac_have_decl=1
6044 else
6045 ac_have_decl=0
6048 cat >>confdefs.h <<_ACEOF
6049 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
6050 _ACEOF
6051 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
6052 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
6053 ac_have_decl=1
6054 else
6055 ac_have_decl=0
6058 cat >>confdefs.h <<_ACEOF
6059 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
6060 _ACEOF
6061 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
6062 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
6063 ac_have_decl=1
6064 else
6065 ac_have_decl=0
6068 cat >>confdefs.h <<_ACEOF
6069 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
6070 _ACEOF
6071 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
6072 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
6073 ac_have_decl=1
6074 else
6075 ac_have_decl=0
6078 cat >>confdefs.h <<_ACEOF
6079 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
6080 _ACEOF
6081 ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
6082 if test "x$ac_cv_have_decl_fgetc_unlocked" = xyes; then :
6083 ac_have_decl=1
6084 else
6085 ac_have_decl=0
6088 cat >>confdefs.h <<_ACEOF
6089 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
6090 _ACEOF
6091 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
6092 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
6093 ac_have_decl=1
6094 else
6095 ac_have_decl=0
6098 cat >>confdefs.h <<_ACEOF
6099 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
6100 _ACEOF
6101 ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
6102 if test "x$ac_cv_have_decl_fileno_unlocked" = xyes; then :
6103 ac_have_decl=1
6104 else
6105 ac_have_decl=0
6108 cat >>confdefs.h <<_ACEOF
6109 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
6110 _ACEOF
6111 ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
6112 if test "x$ac_cv_have_decl_fprintf_unlocked" = xyes; then :
6113 ac_have_decl=1
6114 else
6115 ac_have_decl=0
6118 cat >>confdefs.h <<_ACEOF
6119 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
6120 _ACEOF
6121 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
6122 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
6123 ac_have_decl=1
6124 else
6125 ac_have_decl=0
6128 cat >>confdefs.h <<_ACEOF
6129 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
6130 _ACEOF
6131 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
6132 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
6133 ac_have_decl=1
6134 else
6135 ac_have_decl=0
6138 cat >>confdefs.h <<_ACEOF
6139 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
6140 _ACEOF
6141 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
6142 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
6143 ac_have_decl=1
6144 else
6145 ac_have_decl=0
6148 cat >>confdefs.h <<_ACEOF
6149 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
6150 _ACEOF
6151 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
6152 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
6153 ac_have_decl=1
6154 else
6155 ac_have_decl=0
6158 cat >>confdefs.h <<_ACEOF
6159 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
6160 _ACEOF
6161 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
6162 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
6163 ac_have_decl=1
6164 else
6165 ac_have_decl=0
6168 cat >>confdefs.h <<_ACEOF
6169 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
6170 _ACEOF
6171 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6172 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
6173 ac_have_decl=1
6174 else
6175 ac_have_decl=0
6178 cat >>confdefs.h <<_ACEOF
6179 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6180 _ACEOF
6181 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
6182 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
6183 ac_have_decl=1
6184 else
6185 ac_have_decl=0
6188 cat >>confdefs.h <<_ACEOF
6189 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
6190 _ACEOF
6191 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
6192 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
6193 ac_have_decl=1
6194 else
6195 ac_have_decl=0
6198 cat >>confdefs.h <<_ACEOF
6199 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
6200 _ACEOF
6203 # Checks for library functions.
6204 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6205 # for constant arguments. Useless!
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6207 $as_echo_n "checking for working alloca.h... " >&6; }
6208 if ${ac_cv_working_alloca_h+:} false; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 #include <alloca.h>
6215 main ()
6217 char *p = (char *) alloca (2 * sizeof (int));
6218 if (p) return 0;
6220 return 0;
6222 _ACEOF
6223 if ac_fn_c_try_link "$LINENO"; then :
6224 ac_cv_working_alloca_h=yes
6225 else
6226 ac_cv_working_alloca_h=no
6228 rm -f core conftest.err conftest.$ac_objext \
6229 conftest$ac_exeext conftest.$ac_ext
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6232 $as_echo "$ac_cv_working_alloca_h" >&6; }
6233 if test $ac_cv_working_alloca_h = yes; then
6235 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6240 $as_echo_n "checking for alloca... " >&6; }
6241 if ${ac_cv_func_alloca_works+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246 #ifdef __GNUC__
6247 # define alloca __builtin_alloca
6248 #else
6249 # ifdef _MSC_VER
6250 # include <malloc.h>
6251 # define alloca _alloca
6252 # else
6253 # ifdef HAVE_ALLOCA_H
6254 # include <alloca.h>
6255 # else
6256 # ifdef _AIX
6257 #pragma alloca
6258 # else
6259 # ifndef alloca /* predefined by HP cc +Olibcalls */
6260 void *alloca (size_t);
6261 # endif
6262 # endif
6263 # endif
6264 # endif
6265 #endif
6268 main ()
6270 char *p = (char *) alloca (1);
6271 if (p) return 0;
6273 return 0;
6275 _ACEOF
6276 if ac_fn_c_try_link "$LINENO"; then :
6277 ac_cv_func_alloca_works=yes
6278 else
6279 ac_cv_func_alloca_works=no
6281 rm -f core conftest.err conftest.$ac_objext \
6282 conftest$ac_exeext conftest.$ac_ext
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6285 $as_echo "$ac_cv_func_alloca_works" >&6; }
6287 if test $ac_cv_func_alloca_works = yes; then
6289 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6291 else
6292 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6293 # that cause trouble. Some versions do not even contain alloca or
6294 # contain a buggy version. If you still want to use their alloca,
6295 # use ar to extract alloca.o from them instead of compiling alloca.c.
6297 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6299 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6303 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6304 if ${ac_cv_os_cray+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6309 #if defined CRAY && ! defined CRAY2
6310 webecray
6311 #else
6312 wenotbecray
6313 #endif
6315 _ACEOF
6316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6317 $EGREP "webecray" >/dev/null 2>&1; then :
6318 ac_cv_os_cray=yes
6319 else
6320 ac_cv_os_cray=no
6322 rm -f conftest*
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6326 $as_echo "$ac_cv_os_cray" >&6; }
6327 if test $ac_cv_os_cray = yes; then
6328 for ac_func in _getb67 GETB67 getb67; do
6329 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6330 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6331 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6333 cat >>confdefs.h <<_ACEOF
6334 #define CRAY_STACKSEG_END $ac_func
6335 _ACEOF
6337 break
6340 done
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6344 $as_echo_n "checking stack direction for C alloca... " >&6; }
6345 if ${ac_cv_c_stack_direction+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 if test "$cross_compiling" = yes; then :
6349 ac_cv_c_stack_direction=0
6350 else
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6353 $ac_includes_default
6355 find_stack_direction (int *addr, int depth)
6357 int dir, dummy = 0;
6358 if (! addr)
6359 addr = &dummy;
6360 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6361 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6362 return dir + dummy;
6366 main (int argc, char **argv)
6368 return find_stack_direction (0, argc + !argv + 20) < 0;
6370 _ACEOF
6371 if ac_fn_c_try_run "$LINENO"; then :
6372 ac_cv_c_stack_direction=1
6373 else
6374 ac_cv_c_stack_direction=-1
6376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6377 conftest.$ac_objext conftest.beam conftest.$ac_ext
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6382 $as_echo "$ac_cv_c_stack_direction" >&6; }
6383 cat >>confdefs.h <<_ACEOF
6384 #define STACK_DIRECTION $ac_cv_c_stack_direction
6385 _ACEOF
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6391 $as_echo_n "checking for ANSI C header files... " >&6; }
6392 if ${ac_cv_header_stdc+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6397 #include <stdlib.h>
6398 #include <stdarg.h>
6399 #include <string.h>
6400 #include <float.h>
6403 main ()
6407 return 0;
6409 _ACEOF
6410 if ac_fn_c_try_compile "$LINENO"; then :
6411 ac_cv_header_stdc=yes
6412 else
6413 ac_cv_header_stdc=no
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417 if test $ac_cv_header_stdc = yes; then
6418 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6421 #include <string.h>
6423 _ACEOF
6424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6425 $EGREP "memchr" >/dev/null 2>&1; then :
6427 else
6428 ac_cv_header_stdc=no
6430 rm -f conftest*
6434 if test $ac_cv_header_stdc = yes; then
6435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6438 #include <stdlib.h>
6440 _ACEOF
6441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6442 $EGREP "free" >/dev/null 2>&1; then :
6444 else
6445 ac_cv_header_stdc=no
6447 rm -f conftest*
6451 if test $ac_cv_header_stdc = yes; then
6452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6453 if test "$cross_compiling" = yes; then :
6455 else
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6458 #include <ctype.h>
6459 #include <stdlib.h>
6460 #if ((' ' & 0x0FF) == 0x020)
6461 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6462 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6463 #else
6464 # define ISLOWER(c) \
6465 (('a' <= (c) && (c) <= 'i') \
6466 || ('j' <= (c) && (c) <= 'r') \
6467 || ('s' <= (c) && (c) <= 'z'))
6468 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6469 #endif
6471 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6473 main ()
6475 int i;
6476 for (i = 0; i < 256; i++)
6477 if (XOR (islower (i), ISLOWER (i))
6478 || toupper (i) != TOUPPER (i))
6479 return 2;
6480 return 0;
6482 _ACEOF
6483 if ac_fn_c_try_run "$LINENO"; then :
6485 else
6486 ac_cv_header_stdc=no
6488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6489 conftest.$ac_objext conftest.beam conftest.$ac_ext
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6495 $as_echo "$ac_cv_header_stdc" >&6; }
6496 if test $ac_cv_header_stdc = yes; then
6498 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6504 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6505 if ${am_cv_langinfo_codeset+:} false; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 #include <langinfo.h>
6512 main ()
6514 char* cs = nl_langinfo(CODESET);
6516 return 0;
6518 _ACEOF
6519 if ac_fn_c_try_link "$LINENO"; then :
6520 am_cv_langinfo_codeset=yes
6521 else
6522 am_cv_langinfo_codeset=no
6524 rm -f core conftest.err conftest.$ac_objext \
6525 conftest$ac_exeext conftest.$ac_ext
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6529 $as_echo "$am_cv_langinfo_codeset" >&6; }
6530 if test $am_cv_langinfo_codeset = yes; then
6532 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6536 # If we haven't got the data from the intl directory,
6537 # assume NLS is disabled.
6538 USE_NLS=no
6539 LIBINTL=
6540 LIBINTL_DEP=
6541 INCINTL=
6542 XGETTEXT=
6543 GMSGFMT=
6544 POSUB=
6546 if test -f ../intl/config.intl; then
6547 . ../intl/config.intl
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6550 $as_echo_n "checking whether NLS is requested... " >&6; }
6551 if test x"$USE_NLS" != xyes; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6554 else
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6556 $as_echo "yes" >&6; }
6558 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6562 $as_echo_n "checking for catalogs to be installed... " >&6; }
6563 # Look for .po and .gmo files in the source directory.
6564 CATALOGS=
6565 XLINGUAS=
6566 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6567 # If there aren't any .gmo files the shell will give us the
6568 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6569 # weeded out.
6570 case "$cat" in *\**)
6571 continue;;
6572 esac
6573 # The quadruple backslash is collapsed to a double backslash
6574 # by the backticks, then collapsed again by the double quotes,
6575 # leaving us with one backslash in the sed expression (right
6576 # before the dot that mustn't act as a wildcard).
6577 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6578 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6579 # The user is allowed to set LINGUAS to a list of languages to
6580 # install catalogs for. If it's empty that means "all of them."
6581 if test "x$LINGUAS" = x; then
6582 CATALOGS="$CATALOGS $cat"
6583 XLINGUAS="$XLINGUAS $lang"
6584 else
6585 case "$LINGUAS" in *$lang*)
6586 CATALOGS="$CATALOGS $cat"
6587 XLINGUAS="$XLINGUAS $lang"
6589 esac
6591 done
6592 LINGUAS="$XLINGUAS"
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6594 $as_echo "$LINGUAS" >&6; }
6597 DATADIRNAME=share
6599 INSTOBJEXT=.mo
6601 GENCAT=gencat
6603 CATOBJEXT=.gmo
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
6608 $as_echo_n "checking for uchar... " >&6; }
6609 if ${gcc_cv_type_uchar+:} false; then :
6610 $as_echo_n "(cached) " >&6
6611 else
6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6615 #include <sys/types.h>
6618 main ()
6620 if ((uchar *)0) return 0;
6621 if (sizeof(uchar)) return 0;
6623 return 0;
6625 _ACEOF
6626 if ac_fn_c_try_compile "$LINENO"; then :
6627 ac_cv_type_uchar=yes
6628 else
6629 ac_cv_type_uchar=no
6631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
6634 $as_echo "$gcc_cv_type_uchar" >&6; }
6635 if test $ac_cv_type_uchar = yes; then
6637 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
6641 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
6642 # iconv() prototype.
6643 ac_ext=cpp
6644 ac_cpp='$CXXCPP $CPPFLAGS'
6645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6650 if test "X$prefix" = "XNONE"; then
6651 acl_final_prefix="$ac_default_prefix"
6652 else
6653 acl_final_prefix="$prefix"
6655 if test "X$exec_prefix" = "XNONE"; then
6656 acl_final_exec_prefix='${prefix}'
6657 else
6658 acl_final_exec_prefix="$exec_prefix"
6660 acl_save_prefix="$prefix"
6661 prefix="$acl_final_prefix"
6662 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6663 prefix="$acl_save_prefix"
6666 # Check whether --with-gnu-ld was given.
6667 if test "${with_gnu_ld+set}" = set; then :
6668 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6669 else
6670 with_gnu_ld=no
6673 # Prepare PATH_SEPARATOR.
6674 # The user is always right.
6675 if test "${PATH_SEPARATOR+set}" != set; then
6676 echo "#! /bin/sh" >conf$$.sh
6677 echo "exit 0" >>conf$$.sh
6678 chmod +x conf$$.sh
6679 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6680 PATH_SEPARATOR=';'
6681 else
6682 PATH_SEPARATOR=:
6684 rm -f conf$$.sh
6686 ac_prog=ld
6687 if test "$GCC" = yes; then
6688 # Check if gcc -print-prog-name=ld gives a path.
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6690 $as_echo_n "checking for ld used by GCC... " >&6; }
6691 case $host in
6692 *-*-mingw*)
6693 # gcc leaves a trailing carriage return which upsets mingw
6694 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6696 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6697 esac
6698 case $ac_prog in
6699 # Accept absolute paths.
6700 [\\/]* | [A-Za-z]:[\\/]*)
6701 re_direlt='/[^/][^/]*/\.\./'
6702 # Canonicalize the path of ld
6703 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6704 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6705 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6706 done
6707 test -z "$LD" && LD="$ac_prog"
6710 # If it fails, then pretend we aren't using GCC.
6711 ac_prog=ld
6714 # If it is relative, then search for the first ld in PATH.
6715 with_gnu_ld=unknown
6717 esac
6718 elif test "$with_gnu_ld" = yes; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6720 $as_echo_n "checking for GNU ld... " >&6; }
6721 else
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6723 $as_echo_n "checking for non-GNU ld... " >&6; }
6725 if ${acl_cv_path_LD+:} false; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728 if test -z "$LD"; then
6729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6730 for ac_dir in $PATH; do
6731 test -z "$ac_dir" && ac_dir=.
6732 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6733 acl_cv_path_LD="$ac_dir/$ac_prog"
6734 # Check to see if the program is GNU ld. I'd rather use --version,
6735 # but apparently some GNU ld's only accept -v.
6736 # Break only if it was the GNU/non-GNU ld that we prefer.
6737 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6738 test "$with_gnu_ld" != no && break
6739 else
6740 test "$with_gnu_ld" != yes && break
6743 done
6744 IFS="$ac_save_ifs"
6745 else
6746 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6750 LD="$acl_cv_path_LD"
6751 if test -n "$LD"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6753 $as_echo "$LD" >&6; }
6754 else
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6758 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6760 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6761 if ${acl_cv_prog_gnu_ld+:} false; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6765 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6766 acl_cv_prog_gnu_ld=yes
6767 else
6768 acl_cv_prog_gnu_ld=no
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6772 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6773 with_gnu_ld=$acl_cv_prog_gnu_ld
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6778 $as_echo_n "checking for shared library run path origin... " >&6; }
6779 if ${acl_cv_rpath+:} false; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6783 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6784 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6785 . ./conftest.sh
6786 rm -f ./conftest.sh
6787 acl_cv_rpath=done
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6791 $as_echo "$acl_cv_rpath" >&6; }
6792 wl="$acl_cv_wl"
6793 libext="$acl_cv_libext"
6794 shlibext="$acl_cv_shlibext"
6795 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6796 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6797 hardcode_direct="$acl_cv_hardcode_direct"
6798 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6799 # Check whether --enable-rpath was given.
6800 if test "${enable_rpath+set}" = set; then :
6801 enableval=$enable_rpath; :
6802 else
6803 enable_rpath=yes
6813 use_additional=yes
6815 acl_save_prefix="$prefix"
6816 prefix="$acl_final_prefix"
6817 acl_save_exec_prefix="$exec_prefix"
6818 exec_prefix="$acl_final_exec_prefix"
6820 eval additional_includedir=\"$includedir\"
6821 eval additional_libdir=\"$libdir\"
6823 exec_prefix="$acl_save_exec_prefix"
6824 prefix="$acl_save_prefix"
6827 # Check whether --with-libiconv-prefix was given.
6828 if test "${with_libiconv_prefix+set}" = set; then :
6829 withval=$with_libiconv_prefix;
6830 if test "X$withval" = "Xno"; then
6831 use_additional=no
6832 else
6833 if test "X$withval" = "X"; then
6835 acl_save_prefix="$prefix"
6836 prefix="$acl_final_prefix"
6837 acl_save_exec_prefix="$exec_prefix"
6838 exec_prefix="$acl_final_exec_prefix"
6840 eval additional_includedir=\"$includedir\"
6841 eval additional_libdir=\"$libdir\"
6843 exec_prefix="$acl_save_exec_prefix"
6844 prefix="$acl_save_prefix"
6846 else
6847 additional_includedir="$withval/include"
6848 additional_libdir="$withval/lib"
6855 # Check whether --with-libiconv-type was given.
6856 if test "${with_libiconv_type+set}" = set; then :
6857 withval=$with_libiconv_type; with_libiconv_type=$withval
6858 else
6859 with_libiconv_type=auto
6862 lib_type=`eval echo \$with_libiconv_type`
6864 LIBICONV=
6865 LTLIBICONV=
6866 INCICONV=
6867 rpathdirs=
6868 ltrpathdirs=
6869 names_already_handled=
6870 names_next_round='iconv '
6871 while test -n "$names_next_round"; do
6872 names_this_round="$names_next_round"
6873 names_next_round=
6874 for name in $names_this_round; do
6875 already_handled=
6876 for n in $names_already_handled; do
6877 if test "$n" = "$name"; then
6878 already_handled=yes
6879 break
6881 done
6882 if test -z "$already_handled"; then
6883 names_already_handled="$names_already_handled $name"
6884 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6885 eval value=\"\$HAVE_LIB$uppername\"
6886 if test -n "$value"; then
6887 if test "$value" = yes; then
6888 eval value=\"\$LIB$uppername\"
6889 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6890 eval value=\"\$LTLIB$uppername\"
6891 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6892 else
6895 else
6896 found_dir=
6897 found_la=
6898 found_so=
6899 found_a=
6900 if test $use_additional = yes; then
6901 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6902 found_dir="$additional_libdir"
6903 found_so="$additional_libdir/lib$name.$shlibext"
6904 if test -f "$additional_libdir/lib$name.la"; then
6905 found_la="$additional_libdir/lib$name.la"
6907 elif test x$lib_type != xshared; then
6908 if test -f "$additional_libdir/lib$name.$libext"; then
6909 found_dir="$additional_libdir"
6910 found_a="$additional_libdir/lib$name.$libext"
6911 if test -f "$additional_libdir/lib$name.la"; then
6912 found_la="$additional_libdir/lib$name.la"
6917 if test "X$found_dir" = "X"; then
6918 for x in $LDFLAGS $LTLIBICONV; do
6920 acl_save_prefix="$prefix"
6921 prefix="$acl_final_prefix"
6922 acl_save_exec_prefix="$exec_prefix"
6923 exec_prefix="$acl_final_exec_prefix"
6924 eval x=\"$x\"
6925 exec_prefix="$acl_save_exec_prefix"
6926 prefix="$acl_save_prefix"
6928 case "$x" in
6929 -L*)
6930 dir=`echo "X$x" | sed -e 's/^X-L//'`
6931 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6932 found_dir="$dir"
6933 found_so="$dir/lib$name.$shlibext"
6934 if test -f "$dir/lib$name.la"; then
6935 found_la="$dir/lib$name.la"
6937 elif test x$lib_type != xshared; then
6938 if test -f "$dir/lib$name.$libext"; then
6939 found_dir="$dir"
6940 found_a="$dir/lib$name.$libext"
6941 if test -f "$dir/lib$name.la"; then
6942 found_la="$dir/lib$name.la"
6947 esac
6948 if test "X$found_dir" != "X"; then
6949 break
6951 done
6953 if test "X$found_dir" != "X"; then
6954 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6955 if test "X$found_so" != "X"; then
6956 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6957 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6958 else
6959 haveit=
6960 for x in $ltrpathdirs; do
6961 if test "X$x" = "X$found_dir"; then
6962 haveit=yes
6963 break
6965 done
6966 if test -z "$haveit"; then
6967 ltrpathdirs="$ltrpathdirs $found_dir"
6969 if test "$hardcode_direct" = yes; then
6970 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6971 else
6972 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6973 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6974 haveit=
6975 for x in $rpathdirs; do
6976 if test "X$x" = "X$found_dir"; then
6977 haveit=yes
6978 break
6980 done
6981 if test -z "$haveit"; then
6982 rpathdirs="$rpathdirs $found_dir"
6984 else
6985 haveit=
6986 for x in $LDFLAGS $LIBICONV; do
6988 acl_save_prefix="$prefix"
6989 prefix="$acl_final_prefix"
6990 acl_save_exec_prefix="$exec_prefix"
6991 exec_prefix="$acl_final_exec_prefix"
6992 eval x=\"$x\"
6993 exec_prefix="$acl_save_exec_prefix"
6994 prefix="$acl_save_prefix"
6996 if test "X$x" = "X-L$found_dir"; then
6997 haveit=yes
6998 break
7000 done
7001 if test -z "$haveit"; then
7002 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7004 if test "$hardcode_minus_L" != no; then
7005 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7006 else
7007 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7012 else
7013 if test "X$found_a" != "X"; then
7014 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7015 else
7016 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7019 additional_includedir=
7020 case "$found_dir" in
7021 */lib | */lib/)
7022 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7023 additional_includedir="$basedir/include"
7025 esac
7026 if test "X$additional_includedir" != "X"; then
7027 if test "X$additional_includedir" != "X/usr/include"; then
7028 haveit=
7029 if test "X$additional_includedir" = "X/usr/local/include"; then
7030 if test -n "$GCC"; then
7031 case $host_os in
7032 linux*) haveit=yes;;
7033 esac
7036 if test -z "$haveit"; then
7037 for x in $CPPFLAGS $INCICONV; do
7039 acl_save_prefix="$prefix"
7040 prefix="$acl_final_prefix"
7041 acl_save_exec_prefix="$exec_prefix"
7042 exec_prefix="$acl_final_exec_prefix"
7043 eval x=\"$x\"
7044 exec_prefix="$acl_save_exec_prefix"
7045 prefix="$acl_save_prefix"
7047 if test "X$x" = "X-I$additional_includedir"; then
7048 haveit=yes
7049 break
7051 done
7052 if test -z "$haveit"; then
7053 if test -d "$additional_includedir"; then
7054 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7060 if test -n "$found_la"; then
7061 save_libdir="$libdir"
7062 case "$found_la" in
7063 */* | *\\*) . "$found_la" ;;
7064 *) . "./$found_la" ;;
7065 esac
7066 libdir="$save_libdir"
7067 for dep in $dependency_libs; do
7068 case "$dep" in
7069 -L*)
7070 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7071 if test "X$additional_libdir" != "X/usr/lib"; then
7072 haveit=
7073 if test "X$additional_libdir" = "X/usr/local/lib"; then
7074 if test -n "$GCC"; then
7075 case $host_os in
7076 linux*) haveit=yes;;
7077 esac
7080 if test -z "$haveit"; then
7081 haveit=
7082 for x in $LDFLAGS $LIBICONV; do
7084 acl_save_prefix="$prefix"
7085 prefix="$acl_final_prefix"
7086 acl_save_exec_prefix="$exec_prefix"
7087 exec_prefix="$acl_final_exec_prefix"
7088 eval x=\"$x\"
7089 exec_prefix="$acl_save_exec_prefix"
7090 prefix="$acl_save_prefix"
7092 if test "X$x" = "X-L$additional_libdir"; then
7093 haveit=yes
7094 break
7096 done
7097 if test -z "$haveit"; then
7098 if test -d "$additional_libdir"; then
7099 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7102 haveit=
7103 for x in $LDFLAGS $LTLIBICONV; do
7105 acl_save_prefix="$prefix"
7106 prefix="$acl_final_prefix"
7107 acl_save_exec_prefix="$exec_prefix"
7108 exec_prefix="$acl_final_exec_prefix"
7109 eval x=\"$x\"
7110 exec_prefix="$acl_save_exec_prefix"
7111 prefix="$acl_save_prefix"
7113 if test "X$x" = "X-L$additional_libdir"; then
7114 haveit=yes
7115 break
7117 done
7118 if test -z "$haveit"; then
7119 if test -d "$additional_libdir"; then
7120 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7126 -R*)
7127 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7128 if test "$enable_rpath" != no; then
7129 haveit=
7130 for x in $rpathdirs; do
7131 if test "X$x" = "X$dir"; then
7132 haveit=yes
7133 break
7135 done
7136 if test -z "$haveit"; then
7137 rpathdirs="$rpathdirs $dir"
7139 haveit=
7140 for x in $ltrpathdirs; do
7141 if test "X$x" = "X$dir"; then
7142 haveit=yes
7143 break
7145 done
7146 if test -z "$haveit"; then
7147 ltrpathdirs="$ltrpathdirs $dir"
7151 -l*)
7152 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7154 *.la)
7155 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7158 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7159 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7161 esac
7162 done
7164 else
7165 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
7166 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7167 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7168 else
7169 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
7170 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
7175 done
7176 done
7177 if test "X$rpathdirs" != "X"; then
7178 if test -n "$hardcode_libdir_separator"; then
7179 alldirs=
7180 for found_dir in $rpathdirs; do
7181 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7182 done
7183 acl_save_libdir="$libdir"
7184 libdir="$alldirs"
7185 eval flag=\"$hardcode_libdir_flag_spec\"
7186 libdir="$acl_save_libdir"
7187 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7188 else
7189 for found_dir in $rpathdirs; do
7190 acl_save_libdir="$libdir"
7191 libdir="$found_dir"
7192 eval flag=\"$hardcode_libdir_flag_spec\"
7193 libdir="$acl_save_libdir"
7194 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7195 done
7198 if test "X$ltrpathdirs" != "X"; then
7199 for found_dir in $ltrpathdirs; do
7200 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7201 done
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7211 $as_echo_n "checking for iconv... " >&6; }
7212 if ${am_cv_func_iconv+:} false; then :
7213 $as_echo_n "(cached) " >&6
7214 else
7216 am_cv_func_iconv="no, consider installing GNU libiconv"
7217 am_cv_lib_iconv=no
7218 am_save_CPPFLAGS="$CPPFLAGS"
7219 CPPFLAGS="$CPPFLAGS $INCICONV"
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222 #include <stdlib.h>
7223 #include <iconv.h>
7225 main ()
7227 iconv_t cd = iconv_open("","");
7228 iconv(cd,NULL,NULL,NULL,NULL);
7229 iconv_close(cd);
7231 return 0;
7233 _ACEOF
7234 if ac_fn_cxx_try_link "$LINENO"; then :
7235 am_cv_func_iconv=yes
7237 rm -f core conftest.err conftest.$ac_objext \
7238 conftest$ac_exeext conftest.$ac_ext
7239 CPPFLAGS="$am_save_CPPFLAGS"
7241 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
7242 for _libs in .libs _libs; do
7243 am_save_CPPFLAGS="$CPPFLAGS"
7244 am_save_LIBS="$LIBS"
7245 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
7246 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7249 #include <stdlib.h>
7250 #include <iconv.h>
7252 main ()
7254 iconv_t cd = iconv_open("","");
7255 iconv(cd,NULL,NULL,NULL,NULL);
7256 iconv_close(cd);
7258 return 0;
7260 _ACEOF
7261 if ac_fn_cxx_try_link "$LINENO"; then :
7262 INCICONV="-I../libiconv/include"
7263 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
7264 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
7265 am_cv_lib_iconv=yes
7266 am_cv_func_iconv=yes
7268 rm -f core conftest.err conftest.$ac_objext \
7269 conftest$ac_exeext conftest.$ac_ext
7270 CPPFLAGS="$am_save_CPPFLAGS"
7271 LIBS="$am_save_LIBS"
7272 if test "$am_cv_func_iconv" = "yes"; then
7273 break
7275 done
7278 if test "$am_cv_func_iconv" != yes; then
7279 am_save_CPPFLAGS="$CPPFLAGS"
7280 am_save_LIBS="$LIBS"
7281 CPPFLAGS="$CPPFLAGS $INCICONV"
7282 LIBS="$LIBS $LIBICONV"
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7285 #include <stdlib.h>
7286 #include <iconv.h>
7288 main ()
7290 iconv_t cd = iconv_open("","");
7291 iconv(cd,NULL,NULL,NULL,NULL);
7292 iconv_close(cd);
7294 return 0;
7296 _ACEOF
7297 if ac_fn_cxx_try_link "$LINENO"; then :
7298 am_cv_lib_iconv=yes
7299 am_cv_func_iconv=yes
7301 rm -f core conftest.err conftest.$ac_objext \
7302 conftest$ac_exeext conftest.$ac_ext
7303 CPPFLAGS="$am_save_CPPFLAGS"
7304 LIBS="$am_save_LIBS"
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7309 $as_echo "$am_cv_func_iconv" >&6; }
7310 if test "$am_cv_func_iconv" = yes; then
7312 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7315 if test "$am_cv_lib_iconv" = yes; then
7317 for element in $INCICONV; do
7318 haveit=
7319 for x in $CPPFLAGS; do
7321 acl_save_prefix="$prefix"
7322 prefix="$acl_final_prefix"
7323 acl_save_exec_prefix="$exec_prefix"
7324 exec_prefix="$acl_final_exec_prefix"
7325 eval x=\"$x\"
7326 exec_prefix="$acl_save_exec_prefix"
7327 prefix="$acl_save_prefix"
7329 if test "X$x" = "X$element"; then
7330 haveit=yes
7331 break
7333 done
7334 if test -z "$haveit"; then
7335 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7337 done
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7340 $as_echo_n "checking how to link with libiconv... " >&6; }
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7342 $as_echo "$LIBICONV" >&6; }
7343 else
7344 LIBICONV=
7345 LTLIBICONV=
7350 if test "$am_cv_func_iconv" = yes; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7352 $as_echo_n "checking for iconv declaration... " >&6; }
7353 if ${am_cv_proto_iconv+:} false; then :
7354 $as_echo_n "(cached) " >&6
7355 else
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7360 #include <stdlib.h>
7361 #include <iconv.h>
7362 extern
7363 #ifdef __cplusplus
7365 #endif
7366 #if defined(__STDC__) || defined(__cplusplus)
7367 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7368 #else
7369 size_t iconv();
7370 #endif
7373 main ()
7377 return 0;
7379 _ACEOF
7380 if ac_fn_cxx_try_compile "$LINENO"; then :
7381 am_cv_proto_iconv_arg1=""
7382 else
7383 am_cv_proto_iconv_arg1="const"
7385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7389 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7391 }$am_cv_proto_iconv" >&5
7392 $as_echo "${ac_t:-
7393 }$am_cv_proto_iconv" >&6; }
7395 cat >>confdefs.h <<_ACEOF
7396 #define ICONV_CONST $am_cv_proto_iconv_arg1
7397 _ACEOF
7401 ac_ext=c
7402 ac_cpp='$CPP $CPPFLAGS'
7403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7408 # More defines and substitutions.
7409 PACKAGE="$PACKAGE_TARNAME"
7411 cat >>confdefs.h <<_ACEOF
7412 #define PACKAGE "$PACKAGE"
7413 _ACEOF
7417 if test "x$enable_nls" != xno; then
7418 USED_CATALOGS='$(CATALOGS)'
7419 else
7420 USED_CATALOGS=
7424 # Check whether --enable-maintainer-mode was given.
7425 if test "${enable_maintainer_mode+set}" = set; then :
7426 enableval=$enable_maintainer_mode;
7427 else
7428 enable_maintainer_mode=no
7432 if test "x$enable_maintainer_mode" = xno; then
7433 MAINT='#'
7434 else
7435 MAINT=
7439 # Enable expensive internal checks
7440 is_release=
7441 if test -f $srcdir/../gcc/DEV-PHASE \
7442 && test x"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental; then
7443 is_release=yes
7446 # Check whether --enable-checking was given.
7447 if test "${enable_checking+set}" = set; then :
7448 enableval=$enable_checking; ac_checking_flags="${enableval}"
7449 else
7451 # Determine the default checks.
7452 if test x$is_release = x ; then
7453 ac_checking_flags=yes
7454 else
7455 ac_checking_flags=release
7459 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7460 for check in release $ac_checking_flags
7462 case $check in
7463 # these set all the flags to specific states
7464 yes|all) ac_checking=1 ; ac_assert_checking=1 ; ac_valgrind_checking= ;;
7465 no|none) ac_checking= ; ac_assert_checking= ; ac_valgrind_checking= ;;
7466 release) ac_checking= ; ac_assert_checking=1 ; ac_valgrind_checking= ;;
7467 # these enable particular checks
7468 assert) ac_assert_checking=1 ;;
7469 misc) ac_checking=1 ;;
7470 valgrind) ac_valgrind_checking=1 ;;
7471 # accept
7472 *) ;;
7473 esac
7474 done
7475 IFS="$ac_save_IFS"
7477 if test x$ac_checking != x ; then
7479 $as_echo "#define CHECKING_P 1" >>confdefs.h
7481 else
7482 $as_echo "#define CHECKING_P 0" >>confdefs.h
7486 if test x$ac_assert_checking != x ; then
7488 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7492 if test x$ac_valgrind_checking != x ; then
7494 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7498 # Check whether --enable-canonical-system-headers was given.
7499 if test "${enable_canonical_system_headers+set}" = set; then :
7500 enableval=$enable_canonical_system_headers;
7501 else
7502 enable_canonical_system_headers=yes
7505 if test $enable_canonical_system_headers != no; then
7507 $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
7511 case $target in
7512 i?86-* | x86_64-*)
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7517 main ()
7519 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
7521 return 0;
7523 _ACEOF
7524 if ac_fn_c_try_compile "$LINENO"; then :
7526 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 esac
7532 # Enable --enable-host-shared.
7533 # Check whether --enable-host-shared was given.
7534 if test "${enable_host_shared+set}" = set; then :
7535 enableval=$enable_host_shared; PICFLAG=-fPIC
7536 else
7537 PICFLAG=
7542 # Enable Intel CET on Intel CET enabled host if jit is enabled.
7543 # Check whether --enable-cet was given.
7544 if test "${enable_cet+set}" = set; then :
7545 enableval=$enable_cet;
7546 case "$enableval" in
7547 yes|no|auto) ;;
7548 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
7549 esac
7551 else
7552 enable_cet=auto
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
7557 $as_echo_n "checking for CET support... " >&6; }
7559 case "$host" in
7560 i[34567]86-*-linux* | x86_64-*-linux*)
7561 may_have_cet=yes
7562 cet_save_CFLAGS="$CFLAGS"
7563 CFLAGS="$CFLAGS -fcf-protection"
7564 case "$enable_cet" in
7565 auto)
7566 # Check if target supports multi-byte NOPs
7567 # and if compiler and assembler support CET.
7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569 /* end confdefs.h. */
7572 main ()
7575 #if !defined(__SSE2__)
7576 #error target does not support multi-byte NOPs
7577 #else
7578 asm ("setssbsy");
7579 #endif
7582 return 0;
7584 _ACEOF
7585 if ac_fn_c_try_compile "$LINENO"; then :
7586 enable_cet=yes
7587 else
7588 enable_cet=no
7590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7592 yes)
7593 # Check if compiler and assembler support CET.
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7598 main ()
7600 asm ("setssbsy");
7602 return 0;
7604 _ACEOF
7605 if ac_fn_c_try_compile "$LINENO"; then :
7606 support_cet=yes
7607 else
7608 support_cet=no
7610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7611 if test $support_cet = "no"; then
7612 if test x$enable_bootstrap != xno \
7613 && test -z "${with_build_subdir}" \
7614 && (test ! -f ../stage_current \
7615 || test `cat ../stage_current` != "stage1"); then
7616 # Require CET support only for the final GCC build.
7617 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
7618 else
7619 # Don't enable CET without CET support for non-bootstrap
7620 # build, in stage1 nor for build support.
7621 enable_cet=no
7625 esac
7626 CFLAGS="$cet_save_CFLAGS"
7629 may_have_cet=no
7630 enable_cet=no
7632 esac
7634 cet_save_CFLAGS="$CFLAGS"
7635 CFLAGS="$CFLAGS -fcf-protection=none"
7636 cet_save_LDFLAGS="$LDFLAGS"
7637 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
7638 if test x$may_have_cet = xyes; then
7639 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7644 main ()
7646 return 0;
7648 return 0;
7650 _ACEOF
7651 if ac_fn_c_try_link "$LINENO"; then :
7652 may_have_cet=yes
7653 else
7654 may_have_cet=no
7656 rm -f core conftest.err conftest.$ac_objext \
7657 conftest$ac_exeext conftest.$ac_ext
7660 if test x$may_have_cet = xyes; then
7661 if test x$cross_compiling = xno; then
7662 if test "$cross_compiling" = yes; then :
7663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7665 as_fn_error $? "cannot run test program while cross compiling
7666 See \`config.log' for more details" "$LINENO" 5; }
7667 else
7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7672 main ()
7674 asm ("endbr32");
7675 return 0;
7678 _ACEOF
7679 if ac_fn_c_try_run "$LINENO"; then :
7680 have_multi_byte_nop=yes
7681 else
7682 have_multi_byte_nop=no
7684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7685 conftest.$ac_objext conftest.beam conftest.$ac_ext
7688 have_cet=no
7689 if test x$have_multi_byte_nop = xyes; then
7690 if test "$cross_compiling" = yes; then :
7691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7693 as_fn_error $? "cannot run test program while cross compiling
7694 See \`config.log' for more details" "$LINENO" 5; }
7695 else
7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7699 static void
7700 foo (void)
7704 static void
7705 __attribute__ ((noinline, noclone))
7706 xxx (void (*f) (void))
7708 f ();
7711 static void
7712 __attribute__ ((noinline, noclone))
7713 bar (void)
7715 xxx (foo);
7719 main ()
7721 bar ();
7722 return 0;
7725 _ACEOF
7726 if ac_fn_c_try_run "$LINENO"; then :
7727 have_cet=no
7728 else
7729 have_cet=yes
7731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7732 conftest.$ac_objext conftest.beam conftest.$ac_ext
7736 if test x$enable_cet = xno -a x$have_cet = xyes; then
7737 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
7740 else
7741 # Enable CET in cross compiler if possible so that it will run on both
7742 # CET and non-CET hosts.
7743 have_cet=yes
7745 if test x$enable_cet = xyes; then
7746 CET_HOST_FLAGS="-fcf-protection"
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7748 $as_echo "yes" >&6; }
7749 else
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7753 CFLAGS="$cet_save_CFLAGS"
7754 LDFLAGS="$cet_save_LDFLAGS"
7756 case x$enable_languages in
7757 *jit*)
7760 CET_HOST_FLAGS=
7762 esac
7765 # Check whether --enable-valgrind-annotations was given.
7766 if test "${enable_valgrind_annotations+set}" = set; then :
7767 enableval=$enable_valgrind_annotations;
7768 else
7769 enable_valgrind_annotations=no
7772 if test x$enable_valgrind_annotations != xno \
7773 || test x$ac_valgrind_checking != x; then
7774 if (test $have_valgrind_h = no \
7775 && test $gcc_cv_header_memcheck_h = no \
7776 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7777 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7780 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7784 # Output.
7786 ac_config_headers="$ac_config_headers config.h:config.in"
7788 ac_config_files="$ac_config_files Makefile"
7790 cat >confcache <<\_ACEOF
7791 # This file is a shell script that caches the results of configure
7792 # tests run on this system so they can be shared between configure
7793 # scripts and configure runs, see configure's option --config-cache.
7794 # It is not useful on other systems. If it contains results you don't
7795 # want to keep, you may remove or edit it.
7797 # config.status only pays attention to the cache file if you give it
7798 # the --recheck option to rerun configure.
7800 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7801 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7802 # following values.
7804 _ACEOF
7806 # The following way of writing the cache mishandles newlines in values,
7807 # but we know of no workaround that is simple, portable, and efficient.
7808 # So, we kill variables containing newlines.
7809 # Ultrix sh set writes to stderr and can't be redirected directly,
7810 # and sets the high bit in the cache file unless we assign to the vars.
7812 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7813 eval ac_val=\$$ac_var
7814 case $ac_val in #(
7815 *${as_nl}*)
7816 case $ac_var in #(
7817 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7818 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7819 esac
7820 case $ac_var in #(
7821 _ | IFS | as_nl) ;; #(
7822 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7823 *) { eval $ac_var=; unset $ac_var;} ;;
7824 esac ;;
7825 esac
7826 done
7828 (set) 2>&1 |
7829 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7830 *${as_nl}ac_space=\ *)
7831 # `set' does not quote correctly, so add quotes: double-quote
7832 # substitution turns \\\\ into \\, and sed turns \\ into \.
7833 sed -n \
7834 "s/'/'\\\\''/g;
7835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7836 ;; #(
7838 # `set' quotes correctly as required by POSIX, so do not add quotes.
7839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7841 esac |
7842 sort
7844 sed '
7845 /^ac_cv_env_/b end
7846 t clear
7847 :clear
7848 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7849 t end
7850 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7851 :end' >>confcache
7852 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7853 if test -w "$cache_file"; then
7854 if test "x$cache_file" != "x/dev/null"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7856 $as_echo "$as_me: updating cache $cache_file" >&6;}
7857 if test ! -f "$cache_file" || test -h "$cache_file"; then
7858 cat confcache >"$cache_file"
7859 else
7860 case $cache_file in #(
7861 */* | ?:*)
7862 mv -f confcache "$cache_file"$$ &&
7863 mv -f "$cache_file"$$ "$cache_file" ;; #(
7865 mv -f confcache "$cache_file" ;;
7866 esac
7869 else
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7871 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7874 rm -f confcache
7876 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7877 # Let make expand exec_prefix.
7878 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7880 DEFS=-DHAVE_CONFIG_H
7882 ac_libobjs=
7883 ac_ltlibobjs=
7885 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7886 # 1. Remove the extension, and $U if already installed.
7887 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7888 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7889 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7890 # will be set to the directory where LIBOBJS objects are built.
7891 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7892 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7893 done
7894 LIBOBJS=$ac_libobjs
7896 LTLIBOBJS=$ac_ltlibobjs
7901 : "${CONFIG_STATUS=./config.status}"
7902 ac_write_fail=0
7903 ac_clean_files_save=$ac_clean_files
7904 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7906 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7907 as_write_fail=0
7908 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7909 #! $SHELL
7910 # Generated by $as_me.
7911 # Run this file to recreate the current configuration.
7912 # Compiler output produced by configure, useful for debugging
7913 # configure, is in config.log if it exists.
7915 debug=false
7916 ac_cs_recheck=false
7917 ac_cs_silent=false
7919 SHELL=\${CONFIG_SHELL-$SHELL}
7920 export SHELL
7921 _ASEOF
7922 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7923 ## -------------------- ##
7924 ## M4sh Initialization. ##
7925 ## -------------------- ##
7927 # Be more Bourne compatible
7928 DUALCASE=1; export DUALCASE # for MKS sh
7929 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7930 emulate sh
7931 NULLCMD=:
7932 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7933 # is contrary to our usage. Disable this feature.
7934 alias -g '${1+"$@"}'='"$@"'
7935 setopt NO_GLOB_SUBST
7936 else
7937 case `(set -o) 2>/dev/null` in #(
7938 *posix*) :
7939 set -o posix ;; #(
7940 *) :
7942 esac
7946 as_nl='
7948 export as_nl
7949 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7950 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7951 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7952 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7953 # Prefer a ksh shell builtin over an external printf program on Solaris,
7954 # but without wasting forks for bash or zsh.
7955 if test -z "$BASH_VERSION$ZSH_VERSION" \
7956 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7957 as_echo='print -r --'
7958 as_echo_n='print -rn --'
7959 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7960 as_echo='printf %s\n'
7961 as_echo_n='printf %s'
7962 else
7963 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7964 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7965 as_echo_n='/usr/ucb/echo -n'
7966 else
7967 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7968 as_echo_n_body='eval
7969 arg=$1;
7970 case $arg in #(
7971 *"$as_nl"*)
7972 expr "X$arg" : "X\\(.*\\)$as_nl";
7973 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7974 esac;
7975 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7977 export as_echo_n_body
7978 as_echo_n='sh -c $as_echo_n_body as_echo'
7980 export as_echo_body
7981 as_echo='sh -c $as_echo_body as_echo'
7984 # The user is always right.
7985 if test "${PATH_SEPARATOR+set}" != set; then
7986 PATH_SEPARATOR=:
7987 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7988 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7989 PATH_SEPARATOR=';'
7994 # IFS
7995 # We need space, tab and new line, in precisely that order. Quoting is
7996 # there to prevent editors from complaining about space-tab.
7997 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7998 # splitting by setting IFS to empty value.)
7999 IFS=" "" $as_nl"
8001 # Find who we are. Look in the path if we contain no directory separator.
8002 as_myself=
8003 case $0 in #((
8004 *[\\/]* ) as_myself=$0 ;;
8005 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
8010 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8011 done
8012 IFS=$as_save_IFS
8015 esac
8016 # We did not find ourselves, most probably we were run as `sh COMMAND'
8017 # in which case we are not to be found in the path.
8018 if test "x$as_myself" = x; then
8019 as_myself=$0
8021 if test ! -f "$as_myself"; then
8022 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8023 exit 1
8026 # Unset variables that we do not need and which cause bugs (e.g. in
8027 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8028 # suppresses any "Segmentation fault" message there. '((' could
8029 # trigger a bug in pdksh 5.2.14.
8030 for as_var in BASH_ENV ENV MAIL MAILPATH
8031 do eval test x\${$as_var+set} = xset \
8032 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8033 done
8034 PS1='$ '
8035 PS2='> '
8036 PS4='+ '
8038 # NLS nuisances.
8039 LC_ALL=C
8040 export LC_ALL
8041 LANGUAGE=C
8042 export LANGUAGE
8044 # CDPATH.
8045 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8048 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8049 # ----------------------------------------
8050 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8051 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8052 # script with STATUS, using 1 if that was 0.
8053 as_fn_error ()
8055 as_status=$1; test $as_status -eq 0 && as_status=1
8056 if test "$4"; then
8057 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8058 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8060 $as_echo "$as_me: error: $2" >&2
8061 as_fn_exit $as_status
8062 } # as_fn_error
8065 # as_fn_set_status STATUS
8066 # -----------------------
8067 # Set $? to STATUS, without forking.
8068 as_fn_set_status ()
8070 return $1
8071 } # as_fn_set_status
8073 # as_fn_exit STATUS
8074 # -----------------
8075 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8076 as_fn_exit ()
8078 set +e
8079 as_fn_set_status $1
8080 exit $1
8081 } # as_fn_exit
8083 # as_fn_unset VAR
8084 # ---------------
8085 # Portably unset VAR.
8086 as_fn_unset ()
8088 { eval $1=; unset $1;}
8090 as_unset=as_fn_unset
8091 # as_fn_append VAR VALUE
8092 # ----------------------
8093 # Append the text in VALUE to the end of the definition contained in VAR. Take
8094 # advantage of any shell optimizations that allow amortized linear growth over
8095 # repeated appends, instead of the typical quadratic growth present in naive
8096 # implementations.
8097 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8098 eval 'as_fn_append ()
8100 eval $1+=\$2
8102 else
8103 as_fn_append ()
8105 eval $1=\$$1\$2
8107 fi # as_fn_append
8109 # as_fn_arith ARG...
8110 # ------------------
8111 # Perform arithmetic evaluation on the ARGs, and store the result in the
8112 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8113 # must be portable across $(()) and expr.
8114 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8115 eval 'as_fn_arith ()
8117 as_val=$(( $* ))
8119 else
8120 as_fn_arith ()
8122 as_val=`expr "$@" || test $? -eq 1`
8124 fi # as_fn_arith
8127 if expr a : '\(a\)' >/dev/null 2>&1 &&
8128 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8129 as_expr=expr
8130 else
8131 as_expr=false
8134 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8135 as_basename=basename
8136 else
8137 as_basename=false
8140 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8141 as_dirname=dirname
8142 else
8143 as_dirname=false
8146 as_me=`$as_basename -- "$0" ||
8147 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8148 X"$0" : 'X\(//\)$' \| \
8149 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8150 $as_echo X/"$0" |
8151 sed '/^.*\/\([^/][^/]*\)\/*$/{
8152 s//\1/
8155 /^X\/\(\/\/\)$/{
8156 s//\1/
8159 /^X\/\(\/\).*/{
8160 s//\1/
8163 s/.*/./; q'`
8165 # Avoid depending upon Character Ranges.
8166 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8167 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8168 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8169 as_cr_digits='0123456789'
8170 as_cr_alnum=$as_cr_Letters$as_cr_digits
8172 ECHO_C= ECHO_N= ECHO_T=
8173 case `echo -n x` in #(((((
8174 -n*)
8175 case `echo 'xy\c'` in
8176 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8177 xy) ECHO_C='\c';;
8178 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8179 ECHO_T=' ';;
8180 esac;;
8182 ECHO_N='-n';;
8183 esac
8185 rm -f conf$$ conf$$.exe conf$$.file
8186 if test -d conf$$.dir; then
8187 rm -f conf$$.dir/conf$$.file
8188 else
8189 rm -f conf$$.dir
8190 mkdir conf$$.dir 2>/dev/null
8192 if (echo >conf$$.file) 2>/dev/null; then
8193 if ln -s conf$$.file conf$$ 2>/dev/null; then
8194 as_ln_s='ln -s'
8195 # ... but there are two gotchas:
8196 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8197 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8198 # In both cases, we have to default to `cp -pR'.
8199 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8200 as_ln_s='cp -pR'
8201 elif ln conf$$.file conf$$ 2>/dev/null; then
8202 as_ln_s=ln
8203 else
8204 as_ln_s='cp -pR'
8206 else
8207 as_ln_s='cp -pR'
8209 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8210 rmdir conf$$.dir 2>/dev/null
8213 # as_fn_mkdir_p
8214 # -------------
8215 # Create "$as_dir" as a directory, including parents if necessary.
8216 as_fn_mkdir_p ()
8219 case $as_dir in #(
8220 -*) as_dir=./$as_dir;;
8221 esac
8222 test -d "$as_dir" || eval $as_mkdir_p || {
8223 as_dirs=
8224 while :; do
8225 case $as_dir in #(
8226 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8227 *) as_qdir=$as_dir;;
8228 esac
8229 as_dirs="'$as_qdir' $as_dirs"
8230 as_dir=`$as_dirname -- "$as_dir" ||
8231 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8232 X"$as_dir" : 'X\(//\)[^/]' \| \
8233 X"$as_dir" : 'X\(//\)$' \| \
8234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8235 $as_echo X"$as_dir" |
8236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8237 s//\1/
8240 /^X\(\/\/\)[^/].*/{
8241 s//\1/
8244 /^X\(\/\/\)$/{
8245 s//\1/
8248 /^X\(\/\).*/{
8249 s//\1/
8252 s/.*/./; q'`
8253 test -d "$as_dir" && break
8254 done
8255 test -z "$as_dirs" || eval "mkdir $as_dirs"
8256 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8259 } # as_fn_mkdir_p
8260 if mkdir -p . 2>/dev/null; then
8261 as_mkdir_p='mkdir -p "$as_dir"'
8262 else
8263 test -d ./-p && rmdir ./-p
8264 as_mkdir_p=false
8268 # as_fn_executable_p FILE
8269 # -----------------------
8270 # Test if FILE is an executable regular file.
8271 as_fn_executable_p ()
8273 test -f "$1" && test -x "$1"
8274 } # as_fn_executable_p
8275 as_test_x='test -x'
8276 as_executable_p=as_fn_executable_p
8278 # Sed expression to map a string onto a valid CPP name.
8279 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8281 # Sed expression to map a string onto a valid variable name.
8282 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8285 exec 6>&1
8286 ## ----------------------------------- ##
8287 ## Main body of $CONFIG_STATUS script. ##
8288 ## ----------------------------------- ##
8289 _ASEOF
8290 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8293 # Save the log message, to keep $0 and so on meaningful, and to
8294 # report actual input values of CONFIG_FILES etc. instead of their
8295 # values after options handling.
8296 ac_log="
8297 This file was extended by cpplib $as_me , which was
8298 generated by GNU Autoconf 2.69. Invocation command line was
8300 CONFIG_FILES = $CONFIG_FILES
8301 CONFIG_HEADERS = $CONFIG_HEADERS
8302 CONFIG_LINKS = $CONFIG_LINKS
8303 CONFIG_COMMANDS = $CONFIG_COMMANDS
8304 $ $0 $@
8306 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8309 _ACEOF
8311 case $ac_config_files in *"
8312 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8313 esac
8315 case $ac_config_headers in *"
8316 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8317 esac
8320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8321 # Files that config.status was made for.
8322 config_files="$ac_config_files"
8323 config_headers="$ac_config_headers"
8324 config_commands="$ac_config_commands"
8326 _ACEOF
8328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8329 ac_cs_usage="\
8330 \`$as_me' instantiates files and other configuration actions
8331 from templates according to the current configuration. Unless the files
8332 and actions are specified as TAGs, all are instantiated by default.
8334 Usage: $0 [OPTION]... [TAG]...
8336 -h, --help print this help, then exit
8337 -V, --version print version number and configuration settings, then exit
8338 --config print configuration, then exit
8339 -q, --quiet, --silent
8340 do not print progress messages
8341 -d, --debug don't remove temporary files
8342 --recheck update $as_me by reconfiguring in the same conditions
8343 --file=FILE[:TEMPLATE]
8344 instantiate the configuration file FILE
8345 --header=FILE[:TEMPLATE]
8346 instantiate the configuration header FILE
8348 Configuration files:
8349 $config_files
8351 Configuration headers:
8352 $config_headers
8354 Configuration commands:
8355 $config_commands
8357 Report bugs to <gcc-bugs@gcc.gnu.org>."
8359 _ACEOF
8360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8361 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8362 ac_cs_version="\\
8363 cpplib config.status
8364 configured by $0, generated by GNU Autoconf 2.69,
8365 with options \\"\$ac_cs_config\\"
8367 Copyright (C) 2012 Free Software Foundation, Inc.
8368 This config.status script is free software; the Free Software Foundation
8369 gives unlimited permission to copy, distribute and modify it."
8371 ac_pwd='$ac_pwd'
8372 srcdir='$srcdir'
8373 INSTALL='$INSTALL'
8374 test -n "\$AWK" || AWK=awk
8375 _ACEOF
8377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8378 # The default lists apply if the user does not specify any file.
8379 ac_need_defaults=:
8380 while test $# != 0
8382 case $1 in
8383 --*=?*)
8384 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8385 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8386 ac_shift=:
8388 --*=)
8389 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8390 ac_optarg=
8391 ac_shift=:
8394 ac_option=$1
8395 ac_optarg=$2
8396 ac_shift=shift
8398 esac
8400 case $ac_option in
8401 # Handling of the options.
8402 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8403 ac_cs_recheck=: ;;
8404 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8405 $as_echo "$ac_cs_version"; exit ;;
8406 --config | --confi | --conf | --con | --co | --c )
8407 $as_echo "$ac_cs_config"; exit ;;
8408 --debug | --debu | --deb | --de | --d | -d )
8409 debug=: ;;
8410 --file | --fil | --fi | --f )
8411 $ac_shift
8412 case $ac_optarg in
8413 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8414 '') as_fn_error $? "missing file argument" ;;
8415 esac
8416 as_fn_append CONFIG_FILES " '$ac_optarg'"
8417 ac_need_defaults=false;;
8418 --header | --heade | --head | --hea )
8419 $ac_shift
8420 case $ac_optarg in
8421 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8422 esac
8423 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8424 ac_need_defaults=false;;
8425 --he | --h)
8426 # Conflict between --help and --header
8427 as_fn_error $? "ambiguous option: \`$1'
8428 Try \`$0 --help' for more information.";;
8429 --help | --hel | -h )
8430 $as_echo "$ac_cs_usage"; exit ;;
8431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8432 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8433 ac_cs_silent=: ;;
8435 # This is an error.
8436 -*) as_fn_error $? "unrecognized option: \`$1'
8437 Try \`$0 --help' for more information." ;;
8439 *) as_fn_append ac_config_targets " $1"
8440 ac_need_defaults=false ;;
8442 esac
8443 shift
8444 done
8446 ac_configure_extra_args=
8448 if $ac_cs_silent; then
8449 exec 6>/dev/null
8450 ac_configure_extra_args="$ac_configure_extra_args --silent"
8453 _ACEOF
8454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8455 if \$ac_cs_recheck; then
8456 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8457 shift
8458 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8459 CONFIG_SHELL='$SHELL'
8460 export CONFIG_SHELL
8461 exec "\$@"
8464 _ACEOF
8465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8466 exec 5>>config.log
8468 echo
8469 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8470 ## Running $as_me. ##
8471 _ASBOX
8472 $as_echo "$ac_log"
8473 } >&5
8475 _ACEOF
8476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8478 # INIT-COMMANDS
8480 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8482 _ACEOF
8484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8486 # Handling of arguments.
8487 for ac_config_target in $ac_config_targets
8489 case $ac_config_target in
8490 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
8491 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8492 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8494 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8495 esac
8496 done
8499 # If the user did not use the arguments to specify the items to instantiate,
8500 # then the envvar interface is used. Set only those that are not.
8501 # We use the long form for the default assignment because of an extremely
8502 # bizarre bug on SunOS 4.1.3.
8503 if $ac_need_defaults; then
8504 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8505 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8506 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8509 # Have a temporary directory for convenience. Make it in the build tree
8510 # simply because there is no reason against having it here, and in addition,
8511 # creating and moving files from /tmp can sometimes cause problems.
8512 # Hook for its removal unless debugging.
8513 # Note that there is a small window in which the directory will not be cleaned:
8514 # after its creation but before its name has been assigned to `$tmp'.
8515 $debug ||
8517 tmp= ac_tmp=
8518 trap 'exit_status=$?
8519 : "${ac_tmp:=$tmp}"
8520 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8522 trap 'as_fn_exit 1' 1 2 13 15
8524 # Create a (secure) tmp directory for tmp files.
8527 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8528 test -d "$tmp"
8529 } ||
8531 tmp=./conf$$-$RANDOM
8532 (umask 077 && mkdir "$tmp")
8533 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8534 ac_tmp=$tmp
8536 # Set up the scripts for CONFIG_FILES section.
8537 # No need to generate them if there are no CONFIG_FILES.
8538 # This happens for instance with `./config.status config.h'.
8539 if test -n "$CONFIG_FILES"; then
8542 ac_cr=`echo X | tr X '\015'`
8543 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8544 # But we know of no other shell where ac_cr would be empty at this
8545 # point, so we can use a bashism as a fallback.
8546 if test "x$ac_cr" = x; then
8547 eval ac_cr=\$\'\\r\'
8549 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8550 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8551 ac_cs_awk_cr='\\r'
8552 else
8553 ac_cs_awk_cr=$ac_cr
8556 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8557 _ACEOF
8561 echo "cat >conf$$subs.awk <<_ACEOF" &&
8562 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8563 echo "_ACEOF"
8564 } >conf$$subs.sh ||
8565 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8566 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8567 ac_delim='%!_!# '
8568 for ac_last_try in false false false false false :; do
8569 . ./conf$$subs.sh ||
8570 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8572 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8573 if test $ac_delim_n = $ac_delim_num; then
8574 break
8575 elif $ac_last_try; then
8576 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8577 else
8578 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8580 done
8581 rm -f conf$$subs.sh
8583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8584 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8585 _ACEOF
8586 sed -n '
8588 s/^/S["/; s/!.*/"]=/
8591 s/^[^!]*!//
8592 :repl
8593 t repl
8594 s/'"$ac_delim"'$//
8595 t delim
8598 s/\(.\{148\}\)..*/\1/
8599 t more1
8600 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8603 b repl
8604 :more1
8605 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8608 s/.\{148\}//
8609 t nl
8610 :delim
8612 s/\(.\{148\}\)..*/\1/
8613 t more2
8614 s/["\\]/\\&/g; s/^/"/; s/$/"/
8617 :more2
8618 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8621 s/.\{148\}//
8622 t delim
8623 ' <conf$$subs.awk | sed '
8624 /^[^""]/{
8626 s/\n//
8628 ' >>$CONFIG_STATUS || ac_write_fail=1
8629 rm -f conf$$subs.awk
8630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8631 _ACAWK
8632 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8633 for (key in S) S_is_set[key] = 1
8634 FS = "\a"
8638 line = $ 0
8639 nfields = split(line, field, "@")
8640 substed = 0
8641 len = length(field[1])
8642 for (i = 2; i < nfields; i++) {
8643 key = field[i]
8644 keylen = length(key)
8645 if (S_is_set[key]) {
8646 value = S[key]
8647 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8648 len += length(value) + length(field[++i])
8649 substed = 1
8650 } else
8651 len += 1 + keylen
8654 print line
8657 _ACAWK
8658 _ACEOF
8659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8660 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8661 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8662 else
8664 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8665 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8666 _ACEOF
8668 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8669 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8670 # trailing colons and then remove the whole line if VPATH becomes empty
8671 # (actually we leave an empty line to preserve line numbers).
8672 if test "x$srcdir" = x.; then
8673 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8675 s///
8676 s/^/:/
8677 s/[ ]*$/:/
8678 s/:\$(srcdir):/:/g
8679 s/:\${srcdir}:/:/g
8680 s/:@srcdir@:/:/g
8681 s/^:*//
8682 s/:*$//
8684 s/\(=[ ]*\).*/\1/
8686 s/\n//
8687 s/^[^=]*=[ ]*$//
8691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8692 fi # test -n "$CONFIG_FILES"
8694 # Set up the scripts for CONFIG_HEADERS section.
8695 # No need to generate them if there are no CONFIG_HEADERS.
8696 # This happens for instance with `./config.status Makefile'.
8697 if test -n "$CONFIG_HEADERS"; then
8698 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8699 BEGIN {
8700 _ACEOF
8702 # Transform confdefs.h into an awk script `defines.awk', embedded as
8703 # here-document in config.status, that substitutes the proper values into
8704 # config.h.in to produce config.h.
8706 # Create a delimiter string that does not exist in confdefs.h, to ease
8707 # handling of long lines.
8708 ac_delim='%!_!# '
8709 for ac_last_try in false false :; do
8710 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8711 if test -z "$ac_tt"; then
8712 break
8713 elif $ac_last_try; then
8714 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8715 else
8716 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8718 done
8720 # For the awk script, D is an array of macro values keyed by name,
8721 # likewise P contains macro parameters if any. Preserve backslash
8722 # newline sequences.
8724 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8725 sed -n '
8726 s/.\{148\}/&'"$ac_delim"'/g
8727 t rset
8728 :rset
8729 s/^[ ]*#[ ]*define[ ][ ]*/ /
8730 t def
8732 :def
8733 s/\\$//
8734 t bsnl
8735 s/["\\]/\\&/g
8736 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8737 D["\1"]=" \3"/p
8738 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8740 :bsnl
8741 s/["\\]/\\&/g
8742 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8743 D["\1"]=" \3\\\\\\n"\\/p
8744 t cont
8745 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8746 t cont
8748 :cont
8750 s/.\{148\}/&'"$ac_delim"'/g
8751 t clear
8752 :clear
8753 s/\\$//
8754 t bsnlc
8755 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8757 :bsnlc
8758 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8759 b cont
8760 ' <confdefs.h | sed '
8761 s/'"$ac_delim"'/"\\\
8762 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8765 for (key in D) D_is_set[key] = 1
8766 FS = "\a"
8768 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8769 line = \$ 0
8770 split(line, arg, " ")
8771 if (arg[1] == "#") {
8772 defundef = arg[2]
8773 mac1 = arg[3]
8774 } else {
8775 defundef = substr(arg[1], 2)
8776 mac1 = arg[2]
8778 split(mac1, mac2, "(") #)
8779 macro = mac2[1]
8780 prefix = substr(line, 1, index(line, defundef) - 1)
8781 if (D_is_set[macro]) {
8782 # Preserve the white space surrounding the "#".
8783 print prefix "define", macro P[macro] D[macro]
8784 next
8785 } else {
8786 # Replace #undef with comments. This is necessary, for example,
8787 # in the case of _POSIX_SOURCE, which is predefined and required
8788 # on some systems where configure will not decide to define it.
8789 if (defundef == "undef") {
8790 print "/*", prefix defundef, macro, "*/"
8791 next
8795 { print }
8796 _ACAWK
8797 _ACEOF
8798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8799 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8800 fi # test -n "$CONFIG_HEADERS"
8803 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8804 shift
8805 for ac_tag
8807 case $ac_tag in
8808 :[FHLC]) ac_mode=$ac_tag; continue;;
8809 esac
8810 case $ac_mode$ac_tag in
8811 :[FHL]*:*);;
8812 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8813 :[FH]-) ac_tag=-:-;;
8814 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8815 esac
8816 ac_save_IFS=$IFS
8817 IFS=:
8818 set x $ac_tag
8819 IFS=$ac_save_IFS
8820 shift
8821 ac_file=$1
8822 shift
8824 case $ac_mode in
8825 :L) ac_source=$1;;
8826 :[FH])
8827 ac_file_inputs=
8828 for ac_f
8830 case $ac_f in
8831 -) ac_f="$ac_tmp/stdin";;
8832 *) # Look for the file first in the build tree, then in the source tree
8833 # (if the path is not absolute). The absolute path cannot be DOS-style,
8834 # because $ac_f cannot contain `:'.
8835 test -f "$ac_f" ||
8836 case $ac_f in
8837 [\\/$]*) false;;
8838 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8839 esac ||
8840 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8841 esac
8842 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8843 as_fn_append ac_file_inputs " '$ac_f'"
8844 done
8846 # Let's still pretend it is `configure' which instantiates (i.e., don't
8847 # use $as_me), people would be surprised to read:
8848 # /* config.h. Generated by config.status. */
8849 configure_input='Generated from '`
8850 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8851 `' by configure.'
8852 if test x"$ac_file" != x-; then
8853 configure_input="$ac_file. $configure_input"
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8855 $as_echo "$as_me: creating $ac_file" >&6;}
8857 # Neutralize special characters interpreted by sed in replacement strings.
8858 case $configure_input in #(
8859 *\&* | *\|* | *\\* )
8860 ac_sed_conf_input=`$as_echo "$configure_input" |
8861 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8862 *) ac_sed_conf_input=$configure_input;;
8863 esac
8865 case $ac_tag in
8866 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8867 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8868 esac
8870 esac
8872 ac_dir=`$as_dirname -- "$ac_file" ||
8873 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8874 X"$ac_file" : 'X\(//\)[^/]' \| \
8875 X"$ac_file" : 'X\(//\)$' \| \
8876 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8877 $as_echo X"$ac_file" |
8878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8879 s//\1/
8882 /^X\(\/\/\)[^/].*/{
8883 s//\1/
8886 /^X\(\/\/\)$/{
8887 s//\1/
8890 /^X\(\/\).*/{
8891 s//\1/
8894 s/.*/./; q'`
8895 as_dir="$ac_dir"; as_fn_mkdir_p
8896 ac_builddir=.
8898 case "$ac_dir" in
8899 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8901 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8902 # A ".." for each directory in $ac_dir_suffix.
8903 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8904 case $ac_top_builddir_sub in
8905 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8906 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8907 esac ;;
8908 esac
8909 ac_abs_top_builddir=$ac_pwd
8910 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8911 # for backward compatibility:
8912 ac_top_builddir=$ac_top_build_prefix
8914 case $srcdir in
8915 .) # We are building in place.
8916 ac_srcdir=.
8917 ac_top_srcdir=$ac_top_builddir_sub
8918 ac_abs_top_srcdir=$ac_pwd ;;
8919 [\\/]* | ?:[\\/]* ) # Absolute name.
8920 ac_srcdir=$srcdir$ac_dir_suffix;
8921 ac_top_srcdir=$srcdir
8922 ac_abs_top_srcdir=$srcdir ;;
8923 *) # Relative name.
8924 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8925 ac_top_srcdir=$ac_top_build_prefix$srcdir
8926 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8927 esac
8928 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8931 case $ac_mode in
8934 # CONFIG_FILE
8937 case $INSTALL in
8938 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8939 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8940 esac
8941 _ACEOF
8943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8944 # If the template does not know about datarootdir, expand it.
8945 # FIXME: This hack should be removed a few years after 2.60.
8946 ac_datarootdir_hack=; ac_datarootdir_seen=
8947 ac_sed_dataroot='
8948 /datarootdir/ {
8952 /@datadir@/p
8953 /@docdir@/p
8954 /@infodir@/p
8955 /@localedir@/p
8956 /@mandir@/p'
8957 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8958 *datarootdir*) ac_datarootdir_seen=yes;;
8959 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8961 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8962 _ACEOF
8963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8964 ac_datarootdir_hack='
8965 s&@datadir@&$datadir&g
8966 s&@docdir@&$docdir&g
8967 s&@infodir@&$infodir&g
8968 s&@localedir@&$localedir&g
8969 s&@mandir@&$mandir&g
8970 s&\\\${datarootdir}&$datarootdir&g' ;;
8971 esac
8972 _ACEOF
8974 # Neutralize VPATH when `$srcdir' = `.'.
8975 # Shell code in configure.ac might set extrasub.
8976 # FIXME: do we really want to maintain this feature?
8977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8978 ac_sed_extra="$ac_vpsub
8979 $extrasub
8980 _ACEOF
8981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8984 s|@configure_input@|$ac_sed_conf_input|;t t
8985 s&@top_builddir@&$ac_top_builddir_sub&;t t
8986 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8987 s&@srcdir@&$ac_srcdir&;t t
8988 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8989 s&@top_srcdir@&$ac_top_srcdir&;t t
8990 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8991 s&@builddir@&$ac_builddir&;t t
8992 s&@abs_builddir@&$ac_abs_builddir&;t t
8993 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8994 s&@INSTALL@&$ac_INSTALL&;t t
8995 $ac_datarootdir_hack
8997 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8998 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9000 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9001 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9002 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9003 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9005 which seems to be undefined. Please make sure it is defined" >&5
9006 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9007 which seems to be undefined. Please make sure it is defined" >&2;}
9009 rm -f "$ac_tmp/stdin"
9010 case $ac_file in
9011 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9012 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9013 esac \
9014 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9018 # CONFIG_HEADER
9020 if test x"$ac_file" != x-; then
9022 $as_echo "/* $configure_input */" \
9023 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9024 } >"$ac_tmp/config.h" \
9025 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9026 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9028 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9029 else
9030 rm -f "$ac_file"
9031 mv "$ac_tmp/config.h" "$ac_file" \
9032 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9034 else
9035 $as_echo "/* $configure_input */" \
9036 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9037 || as_fn_error $? "could not create -" "$LINENO" 5
9041 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9042 $as_echo "$as_me: executing $ac_file commands" >&6;}
9044 esac
9047 case $ac_file$ac_mode in
9048 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
9049 "config.h":H) echo timestamp > stamp-h1 ;;
9051 esac
9052 done # for ac_tag
9055 as_fn_exit 0
9056 _ACEOF
9057 ac_clean_files=$ac_clean_files_save
9059 test $ac_write_fail = 0 ||
9060 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9063 # configure is writing to config.log, and then calls config.status.
9064 # config.status does its own redirection, appending to config.log.
9065 # Unfortunately, on DOS this fails, as config.log is still kept open
9066 # by configure, so config.status won't be able to write to it; its
9067 # output is simply discarded. So we exec the FD to /dev/null,
9068 # effectively closing config.log, so it can be properly (re)opened and
9069 # appended to by config.status. When coming back to configure, we
9070 # need to make the FD available again.
9071 if test "$no_create" != yes; then
9072 ac_cs_success=:
9073 ac_config_status_args=
9074 test "$silent" = yes &&
9075 ac_config_status_args="$ac_config_status_args --quiet"
9076 exec 5>/dev/null
9077 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9078 exec 5>>config.log
9079 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9080 # would make configure fail if this is the last instruction.
9081 $ac_cs_success || as_fn_exit 1
9083 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9085 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}