* include/ext/array_allocator.h: Replace uses of
[official-gcc.git] / libcpp / configure
blobd07aed3199c979ee8b0e289476a36ef51efca633
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 enable expensive run-time checks
1337 --enable-canonical-system-headers
1338 enable or disable system headers canonicalization
1340 Optional Packages:
1341 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1342 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1343 --with-gnu-ld assume the C compiler uses GNU ld default=no
1344 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1345 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1347 Some influential environment variables:
1348 CC C compiler command
1349 CFLAGS C compiler flags
1350 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1351 nonstandard directory <lib dir>
1352 LIBS libraries to pass to the linker, e.g. -l<library>
1353 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1354 you have headers in a nonstandard directory <include dir>
1355 CXX C++ compiler command
1356 CXXFLAGS C++ compiler flags
1357 CPP C preprocessor
1359 Use these variables to override the choices made by `configure' or to help
1360 it to find libraries and programs with nonstandard names/locations.
1362 Report bugs to <gcc-bugs@gcc.gnu.org>.
1363 _ACEOF
1364 ac_status=$?
1367 if test "$ac_init_help" = "recursive"; then
1368 # If there are subdirs, report their specific --help.
1369 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1370 test -d "$ac_dir" ||
1371 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1372 continue
1373 ac_builddir=.
1375 case "$ac_dir" in
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 esac ;;
1385 esac
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1391 case $srcdir in
1392 .) # We are building in place.
1393 ac_srcdir=.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1400 *) # Relative name.
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 esac
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1413 echo &&
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1415 else
1416 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 fi || ac_status=$?
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1419 done
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1424 cat <<\_ACEOF
1425 cpplib configure
1426 generated by GNU Autoconf 2.64
1428 Copyright (C) 2009 Free Software Foundation, Inc.
1429 This configure script is free software; the Free Software Foundation
1430 gives unlimited permission to copy, distribute and modify it.
1431 _ACEOF
1432 exit
1435 ## ------------------------ ##
1436 ## Autoconf initialization. ##
1437 ## ------------------------ ##
1439 # ac_fn_c_try_compile LINENO
1440 # --------------------------
1441 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1442 ac_fn_c_try_compile ()
1444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1445 rm -f conftest.$ac_objext
1446 if { { ac_try="$ac_compile"
1447 case "(($ac_try" in
1448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1449 *) ac_try_echo=$ac_try;;
1450 esac
1451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1452 $as_echo "$ac_try_echo"; } >&5
1453 (eval "$ac_compile") 2>conftest.err
1454 ac_status=$?
1455 if test -s conftest.err; then
1456 grep -v '^ *+' conftest.err >conftest.er1
1457 cat conftest.er1 >&5
1458 mv -f conftest.er1 conftest.err
1460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1461 test $ac_status = 0; } && {
1462 test -z "$ac_c_werror_flag" ||
1463 test ! -s conftest.err
1464 } && test -s conftest.$ac_objext; then :
1465 ac_retval=0
1466 else
1467 $as_echo "$as_me: failed program was:" >&5
1468 sed 's/^/| /' conftest.$ac_ext >&5
1470 ac_retval=1
1472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1473 return $ac_retval
1475 } # ac_fn_c_try_compile
1477 # ac_fn_cxx_try_compile LINENO
1478 # ----------------------------
1479 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1480 ac_fn_cxx_try_compile ()
1482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483 rm -f conftest.$ac_objext
1484 if { { ac_try="$ac_compile"
1485 case "(($ac_try" in
1486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487 *) ac_try_echo=$ac_try;;
1488 esac
1489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490 $as_echo "$ac_try_echo"; } >&5
1491 (eval "$ac_compile") 2>conftest.err
1492 ac_status=$?
1493 if test -s conftest.err; then
1494 grep -v '^ *+' conftest.err >conftest.er1
1495 cat conftest.er1 >&5
1496 mv -f conftest.er1 conftest.err
1498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499 test $ac_status = 0; } && {
1500 test -z "$ac_cxx_werror_flag" ||
1501 test ! -s conftest.err
1502 } && test -s conftest.$ac_objext; then :
1503 ac_retval=0
1504 else
1505 $as_echo "$as_me: failed program was:" >&5
1506 sed 's/^/| /' conftest.$ac_ext >&5
1508 ac_retval=1
1510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1511 return $ac_retval
1513 } # ac_fn_cxx_try_compile
1515 # ac_fn_c_try_cpp LINENO
1516 # ----------------------
1517 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_cpp ()
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 if { { ac_try="$ac_cpp conftest.$ac_ext"
1522 case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525 esac
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1529 ac_status=$?
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } >/dev/null && {
1537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 }; then :
1540 ac_retval=0
1541 else
1542 $as_echo "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1545 ac_retval=1
1547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1548 return $ac_retval
1550 } # ac_fn_c_try_cpp
1552 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1553 # -------------------------------------------------------
1554 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1555 # the include files in INCLUDES and setting the cache variable VAR
1556 # accordingly.
1557 ac_fn_c_check_header_mongrel ()
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1562 $as_echo_n "checking for $2... " >&6; }
1563 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1564 $as_echo_n "(cached) " >&6
1566 eval ac_res=\$$3
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1568 $as_echo "$ac_res" >&6; }
1569 else
1570 # Is the header compilable?
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1572 $as_echo_n "checking $2 usability... " >&6; }
1573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574 /* end confdefs.h. */
1576 #include <$2>
1577 _ACEOF
1578 if ac_fn_c_try_compile "$LINENO"; then :
1579 ac_header_compiler=yes
1580 else
1581 ac_header_compiler=no
1583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1585 $as_echo "$ac_header_compiler" >&6; }
1587 # Is the header present?
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1589 $as_echo_n "checking $2 presence... " >&6; }
1590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1591 /* end confdefs.h. */
1592 #include <$2>
1593 _ACEOF
1594 if ac_fn_c_try_cpp "$LINENO"; then :
1595 ac_header_preproc=yes
1596 else
1597 ac_header_preproc=no
1599 rm -f conftest.err conftest.$ac_ext
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1601 $as_echo "$ac_header_preproc" >&6; }
1603 # So? What about this header?
1604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1605 yes:no: )
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1607 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1609 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1611 no:yes:* )
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1613 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1615 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1617 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1619 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1621 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1622 ( cat <<\_ASBOX
1623 ## ----------------------------------- ##
1624 ## Report this to gcc-bugs@gcc.gnu.org ##
1625 ## ----------------------------------- ##
1626 _ASBOX
1627 ) | sed "s/^/$as_me: WARNING: /" >&2
1629 esac
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631 $as_echo_n "checking for $2... " >&6; }
1632 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1633 $as_echo_n "(cached) " >&6
1634 else
1635 eval "$3=\$ac_header_compiler"
1637 eval ac_res=\$$3
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639 $as_echo "$ac_res" >&6; }
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 } # ac_fn_c_check_header_mongrel
1645 # ac_fn_c_try_run LINENO
1646 # ----------------------
1647 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1648 # that executables *can* be run.
1649 ac_fn_c_try_run ()
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if { { ac_try="$ac_link"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_link") 2>&5
1660 ac_status=$?
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1663 { { case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_try") 2>&5
1670 ac_status=$?
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; }; }; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: program exited with status $ac_status" >&5
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1679 ac_retval=$ac_status
1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1683 return $ac_retval
1685 } # ac_fn_c_try_run
1687 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1688 # -------------------------------------------------------
1689 # Tests whether HEADER exists and can be compiled using the include files in
1690 # INCLUDES, setting the cache variable VAR accordingly.
1691 ac_fn_c_check_header_compile ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1697 $as_echo_n "(cached) " >&6
1698 else
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_compile "$LINENO"; then :
1705 eval "$3=yes"
1706 else
1707 eval "$3=no"
1709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711 eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 $as_echo "$ac_res" >&6; }
1714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716 } # ac_fn_c_check_header_compile
1718 # ac_fn_c_try_link LINENO
1719 # -----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_link ()
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext conftest$ac_exeext
1725 if { { ac_try="$ac_link"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest$ac_exeext && {
1744 test "$cross_compiling" = yes ||
1745 $as_test_x conftest$ac_exeext
1746 }; then :
1747 ac_retval=0
1748 else
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1752 ac_retval=1
1754 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1755 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1756 # interfere with the next link command; also delete a directory that is
1757 # left behind by Apple's compiler. We do this before executing the actions.
1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 return $ac_retval
1762 } # ac_fn_c_try_link
1764 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1765 # -------------------------------------------
1766 # Tests whether TYPE exists after having included INCLUDES, setting cache
1767 # variable VAR accordingly.
1768 ac_fn_c_check_type ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1774 $as_echo_n "(cached) " >&6
1775 else
1776 eval "$3=no"
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1781 main ()
1783 if (sizeof ($2))
1784 return 0;
1786 return 0;
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1794 main ()
1796 if (sizeof (($2)))
1797 return 0;
1799 return 0;
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"; then :
1804 else
1805 eval "$3=yes"
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 } # ac_fn_c_check_type
1818 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1819 # --------------------------------------------
1820 # Tries to find the compile-time value of EXPR in a program that includes
1821 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1822 # computed
1823 ac_fn_c_compute_int ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if test "$cross_compiling" = yes; then
1827 # Depending upon the size, compute the lo and hi bounds.
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1832 main ()
1834 static int test_array [1 - 2 * !(($2) >= 0)];
1835 test_array [0] = 0
1838 return 0;
1840 _ACEOF
1841 if ac_fn_c_try_compile "$LINENO"; then :
1842 ac_lo=0 ac_mid=0
1843 while :; do
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1848 main ()
1850 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1851 test_array [0] = 0
1854 return 0;
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858 ac_hi=$ac_mid; break
1859 else
1860 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1861 if test $ac_lo -le $ac_mid; then
1862 ac_lo= ac_hi=
1863 break
1865 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 done
1869 else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1874 main ()
1876 static int test_array [1 - 2 * !(($2) < 0)];
1877 test_array [0] = 0
1880 return 0;
1882 _ACEOF
1883 if ac_fn_c_try_compile "$LINENO"; then :
1884 ac_hi=-1 ac_mid=-1
1885 while :; do
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1890 main ()
1892 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1893 test_array [0] = 0
1896 return 0;
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900 ac_lo=$ac_mid; break
1901 else
1902 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1903 if test $ac_mid -le $ac_hi; then
1904 ac_lo= ac_hi=
1905 break
1907 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 done
1911 else
1912 ac_lo= ac_hi=
1914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 # Binary search between lo and hi bounds.
1918 while test "x$ac_lo" != "x$ac_hi"; do
1919 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1924 main ()
1926 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1927 test_array [0] = 0
1930 return 0;
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 ac_hi=$ac_mid
1935 else
1936 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 done
1940 case $ac_lo in #((
1941 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1942 '') ac_retval=1 ;;
1943 esac
1944 else
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1948 static long int longval () { return $2; }
1949 static unsigned long int ulongval () { return $2; }
1950 #include <stdio.h>
1951 #include <stdlib.h>
1953 main ()
1956 FILE *f = fopen ("conftest.val", "w");
1957 if (! f)
1958 return 1;
1959 if (($2) < 0)
1961 long int i = longval ();
1962 if (i != ($2))
1963 return 1;
1964 fprintf (f, "%ld", i);
1966 else
1968 unsigned long int i = ulongval ();
1969 if (i != ($2))
1970 return 1;
1971 fprintf (f, "%lu", i);
1973 /* Do not output a trailing newline, as this causes \r\n confusion
1974 on some platforms. */
1975 return ferror (f) || fclose (f) != 0;
1978 return 0;
1980 _ACEOF
1981 if ac_fn_c_try_run "$LINENO"; then :
1982 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1983 else
1984 ac_retval=1
1986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1987 conftest.$ac_objext conftest.beam conftest.$ac_ext
1988 rm -f conftest.val
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 return $ac_retval
1994 } # ac_fn_c_compute_int
1996 # ac_fn_c_check_func LINENO FUNC VAR
1997 # ----------------------------------
1998 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1999 ac_fn_c_check_func ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005 $as_echo_n "(cached) " >&6
2006 else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2009 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2011 #define $2 innocuous_$2
2013 /* System header to define __stub macros and hopefully few prototypes,
2014 which can conflict with char $2 (); below.
2015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2016 <limits.h> exists even on freestanding compilers. */
2018 #ifdef __STDC__
2019 # include <limits.h>
2020 #else
2021 # include <assert.h>
2022 #endif
2024 #undef $2
2026 /* Override any GCC internal prototype to avoid an error.
2027 Use char because int might match the return type of a GCC
2028 builtin and then its argument prototype would still apply. */
2029 #ifdef __cplusplus
2030 extern "C"
2031 #endif
2032 char $2 ();
2033 /* The GNU C library defines this for functions which it implements
2034 to always fail with ENOSYS. Some functions are actually named
2035 something starting with __ and the normal name is an alias. */
2036 #if defined __stub_$2 || defined __stub___$2
2037 choke me
2038 #endif
2041 main ()
2043 return $2 ();
2045 return 0;
2047 _ACEOF
2048 if ac_fn_c_try_link "$LINENO"; then :
2049 eval "$3=yes"
2050 else
2051 eval "$3=no"
2053 rm -f core conftest.err conftest.$ac_objext \
2054 conftest$ac_exeext conftest.$ac_ext
2056 eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2061 } # ac_fn_c_check_func
2063 # ac_fn_c_check_decl LINENO SYMBOL VAR
2064 # ------------------------------------
2065 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2066 ac_fn_c_check_decl ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 as_decl_name=`echo $2|sed 's/ *(.*//'`
2070 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2072 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2073 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2080 main ()
2082 #ifndef $as_decl_name
2083 #ifdef __cplusplus
2084 (void) $as_decl_use;
2085 #else
2086 (void) $as_decl_name;
2087 #endif
2088 #endif
2091 return 0;
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 eval "$3=yes"
2096 else
2097 eval "$3=no"
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2106 } # ac_fn_c_check_decl
2108 # ac_fn_cxx_try_link LINENO
2109 # -------------------------
2110 # Try to link conftest.$ac_ext, and return whether this succeeded.
2111 ac_fn_cxx_try_link ()
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 rm -f conftest.$ac_objext conftest$ac_exeext
2115 if { { ac_try="$ac_link"
2116 case "(($ac_try" in
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2119 esac
2120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121 $as_echo "$ac_try_echo"; } >&5
2122 (eval "$ac_link") 2>conftest.err
2123 ac_status=$?
2124 if test -s conftest.err; then
2125 grep -v '^ *+' conftest.err >conftest.er1
2126 cat conftest.er1 >&5
2127 mv -f conftest.er1 conftest.err
2129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130 test $ac_status = 0; } && {
2131 test -z "$ac_cxx_werror_flag" ||
2132 test ! -s conftest.err
2133 } && test -s conftest$ac_exeext && {
2134 test "$cross_compiling" = yes ||
2135 $as_test_x conftest$ac_exeext
2136 }; then :
2137 ac_retval=0
2138 else
2139 $as_echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2142 ac_retval=1
2144 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2145 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2146 # interfere with the next link command; also delete a directory that is
2147 # left behind by Apple's compiler. We do this before executing the actions.
2148 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150 return $ac_retval
2152 } # ac_fn_cxx_try_link
2153 cat >config.log <<_ACEOF
2154 This file contains any messages produced by compilers while
2155 running configure, to aid debugging if configure makes a mistake.
2157 It was created by cpplib $as_me , which was
2158 generated by GNU Autoconf 2.64. Invocation command line was
2160 $ $0 $@
2162 _ACEOF
2163 exec 5>>config.log
2165 cat <<_ASUNAME
2166 ## --------- ##
2167 ## Platform. ##
2168 ## --------- ##
2170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2182 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2187 _ASUNAME
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 $as_echo "PATH: $as_dir"
2195 done
2196 IFS=$as_save_IFS
2198 } >&5
2200 cat >&5 <<_ACEOF
2203 ## ----------- ##
2204 ## Core tests. ##
2205 ## ----------- ##
2207 _ACEOF
2210 # Keep a trace of the command line.
2211 # Strip out --no-create and --no-recursion so they do not pile up.
2212 # Strip out --silent because we don't want to record it for future runs.
2213 # Also quote any args containing shell meta-characters.
2214 # Make two passes to allow for proper duplicate-argument suppression.
2215 ac_configure_args=
2216 ac_configure_args0=
2217 ac_configure_args1=
2218 ac_must_keep_next=false
2219 for ac_pass in 1 2
2221 for ac_arg
2223 case $ac_arg in
2224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2226 | -silent | --silent | --silen | --sile | --sil)
2227 continue ;;
2228 *\'*)
2229 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2230 esac
2231 case $ac_pass in
2232 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2234 as_fn_append ac_configure_args1 " '$ac_arg'"
2235 if test $ac_must_keep_next = true; then
2236 ac_must_keep_next=false # Got value, back to normal.
2237 else
2238 case $ac_arg in
2239 *=* | --config-cache | -C | -disable-* | --disable-* \
2240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2242 | -with-* | --with-* | -without-* | --without-* | --x)
2243 case "$ac_configure_args0 " in
2244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2245 esac
2247 -* ) ac_must_keep_next=true ;;
2248 esac
2250 as_fn_append ac_configure_args " '$ac_arg'"
2252 esac
2253 done
2254 done
2255 { ac_configure_args0=; unset ac_configure_args0;}
2256 { ac_configure_args1=; unset ac_configure_args1;}
2258 # When interrupted or exit'd, cleanup temporary files, and complete
2259 # config.log. We remove comments because anyway the quotes in there
2260 # would cause problems or look ugly.
2261 # WARNING: Use '\'' to represent an apostrophe within the trap.
2262 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2263 trap 'exit_status=$?
2264 # Save into config.log some information that might help in debugging.
2266 echo
2268 cat <<\_ASBOX
2269 ## ---------------- ##
2270 ## Cache variables. ##
2271 ## ---------------- ##
2272 _ASBOX
2273 echo
2274 # The following way of writing the cache mishandles newlines in values,
2276 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2277 eval ac_val=\$$ac_var
2278 case $ac_val in #(
2279 *${as_nl}*)
2280 case $ac_var in #(
2281 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2282 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2283 esac
2284 case $ac_var in #(
2285 _ | IFS | as_nl) ;; #(
2286 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2287 *) { eval $ac_var=; unset $ac_var;} ;;
2288 esac ;;
2289 esac
2290 done
2291 (set) 2>&1 |
2292 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2293 *${as_nl}ac_space=\ *)
2294 sed -n \
2295 "s/'\''/'\''\\\\'\'''\''/g;
2296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2297 ;; #(
2299 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2301 esac |
2302 sort
2304 echo
2306 cat <<\_ASBOX
2307 ## ----------------- ##
2308 ## Output variables. ##
2309 ## ----------------- ##
2310 _ASBOX
2311 echo
2312 for ac_var in $ac_subst_vars
2314 eval ac_val=\$$ac_var
2315 case $ac_val in
2316 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317 esac
2318 $as_echo "$ac_var='\''$ac_val'\''"
2319 done | sort
2320 echo
2322 if test -n "$ac_subst_files"; then
2323 cat <<\_ASBOX
2324 ## ------------------- ##
2325 ## File substitutions. ##
2326 ## ------------------- ##
2327 _ASBOX
2328 echo
2329 for ac_var in $ac_subst_files
2331 eval ac_val=\$$ac_var
2332 case $ac_val in
2333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 esac
2335 $as_echo "$ac_var='\''$ac_val'\''"
2336 done | sort
2337 echo
2340 if test -s confdefs.h; then
2341 cat <<\_ASBOX
2342 ## ----------- ##
2343 ## confdefs.h. ##
2344 ## ----------- ##
2345 _ASBOX
2346 echo
2347 cat confdefs.h
2348 echo
2350 test "$ac_signal" != 0 &&
2351 $as_echo "$as_me: caught signal $ac_signal"
2352 $as_echo "$as_me: exit $exit_status"
2353 } >&5
2354 rm -f core *.core core.conftest.* &&
2355 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2356 exit $exit_status
2358 for ac_signal in 1 2 13 15; do
2359 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2360 done
2361 ac_signal=0
2363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2364 rm -f -r conftest* confdefs.h
2366 $as_echo "/* confdefs.h */" > confdefs.h
2368 # Predefined preprocessor variables.
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_NAME "$PACKAGE_NAME"
2372 _ACEOF
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2376 _ACEOF
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2380 _ACEOF
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_STRING "$PACKAGE_STRING"
2384 _ACEOF
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2388 _ACEOF
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_URL "$PACKAGE_URL"
2392 _ACEOF
2395 # Let the site file select an alternate cache file if it wants to.
2396 # Prefer an explicitly selected file to automatically selected ones.
2397 ac_site_file1=NONE
2398 ac_site_file2=NONE
2399 if test -n "$CONFIG_SITE"; then
2400 ac_site_file1=$CONFIG_SITE
2401 elif test "x$prefix" != xNONE; then
2402 ac_site_file1=$prefix/share/config.site
2403 ac_site_file2=$prefix/etc/config.site
2404 else
2405 ac_site_file1=$ac_default_prefix/share/config.site
2406 ac_site_file2=$ac_default_prefix/etc/config.site
2408 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2410 test "x$ac_site_file" = xNONE && continue
2411 if test -r "$ac_site_file"; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2413 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2414 sed 's/^/| /' "$ac_site_file" >&5
2415 . "$ac_site_file"
2417 done
2419 if test -r "$cache_file"; then
2420 # Some versions of bash will fail to source /dev/null (special
2421 # files actually), so we avoid doing that.
2422 if test -f "$cache_file"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2424 $as_echo "$as_me: loading cache $cache_file" >&6;}
2425 case $cache_file in
2426 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2427 *) . "./$cache_file";;
2428 esac
2430 else
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2432 $as_echo "$as_me: creating cache $cache_file" >&6;}
2433 >$cache_file
2436 # Check that the precious variables saved in the cache have kept the same
2437 # value.
2438 ac_cache_corrupted=false
2439 for ac_var in $ac_precious_vars; do
2440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2441 eval ac_new_set=\$ac_env_${ac_var}_set
2442 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2443 eval ac_new_val=\$ac_env_${ac_var}_value
2444 case $ac_old_set,$ac_new_set in
2445 set,)
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2447 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2448 ac_cache_corrupted=: ;;
2449 ,set)
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2451 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2452 ac_cache_corrupted=: ;;
2453 ,);;
2455 if test "x$ac_old_val" != "x$ac_new_val"; then
2456 # differences in whitespace do not lead to failure.
2457 ac_old_val_w=`echo x $ac_old_val`
2458 ac_new_val_w=`echo x $ac_new_val`
2459 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2461 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2462 ac_cache_corrupted=:
2463 else
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2465 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2466 eval $ac_var=\$ac_old_val
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2469 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2471 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2472 fi;;
2473 esac
2474 # Pass precious variables to config.status.
2475 if test "$ac_new_set" = set; then
2476 case $ac_new_val in
2477 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2478 *) ac_arg=$ac_var=$ac_new_val ;;
2479 esac
2480 case " $ac_configure_args " in
2481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2482 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2483 esac
2485 done
2486 if $ac_cache_corrupted; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2490 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2491 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2493 ## -------------------- ##
2494 ## Main body of script. ##
2495 ## -------------------- ##
2497 ac_ext=c
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2509 ac_aux_dir=
2510 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2511 for ac_t in install-sh install.sh shtool; do
2512 if test -f "$ac_dir/$ac_t"; then
2513 ac_aux_dir=$ac_dir
2514 ac_install_sh="$ac_aux_dir/$ac_t -c"
2515 break 2
2517 done
2518 done
2519 if test -z "$ac_aux_dir"; then
2520 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2523 # These three variables are undocumented and unsupported,
2524 # and are intended to be withdrawn in a future Autoconf release.
2525 # They can cause serious problems if a builder's source tree is in a directory
2526 # whose full name contains unusual characters.
2527 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2528 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2529 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2532 # Make sure we can run config.sub.
2533 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2534 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2537 $as_echo_n "checking build system type... " >&6; }
2538 if test "${ac_cv_build+set}" = set; then :
2539 $as_echo_n "(cached) " >&6
2540 else
2541 ac_build_alias=$build_alias
2542 test "x$ac_build_alias" = x &&
2543 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2544 test "x$ac_build_alias" = x &&
2545 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2546 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2547 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2551 $as_echo "$ac_cv_build" >&6; }
2552 case $ac_cv_build in
2553 *-*-*) ;;
2554 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2555 esac
2556 build=$ac_cv_build
2557 ac_save_IFS=$IFS; IFS='-'
2558 set x $ac_cv_build
2559 shift
2560 build_cpu=$1
2561 build_vendor=$2
2562 shift; shift
2563 # Remember, the first character of IFS is used to create $*,
2564 # except with old shells:
2565 build_os=$*
2566 IFS=$ac_save_IFS
2567 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2571 $as_echo_n "checking host system type... " >&6; }
2572 if test "${ac_cv_host+set}" = set; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 if test "x$host_alias" = x; then
2576 ac_cv_host=$ac_cv_build
2577 else
2578 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2579 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2584 $as_echo "$ac_cv_host" >&6; }
2585 case $ac_cv_host in
2586 *-*-*) ;;
2587 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2588 esac
2589 host=$ac_cv_host
2590 ac_save_IFS=$IFS; IFS='-'
2591 set x $ac_cv_host
2592 shift
2593 host_cpu=$1
2594 host_vendor=$2
2595 shift; shift
2596 # Remember, the first character of IFS is used to create $*,
2597 # except with old shells:
2598 host_os=$*
2599 IFS=$ac_save_IFS
2600 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2604 $as_echo_n "checking target system type... " >&6; }
2605 if test "${ac_cv_target+set}" = set; then :
2606 $as_echo_n "(cached) " >&6
2607 else
2608 if test "x$target_alias" = x; then
2609 ac_cv_target=$ac_cv_host
2610 else
2611 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2612 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2617 $as_echo "$ac_cv_target" >&6; }
2618 case $ac_cv_target in
2619 *-*-*) ;;
2620 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2621 esac
2622 target=$ac_cv_target
2623 ac_save_IFS=$IFS; IFS='-'
2624 set x $ac_cv_target
2625 shift
2626 target_cpu=$1
2627 target_vendor=$2
2628 shift; shift
2629 # Remember, the first character of IFS is used to create $*,
2630 # except with old shells:
2631 target_os=$*
2632 IFS=$ac_save_IFS
2633 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2636 # The aliases save the names the user supplied, while $host etc.
2637 # will get canonicalized.
2638 test -n "$target_alias" &&
2639 test "$program_prefix$program_suffix$program_transform_name" = \
2640 NONENONEs,x,x, &&
2641 program_prefix=${target_alias}-
2644 # Checks for programs.
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2646 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2647 set x ${MAKE-make}
2648 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2649 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 cat >conftest.make <<\_ACEOF
2653 SHELL = /bin/sh
2654 all:
2655 @echo '@@@%%%=$(MAKE)=@@@%%%'
2656 _ACEOF
2657 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2658 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2659 *@@@%%%=?*=@@@%%%*)
2660 eval ac_cv_prog_make_${ac_make}_set=yes;;
2662 eval ac_cv_prog_make_${ac_make}_set=no;;
2663 esac
2664 rm -f conftest.make
2666 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2668 $as_echo "yes" >&6; }
2669 SET_MAKE=
2670 else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2673 SET_MAKE="MAKE=${MAKE-make}"
2676 # Find a good install program. We prefer a C program (faster),
2677 # so one script is as good as another. But avoid the broken or
2678 # incompatible versions:
2679 # SysV /etc/install, /usr/sbin/install
2680 # SunOS /usr/etc/install
2681 # IRIX /sbin/install
2682 # AIX /bin/install
2683 # AmigaOS /C/install, which installs bootblocks on floppy discs
2684 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2685 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2686 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2687 # OS/2's system install, which has a completely different semantic
2688 # ./install, which can be erroneously created by make from ./install.sh.
2689 # Reject install programs that cannot install multiple files.
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2691 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2692 if test -z "$INSTALL"; then
2693 if test "${ac_cv_path_install+set}" = set; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 # Account for people who put trailing slashes in PATH elements.
2702 case $as_dir/ in #((
2703 ./ | .// | /[cC]/* | \
2704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2705 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2706 /usr/ucb/* ) ;;
2708 # OSF1 and SCO ODT 3.0 have their own names for install.
2709 # Don't use installbsd from OSF since it installs stuff as root
2710 # by default.
2711 for ac_prog in ginstall scoinst install; do
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2714 if test $ac_prog = install &&
2715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716 # AIX install. It has an incompatible calling convention.
2718 elif test $ac_prog = install &&
2719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2720 # program-specific install script used by HP pwplus--don't use.
2722 else
2723 rm -rf conftest.one conftest.two conftest.dir
2724 echo one > conftest.one
2725 echo two > conftest.two
2726 mkdir conftest.dir
2727 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2728 test -s conftest.one && test -s conftest.two &&
2729 test -s conftest.dir/conftest.one &&
2730 test -s conftest.dir/conftest.two
2731 then
2732 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2733 break 3
2737 done
2738 done
2740 esac
2742 done
2743 IFS=$as_save_IFS
2745 rm -rf conftest.one conftest.two conftest.dir
2748 if test "${ac_cv_path_install+set}" = set; then
2749 INSTALL=$ac_cv_path_install
2750 else
2751 # As a last resort, use the slow shell script. Don't cache a
2752 # value for INSTALL within a source directory, because that will
2753 # break other packages using the cache if that directory is
2754 # removed, or if the value is a relative name.
2755 INSTALL=$ac_install_sh
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2759 $as_echo "$INSTALL" >&6; }
2761 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2762 # It thinks the first close brace ends the variable substitution.
2763 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2765 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2767 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2769 ac_ext=c
2770 ac_cpp='$CPP $CPPFLAGS'
2771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774 if test -n "$ac_tool_prefix"; then
2775 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2776 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778 $as_echo_n "checking for $ac_word... " >&6; }
2779 if test "${ac_cv_prog_CC+set}" = set; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2796 done
2797 done
2798 IFS=$as_save_IFS
2802 CC=$ac_cv_prog_CC
2803 if test -n "$CC"; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2805 $as_echo "$CC" >&6; }
2806 else
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 $as_echo "no" >&6; }
2813 if test -z "$ac_cv_prog_CC"; then
2814 ac_ct_CC=$CC
2815 # Extract the first word of "gcc", so it can be a program name with args.
2816 set dummy gcc; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 if test -n "$ac_ct_CC"; then
2823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832 ac_cv_prog_ac_ct_CC="gcc"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2836 done
2837 done
2838 IFS=$as_save_IFS
2842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2843 if test -n "$ac_ct_CC"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2845 $as_echo "$ac_ct_CC" >&6; }
2846 else
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2851 if test "x$ac_ct_CC" = x; then
2852 CC=""
2853 else
2854 case $cross_compiling:$ac_tool_warned in
2855 yes:)
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2858 ac_tool_warned=yes ;;
2859 esac
2860 CC=$ac_ct_CC
2862 else
2863 CC="$ac_cv_prog_CC"
2866 if test -z "$CC"; then
2867 if test -n "$ac_tool_prefix"; then
2868 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2869 set dummy ${ac_tool_prefix}cc; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if test "${ac_cv_prog_CC+set}" = set; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2885 ac_cv_prog_CC="${ac_tool_prefix}cc"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2889 done
2890 done
2891 IFS=$as_save_IFS
2895 CC=$ac_cv_prog_CC
2896 if test -n "$CC"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2898 $as_echo "$CC" >&6; }
2899 else
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2907 if test -z "$CC"; then
2908 # Extract the first word of "cc", so it can be a program name with args.
2909 set dummy cc; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if test "${ac_cv_prog_CC+set}" = set; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2917 else
2918 ac_prog_rejected=no
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2927 ac_prog_rejected=yes
2928 continue
2930 ac_cv_prog_CC="cc"
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2934 done
2935 done
2936 IFS=$as_save_IFS
2938 if test $ac_prog_rejected = yes; then
2939 # We found a bogon in the path, so make sure we never use it.
2940 set dummy $ac_cv_prog_CC
2941 shift
2942 if test $# != 0; then
2943 # We chose a different compiler from the bogus one.
2944 # However, it has the same basename, so the bogon will be chosen
2945 # first if we set CC to just the basename; use the full file name.
2946 shift
2947 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2952 CC=$ac_cv_prog_CC
2953 if test -n "$CC"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2955 $as_echo "$CC" >&6; }
2956 else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2963 if test -z "$CC"; then
2964 if test -n "$ac_tool_prefix"; then
2965 for ac_prog in cl.exe
2967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if test "${ac_cv_prog_CC+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
2973 else
2974 if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2988 done
2989 done
2990 IFS=$as_save_IFS
2994 CC=$ac_cv_prog_CC
2995 if test -n "$CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997 $as_echo "$CC" >&6; }
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3004 test -n "$CC" && break
3005 done
3007 if test -z "$CC"; then
3008 ac_ct_CC=$CC
3009 for ac_prog in cl.exe
3011 # Extract the first word of "$ac_prog", so it can be a program name with args.
3012 set dummy $ac_prog; ac_word=$2
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 $as_echo_n "checking for $ac_word... " >&6; }
3015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 if test -n "$ac_ct_CC"; then
3019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3020 else
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3028 ac_cv_prog_ac_ct_CC="$ac_prog"
3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3032 done
3033 done
3034 IFS=$as_save_IFS
3038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3039 if test -n "$ac_ct_CC"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3041 $as_echo "$ac_ct_CC" >&6; }
3042 else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3048 test -n "$ac_ct_CC" && break
3049 done
3051 if test "x$ac_ct_CC" = x; then
3052 CC=""
3053 else
3054 case $cross_compiling:$ac_tool_warned in
3055 yes:)
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3058 ac_tool_warned=yes ;;
3059 esac
3060 CC=$ac_ct_CC
3067 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3069 as_fn_error "no acceptable C compiler found in \$PATH
3070 See \`config.log' for more details." "$LINENO" 5; }
3072 # Provide some information about the compiler.
3073 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3074 set X $ac_compile
3075 ac_compiler=$2
3076 for ac_option in --version -v -V -qversion; do
3077 { { ac_try="$ac_compiler $ac_option >&5"
3078 case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081 esac
3082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083 $as_echo "$ac_try_echo"; } >&5
3084 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3085 ac_status=$?
3086 if test -s conftest.err; then
3087 sed '10a\
3088 ... rest of stderr output deleted ...
3089 10q' conftest.err >conftest.er1
3090 cat conftest.er1 >&5
3091 rm -f conftest.er1 conftest.err
3093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }
3095 done
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3101 main ()
3105 return 0;
3107 _ACEOF
3108 ac_clean_files_save=$ac_clean_files
3109 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3110 # Try to create an executable without -o first, disregard a.out.
3111 # It will help us diagnose broken compilers, and finding out an intuition
3112 # of exeext.
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3114 $as_echo_n "checking for C compiler default output file name... " >&6; }
3115 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3117 # The possible output files:
3118 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3120 ac_rmfiles=
3121 for ac_file in $ac_files
3123 case $ac_file in
3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3125 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3126 esac
3127 done
3128 rm -f $ac_rmfiles
3130 if { { ac_try="$ac_link_default"
3131 case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134 esac
3135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3136 $as_echo "$ac_try_echo"; } >&5
3137 (eval "$ac_link_default") 2>&5
3138 ac_status=$?
3139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3140 test $ac_status = 0; }; then :
3141 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3142 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3143 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3144 # so that the user can short-circuit this test for compilers unknown to
3145 # Autoconf.
3146 for ac_file in $ac_files ''
3148 test -f "$ac_file" || continue
3149 case $ac_file in
3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3152 [ab].out )
3153 # We found the default executable, but exeext='' is most
3154 # certainly right.
3155 break;;
3156 *.* )
3157 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3158 then :; else
3159 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3161 # We set ac_cv_exeext here because the later test for it is not
3162 # safe: cross compilers may not add the suffix if given an `-o'
3163 # argument, so we may need to know it at that point already.
3164 # Even if this section looks crufty: it has the advantage of
3165 # actually working.
3166 break;;
3168 break;;
3169 esac
3170 done
3171 test "$ac_cv_exeext" = no && ac_cv_exeext=
3173 else
3174 ac_file=''
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3177 $as_echo "$ac_file" >&6; }
3178 if test -z "$ac_file"; then :
3179 $as_echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 { as_fn_set_status 77
3185 as_fn_error "C compiler cannot create executables
3186 See \`config.log' for more details." "$LINENO" 5; }; }
3188 ac_exeext=$ac_cv_exeext
3190 # Check that the compiler produces executables we can run. If not, either
3191 # the compiler is broken, or we cross compile.
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3193 $as_echo_n "checking whether the C compiler works... " >&6; }
3194 # If not cross compiling, check that we can run a simple program.
3195 if test "$cross_compiling" != yes; then
3196 if { ac_try='./$ac_file'
3197 { { case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_try") 2>&5
3204 ac_status=$?
3205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }; }; then
3207 cross_compiling=no
3208 else
3209 if test "$cross_compiling" = maybe; then
3210 cross_compiling=yes
3211 else
3212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 as_fn_error "cannot run C compiled programs.
3215 If you meant to cross compile, use \`--host'.
3216 See \`config.log' for more details." "$LINENO" 5; }
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3221 $as_echo "yes" >&6; }
3223 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3224 ac_clean_files=$ac_clean_files_save
3225 # Check that the compiler produces executables we can run. If not, either
3226 # the compiler is broken, or we cross compile.
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3228 $as_echo_n "checking whether we are cross compiling... " >&6; }
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3230 $as_echo "$cross_compiling" >&6; }
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3233 $as_echo_n "checking for suffix of executables... " >&6; }
3234 if { { ac_try="$ac_link"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_link") 2>&5
3242 ac_status=$?
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }; then :
3245 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3246 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3247 # work properly (i.e., refer to `conftest.exe'), while it won't with
3248 # `rm'.
3249 for ac_file in conftest.exe conftest conftest.*; do
3250 test -f "$ac_file" || continue
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3253 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254 break;;
3255 * ) break;;
3256 esac
3257 done
3258 else
3259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error "cannot compute suffix of executables: cannot compile and link
3262 See \`config.log' for more details." "$LINENO" 5; }
3264 rm -f conftest$ac_cv_exeext
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3266 $as_echo "$ac_cv_exeext" >&6; }
3268 rm -f conftest.$ac_ext
3269 EXEEXT=$ac_cv_exeext
3270 ac_exeext=$EXEEXT
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3272 $as_echo_n "checking for suffix of object files... " >&6; }
3273 if test "${ac_cv_objext+set}" = set; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3280 main ()
3284 return 0;
3286 _ACEOF
3287 rm -f conftest.o conftest.obj
3288 if { { ac_try="$ac_compile"
3289 case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292 esac
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_compile") 2>&5
3296 ac_status=$?
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }; then :
3299 for ac_file in conftest.o conftest.obj conftest.*; do
3300 test -f "$ac_file" || continue;
3301 case $ac_file in
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3303 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3304 break;;
3305 esac
3306 done
3307 else
3308 $as_echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error "cannot compute suffix of object files: cannot compile
3314 See \`config.log' for more details." "$LINENO" 5; }
3316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3319 $as_echo "$ac_cv_objext" >&6; }
3320 OBJEXT=$ac_cv_objext
3321 ac_objext=$OBJEXT
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3323 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3324 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3331 main ()
3333 #ifndef __GNUC__
3334 choke me
3335 #endif
3338 return 0;
3340 _ACEOF
3341 if ac_fn_c_try_compile "$LINENO"; then :
3342 ac_compiler_gnu=yes
3343 else
3344 ac_compiler_gnu=no
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3351 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3352 if test $ac_compiler_gnu = yes; then
3353 GCC=yes
3354 else
3355 GCC=
3357 ac_test_CFLAGS=${CFLAGS+set}
3358 ac_save_CFLAGS=$CFLAGS
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3360 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3361 if test "${ac_cv_prog_cc_g+set}" = set; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 ac_save_c_werror_flag=$ac_c_werror_flag
3365 ac_c_werror_flag=yes
3366 ac_cv_prog_cc_g=no
3367 CFLAGS="-g"
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3372 main ()
3376 return 0;
3378 _ACEOF
3379 if ac_fn_c_try_compile "$LINENO"; then :
3380 ac_cv_prog_cc_g=yes
3381 else
3382 CFLAGS=""
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3387 main ()
3391 return 0;
3393 _ACEOF
3394 if ac_fn_c_try_compile "$LINENO"; then :
3396 else
3397 ac_c_werror_flag=$ac_save_c_werror_flag
3398 CFLAGS="-g"
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3403 main ()
3407 return 0;
3409 _ACEOF
3410 if ac_fn_c_try_compile "$LINENO"; then :
3411 ac_cv_prog_cc_g=yes
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418 ac_c_werror_flag=$ac_save_c_werror_flag
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3421 $as_echo "$ac_cv_prog_cc_g" >&6; }
3422 if test "$ac_test_CFLAGS" = set; then
3423 CFLAGS=$ac_save_CFLAGS
3424 elif test $ac_cv_prog_cc_g = yes; then
3425 if test "$GCC" = yes; then
3426 CFLAGS="-g -O2"
3427 else
3428 CFLAGS="-g"
3430 else
3431 if test "$GCC" = yes; then
3432 CFLAGS="-O2"
3433 else
3434 CFLAGS=
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3438 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3439 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 ac_cv_prog_cc_c89=no
3443 ac_save_CC=$CC
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3446 #include <stdarg.h>
3447 #include <stdio.h>
3448 #include <sys/types.h>
3449 #include <sys/stat.h>
3450 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3451 struct buf { int x; };
3452 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3453 static char *e (p, i)
3454 char **p;
3455 int i;
3457 return p[i];
3459 static char *f (char * (*g) (char **, int), char **p, ...)
3461 char *s;
3462 va_list v;
3463 va_start (v,p);
3464 s = g (p, va_arg (v,int));
3465 va_end (v);
3466 return s;
3469 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3470 function prototypes and stuff, but not '\xHH' hex character constants.
3471 These don't provoke an error unfortunately, instead are silently treated
3472 as 'x'. The following induces an error, until -std is added to get
3473 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3474 array size at least. It's necessary to write '\x00'==0 to get something
3475 that's true only with -std. */
3476 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3478 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3479 inside strings and character constants. */
3480 #define FOO(x) 'x'
3481 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3483 int test (int i, double x);
3484 struct s1 {int (*f) (int a);};
3485 struct s2 {int (*f) (double a);};
3486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3487 int argc;
3488 char **argv;
3490 main ()
3492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3494 return 0;
3496 _ACEOF
3497 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3498 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3500 CC="$ac_save_CC $ac_arg"
3501 if ac_fn_c_try_compile "$LINENO"; then :
3502 ac_cv_prog_cc_c89=$ac_arg
3504 rm -f core conftest.err conftest.$ac_objext
3505 test "x$ac_cv_prog_cc_c89" != "xno" && break
3506 done
3507 rm -f conftest.$ac_ext
3508 CC=$ac_save_CC
3511 # AC_CACHE_VAL
3512 case "x$ac_cv_prog_cc_c89" in
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3515 $as_echo "none needed" >&6; } ;;
3516 xno)
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3518 $as_echo "unsupported" >&6; } ;;
3520 CC="$CC $ac_cv_prog_cc_c89"
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3522 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3523 esac
3524 if test "x$ac_cv_prog_cc_c89" != xno; then :
3528 ac_ext=c
3529 ac_cpp='$CPP $CPPFLAGS'
3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 ac_ext=cpp
3535 ac_cpp='$CXXCPP $CPPFLAGS'
3536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3539 if test -z "$CXX"; then
3540 if test -n "$CCC"; then
3541 CXX=$CCC
3542 else
3543 if test -n "$ac_tool_prefix"; then
3544 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_CXX+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 if test -n "$CXX"; then
3554 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3555 else
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 break 2
3567 done
3568 done
3569 IFS=$as_save_IFS
3573 CXX=$ac_cv_prog_CXX
3574 if test -n "$CXX"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3576 $as_echo "$CXX" >&6; }
3577 else
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3583 test -n "$CXX" && break
3584 done
3586 if test -z "$CXX"; then
3587 ac_ct_CXX=$CXX
3588 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3590 # Extract the first word of "$ac_prog", so it can be a program name with args.
3591 set dummy $ac_prog; ac_word=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 if test -n "$ac_ct_CXX"; then
3598 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3603 IFS=$as_save_IFS
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3607 ac_cv_prog_ac_ct_CXX="$ac_prog"
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 break 2
3611 done
3612 done
3613 IFS=$as_save_IFS
3617 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3618 if test -n "$ac_ct_CXX"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3620 $as_echo "$ac_ct_CXX" >&6; }
3621 else
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3627 test -n "$ac_ct_CXX" && break
3628 done
3630 if test "x$ac_ct_CXX" = x; then
3631 CXX="g++"
3632 else
3633 case $cross_compiling:$ac_tool_warned in
3634 yes:)
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3637 ac_tool_warned=yes ;;
3638 esac
3639 CXX=$ac_ct_CXX
3645 # Provide some information about the compiler.
3646 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3647 set X $ac_compile
3648 ac_compiler=$2
3649 for ac_option in --version -v -V -qversion; do
3650 { { ac_try="$ac_compiler $ac_option >&5"
3651 case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3658 ac_status=$?
3659 if test -s conftest.err; then
3660 sed '10a\
3661 ... rest of stderr output deleted ...
3662 10q' conftest.err >conftest.er1
3663 cat conftest.er1 >&5
3664 rm -f conftest.er1 conftest.err
3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667 test $ac_status = 0; }
3668 done
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3671 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3672 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3679 main ()
3681 #ifndef __GNUC__
3682 choke me
3683 #endif
3686 return 0;
3688 _ACEOF
3689 if ac_fn_cxx_try_compile "$LINENO"; then :
3690 ac_compiler_gnu=yes
3691 else
3692 ac_compiler_gnu=no
3694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3699 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3700 if test $ac_compiler_gnu = yes; then
3701 GXX=yes
3702 else
3703 GXX=
3705 ac_test_CXXFLAGS=${CXXFLAGS+set}
3706 ac_save_CXXFLAGS=$CXXFLAGS
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3708 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3709 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3713 ac_cxx_werror_flag=yes
3714 ac_cv_prog_cxx_g=no
3715 CXXFLAGS="-g"
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3720 main ()
3724 return 0;
3726 _ACEOF
3727 if ac_fn_cxx_try_compile "$LINENO"; then :
3728 ac_cv_prog_cxx_g=yes
3729 else
3730 CXXFLAGS=""
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3735 main ()
3739 return 0;
3741 _ACEOF
3742 if ac_fn_cxx_try_compile "$LINENO"; then :
3744 else
3745 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3746 CXXFLAGS="-g"
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3751 main ()
3755 return 0;
3757 _ACEOF
3758 if ac_fn_cxx_try_compile "$LINENO"; then :
3759 ac_cv_prog_cxx_g=yes
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3769 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3770 if test "$ac_test_CXXFLAGS" = set; then
3771 CXXFLAGS=$ac_save_CXXFLAGS
3772 elif test $ac_cv_prog_cxx_g = yes; then
3773 if test "$GXX" = yes; then
3774 CXXFLAGS="-g -O2"
3775 else
3776 CXXFLAGS="-g"
3778 else
3779 if test "$GXX" = yes; then
3780 CXXFLAGS="-O2"
3781 else
3782 CXXFLAGS=
3785 ac_ext=c
3786 ac_cpp='$CPP $CPPFLAGS'
3787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791 if test -n "$ac_tool_prefix"; then
3792 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3793 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 $as_echo_n "checking for $ac_word... " >&6; }
3796 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3797 $as_echo_n "(cached) " >&6
3798 else
3799 if test -n "$RANLIB"; then
3800 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3801 else
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 break 2
3813 done
3814 done
3815 IFS=$as_save_IFS
3819 RANLIB=$ac_cv_prog_RANLIB
3820 if test -n "$RANLIB"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3822 $as_echo "$RANLIB" >&6; }
3823 else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3830 if test -z "$ac_cv_prog_RANLIB"; then
3831 ac_ct_RANLIB=$RANLIB
3832 # Extract the first word of "ranlib", so it can be a program name with args.
3833 set dummy ranlib; ac_word=$2
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835 $as_echo_n "checking for $ac_word... " >&6; }
3836 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 if test -n "$ac_ct_RANLIB"; then
3840 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3841 else
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3845 IFS=$as_save_IFS
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3849 ac_cv_prog_ac_ct_RANLIB="ranlib"
3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 break 2
3853 done
3854 done
3855 IFS=$as_save_IFS
3859 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3860 if test -n "$ac_ct_RANLIB"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3862 $as_echo "$ac_ct_RANLIB" >&6; }
3863 else
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865 $as_echo "no" >&6; }
3868 if test "x$ac_ct_RANLIB" = x; then
3869 RANLIB=":"
3870 else
3871 case $cross_compiling:$ac_tool_warned in
3872 yes:)
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3875 ac_tool_warned=yes ;;
3876 esac
3877 RANLIB=$ac_ct_RANLIB
3879 else
3880 RANLIB="$ac_cv_prog_RANLIB"
3885 ac_ext=c
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3891 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3892 # On Suns, sometimes $CPP names a directory.
3893 if test -n "$CPP" && test -d "$CPP"; then
3894 CPP=
3896 if test -z "$CPP"; then
3897 if test "${ac_cv_prog_CPP+set}" = set; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 # Double quotes because CPP needs to be expanded
3901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3903 ac_preproc_ok=false
3904 for ac_c_preproc_warn_flag in '' yes
3906 # Use a header file that comes with gcc, so configuring glibc
3907 # with a fresh cross-compiler works.
3908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3909 # <limits.h> exists even on freestanding compilers.
3910 # On the NeXT, cc -E runs the code through the compiler's parser,
3911 # not just through cpp. "Syntax error" is here to catch this case.
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3914 #ifdef __STDC__
3915 # include <limits.h>
3916 #else
3917 # include <assert.h>
3918 #endif
3919 Syntax error
3920 _ACEOF
3921 if ac_fn_c_try_cpp "$LINENO"; then :
3923 else
3924 # Broken: fails on valid input.
3925 continue
3927 rm -f conftest.err conftest.$ac_ext
3929 # OK, works on sane cases. Now check whether nonexistent headers
3930 # can be detected and how.
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3933 #include <ac_nonexistent.h>
3934 _ACEOF
3935 if ac_fn_c_try_cpp "$LINENO"; then :
3936 # Broken: success on invalid input.
3937 continue
3938 else
3939 # Passes both tests.
3940 ac_preproc_ok=:
3941 break
3943 rm -f conftest.err conftest.$ac_ext
3945 done
3946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3947 rm -f conftest.err conftest.$ac_ext
3948 if $ac_preproc_ok; then :
3949 break
3952 done
3953 ac_cv_prog_CPP=$CPP
3956 CPP=$ac_cv_prog_CPP
3957 else
3958 ac_cv_prog_CPP=$CPP
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3961 $as_echo "$CPP" >&6; }
3962 ac_preproc_ok=false
3963 for ac_c_preproc_warn_flag in '' yes
3965 # Use a header file that comes with gcc, so configuring glibc
3966 # with a fresh cross-compiler works.
3967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3968 # <limits.h> exists even on freestanding compilers.
3969 # On the NeXT, cc -E runs the code through the compiler's parser,
3970 # not just through cpp. "Syntax error" is here to catch this case.
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3973 #ifdef __STDC__
3974 # include <limits.h>
3975 #else
3976 # include <assert.h>
3977 #endif
3978 Syntax error
3979 _ACEOF
3980 if ac_fn_c_try_cpp "$LINENO"; then :
3982 else
3983 # Broken: fails on valid input.
3984 continue
3986 rm -f conftest.err conftest.$ac_ext
3988 # OK, works on sane cases. Now check whether nonexistent headers
3989 # can be detected and how.
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992 #include <ac_nonexistent.h>
3993 _ACEOF
3994 if ac_fn_c_try_cpp "$LINENO"; then :
3995 # Broken: success on invalid input.
3996 continue
3997 else
3998 # Passes both tests.
3999 ac_preproc_ok=:
4000 break
4002 rm -f conftest.err conftest.$ac_ext
4004 done
4005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4006 rm -f conftest.err conftest.$ac_ext
4007 if $ac_preproc_ok; then :
4009 else
4010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4012 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4013 See \`config.log' for more details." "$LINENO" 5; }
4016 ac_ext=c
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4024 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4025 if test "${ac_cv_path_GREP+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
4027 else
4028 if test -z "$GREP"; then
4029 ac_path_GREP_found=false
4030 # Loop through the user's path and test for each of PROGNAME-LIST
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_prog in grep ggrep; do
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4039 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4040 # Check for GNU ac_path_GREP and select it if it is found.
4041 # Check for GNU $ac_path_GREP
4042 case `"$ac_path_GREP" --version 2>&1` in
4043 *GNU*)
4044 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4046 ac_count=0
4047 $as_echo_n 0123456789 >"conftest.in"
4048 while :
4050 cat "conftest.in" "conftest.in" >"conftest.tmp"
4051 mv "conftest.tmp" "conftest.in"
4052 cp "conftest.in" "conftest.nl"
4053 $as_echo 'GREP' >> "conftest.nl"
4054 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4056 as_fn_arith $ac_count + 1 && ac_count=$as_val
4057 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4058 # Best one so far, save it but keep looking for a better one
4059 ac_cv_path_GREP="$ac_path_GREP"
4060 ac_path_GREP_max=$ac_count
4062 # 10*(2^10) chars as input seems more than enough
4063 test $ac_count -gt 10 && break
4064 done
4065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4066 esac
4068 $ac_path_GREP_found && break 3
4069 done
4070 done
4071 done
4072 IFS=$as_save_IFS
4073 if test -z "$ac_cv_path_GREP"; then
4074 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4076 else
4077 ac_cv_path_GREP=$GREP
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4082 $as_echo "$ac_cv_path_GREP" >&6; }
4083 GREP="$ac_cv_path_GREP"
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4087 $as_echo_n "checking for egrep... " >&6; }
4088 if test "${ac_cv_path_EGREP+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4092 then ac_cv_path_EGREP="$GREP -E"
4093 else
4094 if test -z "$EGREP"; then
4095 ac_path_EGREP_found=false
4096 # Loop through the user's path and test for each of PROGNAME-LIST
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for ac_prog in egrep; do
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4105 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4106 # Check for GNU ac_path_EGREP and select it if it is found.
4107 # Check for GNU $ac_path_EGREP
4108 case `"$ac_path_EGREP" --version 2>&1` in
4109 *GNU*)
4110 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4112 ac_count=0
4113 $as_echo_n 0123456789 >"conftest.in"
4114 while :
4116 cat "conftest.in" "conftest.in" >"conftest.tmp"
4117 mv "conftest.tmp" "conftest.in"
4118 cp "conftest.in" "conftest.nl"
4119 $as_echo 'EGREP' >> "conftest.nl"
4120 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4122 as_fn_arith $ac_count + 1 && ac_count=$as_val
4123 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4124 # Best one so far, save it but keep looking for a better one
4125 ac_cv_path_EGREP="$ac_path_EGREP"
4126 ac_path_EGREP_max=$ac_count
4128 # 10*(2^10) chars as input seems more than enough
4129 test $ac_count -gt 10 && break
4130 done
4131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4132 esac
4134 $ac_path_EGREP_found && break 3
4135 done
4136 done
4137 done
4138 IFS=$as_save_IFS
4139 if test -z "$ac_cv_path_EGREP"; then
4140 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4142 else
4143 ac_cv_path_EGREP=$EGREP
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4149 $as_echo "$ac_cv_path_EGREP" >&6; }
4150 EGREP="$ac_cv_path_EGREP"
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4154 $as_echo_n "checking for ANSI C header files... " >&6; }
4155 if test "${ac_cv_header_stdc+set}" = set; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160 #include <stdlib.h>
4161 #include <stdarg.h>
4162 #include <string.h>
4163 #include <float.h>
4166 main ()
4170 return 0;
4172 _ACEOF
4173 if ac_fn_c_try_compile "$LINENO"; then :
4174 ac_cv_header_stdc=yes
4175 else
4176 ac_cv_header_stdc=no
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 if test $ac_cv_header_stdc = yes; then
4181 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4184 #include <string.h>
4186 _ACEOF
4187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4188 $EGREP "memchr" >/dev/null 2>&1; then :
4190 else
4191 ac_cv_header_stdc=no
4193 rm -f conftest*
4197 if test $ac_cv_header_stdc = yes; then
4198 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 #include <stdlib.h>
4203 _ACEOF
4204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4205 $EGREP "free" >/dev/null 2>&1; then :
4207 else
4208 ac_cv_header_stdc=no
4210 rm -f conftest*
4214 if test $ac_cv_header_stdc = yes; then
4215 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4216 if test "$cross_compiling" = yes; then :
4218 else
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4221 #include <ctype.h>
4222 #include <stdlib.h>
4223 #if ((' ' & 0x0FF) == 0x020)
4224 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4225 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4226 #else
4227 # define ISLOWER(c) \
4228 (('a' <= (c) && (c) <= 'i') \
4229 || ('j' <= (c) && (c) <= 'r') \
4230 || ('s' <= (c) && (c) <= 'z'))
4231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4232 #endif
4234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4236 main ()
4238 int i;
4239 for (i = 0; i < 256; i++)
4240 if (XOR (islower (i), ISLOWER (i))
4241 || toupper (i) != TOUPPER (i))
4242 return 2;
4243 return 0;
4245 _ACEOF
4246 if ac_fn_c_try_run "$LINENO"; then :
4248 else
4249 ac_cv_header_stdc=no
4251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4252 conftest.$ac_objext conftest.beam conftest.$ac_ext
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4258 $as_echo "$ac_cv_header_stdc" >&6; }
4259 if test $ac_cv_header_stdc = yes; then
4261 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4265 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4266 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4267 inttypes.h stdint.h unistd.h
4268 do :
4269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4270 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4272 eval as_val=\$$as_ac_Header
4273 if test "x$as_val" = x""yes; then :
4274 cat >>confdefs.h <<_ACEOF
4275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4276 _ACEOF
4280 done
4284 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4285 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4286 MINIX=yes
4287 else
4288 MINIX=
4292 if test "$MINIX" = yes; then
4294 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4297 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4300 $as_echo "#define _MINIX 1" >>confdefs.h
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4306 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4307 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4313 # define __EXTENSIONS__ 1
4314 $ac_includes_default
4316 main ()
4320 return 0;
4322 _ACEOF
4323 if ac_fn_c_try_compile "$LINENO"; then :
4324 ac_cv_safe_to_define___extensions__=yes
4325 else
4326 ac_cv_safe_to_define___extensions__=no
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4331 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4332 test $ac_cv_safe_to_define___extensions__ = yes &&
4333 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4335 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4337 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4339 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4341 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4344 # Check whether --enable-largefile was given.
4345 if test "${enable_largefile+set}" = set; then :
4346 enableval=$enable_largefile;
4349 if test "$enable_largefile" != no; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4352 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4353 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 ac_cv_sys_largefile_CC=no
4357 if test "$GCC" != yes; then
4358 ac_save_CC=$CC
4359 while :; do
4360 # IRIX 6.2 and later do not support large files by default,
4361 # so use the C compiler's -n32 option if that helps.
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4364 #include <sys/types.h>
4365 /* Check that off_t can represent 2**63 - 1 correctly.
4366 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4367 since some C++ compilers masquerading as C compilers
4368 incorrectly reject 9223372036854775807. */
4369 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4370 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4371 && LARGE_OFF_T % 2147483647 == 1)
4372 ? 1 : -1];
4374 main ()
4378 return 0;
4380 _ACEOF
4381 if ac_fn_c_try_compile "$LINENO"; then :
4382 break
4384 rm -f core conftest.err conftest.$ac_objext
4385 CC="$CC -n32"
4386 if ac_fn_c_try_compile "$LINENO"; then :
4387 ac_cv_sys_largefile_CC=' -n32'; break
4389 rm -f core conftest.err conftest.$ac_objext
4390 break
4391 done
4392 CC=$ac_save_CC
4393 rm -f conftest.$ac_ext
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4397 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4398 if test "$ac_cv_sys_largefile_CC" != no; then
4399 CC=$CC$ac_cv_sys_largefile_CC
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4403 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4404 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 while :; do
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4410 #include <sys/types.h>
4411 /* Check that off_t can represent 2**63 - 1 correctly.
4412 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4413 since some C++ compilers masquerading as C compilers
4414 incorrectly reject 9223372036854775807. */
4415 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4416 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4417 && LARGE_OFF_T % 2147483647 == 1)
4418 ? 1 : -1];
4420 main ()
4424 return 0;
4426 _ACEOF
4427 if ac_fn_c_try_compile "$LINENO"; then :
4428 ac_cv_sys_file_offset_bits=no; break
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4433 #define _FILE_OFFSET_BITS 64
4434 #include <sys/types.h>
4435 /* Check that off_t can represent 2**63 - 1 correctly.
4436 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4437 since some C++ compilers masquerading as C compilers
4438 incorrectly reject 9223372036854775807. */
4439 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4440 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4441 && LARGE_OFF_T % 2147483647 == 1)
4442 ? 1 : -1];
4444 main ()
4448 return 0;
4450 _ACEOF
4451 if ac_fn_c_try_compile "$LINENO"; then :
4452 ac_cv_sys_file_offset_bits=64; break
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455 ac_cv_sys_file_offset_bits=unknown
4456 break
4457 done
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4460 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4461 case $ac_cv_sys_file_offset_bits in #(
4462 no | unknown) ;;
4464 cat >>confdefs.h <<_ACEOF
4465 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4466 _ACEOF
4468 esac
4469 rm -rf conftest*
4470 if test $ac_cv_sys_file_offset_bits = unknown; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4472 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4473 if test "${ac_cv_sys_large_files+set}" = set; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 while :; do
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4479 #include <sys/types.h>
4480 /* Check that off_t can represent 2**63 - 1 correctly.
4481 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4482 since some C++ compilers masquerading as C compilers
4483 incorrectly reject 9223372036854775807. */
4484 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4485 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4486 && LARGE_OFF_T % 2147483647 == 1)
4487 ? 1 : -1];
4489 main ()
4493 return 0;
4495 _ACEOF
4496 if ac_fn_c_try_compile "$LINENO"; then :
4497 ac_cv_sys_large_files=no; break
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4502 #define _LARGE_FILES 1
4503 #include <sys/types.h>
4504 /* Check that off_t can represent 2**63 - 1 correctly.
4505 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4506 since some C++ compilers masquerading as C compilers
4507 incorrectly reject 9223372036854775807. */
4508 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4509 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4510 && LARGE_OFF_T % 2147483647 == 1)
4511 ? 1 : -1];
4513 main ()
4517 return 0;
4519 _ACEOF
4520 if ac_fn_c_try_compile "$LINENO"; then :
4521 ac_cv_sys_large_files=1; break
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 ac_cv_sys_large_files=unknown
4525 break
4526 done
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4529 $as_echo "$ac_cv_sys_large_files" >&6; }
4530 case $ac_cv_sys_large_files in #(
4531 no | unknown) ;;
4533 cat >>confdefs.h <<_ACEOF
4534 #define _LARGE_FILES $ac_cv_sys_large_files
4535 _ACEOF
4537 esac
4538 rm -rf conftest*
4543 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4544 for ac_prog in aclocal
4546 # Extract the first word of "$ac_prog", so it can be a program name with args.
4547 set dummy $ac_prog; ac_word=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 if test -n "$ACLOCAL"; then
4554 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4563 ac_cv_prog_ACLOCAL="$ac_prog"
4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4567 done
4568 done
4569 IFS=$as_save_IFS
4573 ACLOCAL=$ac_cv_prog_ACLOCAL
4574 if test -n "$ACLOCAL"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4576 $as_echo "$ACLOCAL" >&6; }
4577 else
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4583 test -n "$ACLOCAL" && break
4584 done
4585 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
4587 for ac_prog in autoconf
4589 # Extract the first word of "$ac_prog", so it can be a program name with args.
4590 set dummy $ac_prog; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 if test -n "$AUTOCONF"; then
4597 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 ac_cv_prog_AUTOCONF="$ac_prog"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4610 done
4611 done
4612 IFS=$as_save_IFS
4616 AUTOCONF=$ac_cv_prog_AUTOCONF
4617 if test -n "$AUTOCONF"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4619 $as_echo "$AUTOCONF" >&6; }
4620 else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4626 test -n "$AUTOCONF" && break
4627 done
4628 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
4630 for ac_prog in autoheader
4632 # Extract the first word of "$ac_prog", so it can be a program name with args.
4633 set dummy $ac_prog; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$AUTOHEADER"; then
4640 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_AUTOHEADER="$ac_prog"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4653 done
4654 done
4655 IFS=$as_save_IFS
4659 AUTOHEADER=$ac_cv_prog_AUTOHEADER
4660 if test -n "$AUTOHEADER"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4662 $as_echo "$AUTOHEADER" >&6; }
4663 else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4669 test -n "$AUTOHEADER" && break
4670 done
4671 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
4674 # Figure out what compiler warnings we can enable.
4675 # See config/warnings.m4 for details.
4677 warn=
4678 save_CFLAGS="$CFLAGS"
4679 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
4680 -Wmissing-format-attribute; do
4681 # Do the check with the no- prefix removed since gcc silently
4682 # accepts any -Wno-* option on purpose
4683 case $real_option in
4684 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4685 *) option=$real_option ;;
4686 esac
4687 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4690 $as_echo_n "checking whether $CC supports $option... " >&6; }
4691 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 CFLAGS="$option"
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4699 main ()
4703 return 0;
4705 _ACEOF
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707 eval "$as_acx_Woption=yes"
4708 else
4709 eval "$as_acx_Woption=no"
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 eval ac_res=\$$as_acx_Woption
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4716 $as_echo "$ac_res" >&6; }
4717 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4718 warn="$warn${warn:+ }$real_option"
4720 done
4721 CFLAGS="$save_CFLAGS"
4723 c_warn=
4724 save_CFLAGS="$CFLAGS"
4725 for real_option in -Wstrict-prototypes -Wmissing-prototypes \
4726 -Wold-style-definition -Wc++-compat; do
4727 # Do the check with the no- prefix removed since gcc silently
4728 # accepts any -Wno-* option on purpose
4729 case $real_option in
4730 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4731 *) option=$real_option ;;
4732 esac
4733 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4736 $as_echo_n "checking whether $CC supports $option... " >&6; }
4737 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 CFLAGS="$option"
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4745 main ()
4749 return 0;
4751 _ACEOF
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753 eval "$as_acx_Woption=yes"
4754 else
4755 eval "$as_acx_Woption=no"
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 eval ac_res=\$$as_acx_Woption
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4762 $as_echo "$ac_res" >&6; }
4763 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4764 c_warn="$c_warn${c_warn:+ }$real_option"
4766 done
4767 CFLAGS="$save_CFLAGS"
4769 WARN_PEDANTIC=
4770 # Do the check with the no- prefix removed from the warning options
4771 # since gcc silently accepts any -Wno-* option on purpose
4772 if test "$GCC" = yes; then :
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
4774 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
4775 if test "${acx_cv_prog_cc_pedantic__Wlong_long+set}" = set; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 save_CFLAGS="$CFLAGS"
4779 CFLAGS="-pedantic -Wlong-long"
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4784 main ()
4788 return 0;
4790 _ACEOF
4791 if ac_fn_c_try_compile "$LINENO"; then :
4792 acx_cv_prog_cc_pedantic__Wlong_long=yes
4793 else
4794 acx_cv_prog_cc_pedantic__Wlong_long=no
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 CFLAGS="$save_CFLAGS"
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
4800 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
4801 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
4802 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
4808 # Disable exceptions and RTTI if building with g++
4809 noexception_flags=
4810 save_CFLAGS="$CFLAGS"
4811 for real_option in -fno-exceptions -fno-rtti; do
4812 # Do the check with the no- prefix removed since gcc silently
4813 # accepts any -Wno-* option on purpose
4814 case $real_option in
4815 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4816 *) option=$real_option ;;
4817 esac
4818 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4821 $as_echo_n "checking whether $CC supports $option... " >&6; }
4822 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 CFLAGS="$option"
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4830 main ()
4834 return 0;
4836 _ACEOF
4837 if ac_fn_c_try_compile "$LINENO"; then :
4838 eval "$as_acx_Woption=yes"
4839 else
4840 eval "$as_acx_Woption=no"
4842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4845 eval ac_res=\$$as_acx_Woption
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4847 $as_echo "$ac_res" >&6; }
4848 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4849 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
4851 done
4852 CFLAGS="$save_CFLAGS"
4855 # Only enable with --enable-werror-always until existing warnings are
4856 # corrected.
4857 WERROR=
4858 # Check whether --enable-werror-always was given.
4859 if test "${enable_werror_always+set}" = set; then :
4860 enableval=$enable_werror_always;
4861 else
4862 enable_werror_always=no
4865 if test $enable_werror_always = yes; then :
4866 WERROR="$WERROR${WERROR:+ }-Werror"
4871 # Dependency checking.
4872 rm -rf .tst 2>/dev/null
4873 mkdir .tst 2>/dev/null
4874 if test -d .tst; then
4875 am__leading_dot=.
4876 else
4877 am__leading_dot=_
4879 rmdir .tst 2>/dev/null
4881 DEPDIR="${am__leading_dot}deps"
4883 ac_config_commands="$ac_config_commands depdir"
4886 ac_ext=cpp
4887 ac_cpp='$CXXCPP $CPPFLAGS'
4888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4895 int i;
4896 _ACEOF
4897 if ac_fn_cxx_try_compile "$LINENO"; then :
4899 else
4900 as_fn_error "C++ compiler missing or inoperational" "$LINENO" 5
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 ac_ext=c
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909 depcc="$CXX" am_compiler_list=
4911 am_depcomp=$ac_aux_dir/depcomp
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4913 $as_echo_n "checking dependency style of $depcc... " >&6; }
4914 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 if test -f "$am_depcomp"; then
4918 # We make a subdir and do the tests there. Otherwise we can end up
4919 # making bogus files that we don't know about and never remove. For
4920 # instance it was reported that on HP-UX the gcc test will end up
4921 # making a dummy file named `D' -- because `-MD' means `put the output
4922 # in D'.
4923 mkdir conftest.dir
4924 # Copy depcomp to subdir because otherwise we won't find it if we're
4925 # using a relative directory.
4926 cp "$am_depcomp" conftest.dir
4927 cd conftest.dir
4928 # We will build objects and dependencies in a subdirectory because
4929 # it helps to detect inapplicable dependency modes. For instance
4930 # both Tru64's cc and ICC support -MD to output dependencies as a
4931 # side effect of compilation, but ICC will put the dependencies in
4932 # the current directory while Tru64 will put them in the object
4933 # directory.
4934 mkdir sub
4936 am_cv_CXX_dependencies_compiler_type=none
4937 if test "$am_compiler_list" = ""; then
4938 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4940 for depmode in $am_compiler_list; do
4941 if test $depmode = none; then break; fi
4943 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4944 # Setup a source with many dependencies, because some compilers
4945 # like to wrap large dependency lists on column 80 (with \), and
4946 # we should not choose a depcomp mode which is confused by this.
4948 # We need to recreate these files for each test, as the compiler may
4949 # overwrite some of them when testing with obscure command lines.
4950 # This happens at least with the AIX C compiler.
4951 : > sub/conftest.c
4952 for i in 1 2 3 4 5 6; do
4953 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4954 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4955 # Solaris 8's {/usr,}/bin/sh.
4956 touch sub/conftst$i.h
4957 done
4958 echo "include sub/conftest.Po" > confmf
4960 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4961 # mode. It turns out that the SunPro C++ compiler does not properly
4962 # handle `-M -o', and we need to detect this.
4963 depcmd="depmode=$depmode \
4964 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4965 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4966 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4967 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4968 if env $depcmd > conftest.err 2>&1 &&
4969 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4970 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4971 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4972 # icc doesn't choke on unknown options, it will just issue warnings
4973 # or remarks (even with -Werror). So we grep stderr for any message
4974 # that says an option was ignored or not supported.
4975 # When given -MP, icc 7.0 and 7.1 complain thusly:
4976 # icc: Command line warning: ignoring option '-M'; no argument required
4977 # The diagnosis changed in icc 8.0:
4978 # icc: Command line remark: option '-MP' not supported
4979 if (grep 'ignoring option' conftest.err ||
4980 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4981 am_cv_CXX_dependencies_compiler_type=$depmode
4982 $as_echo "$as_me:$LINENO: success" >&5
4983 break
4986 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4987 sed -e 's/^/| /' < conftest.err >&5
4988 done
4990 cd ..
4991 rm -rf conftest.dir
4992 else
4993 am_cv_CXX_dependencies_compiler_type=none
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4998 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4999 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
5000 then as_fn_error "no usable dependency style found" "$LINENO" 5
5001 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5006 # Checks for header files.
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5008 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5009 if test "${ac_cv_header_time+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h. */
5014 #include <sys/types.h>
5015 #include <sys/time.h>
5016 #include <time.h>
5019 main ()
5021 if ((struct tm *) 0)
5022 return 0;
5024 return 0;
5026 _ACEOF
5027 if ac_fn_c_try_compile "$LINENO"; then :
5028 ac_cv_header_time=yes
5029 else
5030 ac_cv_header_time=no
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5035 $as_echo "$ac_cv_header_time" >&6; }
5036 if test $ac_cv_header_time = yes; then
5038 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5043 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5044 if test "${gcc_cv_header_string+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5049 #include <string.h>
5050 #include <strings.h>
5052 main ()
5056 return 0;
5058 _ACEOF
5059 if ac_fn_c_try_compile "$LINENO"; then :
5060 gcc_cv_header_string=yes
5061 else
5062 gcc_cv_header_string=no
5064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5067 $as_echo "$gcc_cv_header_string" >&6; }
5068 if test $gcc_cv_header_string = yes; then
5070 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5075 for ac_header in locale.h fcntl.h limits.h stddef.h \
5076 stdlib.h strings.h string.h sys/file.h unistd.h
5077 do :
5078 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5079 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5080 eval as_val=\$$as_ac_Header
5081 if test "x$as_val" = x""yes; then :
5082 cat >>confdefs.h <<_ACEOF
5083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5084 _ACEOF
5088 done
5091 # Checks for typedefs, structures, and compiler characteristics.
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5093 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5094 if test "${ac_cv_c_bigendian+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 ac_cv_c_bigendian=unknown
5098 # See if we're dealing with a universal compiler.
5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h. */
5101 #ifndef __APPLE_CC__
5102 not a universal capable compiler
5103 #endif
5104 typedef int dummy;
5106 _ACEOF
5107 if ac_fn_c_try_compile "$LINENO"; then :
5109 # Check for potential -arch flags. It is not universal unless
5110 # there are at least two -arch flags with different values.
5111 ac_arch=
5112 ac_prev=
5113 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5114 if test -n "$ac_prev"; then
5115 case $ac_word in
5116 i?86 | x86_64 | ppc | ppc64)
5117 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5118 ac_arch=$ac_word
5119 else
5120 ac_cv_c_bigendian=universal
5121 break
5124 esac
5125 ac_prev=
5126 elif test "x$ac_word" = "x-arch"; then
5127 ac_prev=arch
5129 done
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 if test $ac_cv_c_bigendian = unknown; then
5133 # See if sys/param.h defines the BYTE_ORDER macro.
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5136 #include <sys/types.h>
5137 #include <sys/param.h>
5140 main ()
5142 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5143 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5144 && LITTLE_ENDIAN)
5145 bogus endian macros
5146 #endif
5149 return 0;
5151 _ACEOF
5152 if ac_fn_c_try_compile "$LINENO"; then :
5153 # It does; now see whether it defined to BIG_ENDIAN or not.
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5156 #include <sys/types.h>
5157 #include <sys/param.h>
5160 main ()
5162 #if BYTE_ORDER != BIG_ENDIAN
5163 not big endian
5164 #endif
5167 return 0;
5169 _ACEOF
5170 if ac_fn_c_try_compile "$LINENO"; then :
5171 ac_cv_c_bigendian=yes
5172 else
5173 ac_cv_c_bigendian=no
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 if test $ac_cv_c_bigendian = unknown; then
5180 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5183 #include <limits.h>
5186 main ()
5188 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5189 bogus endian macros
5190 #endif
5193 return 0;
5195 _ACEOF
5196 if ac_fn_c_try_compile "$LINENO"; then :
5197 # It does; now see whether it defined to _BIG_ENDIAN or not.
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 #include <limits.h>
5203 main ()
5205 #ifndef _BIG_ENDIAN
5206 not big endian
5207 #endif
5210 return 0;
5212 _ACEOF
5213 if ac_fn_c_try_compile "$LINENO"; then :
5214 ac_cv_c_bigendian=yes
5215 else
5216 ac_cv_c_bigendian=no
5218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 if test $ac_cv_c_bigendian = unknown; then
5223 # Compile a test program.
5224 if test "$cross_compiling" = yes; then :
5225 # Try to guess by grepping values from an object file.
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5228 short int ascii_mm[] =
5229 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5230 short int ascii_ii[] =
5231 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5232 int use_ascii (int i) {
5233 return ascii_mm[i] + ascii_ii[i];
5235 short int ebcdic_ii[] =
5236 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5237 short int ebcdic_mm[] =
5238 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5239 int use_ebcdic (int i) {
5240 return ebcdic_mm[i] + ebcdic_ii[i];
5242 extern int foo;
5245 main ()
5247 return use_ascii (foo) == use_ebcdic (foo);
5249 return 0;
5251 _ACEOF
5252 if ac_fn_c_try_compile "$LINENO"; then :
5253 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5254 ac_cv_c_bigendian=yes
5256 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5257 if test "$ac_cv_c_bigendian" = unknown; then
5258 ac_cv_c_bigendian=no
5259 else
5260 # finding both strings is unlikely to happen, but who knows?
5261 ac_cv_c_bigendian=unknown
5265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266 else
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5269 $ac_includes_default
5271 main ()
5274 /* Are we little or big endian? From Harbison&Steele. */
5275 union
5277 long int l;
5278 char c[sizeof (long int)];
5279 } u;
5280 u.l = 1;
5281 return u.c[sizeof (long int) - 1] == 1;
5284 return 0;
5286 _ACEOF
5287 if ac_fn_c_try_run "$LINENO"; then :
5288 ac_cv_c_bigendian=no
5289 else
5290 ac_cv_c_bigendian=yes
5292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5293 conftest.$ac_objext conftest.beam conftest.$ac_ext
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5299 $as_echo "$ac_cv_c_bigendian" >&6; }
5300 case $ac_cv_c_bigendian in #(
5301 yes)
5302 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5303 ;; #(
5305 ;; #(
5306 universal)
5308 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5310 ;; #(
5312 as_fn_error "unknown endianness
5313 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5314 esac
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5317 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5318 if test "${ac_cv_c_const+set}" = set; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5325 main ()
5327 /* FIXME: Include the comments suggested by Paul. */
5328 #ifndef __cplusplus
5329 /* Ultrix mips cc rejects this. */
5330 typedef int charset[2];
5331 const charset cs;
5332 /* SunOS 4.1.1 cc rejects this. */
5333 char const *const *pcpcc;
5334 char **ppc;
5335 /* NEC SVR4.0.2 mips cc rejects this. */
5336 struct point {int x, y;};
5337 static struct point const zero = {0,0};
5338 /* AIX XL C 1.02.0.0 rejects this.
5339 It does not let you subtract one const X* pointer from another in
5340 an arm of an if-expression whose if-part is not a constant
5341 expression */
5342 const char *g = "string";
5343 pcpcc = &g + (g ? g-g : 0);
5344 /* HPUX 7.0 cc rejects these. */
5345 ++pcpcc;
5346 ppc = (char**) pcpcc;
5347 pcpcc = (char const *const *) ppc;
5348 { /* SCO 3.2v4 cc rejects this. */
5349 char *t;
5350 char const *s = 0 ? (char *) 0 : (char const *) 0;
5352 *t++ = 0;
5353 if (s) return 0;
5355 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5356 int x[] = {25, 17};
5357 const int *foo = &x[0];
5358 ++foo;
5360 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5361 typedef const int *iptr;
5362 iptr p = 0;
5363 ++p;
5365 { /* AIX XL C 1.02.0.0 rejects this saying
5366 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5367 struct s { int j; const int *ap[3]; };
5368 struct s *b; b->j = 5;
5370 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5371 const int foo = 10;
5372 if (!foo) return 0;
5374 return !cs[0] && !zero.x;
5375 #endif
5378 return 0;
5380 _ACEOF
5381 if ac_fn_c_try_compile "$LINENO"; then :
5382 ac_cv_c_const=yes
5383 else
5384 ac_cv_c_const=no
5386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5389 $as_echo "$ac_cv_c_const" >&6; }
5390 if test $ac_cv_c_const = no; then
5392 $as_echo "#define const /**/" >>confdefs.h
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5397 $as_echo_n "checking for inline... " >&6; }
5398 if test "${ac_cv_c_inline+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 ac_cv_c_inline=no
5402 for ac_kw in inline __inline__ __inline; do
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 #ifndef __cplusplus
5406 typedef int foo_t;
5407 static $ac_kw foo_t static_foo () {return 0; }
5408 $ac_kw foo_t foo () {return 0; }
5409 #endif
5411 _ACEOF
5412 if ac_fn_c_try_compile "$LINENO"; then :
5413 ac_cv_c_inline=$ac_kw
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 test "$ac_cv_c_inline" != no && break
5417 done
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5421 $as_echo "$ac_cv_c_inline" >&6; }
5423 case $ac_cv_c_inline in
5424 inline | yes) ;;
5426 case $ac_cv_c_inline in
5427 no) ac_val=;;
5428 *) ac_val=$ac_cv_c_inline;;
5429 esac
5430 cat >>confdefs.h <<_ACEOF
5431 #ifndef __cplusplus
5432 #define inline $ac_val
5433 #endif
5434 _ACEOF
5436 esac
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5439 $as_echo_n "checking for obstacks... " >&6; }
5440 if test "${ac_cv_func_obstack+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 $ac_includes_default
5446 #include "obstack.h"
5448 main ()
5450 struct obstack mem;
5451 #define obstack_chunk_alloc malloc
5452 #define obstack_chunk_free free
5453 obstack_init (&mem);
5454 obstack_free (&mem, 0);
5456 return 0;
5458 _ACEOF
5459 if ac_fn_c_try_link "$LINENO"; then :
5460 ac_cv_func_obstack=yes
5461 else
5462 ac_cv_func_obstack=no
5464 rm -f core conftest.err conftest.$ac_objext \
5465 conftest$ac_exeext conftest.$ac_ext
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5468 $as_echo "$ac_cv_func_obstack" >&6; }
5469 if test $ac_cv_func_obstack = yes; then
5471 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5473 else
5474 case " $LIBOBJS " in
5475 *" obstack.$ac_objext "* ) ;;
5476 *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
5478 esac
5482 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5483 if test "x$ac_cv_type_off_t" = x""yes; then :
5485 else
5487 cat >>confdefs.h <<_ACEOF
5488 #define off_t long int
5489 _ACEOF
5493 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5494 if test "x$ac_cv_type_size_t" = x""yes; then :
5496 else
5498 cat >>confdefs.h <<_ACEOF
5499 #define size_t unsigned int
5500 _ACEOF
5504 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5505 if test "x$ac_cv_type_ssize_t" = x""yes; then :
5507 else
5509 cat >>confdefs.h <<_ACEOF
5510 #define ssize_t int
5511 _ACEOF
5516 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5517 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
5519 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5521 else
5522 for ac_type in 'unsigned int' 'unsigned long int' \
5523 'unsigned long long int'; do
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5526 $ac_includes_default
5528 main ()
5530 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5531 test_array [0] = 0
5534 return 0;
5536 _ACEOF
5537 if ac_fn_c_try_compile "$LINENO"; then :
5539 cat >>confdefs.h <<_ACEOF
5540 #define uintptr_t $ac_type
5541 _ACEOF
5543 ac_type=
5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546 test -z "$ac_type" && break
5547 done
5551 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5552 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
5554 else
5556 cat >>confdefs.h <<_ACEOF
5557 #define ptrdiff_t int
5558 _ACEOF
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5563 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5564 if test "${ac_cv_struct_tm+set}" = set; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #include <sys/types.h>
5570 #include <time.h>
5573 main ()
5575 struct tm tm;
5576 int *p = &tm.tm_sec;
5577 return !p;
5579 return 0;
5581 _ACEOF
5582 if ac_fn_c_try_compile "$LINENO"; then :
5583 ac_cv_struct_tm=time.h
5584 else
5585 ac_cv_struct_tm=sys/time.h
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5590 $as_echo "$ac_cv_struct_tm" >&6; }
5591 if test $ac_cv_struct_tm = sys/time.h; then
5593 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5597 # The cast to long int works around a bug in the HP C Compiler
5598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5600 # This bug is HP SR number 8606223364.
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5602 $as_echo_n "checking size of int... " >&6; }
5603 if test "${ac_cv_sizeof_int+set}" = set; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5608 else
5609 if test "$ac_cv_type_int" = yes; then
5610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5612 { as_fn_set_status 77
5613 as_fn_error "cannot compute sizeof (int)
5614 See \`config.log' for more details." "$LINENO" 5; }; }
5615 else
5616 ac_cv_sizeof_int=0
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5622 $as_echo "$ac_cv_sizeof_int" >&6; }
5626 cat >>confdefs.h <<_ACEOF
5627 #define SIZEOF_INT $ac_cv_sizeof_int
5628 _ACEOF
5631 # The cast to long int works around a bug in the HP C Compiler
5632 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5633 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5634 # This bug is HP SR number 8606223364.
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5636 $as_echo_n "checking size of long... " >&6; }
5637 if test "${ac_cv_sizeof_long+set}" = set; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5642 else
5643 if test "$ac_cv_type_long" = yes; then
5644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5646 { as_fn_set_status 77
5647 as_fn_error "cannot compute sizeof (long)
5648 See \`config.log' for more details." "$LINENO" 5; }; }
5649 else
5650 ac_cv_sizeof_long=0
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5656 $as_echo "$ac_cv_sizeof_long" >&6; }
5660 cat >>confdefs.h <<_ACEOF
5661 #define SIZEOF_LONG $ac_cv_sizeof_long
5662 _ACEOF
5666 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
5667 do :
5668 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5669 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5670 eval as_val=\$$as_ac_var
5671 if test "x$as_val" = x""yes; then :
5672 cat >>confdefs.h <<_ACEOF
5673 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5674 _ACEOF
5677 done
5679 ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5680 if test "x$ac_cv_have_decl_abort" = x""yes; then :
5681 ac_have_decl=1
5682 else
5683 ac_have_decl=0
5686 cat >>confdefs.h <<_ACEOF
5687 #define HAVE_DECL_ABORT $ac_have_decl
5688 _ACEOF
5689 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5690 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
5691 ac_have_decl=1
5692 else
5693 ac_have_decl=0
5696 cat >>confdefs.h <<_ACEOF
5697 #define HAVE_DECL_ASPRINTF $ac_have_decl
5698 _ACEOF
5699 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
5700 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
5701 ac_have_decl=1
5702 else
5703 ac_have_decl=0
5706 cat >>confdefs.h <<_ACEOF
5707 #define HAVE_DECL_BASENAME $ac_have_decl
5708 _ACEOF
5709 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
5710 if test "x$ac_cv_have_decl_errno" = x""yes; then :
5711 ac_have_decl=1
5712 else
5713 ac_have_decl=0
5716 cat >>confdefs.h <<_ACEOF
5717 #define HAVE_DECL_ERRNO $ac_have_decl
5718 _ACEOF
5719 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
5720 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
5721 ac_have_decl=1
5722 else
5723 ac_have_decl=0
5726 cat >>confdefs.h <<_ACEOF
5727 #define HAVE_DECL_GETOPT $ac_have_decl
5728 _ACEOF
5729 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5730 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
5731 ac_have_decl=1
5732 else
5733 ac_have_decl=0
5736 cat >>confdefs.h <<_ACEOF
5737 #define HAVE_DECL_VASPRINTF $ac_have_decl
5738 _ACEOF
5740 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
5741 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
5742 ac_have_decl=1
5743 else
5744 ac_have_decl=0
5747 cat >>confdefs.h <<_ACEOF
5748 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
5749 _ACEOF
5750 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
5751 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
5752 ac_have_decl=1
5753 else
5754 ac_have_decl=0
5757 cat >>confdefs.h <<_ACEOF
5758 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
5759 _ACEOF
5760 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
5761 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
5762 ac_have_decl=1
5763 else
5764 ac_have_decl=0
5767 cat >>confdefs.h <<_ACEOF
5768 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
5769 _ACEOF
5770 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
5771 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
5772 ac_have_decl=1
5773 else
5774 ac_have_decl=0
5777 cat >>confdefs.h <<_ACEOF
5778 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
5779 _ACEOF
5780 ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
5781 if test "x$ac_cv_have_decl_fgetc_unlocked" = x""yes; then :
5782 ac_have_decl=1
5783 else
5784 ac_have_decl=0
5787 cat >>confdefs.h <<_ACEOF
5788 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
5789 _ACEOF
5790 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
5791 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
5792 ac_have_decl=1
5793 else
5794 ac_have_decl=0
5797 cat >>confdefs.h <<_ACEOF
5798 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
5799 _ACEOF
5800 ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
5801 if test "x$ac_cv_have_decl_fileno_unlocked" = x""yes; then :
5802 ac_have_decl=1
5803 else
5804 ac_have_decl=0
5807 cat >>confdefs.h <<_ACEOF
5808 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
5809 _ACEOF
5810 ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
5811 if test "x$ac_cv_have_decl_fprintf_unlocked" = x""yes; then :
5812 ac_have_decl=1
5813 else
5814 ac_have_decl=0
5817 cat >>confdefs.h <<_ACEOF
5818 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
5819 _ACEOF
5820 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
5821 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
5822 ac_have_decl=1
5823 else
5824 ac_have_decl=0
5827 cat >>confdefs.h <<_ACEOF
5828 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
5829 _ACEOF
5830 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
5831 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then :
5832 ac_have_decl=1
5833 else
5834 ac_have_decl=0
5837 cat >>confdefs.h <<_ACEOF
5838 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
5839 _ACEOF
5840 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
5841 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then :
5842 ac_have_decl=1
5843 else
5844 ac_have_decl=0
5847 cat >>confdefs.h <<_ACEOF
5848 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
5849 _ACEOF
5850 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
5851 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then :
5852 ac_have_decl=1
5853 else
5854 ac_have_decl=0
5857 cat >>confdefs.h <<_ACEOF
5858 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
5859 _ACEOF
5860 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
5861 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then :
5862 ac_have_decl=1
5863 else
5864 ac_have_decl=0
5867 cat >>confdefs.h <<_ACEOF
5868 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
5869 _ACEOF
5870 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
5871 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
5872 ac_have_decl=1
5873 else
5874 ac_have_decl=0
5877 cat >>confdefs.h <<_ACEOF
5878 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
5879 _ACEOF
5880 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
5881 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then :
5882 ac_have_decl=1
5883 else
5884 ac_have_decl=0
5887 cat >>confdefs.h <<_ACEOF
5888 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
5889 _ACEOF
5890 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
5891 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then :
5892 ac_have_decl=1
5893 else
5894 ac_have_decl=0
5897 cat >>confdefs.h <<_ACEOF
5898 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
5899 _ACEOF
5902 # Checks for library functions.
5903 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5904 # for constant arguments. Useless!
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5906 $as_echo_n "checking for working alloca.h... " >&6; }
5907 if test "${ac_cv_working_alloca_h+set}" = set; then :
5908 $as_echo_n "(cached) " >&6
5909 else
5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5912 #include <alloca.h>
5914 main ()
5916 char *p = (char *) alloca (2 * sizeof (int));
5917 if (p) return 0;
5919 return 0;
5921 _ACEOF
5922 if ac_fn_c_try_link "$LINENO"; then :
5923 ac_cv_working_alloca_h=yes
5924 else
5925 ac_cv_working_alloca_h=no
5927 rm -f core conftest.err conftest.$ac_objext \
5928 conftest$ac_exeext conftest.$ac_ext
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5931 $as_echo "$ac_cv_working_alloca_h" >&6; }
5932 if test $ac_cv_working_alloca_h = yes; then
5934 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5939 $as_echo_n "checking for alloca... " >&6; }
5940 if test "${ac_cv_func_alloca_works+set}" = set; then :
5941 $as_echo_n "(cached) " >&6
5942 else
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5945 #ifdef __GNUC__
5946 # define alloca __builtin_alloca
5947 #else
5948 # ifdef _MSC_VER
5949 # include <malloc.h>
5950 # define alloca _alloca
5951 # else
5952 # ifdef HAVE_ALLOCA_H
5953 # include <alloca.h>
5954 # else
5955 # ifdef _AIX
5956 #pragma alloca
5957 # else
5958 # ifndef alloca /* predefined by HP cc +Olibcalls */
5959 char *alloca ();
5960 # endif
5961 # endif
5962 # endif
5963 # endif
5964 #endif
5967 main ()
5969 char *p = (char *) alloca (1);
5970 if (p) return 0;
5972 return 0;
5974 _ACEOF
5975 if ac_fn_c_try_link "$LINENO"; then :
5976 ac_cv_func_alloca_works=yes
5977 else
5978 ac_cv_func_alloca_works=no
5980 rm -f core conftest.err conftest.$ac_objext \
5981 conftest$ac_exeext conftest.$ac_ext
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5984 $as_echo "$ac_cv_func_alloca_works" >&6; }
5986 if test $ac_cv_func_alloca_works = yes; then
5988 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5990 else
5991 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5992 # that cause trouble. Some versions do not even contain alloca or
5993 # contain a buggy version. If you still want to use their alloca,
5994 # use ar to extract alloca.o from them instead of compiling alloca.c.
5996 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5998 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6002 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6003 if test "${ac_cv_os_cray+set}" = set; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6008 #if defined CRAY && ! defined CRAY2
6009 webecray
6010 #else
6011 wenotbecray
6012 #endif
6014 _ACEOF
6015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6016 $EGREP "webecray" >/dev/null 2>&1; then :
6017 ac_cv_os_cray=yes
6018 else
6019 ac_cv_os_cray=no
6021 rm -f conftest*
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6025 $as_echo "$ac_cv_os_cray" >&6; }
6026 if test $ac_cv_os_cray = yes; then
6027 for ac_func in _getb67 GETB67 getb67; do
6028 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6029 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6030 eval as_val=\$$as_ac_var
6031 if test "x$as_val" = x""yes; then :
6033 cat >>confdefs.h <<_ACEOF
6034 #define CRAY_STACKSEG_END $ac_func
6035 _ACEOF
6037 break
6040 done
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6044 $as_echo_n "checking stack direction for C alloca... " >&6; }
6045 if test "${ac_cv_c_stack_direction+set}" = set; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 if test "$cross_compiling" = yes; then :
6049 ac_cv_c_stack_direction=0
6050 else
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6053 $ac_includes_default
6055 find_stack_direction ()
6057 static char *addr = 0;
6058 auto char dummy;
6059 if (addr == 0)
6061 addr = &dummy;
6062 return find_stack_direction ();
6064 else
6065 return (&dummy > addr) ? 1 : -1;
6069 main ()
6071 return find_stack_direction () < 0;
6073 _ACEOF
6074 if ac_fn_c_try_run "$LINENO"; then :
6075 ac_cv_c_stack_direction=1
6076 else
6077 ac_cv_c_stack_direction=-1
6079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6080 conftest.$ac_objext conftest.beam conftest.$ac_ext
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6085 $as_echo "$ac_cv_c_stack_direction" >&6; }
6086 cat >>confdefs.h <<_ACEOF
6087 #define STACK_DIRECTION $ac_cv_c_stack_direction
6088 _ACEOF
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6094 $as_echo_n "checking for ANSI C header files... " >&6; }
6095 if test "${ac_cv_header_stdc+set}" = set; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6100 #include <stdlib.h>
6101 #include <stdarg.h>
6102 #include <string.h>
6103 #include <float.h>
6106 main ()
6110 return 0;
6112 _ACEOF
6113 if ac_fn_c_try_compile "$LINENO"; then :
6114 ac_cv_header_stdc=yes
6115 else
6116 ac_cv_header_stdc=no
6118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 if test $ac_cv_header_stdc = yes; then
6121 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6124 #include <string.h>
6126 _ACEOF
6127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6128 $EGREP "memchr" >/dev/null 2>&1; then :
6130 else
6131 ac_cv_header_stdc=no
6133 rm -f conftest*
6137 if test $ac_cv_header_stdc = yes; then
6138 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140 /* end confdefs.h. */
6141 #include <stdlib.h>
6143 _ACEOF
6144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6145 $EGREP "free" >/dev/null 2>&1; then :
6147 else
6148 ac_cv_header_stdc=no
6150 rm -f conftest*
6154 if test $ac_cv_header_stdc = yes; then
6155 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6156 if test "$cross_compiling" = yes; then :
6158 else
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6161 #include <ctype.h>
6162 #include <stdlib.h>
6163 #if ((' ' & 0x0FF) == 0x020)
6164 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6165 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6166 #else
6167 # define ISLOWER(c) \
6168 (('a' <= (c) && (c) <= 'i') \
6169 || ('j' <= (c) && (c) <= 'r') \
6170 || ('s' <= (c) && (c) <= 'z'))
6171 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6172 #endif
6174 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6176 main ()
6178 int i;
6179 for (i = 0; i < 256; i++)
6180 if (XOR (islower (i), ISLOWER (i))
6181 || toupper (i) != TOUPPER (i))
6182 return 2;
6183 return 0;
6185 _ACEOF
6186 if ac_fn_c_try_run "$LINENO"; then :
6188 else
6189 ac_cv_header_stdc=no
6191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6192 conftest.$ac_objext conftest.beam conftest.$ac_ext
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6198 $as_echo "$ac_cv_header_stdc" >&6; }
6199 if test $ac_cv_header_stdc = yes; then
6201 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6207 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6208 if test "${am_cv_langinfo_codeset+set}" = set; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 #include <langinfo.h>
6215 main ()
6217 char* cs = nl_langinfo(CODESET);
6219 return 0;
6221 _ACEOF
6222 if ac_fn_c_try_link "$LINENO"; then :
6223 am_cv_langinfo_codeset=yes
6224 else
6225 am_cv_langinfo_codeset=no
6227 rm -f core conftest.err conftest.$ac_objext \
6228 conftest$ac_exeext conftest.$ac_ext
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6232 $as_echo "$am_cv_langinfo_codeset" >&6; }
6233 if test $am_cv_langinfo_codeset = yes; then
6235 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6239 # If we haven't got the data from the intl directory,
6240 # assume NLS is disabled.
6241 USE_NLS=no
6242 LIBINTL=
6243 LIBINTL_DEP=
6244 INCINTL=
6245 XGETTEXT=
6246 GMSGFMT=
6247 POSUB=
6249 if test -f ../intl/config.intl; then
6250 . ../intl/config.intl
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6253 $as_echo_n "checking whether NLS is requested... " >&6; }
6254 if test x"$USE_NLS" != xyes; then
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6257 else
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6259 $as_echo "yes" >&6; }
6261 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6265 $as_echo_n "checking for catalogs to be installed... " >&6; }
6266 # Look for .po and .gmo files in the source directory.
6267 CATALOGS=
6268 XLINGUAS=
6269 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6270 # If there aren't any .gmo files the shell will give us the
6271 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6272 # weeded out.
6273 case "$cat" in *\**)
6274 continue;;
6275 esac
6276 # The quadruple backslash is collapsed to a double backslash
6277 # by the backticks, then collapsed again by the double quotes,
6278 # leaving us with one backslash in the sed expression (right
6279 # before the dot that mustn't act as a wildcard).
6280 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6281 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6282 # The user is allowed to set LINGUAS to a list of languages to
6283 # install catalogs for. If it's empty that means "all of them."
6284 if test "x$LINGUAS" = x; then
6285 CATALOGS="$CATALOGS $cat"
6286 XLINGUAS="$XLINGUAS $lang"
6287 else
6288 case "$LINGUAS" in *$lang*)
6289 CATALOGS="$CATALOGS $cat"
6290 XLINGUAS="$XLINGUAS $lang"
6292 esac
6294 done
6295 LINGUAS="$XLINGUAS"
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6297 $as_echo "$LINGUAS" >&6; }
6300 DATADIRNAME=share
6302 INSTOBJEXT=.mo
6304 GENCAT=gencat
6306 CATOBJEXT=.gmo
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
6311 $as_echo_n "checking for uchar... " >&6; }
6312 if test "${gcc_cv_type_uchar+set}" = set; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6318 #include <sys/types.h>
6321 main ()
6323 if ((uchar *)0) return 0;
6324 if (sizeof(uchar)) return 0;
6326 return 0;
6328 _ACEOF
6329 if ac_fn_c_try_compile "$LINENO"; then :
6330 ac_cv_type_uchar=yes
6331 else
6332 ac_cv_type_uchar=no
6334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
6337 $as_echo "$gcc_cv_type_uchar" >&6; }
6338 if test $ac_cv_type_uchar = yes; then
6340 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
6344 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
6345 # iconv() prototype.
6346 ac_ext=cpp
6347 ac_cpp='$CXXCPP $CPPFLAGS'
6348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6353 if test "X$prefix" = "XNONE"; then
6354 acl_final_prefix="$ac_default_prefix"
6355 else
6356 acl_final_prefix="$prefix"
6358 if test "X$exec_prefix" = "XNONE"; then
6359 acl_final_exec_prefix='${prefix}'
6360 else
6361 acl_final_exec_prefix="$exec_prefix"
6363 acl_save_prefix="$prefix"
6364 prefix="$acl_final_prefix"
6365 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6366 prefix="$acl_save_prefix"
6369 # Check whether --with-gnu-ld was given.
6370 if test "${with_gnu_ld+set}" = set; then :
6371 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6372 else
6373 with_gnu_ld=no
6376 # Prepare PATH_SEPARATOR.
6377 # The user is always right.
6378 if test "${PATH_SEPARATOR+set}" != set; then
6379 echo "#! /bin/sh" >conf$$.sh
6380 echo "exit 0" >>conf$$.sh
6381 chmod +x conf$$.sh
6382 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6383 PATH_SEPARATOR=';'
6384 else
6385 PATH_SEPARATOR=:
6387 rm -f conf$$.sh
6389 ac_prog=ld
6390 if test "$GCC" = yes; then
6391 # Check if gcc -print-prog-name=ld gives a path.
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6393 $as_echo_n "checking for ld used by GCC... " >&6; }
6394 case $host in
6395 *-*-mingw*)
6396 # gcc leaves a trailing carriage return which upsets mingw
6397 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6399 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6400 esac
6401 case $ac_prog in
6402 # Accept absolute paths.
6403 [\\/]* | [A-Za-z]:[\\/]*)
6404 re_direlt='/[^/][^/]*/\.\./'
6405 # Canonicalize the path of ld
6406 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6407 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6408 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6409 done
6410 test -z "$LD" && LD="$ac_prog"
6413 # If it fails, then pretend we aren't using GCC.
6414 ac_prog=ld
6417 # If it is relative, then search for the first ld in PATH.
6418 with_gnu_ld=unknown
6420 esac
6421 elif test "$with_gnu_ld" = yes; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6423 $as_echo_n "checking for GNU ld... " >&6; }
6424 else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6426 $as_echo_n "checking for non-GNU ld... " >&6; }
6428 if test "${acl_cv_path_LD+set}" = set; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6431 if test -z "$LD"; then
6432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6433 for ac_dir in $PATH; do
6434 test -z "$ac_dir" && ac_dir=.
6435 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6436 acl_cv_path_LD="$ac_dir/$ac_prog"
6437 # Check to see if the program is GNU ld. I'd rather use --version,
6438 # but apparently some GNU ld's only accept -v.
6439 # Break only if it was the GNU/non-GNU ld that we prefer.
6440 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6441 test "$with_gnu_ld" != no && break
6442 else
6443 test "$with_gnu_ld" != yes && break
6446 done
6447 IFS="$ac_save_ifs"
6448 else
6449 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6453 LD="$acl_cv_path_LD"
6454 if test -n "$LD"; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6456 $as_echo "$LD" >&6; }
6457 else
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459 $as_echo "no" >&6; }
6461 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6463 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6464 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6468 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6469 acl_cv_prog_gnu_ld=yes
6470 else
6471 acl_cv_prog_gnu_ld=no
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6475 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6476 with_gnu_ld=$acl_cv_prog_gnu_ld
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6481 $as_echo_n "checking for shared library run path origin... " >&6; }
6482 if test "${acl_cv_rpath+set}" = set; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6486 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6487 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6488 . ./conftest.sh
6489 rm -f ./conftest.sh
6490 acl_cv_rpath=done
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6494 $as_echo "$acl_cv_rpath" >&6; }
6495 wl="$acl_cv_wl"
6496 libext="$acl_cv_libext"
6497 shlibext="$acl_cv_shlibext"
6498 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6499 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6500 hardcode_direct="$acl_cv_hardcode_direct"
6501 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6502 # Check whether --enable-rpath was given.
6503 if test "${enable_rpath+set}" = set; then :
6504 enableval=$enable_rpath; :
6505 else
6506 enable_rpath=yes
6516 use_additional=yes
6518 acl_save_prefix="$prefix"
6519 prefix="$acl_final_prefix"
6520 acl_save_exec_prefix="$exec_prefix"
6521 exec_prefix="$acl_final_exec_prefix"
6523 eval additional_includedir=\"$includedir\"
6524 eval additional_libdir=\"$libdir\"
6526 exec_prefix="$acl_save_exec_prefix"
6527 prefix="$acl_save_prefix"
6530 # Check whether --with-libiconv-prefix was given.
6531 if test "${with_libiconv_prefix+set}" = set; then :
6532 withval=$with_libiconv_prefix;
6533 if test "X$withval" = "Xno"; then
6534 use_additional=no
6535 else
6536 if test "X$withval" = "X"; then
6538 acl_save_prefix="$prefix"
6539 prefix="$acl_final_prefix"
6540 acl_save_exec_prefix="$exec_prefix"
6541 exec_prefix="$acl_final_exec_prefix"
6543 eval additional_includedir=\"$includedir\"
6544 eval additional_libdir=\"$libdir\"
6546 exec_prefix="$acl_save_exec_prefix"
6547 prefix="$acl_save_prefix"
6549 else
6550 additional_includedir="$withval/include"
6551 additional_libdir="$withval/lib"
6557 LIBICONV=
6558 LTLIBICONV=
6559 INCICONV=
6560 rpathdirs=
6561 ltrpathdirs=
6562 names_already_handled=
6563 names_next_round='iconv '
6564 while test -n "$names_next_round"; do
6565 names_this_round="$names_next_round"
6566 names_next_round=
6567 for name in $names_this_round; do
6568 already_handled=
6569 for n in $names_already_handled; do
6570 if test "$n" = "$name"; then
6571 already_handled=yes
6572 break
6574 done
6575 if test -z "$already_handled"; then
6576 names_already_handled="$names_already_handled $name"
6577 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6578 eval value=\"\$HAVE_LIB$uppername\"
6579 if test -n "$value"; then
6580 if test "$value" = yes; then
6581 eval value=\"\$LIB$uppername\"
6582 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6583 eval value=\"\$LTLIB$uppername\"
6584 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6585 else
6588 else
6589 found_dir=
6590 found_la=
6591 found_so=
6592 found_a=
6593 if test $use_additional = yes; then
6594 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6595 found_dir="$additional_libdir"
6596 found_so="$additional_libdir/lib$name.$shlibext"
6597 if test -f "$additional_libdir/lib$name.la"; then
6598 found_la="$additional_libdir/lib$name.la"
6600 else
6601 if test -f "$additional_libdir/lib$name.$libext"; then
6602 found_dir="$additional_libdir"
6603 found_a="$additional_libdir/lib$name.$libext"
6604 if test -f "$additional_libdir/lib$name.la"; then
6605 found_la="$additional_libdir/lib$name.la"
6610 if test "X$found_dir" = "X"; then
6611 for x in $LDFLAGS $LTLIBICONV; do
6613 acl_save_prefix="$prefix"
6614 prefix="$acl_final_prefix"
6615 acl_save_exec_prefix="$exec_prefix"
6616 exec_prefix="$acl_final_exec_prefix"
6617 eval x=\"$x\"
6618 exec_prefix="$acl_save_exec_prefix"
6619 prefix="$acl_save_prefix"
6621 case "$x" in
6622 -L*)
6623 dir=`echo "X$x" | sed -e 's/^X-L//'`
6624 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6625 found_dir="$dir"
6626 found_so="$dir/lib$name.$shlibext"
6627 if test -f "$dir/lib$name.la"; then
6628 found_la="$dir/lib$name.la"
6630 else
6631 if test -f "$dir/lib$name.$libext"; then
6632 found_dir="$dir"
6633 found_a="$dir/lib$name.$libext"
6634 if test -f "$dir/lib$name.la"; then
6635 found_la="$dir/lib$name.la"
6640 esac
6641 if test "X$found_dir" != "X"; then
6642 break
6644 done
6646 if test "X$found_dir" != "X"; then
6647 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6648 if test "X$found_so" != "X"; then
6649 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6650 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6651 else
6652 haveit=
6653 for x in $ltrpathdirs; do
6654 if test "X$x" = "X$found_dir"; then
6655 haveit=yes
6656 break
6658 done
6659 if test -z "$haveit"; then
6660 ltrpathdirs="$ltrpathdirs $found_dir"
6662 if test "$hardcode_direct" = yes; then
6663 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6664 else
6665 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6666 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6667 haveit=
6668 for x in $rpathdirs; do
6669 if test "X$x" = "X$found_dir"; then
6670 haveit=yes
6671 break
6673 done
6674 if test -z "$haveit"; then
6675 rpathdirs="$rpathdirs $found_dir"
6677 else
6678 haveit=
6679 for x in $LDFLAGS $LIBICONV; do
6681 acl_save_prefix="$prefix"
6682 prefix="$acl_final_prefix"
6683 acl_save_exec_prefix="$exec_prefix"
6684 exec_prefix="$acl_final_exec_prefix"
6685 eval x=\"$x\"
6686 exec_prefix="$acl_save_exec_prefix"
6687 prefix="$acl_save_prefix"
6689 if test "X$x" = "X-L$found_dir"; then
6690 haveit=yes
6691 break
6693 done
6694 if test -z "$haveit"; then
6695 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6697 if test "$hardcode_minus_L" != no; then
6698 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6699 else
6700 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6705 else
6706 if test "X$found_a" != "X"; then
6707 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6708 else
6709 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6712 additional_includedir=
6713 case "$found_dir" in
6714 */lib | */lib/)
6715 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6716 additional_includedir="$basedir/include"
6718 esac
6719 if test "X$additional_includedir" != "X"; then
6720 if test "X$additional_includedir" != "X/usr/include"; then
6721 haveit=
6722 if test "X$additional_includedir" = "X/usr/local/include"; then
6723 if test -n "$GCC"; then
6724 case $host_os in
6725 linux*) haveit=yes;;
6726 esac
6729 if test -z "$haveit"; then
6730 for x in $CPPFLAGS $INCICONV; do
6732 acl_save_prefix="$prefix"
6733 prefix="$acl_final_prefix"
6734 acl_save_exec_prefix="$exec_prefix"
6735 exec_prefix="$acl_final_exec_prefix"
6736 eval x=\"$x\"
6737 exec_prefix="$acl_save_exec_prefix"
6738 prefix="$acl_save_prefix"
6740 if test "X$x" = "X-I$additional_includedir"; then
6741 haveit=yes
6742 break
6744 done
6745 if test -z "$haveit"; then
6746 if test -d "$additional_includedir"; then
6747 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6753 if test -n "$found_la"; then
6754 save_libdir="$libdir"
6755 case "$found_la" in
6756 */* | *\\*) . "$found_la" ;;
6757 *) . "./$found_la" ;;
6758 esac
6759 libdir="$save_libdir"
6760 for dep in $dependency_libs; do
6761 case "$dep" in
6762 -L*)
6763 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6764 if test "X$additional_libdir" != "X/usr/lib"; then
6765 haveit=
6766 if test "X$additional_libdir" = "X/usr/local/lib"; then
6767 if test -n "$GCC"; then
6768 case $host_os in
6769 linux*) haveit=yes;;
6770 esac
6773 if test -z "$haveit"; then
6774 haveit=
6775 for x in $LDFLAGS $LIBICONV; do
6777 acl_save_prefix="$prefix"
6778 prefix="$acl_final_prefix"
6779 acl_save_exec_prefix="$exec_prefix"
6780 exec_prefix="$acl_final_exec_prefix"
6781 eval x=\"$x\"
6782 exec_prefix="$acl_save_exec_prefix"
6783 prefix="$acl_save_prefix"
6785 if test "X$x" = "X-L$additional_libdir"; then
6786 haveit=yes
6787 break
6789 done
6790 if test -z "$haveit"; then
6791 if test -d "$additional_libdir"; then
6792 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6795 haveit=
6796 for x in $LDFLAGS $LTLIBICONV; do
6798 acl_save_prefix="$prefix"
6799 prefix="$acl_final_prefix"
6800 acl_save_exec_prefix="$exec_prefix"
6801 exec_prefix="$acl_final_exec_prefix"
6802 eval x=\"$x\"
6803 exec_prefix="$acl_save_exec_prefix"
6804 prefix="$acl_save_prefix"
6806 if test "X$x" = "X-L$additional_libdir"; then
6807 haveit=yes
6808 break
6810 done
6811 if test -z "$haveit"; then
6812 if test -d "$additional_libdir"; then
6813 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6819 -R*)
6820 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6821 if test "$enable_rpath" != no; then
6822 haveit=
6823 for x in $rpathdirs; do
6824 if test "X$x" = "X$dir"; then
6825 haveit=yes
6826 break
6828 done
6829 if test -z "$haveit"; then
6830 rpathdirs="$rpathdirs $dir"
6832 haveit=
6833 for x in $ltrpathdirs; do
6834 if test "X$x" = "X$dir"; then
6835 haveit=yes
6836 break
6838 done
6839 if test -z "$haveit"; then
6840 ltrpathdirs="$ltrpathdirs $dir"
6844 -l*)
6845 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6847 *.la)
6848 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6851 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6852 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6854 esac
6855 done
6857 else
6858 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6859 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6863 done
6864 done
6865 if test "X$rpathdirs" != "X"; then
6866 if test -n "$hardcode_libdir_separator"; then
6867 alldirs=
6868 for found_dir in $rpathdirs; do
6869 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6870 done
6871 acl_save_libdir="$libdir"
6872 libdir="$alldirs"
6873 eval flag=\"$hardcode_libdir_flag_spec\"
6874 libdir="$acl_save_libdir"
6875 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6876 else
6877 for found_dir in $rpathdirs; do
6878 acl_save_libdir="$libdir"
6879 libdir="$found_dir"
6880 eval flag=\"$hardcode_libdir_flag_spec\"
6881 libdir="$acl_save_libdir"
6882 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6883 done
6886 if test "X$ltrpathdirs" != "X"; then
6887 for found_dir in $ltrpathdirs; do
6888 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6889 done
6898 am_save_CPPFLAGS="$CPPFLAGS"
6900 for element in $INCICONV; do
6901 haveit=
6902 for x in $CPPFLAGS; do
6904 acl_save_prefix="$prefix"
6905 prefix="$acl_final_prefix"
6906 acl_save_exec_prefix="$exec_prefix"
6907 exec_prefix="$acl_final_exec_prefix"
6908 eval x=\"$x\"
6909 exec_prefix="$acl_save_exec_prefix"
6910 prefix="$acl_save_prefix"
6912 if test "X$x" = "X$element"; then
6913 haveit=yes
6914 break
6916 done
6917 if test -z "$haveit"; then
6918 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6920 done
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6924 $as_echo_n "checking for iconv... " >&6; }
6925 if test "${am_cv_func_iconv+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6929 am_cv_func_iconv="no, consider installing GNU libiconv"
6930 am_cv_lib_iconv=no
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6933 #include <stdlib.h>
6934 #include <iconv.h>
6936 main ()
6938 iconv_t cd = iconv_open("","");
6939 iconv(cd,NULL,NULL,NULL,NULL);
6940 iconv_close(cd);
6942 return 0;
6944 _ACEOF
6945 if ac_fn_cxx_try_link "$LINENO"; then :
6946 am_cv_func_iconv=yes
6948 rm -f core conftest.err conftest.$ac_objext \
6949 conftest$ac_exeext conftest.$ac_ext
6950 if test "$am_cv_func_iconv" != yes; then
6951 am_save_LIBS="$LIBS"
6952 LIBS="$LIBS $LIBICONV"
6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954 /* end confdefs.h. */
6955 #include <stdlib.h>
6956 #include <iconv.h>
6958 main ()
6960 iconv_t cd = iconv_open("","");
6961 iconv(cd,NULL,NULL,NULL,NULL);
6962 iconv_close(cd);
6964 return 0;
6966 _ACEOF
6967 if ac_fn_cxx_try_link "$LINENO"; then :
6968 am_cv_lib_iconv=yes
6969 am_cv_func_iconv=yes
6971 rm -f core conftest.err conftest.$ac_objext \
6972 conftest$ac_exeext conftest.$ac_ext
6973 LIBS="$am_save_LIBS"
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6978 $as_echo "$am_cv_func_iconv" >&6; }
6979 if test "$am_cv_func_iconv" = yes; then
6981 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6984 if test "$am_cv_lib_iconv" = yes; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6986 $as_echo_n "checking how to link with libiconv... " >&6; }
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6988 $as_echo "$LIBICONV" >&6; }
6989 else
6990 CPPFLAGS="$am_save_CPPFLAGS"
6991 LIBICONV=
6992 LTLIBICONV=
6997 if test "$am_cv_func_iconv" = yes; then
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6999 $as_echo_n "checking for iconv declaration... " >&6; }
7000 if test "${am_cv_proto_iconv+set}" = set; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7007 #include <stdlib.h>
7008 #include <iconv.h>
7009 extern
7010 #ifdef __cplusplus
7012 #endif
7013 #if defined(__STDC__) || defined(__cplusplus)
7014 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7015 #else
7016 size_t iconv();
7017 #endif
7020 main ()
7024 return 0;
7026 _ACEOF
7027 if ac_fn_cxx_try_compile "$LINENO"; then :
7028 am_cv_proto_iconv_arg1=""
7029 else
7030 am_cv_proto_iconv_arg1="const"
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 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);"
7036 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7038 }$am_cv_proto_iconv" >&5
7039 $as_echo "${ac_t:-
7040 }$am_cv_proto_iconv" >&6; }
7042 cat >>confdefs.h <<_ACEOF
7043 #define ICONV_CONST $am_cv_proto_iconv_arg1
7044 _ACEOF
7048 ac_ext=c
7049 ac_cpp='$CPP $CPPFLAGS'
7050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7055 # More defines and substitutions.
7056 PACKAGE="$PACKAGE_TARNAME"
7058 cat >>confdefs.h <<_ACEOF
7059 #define PACKAGE "$PACKAGE"
7060 _ACEOF
7064 if test "x$enable_nls" != xno; then
7065 USED_CATALOGS='$(CATALOGS)'
7066 else
7067 USED_CATALOGS=
7071 # Check whether --enable-maintainer-mode was given.
7072 if test "${enable_maintainer_mode+set}" = set; then :
7073 enableval=$enable_maintainer_mode;
7074 else
7075 enable_maintainer_mode=no
7079 if test "x$enable_maintainer_mode" = xno; then
7080 MAINT='#'
7081 else
7082 MAINT=
7086 # Check whether --enable-checking was given.
7087 if test "${enable_checking+set}" = set; then :
7088 enableval=$enable_checking;
7089 else
7090 enable_checking=no
7094 if test $enable_checking != no ; then
7096 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
7100 # Check whether --enable-canonical-system-headers was given.
7101 if test "${enable_canonical_system_headers+set}" = set; then :
7102 enableval=$enable_canonical_system_headers;
7103 else
7104 enable_canonical_system_headers=yes
7107 if test $enable_canonical_system_headers != no; then
7109 $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
7114 case $target in
7115 aarch64*-*-* | \
7116 alpha*-*-* | \
7117 arm*-*-*eabi* | \
7118 arm*-*-symbianelf* | \
7119 x86_64-*-* | \
7120 ia64-*-* | \
7121 hppa*64*-*-* | \
7122 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]* | \
7123 mips*-*-* | \
7124 mmix-*-* | \
7125 powerpc*-*-* | \
7126 rs6000*-*-* | \
7127 s390*-*-* | \
7128 sparc*-*-* | \
7129 spu-*-* | \
7130 sh[123456789lbe]*-*-* | sh-*-* | \
7131 tilegx-*-* | tilepro-*-* )
7132 need_64bit_hwint=yes ;;
7134 need_64bit_hwint=no ;;
7135 esac
7137 case $need_64bit_hwint:$ac_cv_sizeof_long in
7138 *:8 | no:*) host_wide_int=long ;;
7139 *) host_wide_int='long long' ;;
7140 esac
7144 cat >>confdefs.h <<_ACEOF
7145 #define HOST_WIDE_INT $host_wide_int
7146 _ACEOF
7149 case $target in
7150 i?86-* | x86_64-*)
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7155 main ()
7157 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
7159 return 0;
7161 _ACEOF
7162 if ac_fn_c_try_compile "$LINENO"; then :
7164 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
7167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7168 esac
7170 # Output.
7172 ac_config_headers="$ac_config_headers config.h:config.in"
7174 ac_config_files="$ac_config_files Makefile"
7176 cat >confcache <<\_ACEOF
7177 # This file is a shell script that caches the results of configure
7178 # tests run on this system so they can be shared between configure
7179 # scripts and configure runs, see configure's option --config-cache.
7180 # It is not useful on other systems. If it contains results you don't
7181 # want to keep, you may remove or edit it.
7183 # config.status only pays attention to the cache file if you give it
7184 # the --recheck option to rerun configure.
7186 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7187 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7188 # following values.
7190 _ACEOF
7192 # The following way of writing the cache mishandles newlines in values,
7193 # but we know of no workaround that is simple, portable, and efficient.
7194 # So, we kill variables containing newlines.
7195 # Ultrix sh set writes to stderr and can't be redirected directly,
7196 # and sets the high bit in the cache file unless we assign to the vars.
7198 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7199 eval ac_val=\$$ac_var
7200 case $ac_val in #(
7201 *${as_nl}*)
7202 case $ac_var in #(
7203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7204 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7205 esac
7206 case $ac_var in #(
7207 _ | IFS | as_nl) ;; #(
7208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7209 *) { eval $ac_var=; unset $ac_var;} ;;
7210 esac ;;
7211 esac
7212 done
7214 (set) 2>&1 |
7215 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7216 *${as_nl}ac_space=\ *)
7217 # `set' does not quote correctly, so add quotes: double-quote
7218 # substitution turns \\\\ into \\, and sed turns \\ into \.
7219 sed -n \
7220 "s/'/'\\\\''/g;
7221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7222 ;; #(
7224 # `set' quotes correctly as required by POSIX, so do not add quotes.
7225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7227 esac |
7228 sort
7230 sed '
7231 /^ac_cv_env_/b end
7232 t clear
7233 :clear
7234 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7235 t end
7236 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7237 :end' >>confcache
7238 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7239 if test -w "$cache_file"; then
7240 test "x$cache_file" != "x/dev/null" &&
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7242 $as_echo "$as_me: updating cache $cache_file" >&6;}
7243 cat confcache >$cache_file
7244 else
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7246 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7249 rm -f confcache
7251 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7252 # Let make expand exec_prefix.
7253 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7255 DEFS=-DHAVE_CONFIG_H
7257 ac_libobjs=
7258 ac_ltlibobjs=
7259 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7260 # 1. Remove the extension, and $U if already installed.
7261 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7262 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7263 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7264 # will be set to the directory where LIBOBJS objects are built.
7265 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7266 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7267 done
7268 LIBOBJS=$ac_libobjs
7270 LTLIBOBJS=$ac_ltlibobjs
7275 : ${CONFIG_STATUS=./config.status}
7276 ac_write_fail=0
7277 ac_clean_files_save=$ac_clean_files
7278 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7280 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7281 as_write_fail=0
7282 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7283 #! $SHELL
7284 # Generated by $as_me.
7285 # Run this file to recreate the current configuration.
7286 # Compiler output produced by configure, useful for debugging
7287 # configure, is in config.log if it exists.
7289 debug=false
7290 ac_cs_recheck=false
7291 ac_cs_silent=false
7293 SHELL=\${CONFIG_SHELL-$SHELL}
7294 export SHELL
7295 _ASEOF
7296 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7297 ## -------------------- ##
7298 ## M4sh Initialization. ##
7299 ## -------------------- ##
7301 # Be more Bourne compatible
7302 DUALCASE=1; export DUALCASE # for MKS sh
7303 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7304 emulate sh
7305 NULLCMD=:
7306 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7307 # is contrary to our usage. Disable this feature.
7308 alias -g '${1+"$@"}'='"$@"'
7309 setopt NO_GLOB_SUBST
7310 else
7311 case `(set -o) 2>/dev/null` in #(
7312 *posix*) :
7313 set -o posix ;; #(
7314 *) :
7316 esac
7320 as_nl='
7322 export as_nl
7323 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7324 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7325 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7326 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7327 # Prefer a ksh shell builtin over an external printf program on Solaris,
7328 # but without wasting forks for bash or zsh.
7329 if test -z "$BASH_VERSION$ZSH_VERSION" \
7330 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7331 as_echo='print -r --'
7332 as_echo_n='print -rn --'
7333 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7334 as_echo='printf %s\n'
7335 as_echo_n='printf %s'
7336 else
7337 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7338 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7339 as_echo_n='/usr/ucb/echo -n'
7340 else
7341 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7342 as_echo_n_body='eval
7343 arg=$1;
7344 case $arg in #(
7345 *"$as_nl"*)
7346 expr "X$arg" : "X\\(.*\\)$as_nl";
7347 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7348 esac;
7349 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7351 export as_echo_n_body
7352 as_echo_n='sh -c $as_echo_n_body as_echo'
7354 export as_echo_body
7355 as_echo='sh -c $as_echo_body as_echo'
7358 # The user is always right.
7359 if test "${PATH_SEPARATOR+set}" != set; then
7360 PATH_SEPARATOR=:
7361 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7362 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7363 PATH_SEPARATOR=';'
7368 # IFS
7369 # We need space, tab and new line, in precisely that order. Quoting is
7370 # there to prevent editors from complaining about space-tab.
7371 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7372 # splitting by setting IFS to empty value.)
7373 IFS=" "" $as_nl"
7375 # Find who we are. Look in the path if we contain no directory separator.
7376 case $0 in #((
7377 *[\\/]* ) as_myself=$0 ;;
7378 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7381 IFS=$as_save_IFS
7382 test -z "$as_dir" && as_dir=.
7383 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7384 done
7385 IFS=$as_save_IFS
7388 esac
7389 # We did not find ourselves, most probably we were run as `sh COMMAND'
7390 # in which case we are not to be found in the path.
7391 if test "x$as_myself" = x; then
7392 as_myself=$0
7394 if test ! -f "$as_myself"; then
7395 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7396 exit 1
7399 # Unset variables that we do not need and which cause bugs (e.g. in
7400 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7401 # suppresses any "Segmentation fault" message there. '((' could
7402 # trigger a bug in pdksh 5.2.14.
7403 for as_var in BASH_ENV ENV MAIL MAILPATH
7404 do eval test x\${$as_var+set} = xset \
7405 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7406 done
7407 PS1='$ '
7408 PS2='> '
7409 PS4='+ '
7411 # NLS nuisances.
7412 LC_ALL=C
7413 export LC_ALL
7414 LANGUAGE=C
7415 export LANGUAGE
7417 # CDPATH.
7418 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7421 # as_fn_error ERROR [LINENO LOG_FD]
7422 # ---------------------------------
7423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7425 # script with status $?, using 1 if that was 0.
7426 as_fn_error ()
7428 as_status=$?; test $as_status -eq 0 && as_status=1
7429 if test "$3"; then
7430 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7431 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7433 $as_echo "$as_me: error: $1" >&2
7434 as_fn_exit $as_status
7435 } # as_fn_error
7438 # as_fn_set_status STATUS
7439 # -----------------------
7440 # Set $? to STATUS, without forking.
7441 as_fn_set_status ()
7443 return $1
7444 } # as_fn_set_status
7446 # as_fn_exit STATUS
7447 # -----------------
7448 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7449 as_fn_exit ()
7451 set +e
7452 as_fn_set_status $1
7453 exit $1
7454 } # as_fn_exit
7456 # as_fn_unset VAR
7457 # ---------------
7458 # Portably unset VAR.
7459 as_fn_unset ()
7461 { eval $1=; unset $1;}
7463 as_unset=as_fn_unset
7464 # as_fn_append VAR VALUE
7465 # ----------------------
7466 # Append the text in VALUE to the end of the definition contained in VAR. Take
7467 # advantage of any shell optimizations that allow amortized linear growth over
7468 # repeated appends, instead of the typical quadratic growth present in naive
7469 # implementations.
7470 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7471 eval 'as_fn_append ()
7473 eval $1+=\$2
7475 else
7476 as_fn_append ()
7478 eval $1=\$$1\$2
7480 fi # as_fn_append
7482 # as_fn_arith ARG...
7483 # ------------------
7484 # Perform arithmetic evaluation on the ARGs, and store the result in the
7485 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7486 # must be portable across $(()) and expr.
7487 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7488 eval 'as_fn_arith ()
7490 as_val=$(( $* ))
7492 else
7493 as_fn_arith ()
7495 as_val=`expr "$@" || test $? -eq 1`
7497 fi # as_fn_arith
7500 if expr a : '\(a\)' >/dev/null 2>&1 &&
7501 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7502 as_expr=expr
7503 else
7504 as_expr=false
7507 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7508 as_basename=basename
7509 else
7510 as_basename=false
7513 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7514 as_dirname=dirname
7515 else
7516 as_dirname=false
7519 as_me=`$as_basename -- "$0" ||
7520 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7521 X"$0" : 'X\(//\)$' \| \
7522 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7523 $as_echo X/"$0" |
7524 sed '/^.*\/\([^/][^/]*\)\/*$/{
7525 s//\1/
7528 /^X\/\(\/\/\)$/{
7529 s//\1/
7532 /^X\/\(\/\).*/{
7533 s//\1/
7536 s/.*/./; q'`
7538 # Avoid depending upon Character Ranges.
7539 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7540 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7541 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7542 as_cr_digits='0123456789'
7543 as_cr_alnum=$as_cr_Letters$as_cr_digits
7545 ECHO_C= ECHO_N= ECHO_T=
7546 case `echo -n x` in #(((((
7547 -n*)
7548 case `echo 'xy\c'` in
7549 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7550 xy) ECHO_C='\c';;
7551 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7552 ECHO_T=' ';;
7553 esac;;
7555 ECHO_N='-n';;
7556 esac
7558 rm -f conf$$ conf$$.exe conf$$.file
7559 if test -d conf$$.dir; then
7560 rm -f conf$$.dir/conf$$.file
7561 else
7562 rm -f conf$$.dir
7563 mkdir conf$$.dir 2>/dev/null
7565 if (echo >conf$$.file) 2>/dev/null; then
7566 if ln -s conf$$.file conf$$ 2>/dev/null; then
7567 as_ln_s='ln -s'
7568 # ... but there are two gotchas:
7569 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7570 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7571 # In both cases, we have to default to `cp -p'.
7572 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7573 as_ln_s='cp -p'
7574 elif ln conf$$.file conf$$ 2>/dev/null; then
7575 as_ln_s=ln
7576 else
7577 as_ln_s='cp -p'
7579 else
7580 as_ln_s='cp -p'
7582 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7583 rmdir conf$$.dir 2>/dev/null
7586 # as_fn_mkdir_p
7587 # -------------
7588 # Create "$as_dir" as a directory, including parents if necessary.
7589 as_fn_mkdir_p ()
7592 case $as_dir in #(
7593 -*) as_dir=./$as_dir;;
7594 esac
7595 test -d "$as_dir" || eval $as_mkdir_p || {
7596 as_dirs=
7597 while :; do
7598 case $as_dir in #(
7599 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7600 *) as_qdir=$as_dir;;
7601 esac
7602 as_dirs="'$as_qdir' $as_dirs"
7603 as_dir=`$as_dirname -- "$as_dir" ||
7604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7605 X"$as_dir" : 'X\(//\)[^/]' \| \
7606 X"$as_dir" : 'X\(//\)$' \| \
7607 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7608 $as_echo X"$as_dir" |
7609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7610 s//\1/
7613 /^X\(\/\/\)[^/].*/{
7614 s//\1/
7617 /^X\(\/\/\)$/{
7618 s//\1/
7621 /^X\(\/\).*/{
7622 s//\1/
7625 s/.*/./; q'`
7626 test -d "$as_dir" && break
7627 done
7628 test -z "$as_dirs" || eval "mkdir $as_dirs"
7629 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7632 } # as_fn_mkdir_p
7633 if mkdir -p . 2>/dev/null; then
7634 as_mkdir_p='mkdir -p "$as_dir"'
7635 else
7636 test -d ./-p && rmdir ./-p
7637 as_mkdir_p=false
7640 if test -x / >/dev/null 2>&1; then
7641 as_test_x='test -x'
7642 else
7643 if ls -dL / >/dev/null 2>&1; then
7644 as_ls_L_option=L
7645 else
7646 as_ls_L_option=
7648 as_test_x='
7649 eval sh -c '\''
7650 if test -d "$1"; then
7651 test -d "$1/.";
7652 else
7653 case $1 in #(
7654 -*)set "./$1";;
7655 esac;
7656 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7657 ???[sx]*):;;*)false;;esac;fi
7658 '\'' sh
7661 as_executable_p=$as_test_x
7663 # Sed expression to map a string onto a valid CPP name.
7664 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7666 # Sed expression to map a string onto a valid variable name.
7667 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7670 exec 6>&1
7671 ## ----------------------------------- ##
7672 ## Main body of $CONFIG_STATUS script. ##
7673 ## ----------------------------------- ##
7674 _ASEOF
7675 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7678 # Save the log message, to keep $0 and so on meaningful, and to
7679 # report actual input values of CONFIG_FILES etc. instead of their
7680 # values after options handling.
7681 ac_log="
7682 This file was extended by cpplib $as_me , which was
7683 generated by GNU Autoconf 2.64. Invocation command line was
7685 CONFIG_FILES = $CONFIG_FILES
7686 CONFIG_HEADERS = $CONFIG_HEADERS
7687 CONFIG_LINKS = $CONFIG_LINKS
7688 CONFIG_COMMANDS = $CONFIG_COMMANDS
7689 $ $0 $@
7691 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7694 _ACEOF
7696 case $ac_config_files in *"
7697 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7698 esac
7700 case $ac_config_headers in *"
7701 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7702 esac
7705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7706 # Files that config.status was made for.
7707 config_files="$ac_config_files"
7708 config_headers="$ac_config_headers"
7709 config_commands="$ac_config_commands"
7711 _ACEOF
7713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7714 ac_cs_usage="\
7715 \`$as_me' instantiates files and other configuration actions
7716 from templates according to the current configuration. Unless the files
7717 and actions are specified as TAGs, all are instantiated by default.
7719 Usage: $0 [OPTION]... [TAG]...
7721 -h, --help print this help, then exit
7722 -V, --version print version number and configuration settings, then exit
7723 -q, --quiet, --silent
7724 do not print progress messages
7725 -d, --debug don't remove temporary files
7726 --recheck update $as_me by reconfiguring in the same conditions
7727 --file=FILE[:TEMPLATE]
7728 instantiate the configuration file FILE
7729 --header=FILE[:TEMPLATE]
7730 instantiate the configuration header FILE
7732 Configuration files:
7733 $config_files
7735 Configuration headers:
7736 $config_headers
7738 Configuration commands:
7739 $config_commands
7741 Report bugs to <gcc-bugs@gcc.gnu.org>."
7743 _ACEOF
7744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7745 ac_cs_version="\\
7746 cpplib config.status
7747 configured by $0, generated by GNU Autoconf 2.64,
7748 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7750 Copyright (C) 2009 Free Software Foundation, Inc.
7751 This config.status script is free software; the Free Software Foundation
7752 gives unlimited permission to copy, distribute and modify it."
7754 ac_pwd='$ac_pwd'
7755 srcdir='$srcdir'
7756 INSTALL='$INSTALL'
7757 test -n "\$AWK" || AWK=awk
7758 _ACEOF
7760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7761 # The default lists apply if the user does not specify any file.
7762 ac_need_defaults=:
7763 while test $# != 0
7765 case $1 in
7766 --*=*)
7767 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7768 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7769 ac_shift=:
7772 ac_option=$1
7773 ac_optarg=$2
7774 ac_shift=shift
7776 esac
7778 case $ac_option in
7779 # Handling of the options.
7780 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7781 ac_cs_recheck=: ;;
7782 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7783 $as_echo "$ac_cs_version"; exit ;;
7784 --debug | --debu | --deb | --de | --d | -d )
7785 debug=: ;;
7786 --file | --fil | --fi | --f )
7787 $ac_shift
7788 case $ac_optarg in
7789 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7790 esac
7791 as_fn_append CONFIG_FILES " '$ac_optarg'"
7792 ac_need_defaults=false;;
7793 --header | --heade | --head | --hea )
7794 $ac_shift
7795 case $ac_optarg in
7796 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7797 esac
7798 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7799 ac_need_defaults=false;;
7800 --he | --h)
7801 # Conflict between --help and --header
7802 as_fn_error "ambiguous option: \`$1'
7803 Try \`$0 --help' for more information.";;
7804 --help | --hel | -h )
7805 $as_echo "$ac_cs_usage"; exit ;;
7806 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7807 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7808 ac_cs_silent=: ;;
7810 # This is an error.
7811 -*) as_fn_error "unrecognized option: \`$1'
7812 Try \`$0 --help' for more information." ;;
7814 *) as_fn_append ac_config_targets " $1"
7815 ac_need_defaults=false ;;
7817 esac
7818 shift
7819 done
7821 ac_configure_extra_args=
7823 if $ac_cs_silent; then
7824 exec 6>/dev/null
7825 ac_configure_extra_args="$ac_configure_extra_args --silent"
7828 _ACEOF
7829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7830 if \$ac_cs_recheck; then
7831 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7832 shift
7833 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7834 CONFIG_SHELL='$SHELL'
7835 export CONFIG_SHELL
7836 exec "\$@"
7839 _ACEOF
7840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7841 exec 5>>config.log
7843 echo
7844 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7845 ## Running $as_me. ##
7846 _ASBOX
7847 $as_echo "$ac_log"
7848 } >&5
7850 _ACEOF
7851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7853 # INIT-COMMANDS
7855 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
7857 _ACEOF
7859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7861 # Handling of arguments.
7862 for ac_config_target in $ac_config_targets
7864 case $ac_config_target in
7865 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
7866 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7867 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7869 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7870 esac
7871 done
7874 # If the user did not use the arguments to specify the items to instantiate,
7875 # then the envvar interface is used. Set only those that are not.
7876 # We use the long form for the default assignment because of an extremely
7877 # bizarre bug on SunOS 4.1.3.
7878 if $ac_need_defaults; then
7879 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7880 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7881 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7884 # Have a temporary directory for convenience. Make it in the build tree
7885 # simply because there is no reason against having it here, and in addition,
7886 # creating and moving files from /tmp can sometimes cause problems.
7887 # Hook for its removal unless debugging.
7888 # Note that there is a small window in which the directory will not be cleaned:
7889 # after its creation but before its name has been assigned to `$tmp'.
7890 $debug ||
7892 tmp=
7893 trap 'exit_status=$?
7894 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7896 trap 'as_fn_exit 1' 1 2 13 15
7898 # Create a (secure) tmp directory for tmp files.
7901 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7902 test -n "$tmp" && test -d "$tmp"
7903 } ||
7905 tmp=./conf$$-$RANDOM
7906 (umask 077 && mkdir "$tmp")
7907 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7909 # Set up the scripts for CONFIG_FILES section.
7910 # No need to generate them if there are no CONFIG_FILES.
7911 # This happens for instance with `./config.status config.h'.
7912 if test -n "$CONFIG_FILES"; then
7915 ac_cr=`echo X | tr X '\015'`
7916 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7917 # But we know of no other shell where ac_cr would be empty at this
7918 # point, so we can use a bashism as a fallback.
7919 if test "x$ac_cr" = x; then
7920 eval ac_cr=\$\'\\r\'
7922 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7923 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7924 ac_cs_awk_cr='\r'
7925 else
7926 ac_cs_awk_cr=$ac_cr
7929 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7930 _ACEOF
7934 echo "cat >conf$$subs.awk <<_ACEOF" &&
7935 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7936 echo "_ACEOF"
7937 } >conf$$subs.sh ||
7938 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7939 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7940 ac_delim='%!_!# '
7941 for ac_last_try in false false false false false :; do
7942 . ./conf$$subs.sh ||
7943 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7945 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7946 if test $ac_delim_n = $ac_delim_num; then
7947 break
7948 elif $ac_last_try; then
7949 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7950 else
7951 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7953 done
7954 rm -f conf$$subs.sh
7956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7957 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7958 _ACEOF
7959 sed -n '
7961 s/^/S["/; s/!.*/"]=/
7964 s/^[^!]*!//
7965 :repl
7966 t repl
7967 s/'"$ac_delim"'$//
7968 t delim
7971 s/\(.\{148\}\).*/\1/
7972 t more1
7973 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7976 b repl
7977 :more1
7978 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7981 s/.\{148\}//
7982 t nl
7983 :delim
7985 s/\(.\{148\}\).*/\1/
7986 t more2
7987 s/["\\]/\\&/g; s/^/"/; s/$/"/
7990 :more2
7991 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7994 s/.\{148\}//
7995 t delim
7996 ' <conf$$subs.awk | sed '
7997 /^[^""]/{
7999 s/\n//
8001 ' >>$CONFIG_STATUS || ac_write_fail=1
8002 rm -f conf$$subs.awk
8003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8004 _ACAWK
8005 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8006 for (key in S) S_is_set[key] = 1
8007 FS = "\a"
8011 line = $ 0
8012 nfields = split(line, field, "@")
8013 substed = 0
8014 len = length(field[1])
8015 for (i = 2; i < nfields; i++) {
8016 key = field[i]
8017 keylen = length(key)
8018 if (S_is_set[key]) {
8019 value = S[key]
8020 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8021 len += length(value) + length(field[++i])
8022 substed = 1
8023 } else
8024 len += 1 + keylen
8027 print line
8030 _ACAWK
8031 _ACEOF
8032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8033 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8034 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8035 else
8037 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8038 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8039 _ACEOF
8041 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8042 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8043 # trailing colons and then remove the whole line if VPATH becomes empty
8044 # (actually we leave an empty line to preserve line numbers).
8045 if test "x$srcdir" = x.; then
8046 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8047 s/:*\$(srcdir):*/:/
8048 s/:*\${srcdir}:*/:/
8049 s/:*@srcdir@:*/:/
8050 s/^\([^=]*=[ ]*\):*/\1/
8051 s/:*$//
8052 s/^[^=]*=[ ]*$//
8056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8057 fi # test -n "$CONFIG_FILES"
8059 # Set up the scripts for CONFIG_HEADERS section.
8060 # No need to generate them if there are no CONFIG_HEADERS.
8061 # This happens for instance with `./config.status Makefile'.
8062 if test -n "$CONFIG_HEADERS"; then
8063 cat >"$tmp/defines.awk" <<\_ACAWK ||
8064 BEGIN {
8065 _ACEOF
8067 # Transform confdefs.h into an awk script `defines.awk', embedded as
8068 # here-document in config.status, that substitutes the proper values into
8069 # config.h.in to produce config.h.
8071 # Create a delimiter string that does not exist in confdefs.h, to ease
8072 # handling of long lines.
8073 ac_delim='%!_!# '
8074 for ac_last_try in false false :; do
8075 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8076 if test -z "$ac_t"; then
8077 break
8078 elif $ac_last_try; then
8079 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8080 else
8081 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8083 done
8085 # For the awk script, D is an array of macro values keyed by name,
8086 # likewise P contains macro parameters if any. Preserve backslash
8087 # newline sequences.
8089 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8090 sed -n '
8091 s/.\{148\}/&'"$ac_delim"'/g
8092 t rset
8093 :rset
8094 s/^[ ]*#[ ]*define[ ][ ]*/ /
8095 t def
8097 :def
8098 s/\\$//
8099 t bsnl
8100 s/["\\]/\\&/g
8101 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8102 D["\1"]=" \3"/p
8103 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8105 :bsnl
8106 s/["\\]/\\&/g
8107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8108 D["\1"]=" \3\\\\\\n"\\/p
8109 t cont
8110 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8111 t cont
8113 :cont
8115 s/.\{148\}/&'"$ac_delim"'/g
8116 t clear
8117 :clear
8118 s/\\$//
8119 t bsnlc
8120 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8122 :bsnlc
8123 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8124 b cont
8125 ' <confdefs.h | sed '
8126 s/'"$ac_delim"'/"\\\
8127 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8130 for (key in D) D_is_set[key] = 1
8131 FS = "\a"
8133 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8134 line = \$ 0
8135 split(line, arg, " ")
8136 if (arg[1] == "#") {
8137 defundef = arg[2]
8138 mac1 = arg[3]
8139 } else {
8140 defundef = substr(arg[1], 2)
8141 mac1 = arg[2]
8143 split(mac1, mac2, "(") #)
8144 macro = mac2[1]
8145 prefix = substr(line, 1, index(line, defundef) - 1)
8146 if (D_is_set[macro]) {
8147 # Preserve the white space surrounding the "#".
8148 print prefix "define", macro P[macro] D[macro]
8149 next
8150 } else {
8151 # Replace #undef with comments. This is necessary, for example,
8152 # in the case of _POSIX_SOURCE, which is predefined and required
8153 # on some systems where configure will not decide to define it.
8154 if (defundef == "undef") {
8155 print "/*", prefix defundef, macro, "*/"
8156 next
8160 { print }
8161 _ACAWK
8162 _ACEOF
8163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8164 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8165 fi # test -n "$CONFIG_HEADERS"
8168 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8169 shift
8170 for ac_tag
8172 case $ac_tag in
8173 :[FHLC]) ac_mode=$ac_tag; continue;;
8174 esac
8175 case $ac_mode$ac_tag in
8176 :[FHL]*:*);;
8177 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8178 :[FH]-) ac_tag=-:-;;
8179 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8180 esac
8181 ac_save_IFS=$IFS
8182 IFS=:
8183 set x $ac_tag
8184 IFS=$ac_save_IFS
8185 shift
8186 ac_file=$1
8187 shift
8189 case $ac_mode in
8190 :L) ac_source=$1;;
8191 :[FH])
8192 ac_file_inputs=
8193 for ac_f
8195 case $ac_f in
8196 -) ac_f="$tmp/stdin";;
8197 *) # Look for the file first in the build tree, then in the source tree
8198 # (if the path is not absolute). The absolute path cannot be DOS-style,
8199 # because $ac_f cannot contain `:'.
8200 test -f "$ac_f" ||
8201 case $ac_f in
8202 [\\/$]*) false;;
8203 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8204 esac ||
8205 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8206 esac
8207 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8208 as_fn_append ac_file_inputs " '$ac_f'"
8209 done
8211 # Let's still pretend it is `configure' which instantiates (i.e., don't
8212 # use $as_me), people would be surprised to read:
8213 # /* config.h. Generated by config.status. */
8214 configure_input='Generated from '`
8215 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8216 `' by configure.'
8217 if test x"$ac_file" != x-; then
8218 configure_input="$ac_file. $configure_input"
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8220 $as_echo "$as_me: creating $ac_file" >&6;}
8222 # Neutralize special characters interpreted by sed in replacement strings.
8223 case $configure_input in #(
8224 *\&* | *\|* | *\\* )
8225 ac_sed_conf_input=`$as_echo "$configure_input" |
8226 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8227 *) ac_sed_conf_input=$configure_input;;
8228 esac
8230 case $ac_tag in
8231 *:-:* | *:-) cat >"$tmp/stdin" \
8232 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8233 esac
8235 esac
8237 ac_dir=`$as_dirname -- "$ac_file" ||
8238 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8239 X"$ac_file" : 'X\(//\)[^/]' \| \
8240 X"$ac_file" : 'X\(//\)$' \| \
8241 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8242 $as_echo X"$ac_file" |
8243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8244 s//\1/
8247 /^X\(\/\/\)[^/].*/{
8248 s//\1/
8251 /^X\(\/\/\)$/{
8252 s//\1/
8255 /^X\(\/\).*/{
8256 s//\1/
8259 s/.*/./; q'`
8260 as_dir="$ac_dir"; as_fn_mkdir_p
8261 ac_builddir=.
8263 case "$ac_dir" in
8264 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8266 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8267 # A ".." for each directory in $ac_dir_suffix.
8268 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8269 case $ac_top_builddir_sub in
8270 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8271 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8272 esac ;;
8273 esac
8274 ac_abs_top_builddir=$ac_pwd
8275 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8276 # for backward compatibility:
8277 ac_top_builddir=$ac_top_build_prefix
8279 case $srcdir in
8280 .) # We are building in place.
8281 ac_srcdir=.
8282 ac_top_srcdir=$ac_top_builddir_sub
8283 ac_abs_top_srcdir=$ac_pwd ;;
8284 [\\/]* | ?:[\\/]* ) # Absolute name.
8285 ac_srcdir=$srcdir$ac_dir_suffix;
8286 ac_top_srcdir=$srcdir
8287 ac_abs_top_srcdir=$srcdir ;;
8288 *) # Relative name.
8289 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8290 ac_top_srcdir=$ac_top_build_prefix$srcdir
8291 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8292 esac
8293 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8296 case $ac_mode in
8299 # CONFIG_FILE
8302 case $INSTALL in
8303 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8304 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8305 esac
8306 _ACEOF
8308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8309 # If the template does not know about datarootdir, expand it.
8310 # FIXME: This hack should be removed a few years after 2.60.
8311 ac_datarootdir_hack=; ac_datarootdir_seen=
8312 ac_sed_dataroot='
8313 /datarootdir/ {
8317 /@datadir@/p
8318 /@docdir@/p
8319 /@infodir@/p
8320 /@localedir@/p
8321 /@mandir@/p'
8322 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8323 *datarootdir*) ac_datarootdir_seen=yes;;
8324 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8326 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8327 _ACEOF
8328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8329 ac_datarootdir_hack='
8330 s&@datadir@&$datadir&g
8331 s&@docdir@&$docdir&g
8332 s&@infodir@&$infodir&g
8333 s&@localedir@&$localedir&g
8334 s&@mandir@&$mandir&g
8335 s&\\\${datarootdir}&$datarootdir&g' ;;
8336 esac
8337 _ACEOF
8339 # Neutralize VPATH when `$srcdir' = `.'.
8340 # Shell code in configure.ac might set extrasub.
8341 # FIXME: do we really want to maintain this feature?
8342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8343 ac_sed_extra="$ac_vpsub
8344 $extrasub
8345 _ACEOF
8346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8349 s|@configure_input@|$ac_sed_conf_input|;t t
8350 s&@top_builddir@&$ac_top_builddir_sub&;t t
8351 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8352 s&@srcdir@&$ac_srcdir&;t t
8353 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8354 s&@top_srcdir@&$ac_top_srcdir&;t t
8355 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8356 s&@builddir@&$ac_builddir&;t t
8357 s&@abs_builddir@&$ac_abs_builddir&;t t
8358 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8359 s&@INSTALL@&$ac_INSTALL&;t t
8360 $ac_datarootdir_hack
8362 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8363 || as_fn_error "could not create $ac_file" "$LINENO" 5
8365 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8366 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8369 which seems to be undefined. Please make sure it is defined." >&5
8370 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8371 which seems to be undefined. Please make sure it is defined." >&2;}
8373 rm -f "$tmp/stdin"
8374 case $ac_file in
8375 -) cat "$tmp/out" && rm -f "$tmp/out";;
8376 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8377 esac \
8378 || as_fn_error "could not create $ac_file" "$LINENO" 5
8382 # CONFIG_HEADER
8384 if test x"$ac_file" != x-; then
8386 $as_echo "/* $configure_input */" \
8387 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8388 } >"$tmp/config.h" \
8389 || as_fn_error "could not create $ac_file" "$LINENO" 5
8390 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8392 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8393 else
8394 rm -f "$ac_file"
8395 mv "$tmp/config.h" "$ac_file" \
8396 || as_fn_error "could not create $ac_file" "$LINENO" 5
8398 else
8399 $as_echo "/* $configure_input */" \
8400 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8401 || as_fn_error "could not create -" "$LINENO" 5
8405 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8406 $as_echo "$as_me: executing $ac_file commands" >&6;}
8408 esac
8411 case $ac_file$ac_mode in
8412 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8413 "config.h":H) echo timestamp > stamp-h1 ;;
8415 esac
8416 done # for ac_tag
8419 as_fn_exit 0
8420 _ACEOF
8421 ac_clean_files=$ac_clean_files_save
8423 test $ac_write_fail = 0 ||
8424 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8427 # configure is writing to config.log, and then calls config.status.
8428 # config.status does its own redirection, appending to config.log.
8429 # Unfortunately, on DOS this fails, as config.log is still kept open
8430 # by configure, so config.status won't be able to write to it; its
8431 # output is simply discarded. So we exec the FD to /dev/null,
8432 # effectively closing config.log, so it can be properly (re)opened and
8433 # appended to by config.status. When coming back to configure, we
8434 # need to make the FD available again.
8435 if test "$no_create" != yes; then
8436 ac_cs_success=:
8437 ac_config_status_args=
8438 test "$silent" = yes &&
8439 ac_config_status_args="$ac_config_status_args --quiet"
8440 exec 5>/dev/null
8441 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8442 exec 5>>config.log
8443 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8444 # would make configure fail if this is the last instruction.
8445 $ac_cs_success || as_fn_exit $?
8447 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8449 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}