2013-05-31 Janus Weil <janus@gcc.gnu.org>
[official-gcc.git] / libcpp / configure
blob715818697b8452d70593f9f80b4e193915049fa4
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 MAINT
596 USED_CATALOGS
597 PACKAGE
598 LTLIBICONV
599 LIBICONV
600 CATOBJEXT
601 GENCAT
602 INSTOBJEXT
603 DATADIRNAME
604 CATALOGS
605 POSUB
606 GMSGFMT
607 XGETTEXT
608 INCINTL
609 LIBINTL_DEP
610 LIBINTL
611 USE_NLS
612 ALLOCA
613 LIBOBJS
614 CXXDEPMODE
615 DEPDIR
616 am__leading_dot
617 WERROR
618 noexception_flags
619 WARN_PEDANTIC
620 c_warn
621 warn
622 AUTOHEADER
623 AUTOCONF
624 ACLOCAL
625 EGREP
626 GREP
628 RANLIB
629 ac_ct_CXX
630 CXXFLAGS
632 OBJEXT
633 EXEEXT
634 ac_ct_CC
635 CPPFLAGS
636 LDFLAGS
637 CFLAGS
639 INSTALL_DATA
640 INSTALL_SCRIPT
641 INSTALL_PROGRAM
642 SET_MAKE
643 target_os
644 target_vendor
645 target_cpu
646 target
647 host_os
648 host_vendor
649 host_cpu
650 host
651 build_os
652 build_vendor
653 build_cpu
654 build
655 target_alias
656 host_alias
657 build_alias
658 LIBS
659 ECHO_T
660 ECHO_N
661 ECHO_C
662 DEFS
663 mandir
664 localedir
665 libdir
666 psdir
667 pdfdir
668 dvidir
669 htmldir
670 infodir
671 docdir
672 oldincludedir
673 includedir
674 localstatedir
675 sharedstatedir
676 sysconfdir
677 datadir
678 datarootdir
679 libexecdir
680 sbindir
681 bindir
682 program_transform_name
683 prefix
684 exec_prefix
685 PACKAGE_URL
686 PACKAGE_BUGREPORT
687 PACKAGE_STRING
688 PACKAGE_VERSION
689 PACKAGE_TARNAME
690 PACKAGE_NAME
691 PATH_SEPARATOR
692 SHELL'
693 ac_subst_files=''
694 ac_user_opts='
695 enable_option_checking
696 enable_largefile
697 enable_werror_always
698 with_gnu_ld
699 enable_rpath
700 with_libiconv_prefix
701 enable_maintainer_mode
702 enable_checking
703 enable_canonical_system_headers
705 ac_precious_vars='build_alias
706 host_alias
707 target_alias
709 CFLAGS
710 LDFLAGS
711 LIBS
712 CPPFLAGS
714 CXXFLAGS
716 CPP'
719 # Initialize some variables set by options.
720 ac_init_help=
721 ac_init_version=false
722 ac_unrecognized_opts=
723 ac_unrecognized_sep=
724 # The variables have the same names as the options, with
725 # dashes changed to underlines.
726 cache_file=/dev/null
727 exec_prefix=NONE
728 no_create=
729 no_recursion=
730 prefix=NONE
731 program_prefix=NONE
732 program_suffix=NONE
733 program_transform_name=s,x,x,
734 silent=
735 site=
736 srcdir=
737 verbose=
738 x_includes=NONE
739 x_libraries=NONE
741 # Installation directory options.
742 # These are left unexpanded so users can "make install exec_prefix=/foo"
743 # and all the variables that are supposed to be based on exec_prefix
744 # by default will actually change.
745 # Use braces instead of parens because sh, perl, etc. also accept them.
746 # (The list follows the same order as the GNU Coding Standards.)
747 bindir='${exec_prefix}/bin'
748 sbindir='${exec_prefix}/sbin'
749 libexecdir='${exec_prefix}/libexec'
750 datarootdir='${prefix}/share'
751 datadir='${datarootdir}'
752 sysconfdir='${prefix}/etc'
753 sharedstatedir='${prefix}/com'
754 localstatedir='${prefix}/var'
755 includedir='${prefix}/include'
756 oldincludedir='/usr/include'
757 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
758 infodir='${datarootdir}/info'
759 htmldir='${docdir}'
760 dvidir='${docdir}'
761 pdfdir='${docdir}'
762 psdir='${docdir}'
763 libdir='${exec_prefix}/lib'
764 localedir='${datarootdir}/locale'
765 mandir='${datarootdir}/man'
767 ac_prev=
768 ac_dashdash=
769 for ac_option
771 # If the previous option needs an argument, assign it.
772 if test -n "$ac_prev"; then
773 eval $ac_prev=\$ac_option
774 ac_prev=
775 continue
778 case $ac_option in
779 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
780 *) ac_optarg=yes ;;
781 esac
783 # Accept the important Cygnus configure options, so we can diagnose typos.
785 case $ac_dashdash$ac_option in
787 ac_dashdash=yes ;;
789 -bindir | --bindir | --bindi | --bind | --bin | --bi)
790 ac_prev=bindir ;;
791 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
792 bindir=$ac_optarg ;;
794 -build | --build | --buil | --bui | --bu)
795 ac_prev=build_alias ;;
796 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
797 build_alias=$ac_optarg ;;
799 -cache-file | --cache-file | --cache-fil | --cache-fi \
800 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
801 ac_prev=cache_file ;;
802 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
803 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
804 cache_file=$ac_optarg ;;
806 --config-cache | -C)
807 cache_file=config.cache ;;
809 -datadir | --datadir | --datadi | --datad)
810 ac_prev=datadir ;;
811 -datadir=* | --datadir=* | --datadi=* | --datad=*)
812 datadir=$ac_optarg ;;
814 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
815 | --dataroo | --dataro | --datar)
816 ac_prev=datarootdir ;;
817 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
818 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
819 datarootdir=$ac_optarg ;;
821 -disable-* | --disable-*)
822 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
823 # Reject names that are not valid shell variable names.
824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
825 as_fn_error "invalid feature name: $ac_useropt"
826 ac_useropt_orig=$ac_useropt
827 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
828 case $ac_user_opts in
830 "enable_$ac_useropt"
831 "*) ;;
832 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
833 ac_unrecognized_sep=', ';;
834 esac
835 eval enable_$ac_useropt=no ;;
837 -docdir | --docdir | --docdi | --doc | --do)
838 ac_prev=docdir ;;
839 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
840 docdir=$ac_optarg ;;
842 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
843 ac_prev=dvidir ;;
844 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
845 dvidir=$ac_optarg ;;
847 -enable-* | --enable-*)
848 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
851 as_fn_error "invalid feature name: $ac_useropt"
852 ac_useropt_orig=$ac_useropt
853 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854 case $ac_user_opts in
856 "enable_$ac_useropt"
857 "*) ;;
858 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
859 ac_unrecognized_sep=', ';;
860 esac
861 eval enable_$ac_useropt=\$ac_optarg ;;
863 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
864 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
865 | --exec | --exe | --ex)
866 ac_prev=exec_prefix ;;
867 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
868 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
869 | --exec=* | --exe=* | --ex=*)
870 exec_prefix=$ac_optarg ;;
872 -gas | --gas | --ga | --g)
873 # Obsolete; use --with-gas.
874 with_gas=yes ;;
876 -help | --help | --hel | --he | -h)
877 ac_init_help=long ;;
878 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
879 ac_init_help=recursive ;;
880 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
881 ac_init_help=short ;;
883 -host | --host | --hos | --ho)
884 ac_prev=host_alias ;;
885 -host=* | --host=* | --hos=* | --ho=*)
886 host_alias=$ac_optarg ;;
888 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
889 ac_prev=htmldir ;;
890 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
891 | --ht=*)
892 htmldir=$ac_optarg ;;
894 -includedir | --includedir | --includedi | --included | --include \
895 | --includ | --inclu | --incl | --inc)
896 ac_prev=includedir ;;
897 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
898 | --includ=* | --inclu=* | --incl=* | --inc=*)
899 includedir=$ac_optarg ;;
901 -infodir | --infodir | --infodi | --infod | --info | --inf)
902 ac_prev=infodir ;;
903 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
904 infodir=$ac_optarg ;;
906 -libdir | --libdir | --libdi | --libd)
907 ac_prev=libdir ;;
908 -libdir=* | --libdir=* | --libdi=* | --libd=*)
909 libdir=$ac_optarg ;;
911 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
912 | --libexe | --libex | --libe)
913 ac_prev=libexecdir ;;
914 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
915 | --libexe=* | --libex=* | --libe=*)
916 libexecdir=$ac_optarg ;;
918 -localedir | --localedir | --localedi | --localed | --locale)
919 ac_prev=localedir ;;
920 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
921 localedir=$ac_optarg ;;
923 -localstatedir | --localstatedir | --localstatedi | --localstated \
924 | --localstate | --localstat | --localsta | --localst | --locals)
925 ac_prev=localstatedir ;;
926 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
927 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
928 localstatedir=$ac_optarg ;;
930 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
931 ac_prev=mandir ;;
932 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
933 mandir=$ac_optarg ;;
935 -nfp | --nfp | --nf)
936 # Obsolete; use --without-fp.
937 with_fp=no ;;
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c | -n)
941 no_create=yes ;;
943 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
944 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945 no_recursion=yes ;;
947 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
948 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
949 | --oldin | --oldi | --old | --ol | --o)
950 ac_prev=oldincludedir ;;
951 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
952 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
953 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
954 oldincludedir=$ac_optarg ;;
956 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
957 ac_prev=prefix ;;
958 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
959 prefix=$ac_optarg ;;
961 -program-prefix | --program-prefix | --program-prefi | --program-pref \
962 | --program-pre | --program-pr | --program-p)
963 ac_prev=program_prefix ;;
964 -program-prefix=* | --program-prefix=* | --program-prefi=* \
965 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
966 program_prefix=$ac_optarg ;;
968 -program-suffix | --program-suffix | --program-suffi | --program-suff \
969 | --program-suf | --program-su | --program-s)
970 ac_prev=program_suffix ;;
971 -program-suffix=* | --program-suffix=* | --program-suffi=* \
972 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
973 program_suffix=$ac_optarg ;;
975 -program-transform-name | --program-transform-name \
976 | --program-transform-nam | --program-transform-na \
977 | --program-transform-n | --program-transform- \
978 | --program-transform | --program-transfor \
979 | --program-transfo | --program-transf \
980 | --program-trans | --program-tran \
981 | --progr-tra | --program-tr | --program-t)
982 ac_prev=program_transform_name ;;
983 -program-transform-name=* | --program-transform-name=* \
984 | --program-transform-nam=* | --program-transform-na=* \
985 | --program-transform-n=* | --program-transform-=* \
986 | --program-transform=* | --program-transfor=* \
987 | --program-transfo=* | --program-transf=* \
988 | --program-trans=* | --program-tran=* \
989 | --progr-tra=* | --program-tr=* | --program-t=*)
990 program_transform_name=$ac_optarg ;;
992 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
993 ac_prev=pdfdir ;;
994 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995 pdfdir=$ac_optarg ;;
997 -psdir | --psdir | --psdi | --psd | --ps)
998 ac_prev=psdir ;;
999 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000 psdir=$ac_optarg ;;
1002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003 | -silent | --silent | --silen | --sile | --sil)
1004 silent=yes ;;
1006 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1007 ac_prev=sbindir ;;
1008 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1009 | --sbi=* | --sb=*)
1010 sbindir=$ac_optarg ;;
1012 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1013 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1014 | --sharedst | --shareds | --shared | --share | --shar \
1015 | --sha | --sh)
1016 ac_prev=sharedstatedir ;;
1017 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1018 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1019 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1020 | --sha=* | --sh=*)
1021 sharedstatedir=$ac_optarg ;;
1023 -site | --site | --sit)
1024 ac_prev=site ;;
1025 -site=* | --site=* | --sit=*)
1026 site=$ac_optarg ;;
1028 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1029 ac_prev=srcdir ;;
1030 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1031 srcdir=$ac_optarg ;;
1033 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1034 | --syscon | --sysco | --sysc | --sys | --sy)
1035 ac_prev=sysconfdir ;;
1036 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1037 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1038 sysconfdir=$ac_optarg ;;
1040 -target | --target | --targe | --targ | --tar | --ta | --t)
1041 ac_prev=target_alias ;;
1042 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1043 target_alias=$ac_optarg ;;
1045 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1046 verbose=yes ;;
1048 -version | --version | --versio | --versi | --vers | -V)
1049 ac_init_version=: ;;
1051 -with-* | --with-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error "invalid package name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "with_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval with_$ac_useropt=\$ac_optarg ;;
1067 -without-* | --without-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error "invalid package name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "with_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval with_$ac_useropt=no ;;
1083 --x)
1084 # Obsolete; use --with-x.
1085 with_x=yes ;;
1087 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1088 | --x-incl | --x-inc | --x-in | --x-i)
1089 ac_prev=x_includes ;;
1090 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1091 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1092 x_includes=$ac_optarg ;;
1094 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1095 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1096 ac_prev=x_libraries ;;
1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1099 x_libraries=$ac_optarg ;;
1101 -*) as_fn_error "unrecognized option: \`$ac_option'
1102 Try \`$0 --help' for more information."
1105 *=*)
1106 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1107 # Reject names that are not valid shell variable names.
1108 case $ac_envvar in #(
1109 '' | [0-9]* | *[!_$as_cr_alnum]* )
1110 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1111 esac
1112 eval $ac_envvar=\$ac_optarg
1113 export $ac_envvar ;;
1116 # FIXME: should be removed in autoconf 3.0.
1117 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1123 esac
1124 done
1126 if test -n "$ac_prev"; then
1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1128 as_fn_error "missing argument to $ac_option"
1131 if test -n "$ac_unrecognized_opts"; then
1132 case $enable_option_checking in
1133 no) ;;
1134 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1135 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1136 esac
1139 # Check all directory arguments for consistency.
1140 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1141 datadir sysconfdir sharedstatedir localstatedir includedir \
1142 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1143 libdir localedir mandir
1145 eval ac_val=\$$ac_var
1146 # Remove trailing slashes.
1147 case $ac_val in
1148 */ )
1149 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1150 eval $ac_var=\$ac_val;;
1151 esac
1152 # Be sure to have absolute directory names.
1153 case $ac_val in
1154 [\\/$]* | ?:[\\/]* ) continue;;
1155 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1156 esac
1157 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1158 done
1160 # There might be people who depend on the old broken behavior: `$host'
1161 # used to hold the argument of --host etc.
1162 # FIXME: To remove some day.
1163 build=$build_alias
1164 host=$host_alias
1165 target=$target_alias
1167 # FIXME: To remove some day.
1168 if test "x$host_alias" != x; then
1169 if test "x$build_alias" = x; then
1170 cross_compiling=maybe
1171 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1172 If a cross compiler is detected then cross compile mode will be used." >&2
1173 elif test "x$build_alias" != "x$host_alias"; then
1174 cross_compiling=yes
1178 ac_tool_prefix=
1179 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1181 test "$silent" = yes && exec 6>/dev/null
1184 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1185 ac_ls_di=`ls -di .` &&
1186 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1187 as_fn_error "working directory cannot be determined"
1188 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1189 as_fn_error "pwd does not report name of working directory"
1192 # Find the source files, if location was not specified.
1193 if test -z "$srcdir"; then
1194 ac_srcdir_defaulted=yes
1195 # Try the directory containing this script, then the parent directory.
1196 ac_confdir=`$as_dirname -- "$as_myself" ||
1197 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1198 X"$as_myself" : 'X\(//\)[^/]' \| \
1199 X"$as_myself" : 'X\(//\)$' \| \
1200 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1201 $as_echo X"$as_myself" |
1202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1203 s//\1/
1206 /^X\(\/\/\)[^/].*/{
1207 s//\1/
1210 /^X\(\/\/\)$/{
1211 s//\1/
1214 /^X\(\/\).*/{
1215 s//\1/
1218 s/.*/./; q'`
1219 srcdir=$ac_confdir
1220 if test ! -r "$srcdir/$ac_unique_file"; then
1221 srcdir=..
1223 else
1224 ac_srcdir_defaulted=no
1226 if test ! -r "$srcdir/$ac_unique_file"; then
1227 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1228 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1230 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1231 ac_abs_confdir=`(
1232 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1233 pwd)`
1234 # When building in place, set srcdir=.
1235 if test "$ac_abs_confdir" = "$ac_pwd"; then
1236 srcdir=.
1238 # Remove unnecessary trailing slashes from srcdir.
1239 # Double slashes in file names in object file debugging info
1240 # mess up M-x gdb in Emacs.
1241 case $srcdir in
1242 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1243 esac
1244 for ac_var in $ac_precious_vars; do
1245 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1246 eval ac_env_${ac_var}_value=\$${ac_var}
1247 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1249 done
1252 # Report the --help message.
1254 if test "$ac_init_help" = "long"; then
1255 # Omit some internal or obsolete options to make the list less imposing.
1256 # This message is too long to be a string in the A/UX 3.1 sh.
1257 cat <<_ACEOF
1258 \`configure' configures cpplib to adapt to many kinds of systems.
1260 Usage: $0 [OPTION]... [VAR=VALUE]...
1262 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1263 VAR=VALUE. See below for descriptions of some of the useful variables.
1265 Defaults for the options are specified in brackets.
1267 Configuration:
1268 -h, --help display this help and exit
1269 --help=short display options specific to this package
1270 --help=recursive display the short help of all the included packages
1271 -V, --version display version information and exit
1272 -q, --quiet, --silent do not print \`checking...' messages
1273 --cache-file=FILE cache test results in FILE [disabled]
1274 -C, --config-cache alias for \`--cache-file=config.cache'
1275 -n, --no-create do not create output files
1276 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1278 Installation directories:
1279 --prefix=PREFIX install architecture-independent files in PREFIX
1280 [$ac_default_prefix]
1281 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1282 [PREFIX]
1284 By default, \`make install' will install all the files in
1285 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1286 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1287 for instance \`--prefix=\$HOME'.
1289 For better control, use the options below.
1291 Fine tuning of the installation directories:
1292 --bindir=DIR user executables [EPREFIX/bin]
1293 --sbindir=DIR system admin executables [EPREFIX/sbin]
1294 --libexecdir=DIR program executables [EPREFIX/libexec]
1295 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1296 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1297 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1298 --libdir=DIR object code libraries [EPREFIX/lib]
1299 --includedir=DIR C header files [PREFIX/include]
1300 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1301 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1302 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1303 --infodir=DIR info documentation [DATAROOTDIR/info]
1304 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1305 --mandir=DIR man documentation [DATAROOTDIR/man]
1306 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
1307 --htmldir=DIR html documentation [DOCDIR]
1308 --dvidir=DIR dvi documentation [DOCDIR]
1309 --pdfdir=DIR pdf documentation [DOCDIR]
1310 --psdir=DIR ps documentation [DOCDIR]
1311 _ACEOF
1313 cat <<\_ACEOF
1315 System types:
1316 --build=BUILD configure for building on BUILD [guessed]
1317 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1318 --target=TARGET configure for building compilers for TARGET [HOST]
1319 _ACEOF
1322 if test -n "$ac_init_help"; then
1323 case $ac_init_help in
1324 short | recursive ) echo "Configuration of cpplib :";;
1325 esac
1326 cat <<\_ACEOF
1328 Optional Features:
1329 --disable-option-checking ignore unrecognized --enable/--with options
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --disable-largefile omit support for large files
1333 --enable-werror-always enable -Werror despite compiler version
1334 --disable-rpath do not hardcode runtime library paths
1335 --enable-maintainer-mode enable rules only needed by maintainers
1336 --enable-checking[=LIST]
1337 enable expensive run-time checks. With LIST, enable
1338 only specific categories of checks. Categories are:
1339 yes,no,all,none,release. Flags are: misc,valgrind or
1340 other strings
1341 --enable-canonical-system-headers
1342 enable or disable system headers canonicalization
1344 Optional Packages:
1345 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1346 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1347 --with-gnu-ld assume the C compiler uses GNU ld default=no
1348 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1349 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1351 Some influential environment variables:
1352 CC C compiler command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1355 nonstandard directory <lib dir>
1356 LIBS libraries to pass to the linker, e.g. -l<library>
1357 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1358 you have headers in a nonstandard directory <include dir>
1359 CXX C++ compiler command
1360 CXXFLAGS C++ compiler flags
1361 CPP C preprocessor
1363 Use these variables to override the choices made by `configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1366 Report bugs to <gcc-bugs@gcc.gnu.org>.
1367 _ACEOF
1368 ac_status=$?
1371 if test "$ac_init_help" = "recursive"; then
1372 # If there are subdirs, report their specific --help.
1373 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1374 test -d "$ac_dir" ||
1375 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1376 continue
1377 ac_builddir=.
1379 case "$ac_dir" in
1380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1383 # A ".." for each directory in $ac_dir_suffix.
1384 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1385 case $ac_top_builddir_sub in
1386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1388 esac ;;
1389 esac
1390 ac_abs_top_builddir=$ac_pwd
1391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1392 # for backward compatibility:
1393 ac_top_builddir=$ac_top_build_prefix
1395 case $srcdir in
1396 .) # We are building in place.
1397 ac_srcdir=.
1398 ac_top_srcdir=$ac_top_builddir_sub
1399 ac_abs_top_srcdir=$ac_pwd ;;
1400 [\\/]* | ?:[\\/]* ) # Absolute name.
1401 ac_srcdir=$srcdir$ac_dir_suffix;
1402 ac_top_srcdir=$srcdir
1403 ac_abs_top_srcdir=$srcdir ;;
1404 *) # Relative name.
1405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1406 ac_top_srcdir=$ac_top_build_prefix$srcdir
1407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1408 esac
1409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1411 cd "$ac_dir" || { ac_status=$?; continue; }
1412 # Check for guested configure.
1413 if test -f "$ac_srcdir/configure.gnu"; then
1414 echo &&
1415 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1416 elif test -f "$ac_srcdir/configure"; then
1417 echo &&
1418 $SHELL "$ac_srcdir/configure" --help=recursive
1419 else
1420 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1421 fi || ac_status=$?
1422 cd "$ac_pwd" || { ac_status=$?; break; }
1423 done
1426 test -n "$ac_init_help" && exit $ac_status
1427 if $ac_init_version; then
1428 cat <<\_ACEOF
1429 cpplib configure
1430 generated by GNU Autoconf 2.64
1432 Copyright (C) 2009 Free Software Foundation, Inc.
1433 This configure script is free software; the Free Software Foundation
1434 gives unlimited permission to copy, distribute and modify it.
1435 _ACEOF
1436 exit
1439 ## ------------------------ ##
1440 ## Autoconf initialization. ##
1441 ## ------------------------ ##
1443 # ac_fn_c_try_compile LINENO
1444 # --------------------------
1445 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1446 ac_fn_c_try_compile ()
1448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1449 rm -f conftest.$ac_objext
1450 if { { ac_try="$ac_compile"
1451 case "(($ac_try" in
1452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1453 *) ac_try_echo=$ac_try;;
1454 esac
1455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1456 $as_echo "$ac_try_echo"; } >&5
1457 (eval "$ac_compile") 2>conftest.err
1458 ac_status=$?
1459 if test -s conftest.err; then
1460 grep -v '^ *+' conftest.err >conftest.er1
1461 cat conftest.er1 >&5
1462 mv -f conftest.er1 conftest.err
1464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1465 test $ac_status = 0; } && {
1466 test -z "$ac_c_werror_flag" ||
1467 test ! -s conftest.err
1468 } && test -s conftest.$ac_objext; then :
1469 ac_retval=0
1470 else
1471 $as_echo "$as_me: failed program was:" >&5
1472 sed 's/^/| /' conftest.$ac_ext >&5
1474 ac_retval=1
1476 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1477 return $ac_retval
1479 } # ac_fn_c_try_compile
1481 # ac_fn_cxx_try_compile LINENO
1482 # ----------------------------
1483 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1484 ac_fn_cxx_try_compile ()
1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487 rm -f conftest.$ac_objext
1488 if { { ac_try="$ac_compile"
1489 case "(($ac_try" in
1490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1491 *) ac_try_echo=$ac_try;;
1492 esac
1493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1494 $as_echo "$ac_try_echo"; } >&5
1495 (eval "$ac_compile") 2>conftest.err
1496 ac_status=$?
1497 if test -s conftest.err; then
1498 grep -v '^ *+' conftest.err >conftest.er1
1499 cat conftest.er1 >&5
1500 mv -f conftest.er1 conftest.err
1502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1503 test $ac_status = 0; } && {
1504 test -z "$ac_cxx_werror_flag" ||
1505 test ! -s conftest.err
1506 } && test -s conftest.$ac_objext; then :
1507 ac_retval=0
1508 else
1509 $as_echo "$as_me: failed program was:" >&5
1510 sed 's/^/| /' conftest.$ac_ext >&5
1512 ac_retval=1
1514 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1515 return $ac_retval
1517 } # ac_fn_cxx_try_compile
1519 # ac_fn_c_try_cpp LINENO
1520 # ----------------------
1521 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1522 ac_fn_c_try_cpp ()
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 if { { ac_try="$ac_cpp conftest.$ac_ext"
1526 case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529 esac
1530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531 $as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } >/dev/null && {
1541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 }; then :
1544 ac_retval=0
1545 else
1546 $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1549 ac_retval=1
1551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1552 return $ac_retval
1554 } # ac_fn_c_try_cpp
1556 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1557 # -------------------------------------------------------
1558 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1559 # the include files in INCLUDES and setting the cache variable VAR
1560 # accordingly.
1561 ac_fn_c_check_header_mongrel ()
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1566 $as_echo_n "checking for $2... " >&6; }
1567 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1568 $as_echo_n "(cached) " >&6
1570 eval ac_res=\$$3
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1572 $as_echo "$ac_res" >&6; }
1573 else
1574 # Is the header compilable?
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1576 $as_echo_n "checking $2 usability... " >&6; }
1577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1578 /* end confdefs.h. */
1580 #include <$2>
1581 _ACEOF
1582 if ac_fn_c_try_compile "$LINENO"; then :
1583 ac_header_compiler=yes
1584 else
1585 ac_header_compiler=no
1587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1589 $as_echo "$ac_header_compiler" >&6; }
1591 # Is the header present?
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1593 $as_echo_n "checking $2 presence... " >&6; }
1594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1595 /* end confdefs.h. */
1596 #include <$2>
1597 _ACEOF
1598 if ac_fn_c_try_cpp "$LINENO"; then :
1599 ac_header_preproc=yes
1600 else
1601 ac_header_preproc=no
1603 rm -f conftest.err conftest.$ac_ext
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1605 $as_echo "$ac_header_preproc" >&6; }
1607 # So? What about this header?
1608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1609 yes:no: )
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1611 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1613 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1615 no:yes:* )
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1617 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1619 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1621 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1623 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1625 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1626 ( cat <<\_ASBOX
1627 ## ----------------------------------- ##
1628 ## Report this to gcc-bugs@gcc.gnu.org ##
1629 ## ----------------------------------- ##
1630 _ASBOX
1631 ) | sed "s/^/$as_me: WARNING: /" >&2
1633 esac
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635 $as_echo_n "checking for $2... " >&6; }
1636 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1637 $as_echo_n "(cached) " >&6
1638 else
1639 eval "$3=\$ac_header_compiler"
1641 eval ac_res=\$$3
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643 $as_echo "$ac_res" >&6; }
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647 } # ac_fn_c_check_header_mongrel
1649 # ac_fn_c_try_run LINENO
1650 # ----------------------
1651 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1652 # that executables *can* be run.
1653 ac_fn_c_try_run ()
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if { { ac_try="$ac_link"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>&5
1664 ac_status=$?
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1667 { { case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_try") 2>&5
1674 ac_status=$?
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; }; }; then :
1677 ac_retval=0
1678 else
1679 $as_echo "$as_me: program exited with status $ac_status" >&5
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1683 ac_retval=$ac_status
1685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687 return $ac_retval
1689 } # ac_fn_c_try_run
1691 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1692 # -------------------------------------------------------
1693 # Tests whether HEADER exists and can be compiled using the include files in
1694 # INCLUDES, setting the cache variable VAR accordingly.
1695 ac_fn_c_check_header_compile ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1701 $as_echo_n "(cached) " >&6
1702 else
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1706 #include <$2>
1707 _ACEOF
1708 if ac_fn_c_try_compile "$LINENO"; then :
1709 eval "$3=yes"
1710 else
1711 eval "$3=no"
1713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1715 eval ac_res=\$$3
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 } # ac_fn_c_check_header_compile
1722 # ac_fn_c_try_link LINENO
1723 # -----------------------
1724 # Try to link conftest.$ac_ext, and return whether this succeeded.
1725 ac_fn_c_try_link ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext conftest$ac_exeext
1729 if { { ac_try="$ac_link"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_link") 2>conftest.err
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest$ac_exeext && {
1748 test "$cross_compiling" = yes ||
1749 $as_test_x conftest$ac_exeext
1750 }; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1756 ac_retval=1
1758 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1759 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1760 # interfere with the next link command; also delete a directory that is
1761 # left behind by Apple's compiler. We do this before executing the actions.
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 return $ac_retval
1766 } # ac_fn_c_try_link
1768 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1769 # -------------------------------------------
1770 # Tests whether TYPE exists after having included INCLUDES, setting cache
1771 # variable VAR accordingly.
1772 ac_fn_c_check_type ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1778 $as_echo_n "(cached) " >&6
1779 else
1780 eval "$3=no"
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1785 main ()
1787 if (sizeof ($2))
1788 return 0;
1790 return 0;
1792 _ACEOF
1793 if ac_fn_c_try_compile "$LINENO"; then :
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1798 main ()
1800 if (sizeof (($2)))
1801 return 0;
1803 return 0;
1805 _ACEOF
1806 if ac_fn_c_try_compile "$LINENO"; then :
1808 else
1809 eval "$3=yes"
1811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820 } # ac_fn_c_check_type
1822 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1823 # --------------------------------------------
1824 # Tries to find the compile-time value of EXPR in a program that includes
1825 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1826 # computed
1827 ac_fn_c_compute_int ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if test "$cross_compiling" = yes; then
1831 # Depending upon the size, compute the lo and hi bounds.
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1836 main ()
1838 static int test_array [1 - 2 * !(($2) >= 0)];
1839 test_array [0] = 0
1842 return 0;
1844 _ACEOF
1845 if ac_fn_c_try_compile "$LINENO"; then :
1846 ac_lo=0 ac_mid=0
1847 while :; do
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1852 main ()
1854 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1855 test_array [0] = 0
1858 return 0;
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862 ac_hi=$ac_mid; break
1863 else
1864 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1865 if test $ac_lo -le $ac_mid; then
1866 ac_lo= ac_hi=
1867 break
1869 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 done
1873 else
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1878 main ()
1880 static int test_array [1 - 2 * !(($2) < 0)];
1881 test_array [0] = 0
1884 return 0;
1886 _ACEOF
1887 if ac_fn_c_try_compile "$LINENO"; then :
1888 ac_hi=-1 ac_mid=-1
1889 while :; do
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1894 main ()
1896 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1897 test_array [0] = 0
1900 return 0;
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904 ac_lo=$ac_mid; break
1905 else
1906 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1907 if test $ac_mid -le $ac_hi; then
1908 ac_lo= ac_hi=
1909 break
1911 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 done
1915 else
1916 ac_lo= ac_hi=
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 # Binary search between lo and hi bounds.
1922 while test "x$ac_lo" != "x$ac_hi"; do
1923 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1928 main ()
1930 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1931 test_array [0] = 0
1934 return 0;
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938 ac_hi=$ac_mid
1939 else
1940 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 done
1944 case $ac_lo in #((
1945 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1946 '') ac_retval=1 ;;
1947 esac
1948 else
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1952 static long int longval () { return $2; }
1953 static unsigned long int ulongval () { return $2; }
1954 #include <stdio.h>
1955 #include <stdlib.h>
1957 main ()
1960 FILE *f = fopen ("conftest.val", "w");
1961 if (! f)
1962 return 1;
1963 if (($2) < 0)
1965 long int i = longval ();
1966 if (i != ($2))
1967 return 1;
1968 fprintf (f, "%ld", i);
1970 else
1972 unsigned long int i = ulongval ();
1973 if (i != ($2))
1974 return 1;
1975 fprintf (f, "%lu", i);
1977 /* Do not output a trailing newline, as this causes \r\n confusion
1978 on some platforms. */
1979 return ferror (f) || fclose (f) != 0;
1982 return 0;
1984 _ACEOF
1985 if ac_fn_c_try_run "$LINENO"; then :
1986 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1987 else
1988 ac_retval=1
1990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1991 conftest.$ac_objext conftest.beam conftest.$ac_ext
1992 rm -f conftest.val
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996 return $ac_retval
1998 } # ac_fn_c_compute_int
2000 # ac_fn_c_check_func LINENO FUNC VAR
2001 # ----------------------------------
2002 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2003 ac_fn_c_check_func ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2009 $as_echo_n "(cached) " >&6
2010 else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2013 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2015 #define $2 innocuous_$2
2017 /* System header to define __stub macros and hopefully few prototypes,
2018 which can conflict with char $2 (); below.
2019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2020 <limits.h> exists even on freestanding compilers. */
2022 #ifdef __STDC__
2023 # include <limits.h>
2024 #else
2025 # include <assert.h>
2026 #endif
2028 #undef $2
2030 /* Override any GCC internal prototype to avoid an error.
2031 Use char because int might match the return type of a GCC
2032 builtin and then its argument prototype would still apply. */
2033 #ifdef __cplusplus
2034 extern "C"
2035 #endif
2036 char $2 ();
2037 /* The GNU C library defines this for functions which it implements
2038 to always fail with ENOSYS. Some functions are actually named
2039 something starting with __ and the normal name is an alias. */
2040 #if defined __stub_$2 || defined __stub___$2
2041 choke me
2042 #endif
2045 main ()
2047 return $2 ();
2049 return 0;
2051 _ACEOF
2052 if ac_fn_c_try_link "$LINENO"; then :
2053 eval "$3=yes"
2054 else
2055 eval "$3=no"
2057 rm -f core conftest.err conftest.$ac_objext \
2058 conftest$ac_exeext conftest.$ac_ext
2060 eval ac_res=\$$3
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065 } # ac_fn_c_check_func
2067 # ac_fn_c_check_decl LINENO SYMBOL VAR
2068 # ------------------------------------
2069 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2070 ac_fn_c_check_decl ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 as_decl_name=`echo $2|sed 's/ *(.*//'`
2074 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2076 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2077 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2078 $as_echo_n "(cached) " >&6
2079 else
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2084 main ()
2086 #ifndef $as_decl_name
2087 #ifdef __cplusplus
2088 (void) $as_decl_use;
2089 #else
2090 (void) $as_decl_name;
2091 #endif
2092 #endif
2095 return 0;
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 eval "$3=yes"
2100 else
2101 eval "$3=no"
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110 } # ac_fn_c_check_decl
2112 # ac_fn_cxx_try_link LINENO
2113 # -------------------------
2114 # Try to link conftest.$ac_ext, and return whether this succeeded.
2115 ac_fn_cxx_try_link ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 rm -f conftest.$ac_objext conftest$ac_exeext
2119 if { { ac_try="$ac_link"
2120 case "(($ac_try" in
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2123 esac
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_link") 2>conftest.err
2127 ac_status=$?
2128 if test -s conftest.err; then
2129 grep -v '^ *+' conftest.err >conftest.er1
2130 cat conftest.er1 >&5
2131 mv -f conftest.er1 conftest.err
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } && {
2135 test -z "$ac_cxx_werror_flag" ||
2136 test ! -s conftest.err
2137 } && test -s conftest$ac_exeext && {
2138 test "$cross_compiling" = yes ||
2139 $as_test_x conftest$ac_exeext
2140 }; then :
2141 ac_retval=0
2142 else
2143 $as_echo "$as_me: failed program was:" >&5
2144 sed 's/^/| /' conftest.$ac_ext >&5
2146 ac_retval=1
2148 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2149 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2150 # interfere with the next link command; also delete a directory that is
2151 # left behind by Apple's compiler. We do this before executing the actions.
2152 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2153 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2154 return $ac_retval
2156 } # ac_fn_cxx_try_link
2157 cat >config.log <<_ACEOF
2158 This file contains any messages produced by compilers while
2159 running configure, to aid debugging if configure makes a mistake.
2161 It was created by cpplib $as_me , which was
2162 generated by GNU Autoconf 2.64. Invocation command line was
2164 $ $0 $@
2166 _ACEOF
2167 exec 5>>config.log
2169 cat <<_ASUNAME
2170 ## --------- ##
2171 ## Platform. ##
2172 ## --------- ##
2174 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2175 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2176 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2177 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2178 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2180 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2181 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2183 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2184 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2185 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2186 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2187 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2188 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2189 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2191 _ASUNAME
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2196 IFS=$as_save_IFS
2197 test -z "$as_dir" && as_dir=.
2198 $as_echo "PATH: $as_dir"
2199 done
2200 IFS=$as_save_IFS
2202 } >&5
2204 cat >&5 <<_ACEOF
2207 ## ----------- ##
2208 ## Core tests. ##
2209 ## ----------- ##
2211 _ACEOF
2214 # Keep a trace of the command line.
2215 # Strip out --no-create and --no-recursion so they do not pile up.
2216 # Strip out --silent because we don't want to record it for future runs.
2217 # Also quote any args containing shell meta-characters.
2218 # Make two passes to allow for proper duplicate-argument suppression.
2219 ac_configure_args=
2220 ac_configure_args0=
2221 ac_configure_args1=
2222 ac_must_keep_next=false
2223 for ac_pass in 1 2
2225 for ac_arg
2227 case $ac_arg in
2228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2230 | -silent | --silent | --silen | --sile | --sil)
2231 continue ;;
2232 *\'*)
2233 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2234 esac
2235 case $ac_pass in
2236 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2238 as_fn_append ac_configure_args1 " '$ac_arg'"
2239 if test $ac_must_keep_next = true; then
2240 ac_must_keep_next=false # Got value, back to normal.
2241 else
2242 case $ac_arg in
2243 *=* | --config-cache | -C | -disable-* | --disable-* \
2244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2246 | -with-* | --with-* | -without-* | --without-* | --x)
2247 case "$ac_configure_args0 " in
2248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2249 esac
2251 -* ) ac_must_keep_next=true ;;
2252 esac
2254 as_fn_append ac_configure_args " '$ac_arg'"
2256 esac
2257 done
2258 done
2259 { ac_configure_args0=; unset ac_configure_args0;}
2260 { ac_configure_args1=; unset ac_configure_args1;}
2262 # When interrupted or exit'd, cleanup temporary files, and complete
2263 # config.log. We remove comments because anyway the quotes in there
2264 # would cause problems or look ugly.
2265 # WARNING: Use '\'' to represent an apostrophe within the trap.
2266 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2267 trap 'exit_status=$?
2268 # Save into config.log some information that might help in debugging.
2270 echo
2272 cat <<\_ASBOX
2273 ## ---------------- ##
2274 ## Cache variables. ##
2275 ## ---------------- ##
2276 _ASBOX
2277 echo
2278 # The following way of writing the cache mishandles newlines in values,
2280 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2281 eval ac_val=\$$ac_var
2282 case $ac_val in #(
2283 *${as_nl}*)
2284 case $ac_var in #(
2285 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2286 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2287 esac
2288 case $ac_var in #(
2289 _ | IFS | as_nl) ;; #(
2290 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2291 *) { eval $ac_var=; unset $ac_var;} ;;
2292 esac ;;
2293 esac
2294 done
2295 (set) 2>&1 |
2296 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2297 *${as_nl}ac_space=\ *)
2298 sed -n \
2299 "s/'\''/'\''\\\\'\'''\''/g;
2300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2301 ;; #(
2303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2305 esac |
2306 sort
2308 echo
2310 cat <<\_ASBOX
2311 ## ----------------- ##
2312 ## Output variables. ##
2313 ## ----------------- ##
2314 _ASBOX
2315 echo
2316 for ac_var in $ac_subst_vars
2318 eval ac_val=\$$ac_var
2319 case $ac_val in
2320 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2321 esac
2322 $as_echo "$ac_var='\''$ac_val'\''"
2323 done | sort
2324 echo
2326 if test -n "$ac_subst_files"; then
2327 cat <<\_ASBOX
2328 ## ------------------- ##
2329 ## File substitutions. ##
2330 ## ------------------- ##
2331 _ASBOX
2332 echo
2333 for ac_var in $ac_subst_files
2335 eval ac_val=\$$ac_var
2336 case $ac_val in
2337 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2338 esac
2339 $as_echo "$ac_var='\''$ac_val'\''"
2340 done | sort
2341 echo
2344 if test -s confdefs.h; then
2345 cat <<\_ASBOX
2346 ## ----------- ##
2347 ## confdefs.h. ##
2348 ## ----------- ##
2349 _ASBOX
2350 echo
2351 cat confdefs.h
2352 echo
2354 test "$ac_signal" != 0 &&
2355 $as_echo "$as_me: caught signal $ac_signal"
2356 $as_echo "$as_me: exit $exit_status"
2357 } >&5
2358 rm -f core *.core core.conftest.* &&
2359 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2360 exit $exit_status
2362 for ac_signal in 1 2 13 15; do
2363 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2364 done
2365 ac_signal=0
2367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2368 rm -f -r conftest* confdefs.h
2370 $as_echo "/* confdefs.h */" > confdefs.h
2372 # Predefined preprocessor variables.
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_NAME "$PACKAGE_NAME"
2376 _ACEOF
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2380 _ACEOF
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2384 _ACEOF
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_STRING "$PACKAGE_STRING"
2388 _ACEOF
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2392 _ACEOF
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_URL "$PACKAGE_URL"
2396 _ACEOF
2399 # Let the site file select an alternate cache file if it wants to.
2400 # Prefer an explicitly selected file to automatically selected ones.
2401 ac_site_file1=NONE
2402 ac_site_file2=NONE
2403 if test -n "$CONFIG_SITE"; then
2404 ac_site_file1=$CONFIG_SITE
2405 elif test "x$prefix" != xNONE; then
2406 ac_site_file1=$prefix/share/config.site
2407 ac_site_file2=$prefix/etc/config.site
2408 else
2409 ac_site_file1=$ac_default_prefix/share/config.site
2410 ac_site_file2=$ac_default_prefix/etc/config.site
2412 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2414 test "x$ac_site_file" = xNONE && continue
2415 if test -r "$ac_site_file"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2417 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2418 sed 's/^/| /' "$ac_site_file" >&5
2419 . "$ac_site_file"
2421 done
2423 if test -r "$cache_file"; then
2424 # Some versions of bash will fail to source /dev/null (special
2425 # files actually), so we avoid doing that.
2426 if test -f "$cache_file"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2428 $as_echo "$as_me: loading cache $cache_file" >&6;}
2429 case $cache_file in
2430 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2431 *) . "./$cache_file";;
2432 esac
2434 else
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2436 $as_echo "$as_me: creating cache $cache_file" >&6;}
2437 >$cache_file
2440 # Check that the precious variables saved in the cache have kept the same
2441 # value.
2442 ac_cache_corrupted=false
2443 for ac_var in $ac_precious_vars; do
2444 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2445 eval ac_new_set=\$ac_env_${ac_var}_set
2446 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2447 eval ac_new_val=\$ac_env_${ac_var}_value
2448 case $ac_old_set,$ac_new_set in
2449 set,)
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2451 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2452 ac_cache_corrupted=: ;;
2453 ,set)
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2455 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2456 ac_cache_corrupted=: ;;
2457 ,);;
2459 if test "x$ac_old_val" != "x$ac_new_val"; then
2460 # differences in whitespace do not lead to failure.
2461 ac_old_val_w=`echo x $ac_old_val`
2462 ac_new_val_w=`echo x $ac_new_val`
2463 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2465 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2466 ac_cache_corrupted=:
2467 else
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2469 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2470 eval $ac_var=\$ac_old_val
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2473 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2475 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2476 fi;;
2477 esac
2478 # Pass precious variables to config.status.
2479 if test "$ac_new_set" = set; then
2480 case $ac_new_val in
2481 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2482 *) ac_arg=$ac_var=$ac_new_val ;;
2483 esac
2484 case " $ac_configure_args " in
2485 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2486 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2487 esac
2489 done
2490 if $ac_cache_corrupted; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2494 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2495 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2497 ## -------------------- ##
2498 ## Main body of script. ##
2499 ## -------------------- ##
2501 ac_ext=c
2502 ac_cpp='$CPP $CPPFLAGS'
2503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2513 ac_aux_dir=
2514 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2515 for ac_t in install-sh install.sh shtool; do
2516 if test -f "$ac_dir/$ac_t"; then
2517 ac_aux_dir=$ac_dir
2518 ac_install_sh="$ac_aux_dir/$ac_t -c"
2519 break 2
2521 done
2522 done
2523 if test -z "$ac_aux_dir"; then
2524 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2527 # These three variables are undocumented and unsupported,
2528 # and are intended to be withdrawn in a future Autoconf release.
2529 # They can cause serious problems if a builder's source tree is in a directory
2530 # whose full name contains unusual characters.
2531 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2532 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2533 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2536 # Make sure we can run config.sub.
2537 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2538 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2541 $as_echo_n "checking build system type... " >&6; }
2542 if test "${ac_cv_build+set}" = set; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 ac_build_alias=$build_alias
2546 test "x$ac_build_alias" = x &&
2547 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2548 test "x$ac_build_alias" = x &&
2549 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2550 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2551 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2555 $as_echo "$ac_cv_build" >&6; }
2556 case $ac_cv_build in
2557 *-*-*) ;;
2558 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2559 esac
2560 build=$ac_cv_build
2561 ac_save_IFS=$IFS; IFS='-'
2562 set x $ac_cv_build
2563 shift
2564 build_cpu=$1
2565 build_vendor=$2
2566 shift; shift
2567 # Remember, the first character of IFS is used to create $*,
2568 # except with old shells:
2569 build_os=$*
2570 IFS=$ac_save_IFS
2571 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2575 $as_echo_n "checking host system type... " >&6; }
2576 if test "${ac_cv_host+set}" = set; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test "x$host_alias" = x; then
2580 ac_cv_host=$ac_cv_build
2581 else
2582 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2583 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2588 $as_echo "$ac_cv_host" >&6; }
2589 case $ac_cv_host in
2590 *-*-*) ;;
2591 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2592 esac
2593 host=$ac_cv_host
2594 ac_save_IFS=$IFS; IFS='-'
2595 set x $ac_cv_host
2596 shift
2597 host_cpu=$1
2598 host_vendor=$2
2599 shift; shift
2600 # Remember, the first character of IFS is used to create $*,
2601 # except with old shells:
2602 host_os=$*
2603 IFS=$ac_save_IFS
2604 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2608 $as_echo_n "checking target system type... " >&6; }
2609 if test "${ac_cv_target+set}" = set; then :
2610 $as_echo_n "(cached) " >&6
2611 else
2612 if test "x$target_alias" = x; then
2613 ac_cv_target=$ac_cv_host
2614 else
2615 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2616 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2621 $as_echo "$ac_cv_target" >&6; }
2622 case $ac_cv_target in
2623 *-*-*) ;;
2624 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2625 esac
2626 target=$ac_cv_target
2627 ac_save_IFS=$IFS; IFS='-'
2628 set x $ac_cv_target
2629 shift
2630 target_cpu=$1
2631 target_vendor=$2
2632 shift; shift
2633 # Remember, the first character of IFS is used to create $*,
2634 # except with old shells:
2635 target_os=$*
2636 IFS=$ac_save_IFS
2637 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2640 # The aliases save the names the user supplied, while $host etc.
2641 # will get canonicalized.
2642 test -n "$target_alias" &&
2643 test "$program_prefix$program_suffix$program_transform_name" = \
2644 NONENONEs,x,x, &&
2645 program_prefix=${target_alias}-
2648 # Checks for programs.
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2650 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2651 set x ${MAKE-make}
2652 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2653 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 cat >conftest.make <<\_ACEOF
2657 SHELL = /bin/sh
2658 all:
2659 @echo '@@@%%%=$(MAKE)=@@@%%%'
2660 _ACEOF
2661 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2662 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2663 *@@@%%%=?*=@@@%%%*)
2664 eval ac_cv_prog_make_${ac_make}_set=yes;;
2666 eval ac_cv_prog_make_${ac_make}_set=no;;
2667 esac
2668 rm -f conftest.make
2670 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2672 $as_echo "yes" >&6; }
2673 SET_MAKE=
2674 else
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2677 SET_MAKE="MAKE=${MAKE-make}"
2680 # Find a good install program. We prefer a C program (faster),
2681 # so one script is as good as another. But avoid the broken or
2682 # incompatible versions:
2683 # SysV /etc/install, /usr/sbin/install
2684 # SunOS /usr/etc/install
2685 # IRIX /sbin/install
2686 # AIX /bin/install
2687 # AmigaOS /C/install, which installs bootblocks on floppy discs
2688 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2689 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2690 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2691 # OS/2's system install, which has a completely different semantic
2692 # ./install, which can be erroneously created by make from ./install.sh.
2693 # Reject install programs that cannot install multiple files.
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2695 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2696 if test -z "$INSTALL"; then
2697 if test "${ac_cv_path_install+set}" = set; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 # Account for people who put trailing slashes in PATH elements.
2706 case $as_dir/ in #((
2707 ./ | .// | /[cC]/* | \
2708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2709 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2710 /usr/ucb/* ) ;;
2712 # OSF1 and SCO ODT 3.0 have their own names for install.
2713 # Don't use installbsd from OSF since it installs stuff as root
2714 # by default.
2715 for ac_prog in ginstall scoinst install; do
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2718 if test $ac_prog = install &&
2719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2720 # AIX install. It has an incompatible calling convention.
2722 elif test $ac_prog = install &&
2723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2724 # program-specific install script used by HP pwplus--don't use.
2726 else
2727 rm -rf conftest.one conftest.two conftest.dir
2728 echo one > conftest.one
2729 echo two > conftest.two
2730 mkdir conftest.dir
2731 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2732 test -s conftest.one && test -s conftest.two &&
2733 test -s conftest.dir/conftest.one &&
2734 test -s conftest.dir/conftest.two
2735 then
2736 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2737 break 3
2741 done
2742 done
2744 esac
2746 done
2747 IFS=$as_save_IFS
2749 rm -rf conftest.one conftest.two conftest.dir
2752 if test "${ac_cv_path_install+set}" = set; then
2753 INSTALL=$ac_cv_path_install
2754 else
2755 # As a last resort, use the slow shell script. Don't cache a
2756 # value for INSTALL within a source directory, because that will
2757 # break other packages using the cache if that directory is
2758 # removed, or if the value is a relative name.
2759 INSTALL=$ac_install_sh
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2763 $as_echo "$INSTALL" >&6; }
2765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2766 # It thinks the first close brace ends the variable substitution.
2767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2773 ac_ext=c
2774 ac_cpp='$CPP $CPPFLAGS'
2775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2778 if test -n "$ac_tool_prefix"; then
2779 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2780 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782 $as_echo_n "checking for $ac_word... " >&6; }
2783 if test "${ac_cv_prog_CC+set}" = set; then :
2784 $as_echo_n "(cached) " >&6
2785 else
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2800 done
2801 done
2802 IFS=$as_save_IFS
2806 CC=$ac_cv_prog_CC
2807 if test -n "$CC"; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2809 $as_echo "$CC" >&6; }
2810 else
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812 $as_echo "no" >&6; }
2817 if test -z "$ac_cv_prog_CC"; then
2818 ac_ct_CC=$CC
2819 # Extract the first word of "gcc", so it can be a program name with args.
2820 set dummy gcc; ac_word=$2
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2824 $as_echo_n "(cached) " >&6
2825 else
2826 if test -n "$ac_ct_CC"; then
2827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_ac_ct_CC="gcc"
2837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 break 2
2840 done
2841 done
2842 IFS=$as_save_IFS
2846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2847 if test -n "$ac_ct_CC"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2849 $as_echo "$ac_ct_CC" >&6; }
2850 else
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2855 if test "x$ac_ct_CC" = x; then
2856 CC=""
2857 else
2858 case $cross_compiling:$ac_tool_warned in
2859 yes:)
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2862 ac_tool_warned=yes ;;
2863 esac
2864 CC=$ac_ct_CC
2866 else
2867 CC="$ac_cv_prog_CC"
2870 if test -z "$CC"; then
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}cc; ac_word=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if test "${ac_cv_prog_CC+set}" = set; then :
2877 $as_echo_n "(cached) " >&6
2878 else
2879 if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 ac_cv_prog_CC="${ac_tool_prefix}cc"
2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2893 done
2894 done
2895 IFS=$as_save_IFS
2899 CC=$ac_cv_prog_CC
2900 if test -n "$CC"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902 $as_echo "$CC" >&6; }
2903 else
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2911 if test -z "$CC"; then
2912 # Extract the first word of "cc", so it can be a program name with args.
2913 set dummy cc; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if test "${ac_cv_prog_CC+set}" = set; then :
2917 $as_echo_n "(cached) " >&6
2918 else
2919 if test -n "$CC"; then
2920 ac_cv_prog_CC="$CC" # Let the user override the test.
2921 else
2922 ac_prog_rejected=no
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2931 ac_prog_rejected=yes
2932 continue
2934 ac_cv_prog_CC="cc"
2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2938 done
2939 done
2940 IFS=$as_save_IFS
2942 if test $ac_prog_rejected = yes; then
2943 # We found a bogon in the path, so make sure we never use it.
2944 set dummy $ac_cv_prog_CC
2945 shift
2946 if test $# != 0; then
2947 # We chose a different compiler from the bogus one.
2948 # However, it has the same basename, so the bogon will be chosen
2949 # first if we set CC to just the basename; use the full file name.
2950 shift
2951 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2956 CC=$ac_cv_prog_CC
2957 if test -n "$CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2967 if test -z "$CC"; then
2968 if test -n "$ac_tool_prefix"; then
2969 for ac_prog in cl.exe
2971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2972 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if test "${ac_cv_prog_CC+set}" = set; then :
2976 $as_echo_n "(cached) " >&6
2977 else
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC="$CC" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2992 done
2993 done
2994 IFS=$as_save_IFS
2998 CC=$ac_cv_prog_CC
2999 if test -n "$CC"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3001 $as_echo "$CC" >&6; }
3002 else
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3008 test -n "$CC" && break
3009 done
3011 if test -z "$CC"; then
3012 ac_ct_CC=$CC
3013 for ac_prog in cl.exe
3015 # Extract the first word of "$ac_prog", so it can be a program name with args.
3016 set dummy $ac_prog; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3020 $as_echo_n "(cached) " >&6
3021 else
3022 if test -n "$ac_ct_CC"; then
3023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3024 else
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032 ac_cv_prog_ac_ct_CC="$ac_prog"
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 break 2
3036 done
3037 done
3038 IFS=$as_save_IFS
3042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3043 if test -n "$ac_ct_CC"; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3045 $as_echo "$ac_ct_CC" >&6; }
3046 else
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3052 test -n "$ac_ct_CC" && break
3053 done
3055 if test "x$ac_ct_CC" = x; then
3056 CC=""
3057 else
3058 case $cross_compiling:$ac_tool_warned in
3059 yes:)
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3062 ac_tool_warned=yes ;;
3063 esac
3064 CC=$ac_ct_CC
3071 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3073 as_fn_error "no acceptable C compiler found in \$PATH
3074 See \`config.log' for more details." "$LINENO" 5; }
3076 # Provide some information about the compiler.
3077 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3078 set X $ac_compile
3079 ac_compiler=$2
3080 for ac_option in --version -v -V -qversion; do
3081 { { ac_try="$ac_compiler $ac_option >&5"
3082 case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3087 $as_echo "$ac_try_echo"; } >&5
3088 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3089 ac_status=$?
3090 if test -s conftest.err; then
3091 sed '10a\
3092 ... rest of stderr output deleted ...
3093 10q' conftest.err >conftest.er1
3094 cat conftest.er1 >&5
3095 rm -f conftest.er1 conftest.err
3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; }
3099 done
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3105 main ()
3109 return 0;
3111 _ACEOF
3112 ac_clean_files_save=$ac_clean_files
3113 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3114 # Try to create an executable without -o first, disregard a.out.
3115 # It will help us diagnose broken compilers, and finding out an intuition
3116 # of exeext.
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3118 $as_echo_n "checking for C compiler default output file name... " >&6; }
3119 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3121 # The possible output files:
3122 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3124 ac_rmfiles=
3125 for ac_file in $ac_files
3127 case $ac_file in
3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3129 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3130 esac
3131 done
3132 rm -f $ac_rmfiles
3134 if { { ac_try="$ac_link_default"
3135 case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138 esac
3139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3140 $as_echo "$ac_try_echo"; } >&5
3141 (eval "$ac_link_default") 2>&5
3142 ac_status=$?
3143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3144 test $ac_status = 0; }; then :
3145 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3146 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3147 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3148 # so that the user can short-circuit this test for compilers unknown to
3149 # Autoconf.
3150 for ac_file in $ac_files ''
3152 test -f "$ac_file" || continue
3153 case $ac_file in
3154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3156 [ab].out )
3157 # We found the default executable, but exeext='' is most
3158 # certainly right.
3159 break;;
3160 *.* )
3161 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3162 then :; else
3163 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3165 # We set ac_cv_exeext here because the later test for it is not
3166 # safe: cross compilers may not add the suffix if given an `-o'
3167 # argument, so we may need to know it at that point already.
3168 # Even if this section looks crufty: it has the advantage of
3169 # actually working.
3170 break;;
3172 break;;
3173 esac
3174 done
3175 test "$ac_cv_exeext" = no && ac_cv_exeext=
3177 else
3178 ac_file=''
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3181 $as_echo "$ac_file" >&6; }
3182 if test -z "$ac_file"; then :
3183 $as_echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 { as_fn_set_status 77
3189 as_fn_error "C compiler cannot create executables
3190 See \`config.log' for more details." "$LINENO" 5; }; }
3192 ac_exeext=$ac_cv_exeext
3194 # Check that the compiler produces executables we can run. If not, either
3195 # the compiler is broken, or we cross compile.
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3197 $as_echo_n "checking whether the C compiler works... " >&6; }
3198 # If not cross compiling, check that we can run a simple program.
3199 if test "$cross_compiling" != yes; then
3200 if { ac_try='./$ac_file'
3201 { { case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207 (eval "$ac_try") 2>&5
3208 ac_status=$?
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }; }; then
3211 cross_compiling=no
3212 else
3213 if test "$cross_compiling" = maybe; then
3214 cross_compiling=yes
3215 else
3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 as_fn_error "cannot run C compiled programs.
3219 If you meant to cross compile, use \`--host'.
3220 See \`config.log' for more details." "$LINENO" 5; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3225 $as_echo "yes" >&6; }
3227 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3228 ac_clean_files=$ac_clean_files_save
3229 # Check that the compiler produces executables we can run. If not, either
3230 # the compiler is broken, or we cross compile.
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3232 $as_echo_n "checking whether we are cross compiling... " >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3234 $as_echo "$cross_compiling" >&6; }
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3237 $as_echo_n "checking for suffix of executables... " >&6; }
3238 if { { ac_try="$ac_link"
3239 case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_link") 2>&5
3246 ac_status=$?
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }; then :
3249 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3250 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3251 # work properly (i.e., refer to `conftest.exe'), while it won't with
3252 # `rm'.
3253 for ac_file in conftest.exe conftest conftest.*; do
3254 test -f "$ac_file" || continue
3255 case $ac_file in
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3257 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3258 break;;
3259 * ) break;;
3260 esac
3261 done
3262 else
3263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265 as_fn_error "cannot compute suffix of executables: cannot compile and link
3266 See \`config.log' for more details." "$LINENO" 5; }
3268 rm -f conftest$ac_cv_exeext
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3270 $as_echo "$ac_cv_exeext" >&6; }
3272 rm -f conftest.$ac_ext
3273 EXEEXT=$ac_cv_exeext
3274 ac_exeext=$EXEEXT
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3276 $as_echo_n "checking for suffix of object files... " >&6; }
3277 if test "${ac_cv_objext+set}" = set; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3284 main ()
3288 return 0;
3290 _ACEOF
3291 rm -f conftest.o conftest.obj
3292 if { { ac_try="$ac_compile"
3293 case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296 esac
3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298 $as_echo "$ac_try_echo"; } >&5
3299 (eval "$ac_compile") 2>&5
3300 ac_status=$?
3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302 test $ac_status = 0; }; then :
3303 for ac_file in conftest.o conftest.obj conftest.*; do
3304 test -f "$ac_file" || continue;
3305 case $ac_file in
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3307 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3308 break;;
3309 esac
3310 done
3311 else
3312 $as_echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 as_fn_error "cannot compute suffix of object files: cannot compile
3318 See \`config.log' for more details." "$LINENO" 5; }
3320 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3323 $as_echo "$ac_cv_objext" >&6; }
3324 OBJEXT=$ac_cv_objext
3325 ac_objext=$OBJEXT
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3327 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3328 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3329 $as_echo_n "(cached) " >&6
3330 else
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3335 main ()
3337 #ifndef __GNUC__
3338 choke me
3339 #endif
3342 return 0;
3344 _ACEOF
3345 if ac_fn_c_try_compile "$LINENO"; then :
3346 ac_compiler_gnu=yes
3347 else
3348 ac_compiler_gnu=no
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3355 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3356 if test $ac_compiler_gnu = yes; then
3357 GCC=yes
3358 else
3359 GCC=
3361 ac_test_CFLAGS=${CFLAGS+set}
3362 ac_save_CFLAGS=$CFLAGS
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3364 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3365 if test "${ac_cv_prog_cc_g+set}" = set; then :
3366 $as_echo_n "(cached) " >&6
3367 else
3368 ac_save_c_werror_flag=$ac_c_werror_flag
3369 ac_c_werror_flag=yes
3370 ac_cv_prog_cc_g=no
3371 CFLAGS="-g"
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3376 main ()
3380 return 0;
3382 _ACEOF
3383 if ac_fn_c_try_compile "$LINENO"; then :
3384 ac_cv_prog_cc_g=yes
3385 else
3386 CFLAGS=""
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3391 main ()
3395 return 0;
3397 _ACEOF
3398 if ac_fn_c_try_compile "$LINENO"; then :
3400 else
3401 ac_c_werror_flag=$ac_save_c_werror_flag
3402 CFLAGS="-g"
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3407 main ()
3411 return 0;
3413 _ACEOF
3414 if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_cv_prog_cc_g=yes
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 ac_c_werror_flag=$ac_save_c_werror_flag
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3425 $as_echo "$ac_cv_prog_cc_g" >&6; }
3426 if test "$ac_test_CFLAGS" = set; then
3427 CFLAGS=$ac_save_CFLAGS
3428 elif test $ac_cv_prog_cc_g = yes; then
3429 if test "$GCC" = yes; then
3430 CFLAGS="-g -O2"
3431 else
3432 CFLAGS="-g"
3434 else
3435 if test "$GCC" = yes; then
3436 CFLAGS="-O2"
3437 else
3438 CFLAGS=
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3442 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3443 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3444 $as_echo_n "(cached) " >&6
3445 else
3446 ac_cv_prog_cc_c89=no
3447 ac_save_CC=$CC
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3450 #include <stdarg.h>
3451 #include <stdio.h>
3452 #include <sys/types.h>
3453 #include <sys/stat.h>
3454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3455 struct buf { int x; };
3456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3457 static char *e (p, i)
3458 char **p;
3459 int i;
3461 return p[i];
3463 static char *f (char * (*g) (char **, int), char **p, ...)
3465 char *s;
3466 va_list v;
3467 va_start (v,p);
3468 s = g (p, va_arg (v,int));
3469 va_end (v);
3470 return s;
3473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3474 function prototypes and stuff, but not '\xHH' hex character constants.
3475 These don't provoke an error unfortunately, instead are silently treated
3476 as 'x'. The following induces an error, until -std is added to get
3477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3478 array size at least. It's necessary to write '\x00'==0 to get something
3479 that's true only with -std. */
3480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3482 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3483 inside strings and character constants. */
3484 #define FOO(x) 'x'
3485 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3487 int test (int i, double x);
3488 struct s1 {int (*f) (int a);};
3489 struct s2 {int (*f) (double a);};
3490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3491 int argc;
3492 char **argv;
3494 main ()
3496 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3498 return 0;
3500 _ACEOF
3501 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3502 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3504 CC="$ac_save_CC $ac_arg"
3505 if ac_fn_c_try_compile "$LINENO"; then :
3506 ac_cv_prog_cc_c89=$ac_arg
3508 rm -f core conftest.err conftest.$ac_objext
3509 test "x$ac_cv_prog_cc_c89" != "xno" && break
3510 done
3511 rm -f conftest.$ac_ext
3512 CC=$ac_save_CC
3515 # AC_CACHE_VAL
3516 case "x$ac_cv_prog_cc_c89" in
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3519 $as_echo "none needed" >&6; } ;;
3520 xno)
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3522 $as_echo "unsupported" >&6; } ;;
3524 CC="$CC $ac_cv_prog_cc_c89"
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3526 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3527 esac
3528 if test "x$ac_cv_prog_cc_c89" != xno; then :
3532 ac_ext=c
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538 ac_ext=cpp
3539 ac_cpp='$CXXCPP $CPPFLAGS'
3540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3543 if test -z "$CXX"; then
3544 if test -n "$CCC"; then
3545 CXX=$CCC
3546 else
3547 if test -n "$ac_tool_prefix"; then
3548 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if test "${ac_cv_prog_CXX+set}" = set; then :
3555 $as_echo_n "(cached) " >&6
3556 else
3557 if test -n "$CXX"; then
3558 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3559 else
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2
3571 done
3572 done
3573 IFS=$as_save_IFS
3577 CXX=$ac_cv_prog_CXX
3578 if test -n "$CXX"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3580 $as_echo "$CXX" >&6; }
3581 else
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3587 test -n "$CXX" && break
3588 done
3590 if test -z "$CXX"; then
3591 ac_ct_CXX=$CXX
3592 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3594 # Extract the first word of "$ac_prog", so it can be a program name with args.
3595 set dummy $ac_prog; ac_word=$2
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 $as_echo_n "checking for $ac_word... " >&6; }
3598 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3599 $as_echo_n "(cached) " >&6
3600 else
3601 if test -n "$ac_ct_CXX"; then
3602 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3603 else
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 for as_dir in $PATH
3607 IFS=$as_save_IFS
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611 ac_cv_prog_ac_ct_CXX="$ac_prog"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 break 2
3615 done
3616 done
3617 IFS=$as_save_IFS
3621 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3622 if test -n "$ac_ct_CXX"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3624 $as_echo "$ac_ct_CXX" >&6; }
3625 else
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3631 test -n "$ac_ct_CXX" && break
3632 done
3634 if test "x$ac_ct_CXX" = x; then
3635 CXX="g++"
3636 else
3637 case $cross_compiling:$ac_tool_warned in
3638 yes:)
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3641 ac_tool_warned=yes ;;
3642 esac
3643 CXX=$ac_ct_CXX
3649 # Provide some information about the compiler.
3650 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3651 set X $ac_compile
3652 ac_compiler=$2
3653 for ac_option in --version -v -V -qversion; do
3654 { { ac_try="$ac_compiler $ac_option >&5"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3662 ac_status=$?
3663 if test -s conftest.err; then
3664 sed '10a\
3665 ... rest of stderr output deleted ...
3666 10q' conftest.err >conftest.er1
3667 cat conftest.er1 >&5
3668 rm -f conftest.er1 conftest.err
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }
3672 done
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3675 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3676 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3677 $as_echo_n "(cached) " >&6
3678 else
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3683 main ()
3685 #ifndef __GNUC__
3686 choke me
3687 #endif
3690 return 0;
3692 _ACEOF
3693 if ac_fn_cxx_try_compile "$LINENO"; then :
3694 ac_compiler_gnu=yes
3695 else
3696 ac_compiler_gnu=no
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3703 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3704 if test $ac_compiler_gnu = yes; then
3705 GXX=yes
3706 else
3707 GXX=
3709 ac_test_CXXFLAGS=${CXXFLAGS+set}
3710 ac_save_CXXFLAGS=$CXXFLAGS
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3712 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3713 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3714 $as_echo_n "(cached) " >&6
3715 else
3716 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3717 ac_cxx_werror_flag=yes
3718 ac_cv_prog_cxx_g=no
3719 CXXFLAGS="-g"
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3724 main ()
3728 return 0;
3730 _ACEOF
3731 if ac_fn_cxx_try_compile "$LINENO"; then :
3732 ac_cv_prog_cxx_g=yes
3733 else
3734 CXXFLAGS=""
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3739 main ()
3743 return 0;
3745 _ACEOF
3746 if ac_fn_cxx_try_compile "$LINENO"; then :
3748 else
3749 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3750 CXXFLAGS="-g"
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3755 main ()
3759 return 0;
3761 _ACEOF
3762 if ac_fn_cxx_try_compile "$LINENO"; then :
3763 ac_cv_prog_cxx_g=yes
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3773 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3774 if test "$ac_test_CXXFLAGS" = set; then
3775 CXXFLAGS=$ac_save_CXXFLAGS
3776 elif test $ac_cv_prog_cxx_g = yes; then
3777 if test "$GXX" = yes; then
3778 CXXFLAGS="-g -O2"
3779 else
3780 CXXFLAGS="-g"
3782 else
3783 if test "$GXX" = yes; then
3784 CXXFLAGS="-O2"
3785 else
3786 CXXFLAGS=
3789 ac_ext=c
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795 if test -n "$ac_tool_prefix"; then
3796 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3797 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799 $as_echo_n "checking for $ac_word... " >&6; }
3800 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3801 $as_echo_n "(cached) " >&6
3802 else
3803 if test -n "$RANLIB"; then
3804 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3813 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 break 2
3817 done
3818 done
3819 IFS=$as_save_IFS
3823 RANLIB=$ac_cv_prog_RANLIB
3824 if test -n "$RANLIB"; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3826 $as_echo "$RANLIB" >&6; }
3827 else
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3834 if test -z "$ac_cv_prog_RANLIB"; then
3835 ac_ct_RANLIB=$RANLIB
3836 # Extract the first word of "ranlib", so it can be a program name with args.
3837 set dummy ranlib; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 if test -n "$ac_ct_RANLIB"; then
3844 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3853 ac_cv_prog_ac_ct_RANLIB="ranlib"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3857 done
3858 done
3859 IFS=$as_save_IFS
3863 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3864 if test -n "$ac_ct_RANLIB"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3866 $as_echo "$ac_ct_RANLIB" >&6; }
3867 else
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3872 if test "x$ac_ct_RANLIB" = x; then
3873 RANLIB=":"
3874 else
3875 case $cross_compiling:$ac_tool_warned in
3876 yes:)
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3879 ac_tool_warned=yes ;;
3880 esac
3881 RANLIB=$ac_ct_RANLIB
3883 else
3884 RANLIB="$ac_cv_prog_RANLIB"
3889 ac_ext=c
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3895 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3896 # On Suns, sometimes $CPP names a directory.
3897 if test -n "$CPP" && test -d "$CPP"; then
3898 CPP=
3900 if test -z "$CPP"; then
3901 if test "${ac_cv_prog_CPP+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 # Double quotes because CPP needs to be expanded
3905 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3907 ac_preproc_ok=false
3908 for ac_c_preproc_warn_flag in '' yes
3910 # Use a header file that comes with gcc, so configuring glibc
3911 # with a fresh cross-compiler works.
3912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3913 # <limits.h> exists even on freestanding compilers.
3914 # On the NeXT, cc -E runs the code through the compiler's parser,
3915 # not just through cpp. "Syntax error" is here to catch this case.
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3918 #ifdef __STDC__
3919 # include <limits.h>
3920 #else
3921 # include <assert.h>
3922 #endif
3923 Syntax error
3924 _ACEOF
3925 if ac_fn_c_try_cpp "$LINENO"; then :
3927 else
3928 # Broken: fails on valid input.
3929 continue
3931 rm -f conftest.err conftest.$ac_ext
3933 # OK, works on sane cases. Now check whether nonexistent headers
3934 # can be detected and how.
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #include <ac_nonexistent.h>
3938 _ACEOF
3939 if ac_fn_c_try_cpp "$LINENO"; then :
3940 # Broken: success on invalid input.
3941 continue
3942 else
3943 # Passes both tests.
3944 ac_preproc_ok=:
3945 break
3947 rm -f conftest.err conftest.$ac_ext
3949 done
3950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3951 rm -f conftest.err conftest.$ac_ext
3952 if $ac_preproc_ok; then :
3953 break
3956 done
3957 ac_cv_prog_CPP=$CPP
3960 CPP=$ac_cv_prog_CPP
3961 else
3962 ac_cv_prog_CPP=$CPP
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3965 $as_echo "$CPP" >&6; }
3966 ac_preproc_ok=false
3967 for ac_c_preproc_warn_flag in '' yes
3969 # Use a header file that comes with gcc, so configuring glibc
3970 # with a fresh cross-compiler works.
3971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3972 # <limits.h> exists even on freestanding compilers.
3973 # On the NeXT, cc -E runs the code through the compiler's parser,
3974 # not just through cpp. "Syntax error" is here to catch this case.
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3977 #ifdef __STDC__
3978 # include <limits.h>
3979 #else
3980 # include <assert.h>
3981 #endif
3982 Syntax error
3983 _ACEOF
3984 if ac_fn_c_try_cpp "$LINENO"; then :
3986 else
3987 # Broken: fails on valid input.
3988 continue
3990 rm -f conftest.err conftest.$ac_ext
3992 # OK, works on sane cases. Now check whether nonexistent headers
3993 # can be detected and how.
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996 #include <ac_nonexistent.h>
3997 _ACEOF
3998 if ac_fn_c_try_cpp "$LINENO"; then :
3999 # Broken: success on invalid input.
4000 continue
4001 else
4002 # Passes both tests.
4003 ac_preproc_ok=:
4004 break
4006 rm -f conftest.err conftest.$ac_ext
4008 done
4009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4010 rm -f conftest.err conftest.$ac_ext
4011 if $ac_preproc_ok; then :
4013 else
4014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4017 See \`config.log' for more details." "$LINENO" 5; }
4020 ac_ext=c
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4028 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4029 if test "${ac_cv_path_GREP+set}" = set; then :
4030 $as_echo_n "(cached) " >&6
4031 else
4032 if test -z "$GREP"; then
4033 ac_path_GREP_found=false
4034 # Loop through the user's path and test for each of PROGNAME-LIST
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_prog in grep ggrep; do
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4043 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4044 # Check for GNU ac_path_GREP and select it if it is found.
4045 # Check for GNU $ac_path_GREP
4046 case `"$ac_path_GREP" --version 2>&1` in
4047 *GNU*)
4048 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4050 ac_count=0
4051 $as_echo_n 0123456789 >"conftest.in"
4052 while :
4054 cat "conftest.in" "conftest.in" >"conftest.tmp"
4055 mv "conftest.tmp" "conftest.in"
4056 cp "conftest.in" "conftest.nl"
4057 $as_echo 'GREP' >> "conftest.nl"
4058 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4059 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4060 as_fn_arith $ac_count + 1 && ac_count=$as_val
4061 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4062 # Best one so far, save it but keep looking for a better one
4063 ac_cv_path_GREP="$ac_path_GREP"
4064 ac_path_GREP_max=$ac_count
4066 # 10*(2^10) chars as input seems more than enough
4067 test $ac_count -gt 10 && break
4068 done
4069 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4070 esac
4072 $ac_path_GREP_found && break 3
4073 done
4074 done
4075 done
4076 IFS=$as_save_IFS
4077 if test -z "$ac_cv_path_GREP"; then
4078 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4080 else
4081 ac_cv_path_GREP=$GREP
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4086 $as_echo "$ac_cv_path_GREP" >&6; }
4087 GREP="$ac_cv_path_GREP"
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4091 $as_echo_n "checking for egrep... " >&6; }
4092 if test "${ac_cv_path_EGREP+set}" = set; then :
4093 $as_echo_n "(cached) " >&6
4094 else
4095 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4096 then ac_cv_path_EGREP="$GREP -E"
4097 else
4098 if test -z "$EGREP"; then
4099 ac_path_EGREP_found=false
4100 # Loop through the user's path and test for each of PROGNAME-LIST
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 for ac_prog in egrep; do
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4109 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4110 # Check for GNU ac_path_EGREP and select it if it is found.
4111 # Check for GNU $ac_path_EGREP
4112 case `"$ac_path_EGREP" --version 2>&1` in
4113 *GNU*)
4114 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4116 ac_count=0
4117 $as_echo_n 0123456789 >"conftest.in"
4118 while :
4120 cat "conftest.in" "conftest.in" >"conftest.tmp"
4121 mv "conftest.tmp" "conftest.in"
4122 cp "conftest.in" "conftest.nl"
4123 $as_echo 'EGREP' >> "conftest.nl"
4124 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4126 as_fn_arith $ac_count + 1 && ac_count=$as_val
4127 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4128 # Best one so far, save it but keep looking for a better one
4129 ac_cv_path_EGREP="$ac_path_EGREP"
4130 ac_path_EGREP_max=$ac_count
4132 # 10*(2^10) chars as input seems more than enough
4133 test $ac_count -gt 10 && break
4134 done
4135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4136 esac
4138 $ac_path_EGREP_found && break 3
4139 done
4140 done
4141 done
4142 IFS=$as_save_IFS
4143 if test -z "$ac_cv_path_EGREP"; then
4144 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4146 else
4147 ac_cv_path_EGREP=$EGREP
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4153 $as_echo "$ac_cv_path_EGREP" >&6; }
4154 EGREP="$ac_cv_path_EGREP"
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4158 $as_echo_n "checking for ANSI C header files... " >&6; }
4159 if test "${ac_cv_header_stdc+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164 #include <stdlib.h>
4165 #include <stdarg.h>
4166 #include <string.h>
4167 #include <float.h>
4170 main ()
4174 return 0;
4176 _ACEOF
4177 if ac_fn_c_try_compile "$LINENO"; then :
4178 ac_cv_header_stdc=yes
4179 else
4180 ac_cv_header_stdc=no
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184 if test $ac_cv_header_stdc = yes; then
4185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 #include <string.h>
4190 _ACEOF
4191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4192 $EGREP "memchr" >/dev/null 2>&1; then :
4194 else
4195 ac_cv_header_stdc=no
4197 rm -f conftest*
4201 if test $ac_cv_header_stdc = yes; then
4202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205 #include <stdlib.h>
4207 _ACEOF
4208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4209 $EGREP "free" >/dev/null 2>&1; then :
4211 else
4212 ac_cv_header_stdc=no
4214 rm -f conftest*
4218 if test $ac_cv_header_stdc = yes; then
4219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4220 if test "$cross_compiling" = yes; then :
4222 else
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4225 #include <ctype.h>
4226 #include <stdlib.h>
4227 #if ((' ' & 0x0FF) == 0x020)
4228 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4229 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4230 #else
4231 # define ISLOWER(c) \
4232 (('a' <= (c) && (c) <= 'i') \
4233 || ('j' <= (c) && (c) <= 'r') \
4234 || ('s' <= (c) && (c) <= 'z'))
4235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4236 #endif
4238 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4240 main ()
4242 int i;
4243 for (i = 0; i < 256; i++)
4244 if (XOR (islower (i), ISLOWER (i))
4245 || toupper (i) != TOUPPER (i))
4246 return 2;
4247 return 0;
4249 _ACEOF
4250 if ac_fn_c_try_run "$LINENO"; then :
4252 else
4253 ac_cv_header_stdc=no
4255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4256 conftest.$ac_objext conftest.beam conftest.$ac_ext
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4262 $as_echo "$ac_cv_header_stdc" >&6; }
4263 if test $ac_cv_header_stdc = yes; then
4265 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4269 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4270 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4271 inttypes.h stdint.h unistd.h
4272 do :
4273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4274 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4276 eval as_val=\$$as_ac_Header
4277 if test "x$as_val" = x""yes; then :
4278 cat >>confdefs.h <<_ACEOF
4279 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4280 _ACEOF
4284 done
4288 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4289 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4290 MINIX=yes
4291 else
4292 MINIX=
4296 if test "$MINIX" = yes; then
4298 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4301 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4304 $as_echo "#define _MINIX 1" >>confdefs.h
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4310 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4311 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4317 # define __EXTENSIONS__ 1
4318 $ac_includes_default
4320 main ()
4324 return 0;
4326 _ACEOF
4327 if ac_fn_c_try_compile "$LINENO"; then :
4328 ac_cv_safe_to_define___extensions__=yes
4329 else
4330 ac_cv_safe_to_define___extensions__=no
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4335 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4336 test $ac_cv_safe_to_define___extensions__ = yes &&
4337 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4339 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4341 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4343 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4345 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4348 # Check whether --enable-largefile was given.
4349 if test "${enable_largefile+set}" = set; then :
4350 enableval=$enable_largefile;
4353 if test "$enable_largefile" != no; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4356 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4357 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 ac_cv_sys_largefile_CC=no
4361 if test "$GCC" != yes; then
4362 ac_save_CC=$CC
4363 while :; do
4364 # IRIX 6.2 and later do not support large files by default,
4365 # so use the C compiler's -n32 option if that helps.
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4368 #include <sys/types.h>
4369 /* Check that off_t can represent 2**63 - 1 correctly.
4370 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4371 since some C++ compilers masquerading as C compilers
4372 incorrectly reject 9223372036854775807. */
4373 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4374 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4375 && LARGE_OFF_T % 2147483647 == 1)
4376 ? 1 : -1];
4378 main ()
4382 return 0;
4384 _ACEOF
4385 if ac_fn_c_try_compile "$LINENO"; then :
4386 break
4388 rm -f core conftest.err conftest.$ac_objext
4389 CC="$CC -n32"
4390 if ac_fn_c_try_compile "$LINENO"; then :
4391 ac_cv_sys_largefile_CC=' -n32'; break
4393 rm -f core conftest.err conftest.$ac_objext
4394 break
4395 done
4396 CC=$ac_save_CC
4397 rm -f conftest.$ac_ext
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4401 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4402 if test "$ac_cv_sys_largefile_CC" != no; then
4403 CC=$CC$ac_cv_sys_largefile_CC
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4407 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4408 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 while :; do
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4414 #include <sys/types.h>
4415 /* Check that off_t can represent 2**63 - 1 correctly.
4416 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4417 since some C++ compilers masquerading as C compilers
4418 incorrectly reject 9223372036854775807. */
4419 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4420 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4421 && LARGE_OFF_T % 2147483647 == 1)
4422 ? 1 : -1];
4424 main ()
4428 return 0;
4430 _ACEOF
4431 if ac_fn_c_try_compile "$LINENO"; then :
4432 ac_cv_sys_file_offset_bits=no; break
4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437 #define _FILE_OFFSET_BITS 64
4438 #include <sys/types.h>
4439 /* Check that off_t can represent 2**63 - 1 correctly.
4440 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4441 since some C++ compilers masquerading as C compilers
4442 incorrectly reject 9223372036854775807. */
4443 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4444 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4445 && LARGE_OFF_T % 2147483647 == 1)
4446 ? 1 : -1];
4448 main ()
4452 return 0;
4454 _ACEOF
4455 if ac_fn_c_try_compile "$LINENO"; then :
4456 ac_cv_sys_file_offset_bits=64; break
4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4459 ac_cv_sys_file_offset_bits=unknown
4460 break
4461 done
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4464 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4465 case $ac_cv_sys_file_offset_bits in #(
4466 no | unknown) ;;
4468 cat >>confdefs.h <<_ACEOF
4469 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4470 _ACEOF
4472 esac
4473 rm -rf conftest*
4474 if test $ac_cv_sys_file_offset_bits = unknown; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4476 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4477 if test "${ac_cv_sys_large_files+set}" = set; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 while :; do
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483 #include <sys/types.h>
4484 /* Check that off_t can represent 2**63 - 1 correctly.
4485 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4486 since some C++ compilers masquerading as C compilers
4487 incorrectly reject 9223372036854775807. */
4488 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4489 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4490 && LARGE_OFF_T % 2147483647 == 1)
4491 ? 1 : -1];
4493 main ()
4497 return 0;
4499 _ACEOF
4500 if ac_fn_c_try_compile "$LINENO"; then :
4501 ac_cv_sys_large_files=no; break
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4506 #define _LARGE_FILES 1
4507 #include <sys/types.h>
4508 /* Check that off_t can represent 2**63 - 1 correctly.
4509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4510 since some C++ compilers masquerading as C compilers
4511 incorrectly reject 9223372036854775807. */
4512 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4514 && LARGE_OFF_T % 2147483647 == 1)
4515 ? 1 : -1];
4517 main ()
4521 return 0;
4523 _ACEOF
4524 if ac_fn_c_try_compile "$LINENO"; then :
4525 ac_cv_sys_large_files=1; break
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 ac_cv_sys_large_files=unknown
4529 break
4530 done
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4533 $as_echo "$ac_cv_sys_large_files" >&6; }
4534 case $ac_cv_sys_large_files in #(
4535 no | unknown) ;;
4537 cat >>confdefs.h <<_ACEOF
4538 #define _LARGE_FILES $ac_cv_sys_large_files
4539 _ACEOF
4541 esac
4542 rm -rf conftest*
4547 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4548 for ac_prog in aclocal
4550 # Extract the first word of "$ac_prog", so it can be a program name with args.
4551 set dummy $ac_prog; ac_word=$2
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553 $as_echo_n "checking for $ac_word... " >&6; }
4554 if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 if test -n "$ACLOCAL"; then
4558 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 ac_cv_prog_ACLOCAL="$ac_prog"
4568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 break 2
4571 done
4572 done
4573 IFS=$as_save_IFS
4577 ACLOCAL=$ac_cv_prog_ACLOCAL
4578 if test -n "$ACLOCAL"; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4580 $as_echo "$ACLOCAL" >&6; }
4581 else
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583 $as_echo "no" >&6; }
4587 test -n "$ACLOCAL" && break
4588 done
4589 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
4591 for ac_prog in autoconf
4593 # Extract the first word of "$ac_prog", so it can be a program name with args.
4594 set dummy $ac_prog; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test -n "$AUTOCONF"; then
4601 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_prog_AUTOCONF="$ac_prog"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4614 done
4615 done
4616 IFS=$as_save_IFS
4620 AUTOCONF=$ac_cv_prog_AUTOCONF
4621 if test -n "$AUTOCONF"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4623 $as_echo "$AUTOCONF" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4630 test -n "$AUTOCONF" && break
4631 done
4632 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
4634 for ac_prog in autoheader
4636 # Extract the first word of "$ac_prog", so it can be a program name with args.
4637 set dummy $ac_prog; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 if test -n "$AUTOHEADER"; then
4644 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4653 ac_cv_prog_AUTOHEADER="$ac_prog"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4657 done
4658 done
4659 IFS=$as_save_IFS
4663 AUTOHEADER=$ac_cv_prog_AUTOHEADER
4664 if test -n "$AUTOHEADER"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4666 $as_echo "$AUTOHEADER" >&6; }
4667 else
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4673 test -n "$AUTOHEADER" && break
4674 done
4675 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
4678 # Figure out what compiler warnings we can enable.
4679 # See config/warnings.m4 for details.
4681 warn=
4682 save_CFLAGS="$CFLAGS"
4683 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
4684 -Wmissing-format-attribute; do
4685 # Do the check with the no- prefix removed since gcc silently
4686 # accepts any -Wno-* option on purpose
4687 case $real_option in
4688 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4689 *) option=$real_option ;;
4690 esac
4691 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4694 $as_echo_n "checking whether $CC supports $option... " >&6; }
4695 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 CFLAGS="$option"
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4703 main ()
4707 return 0;
4709 _ACEOF
4710 if ac_fn_c_try_compile "$LINENO"; then :
4711 eval "$as_acx_Woption=yes"
4712 else
4713 eval "$as_acx_Woption=no"
4715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 eval ac_res=\$$as_acx_Woption
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4720 $as_echo "$ac_res" >&6; }
4721 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4722 warn="$warn${warn:+ }$real_option"
4724 done
4725 CFLAGS="$save_CFLAGS"
4727 c_warn=
4728 save_CFLAGS="$CFLAGS"
4729 for real_option in -Wstrict-prototypes -Wmissing-prototypes \
4730 -Wold-style-definition -Wc++-compat; do
4731 # Do the check with the no- prefix removed since gcc silently
4732 # accepts any -Wno-* option on purpose
4733 case $real_option in
4734 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4735 *) option=$real_option ;;
4736 esac
4737 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4740 $as_echo_n "checking whether $CC supports $option... " >&6; }
4741 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 CFLAGS="$option"
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4749 main ()
4753 return 0;
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 eval "$as_acx_Woption=yes"
4758 else
4759 eval "$as_acx_Woption=no"
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 eval ac_res=\$$as_acx_Woption
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4766 $as_echo "$ac_res" >&6; }
4767 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4768 c_warn="$c_warn${c_warn:+ }$real_option"
4770 done
4771 CFLAGS="$save_CFLAGS"
4773 WARN_PEDANTIC=
4774 # Do the check with the no- prefix removed from the warning options
4775 # since gcc silently accepts any -Wno-* option on purpose
4776 if test "$GCC" = yes; then :
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
4778 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
4779 if test "${acx_cv_prog_cc_pedantic__Wlong_long+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 save_CFLAGS="$CFLAGS"
4783 CFLAGS="-pedantic -Wlong-long"
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4788 main ()
4792 return 0;
4794 _ACEOF
4795 if ac_fn_c_try_compile "$LINENO"; then :
4796 acx_cv_prog_cc_pedantic__Wlong_long=yes
4797 else
4798 acx_cv_prog_cc_pedantic__Wlong_long=no
4800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801 CFLAGS="$save_CFLAGS"
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
4804 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
4805 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
4806 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
4812 # Disable exceptions and RTTI if building with g++
4813 noexception_flags=
4814 save_CFLAGS="$CFLAGS"
4815 for real_option in -fno-exceptions -fno-rtti; do
4816 # Do the check with the no- prefix removed since gcc silently
4817 # accepts any -Wno-* option on purpose
4818 case $real_option in
4819 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4820 *) option=$real_option ;;
4821 esac
4822 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4825 $as_echo_n "checking whether $CC supports $option... " >&6; }
4826 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 CFLAGS="$option"
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4834 main ()
4838 return 0;
4840 _ACEOF
4841 if ac_fn_c_try_compile "$LINENO"; then :
4842 eval "$as_acx_Woption=yes"
4843 else
4844 eval "$as_acx_Woption=no"
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849 eval ac_res=\$$as_acx_Woption
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4851 $as_echo "$ac_res" >&6; }
4852 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4853 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
4855 done
4856 CFLAGS="$save_CFLAGS"
4859 # Only enable with --enable-werror-always until existing warnings are
4860 # corrected.
4861 WERROR=
4862 # Check whether --enable-werror-always was given.
4863 if test "${enable_werror_always+set}" = set; then :
4864 enableval=$enable_werror_always;
4865 else
4866 enable_werror_always=no
4869 if test $enable_werror_always = yes; then :
4870 WERROR="$WERROR${WERROR:+ }-Werror"
4875 # Dependency checking.
4876 rm -rf .tst 2>/dev/null
4877 mkdir .tst 2>/dev/null
4878 if test -d .tst; then
4879 am__leading_dot=.
4880 else
4881 am__leading_dot=_
4883 rmdir .tst 2>/dev/null
4885 DEPDIR="${am__leading_dot}deps"
4887 ac_config_commands="$ac_config_commands depdir"
4890 ac_ext=cpp
4891 ac_cpp='$CXXCPP $CPPFLAGS'
4892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899 int i;
4900 _ACEOF
4901 if ac_fn_cxx_try_compile "$LINENO"; then :
4903 else
4904 as_fn_error "C++ compiler missing or inoperational" "$LINENO" 5
4906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4907 ac_ext=c
4908 ac_cpp='$CPP $CPPFLAGS'
4909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913 depcc="$CXX" am_compiler_list=
4915 am_depcomp=$ac_aux_dir/depcomp
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4917 $as_echo_n "checking dependency style of $depcc... " >&6; }
4918 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 if test -f "$am_depcomp"; then
4922 # We make a subdir and do the tests there. Otherwise we can end up
4923 # making bogus files that we don't know about and never remove. For
4924 # instance it was reported that on HP-UX the gcc test will end up
4925 # making a dummy file named `D' -- because `-MD' means `put the output
4926 # in D'.
4927 mkdir conftest.dir
4928 # Copy depcomp to subdir because otherwise we won't find it if we're
4929 # using a relative directory.
4930 cp "$am_depcomp" conftest.dir
4931 cd conftest.dir
4932 # We will build objects and dependencies in a subdirectory because
4933 # it helps to detect inapplicable dependency modes. For instance
4934 # both Tru64's cc and ICC support -MD to output dependencies as a
4935 # side effect of compilation, but ICC will put the dependencies in
4936 # the current directory while Tru64 will put them in the object
4937 # directory.
4938 mkdir sub
4940 am_cv_CXX_dependencies_compiler_type=none
4941 if test "$am_compiler_list" = ""; then
4942 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4944 for depmode in $am_compiler_list; do
4945 if test $depmode = none; then break; fi
4947 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4948 # Setup a source with many dependencies, because some compilers
4949 # like to wrap large dependency lists on column 80 (with \), and
4950 # we should not choose a depcomp mode which is confused by this.
4952 # We need to recreate these files for each test, as the compiler may
4953 # overwrite some of them when testing with obscure command lines.
4954 # This happens at least with the AIX C compiler.
4955 : > sub/conftest.c
4956 for i in 1 2 3 4 5 6; do
4957 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4958 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4959 # Solaris 8's {/usr,}/bin/sh.
4960 touch sub/conftst$i.h
4961 done
4962 echo "include sub/conftest.Po" > confmf
4964 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4965 # mode. It turns out that the SunPro C++ compiler does not properly
4966 # handle `-M -o', and we need to detect this.
4967 depcmd="depmode=$depmode \
4968 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4969 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4970 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4971 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4972 if env $depcmd > conftest.err 2>&1 &&
4973 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4974 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4975 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4976 # icc doesn't choke on unknown options, it will just issue warnings
4977 # or remarks (even with -Werror). So we grep stderr for any message
4978 # that says an option was ignored or not supported.
4979 # When given -MP, icc 7.0 and 7.1 complain thusly:
4980 # icc: Command line warning: ignoring option '-M'; no argument required
4981 # The diagnosis changed in icc 8.0:
4982 # icc: Command line remark: option '-MP' not supported
4983 if (grep 'ignoring option' conftest.err ||
4984 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4985 am_cv_CXX_dependencies_compiler_type=$depmode
4986 $as_echo "$as_me:$LINENO: success" >&5
4987 break
4990 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4991 sed -e 's/^/| /' < conftest.err >&5
4992 done
4994 cd ..
4995 rm -rf conftest.dir
4996 else
4997 am_cv_CXX_dependencies_compiler_type=none
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5002 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5003 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
5004 then as_fn_error "no usable dependency style found" "$LINENO" 5
5005 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5010 # Checks for header files.
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5012 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5013 if test "${ac_cv_header_time+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018 #include <sys/types.h>
5019 #include <sys/time.h>
5020 #include <time.h>
5023 main ()
5025 if ((struct tm *) 0)
5026 return 0;
5028 return 0;
5030 _ACEOF
5031 if ac_fn_c_try_compile "$LINENO"; then :
5032 ac_cv_header_time=yes
5033 else
5034 ac_cv_header_time=no
5036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5039 $as_echo "$ac_cv_header_time" >&6; }
5040 if test $ac_cv_header_time = yes; then
5042 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5047 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5048 if test "${gcc_cv_header_string+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053 #include <string.h>
5054 #include <strings.h>
5056 main ()
5060 return 0;
5062 _ACEOF
5063 if ac_fn_c_try_compile "$LINENO"; then :
5064 gcc_cv_header_string=yes
5065 else
5066 gcc_cv_header_string=no
5068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5071 $as_echo "$gcc_cv_header_string" >&6; }
5072 if test $gcc_cv_header_string = yes; then
5074 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5079 for ac_header in locale.h fcntl.h limits.h stddef.h \
5080 stdlib.h strings.h string.h sys/file.h unistd.h
5081 do :
5082 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5083 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5084 eval as_val=\$$as_ac_Header
5085 if test "x$as_val" = x""yes; then :
5086 cat >>confdefs.h <<_ACEOF
5087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5088 _ACEOF
5092 done
5095 # Checks for typedefs, structures, and compiler characteristics.
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5097 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5098 if test "${ac_cv_c_bigendian+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 ac_cv_c_bigendian=unknown
5102 # See if we're dealing with a universal compiler.
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5105 #ifndef __APPLE_CC__
5106 not a universal capable compiler
5107 #endif
5108 typedef int dummy;
5110 _ACEOF
5111 if ac_fn_c_try_compile "$LINENO"; then :
5113 # Check for potential -arch flags. It is not universal unless
5114 # there are at least two -arch flags with different values.
5115 ac_arch=
5116 ac_prev=
5117 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5118 if test -n "$ac_prev"; then
5119 case $ac_word in
5120 i?86 | x86_64 | ppc | ppc64)
5121 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5122 ac_arch=$ac_word
5123 else
5124 ac_cv_c_bigendian=universal
5125 break
5128 esac
5129 ac_prev=
5130 elif test "x$ac_word" = "x-arch"; then
5131 ac_prev=arch
5133 done
5135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5136 if test $ac_cv_c_bigendian = unknown; then
5137 # See if sys/param.h defines the BYTE_ORDER macro.
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 #include <sys/types.h>
5141 #include <sys/param.h>
5144 main ()
5146 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5147 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5148 && LITTLE_ENDIAN)
5149 bogus endian macros
5150 #endif
5153 return 0;
5155 _ACEOF
5156 if ac_fn_c_try_compile "$LINENO"; then :
5157 # It does; now see whether it defined to BIG_ENDIAN or not.
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 #include <sys/types.h>
5161 #include <sys/param.h>
5164 main ()
5166 #if BYTE_ORDER != BIG_ENDIAN
5167 not big endian
5168 #endif
5171 return 0;
5173 _ACEOF
5174 if ac_fn_c_try_compile "$LINENO"; then :
5175 ac_cv_c_bigendian=yes
5176 else
5177 ac_cv_c_bigendian=no
5179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183 if test $ac_cv_c_bigendian = unknown; then
5184 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5187 #include <limits.h>
5190 main ()
5192 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5193 bogus endian macros
5194 #endif
5197 return 0;
5199 _ACEOF
5200 if ac_fn_c_try_compile "$LINENO"; then :
5201 # It does; now see whether it defined to _BIG_ENDIAN or not.
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5204 #include <limits.h>
5207 main ()
5209 #ifndef _BIG_ENDIAN
5210 not big endian
5211 #endif
5214 return 0;
5216 _ACEOF
5217 if ac_fn_c_try_compile "$LINENO"; then :
5218 ac_cv_c_bigendian=yes
5219 else
5220 ac_cv_c_bigendian=no
5222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 if test $ac_cv_c_bigendian = unknown; then
5227 # Compile a test program.
5228 if test "$cross_compiling" = yes; then :
5229 # Try to guess by grepping values from an object file.
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 short int ascii_mm[] =
5233 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5234 short int ascii_ii[] =
5235 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5236 int use_ascii (int i) {
5237 return ascii_mm[i] + ascii_ii[i];
5239 short int ebcdic_ii[] =
5240 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5241 short int ebcdic_mm[] =
5242 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5243 int use_ebcdic (int i) {
5244 return ebcdic_mm[i] + ebcdic_ii[i];
5246 extern int foo;
5249 main ()
5251 return use_ascii (foo) == use_ebcdic (foo);
5253 return 0;
5255 _ACEOF
5256 if ac_fn_c_try_compile "$LINENO"; then :
5257 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5258 ac_cv_c_bigendian=yes
5260 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5261 if test "$ac_cv_c_bigendian" = unknown; then
5262 ac_cv_c_bigendian=no
5263 else
5264 # finding both strings is unlikely to happen, but who knows?
5265 ac_cv_c_bigendian=unknown
5269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270 else
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5273 $ac_includes_default
5275 main ()
5278 /* Are we little or big endian? From Harbison&Steele. */
5279 union
5281 long int l;
5282 char c[sizeof (long int)];
5283 } u;
5284 u.l = 1;
5285 return u.c[sizeof (long int) - 1] == 1;
5288 return 0;
5290 _ACEOF
5291 if ac_fn_c_try_run "$LINENO"; then :
5292 ac_cv_c_bigendian=no
5293 else
5294 ac_cv_c_bigendian=yes
5296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5297 conftest.$ac_objext conftest.beam conftest.$ac_ext
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5303 $as_echo "$ac_cv_c_bigendian" >&6; }
5304 case $ac_cv_c_bigendian in #(
5305 yes)
5306 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5307 ;; #(
5309 ;; #(
5310 universal)
5312 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5314 ;; #(
5316 as_fn_error "unknown endianness
5317 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5318 esac
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5321 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5322 if test "${ac_cv_c_const+set}" = set; then :
5323 $as_echo_n "(cached) " >&6
5324 else
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5329 main ()
5331 /* FIXME: Include the comments suggested by Paul. */
5332 #ifndef __cplusplus
5333 /* Ultrix mips cc rejects this. */
5334 typedef int charset[2];
5335 const charset cs;
5336 /* SunOS 4.1.1 cc rejects this. */
5337 char const *const *pcpcc;
5338 char **ppc;
5339 /* NEC SVR4.0.2 mips cc rejects this. */
5340 struct point {int x, y;};
5341 static struct point const zero = {0,0};
5342 /* AIX XL C 1.02.0.0 rejects this.
5343 It does not let you subtract one const X* pointer from another in
5344 an arm of an if-expression whose if-part is not a constant
5345 expression */
5346 const char *g = "string";
5347 pcpcc = &g + (g ? g-g : 0);
5348 /* HPUX 7.0 cc rejects these. */
5349 ++pcpcc;
5350 ppc = (char**) pcpcc;
5351 pcpcc = (char const *const *) ppc;
5352 { /* SCO 3.2v4 cc rejects this. */
5353 char *t;
5354 char const *s = 0 ? (char *) 0 : (char const *) 0;
5356 *t++ = 0;
5357 if (s) return 0;
5359 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5360 int x[] = {25, 17};
5361 const int *foo = &x[0];
5362 ++foo;
5364 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5365 typedef const int *iptr;
5366 iptr p = 0;
5367 ++p;
5369 { /* AIX XL C 1.02.0.0 rejects this saying
5370 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5371 struct s { int j; const int *ap[3]; };
5372 struct s *b; b->j = 5;
5374 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5375 const int foo = 10;
5376 if (!foo) return 0;
5378 return !cs[0] && !zero.x;
5379 #endif
5382 return 0;
5384 _ACEOF
5385 if ac_fn_c_try_compile "$LINENO"; then :
5386 ac_cv_c_const=yes
5387 else
5388 ac_cv_c_const=no
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5393 $as_echo "$ac_cv_c_const" >&6; }
5394 if test $ac_cv_c_const = no; then
5396 $as_echo "#define const /**/" >>confdefs.h
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5401 $as_echo_n "checking for inline... " >&6; }
5402 if test "${ac_cv_c_inline+set}" = set; then :
5403 $as_echo_n "(cached) " >&6
5404 else
5405 ac_cv_c_inline=no
5406 for ac_kw in inline __inline__ __inline; do
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 #ifndef __cplusplus
5410 typedef int foo_t;
5411 static $ac_kw foo_t static_foo () {return 0; }
5412 $ac_kw foo_t foo () {return 0; }
5413 #endif
5415 _ACEOF
5416 if ac_fn_c_try_compile "$LINENO"; then :
5417 ac_cv_c_inline=$ac_kw
5419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420 test "$ac_cv_c_inline" != no && break
5421 done
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5425 $as_echo "$ac_cv_c_inline" >&6; }
5427 case $ac_cv_c_inline in
5428 inline | yes) ;;
5430 case $ac_cv_c_inline in
5431 no) ac_val=;;
5432 *) ac_val=$ac_cv_c_inline;;
5433 esac
5434 cat >>confdefs.h <<_ACEOF
5435 #ifndef __cplusplus
5436 #define inline $ac_val
5437 #endif
5438 _ACEOF
5440 esac
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5443 $as_echo_n "checking for obstacks... " >&6; }
5444 if test "${ac_cv_func_obstack+set}" = set; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449 $ac_includes_default
5450 #include "obstack.h"
5452 main ()
5454 struct obstack mem;
5455 #define obstack_chunk_alloc malloc
5456 #define obstack_chunk_free free
5457 obstack_init (&mem);
5458 obstack_free (&mem, 0);
5460 return 0;
5462 _ACEOF
5463 if ac_fn_c_try_link "$LINENO"; then :
5464 ac_cv_func_obstack=yes
5465 else
5466 ac_cv_func_obstack=no
5468 rm -f core conftest.err conftest.$ac_objext \
5469 conftest$ac_exeext conftest.$ac_ext
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5472 $as_echo "$ac_cv_func_obstack" >&6; }
5473 if test $ac_cv_func_obstack = yes; then
5475 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5477 else
5478 case " $LIBOBJS " in
5479 *" obstack.$ac_objext "* ) ;;
5480 *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
5482 esac
5486 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5487 if test "x$ac_cv_type_off_t" = x""yes; then :
5489 else
5491 cat >>confdefs.h <<_ACEOF
5492 #define off_t long int
5493 _ACEOF
5497 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5498 if test "x$ac_cv_type_size_t" = x""yes; then :
5500 else
5502 cat >>confdefs.h <<_ACEOF
5503 #define size_t unsigned int
5504 _ACEOF
5508 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5509 if test "x$ac_cv_type_ssize_t" = x""yes; then :
5511 else
5513 cat >>confdefs.h <<_ACEOF
5514 #define ssize_t int
5515 _ACEOF
5520 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5521 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
5523 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5525 else
5526 for ac_type in 'unsigned int' 'unsigned long int' \
5527 'unsigned long long int'; do
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 $ac_includes_default
5532 main ()
5534 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5535 test_array [0] = 0
5538 return 0;
5540 _ACEOF
5541 if ac_fn_c_try_compile "$LINENO"; then :
5543 cat >>confdefs.h <<_ACEOF
5544 #define uintptr_t $ac_type
5545 _ACEOF
5547 ac_type=
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 test -z "$ac_type" && break
5551 done
5555 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5556 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
5558 else
5560 cat >>confdefs.h <<_ACEOF
5561 #define ptrdiff_t int
5562 _ACEOF
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5567 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5568 if test "${ac_cv_struct_tm+set}" = set; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573 #include <sys/types.h>
5574 #include <time.h>
5577 main ()
5579 struct tm tm;
5580 int *p = &tm.tm_sec;
5581 return !p;
5583 return 0;
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"; then :
5587 ac_cv_struct_tm=time.h
5588 else
5589 ac_cv_struct_tm=sys/time.h
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5594 $as_echo "$ac_cv_struct_tm" >&6; }
5595 if test $ac_cv_struct_tm = sys/time.h; then
5597 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5601 # The cast to long int works around a bug in the HP C Compiler
5602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5604 # This bug is HP SR number 8606223364.
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5606 $as_echo_n "checking size of int... " >&6; }
5607 if test "${ac_cv_sizeof_int+set}" = set; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5612 else
5613 if test "$ac_cv_type_int" = yes; then
5614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5616 { as_fn_set_status 77
5617 as_fn_error "cannot compute sizeof (int)
5618 See \`config.log' for more details." "$LINENO" 5; }; }
5619 else
5620 ac_cv_sizeof_int=0
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5626 $as_echo "$ac_cv_sizeof_int" >&6; }
5630 cat >>confdefs.h <<_ACEOF
5631 #define SIZEOF_INT $ac_cv_sizeof_int
5632 _ACEOF
5635 # The cast to long int works around a bug in the HP C Compiler
5636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5637 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5638 # This bug is HP SR number 8606223364.
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5640 $as_echo_n "checking size of long... " >&6; }
5641 if test "${ac_cv_sizeof_long+set}" = set; then :
5642 $as_echo_n "(cached) " >&6
5643 else
5644 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5646 else
5647 if test "$ac_cv_type_long" = yes; then
5648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5650 { as_fn_set_status 77
5651 as_fn_error "cannot compute sizeof (long)
5652 See \`config.log' for more details." "$LINENO" 5; }; }
5653 else
5654 ac_cv_sizeof_long=0
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5660 $as_echo "$ac_cv_sizeof_long" >&6; }
5664 cat >>confdefs.h <<_ACEOF
5665 #define SIZEOF_LONG $ac_cv_sizeof_long
5666 _ACEOF
5670 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
5671 do :
5672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5673 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5674 eval as_val=\$$as_ac_var
5675 if test "x$as_val" = x""yes; then :
5676 cat >>confdefs.h <<_ACEOF
5677 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5678 _ACEOF
5681 done
5683 ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5684 if test "x$ac_cv_have_decl_abort" = x""yes; then :
5685 ac_have_decl=1
5686 else
5687 ac_have_decl=0
5690 cat >>confdefs.h <<_ACEOF
5691 #define HAVE_DECL_ABORT $ac_have_decl
5692 _ACEOF
5693 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5694 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
5695 ac_have_decl=1
5696 else
5697 ac_have_decl=0
5700 cat >>confdefs.h <<_ACEOF
5701 #define HAVE_DECL_ASPRINTF $ac_have_decl
5702 _ACEOF
5703 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
5704 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
5705 ac_have_decl=1
5706 else
5707 ac_have_decl=0
5710 cat >>confdefs.h <<_ACEOF
5711 #define HAVE_DECL_BASENAME $ac_have_decl
5712 _ACEOF
5713 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
5714 if test "x$ac_cv_have_decl_errno" = x""yes; then :
5715 ac_have_decl=1
5716 else
5717 ac_have_decl=0
5720 cat >>confdefs.h <<_ACEOF
5721 #define HAVE_DECL_ERRNO $ac_have_decl
5722 _ACEOF
5723 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
5724 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
5725 ac_have_decl=1
5726 else
5727 ac_have_decl=0
5730 cat >>confdefs.h <<_ACEOF
5731 #define HAVE_DECL_GETOPT $ac_have_decl
5732 _ACEOF
5733 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5734 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
5735 ac_have_decl=1
5736 else
5737 ac_have_decl=0
5740 cat >>confdefs.h <<_ACEOF
5741 #define HAVE_DECL_VASPRINTF $ac_have_decl
5742 _ACEOF
5744 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
5745 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
5746 ac_have_decl=1
5747 else
5748 ac_have_decl=0
5751 cat >>confdefs.h <<_ACEOF
5752 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
5753 _ACEOF
5754 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
5755 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
5756 ac_have_decl=1
5757 else
5758 ac_have_decl=0
5761 cat >>confdefs.h <<_ACEOF
5762 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
5763 _ACEOF
5764 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
5765 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
5766 ac_have_decl=1
5767 else
5768 ac_have_decl=0
5771 cat >>confdefs.h <<_ACEOF
5772 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
5773 _ACEOF
5774 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
5775 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
5776 ac_have_decl=1
5777 else
5778 ac_have_decl=0
5781 cat >>confdefs.h <<_ACEOF
5782 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
5783 _ACEOF
5784 ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
5785 if test "x$ac_cv_have_decl_fgetc_unlocked" = x""yes; then :
5786 ac_have_decl=1
5787 else
5788 ac_have_decl=0
5791 cat >>confdefs.h <<_ACEOF
5792 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
5793 _ACEOF
5794 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
5795 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
5796 ac_have_decl=1
5797 else
5798 ac_have_decl=0
5801 cat >>confdefs.h <<_ACEOF
5802 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
5803 _ACEOF
5804 ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
5805 if test "x$ac_cv_have_decl_fileno_unlocked" = x""yes; then :
5806 ac_have_decl=1
5807 else
5808 ac_have_decl=0
5811 cat >>confdefs.h <<_ACEOF
5812 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
5813 _ACEOF
5814 ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
5815 if test "x$ac_cv_have_decl_fprintf_unlocked" = x""yes; then :
5816 ac_have_decl=1
5817 else
5818 ac_have_decl=0
5821 cat >>confdefs.h <<_ACEOF
5822 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
5823 _ACEOF
5824 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
5825 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
5826 ac_have_decl=1
5827 else
5828 ac_have_decl=0
5831 cat >>confdefs.h <<_ACEOF
5832 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
5833 _ACEOF
5834 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
5835 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then :
5836 ac_have_decl=1
5837 else
5838 ac_have_decl=0
5841 cat >>confdefs.h <<_ACEOF
5842 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
5843 _ACEOF
5844 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
5845 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then :
5846 ac_have_decl=1
5847 else
5848 ac_have_decl=0
5851 cat >>confdefs.h <<_ACEOF
5852 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
5853 _ACEOF
5854 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
5855 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then :
5856 ac_have_decl=1
5857 else
5858 ac_have_decl=0
5861 cat >>confdefs.h <<_ACEOF
5862 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
5863 _ACEOF
5864 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
5865 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then :
5866 ac_have_decl=1
5867 else
5868 ac_have_decl=0
5871 cat >>confdefs.h <<_ACEOF
5872 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
5873 _ACEOF
5874 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
5875 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
5876 ac_have_decl=1
5877 else
5878 ac_have_decl=0
5881 cat >>confdefs.h <<_ACEOF
5882 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
5883 _ACEOF
5884 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
5885 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then :
5886 ac_have_decl=1
5887 else
5888 ac_have_decl=0
5891 cat >>confdefs.h <<_ACEOF
5892 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
5893 _ACEOF
5894 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
5895 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then :
5896 ac_have_decl=1
5897 else
5898 ac_have_decl=0
5901 cat >>confdefs.h <<_ACEOF
5902 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
5903 _ACEOF
5906 # Checks for library functions.
5907 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5908 # for constant arguments. Useless!
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5910 $as_echo_n "checking for working alloca.h... " >&6; }
5911 if test "${ac_cv_working_alloca_h+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5916 #include <alloca.h>
5918 main ()
5920 char *p = (char *) alloca (2 * sizeof (int));
5921 if (p) return 0;
5923 return 0;
5925 _ACEOF
5926 if ac_fn_c_try_link "$LINENO"; then :
5927 ac_cv_working_alloca_h=yes
5928 else
5929 ac_cv_working_alloca_h=no
5931 rm -f core conftest.err conftest.$ac_objext \
5932 conftest$ac_exeext conftest.$ac_ext
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5935 $as_echo "$ac_cv_working_alloca_h" >&6; }
5936 if test $ac_cv_working_alloca_h = yes; then
5938 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5943 $as_echo_n "checking for alloca... " >&6; }
5944 if test "${ac_cv_func_alloca_works+set}" = set; then :
5945 $as_echo_n "(cached) " >&6
5946 else
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5949 #ifdef __GNUC__
5950 # define alloca __builtin_alloca
5951 #else
5952 # ifdef _MSC_VER
5953 # include <malloc.h>
5954 # define alloca _alloca
5955 # else
5956 # ifdef HAVE_ALLOCA_H
5957 # include <alloca.h>
5958 # else
5959 # ifdef _AIX
5960 #pragma alloca
5961 # else
5962 # ifndef alloca /* predefined by HP cc +Olibcalls */
5963 char *alloca ();
5964 # endif
5965 # endif
5966 # endif
5967 # endif
5968 #endif
5971 main ()
5973 char *p = (char *) alloca (1);
5974 if (p) return 0;
5976 return 0;
5978 _ACEOF
5979 if ac_fn_c_try_link "$LINENO"; then :
5980 ac_cv_func_alloca_works=yes
5981 else
5982 ac_cv_func_alloca_works=no
5984 rm -f core conftest.err conftest.$ac_objext \
5985 conftest$ac_exeext conftest.$ac_ext
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5988 $as_echo "$ac_cv_func_alloca_works" >&6; }
5990 if test $ac_cv_func_alloca_works = yes; then
5992 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5994 else
5995 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5996 # that cause trouble. Some versions do not even contain alloca or
5997 # contain a buggy version. If you still want to use their alloca,
5998 # use ar to extract alloca.o from them instead of compiling alloca.c.
6000 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6002 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6006 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6007 if test "${ac_cv_os_cray+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012 #if defined CRAY && ! defined CRAY2
6013 webecray
6014 #else
6015 wenotbecray
6016 #endif
6018 _ACEOF
6019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6020 $EGREP "webecray" >/dev/null 2>&1; then :
6021 ac_cv_os_cray=yes
6022 else
6023 ac_cv_os_cray=no
6025 rm -f conftest*
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6029 $as_echo "$ac_cv_os_cray" >&6; }
6030 if test $ac_cv_os_cray = yes; then
6031 for ac_func in _getb67 GETB67 getb67; do
6032 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6033 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6034 eval as_val=\$$as_ac_var
6035 if test "x$as_val" = x""yes; then :
6037 cat >>confdefs.h <<_ACEOF
6038 #define CRAY_STACKSEG_END $ac_func
6039 _ACEOF
6041 break
6044 done
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6048 $as_echo_n "checking stack direction for C alloca... " >&6; }
6049 if test "${ac_cv_c_stack_direction+set}" = set; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 if test "$cross_compiling" = yes; then :
6053 ac_cv_c_stack_direction=0
6054 else
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6057 $ac_includes_default
6059 find_stack_direction ()
6061 static char *addr = 0;
6062 auto char dummy;
6063 if (addr == 0)
6065 addr = &dummy;
6066 return find_stack_direction ();
6068 else
6069 return (&dummy > addr) ? 1 : -1;
6073 main ()
6075 return find_stack_direction () < 0;
6077 _ACEOF
6078 if ac_fn_c_try_run "$LINENO"; then :
6079 ac_cv_c_stack_direction=1
6080 else
6081 ac_cv_c_stack_direction=-1
6083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6084 conftest.$ac_objext conftest.beam conftest.$ac_ext
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6089 $as_echo "$ac_cv_c_stack_direction" >&6; }
6090 cat >>confdefs.h <<_ACEOF
6091 #define STACK_DIRECTION $ac_cv_c_stack_direction
6092 _ACEOF
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6098 $as_echo_n "checking for ANSI C header files... " >&6; }
6099 if test "${ac_cv_header_stdc+set}" = set; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6104 #include <stdlib.h>
6105 #include <stdarg.h>
6106 #include <string.h>
6107 #include <float.h>
6110 main ()
6114 return 0;
6116 _ACEOF
6117 if ac_fn_c_try_compile "$LINENO"; then :
6118 ac_cv_header_stdc=yes
6119 else
6120 ac_cv_header_stdc=no
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 if test $ac_cv_header_stdc = yes; then
6125 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6128 #include <string.h>
6130 _ACEOF
6131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6132 $EGREP "memchr" >/dev/null 2>&1; then :
6134 else
6135 ac_cv_header_stdc=no
6137 rm -f conftest*
6141 if test $ac_cv_header_stdc = yes; then
6142 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h. */
6145 #include <stdlib.h>
6147 _ACEOF
6148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6149 $EGREP "free" >/dev/null 2>&1; then :
6151 else
6152 ac_cv_header_stdc=no
6154 rm -f conftest*
6158 if test $ac_cv_header_stdc = yes; then
6159 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6160 if test "$cross_compiling" = yes; then :
6162 else
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6165 #include <ctype.h>
6166 #include <stdlib.h>
6167 #if ((' ' & 0x0FF) == 0x020)
6168 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6169 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6170 #else
6171 # define ISLOWER(c) \
6172 (('a' <= (c) && (c) <= 'i') \
6173 || ('j' <= (c) && (c) <= 'r') \
6174 || ('s' <= (c) && (c) <= 'z'))
6175 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6176 #endif
6178 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6180 main ()
6182 int i;
6183 for (i = 0; i < 256; i++)
6184 if (XOR (islower (i), ISLOWER (i))
6185 || toupper (i) != TOUPPER (i))
6186 return 2;
6187 return 0;
6189 _ACEOF
6190 if ac_fn_c_try_run "$LINENO"; then :
6192 else
6193 ac_cv_header_stdc=no
6195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6196 conftest.$ac_objext conftest.beam conftest.$ac_ext
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6202 $as_echo "$ac_cv_header_stdc" >&6; }
6203 if test $ac_cv_header_stdc = yes; then
6205 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6211 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6212 if test "${am_cv_langinfo_codeset+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6214 else
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6217 #include <langinfo.h>
6219 main ()
6221 char* cs = nl_langinfo(CODESET);
6223 return 0;
6225 _ACEOF
6226 if ac_fn_c_try_link "$LINENO"; then :
6227 am_cv_langinfo_codeset=yes
6228 else
6229 am_cv_langinfo_codeset=no
6231 rm -f core conftest.err conftest.$ac_objext \
6232 conftest$ac_exeext conftest.$ac_ext
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6236 $as_echo "$am_cv_langinfo_codeset" >&6; }
6237 if test $am_cv_langinfo_codeset = yes; then
6239 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6243 # If we haven't got the data from the intl directory,
6244 # assume NLS is disabled.
6245 USE_NLS=no
6246 LIBINTL=
6247 LIBINTL_DEP=
6248 INCINTL=
6249 XGETTEXT=
6250 GMSGFMT=
6251 POSUB=
6253 if test -f ../intl/config.intl; then
6254 . ../intl/config.intl
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6257 $as_echo_n "checking whether NLS is requested... " >&6; }
6258 if test x"$USE_NLS" != xyes; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6261 else
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6263 $as_echo "yes" >&6; }
6265 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6269 $as_echo_n "checking for catalogs to be installed... " >&6; }
6270 # Look for .po and .gmo files in the source directory.
6271 CATALOGS=
6272 XLINGUAS=
6273 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6274 # If there aren't any .gmo files the shell will give us the
6275 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6276 # weeded out.
6277 case "$cat" in *\**)
6278 continue;;
6279 esac
6280 # The quadruple backslash is collapsed to a double backslash
6281 # by the backticks, then collapsed again by the double quotes,
6282 # leaving us with one backslash in the sed expression (right
6283 # before the dot that mustn't act as a wildcard).
6284 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6285 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6286 # The user is allowed to set LINGUAS to a list of languages to
6287 # install catalogs for. If it's empty that means "all of them."
6288 if test "x$LINGUAS" = x; then
6289 CATALOGS="$CATALOGS $cat"
6290 XLINGUAS="$XLINGUAS $lang"
6291 else
6292 case "$LINGUAS" in *$lang*)
6293 CATALOGS="$CATALOGS $cat"
6294 XLINGUAS="$XLINGUAS $lang"
6296 esac
6298 done
6299 LINGUAS="$XLINGUAS"
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6301 $as_echo "$LINGUAS" >&6; }
6304 DATADIRNAME=share
6306 INSTOBJEXT=.mo
6308 GENCAT=gencat
6310 CATOBJEXT=.gmo
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
6315 $as_echo_n "checking for uchar... " >&6; }
6316 if test "${gcc_cv_type_uchar+set}" = set; then :
6317 $as_echo_n "(cached) " >&6
6318 else
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6322 #include <sys/types.h>
6325 main ()
6327 if ((uchar *)0) return 0;
6328 if (sizeof(uchar)) return 0;
6330 return 0;
6332 _ACEOF
6333 if ac_fn_c_try_compile "$LINENO"; then :
6334 ac_cv_type_uchar=yes
6335 else
6336 ac_cv_type_uchar=no
6338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
6341 $as_echo "$gcc_cv_type_uchar" >&6; }
6342 if test $ac_cv_type_uchar = yes; then
6344 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
6348 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
6349 # iconv() prototype.
6350 ac_ext=cpp
6351 ac_cpp='$CXXCPP $CPPFLAGS'
6352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6357 if test "X$prefix" = "XNONE"; then
6358 acl_final_prefix="$ac_default_prefix"
6359 else
6360 acl_final_prefix="$prefix"
6362 if test "X$exec_prefix" = "XNONE"; then
6363 acl_final_exec_prefix='${prefix}'
6364 else
6365 acl_final_exec_prefix="$exec_prefix"
6367 acl_save_prefix="$prefix"
6368 prefix="$acl_final_prefix"
6369 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6370 prefix="$acl_save_prefix"
6373 # Check whether --with-gnu-ld was given.
6374 if test "${with_gnu_ld+set}" = set; then :
6375 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6376 else
6377 with_gnu_ld=no
6380 # Prepare PATH_SEPARATOR.
6381 # The user is always right.
6382 if test "${PATH_SEPARATOR+set}" != set; then
6383 echo "#! /bin/sh" >conf$$.sh
6384 echo "exit 0" >>conf$$.sh
6385 chmod +x conf$$.sh
6386 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6387 PATH_SEPARATOR=';'
6388 else
6389 PATH_SEPARATOR=:
6391 rm -f conf$$.sh
6393 ac_prog=ld
6394 if test "$GCC" = yes; then
6395 # Check if gcc -print-prog-name=ld gives a path.
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6397 $as_echo_n "checking for ld used by GCC... " >&6; }
6398 case $host in
6399 *-*-mingw*)
6400 # gcc leaves a trailing carriage return which upsets mingw
6401 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6403 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6404 esac
6405 case $ac_prog in
6406 # Accept absolute paths.
6407 [\\/]* | [A-Za-z]:[\\/]*)
6408 re_direlt='/[^/][^/]*/\.\./'
6409 # Canonicalize the path of ld
6410 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6411 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6412 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6413 done
6414 test -z "$LD" && LD="$ac_prog"
6417 # If it fails, then pretend we aren't using GCC.
6418 ac_prog=ld
6421 # If it is relative, then search for the first ld in PATH.
6422 with_gnu_ld=unknown
6424 esac
6425 elif test "$with_gnu_ld" = yes; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6427 $as_echo_n "checking for GNU ld... " >&6; }
6428 else
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6430 $as_echo_n "checking for non-GNU ld... " >&6; }
6432 if test "${acl_cv_path_LD+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 if test -z "$LD"; then
6436 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6437 for ac_dir in $PATH; do
6438 test -z "$ac_dir" && ac_dir=.
6439 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6440 acl_cv_path_LD="$ac_dir/$ac_prog"
6441 # Check to see if the program is GNU ld. I'd rather use --version,
6442 # but apparently some GNU ld's only accept -v.
6443 # Break only if it was the GNU/non-GNU ld that we prefer.
6444 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6445 test "$with_gnu_ld" != no && break
6446 else
6447 test "$with_gnu_ld" != yes && break
6450 done
6451 IFS="$ac_save_ifs"
6452 else
6453 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6457 LD="$acl_cv_path_LD"
6458 if test -n "$LD"; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6460 $as_echo "$LD" >&6; }
6461 else
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6465 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6467 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6468 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6470 else
6471 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6472 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6473 acl_cv_prog_gnu_ld=yes
6474 else
6475 acl_cv_prog_gnu_ld=no
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6479 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6480 with_gnu_ld=$acl_cv_prog_gnu_ld
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6485 $as_echo_n "checking for shared library run path origin... " >&6; }
6486 if test "${acl_cv_rpath+set}" = set; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6490 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6491 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6492 . ./conftest.sh
6493 rm -f ./conftest.sh
6494 acl_cv_rpath=done
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6498 $as_echo "$acl_cv_rpath" >&6; }
6499 wl="$acl_cv_wl"
6500 libext="$acl_cv_libext"
6501 shlibext="$acl_cv_shlibext"
6502 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6503 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6504 hardcode_direct="$acl_cv_hardcode_direct"
6505 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6506 # Check whether --enable-rpath was given.
6507 if test "${enable_rpath+set}" = set; then :
6508 enableval=$enable_rpath; :
6509 else
6510 enable_rpath=yes
6520 use_additional=yes
6522 acl_save_prefix="$prefix"
6523 prefix="$acl_final_prefix"
6524 acl_save_exec_prefix="$exec_prefix"
6525 exec_prefix="$acl_final_exec_prefix"
6527 eval additional_includedir=\"$includedir\"
6528 eval additional_libdir=\"$libdir\"
6530 exec_prefix="$acl_save_exec_prefix"
6531 prefix="$acl_save_prefix"
6534 # Check whether --with-libiconv-prefix was given.
6535 if test "${with_libiconv_prefix+set}" = set; then :
6536 withval=$with_libiconv_prefix;
6537 if test "X$withval" = "Xno"; then
6538 use_additional=no
6539 else
6540 if test "X$withval" = "X"; then
6542 acl_save_prefix="$prefix"
6543 prefix="$acl_final_prefix"
6544 acl_save_exec_prefix="$exec_prefix"
6545 exec_prefix="$acl_final_exec_prefix"
6547 eval additional_includedir=\"$includedir\"
6548 eval additional_libdir=\"$libdir\"
6550 exec_prefix="$acl_save_exec_prefix"
6551 prefix="$acl_save_prefix"
6553 else
6554 additional_includedir="$withval/include"
6555 additional_libdir="$withval/lib"
6561 LIBICONV=
6562 LTLIBICONV=
6563 INCICONV=
6564 rpathdirs=
6565 ltrpathdirs=
6566 names_already_handled=
6567 names_next_round='iconv '
6568 while test -n "$names_next_round"; do
6569 names_this_round="$names_next_round"
6570 names_next_round=
6571 for name in $names_this_round; do
6572 already_handled=
6573 for n in $names_already_handled; do
6574 if test "$n" = "$name"; then
6575 already_handled=yes
6576 break
6578 done
6579 if test -z "$already_handled"; then
6580 names_already_handled="$names_already_handled $name"
6581 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6582 eval value=\"\$HAVE_LIB$uppername\"
6583 if test -n "$value"; then
6584 if test "$value" = yes; then
6585 eval value=\"\$LIB$uppername\"
6586 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6587 eval value=\"\$LTLIB$uppername\"
6588 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6589 else
6592 else
6593 found_dir=
6594 found_la=
6595 found_so=
6596 found_a=
6597 if test $use_additional = yes; then
6598 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6599 found_dir="$additional_libdir"
6600 found_so="$additional_libdir/lib$name.$shlibext"
6601 if test -f "$additional_libdir/lib$name.la"; then
6602 found_la="$additional_libdir/lib$name.la"
6604 else
6605 if test -f "$additional_libdir/lib$name.$libext"; then
6606 found_dir="$additional_libdir"
6607 found_a="$additional_libdir/lib$name.$libext"
6608 if test -f "$additional_libdir/lib$name.la"; then
6609 found_la="$additional_libdir/lib$name.la"
6614 if test "X$found_dir" = "X"; then
6615 for x in $LDFLAGS $LTLIBICONV; do
6617 acl_save_prefix="$prefix"
6618 prefix="$acl_final_prefix"
6619 acl_save_exec_prefix="$exec_prefix"
6620 exec_prefix="$acl_final_exec_prefix"
6621 eval x=\"$x\"
6622 exec_prefix="$acl_save_exec_prefix"
6623 prefix="$acl_save_prefix"
6625 case "$x" in
6626 -L*)
6627 dir=`echo "X$x" | sed -e 's/^X-L//'`
6628 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6629 found_dir="$dir"
6630 found_so="$dir/lib$name.$shlibext"
6631 if test -f "$dir/lib$name.la"; then
6632 found_la="$dir/lib$name.la"
6634 else
6635 if test -f "$dir/lib$name.$libext"; then
6636 found_dir="$dir"
6637 found_a="$dir/lib$name.$libext"
6638 if test -f "$dir/lib$name.la"; then
6639 found_la="$dir/lib$name.la"
6644 esac
6645 if test "X$found_dir" != "X"; then
6646 break
6648 done
6650 if test "X$found_dir" != "X"; then
6651 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6652 if test "X$found_so" != "X"; then
6653 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6654 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6655 else
6656 haveit=
6657 for x in $ltrpathdirs; do
6658 if test "X$x" = "X$found_dir"; then
6659 haveit=yes
6660 break
6662 done
6663 if test -z "$haveit"; then
6664 ltrpathdirs="$ltrpathdirs $found_dir"
6666 if test "$hardcode_direct" = yes; then
6667 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6668 else
6669 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6670 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6671 haveit=
6672 for x in $rpathdirs; do
6673 if test "X$x" = "X$found_dir"; then
6674 haveit=yes
6675 break
6677 done
6678 if test -z "$haveit"; then
6679 rpathdirs="$rpathdirs $found_dir"
6681 else
6682 haveit=
6683 for x in $LDFLAGS $LIBICONV; do
6685 acl_save_prefix="$prefix"
6686 prefix="$acl_final_prefix"
6687 acl_save_exec_prefix="$exec_prefix"
6688 exec_prefix="$acl_final_exec_prefix"
6689 eval x=\"$x\"
6690 exec_prefix="$acl_save_exec_prefix"
6691 prefix="$acl_save_prefix"
6693 if test "X$x" = "X-L$found_dir"; then
6694 haveit=yes
6695 break
6697 done
6698 if test -z "$haveit"; then
6699 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6701 if test "$hardcode_minus_L" != no; then
6702 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6703 else
6704 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6709 else
6710 if test "X$found_a" != "X"; then
6711 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6712 else
6713 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6716 additional_includedir=
6717 case "$found_dir" in
6718 */lib | */lib/)
6719 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6720 additional_includedir="$basedir/include"
6722 esac
6723 if test "X$additional_includedir" != "X"; then
6724 if test "X$additional_includedir" != "X/usr/include"; then
6725 haveit=
6726 if test "X$additional_includedir" = "X/usr/local/include"; then
6727 if test -n "$GCC"; then
6728 case $host_os in
6729 linux*) haveit=yes;;
6730 esac
6733 if test -z "$haveit"; then
6734 for x in $CPPFLAGS $INCICONV; do
6736 acl_save_prefix="$prefix"
6737 prefix="$acl_final_prefix"
6738 acl_save_exec_prefix="$exec_prefix"
6739 exec_prefix="$acl_final_exec_prefix"
6740 eval x=\"$x\"
6741 exec_prefix="$acl_save_exec_prefix"
6742 prefix="$acl_save_prefix"
6744 if test "X$x" = "X-I$additional_includedir"; then
6745 haveit=yes
6746 break
6748 done
6749 if test -z "$haveit"; then
6750 if test -d "$additional_includedir"; then
6751 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6757 if test -n "$found_la"; then
6758 save_libdir="$libdir"
6759 case "$found_la" in
6760 */* | *\\*) . "$found_la" ;;
6761 *) . "./$found_la" ;;
6762 esac
6763 libdir="$save_libdir"
6764 for dep in $dependency_libs; do
6765 case "$dep" in
6766 -L*)
6767 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6768 if test "X$additional_libdir" != "X/usr/lib"; then
6769 haveit=
6770 if test "X$additional_libdir" = "X/usr/local/lib"; then
6771 if test -n "$GCC"; then
6772 case $host_os in
6773 linux*) haveit=yes;;
6774 esac
6777 if test -z "$haveit"; then
6778 haveit=
6779 for x in $LDFLAGS $LIBICONV; do
6781 acl_save_prefix="$prefix"
6782 prefix="$acl_final_prefix"
6783 acl_save_exec_prefix="$exec_prefix"
6784 exec_prefix="$acl_final_exec_prefix"
6785 eval x=\"$x\"
6786 exec_prefix="$acl_save_exec_prefix"
6787 prefix="$acl_save_prefix"
6789 if test "X$x" = "X-L$additional_libdir"; then
6790 haveit=yes
6791 break
6793 done
6794 if test -z "$haveit"; then
6795 if test -d "$additional_libdir"; then
6796 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6799 haveit=
6800 for x in $LDFLAGS $LTLIBICONV; do
6802 acl_save_prefix="$prefix"
6803 prefix="$acl_final_prefix"
6804 acl_save_exec_prefix="$exec_prefix"
6805 exec_prefix="$acl_final_exec_prefix"
6806 eval x=\"$x\"
6807 exec_prefix="$acl_save_exec_prefix"
6808 prefix="$acl_save_prefix"
6810 if test "X$x" = "X-L$additional_libdir"; then
6811 haveit=yes
6812 break
6814 done
6815 if test -z "$haveit"; then
6816 if test -d "$additional_libdir"; then
6817 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6823 -R*)
6824 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6825 if test "$enable_rpath" != no; then
6826 haveit=
6827 for x in $rpathdirs; do
6828 if test "X$x" = "X$dir"; then
6829 haveit=yes
6830 break
6832 done
6833 if test -z "$haveit"; then
6834 rpathdirs="$rpathdirs $dir"
6836 haveit=
6837 for x in $ltrpathdirs; do
6838 if test "X$x" = "X$dir"; then
6839 haveit=yes
6840 break
6842 done
6843 if test -z "$haveit"; then
6844 ltrpathdirs="$ltrpathdirs $dir"
6848 -l*)
6849 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6851 *.la)
6852 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6855 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6856 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6858 esac
6859 done
6861 else
6862 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6863 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6867 done
6868 done
6869 if test "X$rpathdirs" != "X"; then
6870 if test -n "$hardcode_libdir_separator"; then
6871 alldirs=
6872 for found_dir in $rpathdirs; do
6873 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6874 done
6875 acl_save_libdir="$libdir"
6876 libdir="$alldirs"
6877 eval flag=\"$hardcode_libdir_flag_spec\"
6878 libdir="$acl_save_libdir"
6879 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6880 else
6881 for found_dir in $rpathdirs; do
6882 acl_save_libdir="$libdir"
6883 libdir="$found_dir"
6884 eval flag=\"$hardcode_libdir_flag_spec\"
6885 libdir="$acl_save_libdir"
6886 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6887 done
6890 if test "X$ltrpathdirs" != "X"; then
6891 for found_dir in $ltrpathdirs; do
6892 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6893 done
6902 am_save_CPPFLAGS="$CPPFLAGS"
6904 for element in $INCICONV; do
6905 haveit=
6906 for x in $CPPFLAGS; do
6908 acl_save_prefix="$prefix"
6909 prefix="$acl_final_prefix"
6910 acl_save_exec_prefix="$exec_prefix"
6911 exec_prefix="$acl_final_exec_prefix"
6912 eval x=\"$x\"
6913 exec_prefix="$acl_save_exec_prefix"
6914 prefix="$acl_save_prefix"
6916 if test "X$x" = "X$element"; then
6917 haveit=yes
6918 break
6920 done
6921 if test -z "$haveit"; then
6922 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6924 done
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6928 $as_echo_n "checking for iconv... " >&6; }
6929 if test "${am_cv_func_iconv+set}" = set; then :
6930 $as_echo_n "(cached) " >&6
6931 else
6933 am_cv_func_iconv="no, consider installing GNU libiconv"
6934 am_cv_lib_iconv=no
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6937 #include <stdlib.h>
6938 #include <iconv.h>
6940 main ()
6942 iconv_t cd = iconv_open("","");
6943 iconv(cd,NULL,NULL,NULL,NULL);
6944 iconv_close(cd);
6946 return 0;
6948 _ACEOF
6949 if ac_fn_cxx_try_link "$LINENO"; then :
6950 am_cv_func_iconv=yes
6952 rm -f core conftest.err conftest.$ac_objext \
6953 conftest$ac_exeext conftest.$ac_ext
6954 if test "$am_cv_func_iconv" != yes; then
6955 am_save_LIBS="$LIBS"
6956 LIBS="$LIBS $LIBICONV"
6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h. */
6959 #include <stdlib.h>
6960 #include <iconv.h>
6962 main ()
6964 iconv_t cd = iconv_open("","");
6965 iconv(cd,NULL,NULL,NULL,NULL);
6966 iconv_close(cd);
6968 return 0;
6970 _ACEOF
6971 if ac_fn_cxx_try_link "$LINENO"; then :
6972 am_cv_lib_iconv=yes
6973 am_cv_func_iconv=yes
6975 rm -f core conftest.err conftest.$ac_objext \
6976 conftest$ac_exeext conftest.$ac_ext
6977 LIBS="$am_save_LIBS"
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6982 $as_echo "$am_cv_func_iconv" >&6; }
6983 if test "$am_cv_func_iconv" = yes; then
6985 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6988 if test "$am_cv_lib_iconv" = yes; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6990 $as_echo_n "checking how to link with libiconv... " >&6; }
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6992 $as_echo "$LIBICONV" >&6; }
6993 else
6994 CPPFLAGS="$am_save_CPPFLAGS"
6995 LIBICONV=
6996 LTLIBICONV=
7001 if test "$am_cv_func_iconv" = yes; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7003 $as_echo_n "checking for iconv declaration... " >&6; }
7004 if test "${am_cv_proto_iconv+set}" = set; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7011 #include <stdlib.h>
7012 #include <iconv.h>
7013 extern
7014 #ifdef __cplusplus
7016 #endif
7017 #if defined(__STDC__) || defined(__cplusplus)
7018 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7019 #else
7020 size_t iconv();
7021 #endif
7024 main ()
7028 return 0;
7030 _ACEOF
7031 if ac_fn_cxx_try_compile "$LINENO"; then :
7032 am_cv_proto_iconv_arg1=""
7033 else
7034 am_cv_proto_iconv_arg1="const"
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037 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);"
7040 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7042 }$am_cv_proto_iconv" >&5
7043 $as_echo "${ac_t:-
7044 }$am_cv_proto_iconv" >&6; }
7046 cat >>confdefs.h <<_ACEOF
7047 #define ICONV_CONST $am_cv_proto_iconv_arg1
7048 _ACEOF
7052 ac_ext=c
7053 ac_cpp='$CPP $CPPFLAGS'
7054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7059 # More defines and substitutions.
7060 PACKAGE="$PACKAGE_TARNAME"
7062 cat >>confdefs.h <<_ACEOF
7063 #define PACKAGE "$PACKAGE"
7064 _ACEOF
7068 if test "x$enable_nls" != xno; then
7069 USED_CATALOGS='$(CATALOGS)'
7070 else
7071 USED_CATALOGS=
7075 # Check whether --enable-maintainer-mode was given.
7076 if test "${enable_maintainer_mode+set}" = set; then :
7077 enableval=$enable_maintainer_mode;
7078 else
7079 enable_maintainer_mode=no
7083 if test "x$enable_maintainer_mode" = xno; then
7084 MAINT='#'
7085 else
7086 MAINT=
7090 # Enable expensive internal checks
7091 is_release=
7092 if test -f $srcdir/../gcc/DEV-PHASE \
7093 && test x"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental; then
7094 is_release=yes
7097 # Check whether --enable-checking was given.
7098 if test "${enable_checking+set}" = set; then :
7099 enableval=$enable_checking; ac_checking_flags="${enableval}"
7100 else
7102 # Determine the default checks.
7103 if test x$is_release = x ; then
7104 ac_checking_flags=yes
7105 else
7106 ac_checking_flags=release
7110 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7111 for check in release $ac_checking_flags
7113 case $check in
7114 # these set all the flags to specific states
7115 yes|all) ac_checking=1 ; ac_valgrind_checking= ;;
7116 no|none|release) ac_checking= ; ac_valgrind_checking= ;;
7117 # these enable particular checks
7118 misc) ac_checking=1 ;;
7119 valgrind) ac_valgrind_checking=1 ;;
7120 # accept
7121 *) ;;
7122 esac
7123 done
7124 IFS="$ac_save_IFS"
7126 if test x$ac_checking != x ; then
7128 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
7132 if test x$ac_valgrind_checking != x ; then
7134 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7138 # Check whether --enable-canonical-system-headers was given.
7139 if test "${enable_canonical_system_headers+set}" = set; then :
7140 enableval=$enable_canonical_system_headers;
7141 else
7142 enable_canonical_system_headers=yes
7145 if test $enable_canonical_system_headers != no; then
7147 $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
7152 case $target in
7153 aarch64*-*-* | \
7154 alpha*-*-* | \
7155 arm*-*-*eabi* | \
7156 arm*-*-rtems* | \
7157 arm*-*-symbianelf* | \
7158 x86_64-*-* | \
7159 ia64-*-* | \
7160 hppa*64*-*-* | \
7161 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]* | \
7162 mips*-*-* | \
7163 mmix-*-* | \
7164 powerpc*-*-* | \
7165 rs6000*-*-* | \
7166 s390*-*-* | \
7167 sparc*-*-* | \
7168 spu-*-* | \
7169 sh[123456789lbe]*-*-* | sh-*-* | \
7170 tilegx-*-* | tilepro-*-* )
7171 need_64bit_hwint=yes ;;
7173 need_64bit_hwint=no ;;
7174 esac
7176 case $need_64bit_hwint:$ac_cv_sizeof_long in
7177 *:8 | no:*) host_wide_int=long ;;
7178 *) host_wide_int='long long' ;;
7179 esac
7183 cat >>confdefs.h <<_ACEOF
7184 #define HOST_WIDE_INT $host_wide_int
7185 _ACEOF
7188 case $target in
7189 i?86-* | x86_64-*)
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7194 main ()
7196 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
7198 return 0;
7200 _ACEOF
7201 if ac_fn_c_try_compile "$LINENO"; then :
7203 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207 esac
7209 # Output.
7211 ac_config_headers="$ac_config_headers config.h:config.in"
7213 ac_config_files="$ac_config_files Makefile"
7215 cat >confcache <<\_ACEOF
7216 # This file is a shell script that caches the results of configure
7217 # tests run on this system so they can be shared between configure
7218 # scripts and configure runs, see configure's option --config-cache.
7219 # It is not useful on other systems. If it contains results you don't
7220 # want to keep, you may remove or edit it.
7222 # config.status only pays attention to the cache file if you give it
7223 # the --recheck option to rerun configure.
7225 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7226 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7227 # following values.
7229 _ACEOF
7231 # The following way of writing the cache mishandles newlines in values,
7232 # but we know of no workaround that is simple, portable, and efficient.
7233 # So, we kill variables containing newlines.
7234 # Ultrix sh set writes to stderr and can't be redirected directly,
7235 # and sets the high bit in the cache file unless we assign to the vars.
7237 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7238 eval ac_val=\$$ac_var
7239 case $ac_val in #(
7240 *${as_nl}*)
7241 case $ac_var in #(
7242 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7243 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7244 esac
7245 case $ac_var in #(
7246 _ | IFS | as_nl) ;; #(
7247 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7248 *) { eval $ac_var=; unset $ac_var;} ;;
7249 esac ;;
7250 esac
7251 done
7253 (set) 2>&1 |
7254 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7255 *${as_nl}ac_space=\ *)
7256 # `set' does not quote correctly, so add quotes: double-quote
7257 # substitution turns \\\\ into \\, and sed turns \\ into \.
7258 sed -n \
7259 "s/'/'\\\\''/g;
7260 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7261 ;; #(
7263 # `set' quotes correctly as required by POSIX, so do not add quotes.
7264 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7266 esac |
7267 sort
7269 sed '
7270 /^ac_cv_env_/b end
7271 t clear
7272 :clear
7273 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7274 t end
7275 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7276 :end' >>confcache
7277 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7278 if test -w "$cache_file"; then
7279 test "x$cache_file" != "x/dev/null" &&
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7281 $as_echo "$as_me: updating cache $cache_file" >&6;}
7282 cat confcache >$cache_file
7283 else
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7285 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7288 rm -f confcache
7290 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7291 # Let make expand exec_prefix.
7292 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7294 DEFS=-DHAVE_CONFIG_H
7296 ac_libobjs=
7297 ac_ltlibobjs=
7298 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7299 # 1. Remove the extension, and $U if already installed.
7300 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7301 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7302 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7303 # will be set to the directory where LIBOBJS objects are built.
7304 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7305 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7306 done
7307 LIBOBJS=$ac_libobjs
7309 LTLIBOBJS=$ac_ltlibobjs
7314 : ${CONFIG_STATUS=./config.status}
7315 ac_write_fail=0
7316 ac_clean_files_save=$ac_clean_files
7317 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7319 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7320 as_write_fail=0
7321 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7322 #! $SHELL
7323 # Generated by $as_me.
7324 # Run this file to recreate the current configuration.
7325 # Compiler output produced by configure, useful for debugging
7326 # configure, is in config.log if it exists.
7328 debug=false
7329 ac_cs_recheck=false
7330 ac_cs_silent=false
7332 SHELL=\${CONFIG_SHELL-$SHELL}
7333 export SHELL
7334 _ASEOF
7335 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7336 ## -------------------- ##
7337 ## M4sh Initialization. ##
7338 ## -------------------- ##
7340 # Be more Bourne compatible
7341 DUALCASE=1; export DUALCASE # for MKS sh
7342 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7343 emulate sh
7344 NULLCMD=:
7345 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7346 # is contrary to our usage. Disable this feature.
7347 alias -g '${1+"$@"}'='"$@"'
7348 setopt NO_GLOB_SUBST
7349 else
7350 case `(set -o) 2>/dev/null` in #(
7351 *posix*) :
7352 set -o posix ;; #(
7353 *) :
7355 esac
7359 as_nl='
7361 export as_nl
7362 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7363 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7364 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7365 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7366 # Prefer a ksh shell builtin over an external printf program on Solaris,
7367 # but without wasting forks for bash or zsh.
7368 if test -z "$BASH_VERSION$ZSH_VERSION" \
7369 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7370 as_echo='print -r --'
7371 as_echo_n='print -rn --'
7372 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7373 as_echo='printf %s\n'
7374 as_echo_n='printf %s'
7375 else
7376 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7377 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7378 as_echo_n='/usr/ucb/echo -n'
7379 else
7380 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7381 as_echo_n_body='eval
7382 arg=$1;
7383 case $arg in #(
7384 *"$as_nl"*)
7385 expr "X$arg" : "X\\(.*\\)$as_nl";
7386 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7387 esac;
7388 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7390 export as_echo_n_body
7391 as_echo_n='sh -c $as_echo_n_body as_echo'
7393 export as_echo_body
7394 as_echo='sh -c $as_echo_body as_echo'
7397 # The user is always right.
7398 if test "${PATH_SEPARATOR+set}" != set; then
7399 PATH_SEPARATOR=:
7400 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7401 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7402 PATH_SEPARATOR=';'
7407 # IFS
7408 # We need space, tab and new line, in precisely that order. Quoting is
7409 # there to prevent editors from complaining about space-tab.
7410 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7411 # splitting by setting IFS to empty value.)
7412 IFS=" "" $as_nl"
7414 # Find who we are. Look in the path if we contain no directory separator.
7415 case $0 in #((
7416 *[\\/]* ) as_myself=$0 ;;
7417 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7423 done
7424 IFS=$as_save_IFS
7427 esac
7428 # We did not find ourselves, most probably we were run as `sh COMMAND'
7429 # in which case we are not to be found in the path.
7430 if test "x$as_myself" = x; then
7431 as_myself=$0
7433 if test ! -f "$as_myself"; then
7434 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7435 exit 1
7438 # Unset variables that we do not need and which cause bugs (e.g. in
7439 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7440 # suppresses any "Segmentation fault" message there. '((' could
7441 # trigger a bug in pdksh 5.2.14.
7442 for as_var in BASH_ENV ENV MAIL MAILPATH
7443 do eval test x\${$as_var+set} = xset \
7444 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7445 done
7446 PS1='$ '
7447 PS2='> '
7448 PS4='+ '
7450 # NLS nuisances.
7451 LC_ALL=C
7452 export LC_ALL
7453 LANGUAGE=C
7454 export LANGUAGE
7456 # CDPATH.
7457 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7460 # as_fn_error ERROR [LINENO LOG_FD]
7461 # ---------------------------------
7462 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7463 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7464 # script with status $?, using 1 if that was 0.
7465 as_fn_error ()
7467 as_status=$?; test $as_status -eq 0 && as_status=1
7468 if test "$3"; then
7469 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7470 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7472 $as_echo "$as_me: error: $1" >&2
7473 as_fn_exit $as_status
7474 } # as_fn_error
7477 # as_fn_set_status STATUS
7478 # -----------------------
7479 # Set $? to STATUS, without forking.
7480 as_fn_set_status ()
7482 return $1
7483 } # as_fn_set_status
7485 # as_fn_exit STATUS
7486 # -----------------
7487 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7488 as_fn_exit ()
7490 set +e
7491 as_fn_set_status $1
7492 exit $1
7493 } # as_fn_exit
7495 # as_fn_unset VAR
7496 # ---------------
7497 # Portably unset VAR.
7498 as_fn_unset ()
7500 { eval $1=; unset $1;}
7502 as_unset=as_fn_unset
7503 # as_fn_append VAR VALUE
7504 # ----------------------
7505 # Append the text in VALUE to the end of the definition contained in VAR. Take
7506 # advantage of any shell optimizations that allow amortized linear growth over
7507 # repeated appends, instead of the typical quadratic growth present in naive
7508 # implementations.
7509 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7510 eval 'as_fn_append ()
7512 eval $1+=\$2
7514 else
7515 as_fn_append ()
7517 eval $1=\$$1\$2
7519 fi # as_fn_append
7521 # as_fn_arith ARG...
7522 # ------------------
7523 # Perform arithmetic evaluation on the ARGs, and store the result in the
7524 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7525 # must be portable across $(()) and expr.
7526 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7527 eval 'as_fn_arith ()
7529 as_val=$(( $* ))
7531 else
7532 as_fn_arith ()
7534 as_val=`expr "$@" || test $? -eq 1`
7536 fi # as_fn_arith
7539 if expr a : '\(a\)' >/dev/null 2>&1 &&
7540 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7541 as_expr=expr
7542 else
7543 as_expr=false
7546 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7547 as_basename=basename
7548 else
7549 as_basename=false
7552 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7553 as_dirname=dirname
7554 else
7555 as_dirname=false
7558 as_me=`$as_basename -- "$0" ||
7559 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7560 X"$0" : 'X\(//\)$' \| \
7561 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7562 $as_echo X/"$0" |
7563 sed '/^.*\/\([^/][^/]*\)\/*$/{
7564 s//\1/
7567 /^X\/\(\/\/\)$/{
7568 s//\1/
7571 /^X\/\(\/\).*/{
7572 s//\1/
7575 s/.*/./; q'`
7577 # Avoid depending upon Character Ranges.
7578 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7579 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7580 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7581 as_cr_digits='0123456789'
7582 as_cr_alnum=$as_cr_Letters$as_cr_digits
7584 ECHO_C= ECHO_N= ECHO_T=
7585 case `echo -n x` in #(((((
7586 -n*)
7587 case `echo 'xy\c'` in
7588 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7589 xy) ECHO_C='\c';;
7590 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7591 ECHO_T=' ';;
7592 esac;;
7594 ECHO_N='-n';;
7595 esac
7597 rm -f conf$$ conf$$.exe conf$$.file
7598 if test -d conf$$.dir; then
7599 rm -f conf$$.dir/conf$$.file
7600 else
7601 rm -f conf$$.dir
7602 mkdir conf$$.dir 2>/dev/null
7604 if (echo >conf$$.file) 2>/dev/null; then
7605 if ln -s conf$$.file conf$$ 2>/dev/null; then
7606 as_ln_s='ln -s'
7607 # ... but there are two gotchas:
7608 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7609 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7610 # In both cases, we have to default to `cp -p'.
7611 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7612 as_ln_s='cp -p'
7613 elif ln conf$$.file conf$$ 2>/dev/null; then
7614 as_ln_s=ln
7615 else
7616 as_ln_s='cp -p'
7618 else
7619 as_ln_s='cp -p'
7621 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7622 rmdir conf$$.dir 2>/dev/null
7625 # as_fn_mkdir_p
7626 # -------------
7627 # Create "$as_dir" as a directory, including parents if necessary.
7628 as_fn_mkdir_p ()
7631 case $as_dir in #(
7632 -*) as_dir=./$as_dir;;
7633 esac
7634 test -d "$as_dir" || eval $as_mkdir_p || {
7635 as_dirs=
7636 while :; do
7637 case $as_dir in #(
7638 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7639 *) as_qdir=$as_dir;;
7640 esac
7641 as_dirs="'$as_qdir' $as_dirs"
7642 as_dir=`$as_dirname -- "$as_dir" ||
7643 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7644 X"$as_dir" : 'X\(//\)[^/]' \| \
7645 X"$as_dir" : 'X\(//\)$' \| \
7646 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7647 $as_echo X"$as_dir" |
7648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7649 s//\1/
7652 /^X\(\/\/\)[^/].*/{
7653 s//\1/
7656 /^X\(\/\/\)$/{
7657 s//\1/
7660 /^X\(\/\).*/{
7661 s//\1/
7664 s/.*/./; q'`
7665 test -d "$as_dir" && break
7666 done
7667 test -z "$as_dirs" || eval "mkdir $as_dirs"
7668 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7671 } # as_fn_mkdir_p
7672 if mkdir -p . 2>/dev/null; then
7673 as_mkdir_p='mkdir -p "$as_dir"'
7674 else
7675 test -d ./-p && rmdir ./-p
7676 as_mkdir_p=false
7679 if test -x / >/dev/null 2>&1; then
7680 as_test_x='test -x'
7681 else
7682 if ls -dL / >/dev/null 2>&1; then
7683 as_ls_L_option=L
7684 else
7685 as_ls_L_option=
7687 as_test_x='
7688 eval sh -c '\''
7689 if test -d "$1"; then
7690 test -d "$1/.";
7691 else
7692 case $1 in #(
7693 -*)set "./$1";;
7694 esac;
7695 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7696 ???[sx]*):;;*)false;;esac;fi
7697 '\'' sh
7700 as_executable_p=$as_test_x
7702 # Sed expression to map a string onto a valid CPP name.
7703 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7705 # Sed expression to map a string onto a valid variable name.
7706 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7709 exec 6>&1
7710 ## ----------------------------------- ##
7711 ## Main body of $CONFIG_STATUS script. ##
7712 ## ----------------------------------- ##
7713 _ASEOF
7714 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7717 # Save the log message, to keep $0 and so on meaningful, and to
7718 # report actual input values of CONFIG_FILES etc. instead of their
7719 # values after options handling.
7720 ac_log="
7721 This file was extended by cpplib $as_me , which was
7722 generated by GNU Autoconf 2.64. Invocation command line was
7724 CONFIG_FILES = $CONFIG_FILES
7725 CONFIG_HEADERS = $CONFIG_HEADERS
7726 CONFIG_LINKS = $CONFIG_LINKS
7727 CONFIG_COMMANDS = $CONFIG_COMMANDS
7728 $ $0 $@
7730 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7733 _ACEOF
7735 case $ac_config_files in *"
7736 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7737 esac
7739 case $ac_config_headers in *"
7740 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7741 esac
7744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7745 # Files that config.status was made for.
7746 config_files="$ac_config_files"
7747 config_headers="$ac_config_headers"
7748 config_commands="$ac_config_commands"
7750 _ACEOF
7752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7753 ac_cs_usage="\
7754 \`$as_me' instantiates files and other configuration actions
7755 from templates according to the current configuration. Unless the files
7756 and actions are specified as TAGs, all are instantiated by default.
7758 Usage: $0 [OPTION]... [TAG]...
7760 -h, --help print this help, then exit
7761 -V, --version print version number and configuration settings, then exit
7762 -q, --quiet, --silent
7763 do not print progress messages
7764 -d, --debug don't remove temporary files
7765 --recheck update $as_me by reconfiguring in the same conditions
7766 --file=FILE[:TEMPLATE]
7767 instantiate the configuration file FILE
7768 --header=FILE[:TEMPLATE]
7769 instantiate the configuration header FILE
7771 Configuration files:
7772 $config_files
7774 Configuration headers:
7775 $config_headers
7777 Configuration commands:
7778 $config_commands
7780 Report bugs to <gcc-bugs@gcc.gnu.org>."
7782 _ACEOF
7783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7784 ac_cs_version="\\
7785 cpplib config.status
7786 configured by $0, generated by GNU Autoconf 2.64,
7787 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7789 Copyright (C) 2009 Free Software Foundation, Inc.
7790 This config.status script is free software; the Free Software Foundation
7791 gives unlimited permission to copy, distribute and modify it."
7793 ac_pwd='$ac_pwd'
7794 srcdir='$srcdir'
7795 INSTALL='$INSTALL'
7796 test -n "\$AWK" || AWK=awk
7797 _ACEOF
7799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7800 # The default lists apply if the user does not specify any file.
7801 ac_need_defaults=:
7802 while test $# != 0
7804 case $1 in
7805 --*=*)
7806 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7807 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7808 ac_shift=:
7811 ac_option=$1
7812 ac_optarg=$2
7813 ac_shift=shift
7815 esac
7817 case $ac_option in
7818 # Handling of the options.
7819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7820 ac_cs_recheck=: ;;
7821 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7822 $as_echo "$ac_cs_version"; exit ;;
7823 --debug | --debu | --deb | --de | --d | -d )
7824 debug=: ;;
7825 --file | --fil | --fi | --f )
7826 $ac_shift
7827 case $ac_optarg in
7828 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7829 esac
7830 as_fn_append CONFIG_FILES " '$ac_optarg'"
7831 ac_need_defaults=false;;
7832 --header | --heade | --head | --hea )
7833 $ac_shift
7834 case $ac_optarg in
7835 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7836 esac
7837 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7838 ac_need_defaults=false;;
7839 --he | --h)
7840 # Conflict between --help and --header
7841 as_fn_error "ambiguous option: \`$1'
7842 Try \`$0 --help' for more information.";;
7843 --help | --hel | -h )
7844 $as_echo "$ac_cs_usage"; exit ;;
7845 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7846 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7847 ac_cs_silent=: ;;
7849 # This is an error.
7850 -*) as_fn_error "unrecognized option: \`$1'
7851 Try \`$0 --help' for more information." ;;
7853 *) as_fn_append ac_config_targets " $1"
7854 ac_need_defaults=false ;;
7856 esac
7857 shift
7858 done
7860 ac_configure_extra_args=
7862 if $ac_cs_silent; then
7863 exec 6>/dev/null
7864 ac_configure_extra_args="$ac_configure_extra_args --silent"
7867 _ACEOF
7868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7869 if \$ac_cs_recheck; then
7870 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7871 shift
7872 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7873 CONFIG_SHELL='$SHELL'
7874 export CONFIG_SHELL
7875 exec "\$@"
7878 _ACEOF
7879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7880 exec 5>>config.log
7882 echo
7883 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7884 ## Running $as_me. ##
7885 _ASBOX
7886 $as_echo "$ac_log"
7887 } >&5
7889 _ACEOF
7890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7892 # INIT-COMMANDS
7894 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
7896 _ACEOF
7898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7900 # Handling of arguments.
7901 for ac_config_target in $ac_config_targets
7903 case $ac_config_target in
7904 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
7905 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7906 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7908 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7909 esac
7910 done
7913 # If the user did not use the arguments to specify the items to instantiate,
7914 # then the envvar interface is used. Set only those that are not.
7915 # We use the long form for the default assignment because of an extremely
7916 # bizarre bug on SunOS 4.1.3.
7917 if $ac_need_defaults; then
7918 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7919 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7920 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7923 # Have a temporary directory for convenience. Make it in the build tree
7924 # simply because there is no reason against having it here, and in addition,
7925 # creating and moving files from /tmp can sometimes cause problems.
7926 # Hook for its removal unless debugging.
7927 # Note that there is a small window in which the directory will not be cleaned:
7928 # after its creation but before its name has been assigned to `$tmp'.
7929 $debug ||
7931 tmp=
7932 trap 'exit_status=$?
7933 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7935 trap 'as_fn_exit 1' 1 2 13 15
7937 # Create a (secure) tmp directory for tmp files.
7940 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7941 test -n "$tmp" && test -d "$tmp"
7942 } ||
7944 tmp=./conf$$-$RANDOM
7945 (umask 077 && mkdir "$tmp")
7946 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7948 # Set up the scripts for CONFIG_FILES section.
7949 # No need to generate them if there are no CONFIG_FILES.
7950 # This happens for instance with `./config.status config.h'.
7951 if test -n "$CONFIG_FILES"; then
7954 ac_cr=`echo X | tr X '\015'`
7955 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7956 # But we know of no other shell where ac_cr would be empty at this
7957 # point, so we can use a bashism as a fallback.
7958 if test "x$ac_cr" = x; then
7959 eval ac_cr=\$\'\\r\'
7961 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7962 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7963 ac_cs_awk_cr='\r'
7964 else
7965 ac_cs_awk_cr=$ac_cr
7968 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7969 _ACEOF
7973 echo "cat >conf$$subs.awk <<_ACEOF" &&
7974 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7975 echo "_ACEOF"
7976 } >conf$$subs.sh ||
7977 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7978 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7979 ac_delim='%!_!# '
7980 for ac_last_try in false false false false false :; do
7981 . ./conf$$subs.sh ||
7982 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7984 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7985 if test $ac_delim_n = $ac_delim_num; then
7986 break
7987 elif $ac_last_try; then
7988 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7989 else
7990 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7992 done
7993 rm -f conf$$subs.sh
7995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7996 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7997 _ACEOF
7998 sed -n '
8000 s/^/S["/; s/!.*/"]=/
8003 s/^[^!]*!//
8004 :repl
8005 t repl
8006 s/'"$ac_delim"'$//
8007 t delim
8010 s/\(.\{148\}\).*/\1/
8011 t more1
8012 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8015 b repl
8016 :more1
8017 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8020 s/.\{148\}//
8021 t nl
8022 :delim
8024 s/\(.\{148\}\).*/\1/
8025 t more2
8026 s/["\\]/\\&/g; s/^/"/; s/$/"/
8029 :more2
8030 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8033 s/.\{148\}//
8034 t delim
8035 ' <conf$$subs.awk | sed '
8036 /^[^""]/{
8038 s/\n//
8040 ' >>$CONFIG_STATUS || ac_write_fail=1
8041 rm -f conf$$subs.awk
8042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8043 _ACAWK
8044 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8045 for (key in S) S_is_set[key] = 1
8046 FS = "\a"
8050 line = $ 0
8051 nfields = split(line, field, "@")
8052 substed = 0
8053 len = length(field[1])
8054 for (i = 2; i < nfields; i++) {
8055 key = field[i]
8056 keylen = length(key)
8057 if (S_is_set[key]) {
8058 value = S[key]
8059 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8060 len += length(value) + length(field[++i])
8061 substed = 1
8062 } else
8063 len += 1 + keylen
8066 print line
8069 _ACAWK
8070 _ACEOF
8071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8072 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8073 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8074 else
8076 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8077 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8078 _ACEOF
8080 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8081 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8082 # trailing colons and then remove the whole line if VPATH becomes empty
8083 # (actually we leave an empty line to preserve line numbers).
8084 if test "x$srcdir" = x.; then
8085 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8086 s/:*\$(srcdir):*/:/
8087 s/:*\${srcdir}:*/:/
8088 s/:*@srcdir@:*/:/
8089 s/^\([^=]*=[ ]*\):*/\1/
8090 s/:*$//
8091 s/^[^=]*=[ ]*$//
8095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8096 fi # test -n "$CONFIG_FILES"
8098 # Set up the scripts for CONFIG_HEADERS section.
8099 # No need to generate them if there are no CONFIG_HEADERS.
8100 # This happens for instance with `./config.status Makefile'.
8101 if test -n "$CONFIG_HEADERS"; then
8102 cat >"$tmp/defines.awk" <<\_ACAWK ||
8103 BEGIN {
8104 _ACEOF
8106 # Transform confdefs.h into an awk script `defines.awk', embedded as
8107 # here-document in config.status, that substitutes the proper values into
8108 # config.h.in to produce config.h.
8110 # Create a delimiter string that does not exist in confdefs.h, to ease
8111 # handling of long lines.
8112 ac_delim='%!_!# '
8113 for ac_last_try in false false :; do
8114 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8115 if test -z "$ac_t"; then
8116 break
8117 elif $ac_last_try; then
8118 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8119 else
8120 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8122 done
8124 # For the awk script, D is an array of macro values keyed by name,
8125 # likewise P contains macro parameters if any. Preserve backslash
8126 # newline sequences.
8128 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8129 sed -n '
8130 s/.\{148\}/&'"$ac_delim"'/g
8131 t rset
8132 :rset
8133 s/^[ ]*#[ ]*define[ ][ ]*/ /
8134 t def
8136 :def
8137 s/\\$//
8138 t bsnl
8139 s/["\\]/\\&/g
8140 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8141 D["\1"]=" \3"/p
8142 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8144 :bsnl
8145 s/["\\]/\\&/g
8146 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8147 D["\1"]=" \3\\\\\\n"\\/p
8148 t cont
8149 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8150 t cont
8152 :cont
8154 s/.\{148\}/&'"$ac_delim"'/g
8155 t clear
8156 :clear
8157 s/\\$//
8158 t bsnlc
8159 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8161 :bsnlc
8162 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8163 b cont
8164 ' <confdefs.h | sed '
8165 s/'"$ac_delim"'/"\\\
8166 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8169 for (key in D) D_is_set[key] = 1
8170 FS = "\a"
8172 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8173 line = \$ 0
8174 split(line, arg, " ")
8175 if (arg[1] == "#") {
8176 defundef = arg[2]
8177 mac1 = arg[3]
8178 } else {
8179 defundef = substr(arg[1], 2)
8180 mac1 = arg[2]
8182 split(mac1, mac2, "(") #)
8183 macro = mac2[1]
8184 prefix = substr(line, 1, index(line, defundef) - 1)
8185 if (D_is_set[macro]) {
8186 # Preserve the white space surrounding the "#".
8187 print prefix "define", macro P[macro] D[macro]
8188 next
8189 } else {
8190 # Replace #undef with comments. This is necessary, for example,
8191 # in the case of _POSIX_SOURCE, which is predefined and required
8192 # on some systems where configure will not decide to define it.
8193 if (defundef == "undef") {
8194 print "/*", prefix defundef, macro, "*/"
8195 next
8199 { print }
8200 _ACAWK
8201 _ACEOF
8202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8203 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8204 fi # test -n "$CONFIG_HEADERS"
8207 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8208 shift
8209 for ac_tag
8211 case $ac_tag in
8212 :[FHLC]) ac_mode=$ac_tag; continue;;
8213 esac
8214 case $ac_mode$ac_tag in
8215 :[FHL]*:*);;
8216 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8217 :[FH]-) ac_tag=-:-;;
8218 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8219 esac
8220 ac_save_IFS=$IFS
8221 IFS=:
8222 set x $ac_tag
8223 IFS=$ac_save_IFS
8224 shift
8225 ac_file=$1
8226 shift
8228 case $ac_mode in
8229 :L) ac_source=$1;;
8230 :[FH])
8231 ac_file_inputs=
8232 for ac_f
8234 case $ac_f in
8235 -) ac_f="$tmp/stdin";;
8236 *) # Look for the file first in the build tree, then in the source tree
8237 # (if the path is not absolute). The absolute path cannot be DOS-style,
8238 # because $ac_f cannot contain `:'.
8239 test -f "$ac_f" ||
8240 case $ac_f in
8241 [\\/$]*) false;;
8242 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8243 esac ||
8244 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8245 esac
8246 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8247 as_fn_append ac_file_inputs " '$ac_f'"
8248 done
8250 # Let's still pretend it is `configure' which instantiates (i.e., don't
8251 # use $as_me), people would be surprised to read:
8252 # /* config.h. Generated by config.status. */
8253 configure_input='Generated from '`
8254 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8255 `' by configure.'
8256 if test x"$ac_file" != x-; then
8257 configure_input="$ac_file. $configure_input"
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8259 $as_echo "$as_me: creating $ac_file" >&6;}
8261 # Neutralize special characters interpreted by sed in replacement strings.
8262 case $configure_input in #(
8263 *\&* | *\|* | *\\* )
8264 ac_sed_conf_input=`$as_echo "$configure_input" |
8265 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8266 *) ac_sed_conf_input=$configure_input;;
8267 esac
8269 case $ac_tag in
8270 *:-:* | *:-) cat >"$tmp/stdin" \
8271 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8272 esac
8274 esac
8276 ac_dir=`$as_dirname -- "$ac_file" ||
8277 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8278 X"$ac_file" : 'X\(//\)[^/]' \| \
8279 X"$ac_file" : 'X\(//\)$' \| \
8280 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8281 $as_echo X"$ac_file" |
8282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8283 s//\1/
8286 /^X\(\/\/\)[^/].*/{
8287 s//\1/
8290 /^X\(\/\/\)$/{
8291 s//\1/
8294 /^X\(\/\).*/{
8295 s//\1/
8298 s/.*/./; q'`
8299 as_dir="$ac_dir"; as_fn_mkdir_p
8300 ac_builddir=.
8302 case "$ac_dir" in
8303 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8305 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8306 # A ".." for each directory in $ac_dir_suffix.
8307 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8308 case $ac_top_builddir_sub in
8309 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8310 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8311 esac ;;
8312 esac
8313 ac_abs_top_builddir=$ac_pwd
8314 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8315 # for backward compatibility:
8316 ac_top_builddir=$ac_top_build_prefix
8318 case $srcdir in
8319 .) # We are building in place.
8320 ac_srcdir=.
8321 ac_top_srcdir=$ac_top_builddir_sub
8322 ac_abs_top_srcdir=$ac_pwd ;;
8323 [\\/]* | ?:[\\/]* ) # Absolute name.
8324 ac_srcdir=$srcdir$ac_dir_suffix;
8325 ac_top_srcdir=$srcdir
8326 ac_abs_top_srcdir=$srcdir ;;
8327 *) # Relative name.
8328 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8329 ac_top_srcdir=$ac_top_build_prefix$srcdir
8330 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8331 esac
8332 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8335 case $ac_mode in
8338 # CONFIG_FILE
8341 case $INSTALL in
8342 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8343 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8344 esac
8345 _ACEOF
8347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8348 # If the template does not know about datarootdir, expand it.
8349 # FIXME: This hack should be removed a few years after 2.60.
8350 ac_datarootdir_hack=; ac_datarootdir_seen=
8351 ac_sed_dataroot='
8352 /datarootdir/ {
8356 /@datadir@/p
8357 /@docdir@/p
8358 /@infodir@/p
8359 /@localedir@/p
8360 /@mandir@/p'
8361 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8362 *datarootdir*) ac_datarootdir_seen=yes;;
8363 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8365 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8366 _ACEOF
8367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8368 ac_datarootdir_hack='
8369 s&@datadir@&$datadir&g
8370 s&@docdir@&$docdir&g
8371 s&@infodir@&$infodir&g
8372 s&@localedir@&$localedir&g
8373 s&@mandir@&$mandir&g
8374 s&\\\${datarootdir}&$datarootdir&g' ;;
8375 esac
8376 _ACEOF
8378 # Neutralize VPATH when `$srcdir' = `.'.
8379 # Shell code in configure.ac might set extrasub.
8380 # FIXME: do we really want to maintain this feature?
8381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8382 ac_sed_extra="$ac_vpsub
8383 $extrasub
8384 _ACEOF
8385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8387 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8388 s|@configure_input@|$ac_sed_conf_input|;t t
8389 s&@top_builddir@&$ac_top_builddir_sub&;t t
8390 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8391 s&@srcdir@&$ac_srcdir&;t t
8392 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8393 s&@top_srcdir@&$ac_top_srcdir&;t t
8394 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8395 s&@builddir@&$ac_builddir&;t t
8396 s&@abs_builddir@&$ac_abs_builddir&;t t
8397 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8398 s&@INSTALL@&$ac_INSTALL&;t t
8399 $ac_datarootdir_hack
8401 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8402 || as_fn_error "could not create $ac_file" "$LINENO" 5
8404 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8405 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8406 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8408 which seems to be undefined. Please make sure it is defined." >&5
8409 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8410 which seems to be undefined. Please make sure it is defined." >&2;}
8412 rm -f "$tmp/stdin"
8413 case $ac_file in
8414 -) cat "$tmp/out" && rm -f "$tmp/out";;
8415 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8416 esac \
8417 || as_fn_error "could not create $ac_file" "$LINENO" 5
8421 # CONFIG_HEADER
8423 if test x"$ac_file" != x-; then
8425 $as_echo "/* $configure_input */" \
8426 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8427 } >"$tmp/config.h" \
8428 || as_fn_error "could not create $ac_file" "$LINENO" 5
8429 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8431 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8432 else
8433 rm -f "$ac_file"
8434 mv "$tmp/config.h" "$ac_file" \
8435 || as_fn_error "could not create $ac_file" "$LINENO" 5
8437 else
8438 $as_echo "/* $configure_input */" \
8439 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8440 || as_fn_error "could not create -" "$LINENO" 5
8444 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8445 $as_echo "$as_me: executing $ac_file commands" >&6;}
8447 esac
8450 case $ac_file$ac_mode in
8451 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8452 "config.h":H) echo timestamp > stamp-h1 ;;
8454 esac
8455 done # for ac_tag
8458 as_fn_exit 0
8459 _ACEOF
8460 ac_clean_files=$ac_clean_files_save
8462 test $ac_write_fail = 0 ||
8463 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8466 # configure is writing to config.log, and then calls config.status.
8467 # config.status does its own redirection, appending to config.log.
8468 # Unfortunately, on DOS this fails, as config.log is still kept open
8469 # by configure, so config.status won't be able to write to it; its
8470 # output is simply discarded. So we exec the FD to /dev/null,
8471 # effectively closing config.log, so it can be properly (re)opened and
8472 # appended to by config.status. When coming back to configure, we
8473 # need to make the FD available again.
8474 if test "$no_create" != yes; then
8475 ac_cs_success=:
8476 ac_config_status_args=
8477 test "$silent" = yes &&
8478 ac_config_status_args="$ac_config_status_args --quiet"
8479 exec 5>/dev/null
8480 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8481 exec 5>>config.log
8482 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8483 # would make configure fail if this is the last instruction.
8484 $ac_cs_success || as_fn_exit $?
8486 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8488 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}