gcc/testsuite/
[official-gcc.git] / libcpp / configure
blob6b0f6dc4a7279ab137e87cef7cb4dd758170ffe7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for cpplib .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # 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 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: gcc-bugs@gcc.gnu.org about your system, including any
233 $0: error possibly output before this message. Then install
234 $0: a modern shell, or manually run the script under such a
235 $0: shell if you do have one."
237 exit 1
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
255 { eval $1=; unset $1;}
257 as_unset=as_fn_unset
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
264 return $1
265 } # as_fn_set_status
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
308 /^X\(\/\/\)$/{
309 s//\1/
312 /^X\(\/\).*/{
313 s//\1/
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
333 eval $1+=\$2
335 else
336 as_fn_append ()
338 eval $1=\$$1\$2
340 fi # as_fn_append
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
350 as_val=$(( $* ))
352 else
353 as_fn_arith ()
355 as_val=`expr "$@" || test $? -eq 1`
357 fi # as_fn_arith
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
404 /^X\/\(\/\/\)$/{
405 s//\1/
408 /^X\/\(\/\).*/{
409 s//\1/
412 s/.*/./; q'`
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
435 :lineno
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
463 ECHO_N='-n';;
464 esac
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
487 else
488 as_ln_s='cp -p'
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 exec 7<&0 </dev/null 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='cpplib'
551 PACKAGE_TARNAME='cpplib'
552 PACKAGE_VERSION=' '
553 PACKAGE_STRING='cpplib '
554 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
555 PACKAGE_URL=''
557 ac_unique_file="ucnid.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_subst_vars='LTLIBOBJS
595 PICFLAG
596 MAINT
597 USED_CATALOGS
598 PACKAGE
599 LTLIBICONV
600 LIBICONV
601 CATOBJEXT
602 GENCAT
603 INSTOBJEXT
604 DATADIRNAME
605 CATALOGS
606 POSUB
607 GMSGFMT
608 XGETTEXT
609 INCINTL
610 LIBINTL_DEP
611 LIBINTL
612 USE_NLS
613 ALLOCA
614 LIBOBJS
615 CXXDEPMODE
616 DEPDIR
617 am__leading_dot
618 WERROR
619 noexception_flags
620 WARN_PEDANTIC
621 c_warn
622 warn
623 AUTOHEADER
624 AUTOCONF
625 ACLOCAL
626 EGREP
627 GREP
629 RANLIB
630 ac_ct_CXX
631 CXXFLAGS
633 OBJEXT
634 EXEEXT
635 ac_ct_CC
636 CPPFLAGS
637 LDFLAGS
638 CFLAGS
640 INSTALL_DATA
641 INSTALL_SCRIPT
642 INSTALL_PROGRAM
643 SET_MAKE
644 target_os
645 target_vendor
646 target_cpu
647 target
648 host_os
649 host_vendor
650 host_cpu
651 host
652 build_os
653 build_vendor
654 build_cpu
655 build
656 target_alias
657 host_alias
658 build_alias
659 LIBS
660 ECHO_T
661 ECHO_N
662 ECHO_C
663 DEFS
664 mandir
665 localedir
666 libdir
667 psdir
668 pdfdir
669 dvidir
670 htmldir
671 infodir
672 docdir
673 oldincludedir
674 includedir
675 localstatedir
676 sharedstatedir
677 sysconfdir
678 datadir
679 datarootdir
680 libexecdir
681 sbindir
682 bindir
683 program_transform_name
684 prefix
685 exec_prefix
686 PACKAGE_URL
687 PACKAGE_BUGREPORT
688 PACKAGE_STRING
689 PACKAGE_VERSION
690 PACKAGE_TARNAME
691 PACKAGE_NAME
692 PATH_SEPARATOR
693 SHELL'
694 ac_subst_files=''
695 ac_user_opts='
696 enable_option_checking
697 enable_largefile
698 enable_werror_always
699 with_gnu_ld
700 enable_rpath
701 with_libiconv_prefix
702 enable_maintainer_mode
703 enable_checking
704 enable_canonical_system_headers
705 enable_host_shared
707 ac_precious_vars='build_alias
708 host_alias
709 target_alias
711 CFLAGS
712 LDFLAGS
713 LIBS
714 CPPFLAGS
716 CXXFLAGS
718 CPP'
721 # Initialize some variables set by options.
722 ac_init_help=
723 ac_init_version=false
724 ac_unrecognized_opts=
725 ac_unrecognized_sep=
726 # The variables have the same names as the options, with
727 # dashes changed to underlines.
728 cache_file=/dev/null
729 exec_prefix=NONE
730 no_create=
731 no_recursion=
732 prefix=NONE
733 program_prefix=NONE
734 program_suffix=NONE
735 program_transform_name=s,x,x,
736 silent=
737 site=
738 srcdir=
739 verbose=
740 x_includes=NONE
741 x_libraries=NONE
743 # Installation directory options.
744 # These are left unexpanded so users can "make install exec_prefix=/foo"
745 # and all the variables that are supposed to be based on exec_prefix
746 # by default will actually change.
747 # Use braces instead of parens because sh, perl, etc. also accept them.
748 # (The list follows the same order as the GNU Coding Standards.)
749 bindir='${exec_prefix}/bin'
750 sbindir='${exec_prefix}/sbin'
751 libexecdir='${exec_prefix}/libexec'
752 datarootdir='${prefix}/share'
753 datadir='${datarootdir}'
754 sysconfdir='${prefix}/etc'
755 sharedstatedir='${prefix}/com'
756 localstatedir='${prefix}/var'
757 includedir='${prefix}/include'
758 oldincludedir='/usr/include'
759 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
760 infodir='${datarootdir}/info'
761 htmldir='${docdir}'
762 dvidir='${docdir}'
763 pdfdir='${docdir}'
764 psdir='${docdir}'
765 libdir='${exec_prefix}/lib'
766 localedir='${datarootdir}/locale'
767 mandir='${datarootdir}/man'
769 ac_prev=
770 ac_dashdash=
771 for ac_option
773 # If the previous option needs an argument, assign it.
774 if test -n "$ac_prev"; then
775 eval $ac_prev=\$ac_option
776 ac_prev=
777 continue
780 case $ac_option in
781 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
782 *) ac_optarg=yes ;;
783 esac
785 # Accept the important Cygnus configure options, so we can diagnose typos.
787 case $ac_dashdash$ac_option in
789 ac_dashdash=yes ;;
791 -bindir | --bindir | --bindi | --bind | --bin | --bi)
792 ac_prev=bindir ;;
793 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
794 bindir=$ac_optarg ;;
796 -build | --build | --buil | --bui | --bu)
797 ac_prev=build_alias ;;
798 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
799 build_alias=$ac_optarg ;;
801 -cache-file | --cache-file | --cache-fil | --cache-fi \
802 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
803 ac_prev=cache_file ;;
804 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
805 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
806 cache_file=$ac_optarg ;;
808 --config-cache | -C)
809 cache_file=config.cache ;;
811 -datadir | --datadir | --datadi | --datad)
812 ac_prev=datadir ;;
813 -datadir=* | --datadir=* | --datadi=* | --datad=*)
814 datadir=$ac_optarg ;;
816 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
817 | --dataroo | --dataro | --datar)
818 ac_prev=datarootdir ;;
819 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
820 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
821 datarootdir=$ac_optarg ;;
823 -disable-* | --disable-*)
824 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
825 # Reject names that are not valid shell variable names.
826 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
827 as_fn_error "invalid feature name: $ac_useropt"
828 ac_useropt_orig=$ac_useropt
829 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
830 case $ac_user_opts in
832 "enable_$ac_useropt"
833 "*) ;;
834 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
835 ac_unrecognized_sep=', ';;
836 esac
837 eval enable_$ac_useropt=no ;;
839 -docdir | --docdir | --docdi | --doc | --do)
840 ac_prev=docdir ;;
841 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
842 docdir=$ac_optarg ;;
844 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
845 ac_prev=dvidir ;;
846 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
847 dvidir=$ac_optarg ;;
849 -enable-* | --enable-*)
850 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 as_fn_error "invalid feature name: $ac_useropt"
854 ac_useropt_orig=$ac_useropt
855 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856 case $ac_user_opts in
858 "enable_$ac_useropt"
859 "*) ;;
860 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
861 ac_unrecognized_sep=', ';;
862 esac
863 eval enable_$ac_useropt=\$ac_optarg ;;
865 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
866 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
867 | --exec | --exe | --ex)
868 ac_prev=exec_prefix ;;
869 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
870 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
871 | --exec=* | --exe=* | --ex=*)
872 exec_prefix=$ac_optarg ;;
874 -gas | --gas | --ga | --g)
875 # Obsolete; use --with-gas.
876 with_gas=yes ;;
878 -help | --help | --hel | --he | -h)
879 ac_init_help=long ;;
880 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
881 ac_init_help=recursive ;;
882 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
883 ac_init_help=short ;;
885 -host | --host | --hos | --ho)
886 ac_prev=host_alias ;;
887 -host=* | --host=* | --hos=* | --ho=*)
888 host_alias=$ac_optarg ;;
890 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
891 ac_prev=htmldir ;;
892 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
893 | --ht=*)
894 htmldir=$ac_optarg ;;
896 -includedir | --includedir | --includedi | --included | --include \
897 | --includ | --inclu | --incl | --inc)
898 ac_prev=includedir ;;
899 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
900 | --includ=* | --inclu=* | --incl=* | --inc=*)
901 includedir=$ac_optarg ;;
903 -infodir | --infodir | --infodi | --infod | --info | --inf)
904 ac_prev=infodir ;;
905 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
906 infodir=$ac_optarg ;;
908 -libdir | --libdir | --libdi | --libd)
909 ac_prev=libdir ;;
910 -libdir=* | --libdir=* | --libdi=* | --libd=*)
911 libdir=$ac_optarg ;;
913 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
914 | --libexe | --libex | --libe)
915 ac_prev=libexecdir ;;
916 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
917 | --libexe=* | --libex=* | --libe=*)
918 libexecdir=$ac_optarg ;;
920 -localedir | --localedir | --localedi | --localed | --locale)
921 ac_prev=localedir ;;
922 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
923 localedir=$ac_optarg ;;
925 -localstatedir | --localstatedir | --localstatedi | --localstated \
926 | --localstate | --localstat | --localsta | --localst | --locals)
927 ac_prev=localstatedir ;;
928 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
929 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
930 localstatedir=$ac_optarg ;;
932 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
933 ac_prev=mandir ;;
934 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
935 mandir=$ac_optarg ;;
937 -nfp | --nfp | --nf)
938 # Obsolete; use --without-fp.
939 with_fp=no ;;
941 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
942 | --no-cr | --no-c | -n)
943 no_create=yes ;;
945 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
946 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
947 no_recursion=yes ;;
949 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
950 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
951 | --oldin | --oldi | --old | --ol | --o)
952 ac_prev=oldincludedir ;;
953 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
954 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
955 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
956 oldincludedir=$ac_optarg ;;
958 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
959 ac_prev=prefix ;;
960 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
961 prefix=$ac_optarg ;;
963 -program-prefix | --program-prefix | --program-prefi | --program-pref \
964 | --program-pre | --program-pr | --program-p)
965 ac_prev=program_prefix ;;
966 -program-prefix=* | --program-prefix=* | --program-prefi=* \
967 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
968 program_prefix=$ac_optarg ;;
970 -program-suffix | --program-suffix | --program-suffi | --program-suff \
971 | --program-suf | --program-su | --program-s)
972 ac_prev=program_suffix ;;
973 -program-suffix=* | --program-suffix=* | --program-suffi=* \
974 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
975 program_suffix=$ac_optarg ;;
977 -program-transform-name | --program-transform-name \
978 | --program-transform-nam | --program-transform-na \
979 | --program-transform-n | --program-transform- \
980 | --program-transform | --program-transfor \
981 | --program-transfo | --program-transf \
982 | --program-trans | --program-tran \
983 | --progr-tra | --program-tr | --program-t)
984 ac_prev=program_transform_name ;;
985 -program-transform-name=* | --program-transform-name=* \
986 | --program-transform-nam=* | --program-transform-na=* \
987 | --program-transform-n=* | --program-transform-=* \
988 | --program-transform=* | --program-transfor=* \
989 | --program-transfo=* | --program-transf=* \
990 | --program-trans=* | --program-tran=* \
991 | --progr-tra=* | --program-tr=* | --program-t=*)
992 program_transform_name=$ac_optarg ;;
994 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
995 ac_prev=pdfdir ;;
996 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
997 pdfdir=$ac_optarg ;;
999 -psdir | --psdir | --psdi | --psd | --ps)
1000 ac_prev=psdir ;;
1001 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1002 psdir=$ac_optarg ;;
1004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005 | -silent | --silent | --silen | --sile | --sil)
1006 silent=yes ;;
1008 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1009 ac_prev=sbindir ;;
1010 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1011 | --sbi=* | --sb=*)
1012 sbindir=$ac_optarg ;;
1014 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1015 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1016 | --sharedst | --shareds | --shared | --share | --shar \
1017 | --sha | --sh)
1018 ac_prev=sharedstatedir ;;
1019 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1020 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1021 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1022 | --sha=* | --sh=*)
1023 sharedstatedir=$ac_optarg ;;
1025 -site | --site | --sit)
1026 ac_prev=site ;;
1027 -site=* | --site=* | --sit=*)
1028 site=$ac_optarg ;;
1030 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1031 ac_prev=srcdir ;;
1032 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1033 srcdir=$ac_optarg ;;
1035 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1036 | --syscon | --sysco | --sysc | --sys | --sy)
1037 ac_prev=sysconfdir ;;
1038 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1039 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1040 sysconfdir=$ac_optarg ;;
1042 -target | --target | --targe | --targ | --tar | --ta | --t)
1043 ac_prev=target_alias ;;
1044 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1045 target_alias=$ac_optarg ;;
1047 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1048 verbose=yes ;;
1050 -version | --version | --versio | --versi | --vers | -V)
1051 ac_init_version=: ;;
1053 -with-* | --with-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error "invalid package name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "with_$ac_useropt"
1063 "*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval with_$ac_useropt=\$ac_optarg ;;
1069 -without-* | --without-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error "invalid package name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "with_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval with_$ac_useropt=no ;;
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1103 -*) as_fn_error "unrecognized option: \`$ac_option'
1104 Try \`$0 --help' for more information."
1107 *=*)
1108 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1109 # Reject names that are not valid shell variable names.
1110 case $ac_envvar in #(
1111 '' | [0-9]* | *[!_$as_cr_alnum]* )
1112 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1113 esac
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 esac
1126 done
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 as_fn_error "missing argument to $ac_option"
1133 if test -n "$ac_unrecognized_opts"; then
1134 case $enable_option_checking in
1135 no) ;;
1136 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1137 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1138 esac
1141 # Check all directory arguments for consistency.
1142 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1143 datadir sysconfdir sharedstatedir localstatedir includedir \
1144 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1145 libdir localedir mandir
1147 eval ac_val=\$$ac_var
1148 # Remove trailing slashes.
1149 case $ac_val in
1150 */ )
1151 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1152 eval $ac_var=\$ac_val;;
1153 esac
1154 # Be sure to have absolute directory names.
1155 case $ac_val in
1156 [\\/$]* | ?:[\\/]* ) continue;;
1157 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1158 esac
1159 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1160 done
1162 # There might be people who depend on the old broken behavior: `$host'
1163 # used to hold the argument of --host etc.
1164 # FIXME: To remove some day.
1165 build=$build_alias
1166 host=$host_alias
1167 target=$target_alias
1169 # FIXME: To remove some day.
1170 if test "x$host_alias" != x; then
1171 if test "x$build_alias" = x; then
1172 cross_compiling=maybe
1173 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1174 If a cross compiler is detected then cross compile mode will be used." >&2
1175 elif test "x$build_alias" != "x$host_alias"; then
1176 cross_compiling=yes
1180 ac_tool_prefix=
1181 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1183 test "$silent" = yes && exec 6>/dev/null
1186 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1187 ac_ls_di=`ls -di .` &&
1188 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1189 as_fn_error "working directory cannot be determined"
1190 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1191 as_fn_error "pwd does not report name of working directory"
1194 # Find the source files, if location was not specified.
1195 if test -z "$srcdir"; then
1196 ac_srcdir_defaulted=yes
1197 # Try the directory containing this script, then the parent directory.
1198 ac_confdir=`$as_dirname -- "$as_myself" ||
1199 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1200 X"$as_myself" : 'X\(//\)[^/]' \| \
1201 X"$as_myself" : 'X\(//\)$' \| \
1202 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1203 $as_echo X"$as_myself" |
1204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1205 s//\1/
1208 /^X\(\/\/\)[^/].*/{
1209 s//\1/
1212 /^X\(\/\/\)$/{
1213 s//\1/
1216 /^X\(\/\).*/{
1217 s//\1/
1220 s/.*/./; q'`
1221 srcdir=$ac_confdir
1222 if test ! -r "$srcdir/$ac_unique_file"; then
1223 srcdir=..
1225 else
1226 ac_srcdir_defaulted=no
1228 if test ! -r "$srcdir/$ac_unique_file"; then
1229 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1230 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1232 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1233 ac_abs_confdir=`(
1234 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1235 pwd)`
1236 # When building in place, set srcdir=.
1237 if test "$ac_abs_confdir" = "$ac_pwd"; then
1238 srcdir=.
1240 # Remove unnecessary trailing slashes from srcdir.
1241 # Double slashes in file names in object file debugging info
1242 # mess up M-x gdb in Emacs.
1243 case $srcdir in
1244 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1245 esac
1246 for ac_var in $ac_precious_vars; do
1247 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_env_${ac_var}_value=\$${ac_var}
1249 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1250 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1251 done
1254 # Report the --help message.
1256 if test "$ac_init_help" = "long"; then
1257 # Omit some internal or obsolete options to make the list less imposing.
1258 # This message is too long to be a string in the A/UX 3.1 sh.
1259 cat <<_ACEOF
1260 \`configure' configures cpplib to adapt to many kinds of systems.
1262 Usage: $0 [OPTION]... [VAR=VALUE]...
1264 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1265 VAR=VALUE. See below for descriptions of some of the useful variables.
1267 Defaults for the options are specified in brackets.
1269 Configuration:
1270 -h, --help display this help and exit
1271 --help=short display options specific to this package
1272 --help=recursive display the short help of all the included packages
1273 -V, --version display version information and exit
1274 -q, --quiet, --silent do not print \`checking...' messages
1275 --cache-file=FILE cache test results in FILE [disabled]
1276 -C, --config-cache alias for \`--cache-file=config.cache'
1277 -n, --no-create do not create output files
1278 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1280 Installation directories:
1281 --prefix=PREFIX install architecture-independent files in PREFIX
1282 [$ac_default_prefix]
1283 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1284 [PREFIX]
1286 By default, \`make install' will install all the files in
1287 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1288 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1289 for instance \`--prefix=\$HOME'.
1291 For better control, use the options below.
1293 Fine tuning of the installation directories:
1294 --bindir=DIR user executables [EPREFIX/bin]
1295 --sbindir=DIR system admin executables [EPREFIX/sbin]
1296 --libexecdir=DIR program executables [EPREFIX/libexec]
1297 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1298 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1299 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1300 --libdir=DIR object code libraries [EPREFIX/lib]
1301 --includedir=DIR C header files [PREFIX/include]
1302 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1303 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1304 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1305 --infodir=DIR info documentation [DATAROOTDIR/info]
1306 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1307 --mandir=DIR man documentation [DATAROOTDIR/man]
1308 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
1309 --htmldir=DIR html documentation [DOCDIR]
1310 --dvidir=DIR dvi documentation [DOCDIR]
1311 --pdfdir=DIR pdf documentation [DOCDIR]
1312 --psdir=DIR ps documentation [DOCDIR]
1313 _ACEOF
1315 cat <<\_ACEOF
1317 System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 --target=TARGET configure for building compilers for TARGET [HOST]
1321 _ACEOF
1324 if test -n "$ac_init_help"; then
1325 case $ac_init_help in
1326 short | recursive ) echo "Configuration of cpplib :";;
1327 esac
1328 cat <<\_ACEOF
1330 Optional Features:
1331 --disable-option-checking ignore unrecognized --enable/--with options
1332 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1333 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1334 --disable-largefile omit support for large files
1335 --enable-werror-always enable -Werror despite compiler version
1336 --disable-rpath do not hardcode runtime library paths
1337 --enable-maintainer-mode enable rules only needed by maintainers
1338 --enable-checking[=LIST]
1339 enable expensive run-time checks. With LIST, enable
1340 only specific categories of checks. Categories are:
1341 yes,no,all,none,release. Flags are: misc,valgrind or
1342 other strings
1343 --enable-canonical-system-headers
1344 enable or disable system headers canonicalization
1345 --enable-host-shared build host code as shared libraries
1347 Optional Packages:
1348 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1349 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1350 --with-gnu-ld assume the C compiler uses GNU ld default=no
1351 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1352 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1354 Some influential environment variables:
1355 CC C compiler command
1356 CFLAGS C compiler flags
1357 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1358 nonstandard directory <lib dir>
1359 LIBS libraries to pass to the linker, e.g. -l<library>
1360 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1361 you have headers in a nonstandard directory <include dir>
1362 CXX C++ compiler command
1363 CXXFLAGS C++ compiler flags
1364 CPP C preprocessor
1366 Use these variables to override the choices made by `configure' or to help
1367 it to find libraries and programs with nonstandard names/locations.
1369 Report bugs to <gcc-bugs@gcc.gnu.org>.
1370 _ACEOF
1371 ac_status=$?
1374 if test "$ac_init_help" = "recursive"; then
1375 # If there are subdirs, report their specific --help.
1376 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1377 test -d "$ac_dir" ||
1378 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1379 continue
1380 ac_builddir=.
1382 case "$ac_dir" in
1383 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1386 # A ".." for each directory in $ac_dir_suffix.
1387 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1388 case $ac_top_builddir_sub in
1389 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1391 esac ;;
1392 esac
1393 ac_abs_top_builddir=$ac_pwd
1394 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1395 # for backward compatibility:
1396 ac_top_builddir=$ac_top_build_prefix
1398 case $srcdir in
1399 .) # We are building in place.
1400 ac_srcdir=.
1401 ac_top_srcdir=$ac_top_builddir_sub
1402 ac_abs_top_srcdir=$ac_pwd ;;
1403 [\\/]* | ?:[\\/]* ) # Absolute name.
1404 ac_srcdir=$srcdir$ac_dir_suffix;
1405 ac_top_srcdir=$srcdir
1406 ac_abs_top_srcdir=$srcdir ;;
1407 *) # Relative name.
1408 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1409 ac_top_srcdir=$ac_top_build_prefix$srcdir
1410 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1411 esac
1412 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1414 cd "$ac_dir" || { ac_status=$?; continue; }
1415 # Check for guested configure.
1416 if test -f "$ac_srcdir/configure.gnu"; then
1417 echo &&
1418 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1419 elif test -f "$ac_srcdir/configure"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure" --help=recursive
1422 else
1423 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1424 fi || ac_status=$?
1425 cd "$ac_pwd" || { ac_status=$?; break; }
1426 done
1429 test -n "$ac_init_help" && exit $ac_status
1430 if $ac_init_version; then
1431 cat <<\_ACEOF
1432 cpplib configure
1433 generated by GNU Autoconf 2.64
1435 Copyright (C) 2009 Free Software Foundation, Inc.
1436 This configure script is free software; the Free Software Foundation
1437 gives unlimited permission to copy, distribute and modify it.
1438 _ACEOF
1439 exit
1442 ## ------------------------ ##
1443 ## Autoconf initialization. ##
1444 ## ------------------------ ##
1446 # ac_fn_c_try_compile LINENO
1447 # --------------------------
1448 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1449 ac_fn_c_try_compile ()
1451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1452 rm -f conftest.$ac_objext
1453 if { { ac_try="$ac_compile"
1454 case "(($ac_try" in
1455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1456 *) ac_try_echo=$ac_try;;
1457 esac
1458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1459 $as_echo "$ac_try_echo"; } >&5
1460 (eval "$ac_compile") 2>conftest.err
1461 ac_status=$?
1462 if test -s conftest.err; then
1463 grep -v '^ *+' conftest.err >conftest.er1
1464 cat conftest.er1 >&5
1465 mv -f conftest.er1 conftest.err
1467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1468 test $ac_status = 0; } && {
1469 test -z "$ac_c_werror_flag" ||
1470 test ! -s conftest.err
1471 } && test -s conftest.$ac_objext; then :
1472 ac_retval=0
1473 else
1474 $as_echo "$as_me: failed program was:" >&5
1475 sed 's/^/| /' conftest.$ac_ext >&5
1477 ac_retval=1
1479 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1480 return $ac_retval
1482 } # ac_fn_c_try_compile
1484 # ac_fn_cxx_try_compile LINENO
1485 # ----------------------------
1486 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1487 ac_fn_cxx_try_compile ()
1489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490 rm -f conftest.$ac_objext
1491 if { { ac_try="$ac_compile"
1492 case "(($ac_try" in
1493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1494 *) ac_try_echo=$ac_try;;
1495 esac
1496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497 $as_echo "$ac_try_echo"; } >&5
1498 (eval "$ac_compile") 2>conftest.err
1499 ac_status=$?
1500 if test -s conftest.err; then
1501 grep -v '^ *+' conftest.err >conftest.er1
1502 cat conftest.er1 >&5
1503 mv -f conftest.er1 conftest.err
1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; } && {
1507 test -z "$ac_cxx_werror_flag" ||
1508 test ! -s conftest.err
1509 } && test -s conftest.$ac_objext; then :
1510 ac_retval=0
1511 else
1512 $as_echo "$as_me: failed program was:" >&5
1513 sed 's/^/| /' conftest.$ac_ext >&5
1515 ac_retval=1
1517 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1518 return $ac_retval
1520 } # ac_fn_cxx_try_compile
1522 # ac_fn_c_try_cpp LINENO
1523 # ----------------------
1524 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_cpp ()
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 if { { ac_try="$ac_cpp conftest.$ac_ext"
1529 case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532 esac
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } >/dev/null && {
1544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 }; then :
1547 ac_retval=0
1548 else
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1552 ac_retval=1
1554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1555 return $ac_retval
1557 } # ac_fn_c_try_cpp
1559 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1560 # -------------------------------------------------------
1561 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1562 # the include files in INCLUDES and setting the cache variable VAR
1563 # accordingly.
1564 ac_fn_c_check_header_mongrel ()
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1569 $as_echo_n "checking for $2... " >&6; }
1570 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1571 $as_echo_n "(cached) " >&6
1573 eval ac_res=\$$3
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1575 $as_echo "$ac_res" >&6; }
1576 else
1577 # Is the header compilable?
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1579 $as_echo_n "checking $2 usability... " >&6; }
1580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1581 /* end confdefs.h. */
1583 #include <$2>
1584 _ACEOF
1585 if ac_fn_c_try_compile "$LINENO"; then :
1586 ac_header_compiler=yes
1587 else
1588 ac_header_compiler=no
1590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1592 $as_echo "$ac_header_compiler" >&6; }
1594 # Is the header present?
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1596 $as_echo_n "checking $2 presence... " >&6; }
1597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h. */
1599 #include <$2>
1600 _ACEOF
1601 if ac_fn_c_try_cpp "$LINENO"; then :
1602 ac_header_preproc=yes
1603 else
1604 ac_header_preproc=no
1606 rm -f conftest.err conftest.$ac_ext
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1608 $as_echo "$ac_header_preproc" >&6; }
1610 # So? What about this header?
1611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1612 yes:no: )
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1614 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1616 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1618 no:yes:* )
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1620 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1622 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1624 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1626 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1628 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1629 ( cat <<\_ASBOX
1630 ## ----------------------------------- ##
1631 ## Report this to gcc-bugs@gcc.gnu.org ##
1632 ## ----------------------------------- ##
1633 _ASBOX
1634 ) | sed "s/^/$as_me: WARNING: /" >&2
1636 esac
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638 $as_echo_n "checking for $2... " >&6; }
1639 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1640 $as_echo_n "(cached) " >&6
1641 else
1642 eval "$3=\$ac_header_compiler"
1644 eval ac_res=\$$3
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 $as_echo "$ac_res" >&6; }
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650 } # ac_fn_c_check_header_mongrel
1652 # ac_fn_c_try_run LINENO
1653 # ----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1655 # that executables *can* be run.
1656 ac_fn_c_try_run ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_link"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>&5
1667 ac_status=$?
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1670 { { case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_try") 2>&5
1677 ac_status=$?
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; }; }; then :
1680 ac_retval=0
1681 else
1682 $as_echo "$as_me: program exited with status $ac_status" >&5
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1686 ac_retval=$ac_status
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690 return $ac_retval
1692 } # ac_fn_c_try_run
1694 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695 # -------------------------------------------------------
1696 # Tests whether HEADER exists and can be compiled using the include files in
1697 # INCLUDES, setting the cache variable VAR accordingly.
1698 ac_fn_c_check_header_compile ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 $as_echo_n "checking for $2... " >&6; }
1703 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1704 $as_echo_n "(cached) " >&6
1705 else
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h. */
1709 #include <$2>
1710 _ACEOF
1711 if ac_fn_c_try_compile "$LINENO"; then :
1712 eval "$3=yes"
1713 else
1714 eval "$3=no"
1716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718 eval ac_res=\$$3
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 $as_echo "$ac_res" >&6; }
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 } # ac_fn_c_check_header_compile
1725 # ac_fn_c_try_link LINENO
1726 # -----------------------
1727 # Try to link conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_c_try_link ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext conftest$ac_exeext
1732 if { { ac_try="$ac_link"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest$ac_exeext && {
1751 test "$cross_compiling" = yes ||
1752 $as_test_x conftest$ac_exeext
1753 }; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1759 ac_retval=1
1761 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1762 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1763 # interfere with the next link command; also delete a directory that is
1764 # left behind by Apple's compiler. We do this before executing the actions.
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767 return $ac_retval
1769 } # ac_fn_c_try_link
1771 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1772 # -------------------------------------------
1773 # Tests whether TYPE exists after having included INCLUDES, setting cache
1774 # variable VAR accordingly.
1775 ac_fn_c_check_type ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1781 $as_echo_n "(cached) " >&6
1782 else
1783 eval "$3=no"
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1788 main ()
1790 if (sizeof ($2))
1791 return 0;
1793 return 0;
1795 _ACEOF
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1801 main ()
1803 if (sizeof (($2)))
1804 return 0;
1806 return 0;
1808 _ACEOF
1809 if ac_fn_c_try_compile "$LINENO"; then :
1811 else
1812 eval "$3=yes"
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823 } # ac_fn_c_check_type
1825 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1826 # --------------------------------------------
1827 # Tries to find the compile-time value of EXPR in a program that includes
1828 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1829 # computed
1830 ac_fn_c_compute_int ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 if test "$cross_compiling" = yes; then
1834 # Depending upon the size, compute the lo and hi bounds.
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1839 main ()
1841 static int test_array [1 - 2 * !(($2) >= 0)];
1842 test_array [0] = 0
1845 return 0;
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849 ac_lo=0 ac_mid=0
1850 while :; do
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1855 main ()
1857 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1858 test_array [0] = 0
1861 return 0;
1863 _ACEOF
1864 if ac_fn_c_try_compile "$LINENO"; then :
1865 ac_hi=$ac_mid; break
1866 else
1867 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1868 if test $ac_lo -le $ac_mid; then
1869 ac_lo= ac_hi=
1870 break
1872 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 done
1876 else
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1881 main ()
1883 static int test_array [1 - 2 * !(($2) < 0)];
1884 test_array [0] = 0
1887 return 0;
1889 _ACEOF
1890 if ac_fn_c_try_compile "$LINENO"; then :
1891 ac_hi=-1 ac_mid=-1
1892 while :; do
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1897 main ()
1899 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1900 test_array [0] = 0
1903 return 0;
1905 _ACEOF
1906 if ac_fn_c_try_compile "$LINENO"; then :
1907 ac_lo=$ac_mid; break
1908 else
1909 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1910 if test $ac_mid -le $ac_hi; then
1911 ac_lo= ac_hi=
1912 break
1914 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 done
1918 else
1919 ac_lo= ac_hi=
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 # Binary search between lo and hi bounds.
1925 while test "x$ac_lo" != "x$ac_hi"; do
1926 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1931 main ()
1933 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1934 test_array [0] = 0
1937 return 0;
1939 _ACEOF
1940 if ac_fn_c_try_compile "$LINENO"; then :
1941 ac_hi=$ac_mid
1942 else
1943 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 done
1947 case $ac_lo in #((
1948 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1949 '') ac_retval=1 ;;
1950 esac
1951 else
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1955 static long int longval () { return $2; }
1956 static unsigned long int ulongval () { return $2; }
1957 #include <stdio.h>
1958 #include <stdlib.h>
1960 main ()
1963 FILE *f = fopen ("conftest.val", "w");
1964 if (! f)
1965 return 1;
1966 if (($2) < 0)
1968 long int i = longval ();
1969 if (i != ($2))
1970 return 1;
1971 fprintf (f, "%ld", i);
1973 else
1975 unsigned long int i = ulongval ();
1976 if (i != ($2))
1977 return 1;
1978 fprintf (f, "%lu", i);
1980 /* Do not output a trailing newline, as this causes \r\n confusion
1981 on some platforms. */
1982 return ferror (f) || fclose (f) != 0;
1985 return 0;
1987 _ACEOF
1988 if ac_fn_c_try_run "$LINENO"; then :
1989 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1990 else
1991 ac_retval=1
1993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1994 conftest.$ac_objext conftest.beam conftest.$ac_ext
1995 rm -f conftest.val
1998 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1999 return $ac_retval
2001 } # ac_fn_c_compute_int
2003 # ac_fn_c_check_func LINENO FUNC VAR
2004 # ----------------------------------
2005 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2006 ac_fn_c_check_func ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2018 #define $2 innocuous_$2
2020 /* System header to define __stub macros and hopefully few prototypes,
2021 which can conflict with char $2 (); below.
2022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2023 <limits.h> exists even on freestanding compilers. */
2025 #ifdef __STDC__
2026 # include <limits.h>
2027 #else
2028 # include <assert.h>
2029 #endif
2031 #undef $2
2033 /* Override any GCC internal prototype to avoid an error.
2034 Use char because int might match the return type of a GCC
2035 builtin and then its argument prototype would still apply. */
2036 #ifdef __cplusplus
2037 extern "C"
2038 #endif
2039 char $2 ();
2040 /* The GNU C library defines this for functions which it implements
2041 to always fail with ENOSYS. Some functions are actually named
2042 something starting with __ and the normal name is an alias. */
2043 #if defined __stub_$2 || defined __stub___$2
2044 choke me
2045 #endif
2048 main ()
2050 return $2 ();
2052 return 0;
2054 _ACEOF
2055 if ac_fn_c_try_link "$LINENO"; then :
2056 eval "$3=yes"
2057 else
2058 eval "$3=no"
2060 rm -f core conftest.err conftest.$ac_objext \
2061 conftest$ac_exeext conftest.$ac_ext
2063 eval ac_res=\$$3
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065 $as_echo "$ac_res" >&6; }
2066 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2068 } # ac_fn_c_check_func
2070 # ac_fn_c_check_decl LINENO SYMBOL VAR
2071 # ------------------------------------
2072 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2073 ac_fn_c_check_decl ()
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 as_decl_name=`echo $2|sed 's/ *(.*//'`
2077 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2079 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2080 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081 $as_echo_n "(cached) " >&6
2082 else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2087 main ()
2089 #ifndef $as_decl_name
2090 #ifdef __cplusplus
2091 (void) $as_decl_use;
2092 #else
2093 (void) $as_decl_name;
2094 #endif
2095 #endif
2098 return 0;
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102 eval "$3=yes"
2103 else
2104 eval "$3=no"
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 eval ac_res=\$$3
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2113 } # ac_fn_c_check_decl
2115 # ac_fn_cxx_try_link LINENO
2116 # -------------------------
2117 # Try to link conftest.$ac_ext, and return whether this succeeded.
2118 ac_fn_cxx_try_link ()
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 rm -f conftest.$ac_objext conftest$ac_exeext
2122 if { { ac_try="$ac_link"
2123 case "(($ac_try" in
2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125 *) ac_try_echo=$ac_try;;
2126 esac
2127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2128 $as_echo "$ac_try_echo"; } >&5
2129 (eval "$ac_link") 2>conftest.err
2130 ac_status=$?
2131 if test -s conftest.err; then
2132 grep -v '^ *+' conftest.err >conftest.er1
2133 cat conftest.er1 >&5
2134 mv -f conftest.er1 conftest.err
2136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137 test $ac_status = 0; } && {
2138 test -z "$ac_cxx_werror_flag" ||
2139 test ! -s conftest.err
2140 } && test -s conftest$ac_exeext && {
2141 test "$cross_compiling" = yes ||
2142 $as_test_x conftest$ac_exeext
2143 }; then :
2144 ac_retval=0
2145 else
2146 $as_echo "$as_me: failed program was:" >&5
2147 sed 's/^/| /' conftest.$ac_ext >&5
2149 ac_retval=1
2151 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2152 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2153 # interfere with the next link command; also delete a directory that is
2154 # left behind by Apple's compiler. We do this before executing the actions.
2155 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2156 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2157 return $ac_retval
2159 } # ac_fn_cxx_try_link
2160 cat >config.log <<_ACEOF
2161 This file contains any messages produced by compilers while
2162 running configure, to aid debugging if configure makes a mistake.
2164 It was created by cpplib $as_me , which was
2165 generated by GNU Autoconf 2.64. Invocation command line was
2167 $ $0 $@
2169 _ACEOF
2170 exec 5>>config.log
2172 cat <<_ASUNAME
2173 ## --------- ##
2174 ## Platform. ##
2175 ## --------- ##
2177 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2178 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2179 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2180 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2181 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2183 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2184 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2186 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2187 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2188 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2189 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2190 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2191 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2192 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2194 _ASUNAME
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 $as_echo "PATH: $as_dir"
2202 done
2203 IFS=$as_save_IFS
2205 } >&5
2207 cat >&5 <<_ACEOF
2210 ## ----------- ##
2211 ## Core tests. ##
2212 ## ----------- ##
2214 _ACEOF
2217 # Keep a trace of the command line.
2218 # Strip out --no-create and --no-recursion so they do not pile up.
2219 # Strip out --silent because we don't want to record it for future runs.
2220 # Also quote any args containing shell meta-characters.
2221 # Make two passes to allow for proper duplicate-argument suppression.
2222 ac_configure_args=
2223 ac_configure_args0=
2224 ac_configure_args1=
2225 ac_must_keep_next=false
2226 for ac_pass in 1 2
2228 for ac_arg
2230 case $ac_arg in
2231 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2233 | -silent | --silent | --silen | --sile | --sil)
2234 continue ;;
2235 *\'*)
2236 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2237 esac
2238 case $ac_pass in
2239 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2241 as_fn_append ac_configure_args1 " '$ac_arg'"
2242 if test $ac_must_keep_next = true; then
2243 ac_must_keep_next=false # Got value, back to normal.
2244 else
2245 case $ac_arg in
2246 *=* | --config-cache | -C | -disable-* | --disable-* \
2247 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2248 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2249 | -with-* | --with-* | -without-* | --without-* | --x)
2250 case "$ac_configure_args0 " in
2251 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2252 esac
2254 -* ) ac_must_keep_next=true ;;
2255 esac
2257 as_fn_append ac_configure_args " '$ac_arg'"
2259 esac
2260 done
2261 done
2262 { ac_configure_args0=; unset ac_configure_args0;}
2263 { ac_configure_args1=; unset ac_configure_args1;}
2265 # When interrupted or exit'd, cleanup temporary files, and complete
2266 # config.log. We remove comments because anyway the quotes in there
2267 # would cause problems or look ugly.
2268 # WARNING: Use '\'' to represent an apostrophe within the trap.
2269 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2270 trap 'exit_status=$?
2271 # Save into config.log some information that might help in debugging.
2273 echo
2275 cat <<\_ASBOX
2276 ## ---------------- ##
2277 ## Cache variables. ##
2278 ## ---------------- ##
2279 _ASBOX
2280 echo
2281 # The following way of writing the cache mishandles newlines in values,
2283 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2284 eval ac_val=\$$ac_var
2285 case $ac_val in #(
2286 *${as_nl}*)
2287 case $ac_var in #(
2288 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2290 esac
2291 case $ac_var in #(
2292 _ | IFS | as_nl) ;; #(
2293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2294 *) { eval $ac_var=; unset $ac_var;} ;;
2295 esac ;;
2296 esac
2297 done
2298 (set) 2>&1 |
2299 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2300 *${as_nl}ac_space=\ *)
2301 sed -n \
2302 "s/'\''/'\''\\\\'\'''\''/g;
2303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2304 ;; #(
2306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2308 esac |
2309 sort
2311 echo
2313 cat <<\_ASBOX
2314 ## ----------------- ##
2315 ## Output variables. ##
2316 ## ----------------- ##
2317 _ASBOX
2318 echo
2319 for ac_var in $ac_subst_vars
2321 eval ac_val=\$$ac_var
2322 case $ac_val in
2323 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2324 esac
2325 $as_echo "$ac_var='\''$ac_val'\''"
2326 done | sort
2327 echo
2329 if test -n "$ac_subst_files"; then
2330 cat <<\_ASBOX
2331 ## ------------------- ##
2332 ## File substitutions. ##
2333 ## ------------------- ##
2334 _ASBOX
2335 echo
2336 for ac_var in $ac_subst_files
2338 eval ac_val=\$$ac_var
2339 case $ac_val in
2340 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2341 esac
2342 $as_echo "$ac_var='\''$ac_val'\''"
2343 done | sort
2344 echo
2347 if test -s confdefs.h; then
2348 cat <<\_ASBOX
2349 ## ----------- ##
2350 ## confdefs.h. ##
2351 ## ----------- ##
2352 _ASBOX
2353 echo
2354 cat confdefs.h
2355 echo
2357 test "$ac_signal" != 0 &&
2358 $as_echo "$as_me: caught signal $ac_signal"
2359 $as_echo "$as_me: exit $exit_status"
2360 } >&5
2361 rm -f core *.core core.conftest.* &&
2362 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2363 exit $exit_status
2365 for ac_signal in 1 2 13 15; do
2366 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2367 done
2368 ac_signal=0
2370 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2371 rm -f -r conftest* confdefs.h
2373 $as_echo "/* confdefs.h */" > confdefs.h
2375 # Predefined preprocessor variables.
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_NAME "$PACKAGE_NAME"
2379 _ACEOF
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2383 _ACEOF
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2387 _ACEOF
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_STRING "$PACKAGE_STRING"
2391 _ACEOF
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2395 _ACEOF
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_URL "$PACKAGE_URL"
2399 _ACEOF
2402 # Let the site file select an alternate cache file if it wants to.
2403 # Prefer an explicitly selected file to automatically selected ones.
2404 ac_site_file1=NONE
2405 ac_site_file2=NONE
2406 if test -n "$CONFIG_SITE"; then
2407 ac_site_file1=$CONFIG_SITE
2408 elif test "x$prefix" != xNONE; then
2409 ac_site_file1=$prefix/share/config.site
2410 ac_site_file2=$prefix/etc/config.site
2411 else
2412 ac_site_file1=$ac_default_prefix/share/config.site
2413 ac_site_file2=$ac_default_prefix/etc/config.site
2415 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2417 test "x$ac_site_file" = xNONE && continue
2418 if test -r "$ac_site_file"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2420 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2421 sed 's/^/| /' "$ac_site_file" >&5
2422 . "$ac_site_file"
2424 done
2426 if test -r "$cache_file"; then
2427 # Some versions of bash will fail to source /dev/null (special
2428 # files actually), so we avoid doing that.
2429 if test -f "$cache_file"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2431 $as_echo "$as_me: loading cache $cache_file" >&6;}
2432 case $cache_file in
2433 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2434 *) . "./$cache_file";;
2435 esac
2437 else
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2439 $as_echo "$as_me: creating cache $cache_file" >&6;}
2440 >$cache_file
2443 # Check that the precious variables saved in the cache have kept the same
2444 # value.
2445 ac_cache_corrupted=false
2446 for ac_var in $ac_precious_vars; do
2447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2448 eval ac_new_set=\$ac_env_${ac_var}_set
2449 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2450 eval ac_new_val=\$ac_env_${ac_var}_value
2451 case $ac_old_set,$ac_new_set in
2452 set,)
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2454 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2455 ac_cache_corrupted=: ;;
2456 ,set)
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2458 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2459 ac_cache_corrupted=: ;;
2460 ,);;
2462 if test "x$ac_old_val" != "x$ac_new_val"; then
2463 # differences in whitespace do not lead to failure.
2464 ac_old_val_w=`echo x $ac_old_val`
2465 ac_new_val_w=`echo x $ac_new_val`
2466 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2468 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2469 ac_cache_corrupted=:
2470 else
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2472 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2473 eval $ac_var=\$ac_old_val
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2476 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2478 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2479 fi;;
2480 esac
2481 # Pass precious variables to config.status.
2482 if test "$ac_new_set" = set; then
2483 case $ac_new_val in
2484 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2485 *) ac_arg=$ac_var=$ac_new_val ;;
2486 esac
2487 case " $ac_configure_args " in
2488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2489 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2490 esac
2492 done
2493 if $ac_cache_corrupted; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2497 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2498 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2500 ## -------------------- ##
2501 ## Main body of script. ##
2502 ## -------------------- ##
2504 ac_ext=c
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2516 ac_aux_dir=
2517 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2518 for ac_t in install-sh install.sh shtool; do
2519 if test -f "$ac_dir/$ac_t"; then
2520 ac_aux_dir=$ac_dir
2521 ac_install_sh="$ac_aux_dir/$ac_t -c"
2522 break 2
2524 done
2525 done
2526 if test -z "$ac_aux_dir"; then
2527 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2530 # These three variables are undocumented and unsupported,
2531 # and are intended to be withdrawn in a future Autoconf release.
2532 # They can cause serious problems if a builder's source tree is in a directory
2533 # whose full name contains unusual characters.
2534 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2535 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2536 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2539 # Make sure we can run config.sub.
2540 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2541 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2544 $as_echo_n "checking build system type... " >&6; }
2545 if test "${ac_cv_build+set}" = set; then :
2546 $as_echo_n "(cached) " >&6
2547 else
2548 ac_build_alias=$build_alias
2549 test "x$ac_build_alias" = x &&
2550 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2551 test "x$ac_build_alias" = x &&
2552 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2553 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2554 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2558 $as_echo "$ac_cv_build" >&6; }
2559 case $ac_cv_build in
2560 *-*-*) ;;
2561 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2562 esac
2563 build=$ac_cv_build
2564 ac_save_IFS=$IFS; IFS='-'
2565 set x $ac_cv_build
2566 shift
2567 build_cpu=$1
2568 build_vendor=$2
2569 shift; shift
2570 # Remember, the first character of IFS is used to create $*,
2571 # except with old shells:
2572 build_os=$*
2573 IFS=$ac_save_IFS
2574 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2578 $as_echo_n "checking host system type... " >&6; }
2579 if test "${ac_cv_host+set}" = set; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 if test "x$host_alias" = x; then
2583 ac_cv_host=$ac_cv_build
2584 else
2585 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2586 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2591 $as_echo "$ac_cv_host" >&6; }
2592 case $ac_cv_host in
2593 *-*-*) ;;
2594 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2595 esac
2596 host=$ac_cv_host
2597 ac_save_IFS=$IFS; IFS='-'
2598 set x $ac_cv_host
2599 shift
2600 host_cpu=$1
2601 host_vendor=$2
2602 shift; shift
2603 # Remember, the first character of IFS is used to create $*,
2604 # except with old shells:
2605 host_os=$*
2606 IFS=$ac_save_IFS
2607 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2611 $as_echo_n "checking target system type... " >&6; }
2612 if test "${ac_cv_target+set}" = set; then :
2613 $as_echo_n "(cached) " >&6
2614 else
2615 if test "x$target_alias" = x; then
2616 ac_cv_target=$ac_cv_host
2617 else
2618 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2619 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2624 $as_echo "$ac_cv_target" >&6; }
2625 case $ac_cv_target in
2626 *-*-*) ;;
2627 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2628 esac
2629 target=$ac_cv_target
2630 ac_save_IFS=$IFS; IFS='-'
2631 set x $ac_cv_target
2632 shift
2633 target_cpu=$1
2634 target_vendor=$2
2635 shift; shift
2636 # Remember, the first character of IFS is used to create $*,
2637 # except with old shells:
2638 target_os=$*
2639 IFS=$ac_save_IFS
2640 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2643 # The aliases save the names the user supplied, while $host etc.
2644 # will get canonicalized.
2645 test -n "$target_alias" &&
2646 test "$program_prefix$program_suffix$program_transform_name" = \
2647 NONENONEs,x,x, &&
2648 program_prefix=${target_alias}-
2651 # Checks for programs.
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2653 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2654 set x ${MAKE-make}
2655 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2656 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 cat >conftest.make <<\_ACEOF
2660 SHELL = /bin/sh
2661 all:
2662 @echo '@@@%%%=$(MAKE)=@@@%%%'
2663 _ACEOF
2664 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2665 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2666 *@@@%%%=?*=@@@%%%*)
2667 eval ac_cv_prog_make_${ac_make}_set=yes;;
2669 eval ac_cv_prog_make_${ac_make}_set=no;;
2670 esac
2671 rm -f conftest.make
2673 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2675 $as_echo "yes" >&6; }
2676 SET_MAKE=
2677 else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2680 SET_MAKE="MAKE=${MAKE-make}"
2683 # Find a good install program. We prefer a C program (faster),
2684 # so one script is as good as another. But avoid the broken or
2685 # incompatible versions:
2686 # SysV /etc/install, /usr/sbin/install
2687 # SunOS /usr/etc/install
2688 # IRIX /sbin/install
2689 # AIX /bin/install
2690 # AmigaOS /C/install, which installs bootblocks on floppy discs
2691 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2692 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2693 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2694 # OS/2's system install, which has a completely different semantic
2695 # ./install, which can be erroneously created by make from ./install.sh.
2696 # Reject install programs that cannot install multiple files.
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2698 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2699 if test -z "$INSTALL"; then
2700 if test "${ac_cv_path_install+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 # Account for people who put trailing slashes in PATH elements.
2709 case $as_dir/ in #((
2710 ./ | .// | /[cC]/* | \
2711 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2712 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2713 /usr/ucb/* ) ;;
2715 # OSF1 and SCO ODT 3.0 have their own names for install.
2716 # Don't use installbsd from OSF since it installs stuff as root
2717 # by default.
2718 for ac_prog in ginstall scoinst install; do
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2721 if test $ac_prog = install &&
2722 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2723 # AIX install. It has an incompatible calling convention.
2725 elif test $ac_prog = install &&
2726 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2727 # program-specific install script used by HP pwplus--don't use.
2729 else
2730 rm -rf conftest.one conftest.two conftest.dir
2731 echo one > conftest.one
2732 echo two > conftest.two
2733 mkdir conftest.dir
2734 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2735 test -s conftest.one && test -s conftest.two &&
2736 test -s conftest.dir/conftest.one &&
2737 test -s conftest.dir/conftest.two
2738 then
2739 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2740 break 3
2744 done
2745 done
2747 esac
2749 done
2750 IFS=$as_save_IFS
2752 rm -rf conftest.one conftest.two conftest.dir
2755 if test "${ac_cv_path_install+set}" = set; then
2756 INSTALL=$ac_cv_path_install
2757 else
2758 # As a last resort, use the slow shell script. Don't cache a
2759 # value for INSTALL within a source directory, because that will
2760 # break other packages using the cache if that directory is
2761 # removed, or if the value is a relative name.
2762 INSTALL=$ac_install_sh
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2766 $as_echo "$INSTALL" >&6; }
2768 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2769 # It thinks the first close brace ends the variable substitution.
2770 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2772 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2774 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2776 ac_ext=c
2777 ac_cpp='$CPP $CPPFLAGS'
2778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 if test -n "$ac_tool_prefix"; then
2782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_CC+set}" = set; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 if test -n "$CC"; then
2790 ac_cv_prog_CC="$CC" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2803 done
2804 done
2805 IFS=$as_save_IFS
2809 CC=$ac_cv_prog_CC
2810 if test -n "$CC"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2812 $as_echo "$CC" >&6; }
2813 else
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2820 if test -z "$ac_cv_prog_CC"; then
2821 ac_ct_CC=$CC
2822 # Extract the first word of "gcc", so it can be a program name with args.
2823 set dummy gcc; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2827 $as_echo_n "(cached) " >&6
2828 else
2829 if test -n "$ac_ct_CC"; then
2830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_ac_ct_CC="gcc"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2843 done
2844 done
2845 IFS=$as_save_IFS
2849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2850 if test -n "$ac_ct_CC"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2852 $as_echo "$ac_ct_CC" >&6; }
2853 else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2858 if test "x$ac_ct_CC" = x; then
2859 CC=""
2860 else
2861 case $cross_compiling:$ac_tool_warned in
2862 yes:)
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2865 ac_tool_warned=yes ;;
2866 esac
2867 CC=$ac_ct_CC
2869 else
2870 CC="$ac_cv_prog_CC"
2873 if test -z "$CC"; then
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}cc; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_CC+set}" = set; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_CC="${ac_tool_prefix}cc"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2896 done
2897 done
2898 IFS=$as_save_IFS
2902 CC=$ac_cv_prog_CC
2903 if test -n "$CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2906 else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2914 if test -z "$CC"; then
2915 # Extract the first word of "cc", so it can be a program name with args.
2916 set dummy cc; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if test "${ac_cv_prog_CC+set}" = set; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC="$CC" # Let the user override the test.
2924 else
2925 ac_prog_rejected=no
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2934 ac_prog_rejected=yes
2935 continue
2937 ac_cv_prog_CC="cc"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2941 done
2942 done
2943 IFS=$as_save_IFS
2945 if test $ac_prog_rejected = yes; then
2946 # We found a bogon in the path, so make sure we never use it.
2947 set dummy $ac_cv_prog_CC
2948 shift
2949 if test $# != 0; then
2950 # We chose a different compiler from the bogus one.
2951 # However, it has the same basename, so the bogon will be chosen
2952 # first if we set CC to just the basename; use the full file name.
2953 shift
2954 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2959 CC=$ac_cv_prog_CC
2960 if test -n "$CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2970 if test -z "$CC"; then
2971 if test -n "$ac_tool_prefix"; then
2972 for ac_prog in cl.exe
2974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if test "${ac_cv_prog_CC+set}" = set; then :
2979 $as_echo_n "(cached) " >&6
2980 else
2981 if test -n "$CC"; then
2982 ac_cv_prog_CC="$CC" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2995 done
2996 done
2997 IFS=$as_save_IFS
3001 CC=$ac_cv_prog_CC
3002 if test -n "$CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004 $as_echo "$CC" >&6; }
3005 else
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3011 test -n "$CC" && break
3012 done
3014 if test -z "$CC"; then
3015 ac_ct_CC=$CC
3016 for ac_prog in cl.exe
3018 # Extract the first word of "$ac_prog", so it can be a program name with args.
3019 set dummy $ac_prog; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 if test -n "$ac_ct_CC"; then
3026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_ac_ct_CC="$ac_prog"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3039 done
3040 done
3041 IFS=$as_save_IFS
3045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3046 if test -n "$ac_ct_CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3048 $as_echo "$ac_ct_CC" >&6; }
3049 else
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3055 test -n "$ac_ct_CC" && break
3056 done
3058 if test "x$ac_ct_CC" = x; then
3059 CC=""
3060 else
3061 case $cross_compiling:$ac_tool_warned in
3062 yes:)
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065 ac_tool_warned=yes ;;
3066 esac
3067 CC=$ac_ct_CC
3074 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076 as_fn_error "no acceptable C compiler found in \$PATH
3077 See \`config.log' for more details." "$LINENO" 5; }
3079 # Provide some information about the compiler.
3080 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3081 set X $ac_compile
3082 ac_compiler=$2
3083 for ac_option in --version -v -V -qversion; do
3084 { { ac_try="$ac_compiler $ac_option >&5"
3085 case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3092 ac_status=$?
3093 if test -s conftest.err; then
3094 sed '10a\
3095 ... rest of stderr output deleted ...
3096 10q' conftest.err >conftest.er1
3097 cat conftest.er1 >&5
3098 rm -f conftest.er1 conftest.err
3100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101 test $ac_status = 0; }
3102 done
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105 /* end confdefs.h. */
3108 main ()
3112 return 0;
3114 _ACEOF
3115 ac_clean_files_save=$ac_clean_files
3116 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3117 # Try to create an executable without -o first, disregard a.out.
3118 # It will help us diagnose broken compilers, and finding out an intuition
3119 # of exeext.
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3121 $as_echo_n "checking for C compiler default output file name... " >&6; }
3122 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3124 # The possible output files:
3125 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3127 ac_rmfiles=
3128 for ac_file in $ac_files
3130 case $ac_file in
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3132 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3133 esac
3134 done
3135 rm -f $ac_rmfiles
3137 if { { ac_try="$ac_link_default"
3138 case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_link_default") 2>&5
3145 ac_status=$?
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; then :
3148 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3149 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3150 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3151 # so that the user can short-circuit this test for compilers unknown to
3152 # Autoconf.
3153 for ac_file in $ac_files ''
3155 test -f "$ac_file" || continue
3156 case $ac_file in
3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3159 [ab].out )
3160 # We found the default executable, but exeext='' is most
3161 # certainly right.
3162 break;;
3163 *.* )
3164 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3165 then :; else
3166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3168 # We set ac_cv_exeext here because the later test for it is not
3169 # safe: cross compilers may not add the suffix if given an `-o'
3170 # argument, so we may need to know it at that point already.
3171 # Even if this section looks crufty: it has the advantage of
3172 # actually working.
3173 break;;
3175 break;;
3176 esac
3177 done
3178 test "$ac_cv_exeext" = no && ac_cv_exeext=
3180 else
3181 ac_file=''
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3184 $as_echo "$ac_file" >&6; }
3185 if test -z "$ac_file"; then :
3186 $as_echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 { as_fn_set_status 77
3192 as_fn_error "C compiler cannot create executables
3193 See \`config.log' for more details." "$LINENO" 5; }; }
3195 ac_exeext=$ac_cv_exeext
3197 # Check that the compiler produces executables we can run. If not, either
3198 # the compiler is broken, or we cross compile.
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3200 $as_echo_n "checking whether the C compiler works... " >&6; }
3201 # If not cross compiling, check that we can run a simple program.
3202 if test "$cross_compiling" != yes; then
3203 if { ac_try='./$ac_file'
3204 { { case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_try") 2>&5
3211 ac_status=$?
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; }; then
3214 cross_compiling=no
3215 else
3216 if test "$cross_compiling" = maybe; then
3217 cross_compiling=yes
3218 else
3219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error "cannot run C compiled programs.
3222 If you meant to cross compile, use \`--host'.
3223 See \`config.log' for more details." "$LINENO" 5; }
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3228 $as_echo "yes" >&6; }
3230 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3231 ac_clean_files=$ac_clean_files_save
3232 # Check that the compiler produces executables we can run. If not, either
3233 # the compiler is broken, or we cross compile.
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3235 $as_echo_n "checking whether we are cross compiling... " >&6; }
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3237 $as_echo "$cross_compiling" >&6; }
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3240 $as_echo_n "checking for suffix of executables... " >&6; }
3241 if { { ac_try="$ac_link"
3242 case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3245 esac
3246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 $as_echo "$ac_try_echo"; } >&5
3248 (eval "$ac_link") 2>&5
3249 ac_status=$?
3250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251 test $ac_status = 0; }; then :
3252 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3253 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3254 # work properly (i.e., refer to `conftest.exe'), while it won't with
3255 # `rm'.
3256 for ac_file in conftest.exe conftest conftest.*; do
3257 test -f "$ac_file" || continue
3258 case $ac_file in
3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3260 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3261 break;;
3262 * ) break;;
3263 esac
3264 done
3265 else
3266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268 as_fn_error "cannot compute suffix of executables: cannot compile and link
3269 See \`config.log' for more details." "$LINENO" 5; }
3271 rm -f conftest$ac_cv_exeext
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3273 $as_echo "$ac_cv_exeext" >&6; }
3275 rm -f conftest.$ac_ext
3276 EXEEXT=$ac_cv_exeext
3277 ac_exeext=$EXEEXT
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3279 $as_echo_n "checking for suffix of object files... " >&6; }
3280 if test "${ac_cv_objext+set}" = set; then :
3281 $as_echo_n "(cached) " >&6
3282 else
3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h. */
3287 main ()
3291 return 0;
3293 _ACEOF
3294 rm -f conftest.o conftest.obj
3295 if { { ac_try="$ac_compile"
3296 case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299 esac
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302 (eval "$ac_compile") 2>&5
3303 ac_status=$?
3304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305 test $ac_status = 0; }; then :
3306 for ac_file in conftest.o conftest.obj conftest.*; do
3307 test -f "$ac_file" || continue;
3308 case $ac_file in
3309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3310 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3311 break;;
3312 esac
3313 done
3314 else
3315 $as_echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error "cannot compute suffix of object files: cannot compile
3321 See \`config.log' for more details." "$LINENO" 5; }
3323 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3326 $as_echo "$ac_cv_objext" >&6; }
3327 OBJEXT=$ac_cv_objext
3328 ac_objext=$OBJEXT
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3330 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3331 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3332 $as_echo_n "(cached) " >&6
3333 else
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3338 main ()
3340 #ifndef __GNUC__
3341 choke me
3342 #endif
3345 return 0;
3347 _ACEOF
3348 if ac_fn_c_try_compile "$LINENO"; then :
3349 ac_compiler_gnu=yes
3350 else
3351 ac_compiler_gnu=no
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3358 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3359 if test $ac_compiler_gnu = yes; then
3360 GCC=yes
3361 else
3362 GCC=
3364 ac_test_CFLAGS=${CFLAGS+set}
3365 ac_save_CFLAGS=$CFLAGS
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3367 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3368 if test "${ac_cv_prog_cc_g+set}" = set; then :
3369 $as_echo_n "(cached) " >&6
3370 else
3371 ac_save_c_werror_flag=$ac_c_werror_flag
3372 ac_c_werror_flag=yes
3373 ac_cv_prog_cc_g=no
3374 CFLAGS="-g"
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3379 main ()
3383 return 0;
3385 _ACEOF
3386 if ac_fn_c_try_compile "$LINENO"; then :
3387 ac_cv_prog_cc_g=yes
3388 else
3389 CFLAGS=""
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3394 main ()
3398 return 0;
3400 _ACEOF
3401 if ac_fn_c_try_compile "$LINENO"; then :
3403 else
3404 ac_c_werror_flag=$ac_save_c_werror_flag
3405 CFLAGS="-g"
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3410 main ()
3414 return 0;
3416 _ACEOF
3417 if ac_fn_c_try_compile "$LINENO"; then :
3418 ac_cv_prog_cc_g=yes
3420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 ac_c_werror_flag=$ac_save_c_werror_flag
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3428 $as_echo "$ac_cv_prog_cc_g" >&6; }
3429 if test "$ac_test_CFLAGS" = set; then
3430 CFLAGS=$ac_save_CFLAGS
3431 elif test $ac_cv_prog_cc_g = yes; then
3432 if test "$GCC" = yes; then
3433 CFLAGS="-g -O2"
3434 else
3435 CFLAGS="-g"
3437 else
3438 if test "$GCC" = yes; then
3439 CFLAGS="-O2"
3440 else
3441 CFLAGS=
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3445 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3446 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3447 $as_echo_n "(cached) " >&6
3448 else
3449 ac_cv_prog_cc_c89=no
3450 ac_save_CC=$CC
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3453 #include <stdarg.h>
3454 #include <stdio.h>
3455 #include <sys/types.h>
3456 #include <sys/stat.h>
3457 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3458 struct buf { int x; };
3459 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3460 static char *e (p, i)
3461 char **p;
3462 int i;
3464 return p[i];
3466 static char *f (char * (*g) (char **, int), char **p, ...)
3468 char *s;
3469 va_list v;
3470 va_start (v,p);
3471 s = g (p, va_arg (v,int));
3472 va_end (v);
3473 return s;
3476 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3477 function prototypes and stuff, but not '\xHH' hex character constants.
3478 These don't provoke an error unfortunately, instead are silently treated
3479 as 'x'. The following induces an error, until -std is added to get
3480 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3481 array size at least. It's necessary to write '\x00'==0 to get something
3482 that's true only with -std. */
3483 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3485 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3486 inside strings and character constants. */
3487 #define FOO(x) 'x'
3488 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3490 int test (int i, double x);
3491 struct s1 {int (*f) (int a);};
3492 struct s2 {int (*f) (double a);};
3493 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3494 int argc;
3495 char **argv;
3497 main ()
3499 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3501 return 0;
3503 _ACEOF
3504 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3505 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3507 CC="$ac_save_CC $ac_arg"
3508 if ac_fn_c_try_compile "$LINENO"; then :
3509 ac_cv_prog_cc_c89=$ac_arg
3511 rm -f core conftest.err conftest.$ac_objext
3512 test "x$ac_cv_prog_cc_c89" != "xno" && break
3513 done
3514 rm -f conftest.$ac_ext
3515 CC=$ac_save_CC
3518 # AC_CACHE_VAL
3519 case "x$ac_cv_prog_cc_c89" in
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3522 $as_echo "none needed" >&6; } ;;
3523 xno)
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3525 $as_echo "unsupported" >&6; } ;;
3527 CC="$CC $ac_cv_prog_cc_c89"
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3529 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3530 esac
3531 if test "x$ac_cv_prog_cc_c89" != xno; then :
3535 ac_ext=c
3536 ac_cpp='$CPP $CPPFLAGS'
3537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541 ac_ext=cpp
3542 ac_cpp='$CXXCPP $CPPFLAGS'
3543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3546 if test -z "$CXX"; then
3547 if test -n "$CCC"; then
3548 CXX=$CCC
3549 else
3550 if test -n "$ac_tool_prefix"; then
3551 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556 $as_echo_n "checking for $ac_word... " >&6; }
3557 if test "${ac_cv_prog_CXX+set}" = set; then :
3558 $as_echo_n "(cached) " >&6
3559 else
3560 if test -n "$CXX"; then
3561 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3562 else
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3570 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3574 done
3575 done
3576 IFS=$as_save_IFS
3580 CXX=$ac_cv_prog_CXX
3581 if test -n "$CXX"; then
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3583 $as_echo "$CXX" >&6; }
3584 else
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3590 test -n "$CXX" && break
3591 done
3593 if test -z "$CXX"; then
3594 ac_ct_CXX=$CXX
3595 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3597 # Extract the first word of "$ac_prog", so it can be a program name with args.
3598 set dummy $ac_prog; ac_word=$2
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600 $as_echo_n "checking for $ac_word... " >&6; }
3601 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 if test -n "$ac_ct_CXX"; then
3605 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3606 else
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 for as_dir in $PATH
3610 IFS=$as_save_IFS
3611 test -z "$as_dir" && as_dir=.
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3614 ac_cv_prog_ac_ct_CXX="$ac_prog"
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 break 2
3618 done
3619 done
3620 IFS=$as_save_IFS
3624 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3625 if test -n "$ac_ct_CXX"; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3627 $as_echo "$ac_ct_CXX" >&6; }
3628 else
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3634 test -n "$ac_ct_CXX" && break
3635 done
3637 if test "x$ac_ct_CXX" = x; then
3638 CXX="g++"
3639 else
3640 case $cross_compiling:$ac_tool_warned in
3641 yes:)
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3644 ac_tool_warned=yes ;;
3645 esac
3646 CXX=$ac_ct_CXX
3652 # Provide some information about the compiler.
3653 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3654 set X $ac_compile
3655 ac_compiler=$2
3656 for ac_option in --version -v -V -qversion; do
3657 { { ac_try="$ac_compiler $ac_option >&5"
3658 case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661 esac
3662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663 $as_echo "$ac_try_echo"; } >&5
3664 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3665 ac_status=$?
3666 if test -s conftest.err; then
3667 sed '10a\
3668 ... rest of stderr output deleted ...
3669 10q' conftest.err >conftest.er1
3670 cat conftest.er1 >&5
3671 rm -f conftest.er1 conftest.err
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }
3675 done
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3678 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3679 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3686 main ()
3688 #ifndef __GNUC__
3689 choke me
3690 #endif
3693 return 0;
3695 _ACEOF
3696 if ac_fn_cxx_try_compile "$LINENO"; then :
3697 ac_compiler_gnu=yes
3698 else
3699 ac_compiler_gnu=no
3701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3706 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3707 if test $ac_compiler_gnu = yes; then
3708 GXX=yes
3709 else
3710 GXX=
3712 ac_test_CXXFLAGS=${CXXFLAGS+set}
3713 ac_save_CXXFLAGS=$CXXFLAGS
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3715 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3716 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3720 ac_cxx_werror_flag=yes
3721 ac_cv_prog_cxx_g=no
3722 CXXFLAGS="-g"
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3727 main ()
3731 return 0;
3733 _ACEOF
3734 if ac_fn_cxx_try_compile "$LINENO"; then :
3735 ac_cv_prog_cxx_g=yes
3736 else
3737 CXXFLAGS=""
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3742 main ()
3746 return 0;
3748 _ACEOF
3749 if ac_fn_cxx_try_compile "$LINENO"; then :
3751 else
3752 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3753 CXXFLAGS="-g"
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3758 main ()
3762 return 0;
3764 _ACEOF
3765 if ac_fn_cxx_try_compile "$LINENO"; then :
3766 ac_cv_prog_cxx_g=yes
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3776 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3777 if test "$ac_test_CXXFLAGS" = set; then
3778 CXXFLAGS=$ac_save_CXXFLAGS
3779 elif test $ac_cv_prog_cxx_g = yes; then
3780 if test "$GXX" = yes; then
3781 CXXFLAGS="-g -O2"
3782 else
3783 CXXFLAGS="-g"
3785 else
3786 if test "$GXX" = yes; then
3787 CXXFLAGS="-O2"
3788 else
3789 CXXFLAGS=
3792 ac_ext=c
3793 ac_cpp='$CPP $CPPFLAGS'
3794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3798 if test -n "$ac_tool_prefix"; then
3799 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3800 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3805 else
3806 if test -n "$RANLIB"; then
3807 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3812 IFS=$as_save_IFS
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3816 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 break 2
3820 done
3821 done
3822 IFS=$as_save_IFS
3826 RANLIB=$ac_cv_prog_RANLIB
3827 if test -n "$RANLIB"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3829 $as_echo "$RANLIB" >&6; }
3830 else
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3837 if test -z "$ac_cv_prog_RANLIB"; then
3838 ac_ct_RANLIB=$RANLIB
3839 # Extract the first word of "ranlib", so it can be a program name with args.
3840 set dummy ranlib; ac_word=$2
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 $as_echo_n "checking for $ac_word... " >&6; }
3843 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3844 $as_echo_n "(cached) " >&6
3845 else
3846 if test -n "$ac_ct_RANLIB"; then
3847 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3848 else
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3856 ac_cv_prog_ac_ct_RANLIB="ranlib"
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 break 2
3860 done
3861 done
3862 IFS=$as_save_IFS
3866 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3867 if test -n "$ac_ct_RANLIB"; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3869 $as_echo "$ac_ct_RANLIB" >&6; }
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3875 if test "x$ac_ct_RANLIB" = x; then
3876 RANLIB=":"
3877 else
3878 case $cross_compiling:$ac_tool_warned in
3879 yes:)
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3882 ac_tool_warned=yes ;;
3883 esac
3884 RANLIB=$ac_ct_RANLIB
3886 else
3887 RANLIB="$ac_cv_prog_RANLIB"
3892 ac_ext=c
3893 ac_cpp='$CPP $CPPFLAGS'
3894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3898 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3899 # On Suns, sometimes $CPP names a directory.
3900 if test -n "$CPP" && test -d "$CPP"; then
3901 CPP=
3903 if test -z "$CPP"; then
3904 if test "${ac_cv_prog_CPP+set}" = set; then :
3905 $as_echo_n "(cached) " >&6
3906 else
3907 # Double quotes because CPP needs to be expanded
3908 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3910 ac_preproc_ok=false
3911 for ac_c_preproc_warn_flag in '' yes
3913 # Use a header file that comes with gcc, so configuring glibc
3914 # with a fresh cross-compiler works.
3915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3916 # <limits.h> exists even on freestanding compilers.
3917 # On the NeXT, cc -E runs the code through the compiler's parser,
3918 # not just through cpp. "Syntax error" is here to catch this case.
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3921 #ifdef __STDC__
3922 # include <limits.h>
3923 #else
3924 # include <assert.h>
3925 #endif
3926 Syntax error
3927 _ACEOF
3928 if ac_fn_c_try_cpp "$LINENO"; then :
3930 else
3931 # Broken: fails on valid input.
3932 continue
3934 rm -f conftest.err conftest.$ac_ext
3936 # OK, works on sane cases. Now check whether nonexistent headers
3937 # can be detected and how.
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3940 #include <ac_nonexistent.h>
3941 _ACEOF
3942 if ac_fn_c_try_cpp "$LINENO"; then :
3943 # Broken: success on invalid input.
3944 continue
3945 else
3946 # Passes both tests.
3947 ac_preproc_ok=:
3948 break
3950 rm -f conftest.err conftest.$ac_ext
3952 done
3953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3954 rm -f conftest.err conftest.$ac_ext
3955 if $ac_preproc_ok; then :
3956 break
3959 done
3960 ac_cv_prog_CPP=$CPP
3963 CPP=$ac_cv_prog_CPP
3964 else
3965 ac_cv_prog_CPP=$CPP
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3968 $as_echo "$CPP" >&6; }
3969 ac_preproc_ok=false
3970 for ac_c_preproc_warn_flag in '' yes
3972 # Use a header file that comes with gcc, so configuring glibc
3973 # with a fresh cross-compiler works.
3974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3975 # <limits.h> exists even on freestanding compilers.
3976 # On the NeXT, cc -E runs the code through the compiler's parser,
3977 # not just through cpp. "Syntax error" is here to catch this case.
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3980 #ifdef __STDC__
3981 # include <limits.h>
3982 #else
3983 # include <assert.h>
3984 #endif
3985 Syntax error
3986 _ACEOF
3987 if ac_fn_c_try_cpp "$LINENO"; then :
3989 else
3990 # Broken: fails on valid input.
3991 continue
3993 rm -f conftest.err conftest.$ac_ext
3995 # OK, works on sane cases. Now check whether nonexistent headers
3996 # can be detected and how.
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
3999 #include <ac_nonexistent.h>
4000 _ACEOF
4001 if ac_fn_c_try_cpp "$LINENO"; then :
4002 # Broken: success on invalid input.
4003 continue
4004 else
4005 # Passes both tests.
4006 ac_preproc_ok=:
4007 break
4009 rm -f conftest.err conftest.$ac_ext
4011 done
4012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4013 rm -f conftest.err conftest.$ac_ext
4014 if $ac_preproc_ok; then :
4016 else
4017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4019 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4020 See \`config.log' for more details." "$LINENO" 5; }
4023 ac_ext=c
4024 ac_cpp='$CPP $CPPFLAGS'
4025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4031 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4032 if test "${ac_cv_path_GREP+set}" = set; then :
4033 $as_echo_n "(cached) " >&6
4034 else
4035 if test -z "$GREP"; then
4036 ac_path_GREP_found=false
4037 # Loop through the user's path and test for each of PROGNAME-LIST
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
4043 for ac_prog in grep ggrep; do
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4046 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4047 # Check for GNU ac_path_GREP and select it if it is found.
4048 # Check for GNU $ac_path_GREP
4049 case `"$ac_path_GREP" --version 2>&1` in
4050 *GNU*)
4051 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4053 ac_count=0
4054 $as_echo_n 0123456789 >"conftest.in"
4055 while :
4057 cat "conftest.in" "conftest.in" >"conftest.tmp"
4058 mv "conftest.tmp" "conftest.in"
4059 cp "conftest.in" "conftest.nl"
4060 $as_echo 'GREP' >> "conftest.nl"
4061 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4062 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4063 as_fn_arith $ac_count + 1 && ac_count=$as_val
4064 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4065 # Best one so far, save it but keep looking for a better one
4066 ac_cv_path_GREP="$ac_path_GREP"
4067 ac_path_GREP_max=$ac_count
4069 # 10*(2^10) chars as input seems more than enough
4070 test $ac_count -gt 10 && break
4071 done
4072 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4073 esac
4075 $ac_path_GREP_found && break 3
4076 done
4077 done
4078 done
4079 IFS=$as_save_IFS
4080 if test -z "$ac_cv_path_GREP"; then
4081 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4083 else
4084 ac_cv_path_GREP=$GREP
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4089 $as_echo "$ac_cv_path_GREP" >&6; }
4090 GREP="$ac_cv_path_GREP"
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4094 $as_echo_n "checking for egrep... " >&6; }
4095 if test "${ac_cv_path_EGREP+set}" = set; then :
4096 $as_echo_n "(cached) " >&6
4097 else
4098 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4099 then ac_cv_path_EGREP="$GREP -E"
4100 else
4101 if test -z "$EGREP"; then
4102 ac_path_EGREP_found=false
4103 # Loop through the user's path and test for each of PROGNAME-LIST
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_prog in egrep; do
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4112 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4113 # Check for GNU ac_path_EGREP and select it if it is found.
4114 # Check for GNU $ac_path_EGREP
4115 case `"$ac_path_EGREP" --version 2>&1` in
4116 *GNU*)
4117 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4119 ac_count=0
4120 $as_echo_n 0123456789 >"conftest.in"
4121 while :
4123 cat "conftest.in" "conftest.in" >"conftest.tmp"
4124 mv "conftest.tmp" "conftest.in"
4125 cp "conftest.in" "conftest.nl"
4126 $as_echo 'EGREP' >> "conftest.nl"
4127 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4129 as_fn_arith $ac_count + 1 && ac_count=$as_val
4130 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4131 # Best one so far, save it but keep looking for a better one
4132 ac_cv_path_EGREP="$ac_path_EGREP"
4133 ac_path_EGREP_max=$ac_count
4135 # 10*(2^10) chars as input seems more than enough
4136 test $ac_count -gt 10 && break
4137 done
4138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4139 esac
4141 $ac_path_EGREP_found && break 3
4142 done
4143 done
4144 done
4145 IFS=$as_save_IFS
4146 if test -z "$ac_cv_path_EGREP"; then
4147 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4149 else
4150 ac_cv_path_EGREP=$EGREP
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4156 $as_echo "$ac_cv_path_EGREP" >&6; }
4157 EGREP="$ac_cv_path_EGREP"
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4161 $as_echo_n "checking for ANSI C header files... " >&6; }
4162 if test "${ac_cv_header_stdc+set}" = set; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4167 #include <stdlib.h>
4168 #include <stdarg.h>
4169 #include <string.h>
4170 #include <float.h>
4173 main ()
4177 return 0;
4179 _ACEOF
4180 if ac_fn_c_try_compile "$LINENO"; then :
4181 ac_cv_header_stdc=yes
4182 else
4183 ac_cv_header_stdc=no
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 if test $ac_cv_header_stdc = yes; then
4188 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 #include <string.h>
4193 _ACEOF
4194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4195 $EGREP "memchr" >/dev/null 2>&1; then :
4197 else
4198 ac_cv_header_stdc=no
4200 rm -f conftest*
4204 if test $ac_cv_header_stdc = yes; then
4205 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208 #include <stdlib.h>
4210 _ACEOF
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212 $EGREP "free" >/dev/null 2>&1; then :
4214 else
4215 ac_cv_header_stdc=no
4217 rm -f conftest*
4221 if test $ac_cv_header_stdc = yes; then
4222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4223 if test "$cross_compiling" = yes; then :
4225 else
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228 #include <ctype.h>
4229 #include <stdlib.h>
4230 #if ((' ' & 0x0FF) == 0x020)
4231 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4232 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4233 #else
4234 # define ISLOWER(c) \
4235 (('a' <= (c) && (c) <= 'i') \
4236 || ('j' <= (c) && (c) <= 'r') \
4237 || ('s' <= (c) && (c) <= 'z'))
4238 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4239 #endif
4241 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4243 main ()
4245 int i;
4246 for (i = 0; i < 256; i++)
4247 if (XOR (islower (i), ISLOWER (i))
4248 || toupper (i) != TOUPPER (i))
4249 return 2;
4250 return 0;
4252 _ACEOF
4253 if ac_fn_c_try_run "$LINENO"; then :
4255 else
4256 ac_cv_header_stdc=no
4258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4259 conftest.$ac_objext conftest.beam conftest.$ac_ext
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4265 $as_echo "$ac_cv_header_stdc" >&6; }
4266 if test $ac_cv_header_stdc = yes; then
4268 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4272 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4273 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4274 inttypes.h stdint.h unistd.h
4275 do :
4276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4277 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4279 eval as_val=\$$as_ac_Header
4280 if test "x$as_val" = x""yes; then :
4281 cat >>confdefs.h <<_ACEOF
4282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4283 _ACEOF
4287 done
4291 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4292 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4293 MINIX=yes
4294 else
4295 MINIX=
4299 if test "$MINIX" = yes; then
4301 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4304 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4307 $as_echo "#define _MINIX 1" >>confdefs.h
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4313 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4314 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4320 # define __EXTENSIONS__ 1
4321 $ac_includes_default
4323 main ()
4327 return 0;
4329 _ACEOF
4330 if ac_fn_c_try_compile "$LINENO"; then :
4331 ac_cv_safe_to_define___extensions__=yes
4332 else
4333 ac_cv_safe_to_define___extensions__=no
4335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4338 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4339 test $ac_cv_safe_to_define___extensions__ = yes &&
4340 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4342 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4344 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4346 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4348 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4351 # Check whether --enable-largefile was given.
4352 if test "${enable_largefile+set}" = set; then :
4353 enableval=$enable_largefile;
4356 if test "$enable_largefile" != no; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4359 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4360 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4361 $as_echo_n "(cached) " >&6
4362 else
4363 ac_cv_sys_largefile_CC=no
4364 if test "$GCC" != yes; then
4365 ac_save_CC=$CC
4366 while :; do
4367 # IRIX 6.2 and later do not support large files by default,
4368 # so use the C compiler's -n32 option if that helps.
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371 #include <sys/types.h>
4372 /* Check that off_t can represent 2**63 - 1 correctly.
4373 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4374 since some C++ compilers masquerading as C compilers
4375 incorrectly reject 9223372036854775807. */
4376 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4377 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4378 && LARGE_OFF_T % 2147483647 == 1)
4379 ? 1 : -1];
4381 main ()
4385 return 0;
4387 _ACEOF
4388 if ac_fn_c_try_compile "$LINENO"; then :
4389 break
4391 rm -f core conftest.err conftest.$ac_objext
4392 CC="$CC -n32"
4393 if ac_fn_c_try_compile "$LINENO"; then :
4394 ac_cv_sys_largefile_CC=' -n32'; break
4396 rm -f core conftest.err conftest.$ac_objext
4397 break
4398 done
4399 CC=$ac_save_CC
4400 rm -f conftest.$ac_ext
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4404 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4405 if test "$ac_cv_sys_largefile_CC" != no; then
4406 CC=$CC$ac_cv_sys_largefile_CC
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4410 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4411 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 while :; do
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 #include <sys/types.h>
4418 /* Check that off_t can represent 2**63 - 1 correctly.
4419 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4420 since some C++ compilers masquerading as C compilers
4421 incorrectly reject 9223372036854775807. */
4422 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4423 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4424 && LARGE_OFF_T % 2147483647 == 1)
4425 ? 1 : -1];
4427 main ()
4431 return 0;
4433 _ACEOF
4434 if ac_fn_c_try_compile "$LINENO"; then :
4435 ac_cv_sys_file_offset_bits=no; break
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4440 #define _FILE_OFFSET_BITS 64
4441 #include <sys/types.h>
4442 /* Check that off_t can represent 2**63 - 1 correctly.
4443 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4444 since some C++ compilers masquerading as C compilers
4445 incorrectly reject 9223372036854775807. */
4446 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4447 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4448 && LARGE_OFF_T % 2147483647 == 1)
4449 ? 1 : -1];
4451 main ()
4455 return 0;
4457 _ACEOF
4458 if ac_fn_c_try_compile "$LINENO"; then :
4459 ac_cv_sys_file_offset_bits=64; break
4461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4462 ac_cv_sys_file_offset_bits=unknown
4463 break
4464 done
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4467 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4468 case $ac_cv_sys_file_offset_bits in #(
4469 no | unknown) ;;
4471 cat >>confdefs.h <<_ACEOF
4472 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4473 _ACEOF
4475 esac
4476 rm -rf conftest*
4477 if test $ac_cv_sys_file_offset_bits = unknown; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4479 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4480 if test "${ac_cv_sys_large_files+set}" = set; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 while :; do
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4486 #include <sys/types.h>
4487 /* Check that off_t can represent 2**63 - 1 correctly.
4488 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4489 since some C++ compilers masquerading as C compilers
4490 incorrectly reject 9223372036854775807. */
4491 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4492 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4493 && LARGE_OFF_T % 2147483647 == 1)
4494 ? 1 : -1];
4496 main ()
4500 return 0;
4502 _ACEOF
4503 if ac_fn_c_try_compile "$LINENO"; then :
4504 ac_cv_sys_large_files=no; break
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4509 #define _LARGE_FILES 1
4510 #include <sys/types.h>
4511 /* Check that off_t can represent 2**63 - 1 correctly.
4512 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4513 since some C++ compilers masquerading as C compilers
4514 incorrectly reject 9223372036854775807. */
4515 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4516 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4517 && LARGE_OFF_T % 2147483647 == 1)
4518 ? 1 : -1];
4520 main ()
4524 return 0;
4526 _ACEOF
4527 if ac_fn_c_try_compile "$LINENO"; then :
4528 ac_cv_sys_large_files=1; break
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 ac_cv_sys_large_files=unknown
4532 break
4533 done
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4536 $as_echo "$ac_cv_sys_large_files" >&6; }
4537 case $ac_cv_sys_large_files in #(
4538 no | unknown) ;;
4540 cat >>confdefs.h <<_ACEOF
4541 #define _LARGE_FILES $ac_cv_sys_large_files
4542 _ACEOF
4544 esac
4545 rm -rf conftest*
4550 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4551 for ac_prog in aclocal
4553 # Extract the first word of "$ac_prog", so it can be a program name with args.
4554 set dummy $ac_prog; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$ACLOCAL"; then
4561 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_ACLOCAL="$ac_prog"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4574 done
4575 done
4576 IFS=$as_save_IFS
4580 ACLOCAL=$ac_cv_prog_ACLOCAL
4581 if test -n "$ACLOCAL"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4583 $as_echo "$ACLOCAL" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4590 test -n "$ACLOCAL" && break
4591 done
4592 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
4594 for ac_prog in autoconf
4596 # Extract the first word of "$ac_prog", so it can be a program name with args.
4597 set dummy $ac_prog; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 if test -n "$AUTOCONF"; then
4604 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4613 ac_cv_prog_AUTOCONF="$ac_prog"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4617 done
4618 done
4619 IFS=$as_save_IFS
4623 AUTOCONF=$ac_cv_prog_AUTOCONF
4624 if test -n "$AUTOCONF"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4626 $as_echo "$AUTOCONF" >&6; }
4627 else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4633 test -n "$AUTOCONF" && break
4634 done
4635 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
4637 for ac_prog in autoheader
4639 # Extract the first word of "$ac_prog", so it can be a program name with args.
4640 set dummy $ac_prog; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 if test -n "$AUTOHEADER"; then
4647 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_AUTOHEADER="$ac_prog"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4660 done
4661 done
4662 IFS=$as_save_IFS
4666 AUTOHEADER=$ac_cv_prog_AUTOHEADER
4667 if test -n "$AUTOHEADER"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4669 $as_echo "$AUTOHEADER" >&6; }
4670 else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4676 test -n "$AUTOHEADER" && break
4677 done
4678 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
4681 # Figure out what compiler warnings we can enable.
4682 # See config/warnings.m4 for details.
4684 warn=
4685 save_CFLAGS="$CFLAGS"
4686 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
4687 -Wmissing-format-attribute; do
4688 # Do the check with the no- prefix removed since gcc silently
4689 # accepts any -Wno-* option on purpose
4690 case $real_option in
4691 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4692 *) option=$real_option ;;
4693 esac
4694 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4697 $as_echo_n "checking whether $CC supports $option... " >&6; }
4698 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4699 $as_echo_n "(cached) " >&6
4700 else
4701 CFLAGS="$option"
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4706 main ()
4710 return 0;
4712 _ACEOF
4713 if ac_fn_c_try_compile "$LINENO"; then :
4714 eval "$as_acx_Woption=yes"
4715 else
4716 eval "$as_acx_Woption=no"
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 eval ac_res=\$$as_acx_Woption
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4723 $as_echo "$ac_res" >&6; }
4724 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4725 warn="$warn${warn:+ }$real_option"
4727 done
4728 CFLAGS="$save_CFLAGS"
4730 c_warn=
4731 save_CFLAGS="$CFLAGS"
4732 for real_option in -Wstrict-prototypes -Wmissing-prototypes \
4733 -Wold-style-definition -Wc++-compat; do
4734 # Do the check with the no- prefix removed since gcc silently
4735 # accepts any -Wno-* option on purpose
4736 case $real_option in
4737 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4738 *) option=$real_option ;;
4739 esac
4740 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4743 $as_echo_n "checking whether $CC supports $option... " >&6; }
4744 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 CFLAGS="$option"
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4752 main ()
4756 return 0;
4758 _ACEOF
4759 if ac_fn_c_try_compile "$LINENO"; then :
4760 eval "$as_acx_Woption=yes"
4761 else
4762 eval "$as_acx_Woption=no"
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 eval ac_res=\$$as_acx_Woption
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4769 $as_echo "$ac_res" >&6; }
4770 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4771 c_warn="$c_warn${c_warn:+ }$real_option"
4773 done
4774 CFLAGS="$save_CFLAGS"
4776 WARN_PEDANTIC=
4777 # Do the check with the no- prefix removed from the warning options
4778 # since gcc silently accepts any -Wno-* option on purpose
4779 if test "$GCC" = yes; then :
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
4781 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
4782 if test "${acx_cv_prog_cc_pedantic__Wlong_long+set}" = set; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 save_CFLAGS="$CFLAGS"
4786 CFLAGS="-pedantic -Wlong-long"
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4791 main ()
4795 return 0;
4797 _ACEOF
4798 if ac_fn_c_try_compile "$LINENO"; then :
4799 acx_cv_prog_cc_pedantic__Wlong_long=yes
4800 else
4801 acx_cv_prog_cc_pedantic__Wlong_long=no
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 CFLAGS="$save_CFLAGS"
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
4807 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
4808 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
4809 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
4815 # Disable exceptions and RTTI if building with g++
4816 noexception_flags=
4817 save_CFLAGS="$CFLAGS"
4818 for real_option in -fno-exceptions -fno-rtti; do
4819 # Do the check with the no- prefix removed since gcc silently
4820 # accepts any -Wno-* option on purpose
4821 case $real_option in
4822 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4823 *) option=$real_option ;;
4824 esac
4825 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4828 $as_echo_n "checking whether $CC supports $option... " >&6; }
4829 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 CFLAGS="$option"
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4837 main ()
4841 return 0;
4843 _ACEOF
4844 if ac_fn_c_try_compile "$LINENO"; then :
4845 eval "$as_acx_Woption=yes"
4846 else
4847 eval "$as_acx_Woption=no"
4849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852 eval ac_res=\$$as_acx_Woption
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4854 $as_echo "$ac_res" >&6; }
4855 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4856 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
4858 done
4859 CFLAGS="$save_CFLAGS"
4862 # Only enable with --enable-werror-always until existing warnings are
4863 # corrected.
4864 WERROR=
4865 # Check whether --enable-werror-always was given.
4866 if test "${enable_werror_always+set}" = set; then :
4867 enableval=$enable_werror_always;
4868 else
4869 enable_werror_always=no
4872 if test $enable_werror_always = yes; then :
4873 WERROR="$WERROR${WERROR:+ }-Werror"
4878 # Dependency checking.
4879 rm -rf .tst 2>/dev/null
4880 mkdir .tst 2>/dev/null
4881 if test -d .tst; then
4882 am__leading_dot=.
4883 else
4884 am__leading_dot=_
4886 rmdir .tst 2>/dev/null
4888 DEPDIR="${am__leading_dot}deps"
4890 ac_config_commands="$ac_config_commands depdir"
4893 ac_ext=cpp
4894 ac_cpp='$CXXCPP $CPPFLAGS'
4895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4902 int i;
4903 _ACEOF
4904 if ac_fn_cxx_try_compile "$LINENO"; then :
4906 else
4907 as_fn_error "C++ compiler missing or inoperational" "$LINENO" 5
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 ac_ext=c
4911 ac_cpp='$CPP $CPPFLAGS'
4912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916 depcc="$CXX" am_compiler_list=
4918 am_depcomp=$ac_aux_dir/depcomp
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4920 $as_echo_n "checking dependency style of $depcc... " >&6; }
4921 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 if test -f "$am_depcomp"; then
4925 # We make a subdir and do the tests there. Otherwise we can end up
4926 # making bogus files that we don't know about and never remove. For
4927 # instance it was reported that on HP-UX the gcc test will end up
4928 # making a dummy file named `D' -- because `-MD' means `put the output
4929 # in D'.
4930 mkdir conftest.dir
4931 # Copy depcomp to subdir because otherwise we won't find it if we're
4932 # using a relative directory.
4933 cp "$am_depcomp" conftest.dir
4934 cd conftest.dir
4935 # We will build objects and dependencies in a subdirectory because
4936 # it helps to detect inapplicable dependency modes. For instance
4937 # both Tru64's cc and ICC support -MD to output dependencies as a
4938 # side effect of compilation, but ICC will put the dependencies in
4939 # the current directory while Tru64 will put them in the object
4940 # directory.
4941 mkdir sub
4943 am_cv_CXX_dependencies_compiler_type=none
4944 if test "$am_compiler_list" = ""; then
4945 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4947 for depmode in $am_compiler_list; do
4948 if test $depmode = none; then break; fi
4950 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4951 # Setup a source with many dependencies, because some compilers
4952 # like to wrap large dependency lists on column 80 (with \), and
4953 # we should not choose a depcomp mode which is confused by this.
4955 # We need to recreate these files for each test, as the compiler may
4956 # overwrite some of them when testing with obscure command lines.
4957 # This happens at least with the AIX C compiler.
4958 : > sub/conftest.c
4959 for i in 1 2 3 4 5 6; do
4960 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4961 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4962 # Solaris 8's {/usr,}/bin/sh.
4963 touch sub/conftst$i.h
4964 done
4965 echo "include sub/conftest.Po" > confmf
4967 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4968 # mode. It turns out that the SunPro C++ compiler does not properly
4969 # handle `-M -o', and we need to detect this.
4970 depcmd="depmode=$depmode \
4971 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4972 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4973 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4974 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4975 if env $depcmd > conftest.err 2>&1 &&
4976 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4977 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4978 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4979 # icc doesn't choke on unknown options, it will just issue warnings
4980 # or remarks (even with -Werror). So we grep stderr for any message
4981 # that says an option was ignored or not supported.
4982 # When given -MP, icc 7.0 and 7.1 complain thusly:
4983 # icc: Command line warning: ignoring option '-M'; no argument required
4984 # The diagnosis changed in icc 8.0:
4985 # icc: Command line remark: option '-MP' not supported
4986 if (grep 'ignoring option' conftest.err ||
4987 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4988 am_cv_CXX_dependencies_compiler_type=$depmode
4989 $as_echo "$as_me:$LINENO: success" >&5
4990 break
4993 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4994 sed -e 's/^/| /' < conftest.err >&5
4995 done
4997 cd ..
4998 rm -rf conftest.dir
4999 else
5000 am_cv_CXX_dependencies_compiler_type=none
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5005 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5006 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
5007 then as_fn_error "no usable dependency style found" "$LINENO" 5
5008 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5013 # Checks for header files.
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5015 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5016 if test "${ac_cv_header_time+set}" = set; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5021 #include <sys/types.h>
5022 #include <sys/time.h>
5023 #include <time.h>
5026 main ()
5028 if ((struct tm *) 0)
5029 return 0;
5031 return 0;
5033 _ACEOF
5034 if ac_fn_c_try_compile "$LINENO"; then :
5035 ac_cv_header_time=yes
5036 else
5037 ac_cv_header_time=no
5039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5042 $as_echo "$ac_cv_header_time" >&6; }
5043 if test $ac_cv_header_time = yes; then
5045 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5050 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5051 if test "${gcc_cv_header_string+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5056 #include <string.h>
5057 #include <strings.h>
5059 main ()
5063 return 0;
5065 _ACEOF
5066 if ac_fn_c_try_compile "$LINENO"; then :
5067 gcc_cv_header_string=yes
5068 else
5069 gcc_cv_header_string=no
5071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5074 $as_echo "$gcc_cv_header_string" >&6; }
5075 if test $gcc_cv_header_string = yes; then
5077 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5082 for ac_header in locale.h fcntl.h limits.h stddef.h \
5083 stdlib.h strings.h string.h sys/file.h unistd.h
5084 do :
5085 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5086 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5087 eval as_val=\$$as_ac_Header
5088 if test "x$as_val" = x""yes; then :
5089 cat >>confdefs.h <<_ACEOF
5090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5091 _ACEOF
5095 done
5098 # Checks for typedefs, structures, and compiler characteristics.
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5100 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5101 if test "${ac_cv_c_bigendian+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 ac_cv_c_bigendian=unknown
5105 # See if we're dealing with a universal compiler.
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108 #ifndef __APPLE_CC__
5109 not a universal capable compiler
5110 #endif
5111 typedef int dummy;
5113 _ACEOF
5114 if ac_fn_c_try_compile "$LINENO"; then :
5116 # Check for potential -arch flags. It is not universal unless
5117 # there are at least two -arch flags with different values.
5118 ac_arch=
5119 ac_prev=
5120 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5121 if test -n "$ac_prev"; then
5122 case $ac_word in
5123 i?86 | x86_64 | ppc | ppc64)
5124 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5125 ac_arch=$ac_word
5126 else
5127 ac_cv_c_bigendian=universal
5128 break
5131 esac
5132 ac_prev=
5133 elif test "x$ac_word" = "x-arch"; then
5134 ac_prev=arch
5136 done
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139 if test $ac_cv_c_bigendian = unknown; then
5140 # See if sys/param.h defines the BYTE_ORDER macro.
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5143 #include <sys/types.h>
5144 #include <sys/param.h>
5147 main ()
5149 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5150 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5151 && LITTLE_ENDIAN)
5152 bogus endian macros
5153 #endif
5156 return 0;
5158 _ACEOF
5159 if ac_fn_c_try_compile "$LINENO"; then :
5160 # It does; now see whether it defined to BIG_ENDIAN or not.
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #include <sys/types.h>
5164 #include <sys/param.h>
5167 main ()
5169 #if BYTE_ORDER != BIG_ENDIAN
5170 not big endian
5171 #endif
5174 return 0;
5176 _ACEOF
5177 if ac_fn_c_try_compile "$LINENO"; then :
5178 ac_cv_c_bigendian=yes
5179 else
5180 ac_cv_c_bigendian=no
5182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186 if test $ac_cv_c_bigendian = unknown; then
5187 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h. */
5190 #include <limits.h>
5193 main ()
5195 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5196 bogus endian macros
5197 #endif
5200 return 0;
5202 _ACEOF
5203 if ac_fn_c_try_compile "$LINENO"; then :
5204 # It does; now see whether it defined to _BIG_ENDIAN or not.
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5207 #include <limits.h>
5210 main ()
5212 #ifndef _BIG_ENDIAN
5213 not big endian
5214 #endif
5217 return 0;
5219 _ACEOF
5220 if ac_fn_c_try_compile "$LINENO"; then :
5221 ac_cv_c_bigendian=yes
5222 else
5223 ac_cv_c_bigendian=no
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5229 if test $ac_cv_c_bigendian = unknown; then
5230 # Compile a test program.
5231 if test "$cross_compiling" = yes; then :
5232 # Try to guess by grepping values from an object file.
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5235 short int ascii_mm[] =
5236 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5237 short int ascii_ii[] =
5238 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5239 int use_ascii (int i) {
5240 return ascii_mm[i] + ascii_ii[i];
5242 short int ebcdic_ii[] =
5243 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5244 short int ebcdic_mm[] =
5245 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5246 int use_ebcdic (int i) {
5247 return ebcdic_mm[i] + ebcdic_ii[i];
5249 extern int foo;
5252 main ()
5254 return use_ascii (foo) == use_ebcdic (foo);
5256 return 0;
5258 _ACEOF
5259 if ac_fn_c_try_compile "$LINENO"; then :
5260 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5261 ac_cv_c_bigendian=yes
5263 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5264 if test "$ac_cv_c_bigendian" = unknown; then
5265 ac_cv_c_bigendian=no
5266 else
5267 # finding both strings is unlikely to happen, but who knows?
5268 ac_cv_c_bigendian=unknown
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273 else
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5276 $ac_includes_default
5278 main ()
5281 /* Are we little or big endian? From Harbison&Steele. */
5282 union
5284 long int l;
5285 char c[sizeof (long int)];
5286 } u;
5287 u.l = 1;
5288 return u.c[sizeof (long int) - 1] == 1;
5291 return 0;
5293 _ACEOF
5294 if ac_fn_c_try_run "$LINENO"; then :
5295 ac_cv_c_bigendian=no
5296 else
5297 ac_cv_c_bigendian=yes
5299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5300 conftest.$ac_objext conftest.beam conftest.$ac_ext
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5306 $as_echo "$ac_cv_c_bigendian" >&6; }
5307 case $ac_cv_c_bigendian in #(
5308 yes)
5309 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5310 ;; #(
5312 ;; #(
5313 universal)
5315 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5317 ;; #(
5319 as_fn_error "unknown endianness
5320 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5321 esac
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5324 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5325 if test "${ac_cv_c_const+set}" = set; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5332 main ()
5334 /* FIXME: Include the comments suggested by Paul. */
5335 #ifndef __cplusplus
5336 /* Ultrix mips cc rejects this. */
5337 typedef int charset[2];
5338 const charset cs;
5339 /* SunOS 4.1.1 cc rejects this. */
5340 char const *const *pcpcc;
5341 char **ppc;
5342 /* NEC SVR4.0.2 mips cc rejects this. */
5343 struct point {int x, y;};
5344 static struct point const zero = {0,0};
5345 /* AIX XL C 1.02.0.0 rejects this.
5346 It does not let you subtract one const X* pointer from another in
5347 an arm of an if-expression whose if-part is not a constant
5348 expression */
5349 const char *g = "string";
5350 pcpcc = &g + (g ? g-g : 0);
5351 /* HPUX 7.0 cc rejects these. */
5352 ++pcpcc;
5353 ppc = (char**) pcpcc;
5354 pcpcc = (char const *const *) ppc;
5355 { /* SCO 3.2v4 cc rejects this. */
5356 char *t;
5357 char const *s = 0 ? (char *) 0 : (char const *) 0;
5359 *t++ = 0;
5360 if (s) return 0;
5362 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5363 int x[] = {25, 17};
5364 const int *foo = &x[0];
5365 ++foo;
5367 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5368 typedef const int *iptr;
5369 iptr p = 0;
5370 ++p;
5372 { /* AIX XL C 1.02.0.0 rejects this saying
5373 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5374 struct s { int j; const int *ap[3]; };
5375 struct s *b; b->j = 5;
5377 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5378 const int foo = 10;
5379 if (!foo) return 0;
5381 return !cs[0] && !zero.x;
5382 #endif
5385 return 0;
5387 _ACEOF
5388 if ac_fn_c_try_compile "$LINENO"; then :
5389 ac_cv_c_const=yes
5390 else
5391 ac_cv_c_const=no
5393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5396 $as_echo "$ac_cv_c_const" >&6; }
5397 if test $ac_cv_c_const = no; then
5399 $as_echo "#define const /**/" >>confdefs.h
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5404 $as_echo_n "checking for inline... " >&6; }
5405 if test "${ac_cv_c_inline+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 ac_cv_c_inline=no
5409 for ac_kw in inline __inline__ __inline; do
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5412 #ifndef __cplusplus
5413 typedef int foo_t;
5414 static $ac_kw foo_t static_foo () {return 0; }
5415 $ac_kw foo_t foo () {return 0; }
5416 #endif
5418 _ACEOF
5419 if ac_fn_c_try_compile "$LINENO"; then :
5420 ac_cv_c_inline=$ac_kw
5422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423 test "$ac_cv_c_inline" != no && break
5424 done
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5428 $as_echo "$ac_cv_c_inline" >&6; }
5430 case $ac_cv_c_inline in
5431 inline | yes) ;;
5433 case $ac_cv_c_inline in
5434 no) ac_val=;;
5435 *) ac_val=$ac_cv_c_inline;;
5436 esac
5437 cat >>confdefs.h <<_ACEOF
5438 #ifndef __cplusplus
5439 #define inline $ac_val
5440 #endif
5441 _ACEOF
5443 esac
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5446 $as_echo_n "checking for obstacks... " >&6; }
5447 if test "${ac_cv_func_obstack+set}" = set; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 $ac_includes_default
5453 #include "obstack.h"
5455 main ()
5457 struct obstack mem;
5458 #define obstack_chunk_alloc malloc
5459 #define obstack_chunk_free free
5460 obstack_init (&mem);
5461 obstack_free (&mem, 0);
5463 return 0;
5465 _ACEOF
5466 if ac_fn_c_try_link "$LINENO"; then :
5467 ac_cv_func_obstack=yes
5468 else
5469 ac_cv_func_obstack=no
5471 rm -f core conftest.err conftest.$ac_objext \
5472 conftest$ac_exeext conftest.$ac_ext
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5475 $as_echo "$ac_cv_func_obstack" >&6; }
5476 if test $ac_cv_func_obstack = yes; then
5478 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5480 else
5481 case " $LIBOBJS " in
5482 *" obstack.$ac_objext "* ) ;;
5483 *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
5485 esac
5489 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5490 if test "x$ac_cv_type_off_t" = x""yes; then :
5492 else
5494 cat >>confdefs.h <<_ACEOF
5495 #define off_t long int
5496 _ACEOF
5500 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5501 if test "x$ac_cv_type_size_t" = x""yes; then :
5503 else
5505 cat >>confdefs.h <<_ACEOF
5506 #define size_t unsigned int
5507 _ACEOF
5511 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5512 if test "x$ac_cv_type_ssize_t" = x""yes; then :
5514 else
5516 cat >>confdefs.h <<_ACEOF
5517 #define ssize_t int
5518 _ACEOF
5523 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5524 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
5526 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5528 else
5529 for ac_type in 'unsigned int' 'unsigned long int' \
5530 'unsigned long long int'; do
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 $ac_includes_default
5535 main ()
5537 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5538 test_array [0] = 0
5541 return 0;
5543 _ACEOF
5544 if ac_fn_c_try_compile "$LINENO"; then :
5546 cat >>confdefs.h <<_ACEOF
5547 #define uintptr_t $ac_type
5548 _ACEOF
5550 ac_type=
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553 test -z "$ac_type" && break
5554 done
5558 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5559 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
5561 else
5563 cat >>confdefs.h <<_ACEOF
5564 #define ptrdiff_t int
5565 _ACEOF
5569 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5570 if test "x$ac_cv_type_long_long" = x""yes; then :
5572 cat >>confdefs.h <<_ACEOF
5573 #define HAVE_LONG_LONG 1
5574 _ACEOF
5576 # The cast to long int works around a bug in the HP C Compiler
5577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5579 # This bug is HP SR number 8606223364.
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5581 $as_echo_n "checking size of long long... " >&6; }
5582 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5587 else
5588 if test "$ac_cv_type_long_long" = yes; then
5589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5591 { as_fn_set_status 77
5592 as_fn_error "cannot compute sizeof (long long)
5593 See \`config.log' for more details." "$LINENO" 5; }; }
5594 else
5595 ac_cv_sizeof_long_long=0
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5601 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5605 cat >>confdefs.h <<_ACEOF
5606 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5607 _ACEOF
5612 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5613 if test "x$ac_cv_type___int64" = x""yes; then :
5615 cat >>confdefs.h <<_ACEOF
5616 #define HAVE___INT64 1
5617 _ACEOF
5619 # The cast to long int works around a bug in the HP C Compiler
5620 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5621 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5622 # This bug is HP SR number 8606223364.
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5624 $as_echo_n "checking size of __int64... " >&6; }
5625 if test "${ac_cv_sizeof___int64+set}" = set; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5628 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5630 else
5631 if test "$ac_cv_type___int64" = yes; then
5632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5634 { as_fn_set_status 77
5635 as_fn_error "cannot compute sizeof (__int64)
5636 See \`config.log' for more details." "$LINENO" 5; }; }
5637 else
5638 ac_cv_sizeof___int64=0
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5644 $as_echo "$ac_cv_sizeof___int64" >&6; }
5648 cat >>confdefs.h <<_ACEOF
5649 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5650 _ACEOF
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5656 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5657 if test "${ac_cv_struct_tm+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662 #include <sys/types.h>
5663 #include <time.h>
5666 main ()
5668 struct tm tm;
5669 int *p = &tm.tm_sec;
5670 return !p;
5672 return 0;
5674 _ACEOF
5675 if ac_fn_c_try_compile "$LINENO"; then :
5676 ac_cv_struct_tm=time.h
5677 else
5678 ac_cv_struct_tm=sys/time.h
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5683 $as_echo "$ac_cv_struct_tm" >&6; }
5684 if test $ac_cv_struct_tm = sys/time.h; then
5686 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5690 # The cast to long int works around a bug in the HP C Compiler
5691 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5692 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5693 # This bug is HP SR number 8606223364.
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5695 $as_echo_n "checking size of int... " >&6; }
5696 if test "${ac_cv_sizeof_int+set}" = set; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5701 else
5702 if test "$ac_cv_type_int" = yes; then
5703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5705 { as_fn_set_status 77
5706 as_fn_error "cannot compute sizeof (int)
5707 See \`config.log' for more details." "$LINENO" 5; }; }
5708 else
5709 ac_cv_sizeof_int=0
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5715 $as_echo "$ac_cv_sizeof_int" >&6; }
5719 cat >>confdefs.h <<_ACEOF
5720 #define SIZEOF_INT $ac_cv_sizeof_int
5721 _ACEOF
5724 # The cast to long int works around a bug in the HP C Compiler
5725 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5726 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5727 # This bug is HP SR number 8606223364.
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5729 $as_echo_n "checking size of long... " >&6; }
5730 if test "${ac_cv_sizeof_long+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5735 else
5736 if test "$ac_cv_type_long" = yes; then
5737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5739 { as_fn_set_status 77
5740 as_fn_error "cannot compute sizeof (long)
5741 See \`config.log' for more details." "$LINENO" 5; }; }
5742 else
5743 ac_cv_sizeof_long=0
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5749 $as_echo "$ac_cv_sizeof_long" >&6; }
5753 cat >>confdefs.h <<_ACEOF
5754 #define SIZEOF_LONG $ac_cv_sizeof_long
5755 _ACEOF
5759 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
5760 do :
5761 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5762 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5763 eval as_val=\$$as_ac_var
5764 if test "x$as_val" = x""yes; then :
5765 cat >>confdefs.h <<_ACEOF
5766 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5767 _ACEOF
5770 done
5772 ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5773 if test "x$ac_cv_have_decl_abort" = x""yes; then :
5774 ac_have_decl=1
5775 else
5776 ac_have_decl=0
5779 cat >>confdefs.h <<_ACEOF
5780 #define HAVE_DECL_ABORT $ac_have_decl
5781 _ACEOF
5782 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5783 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
5784 ac_have_decl=1
5785 else
5786 ac_have_decl=0
5789 cat >>confdefs.h <<_ACEOF
5790 #define HAVE_DECL_ASPRINTF $ac_have_decl
5791 _ACEOF
5792 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
5793 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
5794 ac_have_decl=1
5795 else
5796 ac_have_decl=0
5799 cat >>confdefs.h <<_ACEOF
5800 #define HAVE_DECL_BASENAME $ac_have_decl
5801 _ACEOF
5802 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
5803 if test "x$ac_cv_have_decl_errno" = x""yes; then :
5804 ac_have_decl=1
5805 else
5806 ac_have_decl=0
5809 cat >>confdefs.h <<_ACEOF
5810 #define HAVE_DECL_ERRNO $ac_have_decl
5811 _ACEOF
5812 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
5813 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
5814 ac_have_decl=1
5815 else
5816 ac_have_decl=0
5819 cat >>confdefs.h <<_ACEOF
5820 #define HAVE_DECL_GETOPT $ac_have_decl
5821 _ACEOF
5822 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5823 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
5824 ac_have_decl=1
5825 else
5826 ac_have_decl=0
5829 cat >>confdefs.h <<_ACEOF
5830 #define HAVE_DECL_VASPRINTF $ac_have_decl
5831 _ACEOF
5833 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
5834 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
5835 ac_have_decl=1
5836 else
5837 ac_have_decl=0
5840 cat >>confdefs.h <<_ACEOF
5841 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
5842 _ACEOF
5843 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
5844 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
5845 ac_have_decl=1
5846 else
5847 ac_have_decl=0
5850 cat >>confdefs.h <<_ACEOF
5851 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
5852 _ACEOF
5853 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
5854 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
5855 ac_have_decl=1
5856 else
5857 ac_have_decl=0
5860 cat >>confdefs.h <<_ACEOF
5861 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
5862 _ACEOF
5863 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
5864 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
5865 ac_have_decl=1
5866 else
5867 ac_have_decl=0
5870 cat >>confdefs.h <<_ACEOF
5871 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
5872 _ACEOF
5873 ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
5874 if test "x$ac_cv_have_decl_fgetc_unlocked" = x""yes; then :
5875 ac_have_decl=1
5876 else
5877 ac_have_decl=0
5880 cat >>confdefs.h <<_ACEOF
5881 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
5882 _ACEOF
5883 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
5884 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
5885 ac_have_decl=1
5886 else
5887 ac_have_decl=0
5890 cat >>confdefs.h <<_ACEOF
5891 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
5892 _ACEOF
5893 ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
5894 if test "x$ac_cv_have_decl_fileno_unlocked" = x""yes; then :
5895 ac_have_decl=1
5896 else
5897 ac_have_decl=0
5900 cat >>confdefs.h <<_ACEOF
5901 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
5902 _ACEOF
5903 ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
5904 if test "x$ac_cv_have_decl_fprintf_unlocked" = x""yes; then :
5905 ac_have_decl=1
5906 else
5907 ac_have_decl=0
5910 cat >>confdefs.h <<_ACEOF
5911 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
5912 _ACEOF
5913 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
5914 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
5915 ac_have_decl=1
5916 else
5917 ac_have_decl=0
5920 cat >>confdefs.h <<_ACEOF
5921 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
5922 _ACEOF
5923 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
5924 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then :
5925 ac_have_decl=1
5926 else
5927 ac_have_decl=0
5930 cat >>confdefs.h <<_ACEOF
5931 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
5932 _ACEOF
5933 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
5934 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then :
5935 ac_have_decl=1
5936 else
5937 ac_have_decl=0
5940 cat >>confdefs.h <<_ACEOF
5941 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
5942 _ACEOF
5943 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
5944 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then :
5945 ac_have_decl=1
5946 else
5947 ac_have_decl=0
5950 cat >>confdefs.h <<_ACEOF
5951 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
5952 _ACEOF
5953 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
5954 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then :
5955 ac_have_decl=1
5956 else
5957 ac_have_decl=0
5960 cat >>confdefs.h <<_ACEOF
5961 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
5962 _ACEOF
5963 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
5964 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
5965 ac_have_decl=1
5966 else
5967 ac_have_decl=0
5970 cat >>confdefs.h <<_ACEOF
5971 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
5972 _ACEOF
5973 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
5974 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then :
5975 ac_have_decl=1
5976 else
5977 ac_have_decl=0
5980 cat >>confdefs.h <<_ACEOF
5981 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
5982 _ACEOF
5983 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
5984 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then :
5985 ac_have_decl=1
5986 else
5987 ac_have_decl=0
5990 cat >>confdefs.h <<_ACEOF
5991 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
5992 _ACEOF
5995 # Checks for library functions.
5996 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5997 # for constant arguments. Useless!
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5999 $as_echo_n "checking for working alloca.h... " >&6; }
6000 if test "${ac_cv_working_alloca_h+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6005 #include <alloca.h>
6007 main ()
6009 char *p = (char *) alloca (2 * sizeof (int));
6010 if (p) return 0;
6012 return 0;
6014 _ACEOF
6015 if ac_fn_c_try_link "$LINENO"; then :
6016 ac_cv_working_alloca_h=yes
6017 else
6018 ac_cv_working_alloca_h=no
6020 rm -f core conftest.err conftest.$ac_objext \
6021 conftest$ac_exeext conftest.$ac_ext
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6024 $as_echo "$ac_cv_working_alloca_h" >&6; }
6025 if test $ac_cv_working_alloca_h = yes; then
6027 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6032 $as_echo_n "checking for alloca... " >&6; }
6033 if test "${ac_cv_func_alloca_works+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 #ifdef __GNUC__
6039 # define alloca __builtin_alloca
6040 #else
6041 # ifdef _MSC_VER
6042 # include <malloc.h>
6043 # define alloca _alloca
6044 # else
6045 # ifdef HAVE_ALLOCA_H
6046 # include <alloca.h>
6047 # else
6048 # ifdef _AIX
6049 #pragma alloca
6050 # else
6051 # ifndef alloca /* predefined by HP cc +Olibcalls */
6052 char *alloca ();
6053 # endif
6054 # endif
6055 # endif
6056 # endif
6057 #endif
6060 main ()
6062 char *p = (char *) alloca (1);
6063 if (p) return 0;
6065 return 0;
6067 _ACEOF
6068 if ac_fn_c_try_link "$LINENO"; then :
6069 ac_cv_func_alloca_works=yes
6070 else
6071 ac_cv_func_alloca_works=no
6073 rm -f core conftest.err conftest.$ac_objext \
6074 conftest$ac_exeext conftest.$ac_ext
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6077 $as_echo "$ac_cv_func_alloca_works" >&6; }
6079 if test $ac_cv_func_alloca_works = yes; then
6081 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6083 else
6084 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6085 # that cause trouble. Some versions do not even contain alloca or
6086 # contain a buggy version. If you still want to use their alloca,
6087 # use ar to extract alloca.o from them instead of compiling alloca.c.
6089 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6091 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6095 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6096 if test "${ac_cv_os_cray+set}" = set; then :
6097 $as_echo_n "(cached) " >&6
6098 else
6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6101 #if defined CRAY && ! defined CRAY2
6102 webecray
6103 #else
6104 wenotbecray
6105 #endif
6107 _ACEOF
6108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6109 $EGREP "webecray" >/dev/null 2>&1; then :
6110 ac_cv_os_cray=yes
6111 else
6112 ac_cv_os_cray=no
6114 rm -f conftest*
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6118 $as_echo "$ac_cv_os_cray" >&6; }
6119 if test $ac_cv_os_cray = yes; then
6120 for ac_func in _getb67 GETB67 getb67; do
6121 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6122 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6123 eval as_val=\$$as_ac_var
6124 if test "x$as_val" = x""yes; then :
6126 cat >>confdefs.h <<_ACEOF
6127 #define CRAY_STACKSEG_END $ac_func
6128 _ACEOF
6130 break
6133 done
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6137 $as_echo_n "checking stack direction for C alloca... " >&6; }
6138 if test "${ac_cv_c_stack_direction+set}" = set; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 if test "$cross_compiling" = yes; then :
6142 ac_cv_c_stack_direction=0
6143 else
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6146 $ac_includes_default
6148 find_stack_direction ()
6150 static char *addr = 0;
6151 auto char dummy;
6152 if (addr == 0)
6154 addr = &dummy;
6155 return find_stack_direction ();
6157 else
6158 return (&dummy > addr) ? 1 : -1;
6162 main ()
6164 return find_stack_direction () < 0;
6166 _ACEOF
6167 if ac_fn_c_try_run "$LINENO"; then :
6168 ac_cv_c_stack_direction=1
6169 else
6170 ac_cv_c_stack_direction=-1
6172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6173 conftest.$ac_objext conftest.beam conftest.$ac_ext
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6178 $as_echo "$ac_cv_c_stack_direction" >&6; }
6179 cat >>confdefs.h <<_ACEOF
6180 #define STACK_DIRECTION $ac_cv_c_stack_direction
6181 _ACEOF
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6187 $as_echo_n "checking for ANSI C header files... " >&6; }
6188 if test "${ac_cv_header_stdc+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 #include <stdlib.h>
6194 #include <stdarg.h>
6195 #include <string.h>
6196 #include <float.h>
6199 main ()
6203 return 0;
6205 _ACEOF
6206 if ac_fn_c_try_compile "$LINENO"; then :
6207 ac_cv_header_stdc=yes
6208 else
6209 ac_cv_header_stdc=no
6211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213 if test $ac_cv_header_stdc = yes; then
6214 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6217 #include <string.h>
6219 _ACEOF
6220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6221 $EGREP "memchr" >/dev/null 2>&1; then :
6223 else
6224 ac_cv_header_stdc=no
6226 rm -f conftest*
6230 if test $ac_cv_header_stdc = yes; then
6231 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 #include <stdlib.h>
6236 _ACEOF
6237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6238 $EGREP "free" >/dev/null 2>&1; then :
6240 else
6241 ac_cv_header_stdc=no
6243 rm -f conftest*
6247 if test $ac_cv_header_stdc = yes; then
6248 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6249 if test "$cross_compiling" = yes; then :
6251 else
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6254 #include <ctype.h>
6255 #include <stdlib.h>
6256 #if ((' ' & 0x0FF) == 0x020)
6257 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6258 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6259 #else
6260 # define ISLOWER(c) \
6261 (('a' <= (c) && (c) <= 'i') \
6262 || ('j' <= (c) && (c) <= 'r') \
6263 || ('s' <= (c) && (c) <= 'z'))
6264 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6265 #endif
6267 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6269 main ()
6271 int i;
6272 for (i = 0; i < 256; i++)
6273 if (XOR (islower (i), ISLOWER (i))
6274 || toupper (i) != TOUPPER (i))
6275 return 2;
6276 return 0;
6278 _ACEOF
6279 if ac_fn_c_try_run "$LINENO"; then :
6281 else
6282 ac_cv_header_stdc=no
6284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6285 conftest.$ac_objext conftest.beam conftest.$ac_ext
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6291 $as_echo "$ac_cv_header_stdc" >&6; }
6292 if test $ac_cv_header_stdc = yes; then
6294 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6300 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6301 if test "${am_cv_langinfo_codeset+set}" = set; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6306 #include <langinfo.h>
6308 main ()
6310 char* cs = nl_langinfo(CODESET);
6312 return 0;
6314 _ACEOF
6315 if ac_fn_c_try_link "$LINENO"; then :
6316 am_cv_langinfo_codeset=yes
6317 else
6318 am_cv_langinfo_codeset=no
6320 rm -f core conftest.err conftest.$ac_objext \
6321 conftest$ac_exeext conftest.$ac_ext
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6325 $as_echo "$am_cv_langinfo_codeset" >&6; }
6326 if test $am_cv_langinfo_codeset = yes; then
6328 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6332 # If we haven't got the data from the intl directory,
6333 # assume NLS is disabled.
6334 USE_NLS=no
6335 LIBINTL=
6336 LIBINTL_DEP=
6337 INCINTL=
6338 XGETTEXT=
6339 GMSGFMT=
6340 POSUB=
6342 if test -f ../intl/config.intl; then
6343 . ../intl/config.intl
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6346 $as_echo_n "checking whether NLS is requested... " >&6; }
6347 if test x"$USE_NLS" != xyes; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6349 $as_echo "no" >&6; }
6350 else
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6352 $as_echo "yes" >&6; }
6354 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6358 $as_echo_n "checking for catalogs to be installed... " >&6; }
6359 # Look for .po and .gmo files in the source directory.
6360 CATALOGS=
6361 XLINGUAS=
6362 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6363 # If there aren't any .gmo files the shell will give us the
6364 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6365 # weeded out.
6366 case "$cat" in *\**)
6367 continue;;
6368 esac
6369 # The quadruple backslash is collapsed to a double backslash
6370 # by the backticks, then collapsed again by the double quotes,
6371 # leaving us with one backslash in the sed expression (right
6372 # before the dot that mustn't act as a wildcard).
6373 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6374 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6375 # The user is allowed to set LINGUAS to a list of languages to
6376 # install catalogs for. If it's empty that means "all of them."
6377 if test "x$LINGUAS" = x; then
6378 CATALOGS="$CATALOGS $cat"
6379 XLINGUAS="$XLINGUAS $lang"
6380 else
6381 case "$LINGUAS" in *$lang*)
6382 CATALOGS="$CATALOGS $cat"
6383 XLINGUAS="$XLINGUAS $lang"
6385 esac
6387 done
6388 LINGUAS="$XLINGUAS"
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6390 $as_echo "$LINGUAS" >&6; }
6393 DATADIRNAME=share
6395 INSTOBJEXT=.mo
6397 GENCAT=gencat
6399 CATOBJEXT=.gmo
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
6404 $as_echo_n "checking for uchar... " >&6; }
6405 if test "${gcc_cv_type_uchar+set}" = set; then :
6406 $as_echo_n "(cached) " >&6
6407 else
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6411 #include <sys/types.h>
6414 main ()
6416 if ((uchar *)0) return 0;
6417 if (sizeof(uchar)) return 0;
6419 return 0;
6421 _ACEOF
6422 if ac_fn_c_try_compile "$LINENO"; then :
6423 ac_cv_type_uchar=yes
6424 else
6425 ac_cv_type_uchar=no
6427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
6430 $as_echo "$gcc_cv_type_uchar" >&6; }
6431 if test $ac_cv_type_uchar = yes; then
6433 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
6437 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
6438 # iconv() prototype.
6439 ac_ext=cpp
6440 ac_cpp='$CXXCPP $CPPFLAGS'
6441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6446 if test "X$prefix" = "XNONE"; then
6447 acl_final_prefix="$ac_default_prefix"
6448 else
6449 acl_final_prefix="$prefix"
6451 if test "X$exec_prefix" = "XNONE"; then
6452 acl_final_exec_prefix='${prefix}'
6453 else
6454 acl_final_exec_prefix="$exec_prefix"
6456 acl_save_prefix="$prefix"
6457 prefix="$acl_final_prefix"
6458 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6459 prefix="$acl_save_prefix"
6462 # Check whether --with-gnu-ld was given.
6463 if test "${with_gnu_ld+set}" = set; then :
6464 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6465 else
6466 with_gnu_ld=no
6469 # Prepare PATH_SEPARATOR.
6470 # The user is always right.
6471 if test "${PATH_SEPARATOR+set}" != set; then
6472 echo "#! /bin/sh" >conf$$.sh
6473 echo "exit 0" >>conf$$.sh
6474 chmod +x conf$$.sh
6475 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6476 PATH_SEPARATOR=';'
6477 else
6478 PATH_SEPARATOR=:
6480 rm -f conf$$.sh
6482 ac_prog=ld
6483 if test "$GCC" = yes; then
6484 # Check if gcc -print-prog-name=ld gives a path.
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6486 $as_echo_n "checking for ld used by GCC... " >&6; }
6487 case $host in
6488 *-*-mingw*)
6489 # gcc leaves a trailing carriage return which upsets mingw
6490 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6492 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6493 esac
6494 case $ac_prog in
6495 # Accept absolute paths.
6496 [\\/]* | [A-Za-z]:[\\/]*)
6497 re_direlt='/[^/][^/]*/\.\./'
6498 # Canonicalize the path of ld
6499 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6500 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6501 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6502 done
6503 test -z "$LD" && LD="$ac_prog"
6506 # If it fails, then pretend we aren't using GCC.
6507 ac_prog=ld
6510 # If it is relative, then search for the first ld in PATH.
6511 with_gnu_ld=unknown
6513 esac
6514 elif test "$with_gnu_ld" = yes; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6516 $as_echo_n "checking for GNU ld... " >&6; }
6517 else
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6519 $as_echo_n "checking for non-GNU ld... " >&6; }
6521 if test "${acl_cv_path_LD+set}" = set; then :
6522 $as_echo_n "(cached) " >&6
6523 else
6524 if test -z "$LD"; then
6525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6526 for ac_dir in $PATH; do
6527 test -z "$ac_dir" && ac_dir=.
6528 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6529 acl_cv_path_LD="$ac_dir/$ac_prog"
6530 # Check to see if the program is GNU ld. I'd rather use --version,
6531 # but apparently some GNU ld's only accept -v.
6532 # Break only if it was the GNU/non-GNU ld that we prefer.
6533 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6534 test "$with_gnu_ld" != no && break
6535 else
6536 test "$with_gnu_ld" != yes && break
6539 done
6540 IFS="$ac_save_ifs"
6541 else
6542 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6546 LD="$acl_cv_path_LD"
6547 if test -n "$LD"; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6549 $as_echo "$LD" >&6; }
6550 else
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552 $as_echo "no" >&6; }
6554 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6556 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6557 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6561 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6562 acl_cv_prog_gnu_ld=yes
6563 else
6564 acl_cv_prog_gnu_ld=no
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6568 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6569 with_gnu_ld=$acl_cv_prog_gnu_ld
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6574 $as_echo_n "checking for shared library run path origin... " >&6; }
6575 if test "${acl_cv_rpath+set}" = set; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6579 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6580 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6581 . ./conftest.sh
6582 rm -f ./conftest.sh
6583 acl_cv_rpath=done
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6587 $as_echo "$acl_cv_rpath" >&6; }
6588 wl="$acl_cv_wl"
6589 libext="$acl_cv_libext"
6590 shlibext="$acl_cv_shlibext"
6591 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6592 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6593 hardcode_direct="$acl_cv_hardcode_direct"
6594 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6595 # Check whether --enable-rpath was given.
6596 if test "${enable_rpath+set}" = set; then :
6597 enableval=$enable_rpath; :
6598 else
6599 enable_rpath=yes
6609 use_additional=yes
6611 acl_save_prefix="$prefix"
6612 prefix="$acl_final_prefix"
6613 acl_save_exec_prefix="$exec_prefix"
6614 exec_prefix="$acl_final_exec_prefix"
6616 eval additional_includedir=\"$includedir\"
6617 eval additional_libdir=\"$libdir\"
6619 exec_prefix="$acl_save_exec_prefix"
6620 prefix="$acl_save_prefix"
6623 # Check whether --with-libiconv-prefix was given.
6624 if test "${with_libiconv_prefix+set}" = set; then :
6625 withval=$with_libiconv_prefix;
6626 if test "X$withval" = "Xno"; then
6627 use_additional=no
6628 else
6629 if test "X$withval" = "X"; then
6631 acl_save_prefix="$prefix"
6632 prefix="$acl_final_prefix"
6633 acl_save_exec_prefix="$exec_prefix"
6634 exec_prefix="$acl_final_exec_prefix"
6636 eval additional_includedir=\"$includedir\"
6637 eval additional_libdir=\"$libdir\"
6639 exec_prefix="$acl_save_exec_prefix"
6640 prefix="$acl_save_prefix"
6642 else
6643 additional_includedir="$withval/include"
6644 additional_libdir="$withval/lib"
6650 LIBICONV=
6651 LTLIBICONV=
6652 INCICONV=
6653 rpathdirs=
6654 ltrpathdirs=
6655 names_already_handled=
6656 names_next_round='iconv '
6657 while test -n "$names_next_round"; do
6658 names_this_round="$names_next_round"
6659 names_next_round=
6660 for name in $names_this_round; do
6661 already_handled=
6662 for n in $names_already_handled; do
6663 if test "$n" = "$name"; then
6664 already_handled=yes
6665 break
6667 done
6668 if test -z "$already_handled"; then
6669 names_already_handled="$names_already_handled $name"
6670 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6671 eval value=\"\$HAVE_LIB$uppername\"
6672 if test -n "$value"; then
6673 if test "$value" = yes; then
6674 eval value=\"\$LIB$uppername\"
6675 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6676 eval value=\"\$LTLIB$uppername\"
6677 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6678 else
6681 else
6682 found_dir=
6683 found_la=
6684 found_so=
6685 found_a=
6686 if test $use_additional = yes; then
6687 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6688 found_dir="$additional_libdir"
6689 found_so="$additional_libdir/lib$name.$shlibext"
6690 if test -f "$additional_libdir/lib$name.la"; then
6691 found_la="$additional_libdir/lib$name.la"
6693 else
6694 if test -f "$additional_libdir/lib$name.$libext"; then
6695 found_dir="$additional_libdir"
6696 found_a="$additional_libdir/lib$name.$libext"
6697 if test -f "$additional_libdir/lib$name.la"; then
6698 found_la="$additional_libdir/lib$name.la"
6703 if test "X$found_dir" = "X"; then
6704 for x in $LDFLAGS $LTLIBICONV; do
6706 acl_save_prefix="$prefix"
6707 prefix="$acl_final_prefix"
6708 acl_save_exec_prefix="$exec_prefix"
6709 exec_prefix="$acl_final_exec_prefix"
6710 eval x=\"$x\"
6711 exec_prefix="$acl_save_exec_prefix"
6712 prefix="$acl_save_prefix"
6714 case "$x" in
6715 -L*)
6716 dir=`echo "X$x" | sed -e 's/^X-L//'`
6717 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6718 found_dir="$dir"
6719 found_so="$dir/lib$name.$shlibext"
6720 if test -f "$dir/lib$name.la"; then
6721 found_la="$dir/lib$name.la"
6723 else
6724 if test -f "$dir/lib$name.$libext"; then
6725 found_dir="$dir"
6726 found_a="$dir/lib$name.$libext"
6727 if test -f "$dir/lib$name.la"; then
6728 found_la="$dir/lib$name.la"
6733 esac
6734 if test "X$found_dir" != "X"; then
6735 break
6737 done
6739 if test "X$found_dir" != "X"; then
6740 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6741 if test "X$found_so" != "X"; then
6742 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6743 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6744 else
6745 haveit=
6746 for x in $ltrpathdirs; do
6747 if test "X$x" = "X$found_dir"; then
6748 haveit=yes
6749 break
6751 done
6752 if test -z "$haveit"; then
6753 ltrpathdirs="$ltrpathdirs $found_dir"
6755 if test "$hardcode_direct" = yes; then
6756 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6757 else
6758 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6759 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6760 haveit=
6761 for x in $rpathdirs; do
6762 if test "X$x" = "X$found_dir"; then
6763 haveit=yes
6764 break
6766 done
6767 if test -z "$haveit"; then
6768 rpathdirs="$rpathdirs $found_dir"
6770 else
6771 haveit=
6772 for x in $LDFLAGS $LIBICONV; do
6774 acl_save_prefix="$prefix"
6775 prefix="$acl_final_prefix"
6776 acl_save_exec_prefix="$exec_prefix"
6777 exec_prefix="$acl_final_exec_prefix"
6778 eval x=\"$x\"
6779 exec_prefix="$acl_save_exec_prefix"
6780 prefix="$acl_save_prefix"
6782 if test "X$x" = "X-L$found_dir"; then
6783 haveit=yes
6784 break
6786 done
6787 if test -z "$haveit"; then
6788 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6790 if test "$hardcode_minus_L" != no; then
6791 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6792 else
6793 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6798 else
6799 if test "X$found_a" != "X"; then
6800 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6801 else
6802 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6805 additional_includedir=
6806 case "$found_dir" in
6807 */lib | */lib/)
6808 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6809 additional_includedir="$basedir/include"
6811 esac
6812 if test "X$additional_includedir" != "X"; then
6813 if test "X$additional_includedir" != "X/usr/include"; then
6814 haveit=
6815 if test "X$additional_includedir" = "X/usr/local/include"; then
6816 if test -n "$GCC"; then
6817 case $host_os in
6818 linux*) haveit=yes;;
6819 esac
6822 if test -z "$haveit"; then
6823 for x in $CPPFLAGS $INCICONV; do
6825 acl_save_prefix="$prefix"
6826 prefix="$acl_final_prefix"
6827 acl_save_exec_prefix="$exec_prefix"
6828 exec_prefix="$acl_final_exec_prefix"
6829 eval x=\"$x\"
6830 exec_prefix="$acl_save_exec_prefix"
6831 prefix="$acl_save_prefix"
6833 if test "X$x" = "X-I$additional_includedir"; then
6834 haveit=yes
6835 break
6837 done
6838 if test -z "$haveit"; then
6839 if test -d "$additional_includedir"; then
6840 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6846 if test -n "$found_la"; then
6847 save_libdir="$libdir"
6848 case "$found_la" in
6849 */* | *\\*) . "$found_la" ;;
6850 *) . "./$found_la" ;;
6851 esac
6852 libdir="$save_libdir"
6853 for dep in $dependency_libs; do
6854 case "$dep" in
6855 -L*)
6856 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6857 if test "X$additional_libdir" != "X/usr/lib"; then
6858 haveit=
6859 if test "X$additional_libdir" = "X/usr/local/lib"; then
6860 if test -n "$GCC"; then
6861 case $host_os in
6862 linux*) haveit=yes;;
6863 esac
6866 if test -z "$haveit"; then
6867 haveit=
6868 for x in $LDFLAGS $LIBICONV; do
6870 acl_save_prefix="$prefix"
6871 prefix="$acl_final_prefix"
6872 acl_save_exec_prefix="$exec_prefix"
6873 exec_prefix="$acl_final_exec_prefix"
6874 eval x=\"$x\"
6875 exec_prefix="$acl_save_exec_prefix"
6876 prefix="$acl_save_prefix"
6878 if test "X$x" = "X-L$additional_libdir"; then
6879 haveit=yes
6880 break
6882 done
6883 if test -z "$haveit"; then
6884 if test -d "$additional_libdir"; then
6885 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6888 haveit=
6889 for x in $LDFLAGS $LTLIBICONV; do
6891 acl_save_prefix="$prefix"
6892 prefix="$acl_final_prefix"
6893 acl_save_exec_prefix="$exec_prefix"
6894 exec_prefix="$acl_final_exec_prefix"
6895 eval x=\"$x\"
6896 exec_prefix="$acl_save_exec_prefix"
6897 prefix="$acl_save_prefix"
6899 if test "X$x" = "X-L$additional_libdir"; then
6900 haveit=yes
6901 break
6903 done
6904 if test -z "$haveit"; then
6905 if test -d "$additional_libdir"; then
6906 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6912 -R*)
6913 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6914 if test "$enable_rpath" != no; then
6915 haveit=
6916 for x in $rpathdirs; do
6917 if test "X$x" = "X$dir"; then
6918 haveit=yes
6919 break
6921 done
6922 if test -z "$haveit"; then
6923 rpathdirs="$rpathdirs $dir"
6925 haveit=
6926 for x in $ltrpathdirs; do
6927 if test "X$x" = "X$dir"; then
6928 haveit=yes
6929 break
6931 done
6932 if test -z "$haveit"; then
6933 ltrpathdirs="$ltrpathdirs $dir"
6937 -l*)
6938 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6940 *.la)
6941 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6944 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6945 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6947 esac
6948 done
6950 else
6951 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6952 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6956 done
6957 done
6958 if test "X$rpathdirs" != "X"; then
6959 if test -n "$hardcode_libdir_separator"; then
6960 alldirs=
6961 for found_dir in $rpathdirs; do
6962 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6963 done
6964 acl_save_libdir="$libdir"
6965 libdir="$alldirs"
6966 eval flag=\"$hardcode_libdir_flag_spec\"
6967 libdir="$acl_save_libdir"
6968 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6969 else
6970 for found_dir in $rpathdirs; do
6971 acl_save_libdir="$libdir"
6972 libdir="$found_dir"
6973 eval flag=\"$hardcode_libdir_flag_spec\"
6974 libdir="$acl_save_libdir"
6975 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6976 done
6979 if test "X$ltrpathdirs" != "X"; then
6980 for found_dir in $ltrpathdirs; do
6981 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6982 done
6991 am_save_CPPFLAGS="$CPPFLAGS"
6993 for element in $INCICONV; do
6994 haveit=
6995 for x in $CPPFLAGS; do
6997 acl_save_prefix="$prefix"
6998 prefix="$acl_final_prefix"
6999 acl_save_exec_prefix="$exec_prefix"
7000 exec_prefix="$acl_final_exec_prefix"
7001 eval x=\"$x\"
7002 exec_prefix="$acl_save_exec_prefix"
7003 prefix="$acl_save_prefix"
7005 if test "X$x" = "X$element"; then
7006 haveit=yes
7007 break
7009 done
7010 if test -z "$haveit"; then
7011 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7013 done
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7017 $as_echo_n "checking for iconv... " >&6; }
7018 if test "${am_cv_func_iconv+set}" = set; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7022 am_cv_func_iconv="no, consider installing GNU libiconv"
7023 am_cv_lib_iconv=no
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7026 #include <stdlib.h>
7027 #include <iconv.h>
7029 main ()
7031 iconv_t cd = iconv_open("","");
7032 iconv(cd,NULL,NULL,NULL,NULL);
7033 iconv_close(cd);
7035 return 0;
7037 _ACEOF
7038 if ac_fn_cxx_try_link "$LINENO"; then :
7039 am_cv_func_iconv=yes
7041 rm -f core conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7043 if test "$am_cv_func_iconv" != yes; then
7044 am_save_LIBS="$LIBS"
7045 LIBS="$LIBS $LIBICONV"
7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7048 #include <stdlib.h>
7049 #include <iconv.h>
7051 main ()
7053 iconv_t cd = iconv_open("","");
7054 iconv(cd,NULL,NULL,NULL,NULL);
7055 iconv_close(cd);
7057 return 0;
7059 _ACEOF
7060 if ac_fn_cxx_try_link "$LINENO"; then :
7061 am_cv_lib_iconv=yes
7062 am_cv_func_iconv=yes
7064 rm -f core conftest.err conftest.$ac_objext \
7065 conftest$ac_exeext conftest.$ac_ext
7066 LIBS="$am_save_LIBS"
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7071 $as_echo "$am_cv_func_iconv" >&6; }
7072 if test "$am_cv_func_iconv" = yes; then
7074 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7077 if test "$am_cv_lib_iconv" = yes; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7079 $as_echo_n "checking how to link with libiconv... " >&6; }
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7081 $as_echo "$LIBICONV" >&6; }
7082 else
7083 CPPFLAGS="$am_save_CPPFLAGS"
7084 LIBICONV=
7085 LTLIBICONV=
7090 if test "$am_cv_func_iconv" = yes; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7092 $as_echo_n "checking for iconv declaration... " >&6; }
7093 if test "${am_cv_proto_iconv+set}" = set; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7100 #include <stdlib.h>
7101 #include <iconv.h>
7102 extern
7103 #ifdef __cplusplus
7105 #endif
7106 #if defined(__STDC__) || defined(__cplusplus)
7107 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7108 #else
7109 size_t iconv();
7110 #endif
7113 main ()
7117 return 0;
7119 _ACEOF
7120 if ac_fn_cxx_try_compile "$LINENO"; then :
7121 am_cv_proto_iconv_arg1=""
7122 else
7123 am_cv_proto_iconv_arg1="const"
7125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7126 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);"
7129 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7131 }$am_cv_proto_iconv" >&5
7132 $as_echo "${ac_t:-
7133 }$am_cv_proto_iconv" >&6; }
7135 cat >>confdefs.h <<_ACEOF
7136 #define ICONV_CONST $am_cv_proto_iconv_arg1
7137 _ACEOF
7141 ac_ext=c
7142 ac_cpp='$CPP $CPPFLAGS'
7143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7148 # More defines and substitutions.
7149 PACKAGE="$PACKAGE_TARNAME"
7151 cat >>confdefs.h <<_ACEOF
7152 #define PACKAGE "$PACKAGE"
7153 _ACEOF
7157 if test "x$enable_nls" != xno; then
7158 USED_CATALOGS='$(CATALOGS)'
7159 else
7160 USED_CATALOGS=
7164 # Check whether --enable-maintainer-mode was given.
7165 if test "${enable_maintainer_mode+set}" = set; then :
7166 enableval=$enable_maintainer_mode;
7167 else
7168 enable_maintainer_mode=no
7172 if test "x$enable_maintainer_mode" = xno; then
7173 MAINT='#'
7174 else
7175 MAINT=
7179 # Enable expensive internal checks
7180 is_release=
7181 if test -f $srcdir/../gcc/DEV-PHASE \
7182 && test x"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental; then
7183 is_release=yes
7186 # Check whether --enable-checking was given.
7187 if test "${enable_checking+set}" = set; then :
7188 enableval=$enable_checking; ac_checking_flags="${enableval}"
7189 else
7191 # Determine the default checks.
7192 if test x$is_release = x ; then
7193 ac_checking_flags=yes
7194 else
7195 ac_checking_flags=release
7199 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7200 for check in release $ac_checking_flags
7202 case $check in
7203 # these set all the flags to specific states
7204 yes|all) ac_checking=1 ; ac_valgrind_checking= ;;
7205 no|none|release) ac_checking= ; ac_valgrind_checking= ;;
7206 # these enable particular checks
7207 misc) ac_checking=1 ;;
7208 valgrind) ac_valgrind_checking=1 ;;
7209 # accept
7210 *) ;;
7211 esac
7212 done
7213 IFS="$ac_save_IFS"
7215 if test x$ac_checking != x ; then
7217 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
7221 if test x$ac_valgrind_checking != x ; then
7223 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7227 # Check whether --enable-canonical-system-headers was given.
7228 if test "${enable_canonical_system_headers+set}" = set; then :
7229 enableval=$enable_canonical_system_headers;
7230 else
7231 enable_canonical_system_headers=yes
7234 if test $enable_canonical_system_headers != no; then
7236 $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
7240 case $target in
7241 i?86-* | x86_64-*)
7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7246 main ()
7248 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
7250 return 0;
7252 _ACEOF
7253 if ac_fn_c_try_compile "$LINENO"; then :
7255 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
7258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7259 esac
7261 # Enable --enable-host-shared.
7262 # Check whether --enable-host-shared was given.
7263 if test "${enable_host_shared+set}" = set; then :
7264 enableval=$enable_host_shared; PICFLAG=-fPIC
7265 else
7266 PICFLAG=
7271 # Output.
7273 ac_config_headers="$ac_config_headers config.h:config.in"
7275 ac_config_files="$ac_config_files Makefile"
7277 cat >confcache <<\_ACEOF
7278 # This file is a shell script that caches the results of configure
7279 # tests run on this system so they can be shared between configure
7280 # scripts and configure runs, see configure's option --config-cache.
7281 # It is not useful on other systems. If it contains results you don't
7282 # want to keep, you may remove or edit it.
7284 # config.status only pays attention to the cache file if you give it
7285 # the --recheck option to rerun configure.
7287 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7288 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7289 # following values.
7291 _ACEOF
7293 # The following way of writing the cache mishandles newlines in values,
7294 # but we know of no workaround that is simple, portable, and efficient.
7295 # So, we kill variables containing newlines.
7296 # Ultrix sh set writes to stderr and can't be redirected directly,
7297 # and sets the high bit in the cache file unless we assign to the vars.
7299 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7300 eval ac_val=\$$ac_var
7301 case $ac_val in #(
7302 *${as_nl}*)
7303 case $ac_var in #(
7304 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7305 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7306 esac
7307 case $ac_var in #(
7308 _ | IFS | as_nl) ;; #(
7309 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7310 *) { eval $ac_var=; unset $ac_var;} ;;
7311 esac ;;
7312 esac
7313 done
7315 (set) 2>&1 |
7316 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7317 *${as_nl}ac_space=\ *)
7318 # `set' does not quote correctly, so add quotes: double-quote
7319 # substitution turns \\\\ into \\, and sed turns \\ into \.
7320 sed -n \
7321 "s/'/'\\\\''/g;
7322 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7323 ;; #(
7325 # `set' quotes correctly as required by POSIX, so do not add quotes.
7326 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7328 esac |
7329 sort
7331 sed '
7332 /^ac_cv_env_/b end
7333 t clear
7334 :clear
7335 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7336 t end
7337 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7338 :end' >>confcache
7339 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7340 if test -w "$cache_file"; then
7341 test "x$cache_file" != "x/dev/null" &&
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7343 $as_echo "$as_me: updating cache $cache_file" >&6;}
7344 cat confcache >$cache_file
7345 else
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7347 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7350 rm -f confcache
7352 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7353 # Let make expand exec_prefix.
7354 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7356 DEFS=-DHAVE_CONFIG_H
7358 ac_libobjs=
7359 ac_ltlibobjs=
7360 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7361 # 1. Remove the extension, and $U if already installed.
7362 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7363 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7364 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7365 # will be set to the directory where LIBOBJS objects are built.
7366 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7367 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7368 done
7369 LIBOBJS=$ac_libobjs
7371 LTLIBOBJS=$ac_ltlibobjs
7376 : ${CONFIG_STATUS=./config.status}
7377 ac_write_fail=0
7378 ac_clean_files_save=$ac_clean_files
7379 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7381 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7382 as_write_fail=0
7383 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7384 #! $SHELL
7385 # Generated by $as_me.
7386 # Run this file to recreate the current configuration.
7387 # Compiler output produced by configure, useful for debugging
7388 # configure, is in config.log if it exists.
7390 debug=false
7391 ac_cs_recheck=false
7392 ac_cs_silent=false
7394 SHELL=\${CONFIG_SHELL-$SHELL}
7395 export SHELL
7396 _ASEOF
7397 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7398 ## -------------------- ##
7399 ## M4sh Initialization. ##
7400 ## -------------------- ##
7402 # Be more Bourne compatible
7403 DUALCASE=1; export DUALCASE # for MKS sh
7404 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7405 emulate sh
7406 NULLCMD=:
7407 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7408 # is contrary to our usage. Disable this feature.
7409 alias -g '${1+"$@"}'='"$@"'
7410 setopt NO_GLOB_SUBST
7411 else
7412 case `(set -o) 2>/dev/null` in #(
7413 *posix*) :
7414 set -o posix ;; #(
7415 *) :
7417 esac
7421 as_nl='
7423 export as_nl
7424 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7425 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7426 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7427 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7428 # Prefer a ksh shell builtin over an external printf program on Solaris,
7429 # but without wasting forks for bash or zsh.
7430 if test -z "$BASH_VERSION$ZSH_VERSION" \
7431 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7432 as_echo='print -r --'
7433 as_echo_n='print -rn --'
7434 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7435 as_echo='printf %s\n'
7436 as_echo_n='printf %s'
7437 else
7438 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7439 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7440 as_echo_n='/usr/ucb/echo -n'
7441 else
7442 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7443 as_echo_n_body='eval
7444 arg=$1;
7445 case $arg in #(
7446 *"$as_nl"*)
7447 expr "X$arg" : "X\\(.*\\)$as_nl";
7448 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7449 esac;
7450 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7452 export as_echo_n_body
7453 as_echo_n='sh -c $as_echo_n_body as_echo'
7455 export as_echo_body
7456 as_echo='sh -c $as_echo_body as_echo'
7459 # The user is always right.
7460 if test "${PATH_SEPARATOR+set}" != set; then
7461 PATH_SEPARATOR=:
7462 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7463 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7464 PATH_SEPARATOR=';'
7469 # IFS
7470 # We need space, tab and new line, in precisely that order. Quoting is
7471 # there to prevent editors from complaining about space-tab.
7472 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7473 # splitting by setting IFS to empty value.)
7474 IFS=" "" $as_nl"
7476 # Find who we are. Look in the path if we contain no directory separator.
7477 case $0 in #((
7478 *[\\/]* ) as_myself=$0 ;;
7479 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7482 IFS=$as_save_IFS
7483 test -z "$as_dir" && as_dir=.
7484 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7485 done
7486 IFS=$as_save_IFS
7489 esac
7490 # We did not find ourselves, most probably we were run as `sh COMMAND'
7491 # in which case we are not to be found in the path.
7492 if test "x$as_myself" = x; then
7493 as_myself=$0
7495 if test ! -f "$as_myself"; then
7496 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7497 exit 1
7500 # Unset variables that we do not need and which cause bugs (e.g. in
7501 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7502 # suppresses any "Segmentation fault" message there. '((' could
7503 # trigger a bug in pdksh 5.2.14.
7504 for as_var in BASH_ENV ENV MAIL MAILPATH
7505 do eval test x\${$as_var+set} = xset \
7506 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7507 done
7508 PS1='$ '
7509 PS2='> '
7510 PS4='+ '
7512 # NLS nuisances.
7513 LC_ALL=C
7514 export LC_ALL
7515 LANGUAGE=C
7516 export LANGUAGE
7518 # CDPATH.
7519 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7522 # as_fn_error ERROR [LINENO LOG_FD]
7523 # ---------------------------------
7524 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7525 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7526 # script with status $?, using 1 if that was 0.
7527 as_fn_error ()
7529 as_status=$?; test $as_status -eq 0 && as_status=1
7530 if test "$3"; then
7531 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7532 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7534 $as_echo "$as_me: error: $1" >&2
7535 as_fn_exit $as_status
7536 } # as_fn_error
7539 # as_fn_set_status STATUS
7540 # -----------------------
7541 # Set $? to STATUS, without forking.
7542 as_fn_set_status ()
7544 return $1
7545 } # as_fn_set_status
7547 # as_fn_exit STATUS
7548 # -----------------
7549 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7550 as_fn_exit ()
7552 set +e
7553 as_fn_set_status $1
7554 exit $1
7555 } # as_fn_exit
7557 # as_fn_unset VAR
7558 # ---------------
7559 # Portably unset VAR.
7560 as_fn_unset ()
7562 { eval $1=; unset $1;}
7564 as_unset=as_fn_unset
7565 # as_fn_append VAR VALUE
7566 # ----------------------
7567 # Append the text in VALUE to the end of the definition contained in VAR. Take
7568 # advantage of any shell optimizations that allow amortized linear growth over
7569 # repeated appends, instead of the typical quadratic growth present in naive
7570 # implementations.
7571 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7572 eval 'as_fn_append ()
7574 eval $1+=\$2
7576 else
7577 as_fn_append ()
7579 eval $1=\$$1\$2
7581 fi # as_fn_append
7583 # as_fn_arith ARG...
7584 # ------------------
7585 # Perform arithmetic evaluation on the ARGs, and store the result in the
7586 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7587 # must be portable across $(()) and expr.
7588 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7589 eval 'as_fn_arith ()
7591 as_val=$(( $* ))
7593 else
7594 as_fn_arith ()
7596 as_val=`expr "$@" || test $? -eq 1`
7598 fi # as_fn_arith
7601 if expr a : '\(a\)' >/dev/null 2>&1 &&
7602 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7603 as_expr=expr
7604 else
7605 as_expr=false
7608 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7609 as_basename=basename
7610 else
7611 as_basename=false
7614 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7615 as_dirname=dirname
7616 else
7617 as_dirname=false
7620 as_me=`$as_basename -- "$0" ||
7621 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7622 X"$0" : 'X\(//\)$' \| \
7623 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7624 $as_echo X/"$0" |
7625 sed '/^.*\/\([^/][^/]*\)\/*$/{
7626 s//\1/
7629 /^X\/\(\/\/\)$/{
7630 s//\1/
7633 /^X\/\(\/\).*/{
7634 s//\1/
7637 s/.*/./; q'`
7639 # Avoid depending upon Character Ranges.
7640 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7641 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7642 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7643 as_cr_digits='0123456789'
7644 as_cr_alnum=$as_cr_Letters$as_cr_digits
7646 ECHO_C= ECHO_N= ECHO_T=
7647 case `echo -n x` in #(((((
7648 -n*)
7649 case `echo 'xy\c'` in
7650 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7651 xy) ECHO_C='\c';;
7652 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7653 ECHO_T=' ';;
7654 esac;;
7656 ECHO_N='-n';;
7657 esac
7659 rm -f conf$$ conf$$.exe conf$$.file
7660 if test -d conf$$.dir; then
7661 rm -f conf$$.dir/conf$$.file
7662 else
7663 rm -f conf$$.dir
7664 mkdir conf$$.dir 2>/dev/null
7666 if (echo >conf$$.file) 2>/dev/null; then
7667 if ln -s conf$$.file conf$$ 2>/dev/null; then
7668 as_ln_s='ln -s'
7669 # ... but there are two gotchas:
7670 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7671 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7672 # In both cases, we have to default to `cp -p'.
7673 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7674 as_ln_s='cp -p'
7675 elif ln conf$$.file conf$$ 2>/dev/null; then
7676 as_ln_s=ln
7677 else
7678 as_ln_s='cp -p'
7680 else
7681 as_ln_s='cp -p'
7683 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7684 rmdir conf$$.dir 2>/dev/null
7687 # as_fn_mkdir_p
7688 # -------------
7689 # Create "$as_dir" as a directory, including parents if necessary.
7690 as_fn_mkdir_p ()
7693 case $as_dir in #(
7694 -*) as_dir=./$as_dir;;
7695 esac
7696 test -d "$as_dir" || eval $as_mkdir_p || {
7697 as_dirs=
7698 while :; do
7699 case $as_dir in #(
7700 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7701 *) as_qdir=$as_dir;;
7702 esac
7703 as_dirs="'$as_qdir' $as_dirs"
7704 as_dir=`$as_dirname -- "$as_dir" ||
7705 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7706 X"$as_dir" : 'X\(//\)[^/]' \| \
7707 X"$as_dir" : 'X\(//\)$' \| \
7708 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7709 $as_echo X"$as_dir" |
7710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7711 s//\1/
7714 /^X\(\/\/\)[^/].*/{
7715 s//\1/
7718 /^X\(\/\/\)$/{
7719 s//\1/
7722 /^X\(\/\).*/{
7723 s//\1/
7726 s/.*/./; q'`
7727 test -d "$as_dir" && break
7728 done
7729 test -z "$as_dirs" || eval "mkdir $as_dirs"
7730 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7733 } # as_fn_mkdir_p
7734 if mkdir -p . 2>/dev/null; then
7735 as_mkdir_p='mkdir -p "$as_dir"'
7736 else
7737 test -d ./-p && rmdir ./-p
7738 as_mkdir_p=false
7741 if test -x / >/dev/null 2>&1; then
7742 as_test_x='test -x'
7743 else
7744 if ls -dL / >/dev/null 2>&1; then
7745 as_ls_L_option=L
7746 else
7747 as_ls_L_option=
7749 as_test_x='
7750 eval sh -c '\''
7751 if test -d "$1"; then
7752 test -d "$1/.";
7753 else
7754 case $1 in #(
7755 -*)set "./$1";;
7756 esac;
7757 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7758 ???[sx]*):;;*)false;;esac;fi
7759 '\'' sh
7762 as_executable_p=$as_test_x
7764 # Sed expression to map a string onto a valid CPP name.
7765 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7767 # Sed expression to map a string onto a valid variable name.
7768 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7771 exec 6>&1
7772 ## ----------------------------------- ##
7773 ## Main body of $CONFIG_STATUS script. ##
7774 ## ----------------------------------- ##
7775 _ASEOF
7776 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7779 # Save the log message, to keep $0 and so on meaningful, and to
7780 # report actual input values of CONFIG_FILES etc. instead of their
7781 # values after options handling.
7782 ac_log="
7783 This file was extended by cpplib $as_me , which was
7784 generated by GNU Autoconf 2.64. Invocation command line was
7786 CONFIG_FILES = $CONFIG_FILES
7787 CONFIG_HEADERS = $CONFIG_HEADERS
7788 CONFIG_LINKS = $CONFIG_LINKS
7789 CONFIG_COMMANDS = $CONFIG_COMMANDS
7790 $ $0 $@
7792 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7795 _ACEOF
7797 case $ac_config_files in *"
7798 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7799 esac
7801 case $ac_config_headers in *"
7802 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7803 esac
7806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7807 # Files that config.status was made for.
7808 config_files="$ac_config_files"
7809 config_headers="$ac_config_headers"
7810 config_commands="$ac_config_commands"
7812 _ACEOF
7814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7815 ac_cs_usage="\
7816 \`$as_me' instantiates files and other configuration actions
7817 from templates according to the current configuration. Unless the files
7818 and actions are specified as TAGs, all are instantiated by default.
7820 Usage: $0 [OPTION]... [TAG]...
7822 -h, --help print this help, then exit
7823 -V, --version print version number and configuration settings, then exit
7824 -q, --quiet, --silent
7825 do not print progress messages
7826 -d, --debug don't remove temporary files
7827 --recheck update $as_me by reconfiguring in the same conditions
7828 --file=FILE[:TEMPLATE]
7829 instantiate the configuration file FILE
7830 --header=FILE[:TEMPLATE]
7831 instantiate the configuration header FILE
7833 Configuration files:
7834 $config_files
7836 Configuration headers:
7837 $config_headers
7839 Configuration commands:
7840 $config_commands
7842 Report bugs to <gcc-bugs@gcc.gnu.org>."
7844 _ACEOF
7845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7846 ac_cs_version="\\
7847 cpplib config.status
7848 configured by $0, generated by GNU Autoconf 2.64,
7849 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7851 Copyright (C) 2009 Free Software Foundation, Inc.
7852 This config.status script is free software; the Free Software Foundation
7853 gives unlimited permission to copy, distribute and modify it."
7855 ac_pwd='$ac_pwd'
7856 srcdir='$srcdir'
7857 INSTALL='$INSTALL'
7858 test -n "\$AWK" || AWK=awk
7859 _ACEOF
7861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7862 # The default lists apply if the user does not specify any file.
7863 ac_need_defaults=:
7864 while test $# != 0
7866 case $1 in
7867 --*=*)
7868 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7869 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7870 ac_shift=:
7873 ac_option=$1
7874 ac_optarg=$2
7875 ac_shift=shift
7877 esac
7879 case $ac_option in
7880 # Handling of the options.
7881 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7882 ac_cs_recheck=: ;;
7883 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7884 $as_echo "$ac_cs_version"; exit ;;
7885 --debug | --debu | --deb | --de | --d | -d )
7886 debug=: ;;
7887 --file | --fil | --fi | --f )
7888 $ac_shift
7889 case $ac_optarg in
7890 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7891 esac
7892 as_fn_append CONFIG_FILES " '$ac_optarg'"
7893 ac_need_defaults=false;;
7894 --header | --heade | --head | --hea )
7895 $ac_shift
7896 case $ac_optarg in
7897 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7898 esac
7899 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7900 ac_need_defaults=false;;
7901 --he | --h)
7902 # Conflict between --help and --header
7903 as_fn_error "ambiguous option: \`$1'
7904 Try \`$0 --help' for more information.";;
7905 --help | --hel | -h )
7906 $as_echo "$ac_cs_usage"; exit ;;
7907 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7908 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7909 ac_cs_silent=: ;;
7911 # This is an error.
7912 -*) as_fn_error "unrecognized option: \`$1'
7913 Try \`$0 --help' for more information." ;;
7915 *) as_fn_append ac_config_targets " $1"
7916 ac_need_defaults=false ;;
7918 esac
7919 shift
7920 done
7922 ac_configure_extra_args=
7924 if $ac_cs_silent; then
7925 exec 6>/dev/null
7926 ac_configure_extra_args="$ac_configure_extra_args --silent"
7929 _ACEOF
7930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7931 if \$ac_cs_recheck; then
7932 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7933 shift
7934 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7935 CONFIG_SHELL='$SHELL'
7936 export CONFIG_SHELL
7937 exec "\$@"
7940 _ACEOF
7941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7942 exec 5>>config.log
7944 echo
7945 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7946 ## Running $as_me. ##
7947 _ASBOX
7948 $as_echo "$ac_log"
7949 } >&5
7951 _ACEOF
7952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7954 # INIT-COMMANDS
7956 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
7958 _ACEOF
7960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7962 # Handling of arguments.
7963 for ac_config_target in $ac_config_targets
7965 case $ac_config_target in
7966 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
7967 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7968 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7970 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7971 esac
7972 done
7975 # If the user did not use the arguments to specify the items to instantiate,
7976 # then the envvar interface is used. Set only those that are not.
7977 # We use the long form for the default assignment because of an extremely
7978 # bizarre bug on SunOS 4.1.3.
7979 if $ac_need_defaults; then
7980 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7981 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7982 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7985 # Have a temporary directory for convenience. Make it in the build tree
7986 # simply because there is no reason against having it here, and in addition,
7987 # creating and moving files from /tmp can sometimes cause problems.
7988 # Hook for its removal unless debugging.
7989 # Note that there is a small window in which the directory will not be cleaned:
7990 # after its creation but before its name has been assigned to `$tmp'.
7991 $debug ||
7993 tmp=
7994 trap 'exit_status=$?
7995 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7997 trap 'as_fn_exit 1' 1 2 13 15
7999 # Create a (secure) tmp directory for tmp files.
8002 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8003 test -n "$tmp" && test -d "$tmp"
8004 } ||
8006 tmp=./conf$$-$RANDOM
8007 (umask 077 && mkdir "$tmp")
8008 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8010 # Set up the scripts for CONFIG_FILES section.
8011 # No need to generate them if there are no CONFIG_FILES.
8012 # This happens for instance with `./config.status config.h'.
8013 if test -n "$CONFIG_FILES"; then
8016 ac_cr=`echo X | tr X '\015'`
8017 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8018 # But we know of no other shell where ac_cr would be empty at this
8019 # point, so we can use a bashism as a fallback.
8020 if test "x$ac_cr" = x; then
8021 eval ac_cr=\$\'\\r\'
8023 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8024 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8025 ac_cs_awk_cr='\r'
8026 else
8027 ac_cs_awk_cr=$ac_cr
8030 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8031 _ACEOF
8035 echo "cat >conf$$subs.awk <<_ACEOF" &&
8036 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8037 echo "_ACEOF"
8038 } >conf$$subs.sh ||
8039 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8040 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8041 ac_delim='%!_!# '
8042 for ac_last_try in false false false false false :; do
8043 . ./conf$$subs.sh ||
8044 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8046 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8047 if test $ac_delim_n = $ac_delim_num; then
8048 break
8049 elif $ac_last_try; then
8050 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8051 else
8052 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8054 done
8055 rm -f conf$$subs.sh
8057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8058 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8059 _ACEOF
8060 sed -n '
8062 s/^/S["/; s/!.*/"]=/
8065 s/^[^!]*!//
8066 :repl
8067 t repl
8068 s/'"$ac_delim"'$//
8069 t delim
8072 s/\(.\{148\}\).*/\1/
8073 t more1
8074 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8077 b repl
8078 :more1
8079 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8082 s/.\{148\}//
8083 t nl
8084 :delim
8086 s/\(.\{148\}\).*/\1/
8087 t more2
8088 s/["\\]/\\&/g; s/^/"/; s/$/"/
8091 :more2
8092 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8095 s/.\{148\}//
8096 t delim
8097 ' <conf$$subs.awk | sed '
8098 /^[^""]/{
8100 s/\n//
8102 ' >>$CONFIG_STATUS || ac_write_fail=1
8103 rm -f conf$$subs.awk
8104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8105 _ACAWK
8106 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8107 for (key in S) S_is_set[key] = 1
8108 FS = "\a"
8112 line = $ 0
8113 nfields = split(line, field, "@")
8114 substed = 0
8115 len = length(field[1])
8116 for (i = 2; i < nfields; i++) {
8117 key = field[i]
8118 keylen = length(key)
8119 if (S_is_set[key]) {
8120 value = S[key]
8121 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8122 len += length(value) + length(field[++i])
8123 substed = 1
8124 } else
8125 len += 1 + keylen
8128 print line
8131 _ACAWK
8132 _ACEOF
8133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8134 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8135 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8136 else
8138 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8139 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8140 _ACEOF
8142 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8143 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8144 # trailing colons and then remove the whole line if VPATH becomes empty
8145 # (actually we leave an empty line to preserve line numbers).
8146 if test "x$srcdir" = x.; then
8147 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8148 s/:*\$(srcdir):*/:/
8149 s/:*\${srcdir}:*/:/
8150 s/:*@srcdir@:*/:/
8151 s/^\([^=]*=[ ]*\):*/\1/
8152 s/:*$//
8153 s/^[^=]*=[ ]*$//
8157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8158 fi # test -n "$CONFIG_FILES"
8160 # Set up the scripts for CONFIG_HEADERS section.
8161 # No need to generate them if there are no CONFIG_HEADERS.
8162 # This happens for instance with `./config.status Makefile'.
8163 if test -n "$CONFIG_HEADERS"; then
8164 cat >"$tmp/defines.awk" <<\_ACAWK ||
8165 BEGIN {
8166 _ACEOF
8168 # Transform confdefs.h into an awk script `defines.awk', embedded as
8169 # here-document in config.status, that substitutes the proper values into
8170 # config.h.in to produce config.h.
8172 # Create a delimiter string that does not exist in confdefs.h, to ease
8173 # handling of long lines.
8174 ac_delim='%!_!# '
8175 for ac_last_try in false false :; do
8176 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8177 if test -z "$ac_t"; then
8178 break
8179 elif $ac_last_try; then
8180 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8181 else
8182 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8184 done
8186 # For the awk script, D is an array of macro values keyed by name,
8187 # likewise P contains macro parameters if any. Preserve backslash
8188 # newline sequences.
8190 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8191 sed -n '
8192 s/.\{148\}/&'"$ac_delim"'/g
8193 t rset
8194 :rset
8195 s/^[ ]*#[ ]*define[ ][ ]*/ /
8196 t def
8198 :def
8199 s/\\$//
8200 t bsnl
8201 s/["\\]/\\&/g
8202 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8203 D["\1"]=" \3"/p
8204 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8206 :bsnl
8207 s/["\\]/\\&/g
8208 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8209 D["\1"]=" \3\\\\\\n"\\/p
8210 t cont
8211 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8212 t cont
8214 :cont
8216 s/.\{148\}/&'"$ac_delim"'/g
8217 t clear
8218 :clear
8219 s/\\$//
8220 t bsnlc
8221 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8223 :bsnlc
8224 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8225 b cont
8226 ' <confdefs.h | sed '
8227 s/'"$ac_delim"'/"\\\
8228 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8231 for (key in D) D_is_set[key] = 1
8232 FS = "\a"
8234 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8235 line = \$ 0
8236 split(line, arg, " ")
8237 if (arg[1] == "#") {
8238 defundef = arg[2]
8239 mac1 = arg[3]
8240 } else {
8241 defundef = substr(arg[1], 2)
8242 mac1 = arg[2]
8244 split(mac1, mac2, "(") #)
8245 macro = mac2[1]
8246 prefix = substr(line, 1, index(line, defundef) - 1)
8247 if (D_is_set[macro]) {
8248 # Preserve the white space surrounding the "#".
8249 print prefix "define", macro P[macro] D[macro]
8250 next
8251 } else {
8252 # Replace #undef with comments. This is necessary, for example,
8253 # in the case of _POSIX_SOURCE, which is predefined and required
8254 # on some systems where configure will not decide to define it.
8255 if (defundef == "undef") {
8256 print "/*", prefix defundef, macro, "*/"
8257 next
8261 { print }
8262 _ACAWK
8263 _ACEOF
8264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8265 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8266 fi # test -n "$CONFIG_HEADERS"
8269 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8270 shift
8271 for ac_tag
8273 case $ac_tag in
8274 :[FHLC]) ac_mode=$ac_tag; continue;;
8275 esac
8276 case $ac_mode$ac_tag in
8277 :[FHL]*:*);;
8278 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8279 :[FH]-) ac_tag=-:-;;
8280 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8281 esac
8282 ac_save_IFS=$IFS
8283 IFS=:
8284 set x $ac_tag
8285 IFS=$ac_save_IFS
8286 shift
8287 ac_file=$1
8288 shift
8290 case $ac_mode in
8291 :L) ac_source=$1;;
8292 :[FH])
8293 ac_file_inputs=
8294 for ac_f
8296 case $ac_f in
8297 -) ac_f="$tmp/stdin";;
8298 *) # Look for the file first in the build tree, then in the source tree
8299 # (if the path is not absolute). The absolute path cannot be DOS-style,
8300 # because $ac_f cannot contain `:'.
8301 test -f "$ac_f" ||
8302 case $ac_f in
8303 [\\/$]*) false;;
8304 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8305 esac ||
8306 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8307 esac
8308 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8309 as_fn_append ac_file_inputs " '$ac_f'"
8310 done
8312 # Let's still pretend it is `configure' which instantiates (i.e., don't
8313 # use $as_me), people would be surprised to read:
8314 # /* config.h. Generated by config.status. */
8315 configure_input='Generated from '`
8316 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8317 `' by configure.'
8318 if test x"$ac_file" != x-; then
8319 configure_input="$ac_file. $configure_input"
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8321 $as_echo "$as_me: creating $ac_file" >&6;}
8323 # Neutralize special characters interpreted by sed in replacement strings.
8324 case $configure_input in #(
8325 *\&* | *\|* | *\\* )
8326 ac_sed_conf_input=`$as_echo "$configure_input" |
8327 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8328 *) ac_sed_conf_input=$configure_input;;
8329 esac
8331 case $ac_tag in
8332 *:-:* | *:-) cat >"$tmp/stdin" \
8333 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8334 esac
8336 esac
8338 ac_dir=`$as_dirname -- "$ac_file" ||
8339 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8340 X"$ac_file" : 'X\(//\)[^/]' \| \
8341 X"$ac_file" : 'X\(//\)$' \| \
8342 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8343 $as_echo X"$ac_file" |
8344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8345 s//\1/
8348 /^X\(\/\/\)[^/].*/{
8349 s//\1/
8352 /^X\(\/\/\)$/{
8353 s//\1/
8356 /^X\(\/\).*/{
8357 s//\1/
8360 s/.*/./; q'`
8361 as_dir="$ac_dir"; as_fn_mkdir_p
8362 ac_builddir=.
8364 case "$ac_dir" in
8365 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8367 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8368 # A ".." for each directory in $ac_dir_suffix.
8369 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8370 case $ac_top_builddir_sub in
8371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8373 esac ;;
8374 esac
8375 ac_abs_top_builddir=$ac_pwd
8376 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8377 # for backward compatibility:
8378 ac_top_builddir=$ac_top_build_prefix
8380 case $srcdir in
8381 .) # We are building in place.
8382 ac_srcdir=.
8383 ac_top_srcdir=$ac_top_builddir_sub
8384 ac_abs_top_srcdir=$ac_pwd ;;
8385 [\\/]* | ?:[\\/]* ) # Absolute name.
8386 ac_srcdir=$srcdir$ac_dir_suffix;
8387 ac_top_srcdir=$srcdir
8388 ac_abs_top_srcdir=$srcdir ;;
8389 *) # Relative name.
8390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8391 ac_top_srcdir=$ac_top_build_prefix$srcdir
8392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8393 esac
8394 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8397 case $ac_mode in
8400 # CONFIG_FILE
8403 case $INSTALL in
8404 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8405 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8406 esac
8407 _ACEOF
8409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8410 # If the template does not know about datarootdir, expand it.
8411 # FIXME: This hack should be removed a few years after 2.60.
8412 ac_datarootdir_hack=; ac_datarootdir_seen=
8413 ac_sed_dataroot='
8414 /datarootdir/ {
8418 /@datadir@/p
8419 /@docdir@/p
8420 /@infodir@/p
8421 /@localedir@/p
8422 /@mandir@/p'
8423 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8424 *datarootdir*) ac_datarootdir_seen=yes;;
8425 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8427 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8428 _ACEOF
8429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8430 ac_datarootdir_hack='
8431 s&@datadir@&$datadir&g
8432 s&@docdir@&$docdir&g
8433 s&@infodir@&$infodir&g
8434 s&@localedir@&$localedir&g
8435 s&@mandir@&$mandir&g
8436 s&\\\${datarootdir}&$datarootdir&g' ;;
8437 esac
8438 _ACEOF
8440 # Neutralize VPATH when `$srcdir' = `.'.
8441 # Shell code in configure.ac might set extrasub.
8442 # FIXME: do we really want to maintain this feature?
8443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8444 ac_sed_extra="$ac_vpsub
8445 $extrasub
8446 _ACEOF
8447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8449 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8450 s|@configure_input@|$ac_sed_conf_input|;t t
8451 s&@top_builddir@&$ac_top_builddir_sub&;t t
8452 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8453 s&@srcdir@&$ac_srcdir&;t t
8454 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8455 s&@top_srcdir@&$ac_top_srcdir&;t t
8456 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8457 s&@builddir@&$ac_builddir&;t t
8458 s&@abs_builddir@&$ac_abs_builddir&;t t
8459 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8460 s&@INSTALL@&$ac_INSTALL&;t t
8461 $ac_datarootdir_hack
8463 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8464 || as_fn_error "could not create $ac_file" "$LINENO" 5
8466 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8467 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8468 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8470 which seems to be undefined. Please make sure it is defined." >&5
8471 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8472 which seems to be undefined. Please make sure it is defined." >&2;}
8474 rm -f "$tmp/stdin"
8475 case $ac_file in
8476 -) cat "$tmp/out" && rm -f "$tmp/out";;
8477 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8478 esac \
8479 || as_fn_error "could not create $ac_file" "$LINENO" 5
8483 # CONFIG_HEADER
8485 if test x"$ac_file" != x-; then
8487 $as_echo "/* $configure_input */" \
8488 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8489 } >"$tmp/config.h" \
8490 || as_fn_error "could not create $ac_file" "$LINENO" 5
8491 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8493 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8494 else
8495 rm -f "$ac_file"
8496 mv "$tmp/config.h" "$ac_file" \
8497 || as_fn_error "could not create $ac_file" "$LINENO" 5
8499 else
8500 $as_echo "/* $configure_input */" \
8501 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8502 || as_fn_error "could not create -" "$LINENO" 5
8506 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8507 $as_echo "$as_me: executing $ac_file commands" >&6;}
8509 esac
8512 case $ac_file$ac_mode in
8513 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8514 "config.h":H) echo timestamp > stamp-h1 ;;
8516 esac
8517 done # for ac_tag
8520 as_fn_exit 0
8521 _ACEOF
8522 ac_clean_files=$ac_clean_files_save
8524 test $ac_write_fail = 0 ||
8525 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8528 # configure is writing to config.log, and then calls config.status.
8529 # config.status does its own redirection, appending to config.log.
8530 # Unfortunately, on DOS this fails, as config.log is still kept open
8531 # by configure, so config.status won't be able to write to it; its
8532 # output is simply discarded. So we exec the FD to /dev/null,
8533 # effectively closing config.log, so it can be properly (re)opened and
8534 # appended to by config.status. When coming back to configure, we
8535 # need to make the FD available again.
8536 if test "$no_create" != yes; then
8537 ac_cs_success=:
8538 ac_config_status_args=
8539 test "$silent" = yes &&
8540 ac_config_status_args="$ac_config_status_args --quiet"
8541 exec 5>/dev/null
8542 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8543 exec 5>>config.log
8544 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8545 # would make configure fail if this is the last instruction.
8546 $ac_cs_success || as_fn_exit $?
8548 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8550 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}