PR c++/84454 - ICE with pack expansion in signature.
[official-gcc.git] / libcpp / configure
blob12c1907ed40dfe77783ff90df7a1ac2fce4382c5
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for cpplib .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: gcc-bugs@gcc.gnu.org about your system, including any
233 $0: error possibly output before this message. Then install
234 $0: a modern shell, or manually run the script under such a
235 $0: shell if you do have one."
237 exit 1
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
255 { eval $1=; unset $1;}
257 as_unset=as_fn_unset
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
264 return $1
265 } # as_fn_set_status
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
308 /^X\(\/\/\)$/{
309 s//\1/
312 /^X\(\/\).*/{
313 s//\1/
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
333 eval $1+=\$2
335 else
336 as_fn_append ()
338 eval $1=\$$1\$2
340 fi # as_fn_append
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
350 as_val=$(( $* ))
352 else
353 as_fn_arith ()
355 as_val=`expr "$@" || test $? -eq 1`
357 fi # as_fn_arith
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
404 /^X\/\(\/\/\)$/{
405 s//\1/
408 /^X\/\(\/\).*/{
409 s//\1/
412 s/.*/./; q'`
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
435 :lineno
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
463 ECHO_N='-n';;
464 esac
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
487 else
488 as_ln_s='cp -p'
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 exec 7<&0 </dev/null 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='cpplib'
551 PACKAGE_TARNAME='cpplib'
552 PACKAGE_VERSION=' '
553 PACKAGE_STRING='cpplib '
554 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
555 PACKAGE_URL=''
557 ac_unique_file="ucnid.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_subst_vars='LTLIBOBJS
595 PICFLAG
596 MAINT
597 USED_CATALOGS
598 PACKAGE
599 LTLIBICONV
600 LIBICONV
601 CATOBJEXT
602 GENCAT
603 INSTOBJEXT
604 DATADIRNAME
605 CATALOGS
606 POSUB
607 GMSGFMT
608 XGETTEXT
609 INCINTL
610 LIBINTL_DEP
611 LIBINTL
612 USE_NLS
613 ALLOCA
614 LIBOBJS
615 CXXDEPMODE
616 DEPDIR
617 am__leading_dot
618 WERROR
619 noexception_flags
620 WARN_PEDANTIC
621 c_warn
622 warn
623 AUTOHEADER
624 AUTOCONF
625 ACLOCAL
626 EGREP
627 GREP
629 RANLIB
630 ac_ct_CXX
631 CXXFLAGS
633 OBJEXT
634 EXEEXT
635 ac_ct_CC
636 CPPFLAGS
637 LDFLAGS
638 CFLAGS
640 INSTALL_DATA
641 INSTALL_SCRIPT
642 INSTALL_PROGRAM
643 SET_MAKE
644 target_os
645 target_vendor
646 target_cpu
647 target
648 host_os
649 host_vendor
650 host_cpu
651 host
652 build_os
653 build_vendor
654 build_cpu
655 build
656 target_alias
657 host_alias
658 build_alias
659 LIBS
660 ECHO_T
661 ECHO_N
662 ECHO_C
663 DEFS
664 mandir
665 localedir
666 libdir
667 psdir
668 pdfdir
669 dvidir
670 htmldir
671 infodir
672 docdir
673 oldincludedir
674 includedir
675 localstatedir
676 sharedstatedir
677 sysconfdir
678 datadir
679 datarootdir
680 libexecdir
681 sbindir
682 bindir
683 program_transform_name
684 prefix
685 exec_prefix
686 PACKAGE_URL
687 PACKAGE_BUGREPORT
688 PACKAGE_STRING
689 PACKAGE_VERSION
690 PACKAGE_TARNAME
691 PACKAGE_NAME
692 PATH_SEPARATOR
693 SHELL'
694 ac_subst_files=''
695 ac_user_opts='
696 enable_option_checking
697 enable_largefile
698 enable_werror_always
699 with_gnu_ld
700 enable_rpath
701 with_libiconv_prefix
702 enable_maintainer_mode
703 enable_checking
704 enable_canonical_system_headers
705 enable_host_shared
706 enable_valgrind_annotations
708 ac_precious_vars='build_alias
709 host_alias
710 target_alias
712 CFLAGS
713 LDFLAGS
714 LIBS
715 CPPFLAGS
717 CXXFLAGS
719 CPP'
722 # Initialize some variables set by options.
723 ac_init_help=
724 ac_init_version=false
725 ac_unrecognized_opts=
726 ac_unrecognized_sep=
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
729 cache_file=/dev/null
730 exec_prefix=NONE
731 no_create=
732 no_recursion=
733 prefix=NONE
734 program_prefix=NONE
735 program_suffix=NONE
736 program_transform_name=s,x,x,
737 silent=
738 site=
739 srcdir=
740 verbose=
741 x_includes=NONE
742 x_libraries=NONE
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir='${exec_prefix}/bin'
751 sbindir='${exec_prefix}/sbin'
752 libexecdir='${exec_prefix}/libexec'
753 datarootdir='${prefix}/share'
754 datadir='${datarootdir}'
755 sysconfdir='${prefix}/etc'
756 sharedstatedir='${prefix}/com'
757 localstatedir='${prefix}/var'
758 includedir='${prefix}/include'
759 oldincludedir='/usr/include'
760 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
761 infodir='${datarootdir}/info'
762 htmldir='${docdir}'
763 dvidir='${docdir}'
764 pdfdir='${docdir}'
765 psdir='${docdir}'
766 libdir='${exec_prefix}/lib'
767 localedir='${datarootdir}/locale'
768 mandir='${datarootdir}/man'
770 ac_prev=
771 ac_dashdash=
772 for ac_option
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
776 eval $ac_prev=\$ac_option
777 ac_prev=
778 continue
781 case $ac_option in
782 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
783 *) ac_optarg=yes ;;
784 esac
786 # Accept the important Cygnus configure options, so we can diagnose typos.
788 case $ac_dashdash$ac_option in
790 ac_dashdash=yes ;;
792 -bindir | --bindir | --bindi | --bind | --bin | --bi)
793 ac_prev=bindir ;;
794 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
795 bindir=$ac_optarg ;;
797 -build | --build | --buil | --bui | --bu)
798 ac_prev=build_alias ;;
799 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
800 build_alias=$ac_optarg ;;
802 -cache-file | --cache-file | --cache-fil | --cache-fi \
803 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
804 ac_prev=cache_file ;;
805 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
806 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
807 cache_file=$ac_optarg ;;
809 --config-cache | -C)
810 cache_file=config.cache ;;
812 -datadir | --datadir | --datadi | --datad)
813 ac_prev=datadir ;;
814 -datadir=* | --datadir=* | --datadi=* | --datad=*)
815 datadir=$ac_optarg ;;
817 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
818 | --dataroo | --dataro | --datar)
819 ac_prev=datarootdir ;;
820 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
821 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
822 datarootdir=$ac_optarg ;;
824 -disable-* | --disable-*)
825 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
826 # Reject names that are not valid shell variable names.
827 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
828 as_fn_error "invalid feature name: $ac_useropt"
829 ac_useropt_orig=$ac_useropt
830 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
831 case $ac_user_opts in
833 "enable_$ac_useropt"
834 "*) ;;
835 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
836 ac_unrecognized_sep=', ';;
837 esac
838 eval enable_$ac_useropt=no ;;
840 -docdir | --docdir | --docdi | --doc | --do)
841 ac_prev=docdir ;;
842 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
843 docdir=$ac_optarg ;;
845 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
846 ac_prev=dvidir ;;
847 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
848 dvidir=$ac_optarg ;;
850 -enable-* | --enable-*)
851 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
854 as_fn_error "invalid feature name: $ac_useropt"
855 ac_useropt_orig=$ac_useropt
856 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
857 case $ac_user_opts in
859 "enable_$ac_useropt"
860 "*) ;;
861 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
862 ac_unrecognized_sep=', ';;
863 esac
864 eval enable_$ac_useropt=\$ac_optarg ;;
866 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
867 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
868 | --exec | --exe | --ex)
869 ac_prev=exec_prefix ;;
870 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
871 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
872 | --exec=* | --exe=* | --ex=*)
873 exec_prefix=$ac_optarg ;;
875 -gas | --gas | --ga | --g)
876 # Obsolete; use --with-gas.
877 with_gas=yes ;;
879 -help | --help | --hel | --he | -h)
880 ac_init_help=long ;;
881 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
882 ac_init_help=recursive ;;
883 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
884 ac_init_help=short ;;
886 -host | --host | --hos | --ho)
887 ac_prev=host_alias ;;
888 -host=* | --host=* | --hos=* | --ho=*)
889 host_alias=$ac_optarg ;;
891 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
892 ac_prev=htmldir ;;
893 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
894 | --ht=*)
895 htmldir=$ac_optarg ;;
897 -includedir | --includedir | --includedi | --included | --include \
898 | --includ | --inclu | --incl | --inc)
899 ac_prev=includedir ;;
900 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
901 | --includ=* | --inclu=* | --incl=* | --inc=*)
902 includedir=$ac_optarg ;;
904 -infodir | --infodir | --infodi | --infod | --info | --inf)
905 ac_prev=infodir ;;
906 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
907 infodir=$ac_optarg ;;
909 -libdir | --libdir | --libdi | --libd)
910 ac_prev=libdir ;;
911 -libdir=* | --libdir=* | --libdi=* | --libd=*)
912 libdir=$ac_optarg ;;
914 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
915 | --libexe | --libex | --libe)
916 ac_prev=libexecdir ;;
917 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
918 | --libexe=* | --libex=* | --libe=*)
919 libexecdir=$ac_optarg ;;
921 -localedir | --localedir | --localedi | --localed | --locale)
922 ac_prev=localedir ;;
923 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
924 localedir=$ac_optarg ;;
926 -localstatedir | --localstatedir | --localstatedi | --localstated \
927 | --localstate | --localstat | --localsta | --localst | --locals)
928 ac_prev=localstatedir ;;
929 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
930 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
931 localstatedir=$ac_optarg ;;
933 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
934 ac_prev=mandir ;;
935 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
936 mandir=$ac_optarg ;;
938 -nfp | --nfp | --nf)
939 # Obsolete; use --without-fp.
940 with_fp=no ;;
942 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
943 | --no-cr | --no-c | -n)
944 no_create=yes ;;
946 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
947 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948 no_recursion=yes ;;
950 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
951 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
952 | --oldin | --oldi | --old | --ol | --o)
953 ac_prev=oldincludedir ;;
954 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
955 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
956 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
957 oldincludedir=$ac_optarg ;;
959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
960 ac_prev=prefix ;;
961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962 prefix=$ac_optarg ;;
964 -program-prefix | --program-prefix | --program-prefi | --program-pref \
965 | --program-pre | --program-pr | --program-p)
966 ac_prev=program_prefix ;;
967 -program-prefix=* | --program-prefix=* | --program-prefi=* \
968 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
969 program_prefix=$ac_optarg ;;
971 -program-suffix | --program-suffix | --program-suffi | --program-suff \
972 | --program-suf | --program-su | --program-s)
973 ac_prev=program_suffix ;;
974 -program-suffix=* | --program-suffix=* | --program-suffi=* \
975 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
976 program_suffix=$ac_optarg ;;
978 -program-transform-name | --program-transform-name \
979 | --program-transform-nam | --program-transform-na \
980 | --program-transform-n | --program-transform- \
981 | --program-transform | --program-transfor \
982 | --program-transfo | --program-transf \
983 | --program-trans | --program-tran \
984 | --progr-tra | --program-tr | --program-t)
985 ac_prev=program_transform_name ;;
986 -program-transform-name=* | --program-transform-name=* \
987 | --program-transform-nam=* | --program-transform-na=* \
988 | --program-transform-n=* | --program-transform-=* \
989 | --program-transform=* | --program-transfor=* \
990 | --program-transfo=* | --program-transf=* \
991 | --program-trans=* | --program-tran=* \
992 | --progr-tra=* | --program-tr=* | --program-t=*)
993 program_transform_name=$ac_optarg ;;
995 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
996 ac_prev=pdfdir ;;
997 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998 pdfdir=$ac_optarg ;;
1000 -psdir | --psdir | --psdi | --psd | --ps)
1001 ac_prev=psdir ;;
1002 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003 psdir=$ac_optarg ;;
1005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1006 | -silent | --silent | --silen | --sile | --sil)
1007 silent=yes ;;
1009 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1010 ac_prev=sbindir ;;
1011 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1012 | --sbi=* | --sb=*)
1013 sbindir=$ac_optarg ;;
1015 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1016 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1017 | --sharedst | --shareds | --shared | --share | --shar \
1018 | --sha | --sh)
1019 ac_prev=sharedstatedir ;;
1020 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1021 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1022 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1023 | --sha=* | --sh=*)
1024 sharedstatedir=$ac_optarg ;;
1026 -site | --site | --sit)
1027 ac_prev=site ;;
1028 -site=* | --site=* | --sit=*)
1029 site=$ac_optarg ;;
1031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1032 ac_prev=srcdir ;;
1033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1034 srcdir=$ac_optarg ;;
1036 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1037 | --syscon | --sysco | --sysc | --sys | --sy)
1038 ac_prev=sysconfdir ;;
1039 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1040 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1041 sysconfdir=$ac_optarg ;;
1043 -target | --target | --targe | --targ | --tar | --ta | --t)
1044 ac_prev=target_alias ;;
1045 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1046 target_alias=$ac_optarg ;;
1048 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 verbose=yes ;;
1051 -version | --version | --versio | --versi | --vers | -V)
1052 ac_init_version=: ;;
1054 -with-* | --with-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error "invalid package name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "with_$ac_useropt"
1064 "*) ;;
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1067 esac
1068 eval with_$ac_useropt=\$ac_optarg ;;
1070 -without-* | --without-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error "invalid package name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "with_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval with_$ac_useropt=no ;;
1086 --x)
1087 # Obsolete; use --with-x.
1088 with_x=yes ;;
1090 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1091 | --x-incl | --x-inc | --x-in | --x-i)
1092 ac_prev=x_includes ;;
1093 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1094 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1095 x_includes=$ac_optarg ;;
1097 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1098 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1099 ac_prev=x_libraries ;;
1100 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1101 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1102 x_libraries=$ac_optarg ;;
1104 -*) as_fn_error "unrecognized option: \`$ac_option'
1105 Try \`$0 --help' for more information."
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 case $ac_envvar in #(
1112 '' | [0-9]* | *[!_$as_cr_alnum]* )
1113 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1114 esac
1115 eval $ac_envvar=\$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 esac
1127 done
1129 if test -n "$ac_prev"; then
1130 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1131 as_fn_error "missing argument to $ac_option"
1134 if test -n "$ac_unrecognized_opts"; then
1135 case $enable_option_checking in
1136 no) ;;
1137 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1138 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1139 esac
1142 # Check all directory arguments for consistency.
1143 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1148 eval ac_val=\$$ac_var
1149 # Remove trailing slashes.
1150 case $ac_val in
1151 */ )
1152 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1153 eval $ac_var=\$ac_val;;
1154 esac
1155 # Be sure to have absolute directory names.
1156 case $ac_val in
1157 [\\/$]* | ?:[\\/]* ) continue;;
1158 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1159 esac
1160 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1161 done
1163 # There might be people who depend on the old broken behavior: `$host'
1164 # used to hold the argument of --host etc.
1165 # FIXME: To remove some day.
1166 build=$build_alias
1167 host=$host_alias
1168 target=$target_alias
1170 # FIXME: To remove some day.
1171 if test "x$host_alias" != x; then
1172 if test "x$build_alias" = x; then
1173 cross_compiling=maybe
1174 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1175 If a cross compiler is detected then cross compile mode will be used." >&2
1176 elif test "x$build_alias" != "x$host_alias"; then
1177 cross_compiling=yes
1181 ac_tool_prefix=
1182 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1184 test "$silent" = yes && exec 6>/dev/null
1187 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1188 ac_ls_di=`ls -di .` &&
1189 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1190 as_fn_error "working directory cannot be determined"
1191 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1192 as_fn_error "pwd does not report name of working directory"
1195 # Find the source files, if location was not specified.
1196 if test -z "$srcdir"; then
1197 ac_srcdir_defaulted=yes
1198 # Try the directory containing this script, then the parent directory.
1199 ac_confdir=`$as_dirname -- "$as_myself" ||
1200 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1201 X"$as_myself" : 'X\(//\)[^/]' \| \
1202 X"$as_myself" : 'X\(//\)$' \| \
1203 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1204 $as_echo X"$as_myself" |
1205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1206 s//\1/
1209 /^X\(\/\/\)[^/].*/{
1210 s//\1/
1213 /^X\(\/\/\)$/{
1214 s//\1/
1217 /^X\(\/\).*/{
1218 s//\1/
1221 s/.*/./; q'`
1222 srcdir=$ac_confdir
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1224 srcdir=..
1226 else
1227 ac_srcdir_defaulted=no
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1230 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1231 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1233 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1234 ac_abs_confdir=`(
1235 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1236 pwd)`
1237 # When building in place, set srcdir=.
1238 if test "$ac_abs_confdir" = "$ac_pwd"; then
1239 srcdir=.
1241 # Remove unnecessary trailing slashes from srcdir.
1242 # Double slashes in file names in object file debugging info
1243 # mess up M-x gdb in Emacs.
1244 case $srcdir in
1245 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1246 esac
1247 for ac_var in $ac_precious_vars; do
1248 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1249 eval ac_env_${ac_var}_value=\$${ac_var}
1250 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1251 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1252 done
1255 # Report the --help message.
1257 if test "$ac_init_help" = "long"; then
1258 # Omit some internal or obsolete options to make the list less imposing.
1259 # This message is too long to be a string in the A/UX 3.1 sh.
1260 cat <<_ACEOF
1261 \`configure' configures cpplib to adapt to many kinds of systems.
1263 Usage: $0 [OPTION]... [VAR=VALUE]...
1265 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1266 VAR=VALUE. See below for descriptions of some of the useful variables.
1268 Defaults for the options are specified in brackets.
1270 Configuration:
1271 -h, --help display this help and exit
1272 --help=short display options specific to this package
1273 --help=recursive display the short help of all the included packages
1274 -V, --version display version information and exit
1275 -q, --quiet, --silent do not print \`checking...' messages
1276 --cache-file=FILE cache test results in FILE [disabled]
1277 -C, --config-cache alias for \`--cache-file=config.cache'
1278 -n, --no-create do not create output files
1279 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1281 Installation directories:
1282 --prefix=PREFIX install architecture-independent files in PREFIX
1283 [$ac_default_prefix]
1284 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1285 [PREFIX]
1287 By default, \`make install' will install all the files in
1288 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1289 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1290 for instance \`--prefix=\$HOME'.
1292 For better control, use the options below.
1294 Fine tuning of the installation directories:
1295 --bindir=DIR user executables [EPREFIX/bin]
1296 --sbindir=DIR system admin executables [EPREFIX/sbin]
1297 --libexecdir=DIR program executables [EPREFIX/libexec]
1298 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1299 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1300 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1301 --libdir=DIR object code libraries [EPREFIX/lib]
1302 --includedir=DIR C header files [PREFIX/include]
1303 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1304 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1305 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1306 --infodir=DIR info documentation [DATAROOTDIR/info]
1307 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1308 --mandir=DIR man documentation [DATAROOTDIR/man]
1309 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
1310 --htmldir=DIR html documentation [DOCDIR]
1311 --dvidir=DIR dvi documentation [DOCDIR]
1312 --pdfdir=DIR pdf documentation [DOCDIR]
1313 --psdir=DIR ps documentation [DOCDIR]
1314 _ACEOF
1316 cat <<\_ACEOF
1318 System types:
1319 --build=BUILD configure for building on BUILD [guessed]
1320 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1321 --target=TARGET configure for building compilers for TARGET [HOST]
1322 _ACEOF
1325 if test -n "$ac_init_help"; then
1326 case $ac_init_help in
1327 short | recursive ) echo "Configuration of cpplib :";;
1328 esac
1329 cat <<\_ACEOF
1331 Optional Features:
1332 --disable-option-checking ignore unrecognized --enable/--with options
1333 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1334 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1335 --disable-largefile omit support for large files
1336 --enable-werror-always enable -Werror despite compiler version
1337 --disable-rpath do not hardcode runtime library paths
1338 --enable-maintainer-mode enable rules only needed by maintainers
1339 --enable-checking[=LIST]
1340 enable expensive run-time checks. With LIST, enable
1341 only specific categories of checks. Categories are:
1342 yes,no,all,none,release. Flags are: misc,valgrind or
1343 other strings
1344 --enable-canonical-system-headers
1345 enable or disable system headers canonicalization
1346 --enable-host-shared build host code as shared libraries
1347 --enable-valgrind-annotations
1348 enable valgrind runtime interaction
1350 Optional Packages:
1351 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1352 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1353 --with-gnu-ld assume the C compiler uses GNU ld default=no
1354 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1355 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1357 Some influential environment variables:
1358 CC C compiler command
1359 CFLAGS C compiler flags
1360 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1361 nonstandard directory <lib dir>
1362 LIBS libraries to pass to the linker, e.g. -l<library>
1363 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1364 you have headers in a nonstandard directory <include dir>
1365 CXX C++ compiler command
1366 CXXFLAGS C++ compiler flags
1367 CPP C preprocessor
1369 Use these variables to override the choices made by `configure' or to help
1370 it to find libraries and programs with nonstandard names/locations.
1372 Report bugs to <gcc-bugs@gcc.gnu.org>.
1373 _ACEOF
1374 ac_status=$?
1377 if test "$ac_init_help" = "recursive"; then
1378 # If there are subdirs, report their specific --help.
1379 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1380 test -d "$ac_dir" ||
1381 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1382 continue
1383 ac_builddir=.
1385 case "$ac_dir" in
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394 esac ;;
1395 esac
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1401 case $srcdir in
1402 .) # We are building in place.
1403 ac_srcdir=.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1410 *) # Relative name.
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1414 esac
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1425 else
1426 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427 fi || ac_status=$?
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1429 done
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1434 cat <<\_ACEOF
1435 cpplib configure
1436 generated by GNU Autoconf 2.64
1438 Copyright (C) 2009 Free Software Foundation, Inc.
1439 This configure script is free software; the Free Software Foundation
1440 gives unlimited permission to copy, distribute and modify it.
1441 _ACEOF
1442 exit
1445 ## ------------------------ ##
1446 ## Autoconf initialization. ##
1447 ## ------------------------ ##
1449 # ac_fn_c_try_compile LINENO
1450 # --------------------------
1451 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1452 ac_fn_c_try_compile ()
1454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1455 rm -f conftest.$ac_objext
1456 if { { ac_try="$ac_compile"
1457 case "(($ac_try" in
1458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1459 *) ac_try_echo=$ac_try;;
1460 esac
1461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1462 $as_echo "$ac_try_echo"; } >&5
1463 (eval "$ac_compile") 2>conftest.err
1464 ac_status=$?
1465 if test -s conftest.err; then
1466 grep -v '^ *+' conftest.err >conftest.er1
1467 cat conftest.er1 >&5
1468 mv -f conftest.er1 conftest.err
1470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1471 test $ac_status = 0; } && {
1472 test -z "$ac_c_werror_flag" ||
1473 test ! -s conftest.err
1474 } && test -s conftest.$ac_objext; then :
1475 ac_retval=0
1476 else
1477 $as_echo "$as_me: failed program was:" >&5
1478 sed 's/^/| /' conftest.$ac_ext >&5
1480 ac_retval=1
1482 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1483 return $ac_retval
1485 } # ac_fn_c_try_compile
1487 # ac_fn_cxx_try_compile LINENO
1488 # ----------------------------
1489 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1490 ac_fn_cxx_try_compile ()
1492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1493 rm -f conftest.$ac_objext
1494 if { { ac_try="$ac_compile"
1495 case "(($ac_try" in
1496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1497 *) ac_try_echo=$ac_try;;
1498 esac
1499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1500 $as_echo "$ac_try_echo"; } >&5
1501 (eval "$ac_compile") 2>conftest.err
1502 ac_status=$?
1503 if test -s conftest.err; then
1504 grep -v '^ *+' conftest.err >conftest.er1
1505 cat conftest.er1 >&5
1506 mv -f conftest.er1 conftest.err
1508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1509 test $ac_status = 0; } && {
1510 test -z "$ac_cxx_werror_flag" ||
1511 test ! -s conftest.err
1512 } && test -s conftest.$ac_objext; then :
1513 ac_retval=0
1514 else
1515 $as_echo "$as_me: failed program was:" >&5
1516 sed 's/^/| /' conftest.$ac_ext >&5
1518 ac_retval=1
1520 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1521 return $ac_retval
1523 } # ac_fn_cxx_try_compile
1525 # ac_fn_c_try_cpp LINENO
1526 # ----------------------
1527 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_c_try_cpp ()
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 if { { ac_try="$ac_cpp conftest.$ac_ext"
1532 case "(($ac_try" in
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1535 esac
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1539 ac_status=$?
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } >/dev/null && {
1547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1549 }; then :
1550 ac_retval=0
1551 else
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1555 ac_retval=1
1557 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1558 return $ac_retval
1560 } # ac_fn_c_try_cpp
1562 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1563 # -------------------------------------------------------
1564 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1565 # the include files in INCLUDES and setting the cache variable VAR
1566 # accordingly.
1567 ac_fn_c_check_header_mongrel ()
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1572 $as_echo_n "checking for $2... " >&6; }
1573 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1574 $as_echo_n "(cached) " >&6
1576 eval ac_res=\$$3
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1578 $as_echo "$ac_res" >&6; }
1579 else
1580 # Is the header compilable?
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1582 $as_echo_n "checking $2 usability... " >&6; }
1583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1584 /* end confdefs.h. */
1586 #include <$2>
1587 _ACEOF
1588 if ac_fn_c_try_compile "$LINENO"; then :
1589 ac_header_compiler=yes
1590 else
1591 ac_header_compiler=no
1593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1595 $as_echo "$ac_header_compiler" >&6; }
1597 # Is the header present?
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1599 $as_echo_n "checking $2 presence... " >&6; }
1600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1601 /* end confdefs.h. */
1602 #include <$2>
1603 _ACEOF
1604 if ac_fn_c_try_cpp "$LINENO"; then :
1605 ac_header_preproc=yes
1606 else
1607 ac_header_preproc=no
1609 rm -f conftest.err conftest.$ac_ext
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1611 $as_echo "$ac_header_preproc" >&6; }
1613 # So? What about this header?
1614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1615 yes:no: )
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1617 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1619 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1621 no:yes:* )
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1623 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1625 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1627 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1629 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1631 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1632 ( cat <<\_ASBOX
1633 ## ----------------------------------- ##
1634 ## Report this to gcc-bugs@gcc.gnu.org ##
1635 ## ----------------------------------- ##
1636 _ASBOX
1637 ) | sed "s/^/$as_me: WARNING: /" >&2
1639 esac
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641 $as_echo_n "checking for $2... " >&6; }
1642 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1643 $as_echo_n "(cached) " >&6
1644 else
1645 eval "$3=\$ac_header_compiler"
1647 eval ac_res=\$$3
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653 } # ac_fn_c_check_header_mongrel
1655 # ac_fn_c_try_run LINENO
1656 # ----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1658 # that executables *can* be run.
1659 ac_fn_c_try_run ()
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { { ac_try="$ac_link"
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_link") 2>&5
1670 ac_status=$?
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1673 { { case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_try") 2>&5
1680 ac_status=$?
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; }; }; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: program exited with status $ac_status" >&5
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1689 ac_retval=$ac_status
1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1693 return $ac_retval
1695 } # ac_fn_c_try_run
1697 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1698 # -------------------------------------------------------
1699 # Tests whether HEADER exists and can be compiled using the include files in
1700 # INCLUDES, setting the cache variable VAR accordingly.
1701 ac_fn_c_check_header_compile ()
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1707 $as_echo_n "(cached) " >&6
1708 else
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1712 #include <$2>
1713 _ACEOF
1714 if ac_fn_c_try_compile "$LINENO"; then :
1715 eval "$3=yes"
1716 else
1717 eval "$3=no"
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721 eval ac_res=\$$3
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726 } # ac_fn_c_check_header_compile
1728 # ac_fn_c_try_link LINENO
1729 # -----------------------
1730 # Try to link conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_link ()
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 rm -f conftest.$ac_objext conftest$ac_exeext
1735 if { { ac_try="$ac_link"
1736 case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_link") 2>conftest.err
1743 ac_status=$?
1744 if test -s conftest.err; then
1745 grep -v '^ *+' conftest.err >conftest.er1
1746 cat conftest.er1 >&5
1747 mv -f conftest.er1 conftest.err
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } && {
1751 test -z "$ac_c_werror_flag" ||
1752 test ! -s conftest.err
1753 } && test -s conftest$ac_exeext && {
1754 test "$cross_compiling" = yes ||
1755 $as_test_x conftest$ac_exeext
1756 }; then :
1757 ac_retval=0
1758 else
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1762 ac_retval=1
1764 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1765 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1766 # interfere with the next link command; also delete a directory that is
1767 # left behind by Apple's compiler. We do this before executing the actions.
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770 return $ac_retval
1772 } # ac_fn_c_try_link
1774 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1775 # -------------------------------------------
1776 # Tests whether TYPE exists after having included INCLUDES, setting cache
1777 # variable VAR accordingly.
1778 ac_fn_c_check_type ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1784 $as_echo_n "(cached) " >&6
1785 else
1786 eval "$3=no"
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1791 main ()
1793 if (sizeof ($2))
1794 return 0;
1796 return 0;
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1804 main ()
1806 if (sizeof (($2)))
1807 return 0;
1809 return 0;
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"; then :
1814 else
1815 eval "$3=yes"
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826 } # ac_fn_c_check_type
1828 # ac_fn_c_find_uintX_t LINENO BITS VAR
1829 # ------------------------------------
1830 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1831 # accordingly.
1832 ac_fn_c_find_uintX_t ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1836 $as_echo_n "checking for uint$2_t... " >&6; }
1837 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1838 $as_echo_n "(cached) " >&6
1839 else
1840 eval "$3=no"
1841 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1842 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 $ac_includes_default
1847 main ()
1849 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1850 test_array [0] = 0
1853 return 0;
1855 _ACEOF
1856 if ac_fn_c_try_compile "$LINENO"; then :
1857 case $ac_type in #(
1858 uint$2_t) :
1859 eval "$3=yes" ;; #(
1860 *) :
1861 eval "$3=\$ac_type" ;;
1862 esac
1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 eval as_val=\$$3
1866 if test "x$as_val" = x""no; then :
1868 else
1869 break
1871 done
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 } # ac_fn_c_find_uintX_t
1880 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1881 # --------------------------------------------
1882 # Tries to find the compile-time value of EXPR in a program that includes
1883 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1884 # computed
1885 ac_fn_c_compute_int ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if test "$cross_compiling" = yes; then
1889 # Depending upon the size, compute the lo and hi bounds.
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1894 main ()
1896 static int test_array [1 - 2 * !(($2) >= 0)];
1897 test_array [0] = 0
1900 return 0;
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904 ac_lo=0 ac_mid=0
1905 while :; do
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1910 main ()
1912 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1913 test_array [0] = 0
1916 return 0;
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 ac_hi=$ac_mid; break
1921 else
1922 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1923 if test $ac_lo -le $ac_mid; then
1924 ac_lo= ac_hi=
1925 break
1927 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 done
1931 else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1936 main ()
1938 static int test_array [1 - 2 * !(($2) < 0)];
1939 test_array [0] = 0
1942 return 0;
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_hi=-1 ac_mid=-1
1947 while :; do
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1952 main ()
1954 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1955 test_array [0] = 0
1958 return 0;
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962 ac_lo=$ac_mid; break
1963 else
1964 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1965 if test $ac_mid -le $ac_hi; then
1966 ac_lo= ac_hi=
1967 break
1969 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 done
1973 else
1974 ac_lo= ac_hi=
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 # Binary search between lo and hi bounds.
1980 while test "x$ac_lo" != "x$ac_hi"; do
1981 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1986 main ()
1988 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1989 test_array [0] = 0
1992 return 0;
1994 _ACEOF
1995 if ac_fn_c_try_compile "$LINENO"; then :
1996 ac_hi=$ac_mid
1997 else
1998 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 done
2002 case $ac_lo in #((
2003 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2004 '') ac_retval=1 ;;
2005 esac
2006 else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2010 static long int longval () { return $2; }
2011 static unsigned long int ulongval () { return $2; }
2012 #include <stdio.h>
2013 #include <stdlib.h>
2015 main ()
2018 FILE *f = fopen ("conftest.val", "w");
2019 if (! f)
2020 return 1;
2021 if (($2) < 0)
2023 long int i = longval ();
2024 if (i != ($2))
2025 return 1;
2026 fprintf (f, "%ld", i);
2028 else
2030 unsigned long int i = ulongval ();
2031 if (i != ($2))
2032 return 1;
2033 fprintf (f, "%lu", i);
2035 /* Do not output a trailing newline, as this causes \r\n confusion
2036 on some platforms. */
2037 return ferror (f) || fclose (f) != 0;
2040 return 0;
2042 _ACEOF
2043 if ac_fn_c_try_run "$LINENO"; then :
2044 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2045 else
2046 ac_retval=1
2048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2049 conftest.$ac_objext conftest.beam conftest.$ac_ext
2050 rm -f conftest.val
2053 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 return $ac_retval
2056 } # ac_fn_c_compute_int
2058 # ac_fn_c_check_func LINENO FUNC VAR
2059 # ----------------------------------
2060 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2061 ac_fn_c_check_func ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067 $as_echo_n "(cached) " >&6
2068 else
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2073 #define $2 innocuous_$2
2075 /* System header to define __stub macros and hopefully few prototypes,
2076 which can conflict with char $2 (); below.
2077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2078 <limits.h> exists even on freestanding compilers. */
2080 #ifdef __STDC__
2081 # include <limits.h>
2082 #else
2083 # include <assert.h>
2084 #endif
2086 #undef $2
2088 /* Override any GCC internal prototype to avoid an error.
2089 Use char because int might match the return type of a GCC
2090 builtin and then its argument prototype would still apply. */
2091 #ifdef __cplusplus
2092 extern "C"
2093 #endif
2094 char $2 ();
2095 /* The GNU C library defines this for functions which it implements
2096 to always fail with ENOSYS. Some functions are actually named
2097 something starting with __ and the normal name is an alias. */
2098 #if defined __stub_$2 || defined __stub___$2
2099 choke me
2100 #endif
2103 main ()
2105 return $2 ();
2107 return 0;
2109 _ACEOF
2110 if ac_fn_c_try_link "$LINENO"; then :
2111 eval "$3=yes"
2112 else
2113 eval "$3=no"
2115 rm -f core conftest.err conftest.$ac_objext \
2116 conftest$ac_exeext conftest.$ac_ext
2118 eval ac_res=\$$3
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2123 } # ac_fn_c_check_func
2125 # ac_fn_c_check_decl LINENO SYMBOL VAR
2126 # ------------------------------------
2127 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2128 ac_fn_c_check_decl ()
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 as_decl_name=`echo $2|sed 's/ *(.*//'`
2132 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2134 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2135 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2136 $as_echo_n "(cached) " >&6
2137 else
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2142 main ()
2144 #ifndef $as_decl_name
2145 #ifdef __cplusplus
2146 (void) $as_decl_use;
2147 #else
2148 (void) $as_decl_name;
2149 #endif
2150 #endif
2153 return 0;
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 eval "$3=yes"
2158 else
2159 eval "$3=no"
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 eval ac_res=\$$3
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2166 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2168 } # ac_fn_c_check_decl
2170 # ac_fn_cxx_try_link LINENO
2171 # -------------------------
2172 # Try to link conftest.$ac_ext, and return whether this succeeded.
2173 ac_fn_cxx_try_link ()
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 rm -f conftest.$ac_objext conftest$ac_exeext
2177 if { { ac_try="$ac_link"
2178 case "(($ac_try" in
2179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180 *) ac_try_echo=$ac_try;;
2181 esac
2182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2183 $as_echo "$ac_try_echo"; } >&5
2184 (eval "$ac_link") 2>conftest.err
2185 ac_status=$?
2186 if test -s conftest.err; then
2187 grep -v '^ *+' conftest.err >conftest.er1
2188 cat conftest.er1 >&5
2189 mv -f conftest.er1 conftest.err
2191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192 test $ac_status = 0; } && {
2193 test -z "$ac_cxx_werror_flag" ||
2194 test ! -s conftest.err
2195 } && test -s conftest$ac_exeext && {
2196 test "$cross_compiling" = yes ||
2197 $as_test_x conftest$ac_exeext
2198 }; then :
2199 ac_retval=0
2200 else
2201 $as_echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2204 ac_retval=1
2206 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2207 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2208 # interfere with the next link command; also delete a directory that is
2209 # left behind by Apple's compiler. We do this before executing the actions.
2210 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2211 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2212 return $ac_retval
2214 } # ac_fn_cxx_try_link
2215 cat >config.log <<_ACEOF
2216 This file contains any messages produced by compilers while
2217 running configure, to aid debugging if configure makes a mistake.
2219 It was created by cpplib $as_me , which was
2220 generated by GNU Autoconf 2.64. Invocation command line was
2222 $ $0 $@
2224 _ACEOF
2225 exec 5>>config.log
2227 cat <<_ASUNAME
2228 ## --------- ##
2229 ## Platform. ##
2230 ## --------- ##
2232 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2233 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2234 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2235 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2236 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2238 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2239 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2241 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2242 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2243 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2244 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2245 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2246 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2247 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2249 _ASUNAME
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 $as_echo "PATH: $as_dir"
2257 done
2258 IFS=$as_save_IFS
2260 } >&5
2262 cat >&5 <<_ACEOF
2265 ## ----------- ##
2266 ## Core tests. ##
2267 ## ----------- ##
2269 _ACEOF
2272 # Keep a trace of the command line.
2273 # Strip out --no-create and --no-recursion so they do not pile up.
2274 # Strip out --silent because we don't want to record it for future runs.
2275 # Also quote any args containing shell meta-characters.
2276 # Make two passes to allow for proper duplicate-argument suppression.
2277 ac_configure_args=
2278 ac_configure_args0=
2279 ac_configure_args1=
2280 ac_must_keep_next=false
2281 for ac_pass in 1 2
2283 for ac_arg
2285 case $ac_arg in
2286 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2288 | -silent | --silent | --silen | --sile | --sil)
2289 continue ;;
2290 *\'*)
2291 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2292 esac
2293 case $ac_pass in
2294 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2296 as_fn_append ac_configure_args1 " '$ac_arg'"
2297 if test $ac_must_keep_next = true; then
2298 ac_must_keep_next=false # Got value, back to normal.
2299 else
2300 case $ac_arg in
2301 *=* | --config-cache | -C | -disable-* | --disable-* \
2302 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2303 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2304 | -with-* | --with-* | -without-* | --without-* | --x)
2305 case "$ac_configure_args0 " in
2306 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2307 esac
2309 -* ) ac_must_keep_next=true ;;
2310 esac
2312 as_fn_append ac_configure_args " '$ac_arg'"
2314 esac
2315 done
2316 done
2317 { ac_configure_args0=; unset ac_configure_args0;}
2318 { ac_configure_args1=; unset ac_configure_args1;}
2320 # When interrupted or exit'd, cleanup temporary files, and complete
2321 # config.log. We remove comments because anyway the quotes in there
2322 # would cause problems or look ugly.
2323 # WARNING: Use '\'' to represent an apostrophe within the trap.
2324 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2325 trap 'exit_status=$?
2326 # Save into config.log some information that might help in debugging.
2328 echo
2330 cat <<\_ASBOX
2331 ## ---------------- ##
2332 ## Cache variables. ##
2333 ## ---------------- ##
2334 _ASBOX
2335 echo
2336 # The following way of writing the cache mishandles newlines in values,
2338 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2339 eval ac_val=\$$ac_var
2340 case $ac_val in #(
2341 *${as_nl}*)
2342 case $ac_var in #(
2343 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2344 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2345 esac
2346 case $ac_var in #(
2347 _ | IFS | as_nl) ;; #(
2348 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2349 *) { eval $ac_var=; unset $ac_var;} ;;
2350 esac ;;
2351 esac
2352 done
2353 (set) 2>&1 |
2354 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2355 *${as_nl}ac_space=\ *)
2356 sed -n \
2357 "s/'\''/'\''\\\\'\'''\''/g;
2358 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2359 ;; #(
2361 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2363 esac |
2364 sort
2366 echo
2368 cat <<\_ASBOX
2369 ## ----------------- ##
2370 ## Output variables. ##
2371 ## ----------------- ##
2372 _ASBOX
2373 echo
2374 for ac_var in $ac_subst_vars
2376 eval ac_val=\$$ac_var
2377 case $ac_val in
2378 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2379 esac
2380 $as_echo "$ac_var='\''$ac_val'\''"
2381 done | sort
2382 echo
2384 if test -n "$ac_subst_files"; then
2385 cat <<\_ASBOX
2386 ## ------------------- ##
2387 ## File substitutions. ##
2388 ## ------------------- ##
2389 _ASBOX
2390 echo
2391 for ac_var in $ac_subst_files
2393 eval ac_val=\$$ac_var
2394 case $ac_val in
2395 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2396 esac
2397 $as_echo "$ac_var='\''$ac_val'\''"
2398 done | sort
2399 echo
2402 if test -s confdefs.h; then
2403 cat <<\_ASBOX
2404 ## ----------- ##
2405 ## confdefs.h. ##
2406 ## ----------- ##
2407 _ASBOX
2408 echo
2409 cat confdefs.h
2410 echo
2412 test "$ac_signal" != 0 &&
2413 $as_echo "$as_me: caught signal $ac_signal"
2414 $as_echo "$as_me: exit $exit_status"
2415 } >&5
2416 rm -f core *.core core.conftest.* &&
2417 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2418 exit $exit_status
2420 for ac_signal in 1 2 13 15; do
2421 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2422 done
2423 ac_signal=0
2425 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2426 rm -f -r conftest* confdefs.h
2428 $as_echo "/* confdefs.h */" > confdefs.h
2430 # Predefined preprocessor variables.
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_NAME "$PACKAGE_NAME"
2434 _ACEOF
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2438 _ACEOF
2440 cat >>confdefs.h <<_ACEOF
2441 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2442 _ACEOF
2444 cat >>confdefs.h <<_ACEOF
2445 #define PACKAGE_STRING "$PACKAGE_STRING"
2446 _ACEOF
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2450 _ACEOF
2452 cat >>confdefs.h <<_ACEOF
2453 #define PACKAGE_URL "$PACKAGE_URL"
2454 _ACEOF
2457 # Let the site file select an alternate cache file if it wants to.
2458 # Prefer an explicitly selected file to automatically selected ones.
2459 ac_site_file1=NONE
2460 ac_site_file2=NONE
2461 if test -n "$CONFIG_SITE"; then
2462 ac_site_file1=$CONFIG_SITE
2463 elif test "x$prefix" != xNONE; then
2464 ac_site_file1=$prefix/share/config.site
2465 ac_site_file2=$prefix/etc/config.site
2466 else
2467 ac_site_file1=$ac_default_prefix/share/config.site
2468 ac_site_file2=$ac_default_prefix/etc/config.site
2470 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2472 test "x$ac_site_file" = xNONE && continue
2473 if test -r "$ac_site_file"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2475 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2476 sed 's/^/| /' "$ac_site_file" >&5
2477 . "$ac_site_file"
2479 done
2481 if test -r "$cache_file"; then
2482 # Some versions of bash will fail to source /dev/null (special
2483 # files actually), so we avoid doing that.
2484 if test -f "$cache_file"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2486 $as_echo "$as_me: loading cache $cache_file" >&6;}
2487 case $cache_file in
2488 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2489 *) . "./$cache_file";;
2490 esac
2492 else
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2494 $as_echo "$as_me: creating cache $cache_file" >&6;}
2495 >$cache_file
2498 # Check that the precious variables saved in the cache have kept the same
2499 # value.
2500 ac_cache_corrupted=false
2501 for ac_var in $ac_precious_vars; do
2502 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2503 eval ac_new_set=\$ac_env_${ac_var}_set
2504 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2505 eval ac_new_val=\$ac_env_${ac_var}_value
2506 case $ac_old_set,$ac_new_set in
2507 set,)
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2509 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2510 ac_cache_corrupted=: ;;
2511 ,set)
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2513 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2514 ac_cache_corrupted=: ;;
2515 ,);;
2517 if test "x$ac_old_val" != "x$ac_new_val"; then
2518 # differences in whitespace do not lead to failure.
2519 ac_old_val_w=`echo x $ac_old_val`
2520 ac_new_val_w=`echo x $ac_new_val`
2521 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2523 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2524 ac_cache_corrupted=:
2525 else
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2527 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2528 eval $ac_var=\$ac_old_val
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2531 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2533 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2534 fi;;
2535 esac
2536 # Pass precious variables to config.status.
2537 if test "$ac_new_set" = set; then
2538 case $ac_new_val in
2539 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2540 *) ac_arg=$ac_var=$ac_new_val ;;
2541 esac
2542 case " $ac_configure_args " in
2543 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2544 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2545 esac
2547 done
2548 if $ac_cache_corrupted; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2552 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2553 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2555 ## -------------------- ##
2556 ## Main body of script. ##
2557 ## -------------------- ##
2559 ac_ext=c
2560 ac_cpp='$CPP $CPPFLAGS'
2561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571 ac_aux_dir=
2572 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2573 for ac_t in install-sh install.sh shtool; do
2574 if test -f "$ac_dir/$ac_t"; then
2575 ac_aux_dir=$ac_dir
2576 ac_install_sh="$ac_aux_dir/$ac_t -c"
2577 break 2
2579 done
2580 done
2581 if test -z "$ac_aux_dir"; then
2582 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2585 # These three variables are undocumented and unsupported,
2586 # and are intended to be withdrawn in a future Autoconf release.
2587 # They can cause serious problems if a builder's source tree is in a directory
2588 # whose full name contains unusual characters.
2589 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2590 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2591 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2594 # Make sure we can run config.sub.
2595 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2596 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2599 $as_echo_n "checking build system type... " >&6; }
2600 if test "${ac_cv_build+set}" = set; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 ac_build_alias=$build_alias
2604 test "x$ac_build_alias" = x &&
2605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2606 test "x$ac_build_alias" = x &&
2607 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2608 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2609 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2613 $as_echo "$ac_cv_build" >&6; }
2614 case $ac_cv_build in
2615 *-*-*) ;;
2616 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2617 esac
2618 build=$ac_cv_build
2619 ac_save_IFS=$IFS; IFS='-'
2620 set x $ac_cv_build
2621 shift
2622 build_cpu=$1
2623 build_vendor=$2
2624 shift; shift
2625 # Remember, the first character of IFS is used to create $*,
2626 # except with old shells:
2627 build_os=$*
2628 IFS=$ac_save_IFS
2629 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2633 $as_echo_n "checking host system type... " >&6; }
2634 if test "${ac_cv_host+set}" = set; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 if test "x$host_alias" = x; then
2638 ac_cv_host=$ac_cv_build
2639 else
2640 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2641 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2646 $as_echo "$ac_cv_host" >&6; }
2647 case $ac_cv_host in
2648 *-*-*) ;;
2649 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2650 esac
2651 host=$ac_cv_host
2652 ac_save_IFS=$IFS; IFS='-'
2653 set x $ac_cv_host
2654 shift
2655 host_cpu=$1
2656 host_vendor=$2
2657 shift; shift
2658 # Remember, the first character of IFS is used to create $*,
2659 # except with old shells:
2660 host_os=$*
2661 IFS=$ac_save_IFS
2662 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2666 $as_echo_n "checking target system type... " >&6; }
2667 if test "${ac_cv_target+set}" = set; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 if test "x$target_alias" = x; then
2671 ac_cv_target=$ac_cv_host
2672 else
2673 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2674 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2679 $as_echo "$ac_cv_target" >&6; }
2680 case $ac_cv_target in
2681 *-*-*) ;;
2682 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2683 esac
2684 target=$ac_cv_target
2685 ac_save_IFS=$IFS; IFS='-'
2686 set x $ac_cv_target
2687 shift
2688 target_cpu=$1
2689 target_vendor=$2
2690 shift; shift
2691 # Remember, the first character of IFS is used to create $*,
2692 # except with old shells:
2693 target_os=$*
2694 IFS=$ac_save_IFS
2695 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2698 # The aliases save the names the user supplied, while $host etc.
2699 # will get canonicalized.
2700 test -n "$target_alias" &&
2701 test "$program_prefix$program_suffix$program_transform_name" = \
2702 NONENONEs,x,x, &&
2703 program_prefix=${target_alias}-
2706 # Checks for programs.
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2708 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2709 set x ${MAKE-make}
2710 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2711 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2712 $as_echo_n "(cached) " >&6
2713 else
2714 cat >conftest.make <<\_ACEOF
2715 SHELL = /bin/sh
2716 all:
2717 @echo '@@@%%%=$(MAKE)=@@@%%%'
2718 _ACEOF
2719 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2720 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2721 *@@@%%%=?*=@@@%%%*)
2722 eval ac_cv_prog_make_${ac_make}_set=yes;;
2724 eval ac_cv_prog_make_${ac_make}_set=no;;
2725 esac
2726 rm -f conftest.make
2728 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2730 $as_echo "yes" >&6; }
2731 SET_MAKE=
2732 else
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2735 SET_MAKE="MAKE=${MAKE-make}"
2738 # Find a good install program. We prefer a C program (faster),
2739 # so one script is as good as another. But avoid the broken or
2740 # incompatible versions:
2741 # SysV /etc/install, /usr/sbin/install
2742 # SunOS /usr/etc/install
2743 # IRIX /sbin/install
2744 # AIX /bin/install
2745 # AmigaOS /C/install, which installs bootblocks on floppy discs
2746 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2747 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2748 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2749 # OS/2's system install, which has a completely different semantic
2750 # ./install, which can be erroneously created by make from ./install.sh.
2751 # Reject install programs that cannot install multiple files.
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2753 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2754 if test -z "$INSTALL"; then
2755 if test "${ac_cv_path_install+set}" = set; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 # Account for people who put trailing slashes in PATH elements.
2764 case $as_dir/ in #((
2765 ./ | .// | /[cC]/* | \
2766 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2767 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2768 /usr/ucb/* ) ;;
2770 # OSF1 and SCO ODT 3.0 have their own names for install.
2771 # Don't use installbsd from OSF since it installs stuff as root
2772 # by default.
2773 for ac_prog in ginstall scoinst install; do
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2776 if test $ac_prog = install &&
2777 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2778 # AIX install. It has an incompatible calling convention.
2780 elif test $ac_prog = install &&
2781 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2782 # program-specific install script used by HP pwplus--don't use.
2784 else
2785 rm -rf conftest.one conftest.two conftest.dir
2786 echo one > conftest.one
2787 echo two > conftest.two
2788 mkdir conftest.dir
2789 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2790 test -s conftest.one && test -s conftest.two &&
2791 test -s conftest.dir/conftest.one &&
2792 test -s conftest.dir/conftest.two
2793 then
2794 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2795 break 3
2799 done
2800 done
2802 esac
2804 done
2805 IFS=$as_save_IFS
2807 rm -rf conftest.one conftest.two conftest.dir
2810 if test "${ac_cv_path_install+set}" = set; then
2811 INSTALL=$ac_cv_path_install
2812 else
2813 # As a last resort, use the slow shell script. Don't cache a
2814 # value for INSTALL within a source directory, because that will
2815 # break other packages using the cache if that directory is
2816 # removed, or if the value is a relative name.
2817 INSTALL=$ac_install_sh
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2821 $as_echo "$INSTALL" >&6; }
2823 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2824 # It thinks the first close brace ends the variable substitution.
2825 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2827 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2829 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2831 ac_ext=c
2832 ac_cpp='$CPP $CPPFLAGS'
2833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 if test -n "$ac_tool_prefix"; then
2837 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if test "${ac_cv_prog_CC+set}" = set; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2858 done
2859 done
2860 IFS=$as_save_IFS
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2868 else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2875 if test -z "$ac_cv_prog_CC"; then
2876 ac_ct_CC=$CC
2877 # Extract the first word of "gcc", so it can be a program name with args.
2878 set dummy gcc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 if test -n "$ac_ct_CC"; then
2885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 ac_cv_prog_ac_ct_CC="gcc"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2898 done
2899 done
2900 IFS=$as_save_IFS
2904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905 if test -n "$ac_ct_CC"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2907 $as_echo "$ac_ct_CC" >&6; }
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2913 if test "x$ac_ct_CC" = x; then
2914 CC=""
2915 else
2916 case $cross_compiling:$ac_tool_warned in
2917 yes:)
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2920 ac_tool_warned=yes ;;
2921 esac
2922 CC=$ac_ct_CC
2924 else
2925 CC="$ac_cv_prog_CC"
2928 if test -z "$CC"; then
2929 if test -n "$ac_tool_prefix"; then
2930 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2931 set dummy ${ac_tool_prefix}cc; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if test "${ac_cv_prog_CC+set}" = set; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if test -n "$CC"; then
2938 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 ac_cv_prog_CC="${ac_tool_prefix}cc"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2951 done
2952 done
2953 IFS=$as_save_IFS
2957 CC=$ac_cv_prog_CC
2958 if test -n "$CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960 $as_echo "$CC" >&6; }
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2969 if test -z "$CC"; then
2970 # Extract the first word of "cc", so it can be a program name with args.
2971 set dummy cc; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if test "${ac_cv_prog_CC+set}" = set; then :
2975 $as_echo_n "(cached) " >&6
2976 else
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2979 else
2980 ac_prog_rejected=no
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2989 ac_prog_rejected=yes
2990 continue
2992 ac_cv_prog_CC="cc"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2996 done
2997 done
2998 IFS=$as_save_IFS
3000 if test $ac_prog_rejected = yes; then
3001 # We found a bogon in the path, so make sure we never use it.
3002 set dummy $ac_cv_prog_CC
3003 shift
3004 if test $# != 0; then
3005 # We chose a different compiler from the bogus one.
3006 # However, it has the same basename, so the bogon will be chosen
3007 # first if we set CC to just the basename; use the full file name.
3008 shift
3009 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3014 CC=$ac_cv_prog_CC
3015 if test -n "$CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 $as_echo "$CC" >&6; }
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3025 if test -z "$CC"; then
3026 if test -n "$ac_tool_prefix"; then
3027 for ac_prog in cl.exe
3029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if test "${ac_cv_prog_CC+set}" = set; then :
3034 $as_echo_n "(cached) " >&6
3035 else
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
3050 done
3051 done
3052 IFS=$as_save_IFS
3056 CC=$ac_cv_prog_CC
3057 if test -n "$CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059 $as_echo "$CC" >&6; }
3060 else
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3066 test -n "$CC" && break
3067 done
3069 if test -z "$CC"; then
3070 ac_ct_CC=$CC
3071 for ac_prog in cl.exe
3073 # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy $ac_prog; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3079 else
3080 if test -n "$ac_ct_CC"; then
3081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3082 else
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_ac_ct_CC="$ac_prog"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 break 2
3094 done
3095 done
3096 IFS=$as_save_IFS
3100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3103 $as_echo "$ac_ct_CC" >&6; }
3104 else
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3110 test -n "$ac_ct_CC" && break
3111 done
3113 if test "x$ac_ct_CC" = x; then
3114 CC=""
3115 else
3116 case $cross_compiling:$ac_tool_warned in
3117 yes:)
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3120 ac_tool_warned=yes ;;
3121 esac
3122 CC=$ac_ct_CC
3129 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131 as_fn_error "no acceptable C compiler found in \$PATH
3132 See \`config.log' for more details." "$LINENO" 5; }
3134 # Provide some information about the compiler.
3135 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3136 set X $ac_compile
3137 ac_compiler=$2
3138 for ac_option in --version -v -V -qversion; do
3139 { { ac_try="$ac_compiler $ac_option >&5"
3140 case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3147 ac_status=$?
3148 if test -s conftest.err; then
3149 sed '10a\
3150 ... rest of stderr output deleted ...
3151 10q' conftest.err >conftest.er1
3152 cat conftest.er1 >&5
3153 rm -f conftest.er1 conftest.err
3155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156 test $ac_status = 0; }
3157 done
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3163 main ()
3167 return 0;
3169 _ACEOF
3170 ac_clean_files_save=$ac_clean_files
3171 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3172 # Try to create an executable without -o first, disregard a.out.
3173 # It will help us diagnose broken compilers, and finding out an intuition
3174 # of exeext.
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3176 $as_echo_n "checking for C compiler default output file name... " >&6; }
3177 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3179 # The possible output files:
3180 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3182 ac_rmfiles=
3183 for ac_file in $ac_files
3185 case $ac_file in
3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3187 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3188 esac
3189 done
3190 rm -f $ac_rmfiles
3192 if { { ac_try="$ac_link_default"
3193 case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_link_default") 2>&5
3200 ac_status=$?
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }; then :
3203 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3204 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3205 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3206 # so that the user can short-circuit this test for compilers unknown to
3207 # Autoconf.
3208 for ac_file in $ac_files ''
3210 test -f "$ac_file" || continue
3211 case $ac_file in
3212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3214 [ab].out )
3215 # We found the default executable, but exeext='' is most
3216 # certainly right.
3217 break;;
3218 *.* )
3219 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3220 then :; else
3221 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3223 # We set ac_cv_exeext here because the later test for it is not
3224 # safe: cross compilers may not add the suffix if given an `-o'
3225 # argument, so we may need to know it at that point already.
3226 # Even if this section looks crufty: it has the advantage of
3227 # actually working.
3228 break;;
3230 break;;
3231 esac
3232 done
3233 test "$ac_cv_exeext" = no && ac_cv_exeext=
3235 else
3236 ac_file=''
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3239 $as_echo "$ac_file" >&6; }
3240 if test -z "$ac_file"; then :
3241 $as_echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 { as_fn_set_status 77
3247 as_fn_error "C compiler cannot create executables
3248 See \`config.log' for more details." "$LINENO" 5; }; }
3250 ac_exeext=$ac_cv_exeext
3252 # Check that the compiler produces executables we can run. If not, either
3253 # the compiler is broken, or we cross compile.
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3255 $as_echo_n "checking whether the C compiler works... " >&6; }
3256 # If not cross compiling, check that we can run a simple program.
3257 if test "$cross_compiling" != yes; then
3258 if { ac_try='./$ac_file'
3259 { { case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_try") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; }; then
3269 cross_compiling=no
3270 else
3271 if test "$cross_compiling" = maybe; then
3272 cross_compiling=yes
3273 else
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error "cannot run C compiled programs.
3277 If you meant to cross compile, use \`--host'.
3278 See \`config.log' for more details." "$LINENO" 5; }
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3283 $as_echo "yes" >&6; }
3285 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3286 ac_clean_files=$ac_clean_files_save
3287 # Check that the compiler produces executables we can run. If not, either
3288 # the compiler is broken, or we cross compile.
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3290 $as_echo_n "checking whether we are cross compiling... " >&6; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3292 $as_echo "$cross_compiling" >&6; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3295 $as_echo_n "checking for suffix of executables... " >&6; }
3296 if { { ac_try="$ac_link"
3297 case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300 esac
3301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302 $as_echo "$ac_try_echo"; } >&5
3303 (eval "$ac_link") 2>&5
3304 ac_status=$?
3305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306 test $ac_status = 0; }; then :
3307 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3308 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3309 # work properly (i.e., refer to `conftest.exe'), while it won't with
3310 # `rm'.
3311 for ac_file in conftest.exe conftest conftest.*; do
3312 test -f "$ac_file" || continue
3313 case $ac_file in
3314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3315 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3316 break;;
3317 * ) break;;
3318 esac
3319 done
3320 else
3321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3323 as_fn_error "cannot compute suffix of executables: cannot compile and link
3324 See \`config.log' for more details." "$LINENO" 5; }
3326 rm -f conftest$ac_cv_exeext
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3328 $as_echo "$ac_cv_exeext" >&6; }
3330 rm -f conftest.$ac_ext
3331 EXEEXT=$ac_cv_exeext
3332 ac_exeext=$EXEEXT
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3334 $as_echo_n "checking for suffix of object files... " >&6; }
3335 if test "${ac_cv_objext+set}" = set; then :
3336 $as_echo_n "(cached) " >&6
3337 else
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3342 main ()
3346 return 0;
3348 _ACEOF
3349 rm -f conftest.o conftest.obj
3350 if { { ac_try="$ac_compile"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_compile") 2>&5
3358 ac_status=$?
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }; then :
3361 for ac_file in conftest.o conftest.obj conftest.*; do
3362 test -f "$ac_file" || continue;
3363 case $ac_file in
3364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3365 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3366 break;;
3367 esac
3368 done
3369 else
3370 $as_echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 as_fn_error "cannot compute suffix of object files: cannot compile
3376 See \`config.log' for more details." "$LINENO" 5; }
3378 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3381 $as_echo "$ac_cv_objext" >&6; }
3382 OBJEXT=$ac_cv_objext
3383 ac_objext=$OBJEXT
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3385 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3386 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3387 $as_echo_n "(cached) " >&6
3388 else
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3393 main ()
3395 #ifndef __GNUC__
3396 choke me
3397 #endif
3400 return 0;
3402 _ACEOF
3403 if ac_fn_c_try_compile "$LINENO"; then :
3404 ac_compiler_gnu=yes
3405 else
3406 ac_compiler_gnu=no
3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3413 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3414 if test $ac_compiler_gnu = yes; then
3415 GCC=yes
3416 else
3417 GCC=
3419 ac_test_CFLAGS=${CFLAGS+set}
3420 ac_save_CFLAGS=$CFLAGS
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3422 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3423 if test "${ac_cv_prog_cc_g+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 ac_save_c_werror_flag=$ac_c_werror_flag
3427 ac_c_werror_flag=yes
3428 ac_cv_prog_cc_g=no
3429 CFLAGS="-g"
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3434 main ()
3438 return 0;
3440 _ACEOF
3441 if ac_fn_c_try_compile "$LINENO"; then :
3442 ac_cv_prog_cc_g=yes
3443 else
3444 CFLAGS=""
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3449 main ()
3453 return 0;
3455 _ACEOF
3456 if ac_fn_c_try_compile "$LINENO"; then :
3458 else
3459 ac_c_werror_flag=$ac_save_c_werror_flag
3460 CFLAGS="-g"
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3465 main ()
3469 return 0;
3471 _ACEOF
3472 if ac_fn_c_try_compile "$LINENO"; then :
3473 ac_cv_prog_cc_g=yes
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480 ac_c_werror_flag=$ac_save_c_werror_flag
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3483 $as_echo "$ac_cv_prog_cc_g" >&6; }
3484 if test "$ac_test_CFLAGS" = set; then
3485 CFLAGS=$ac_save_CFLAGS
3486 elif test $ac_cv_prog_cc_g = yes; then
3487 if test "$GCC" = yes; then
3488 CFLAGS="-g -O2"
3489 else
3490 CFLAGS="-g"
3492 else
3493 if test "$GCC" = yes; then
3494 CFLAGS="-O2"
3495 else
3496 CFLAGS=
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3500 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3501 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 ac_cv_prog_cc_c89=no
3505 ac_save_CC=$CC
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3508 #include <stdarg.h>
3509 #include <stdio.h>
3510 #include <sys/types.h>
3511 #include <sys/stat.h>
3512 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3513 struct buf { int x; };
3514 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3515 static char *e (p, i)
3516 char **p;
3517 int i;
3519 return p[i];
3521 static char *f (char * (*g) (char **, int), char **p, ...)
3523 char *s;
3524 va_list v;
3525 va_start (v,p);
3526 s = g (p, va_arg (v,int));
3527 va_end (v);
3528 return s;
3531 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3532 function prototypes and stuff, but not '\xHH' hex character constants.
3533 These don't provoke an error unfortunately, instead are silently treated
3534 as 'x'. The following induces an error, until -std is added to get
3535 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3536 array size at least. It's necessary to write '\x00'==0 to get something
3537 that's true only with -std. */
3538 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3540 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3541 inside strings and character constants. */
3542 #define FOO(x) 'x'
3543 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3545 int test (int i, double x);
3546 struct s1 {int (*f) (int a);};
3547 struct s2 {int (*f) (double a);};
3548 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3549 int argc;
3550 char **argv;
3552 main ()
3554 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3556 return 0;
3558 _ACEOF
3559 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3560 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3562 CC="$ac_save_CC $ac_arg"
3563 if ac_fn_c_try_compile "$LINENO"; then :
3564 ac_cv_prog_cc_c89=$ac_arg
3566 rm -f core conftest.err conftest.$ac_objext
3567 test "x$ac_cv_prog_cc_c89" != "xno" && break
3568 done
3569 rm -f conftest.$ac_ext
3570 CC=$ac_save_CC
3573 # AC_CACHE_VAL
3574 case "x$ac_cv_prog_cc_c89" in
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3577 $as_echo "none needed" >&6; } ;;
3578 xno)
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3580 $as_echo "unsupported" >&6; } ;;
3582 CC="$CC $ac_cv_prog_cc_c89"
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3584 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3585 esac
3586 if test "x$ac_cv_prog_cc_c89" != xno; then :
3590 ac_ext=c
3591 ac_cpp='$CPP $CPPFLAGS'
3592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3596 ac_ext=cpp
3597 ac_cpp='$CXXCPP $CPPFLAGS'
3598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3601 if test -z "$CXX"; then
3602 if test -n "$CCC"; then
3603 CXX=$CCC
3604 else
3605 if test -n "$ac_tool_prefix"; then
3606 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3609 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if test "${ac_cv_prog_CXX+set}" = set; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 if test -n "$CXX"; then
3616 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3625 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 break 2
3629 done
3630 done
3631 IFS=$as_save_IFS
3635 CXX=$ac_cv_prog_CXX
3636 if test -n "$CXX"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3638 $as_echo "$CXX" >&6; }
3639 else
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3645 test -n "$CXX" && break
3646 done
3648 if test -z "$CXX"; then
3649 ac_ct_CXX=$CXX
3650 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3652 # Extract the first word of "$ac_prog", so it can be a program name with args.
3653 set dummy $ac_prog; ac_word=$2
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655 $as_echo_n "checking for $ac_word... " >&6; }
3656 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3657 $as_echo_n "(cached) " >&6
3658 else
3659 if test -n "$ac_ct_CXX"; then
3660 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669 ac_cv_prog_ac_ct_CXX="$ac_prog"
3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 break 2
3673 done
3674 done
3675 IFS=$as_save_IFS
3679 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3680 if test -n "$ac_ct_CXX"; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3682 $as_echo "$ac_ct_CXX" >&6; }
3683 else
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3689 test -n "$ac_ct_CXX" && break
3690 done
3692 if test "x$ac_ct_CXX" = x; then
3693 CXX="g++"
3694 else
3695 case $cross_compiling:$ac_tool_warned in
3696 yes:)
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3699 ac_tool_warned=yes ;;
3700 esac
3701 CXX=$ac_ct_CXX
3707 # Provide some information about the compiler.
3708 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3709 set X $ac_compile
3710 ac_compiler=$2
3711 for ac_option in --version -v -V -qversion; do
3712 { { ac_try="$ac_compiler $ac_option >&5"
3713 case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716 esac
3717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3718 $as_echo "$ac_try_echo"; } >&5
3719 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3720 ac_status=$?
3721 if test -s conftest.err; then
3722 sed '10a\
3723 ... rest of stderr output deleted ...
3724 10q' conftest.err >conftest.er1
3725 cat conftest.er1 >&5
3726 rm -f conftest.er1 conftest.err
3728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729 test $ac_status = 0; }
3730 done
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3733 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3734 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3741 main ()
3743 #ifndef __GNUC__
3744 choke me
3745 #endif
3748 return 0;
3750 _ACEOF
3751 if ac_fn_cxx_try_compile "$LINENO"; then :
3752 ac_compiler_gnu=yes
3753 else
3754 ac_compiler_gnu=no
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3761 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3762 if test $ac_compiler_gnu = yes; then
3763 GXX=yes
3764 else
3765 GXX=
3767 ac_test_CXXFLAGS=${CXXFLAGS+set}
3768 ac_save_CXXFLAGS=$CXXFLAGS
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3770 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3771 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3775 ac_cxx_werror_flag=yes
3776 ac_cv_prog_cxx_g=no
3777 CXXFLAGS="-g"
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3782 main ()
3786 return 0;
3788 _ACEOF
3789 if ac_fn_cxx_try_compile "$LINENO"; then :
3790 ac_cv_prog_cxx_g=yes
3791 else
3792 CXXFLAGS=""
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3797 main ()
3801 return 0;
3803 _ACEOF
3804 if ac_fn_cxx_try_compile "$LINENO"; then :
3806 else
3807 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3808 CXXFLAGS="-g"
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3813 main ()
3817 return 0;
3819 _ACEOF
3820 if ac_fn_cxx_try_compile "$LINENO"; then :
3821 ac_cv_prog_cxx_g=yes
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3831 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3832 if test "$ac_test_CXXFLAGS" = set; then
3833 CXXFLAGS=$ac_save_CXXFLAGS
3834 elif test $ac_cv_prog_cxx_g = yes; then
3835 if test "$GXX" = yes; then
3836 CXXFLAGS="-g -O2"
3837 else
3838 CXXFLAGS="-g"
3840 else
3841 if test "$GXX" = yes; then
3842 CXXFLAGS="-O2"
3843 else
3844 CXXFLAGS=
3847 ac_ext=c
3848 ac_cpp='$CPP $CPPFLAGS'
3849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853 if test -n "$ac_tool_prefix"; then
3854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857 $as_echo_n "checking for $ac_word... " >&6; }
3858 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 if test -n "$RANLIB"; then
3862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3863 else
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 break 2
3875 done
3876 done
3877 IFS=$as_save_IFS
3881 RANLIB=$ac_cv_prog_RANLIB
3882 if test -n "$RANLIB"; then
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3884 $as_echo "$RANLIB" >&6; }
3885 else
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3892 if test -z "$ac_cv_prog_RANLIB"; then
3893 ac_ct_RANLIB=$RANLIB
3894 # Extract the first word of "ranlib", so it can be a program name with args.
3895 set dummy ranlib; ac_word=$2
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897 $as_echo_n "checking for $ac_word... " >&6; }
3898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901 if test -n "$ac_ct_RANLIB"; then
3902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3903 else
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3911 ac_cv_prog_ac_ct_RANLIB="ranlib"
3912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 break 2
3915 done
3916 done
3917 IFS=$as_save_IFS
3921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3922 if test -n "$ac_ct_RANLIB"; then
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3924 $as_echo "$ac_ct_RANLIB" >&6; }
3925 else
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3930 if test "x$ac_ct_RANLIB" = x; then
3931 RANLIB=":"
3932 else
3933 case $cross_compiling:$ac_tool_warned in
3934 yes:)
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3937 ac_tool_warned=yes ;;
3938 esac
3939 RANLIB=$ac_ct_RANLIB
3941 else
3942 RANLIB="$ac_cv_prog_RANLIB"
3947 ac_ext=c
3948 ac_cpp='$CPP $CPPFLAGS'
3949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3953 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3954 # On Suns, sometimes $CPP names a directory.
3955 if test -n "$CPP" && test -d "$CPP"; then
3956 CPP=
3958 if test -z "$CPP"; then
3959 if test "${ac_cv_prog_CPP+set}" = set; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 # Double quotes because CPP needs to be expanded
3963 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3965 ac_preproc_ok=false
3966 for ac_c_preproc_warn_flag in '' yes
3968 # Use a header file that comes with gcc, so configuring glibc
3969 # with a fresh cross-compiler works.
3970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3971 # <limits.h> exists even on freestanding compilers.
3972 # On the NeXT, cc -E runs the code through the compiler's parser,
3973 # not just through cpp. "Syntax error" is here to catch this case.
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3976 #ifdef __STDC__
3977 # include <limits.h>
3978 #else
3979 # include <assert.h>
3980 #endif
3981 Syntax error
3982 _ACEOF
3983 if ac_fn_c_try_cpp "$LINENO"; then :
3985 else
3986 # Broken: fails on valid input.
3987 continue
3989 rm -f conftest.err conftest.$ac_ext
3991 # OK, works on sane cases. Now check whether nonexistent headers
3992 # can be detected and how.
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995 #include <ac_nonexistent.h>
3996 _ACEOF
3997 if ac_fn_c_try_cpp "$LINENO"; then :
3998 # Broken: success on invalid input.
3999 continue
4000 else
4001 # Passes both tests.
4002 ac_preproc_ok=:
4003 break
4005 rm -f conftest.err conftest.$ac_ext
4007 done
4008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4009 rm -f conftest.err conftest.$ac_ext
4010 if $ac_preproc_ok; then :
4011 break
4014 done
4015 ac_cv_prog_CPP=$CPP
4018 CPP=$ac_cv_prog_CPP
4019 else
4020 ac_cv_prog_CPP=$CPP
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4023 $as_echo "$CPP" >&6; }
4024 ac_preproc_ok=false
4025 for ac_c_preproc_warn_flag in '' yes
4027 # Use a header file that comes with gcc, so configuring glibc
4028 # with a fresh cross-compiler works.
4029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4030 # <limits.h> exists even on freestanding compilers.
4031 # On the NeXT, cc -E runs the code through the compiler's parser,
4032 # not just through cpp. "Syntax error" is here to catch this case.
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035 #ifdef __STDC__
4036 # include <limits.h>
4037 #else
4038 # include <assert.h>
4039 #endif
4040 Syntax error
4041 _ACEOF
4042 if ac_fn_c_try_cpp "$LINENO"; then :
4044 else
4045 # Broken: fails on valid input.
4046 continue
4048 rm -f conftest.err conftest.$ac_ext
4050 # OK, works on sane cases. Now check whether nonexistent headers
4051 # can be detected and how.
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4054 #include <ac_nonexistent.h>
4055 _ACEOF
4056 if ac_fn_c_try_cpp "$LINENO"; then :
4057 # Broken: success on invalid input.
4058 continue
4059 else
4060 # Passes both tests.
4061 ac_preproc_ok=:
4062 break
4064 rm -f conftest.err conftest.$ac_ext
4066 done
4067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4068 rm -f conftest.err conftest.$ac_ext
4069 if $ac_preproc_ok; then :
4071 else
4072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4074 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4075 See \`config.log' for more details." "$LINENO" 5; }
4078 ac_ext=c
4079 ac_cpp='$CPP $CPPFLAGS'
4080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4086 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4087 if test "${ac_cv_path_GREP+set}" = set; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 if test -z "$GREP"; then
4091 ac_path_GREP_found=false
4092 # Loop through the user's path and test for each of PROGNAME-LIST
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_prog in grep ggrep; do
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4101 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4102 # Check for GNU ac_path_GREP and select it if it is found.
4103 # Check for GNU $ac_path_GREP
4104 case `"$ac_path_GREP" --version 2>&1` in
4105 *GNU*)
4106 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4108 ac_count=0
4109 $as_echo_n 0123456789 >"conftest.in"
4110 while :
4112 cat "conftest.in" "conftest.in" >"conftest.tmp"
4113 mv "conftest.tmp" "conftest.in"
4114 cp "conftest.in" "conftest.nl"
4115 $as_echo 'GREP' >> "conftest.nl"
4116 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4118 as_fn_arith $ac_count + 1 && ac_count=$as_val
4119 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4120 # Best one so far, save it but keep looking for a better one
4121 ac_cv_path_GREP="$ac_path_GREP"
4122 ac_path_GREP_max=$ac_count
4124 # 10*(2^10) chars as input seems more than enough
4125 test $ac_count -gt 10 && break
4126 done
4127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4128 esac
4130 $ac_path_GREP_found && break 3
4131 done
4132 done
4133 done
4134 IFS=$as_save_IFS
4135 if test -z "$ac_cv_path_GREP"; then
4136 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4138 else
4139 ac_cv_path_GREP=$GREP
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4144 $as_echo "$ac_cv_path_GREP" >&6; }
4145 GREP="$ac_cv_path_GREP"
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4149 $as_echo_n "checking for egrep... " >&6; }
4150 if test "${ac_cv_path_EGREP+set}" = set; then :
4151 $as_echo_n "(cached) " >&6
4152 else
4153 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4154 then ac_cv_path_EGREP="$GREP -E"
4155 else
4156 if test -z "$EGREP"; then
4157 ac_path_EGREP_found=false
4158 # Loop through the user's path and test for each of PROGNAME-LIST
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_prog in egrep; do
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4167 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4168 # Check for GNU ac_path_EGREP and select it if it is found.
4169 # Check for GNU $ac_path_EGREP
4170 case `"$ac_path_EGREP" --version 2>&1` in
4171 *GNU*)
4172 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4174 ac_count=0
4175 $as_echo_n 0123456789 >"conftest.in"
4176 while :
4178 cat "conftest.in" "conftest.in" >"conftest.tmp"
4179 mv "conftest.tmp" "conftest.in"
4180 cp "conftest.in" "conftest.nl"
4181 $as_echo 'EGREP' >> "conftest.nl"
4182 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4183 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4184 as_fn_arith $ac_count + 1 && ac_count=$as_val
4185 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4186 # Best one so far, save it but keep looking for a better one
4187 ac_cv_path_EGREP="$ac_path_EGREP"
4188 ac_path_EGREP_max=$ac_count
4190 # 10*(2^10) chars as input seems more than enough
4191 test $ac_count -gt 10 && break
4192 done
4193 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4194 esac
4196 $ac_path_EGREP_found && break 3
4197 done
4198 done
4199 done
4200 IFS=$as_save_IFS
4201 if test -z "$ac_cv_path_EGREP"; then
4202 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4204 else
4205 ac_cv_path_EGREP=$EGREP
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4211 $as_echo "$ac_cv_path_EGREP" >&6; }
4212 EGREP="$ac_cv_path_EGREP"
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4216 $as_echo_n "checking for ANSI C header files... " >&6; }
4217 if test "${ac_cv_header_stdc+set}" = set; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222 #include <stdlib.h>
4223 #include <stdarg.h>
4224 #include <string.h>
4225 #include <float.h>
4228 main ()
4232 return 0;
4234 _ACEOF
4235 if ac_fn_c_try_compile "$LINENO"; then :
4236 ac_cv_header_stdc=yes
4237 else
4238 ac_cv_header_stdc=no
4240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 if test $ac_cv_header_stdc = yes; then
4243 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4246 #include <string.h>
4248 _ACEOF
4249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4250 $EGREP "memchr" >/dev/null 2>&1; then :
4252 else
4253 ac_cv_header_stdc=no
4255 rm -f conftest*
4259 if test $ac_cv_header_stdc = yes; then
4260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4263 #include <stdlib.h>
4265 _ACEOF
4266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4267 $EGREP "free" >/dev/null 2>&1; then :
4269 else
4270 ac_cv_header_stdc=no
4272 rm -f conftest*
4276 if test $ac_cv_header_stdc = yes; then
4277 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4278 if test "$cross_compiling" = yes; then :
4280 else
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283 #include <ctype.h>
4284 #include <stdlib.h>
4285 #if ((' ' & 0x0FF) == 0x020)
4286 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4287 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4288 #else
4289 # define ISLOWER(c) \
4290 (('a' <= (c) && (c) <= 'i') \
4291 || ('j' <= (c) && (c) <= 'r') \
4292 || ('s' <= (c) && (c) <= 'z'))
4293 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4294 #endif
4296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4298 main ()
4300 int i;
4301 for (i = 0; i < 256; i++)
4302 if (XOR (islower (i), ISLOWER (i))
4303 || toupper (i) != TOUPPER (i))
4304 return 2;
4305 return 0;
4307 _ACEOF
4308 if ac_fn_c_try_run "$LINENO"; then :
4310 else
4311 ac_cv_header_stdc=no
4313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4314 conftest.$ac_objext conftest.beam conftest.$ac_ext
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4320 $as_echo "$ac_cv_header_stdc" >&6; }
4321 if test $ac_cv_header_stdc = yes; then
4323 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4327 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4328 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4329 inttypes.h stdint.h unistd.h
4330 do :
4331 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4332 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4334 eval as_val=\$$as_ac_Header
4335 if test "x$as_val" = x""yes; then :
4336 cat >>confdefs.h <<_ACEOF
4337 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4338 _ACEOF
4342 done
4346 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4347 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4348 MINIX=yes
4349 else
4350 MINIX=
4354 if test "$MINIX" = yes; then
4356 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4359 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4362 $as_echo "#define _MINIX 1" >>confdefs.h
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4368 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4369 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4375 # define __EXTENSIONS__ 1
4376 $ac_includes_default
4378 main ()
4382 return 0;
4384 _ACEOF
4385 if ac_fn_c_try_compile "$LINENO"; then :
4386 ac_cv_safe_to_define___extensions__=yes
4387 else
4388 ac_cv_safe_to_define___extensions__=no
4390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4393 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4394 test $ac_cv_safe_to_define___extensions__ = yes &&
4395 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4397 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4399 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4401 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4403 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4406 # Check whether --enable-largefile was given.
4407 if test "${enable_largefile+set}" = set; then :
4408 enableval=$enable_largefile;
4411 if test "$enable_largefile" != no; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4414 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4415 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 ac_cv_sys_largefile_CC=no
4419 if test "$GCC" != yes; then
4420 ac_save_CC=$CC
4421 while :; do
4422 # IRIX 6.2 and later do not support large files by default,
4423 # so use the C compiler's -n32 option if that helps.
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426 #include <sys/types.h>
4427 /* Check that off_t can represent 2**63 - 1 correctly.
4428 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4429 since some C++ compilers masquerading as C compilers
4430 incorrectly reject 9223372036854775807. */
4431 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4432 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4433 && LARGE_OFF_T % 2147483647 == 1)
4434 ? 1 : -1];
4436 main ()
4440 return 0;
4442 _ACEOF
4443 if ac_fn_c_try_compile "$LINENO"; then :
4444 break
4446 rm -f core conftest.err conftest.$ac_objext
4447 CC="$CC -n32"
4448 if ac_fn_c_try_compile "$LINENO"; then :
4449 ac_cv_sys_largefile_CC=' -n32'; break
4451 rm -f core conftest.err conftest.$ac_objext
4452 break
4453 done
4454 CC=$ac_save_CC
4455 rm -f conftest.$ac_ext
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4459 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4460 if test "$ac_cv_sys_largefile_CC" != no; then
4461 CC=$CC$ac_cv_sys_largefile_CC
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4465 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4466 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4467 $as_echo_n "(cached) " >&6
4468 else
4469 while :; do
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4472 #include <sys/types.h>
4473 /* Check that off_t can represent 2**63 - 1 correctly.
4474 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4475 since some C++ compilers masquerading as C compilers
4476 incorrectly reject 9223372036854775807. */
4477 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4478 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4479 && LARGE_OFF_T % 2147483647 == 1)
4480 ? 1 : -1];
4482 main ()
4486 return 0;
4488 _ACEOF
4489 if ac_fn_c_try_compile "$LINENO"; then :
4490 ac_cv_sys_file_offset_bits=no; break
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4495 #define _FILE_OFFSET_BITS 64
4496 #include <sys/types.h>
4497 /* Check that off_t can represent 2**63 - 1 correctly.
4498 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4499 since some C++ compilers masquerading as C compilers
4500 incorrectly reject 9223372036854775807. */
4501 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4502 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4503 && LARGE_OFF_T % 2147483647 == 1)
4504 ? 1 : -1];
4506 main ()
4510 return 0;
4512 _ACEOF
4513 if ac_fn_c_try_compile "$LINENO"; then :
4514 ac_cv_sys_file_offset_bits=64; break
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 ac_cv_sys_file_offset_bits=unknown
4518 break
4519 done
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4522 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4523 case $ac_cv_sys_file_offset_bits in #(
4524 no | unknown) ;;
4526 cat >>confdefs.h <<_ACEOF
4527 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4528 _ACEOF
4530 esac
4531 rm -rf conftest*
4532 if test $ac_cv_sys_file_offset_bits = unknown; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4534 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4535 if test "${ac_cv_sys_large_files+set}" = set; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 while :; do
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4541 #include <sys/types.h>
4542 /* Check that off_t can represent 2**63 - 1 correctly.
4543 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4544 since some C++ compilers masquerading as C compilers
4545 incorrectly reject 9223372036854775807. */
4546 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4547 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4548 && LARGE_OFF_T % 2147483647 == 1)
4549 ? 1 : -1];
4551 main ()
4555 return 0;
4557 _ACEOF
4558 if ac_fn_c_try_compile "$LINENO"; then :
4559 ac_cv_sys_large_files=no; break
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4564 #define _LARGE_FILES 1
4565 #include <sys/types.h>
4566 /* Check that off_t can represent 2**63 - 1 correctly.
4567 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4568 since some C++ compilers masquerading as C compilers
4569 incorrectly reject 9223372036854775807. */
4570 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4571 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4572 && LARGE_OFF_T % 2147483647 == 1)
4573 ? 1 : -1];
4575 main ()
4579 return 0;
4581 _ACEOF
4582 if ac_fn_c_try_compile "$LINENO"; then :
4583 ac_cv_sys_large_files=1; break
4585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586 ac_cv_sys_large_files=unknown
4587 break
4588 done
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4591 $as_echo "$ac_cv_sys_large_files" >&6; }
4592 case $ac_cv_sys_large_files in #(
4593 no | unknown) ;;
4595 cat >>confdefs.h <<_ACEOF
4596 #define _LARGE_FILES $ac_cv_sys_large_files
4597 _ACEOF
4599 esac
4600 rm -rf conftest*
4605 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4606 for ac_prog in aclocal
4608 # Extract the first word of "$ac_prog", so it can be a program name with args.
4609 set dummy $ac_prog; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 if test -n "$ACLOCAL"; then
4616 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_prog_ACLOCAL="$ac_prog"
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4629 done
4630 done
4631 IFS=$as_save_IFS
4635 ACLOCAL=$ac_cv_prog_ACLOCAL
4636 if test -n "$ACLOCAL"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4638 $as_echo "$ACLOCAL" >&6; }
4639 else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4645 test -n "$ACLOCAL" && break
4646 done
4647 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
4649 for ac_prog in autoconf
4651 # Extract the first word of "$ac_prog", so it can be a program name with args.
4652 set dummy $ac_prog; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 if test -n "$AUTOCONF"; then
4659 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_AUTOCONF="$ac_prog"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4672 done
4673 done
4674 IFS=$as_save_IFS
4678 AUTOCONF=$ac_cv_prog_AUTOCONF
4679 if test -n "$AUTOCONF"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4681 $as_echo "$AUTOCONF" >&6; }
4682 else
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4688 test -n "$AUTOCONF" && break
4689 done
4690 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
4692 for ac_prog in autoheader
4694 # Extract the first word of "$ac_prog", so it can be a program name with args.
4695 set dummy $ac_prog; ac_word=$2
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697 $as_echo_n "checking for $ac_word... " >&6; }
4698 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
4699 $as_echo_n "(cached) " >&6
4700 else
4701 if test -n "$AUTOHEADER"; then
4702 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
4703 else
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_AUTOHEADER="$ac_prog"
4712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4715 done
4716 done
4717 IFS=$as_save_IFS
4721 AUTOHEADER=$ac_cv_prog_AUTOHEADER
4722 if test -n "$AUTOHEADER"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4724 $as_echo "$AUTOHEADER" >&6; }
4725 else
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4731 test -n "$AUTOHEADER" && break
4732 done
4733 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
4736 # Figure out what compiler warnings we can enable.
4737 # See config/warnings.m4 for details.
4739 ac_ext=c
4740 ac_cpp='$CPP $CPPFLAGS'
4741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4745 warn=
4746 save_CFLAGS="$CFLAGS"
4747 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
4748 -Wmissing-format-attribute; do
4749 # Do the check with the no- prefix removed since gcc silently
4750 # accepts any -Wno-* option on purpose
4751 case $real_option in
4752 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4753 *) option=$real_option ;;
4754 esac
4755 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4758 $as_echo_n "checking whether $CC supports $option... " >&6; }
4759 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4760 $as_echo_n "(cached) " >&6
4761 else
4762 CFLAGS="$option"
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4767 main ()
4771 return 0;
4773 _ACEOF
4774 if ac_fn_c_try_compile "$LINENO"; then :
4775 eval "$as_acx_Woption=yes"
4776 else
4777 eval "$as_acx_Woption=no"
4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782 eval ac_res=\$$as_acx_Woption
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4784 $as_echo "$ac_res" >&6; }
4785 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4786 warn="$warn${warn:+ }$real_option"
4788 done
4789 CFLAGS="$save_CFLAGS"
4790 ac_ext=c
4791 ac_cpp='$CPP $CPPFLAGS'
4792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4797 ac_ext=c
4798 ac_cpp='$CPP $CPPFLAGS'
4799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4803 c_warn=
4804 save_CFLAGS="$CFLAGS"
4805 for real_option in -Wstrict-prototypes -Wmissing-prototypes \
4806 -Wold-style-definition -Wc++-compat; do
4807 # Do the check with the no- prefix removed since gcc silently
4808 # accepts any -Wno-* option on purpose
4809 case $real_option in
4810 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4811 *) option=$real_option ;;
4812 esac
4813 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4816 $as_echo_n "checking whether $CC supports $option... " >&6; }
4817 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 CFLAGS="$option"
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4825 main ()
4829 return 0;
4831 _ACEOF
4832 if ac_fn_c_try_compile "$LINENO"; then :
4833 eval "$as_acx_Woption=yes"
4834 else
4835 eval "$as_acx_Woption=no"
4837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840 eval ac_res=\$$as_acx_Woption
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4842 $as_echo "$ac_res" >&6; }
4843 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4844 c_warn="$c_warn${c_warn:+ }$real_option"
4846 done
4847 CFLAGS="$save_CFLAGS"
4848 ac_ext=c
4849 ac_cpp='$CPP $CPPFLAGS'
4850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855 ac_ext=c
4856 ac_cpp='$CPP $CPPFLAGS'
4857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4861 WARN_PEDANTIC=
4862 # Do the check with the no- prefix removed from the warning options
4863 # since gcc silently accepts any -Wno-* option on purpose
4864 if test "$GCC" = yes; then :
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
4866 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
4867 if test "${acx_cv_prog_cc_pedantic__Wlong_long+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 save_CFLAGS="$CFLAGS"
4871 CFLAGS="-pedantic -Wlong-long"
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4876 main ()
4880 return 0;
4882 _ACEOF
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884 acx_cv_prog_cc_pedantic__Wlong_long=yes
4885 else
4886 acx_cv_prog_cc_pedantic__Wlong_long=no
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 CFLAGS="$save_CFLAGS"
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
4892 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
4893 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
4894 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
4898 ac_ext=c
4899 ac_cpp='$CPP $CPPFLAGS'
4900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906 # Disable exceptions and RTTI if building with g++
4907 ac_ext=c
4908 ac_cpp='$CPP $CPPFLAGS'
4909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913 noexception_flags=
4914 save_CFLAGS="$CFLAGS"
4915 for real_option in -fno-exceptions -fno-rtti; do
4916 # Do the check with the no- prefix removed since gcc silently
4917 # accepts any -Wno-* option on purpose
4918 case $real_option in
4919 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4920 *) option=$real_option ;;
4921 esac
4922 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4925 $as_echo_n "checking whether $CC supports $option... " >&6; }
4926 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 CFLAGS="$option"
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4934 main ()
4938 return 0;
4940 _ACEOF
4941 if ac_fn_c_try_compile "$LINENO"; then :
4942 eval "$as_acx_Woption=yes"
4943 else
4944 eval "$as_acx_Woption=no"
4946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949 eval ac_res=\$$as_acx_Woption
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4951 $as_echo "$ac_res" >&6; }
4952 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4953 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
4955 done
4956 CFLAGS="$save_CFLAGS"
4957 ac_ext=c
4958 ac_cpp='$CPP $CPPFLAGS'
4959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965 # Only enable with --enable-werror-always until existing warnings are
4966 # corrected.
4967 ac_ext=c
4968 ac_cpp='$CPP $CPPFLAGS'
4969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973 WERROR=
4974 # Check whether --enable-werror-always was given.
4975 if test "${enable_werror_always+set}" = set; then :
4976 enableval=$enable_werror_always;
4977 else
4978 enable_werror_always=no
4981 if test $enable_werror_always = yes; then :
4982 WERROR="$WERROR${WERROR:+ }-Werror"
4985 ac_ext=c
4986 ac_cpp='$CPP $CPPFLAGS'
4987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4993 # Dependency checking.
4994 rm -rf .tst 2>/dev/null
4995 mkdir .tst 2>/dev/null
4996 if test -d .tst; then
4997 am__leading_dot=.
4998 else
4999 am__leading_dot=_
5001 rmdir .tst 2>/dev/null
5003 DEPDIR="${am__leading_dot}deps"
5005 ac_config_commands="$ac_config_commands depdir"
5008 ac_ext=cpp
5009 ac_cpp='$CXXCPP $CPPFLAGS'
5010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5017 int i;
5018 _ACEOF
5019 if ac_fn_cxx_try_compile "$LINENO"; then :
5021 else
5022 as_fn_error "C++ compiler missing or inoperational" "$LINENO" 5
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025 ac_ext=c
5026 ac_cpp='$CPP $CPPFLAGS'
5027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5031 depcc="$CXX" am_compiler_list=
5033 am_depcomp=$ac_aux_dir/depcomp
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5035 $as_echo_n "checking dependency style of $depcc... " >&6; }
5036 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 if test -f "$am_depcomp"; then
5040 # We make a subdir and do the tests there. Otherwise we can end up
5041 # making bogus files that we don't know about and never remove. For
5042 # instance it was reported that on HP-UX the gcc test will end up
5043 # making a dummy file named `D' -- because `-MD' means `put the output
5044 # in D'.
5045 mkdir conftest.dir
5046 # Copy depcomp to subdir because otherwise we won't find it if we're
5047 # using a relative directory.
5048 cp "$am_depcomp" conftest.dir
5049 cd conftest.dir
5050 # We will build objects and dependencies in a subdirectory because
5051 # it helps to detect inapplicable dependency modes. For instance
5052 # both Tru64's cc and ICC support -MD to output dependencies as a
5053 # side effect of compilation, but ICC will put the dependencies in
5054 # the current directory while Tru64 will put them in the object
5055 # directory.
5056 mkdir sub
5058 am_cv_CXX_dependencies_compiler_type=none
5059 if test "$am_compiler_list" = ""; then
5060 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5062 for depmode in $am_compiler_list; do
5063 if test $depmode = none; then break; fi
5065 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5066 # Setup a source with many dependencies, because some compilers
5067 # like to wrap large dependency lists on column 80 (with \), and
5068 # we should not choose a depcomp mode which is confused by this.
5070 # We need to recreate these files for each test, as the compiler may
5071 # overwrite some of them when testing with obscure command lines.
5072 # This happens at least with the AIX C compiler.
5073 : > sub/conftest.c
5074 for i in 1 2 3 4 5 6; do
5075 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5076 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5077 # Solaris 8's {/usr,}/bin/sh.
5078 touch sub/conftst$i.h
5079 done
5080 echo "include sub/conftest.Po" > confmf
5082 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5083 # mode. It turns out that the SunPro C++ compiler does not properly
5084 # handle `-M -o', and we need to detect this.
5085 depcmd="depmode=$depmode \
5086 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5087 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5088 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5089 echo "| $depcmd" | sed -e 's/ */ /g' >&5
5090 if env $depcmd > conftest.err 2>&1 &&
5091 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5092 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5093 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5094 # icc doesn't choke on unknown options, it will just issue warnings
5095 # or remarks (even with -Werror). So we grep stderr for any message
5096 # that says an option was ignored or not supported.
5097 # When given -MP, icc 7.0 and 7.1 complain thusly:
5098 # icc: Command line warning: ignoring option '-M'; no argument required
5099 # The diagnosis changed in icc 8.0:
5100 # icc: Command line remark: option '-MP' not supported
5101 if (grep 'ignoring option' conftest.err ||
5102 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5103 am_cv_CXX_dependencies_compiler_type=$depmode
5104 $as_echo "$as_me:$LINENO: success" >&5
5105 break
5108 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5109 sed -e 's/^/| /' < conftest.err >&5
5110 done
5112 cd ..
5113 rm -rf conftest.dir
5114 else
5115 am_cv_CXX_dependencies_compiler_type=none
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5120 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5121 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
5122 then as_fn_error "no usable dependency style found" "$LINENO" 5
5123 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5128 # Checks for header files.
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5130 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5131 if test "${ac_cv_header_time+set}" = set; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5136 #include <sys/types.h>
5137 #include <sys/time.h>
5138 #include <time.h>
5141 main ()
5143 if ((struct tm *) 0)
5144 return 0;
5146 return 0;
5148 _ACEOF
5149 if ac_fn_c_try_compile "$LINENO"; then :
5150 ac_cv_header_time=yes
5151 else
5152 ac_cv_header_time=no
5154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5157 $as_echo "$ac_cv_header_time" >&6; }
5158 if test $ac_cv_header_time = yes; then
5160 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5165 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5166 if test "${gcc_cv_header_string+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5171 #include <string.h>
5172 #include <strings.h>
5174 main ()
5178 return 0;
5180 _ACEOF
5181 if ac_fn_c_try_compile "$LINENO"; then :
5182 gcc_cv_header_string=yes
5183 else
5184 gcc_cv_header_string=no
5186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5189 $as_echo "$gcc_cv_header_string" >&6; }
5190 if test $gcc_cv_header_string = yes; then
5192 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5197 for ac_header in locale.h fcntl.h limits.h stddef.h \
5198 stdlib.h strings.h string.h sys/file.h unistd.h
5199 do :
5200 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5201 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5202 eval as_val=\$$as_ac_Header
5203 if test "x$as_val" = x""yes; then :
5204 cat >>confdefs.h <<_ACEOF
5205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5206 _ACEOF
5210 done
5213 # Checks for typedefs, structures, and compiler characteristics.
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5215 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5216 if test "${ac_cv_c_bigendian+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 ac_cv_c_bigendian=unknown
5220 # See if we're dealing with a universal compiler.
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5223 #ifndef __APPLE_CC__
5224 not a universal capable compiler
5225 #endif
5226 typedef int dummy;
5228 _ACEOF
5229 if ac_fn_c_try_compile "$LINENO"; then :
5231 # Check for potential -arch flags. It is not universal unless
5232 # there are at least two -arch flags with different values.
5233 ac_arch=
5234 ac_prev=
5235 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5236 if test -n "$ac_prev"; then
5237 case $ac_word in
5238 i?86 | x86_64 | ppc | ppc64)
5239 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5240 ac_arch=$ac_word
5241 else
5242 ac_cv_c_bigendian=universal
5243 break
5246 esac
5247 ac_prev=
5248 elif test "x$ac_word" = "x-arch"; then
5249 ac_prev=arch
5251 done
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 if test $ac_cv_c_bigendian = unknown; then
5255 # See if sys/param.h defines the BYTE_ORDER macro.
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5258 #include <sys/types.h>
5259 #include <sys/param.h>
5262 main ()
5264 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5265 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5266 && LITTLE_ENDIAN)
5267 bogus endian macros
5268 #endif
5271 return 0;
5273 _ACEOF
5274 if ac_fn_c_try_compile "$LINENO"; then :
5275 # It does; now see whether it defined to BIG_ENDIAN or not.
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 #include <sys/types.h>
5279 #include <sys/param.h>
5282 main ()
5284 #if BYTE_ORDER != BIG_ENDIAN
5285 not big endian
5286 #endif
5289 return 0;
5291 _ACEOF
5292 if ac_fn_c_try_compile "$LINENO"; then :
5293 ac_cv_c_bigendian=yes
5294 else
5295 ac_cv_c_bigendian=no
5297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301 if test $ac_cv_c_bigendian = unknown; then
5302 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5305 #include <limits.h>
5308 main ()
5310 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5311 bogus endian macros
5312 #endif
5315 return 0;
5317 _ACEOF
5318 if ac_fn_c_try_compile "$LINENO"; then :
5319 # It does; now see whether it defined to _BIG_ENDIAN or not.
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322 #include <limits.h>
5325 main ()
5327 #ifndef _BIG_ENDIAN
5328 not big endian
5329 #endif
5332 return 0;
5334 _ACEOF
5335 if ac_fn_c_try_compile "$LINENO"; then :
5336 ac_cv_c_bigendian=yes
5337 else
5338 ac_cv_c_bigendian=no
5340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 if test $ac_cv_c_bigendian = unknown; then
5345 # Compile a test program.
5346 if test "$cross_compiling" = yes; then :
5347 # Try to guess by grepping values from an object file.
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 short int ascii_mm[] =
5351 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5352 short int ascii_ii[] =
5353 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5354 int use_ascii (int i) {
5355 return ascii_mm[i] + ascii_ii[i];
5357 short int ebcdic_ii[] =
5358 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5359 short int ebcdic_mm[] =
5360 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5361 int use_ebcdic (int i) {
5362 return ebcdic_mm[i] + ebcdic_ii[i];
5364 extern int foo;
5367 main ()
5369 return use_ascii (foo) == use_ebcdic (foo);
5371 return 0;
5373 _ACEOF
5374 if ac_fn_c_try_compile "$LINENO"; then :
5375 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5376 ac_cv_c_bigendian=yes
5378 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5379 if test "$ac_cv_c_bigendian" = unknown; then
5380 ac_cv_c_bigendian=no
5381 else
5382 # finding both strings is unlikely to happen, but who knows?
5383 ac_cv_c_bigendian=unknown
5387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388 else
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391 $ac_includes_default
5393 main ()
5396 /* Are we little or big endian? From Harbison&Steele. */
5397 union
5399 long int l;
5400 char c[sizeof (long int)];
5401 } u;
5402 u.l = 1;
5403 return u.c[sizeof (long int) - 1] == 1;
5406 return 0;
5408 _ACEOF
5409 if ac_fn_c_try_run "$LINENO"; then :
5410 ac_cv_c_bigendian=no
5411 else
5412 ac_cv_c_bigendian=yes
5414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5415 conftest.$ac_objext conftest.beam conftest.$ac_ext
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5421 $as_echo "$ac_cv_c_bigendian" >&6; }
5422 case $ac_cv_c_bigendian in #(
5423 yes)
5424 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5425 ;; #(
5427 ;; #(
5428 universal)
5430 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5432 ;; #(
5434 as_fn_error "unknown endianness
5435 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5436 esac
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5439 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5440 if test "${ac_cv_c_const+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5447 main ()
5449 /* FIXME: Include the comments suggested by Paul. */
5450 #ifndef __cplusplus
5451 /* Ultrix mips cc rejects this. */
5452 typedef int charset[2];
5453 const charset cs;
5454 /* SunOS 4.1.1 cc rejects this. */
5455 char const *const *pcpcc;
5456 char **ppc;
5457 /* NEC SVR4.0.2 mips cc rejects this. */
5458 struct point {int x, y;};
5459 static struct point const zero = {0,0};
5460 /* AIX XL C 1.02.0.0 rejects this.
5461 It does not let you subtract one const X* pointer from another in
5462 an arm of an if-expression whose if-part is not a constant
5463 expression */
5464 const char *g = "string";
5465 pcpcc = &g + (g ? g-g : 0);
5466 /* HPUX 7.0 cc rejects these. */
5467 ++pcpcc;
5468 ppc = (char**) pcpcc;
5469 pcpcc = (char const *const *) ppc;
5470 { /* SCO 3.2v4 cc rejects this. */
5471 char *t;
5472 char const *s = 0 ? (char *) 0 : (char const *) 0;
5474 *t++ = 0;
5475 if (s) return 0;
5477 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5478 int x[] = {25, 17};
5479 const int *foo = &x[0];
5480 ++foo;
5482 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5483 typedef const int *iptr;
5484 iptr p = 0;
5485 ++p;
5487 { /* AIX XL C 1.02.0.0 rejects this saying
5488 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5489 struct s { int j; const int *ap[3]; };
5490 struct s *b; b->j = 5;
5492 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5493 const int foo = 10;
5494 if (!foo) return 0;
5496 return !cs[0] && !zero.x;
5497 #endif
5500 return 0;
5502 _ACEOF
5503 if ac_fn_c_try_compile "$LINENO"; then :
5504 ac_cv_c_const=yes
5505 else
5506 ac_cv_c_const=no
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5511 $as_echo "$ac_cv_c_const" >&6; }
5512 if test $ac_cv_c_const = no; then
5514 $as_echo "#define const /**/" >>confdefs.h
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5519 $as_echo_n "checking for inline... " >&6; }
5520 if test "${ac_cv_c_inline+set}" = set; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 ac_cv_c_inline=no
5524 for ac_kw in inline __inline__ __inline; do
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5527 #ifndef __cplusplus
5528 typedef int foo_t;
5529 static $ac_kw foo_t static_foo () {return 0; }
5530 $ac_kw foo_t foo () {return 0; }
5531 #endif
5533 _ACEOF
5534 if ac_fn_c_try_compile "$LINENO"; then :
5535 ac_cv_c_inline=$ac_kw
5537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538 test "$ac_cv_c_inline" != no && break
5539 done
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5543 $as_echo "$ac_cv_c_inline" >&6; }
5545 case $ac_cv_c_inline in
5546 inline | yes) ;;
5548 case $ac_cv_c_inline in
5549 no) ac_val=;;
5550 *) ac_val=$ac_cv_c_inline;;
5551 esac
5552 cat >>confdefs.h <<_ACEOF
5553 #ifndef __cplusplus
5554 #define inline $ac_val
5555 #endif
5556 _ACEOF
5558 esac
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5561 $as_echo_n "checking for obstacks... " >&6; }
5562 if test "${ac_cv_func_obstack+set}" = set; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5567 $ac_includes_default
5568 #include "obstack.h"
5570 main ()
5572 struct obstack mem;
5573 #define obstack_chunk_alloc malloc
5574 #define obstack_chunk_free free
5575 obstack_init (&mem);
5576 obstack_free (&mem, 0);
5578 return 0;
5580 _ACEOF
5581 if ac_fn_c_try_link "$LINENO"; then :
5582 ac_cv_func_obstack=yes
5583 else
5584 ac_cv_func_obstack=no
5586 rm -f core conftest.err conftest.$ac_objext \
5587 conftest$ac_exeext conftest.$ac_ext
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5590 $as_echo "$ac_cv_func_obstack" >&6; }
5591 if test $ac_cv_func_obstack = yes; then
5593 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5595 else
5596 case " $LIBOBJS " in
5597 *" obstack.$ac_objext "* ) ;;
5598 *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
5600 esac
5604 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5605 if test "x$ac_cv_type_off_t" = x""yes; then :
5607 else
5609 cat >>confdefs.h <<_ACEOF
5610 #define off_t long int
5611 _ACEOF
5615 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5616 if test "x$ac_cv_type_size_t" = x""yes; then :
5618 else
5620 cat >>confdefs.h <<_ACEOF
5621 #define size_t unsigned int
5622 _ACEOF
5626 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5627 if test "x$ac_cv_type_ssize_t" = x""yes; then :
5629 else
5631 cat >>confdefs.h <<_ACEOF
5632 #define ssize_t int
5633 _ACEOF
5638 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5639 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
5641 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5643 else
5644 for ac_type in 'unsigned int' 'unsigned long int' \
5645 'unsigned long long int'; do
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5648 $ac_includes_default
5650 main ()
5652 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5653 test_array [0] = 0
5656 return 0;
5658 _ACEOF
5659 if ac_fn_c_try_compile "$LINENO"; then :
5661 cat >>confdefs.h <<_ACEOF
5662 #define uintptr_t $ac_type
5663 _ACEOF
5665 ac_type=
5667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 test -z "$ac_type" && break
5669 done
5673 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5674 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
5676 else
5678 cat >>confdefs.h <<_ACEOF
5679 #define ptrdiff_t int
5680 _ACEOF
5684 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5685 case $ac_cv_c_uint64_t in #(
5686 no|yes) ;; #(
5689 $as_echo "#define _UINT64_T 1" >>confdefs.h
5692 cat >>confdefs.h <<_ACEOF
5693 #define uint64_t $ac_cv_c_uint64_t
5694 _ACEOF
5696 esac
5698 if test x"$ac_cv_c_uint64_t" = x"no"; then
5699 as_fn_error "uint64_t not found" "$LINENO" 5
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5702 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5703 if test "${ac_cv_struct_tm+set}" = set; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 #include <sys/types.h>
5709 #include <time.h>
5712 main ()
5714 struct tm tm;
5715 int *p = &tm.tm_sec;
5716 return !p;
5718 return 0;
5720 _ACEOF
5721 if ac_fn_c_try_compile "$LINENO"; then :
5722 ac_cv_struct_tm=time.h
5723 else
5724 ac_cv_struct_tm=sys/time.h
5726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5729 $as_echo "$ac_cv_struct_tm" >&6; }
5730 if test $ac_cv_struct_tm = sys/time.h; then
5732 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5736 # The cast to long int works around a bug in the HP C Compiler
5737 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5738 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5739 # This bug is HP SR number 8606223364.
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5741 $as_echo_n "checking size of int... " >&6; }
5742 if test "${ac_cv_sizeof_int+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5747 else
5748 if test "$ac_cv_type_int" = yes; then
5749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5751 { as_fn_set_status 77
5752 as_fn_error "cannot compute sizeof (int)
5753 See \`config.log' for more details." "$LINENO" 5; }; }
5754 else
5755 ac_cv_sizeof_int=0
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5761 $as_echo "$ac_cv_sizeof_int" >&6; }
5765 cat >>confdefs.h <<_ACEOF
5766 #define SIZEOF_INT $ac_cv_sizeof_int
5767 _ACEOF
5770 # The cast to long int works around a bug in the HP C Compiler
5771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5773 # This bug is HP SR number 8606223364.
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5775 $as_echo_n "checking size of long... " >&6; }
5776 if test "${ac_cv_sizeof_long+set}" = set; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5779 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5781 else
5782 if test "$ac_cv_type_long" = yes; then
5783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5785 { as_fn_set_status 77
5786 as_fn_error "cannot compute sizeof (long)
5787 See \`config.log' for more details." "$LINENO" 5; }; }
5788 else
5789 ac_cv_sizeof_long=0
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5795 $as_echo "$ac_cv_sizeof_long" >&6; }
5799 cat >>confdefs.h <<_ACEOF
5800 #define SIZEOF_LONG $ac_cv_sizeof_long
5801 _ACEOF
5805 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
5806 do :
5807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5808 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5809 eval as_val=\$$as_ac_var
5810 if test "x$as_val" = x""yes; then :
5811 cat >>confdefs.h <<_ACEOF
5812 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5813 _ACEOF
5816 done
5818 ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5819 if test "x$ac_cv_have_decl_abort" = x""yes; then :
5820 ac_have_decl=1
5821 else
5822 ac_have_decl=0
5825 cat >>confdefs.h <<_ACEOF
5826 #define HAVE_DECL_ABORT $ac_have_decl
5827 _ACEOF
5828 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5829 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
5830 ac_have_decl=1
5831 else
5832 ac_have_decl=0
5835 cat >>confdefs.h <<_ACEOF
5836 #define HAVE_DECL_ASPRINTF $ac_have_decl
5837 _ACEOF
5838 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
5839 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
5840 ac_have_decl=1
5841 else
5842 ac_have_decl=0
5845 cat >>confdefs.h <<_ACEOF
5846 #define HAVE_DECL_BASENAME $ac_have_decl
5847 _ACEOF
5848 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
5849 if test "x$ac_cv_have_decl_errno" = x""yes; then :
5850 ac_have_decl=1
5851 else
5852 ac_have_decl=0
5855 cat >>confdefs.h <<_ACEOF
5856 #define HAVE_DECL_ERRNO $ac_have_decl
5857 _ACEOF
5858 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
5859 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
5860 ac_have_decl=1
5861 else
5862 ac_have_decl=0
5865 cat >>confdefs.h <<_ACEOF
5866 #define HAVE_DECL_GETOPT $ac_have_decl
5867 _ACEOF
5868 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5869 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
5870 ac_have_decl=1
5871 else
5872 ac_have_decl=0
5875 cat >>confdefs.h <<_ACEOF
5876 #define HAVE_DECL_VASPRINTF $ac_have_decl
5877 _ACEOF
5879 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
5880 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
5881 ac_have_decl=1
5882 else
5883 ac_have_decl=0
5886 cat >>confdefs.h <<_ACEOF
5887 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
5888 _ACEOF
5889 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
5890 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
5891 ac_have_decl=1
5892 else
5893 ac_have_decl=0
5896 cat >>confdefs.h <<_ACEOF
5897 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
5898 _ACEOF
5899 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
5900 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
5901 ac_have_decl=1
5902 else
5903 ac_have_decl=0
5906 cat >>confdefs.h <<_ACEOF
5907 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
5908 _ACEOF
5909 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
5910 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
5911 ac_have_decl=1
5912 else
5913 ac_have_decl=0
5916 cat >>confdefs.h <<_ACEOF
5917 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
5918 _ACEOF
5919 ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
5920 if test "x$ac_cv_have_decl_fgetc_unlocked" = x""yes; then :
5921 ac_have_decl=1
5922 else
5923 ac_have_decl=0
5926 cat >>confdefs.h <<_ACEOF
5927 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
5928 _ACEOF
5929 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
5930 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
5931 ac_have_decl=1
5932 else
5933 ac_have_decl=0
5936 cat >>confdefs.h <<_ACEOF
5937 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
5938 _ACEOF
5939 ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
5940 if test "x$ac_cv_have_decl_fileno_unlocked" = x""yes; then :
5941 ac_have_decl=1
5942 else
5943 ac_have_decl=0
5946 cat >>confdefs.h <<_ACEOF
5947 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
5948 _ACEOF
5949 ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
5950 if test "x$ac_cv_have_decl_fprintf_unlocked" = x""yes; then :
5951 ac_have_decl=1
5952 else
5953 ac_have_decl=0
5956 cat >>confdefs.h <<_ACEOF
5957 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
5958 _ACEOF
5959 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
5960 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
5961 ac_have_decl=1
5962 else
5963 ac_have_decl=0
5966 cat >>confdefs.h <<_ACEOF
5967 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
5968 _ACEOF
5969 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
5970 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then :
5971 ac_have_decl=1
5972 else
5973 ac_have_decl=0
5976 cat >>confdefs.h <<_ACEOF
5977 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
5978 _ACEOF
5979 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
5980 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then :
5981 ac_have_decl=1
5982 else
5983 ac_have_decl=0
5986 cat >>confdefs.h <<_ACEOF
5987 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
5988 _ACEOF
5989 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
5990 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then :
5991 ac_have_decl=1
5992 else
5993 ac_have_decl=0
5996 cat >>confdefs.h <<_ACEOF
5997 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
5998 _ACEOF
5999 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
6000 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then :
6001 ac_have_decl=1
6002 else
6003 ac_have_decl=0
6006 cat >>confdefs.h <<_ACEOF
6007 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
6008 _ACEOF
6009 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6010 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
6011 ac_have_decl=1
6012 else
6013 ac_have_decl=0
6016 cat >>confdefs.h <<_ACEOF
6017 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6018 _ACEOF
6019 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
6020 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then :
6021 ac_have_decl=1
6022 else
6023 ac_have_decl=0
6026 cat >>confdefs.h <<_ACEOF
6027 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
6028 _ACEOF
6029 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
6030 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then :
6031 ac_have_decl=1
6032 else
6033 ac_have_decl=0
6036 cat >>confdefs.h <<_ACEOF
6037 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
6038 _ACEOF
6041 # Checks for library functions.
6042 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6043 # for constant arguments. Useless!
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6045 $as_echo_n "checking for working alloca.h... " >&6; }
6046 if test "${ac_cv_working_alloca_h+set}" = set; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 #include <alloca.h>
6053 main ()
6055 char *p = (char *) alloca (2 * sizeof (int));
6056 if (p) return 0;
6058 return 0;
6060 _ACEOF
6061 if ac_fn_c_try_link "$LINENO"; then :
6062 ac_cv_working_alloca_h=yes
6063 else
6064 ac_cv_working_alloca_h=no
6066 rm -f core conftest.err conftest.$ac_objext \
6067 conftest$ac_exeext conftest.$ac_ext
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6070 $as_echo "$ac_cv_working_alloca_h" >&6; }
6071 if test $ac_cv_working_alloca_h = yes; then
6073 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6078 $as_echo_n "checking for alloca... " >&6; }
6079 if test "${ac_cv_func_alloca_works+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084 #ifdef __GNUC__
6085 # define alloca __builtin_alloca
6086 #else
6087 # ifdef _MSC_VER
6088 # include <malloc.h>
6089 # define alloca _alloca
6090 # else
6091 # ifdef HAVE_ALLOCA_H
6092 # include <alloca.h>
6093 # else
6094 # ifdef _AIX
6095 #pragma alloca
6096 # else
6097 # ifndef alloca /* predefined by HP cc +Olibcalls */
6098 char *alloca ();
6099 # endif
6100 # endif
6101 # endif
6102 # endif
6103 #endif
6106 main ()
6108 char *p = (char *) alloca (1);
6109 if (p) return 0;
6111 return 0;
6113 _ACEOF
6114 if ac_fn_c_try_link "$LINENO"; then :
6115 ac_cv_func_alloca_works=yes
6116 else
6117 ac_cv_func_alloca_works=no
6119 rm -f core conftest.err conftest.$ac_objext \
6120 conftest$ac_exeext conftest.$ac_ext
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6123 $as_echo "$ac_cv_func_alloca_works" >&6; }
6125 if test $ac_cv_func_alloca_works = yes; then
6127 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6129 else
6130 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6131 # that cause trouble. Some versions do not even contain alloca or
6132 # contain a buggy version. If you still want to use their alloca,
6133 # use ar to extract alloca.o from them instead of compiling alloca.c.
6135 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6137 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6141 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6142 if test "${ac_cv_os_cray+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6147 #if defined CRAY && ! defined CRAY2
6148 webecray
6149 #else
6150 wenotbecray
6151 #endif
6153 _ACEOF
6154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6155 $EGREP "webecray" >/dev/null 2>&1; then :
6156 ac_cv_os_cray=yes
6157 else
6158 ac_cv_os_cray=no
6160 rm -f conftest*
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6164 $as_echo "$ac_cv_os_cray" >&6; }
6165 if test $ac_cv_os_cray = yes; then
6166 for ac_func in _getb67 GETB67 getb67; do
6167 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6168 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6169 eval as_val=\$$as_ac_var
6170 if test "x$as_val" = x""yes; then :
6172 cat >>confdefs.h <<_ACEOF
6173 #define CRAY_STACKSEG_END $ac_func
6174 _ACEOF
6176 break
6179 done
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6183 $as_echo_n "checking stack direction for C alloca... " >&6; }
6184 if test "${ac_cv_c_stack_direction+set}" = set; then :
6185 $as_echo_n "(cached) " >&6
6186 else
6187 if test "$cross_compiling" = yes; then :
6188 ac_cv_c_stack_direction=0
6189 else
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 $ac_includes_default
6194 find_stack_direction ()
6196 static char *addr = 0;
6197 auto char dummy;
6198 if (addr == 0)
6200 addr = &dummy;
6201 return find_stack_direction ();
6203 else
6204 return (&dummy > addr) ? 1 : -1;
6208 main ()
6210 return find_stack_direction () < 0;
6212 _ACEOF
6213 if ac_fn_c_try_run "$LINENO"; then :
6214 ac_cv_c_stack_direction=1
6215 else
6216 ac_cv_c_stack_direction=-1
6218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6219 conftest.$ac_objext conftest.beam conftest.$ac_ext
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6224 $as_echo "$ac_cv_c_stack_direction" >&6; }
6225 cat >>confdefs.h <<_ACEOF
6226 #define STACK_DIRECTION $ac_cv_c_stack_direction
6227 _ACEOF
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6233 $as_echo_n "checking for ANSI C header files... " >&6; }
6234 if test "${ac_cv_header_stdc+set}" = set; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6239 #include <stdlib.h>
6240 #include <stdarg.h>
6241 #include <string.h>
6242 #include <float.h>
6245 main ()
6249 return 0;
6251 _ACEOF
6252 if ac_fn_c_try_compile "$LINENO"; then :
6253 ac_cv_header_stdc=yes
6254 else
6255 ac_cv_header_stdc=no
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 if test $ac_cv_header_stdc = yes; then
6260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6263 #include <string.h>
6265 _ACEOF
6266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6267 $EGREP "memchr" >/dev/null 2>&1; then :
6269 else
6270 ac_cv_header_stdc=no
6272 rm -f conftest*
6276 if test $ac_cv_header_stdc = yes; then
6277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6280 #include <stdlib.h>
6282 _ACEOF
6283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6284 $EGREP "free" >/dev/null 2>&1; then :
6286 else
6287 ac_cv_header_stdc=no
6289 rm -f conftest*
6293 if test $ac_cv_header_stdc = yes; then
6294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6295 if test "$cross_compiling" = yes; then :
6297 else
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6300 #include <ctype.h>
6301 #include <stdlib.h>
6302 #if ((' ' & 0x0FF) == 0x020)
6303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6305 #else
6306 # define ISLOWER(c) \
6307 (('a' <= (c) && (c) <= 'i') \
6308 || ('j' <= (c) && (c) <= 'r') \
6309 || ('s' <= (c) && (c) <= 'z'))
6310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6311 #endif
6313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6315 main ()
6317 int i;
6318 for (i = 0; i < 256; i++)
6319 if (XOR (islower (i), ISLOWER (i))
6320 || toupper (i) != TOUPPER (i))
6321 return 2;
6322 return 0;
6324 _ACEOF
6325 if ac_fn_c_try_run "$LINENO"; then :
6327 else
6328 ac_cv_header_stdc=no
6330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6331 conftest.$ac_objext conftest.beam conftest.$ac_ext
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6337 $as_echo "$ac_cv_header_stdc" >&6; }
6338 if test $ac_cv_header_stdc = yes; then
6340 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6346 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6347 if test "${am_cv_langinfo_codeset+set}" = set; then :
6348 $as_echo_n "(cached) " >&6
6349 else
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6352 #include <langinfo.h>
6354 main ()
6356 char* cs = nl_langinfo(CODESET);
6358 return 0;
6360 _ACEOF
6361 if ac_fn_c_try_link "$LINENO"; then :
6362 am_cv_langinfo_codeset=yes
6363 else
6364 am_cv_langinfo_codeset=no
6366 rm -f core conftest.err conftest.$ac_objext \
6367 conftest$ac_exeext conftest.$ac_ext
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6371 $as_echo "$am_cv_langinfo_codeset" >&6; }
6372 if test $am_cv_langinfo_codeset = yes; then
6374 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6378 # If we haven't got the data from the intl directory,
6379 # assume NLS is disabled.
6380 USE_NLS=no
6381 LIBINTL=
6382 LIBINTL_DEP=
6383 INCINTL=
6384 XGETTEXT=
6385 GMSGFMT=
6386 POSUB=
6388 if test -f ../intl/config.intl; then
6389 . ../intl/config.intl
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6392 $as_echo_n "checking whether NLS is requested... " >&6; }
6393 if test x"$USE_NLS" != xyes; then
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6396 else
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6398 $as_echo "yes" >&6; }
6400 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6404 $as_echo_n "checking for catalogs to be installed... " >&6; }
6405 # Look for .po and .gmo files in the source directory.
6406 CATALOGS=
6407 XLINGUAS=
6408 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6409 # If there aren't any .gmo files the shell will give us the
6410 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6411 # weeded out.
6412 case "$cat" in *\**)
6413 continue;;
6414 esac
6415 # The quadruple backslash is collapsed to a double backslash
6416 # by the backticks, then collapsed again by the double quotes,
6417 # leaving us with one backslash in the sed expression (right
6418 # before the dot that mustn't act as a wildcard).
6419 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6420 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6421 # The user is allowed to set LINGUAS to a list of languages to
6422 # install catalogs for. If it's empty that means "all of them."
6423 if test "x$LINGUAS" = x; then
6424 CATALOGS="$CATALOGS $cat"
6425 XLINGUAS="$XLINGUAS $lang"
6426 else
6427 case "$LINGUAS" in *$lang*)
6428 CATALOGS="$CATALOGS $cat"
6429 XLINGUAS="$XLINGUAS $lang"
6431 esac
6433 done
6434 LINGUAS="$XLINGUAS"
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6436 $as_echo "$LINGUAS" >&6; }
6439 DATADIRNAME=share
6441 INSTOBJEXT=.mo
6443 GENCAT=gencat
6445 CATOBJEXT=.gmo
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
6450 $as_echo_n "checking for uchar... " >&6; }
6451 if test "${gcc_cv_type_uchar+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6457 #include <sys/types.h>
6460 main ()
6462 if ((uchar *)0) return 0;
6463 if (sizeof(uchar)) return 0;
6465 return 0;
6467 _ACEOF
6468 if ac_fn_c_try_compile "$LINENO"; then :
6469 ac_cv_type_uchar=yes
6470 else
6471 ac_cv_type_uchar=no
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
6476 $as_echo "$gcc_cv_type_uchar" >&6; }
6477 if test $ac_cv_type_uchar = yes; then
6479 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
6483 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
6484 # iconv() prototype.
6485 ac_ext=cpp
6486 ac_cpp='$CXXCPP $CPPFLAGS'
6487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6492 if test "X$prefix" = "XNONE"; then
6493 acl_final_prefix="$ac_default_prefix"
6494 else
6495 acl_final_prefix="$prefix"
6497 if test "X$exec_prefix" = "XNONE"; then
6498 acl_final_exec_prefix='${prefix}'
6499 else
6500 acl_final_exec_prefix="$exec_prefix"
6502 acl_save_prefix="$prefix"
6503 prefix="$acl_final_prefix"
6504 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6505 prefix="$acl_save_prefix"
6508 # Check whether --with-gnu-ld was given.
6509 if test "${with_gnu_ld+set}" = set; then :
6510 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6511 else
6512 with_gnu_ld=no
6515 # Prepare PATH_SEPARATOR.
6516 # The user is always right.
6517 if test "${PATH_SEPARATOR+set}" != set; then
6518 echo "#! /bin/sh" >conf$$.sh
6519 echo "exit 0" >>conf$$.sh
6520 chmod +x conf$$.sh
6521 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6522 PATH_SEPARATOR=';'
6523 else
6524 PATH_SEPARATOR=:
6526 rm -f conf$$.sh
6528 ac_prog=ld
6529 if test "$GCC" = yes; then
6530 # Check if gcc -print-prog-name=ld gives a path.
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6532 $as_echo_n "checking for ld used by GCC... " >&6; }
6533 case $host in
6534 *-*-mingw*)
6535 # gcc leaves a trailing carriage return which upsets mingw
6536 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6538 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6539 esac
6540 case $ac_prog in
6541 # Accept absolute paths.
6542 [\\/]* | [A-Za-z]:[\\/]*)
6543 re_direlt='/[^/][^/]*/\.\./'
6544 # Canonicalize the path of ld
6545 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6546 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6547 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6548 done
6549 test -z "$LD" && LD="$ac_prog"
6552 # If it fails, then pretend we aren't using GCC.
6553 ac_prog=ld
6556 # If it is relative, then search for the first ld in PATH.
6557 with_gnu_ld=unknown
6559 esac
6560 elif test "$with_gnu_ld" = yes; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6562 $as_echo_n "checking for GNU ld... " >&6; }
6563 else
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6565 $as_echo_n "checking for non-GNU ld... " >&6; }
6567 if test "${acl_cv_path_LD+set}" = set; then :
6568 $as_echo_n "(cached) " >&6
6569 else
6570 if test -z "$LD"; then
6571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6572 for ac_dir in $PATH; do
6573 test -z "$ac_dir" && ac_dir=.
6574 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6575 acl_cv_path_LD="$ac_dir/$ac_prog"
6576 # Check to see if the program is GNU ld. I'd rather use --version,
6577 # but apparently some GNU ld's only accept -v.
6578 # Break only if it was the GNU/non-GNU ld that we prefer.
6579 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6580 test "$with_gnu_ld" != no && break
6581 else
6582 test "$with_gnu_ld" != yes && break
6585 done
6586 IFS="$ac_save_ifs"
6587 else
6588 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6592 LD="$acl_cv_path_LD"
6593 if test -n "$LD"; then
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6595 $as_echo "$LD" >&6; }
6596 else
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598 $as_echo "no" >&6; }
6600 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6602 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6603 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6607 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6608 acl_cv_prog_gnu_ld=yes
6609 else
6610 acl_cv_prog_gnu_ld=no
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6614 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6615 with_gnu_ld=$acl_cv_prog_gnu_ld
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6620 $as_echo_n "checking for shared library run path origin... " >&6; }
6621 if test "${acl_cv_rpath+set}" = set; then :
6622 $as_echo_n "(cached) " >&6
6623 else
6625 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6626 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6627 . ./conftest.sh
6628 rm -f ./conftest.sh
6629 acl_cv_rpath=done
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6633 $as_echo "$acl_cv_rpath" >&6; }
6634 wl="$acl_cv_wl"
6635 libext="$acl_cv_libext"
6636 shlibext="$acl_cv_shlibext"
6637 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6638 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6639 hardcode_direct="$acl_cv_hardcode_direct"
6640 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6641 # Check whether --enable-rpath was given.
6642 if test "${enable_rpath+set}" = set; then :
6643 enableval=$enable_rpath; :
6644 else
6645 enable_rpath=yes
6655 use_additional=yes
6657 acl_save_prefix="$prefix"
6658 prefix="$acl_final_prefix"
6659 acl_save_exec_prefix="$exec_prefix"
6660 exec_prefix="$acl_final_exec_prefix"
6662 eval additional_includedir=\"$includedir\"
6663 eval additional_libdir=\"$libdir\"
6665 exec_prefix="$acl_save_exec_prefix"
6666 prefix="$acl_save_prefix"
6669 # Check whether --with-libiconv-prefix was given.
6670 if test "${with_libiconv_prefix+set}" = set; then :
6671 withval=$with_libiconv_prefix;
6672 if test "X$withval" = "Xno"; then
6673 use_additional=no
6674 else
6675 if test "X$withval" = "X"; then
6677 acl_save_prefix="$prefix"
6678 prefix="$acl_final_prefix"
6679 acl_save_exec_prefix="$exec_prefix"
6680 exec_prefix="$acl_final_exec_prefix"
6682 eval additional_includedir=\"$includedir\"
6683 eval additional_libdir=\"$libdir\"
6685 exec_prefix="$acl_save_exec_prefix"
6686 prefix="$acl_save_prefix"
6688 else
6689 additional_includedir="$withval/include"
6690 additional_libdir="$withval/lib"
6696 LIBICONV=
6697 LTLIBICONV=
6698 INCICONV=
6699 rpathdirs=
6700 ltrpathdirs=
6701 names_already_handled=
6702 names_next_round='iconv '
6703 while test -n "$names_next_round"; do
6704 names_this_round="$names_next_round"
6705 names_next_round=
6706 for name in $names_this_round; do
6707 already_handled=
6708 for n in $names_already_handled; do
6709 if test "$n" = "$name"; then
6710 already_handled=yes
6711 break
6713 done
6714 if test -z "$already_handled"; then
6715 names_already_handled="$names_already_handled $name"
6716 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6717 eval value=\"\$HAVE_LIB$uppername\"
6718 if test -n "$value"; then
6719 if test "$value" = yes; then
6720 eval value=\"\$LIB$uppername\"
6721 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6722 eval value=\"\$LTLIB$uppername\"
6723 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6724 else
6727 else
6728 found_dir=
6729 found_la=
6730 found_so=
6731 found_a=
6732 if test $use_additional = yes; then
6733 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6734 found_dir="$additional_libdir"
6735 found_so="$additional_libdir/lib$name.$shlibext"
6736 if test -f "$additional_libdir/lib$name.la"; then
6737 found_la="$additional_libdir/lib$name.la"
6739 else
6740 if test -f "$additional_libdir/lib$name.$libext"; then
6741 found_dir="$additional_libdir"
6742 found_a="$additional_libdir/lib$name.$libext"
6743 if test -f "$additional_libdir/lib$name.la"; then
6744 found_la="$additional_libdir/lib$name.la"
6749 if test "X$found_dir" = "X"; then
6750 for x in $LDFLAGS $LTLIBICONV; do
6752 acl_save_prefix="$prefix"
6753 prefix="$acl_final_prefix"
6754 acl_save_exec_prefix="$exec_prefix"
6755 exec_prefix="$acl_final_exec_prefix"
6756 eval x=\"$x\"
6757 exec_prefix="$acl_save_exec_prefix"
6758 prefix="$acl_save_prefix"
6760 case "$x" in
6761 -L*)
6762 dir=`echo "X$x" | sed -e 's/^X-L//'`
6763 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6764 found_dir="$dir"
6765 found_so="$dir/lib$name.$shlibext"
6766 if test -f "$dir/lib$name.la"; then
6767 found_la="$dir/lib$name.la"
6769 else
6770 if test -f "$dir/lib$name.$libext"; then
6771 found_dir="$dir"
6772 found_a="$dir/lib$name.$libext"
6773 if test -f "$dir/lib$name.la"; then
6774 found_la="$dir/lib$name.la"
6779 esac
6780 if test "X$found_dir" != "X"; then
6781 break
6783 done
6785 if test "X$found_dir" != "X"; then
6786 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6787 if test "X$found_so" != "X"; then
6788 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6789 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6790 else
6791 haveit=
6792 for x in $ltrpathdirs; do
6793 if test "X$x" = "X$found_dir"; then
6794 haveit=yes
6795 break
6797 done
6798 if test -z "$haveit"; then
6799 ltrpathdirs="$ltrpathdirs $found_dir"
6801 if test "$hardcode_direct" = yes; then
6802 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6803 else
6804 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6805 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6806 haveit=
6807 for x in $rpathdirs; do
6808 if test "X$x" = "X$found_dir"; then
6809 haveit=yes
6810 break
6812 done
6813 if test -z "$haveit"; then
6814 rpathdirs="$rpathdirs $found_dir"
6816 else
6817 haveit=
6818 for x in $LDFLAGS $LIBICONV; do
6820 acl_save_prefix="$prefix"
6821 prefix="$acl_final_prefix"
6822 acl_save_exec_prefix="$exec_prefix"
6823 exec_prefix="$acl_final_exec_prefix"
6824 eval x=\"$x\"
6825 exec_prefix="$acl_save_exec_prefix"
6826 prefix="$acl_save_prefix"
6828 if test "X$x" = "X-L$found_dir"; then
6829 haveit=yes
6830 break
6832 done
6833 if test -z "$haveit"; then
6834 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6836 if test "$hardcode_minus_L" != no; then
6837 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6838 else
6839 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6844 else
6845 if test "X$found_a" != "X"; then
6846 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6847 else
6848 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6851 additional_includedir=
6852 case "$found_dir" in
6853 */lib | */lib/)
6854 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6855 additional_includedir="$basedir/include"
6857 esac
6858 if test "X$additional_includedir" != "X"; then
6859 if test "X$additional_includedir" != "X/usr/include"; then
6860 haveit=
6861 if test "X$additional_includedir" = "X/usr/local/include"; then
6862 if test -n "$GCC"; then
6863 case $host_os in
6864 linux*) haveit=yes;;
6865 esac
6868 if test -z "$haveit"; then
6869 for x in $CPPFLAGS $INCICONV; do
6871 acl_save_prefix="$prefix"
6872 prefix="$acl_final_prefix"
6873 acl_save_exec_prefix="$exec_prefix"
6874 exec_prefix="$acl_final_exec_prefix"
6875 eval x=\"$x\"
6876 exec_prefix="$acl_save_exec_prefix"
6877 prefix="$acl_save_prefix"
6879 if test "X$x" = "X-I$additional_includedir"; then
6880 haveit=yes
6881 break
6883 done
6884 if test -z "$haveit"; then
6885 if test -d "$additional_includedir"; then
6886 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6892 if test -n "$found_la"; then
6893 save_libdir="$libdir"
6894 case "$found_la" in
6895 */* | *\\*) . "$found_la" ;;
6896 *) . "./$found_la" ;;
6897 esac
6898 libdir="$save_libdir"
6899 for dep in $dependency_libs; do
6900 case "$dep" in
6901 -L*)
6902 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6903 if test "X$additional_libdir" != "X/usr/lib"; then
6904 haveit=
6905 if test "X$additional_libdir" = "X/usr/local/lib"; then
6906 if test -n "$GCC"; then
6907 case $host_os in
6908 linux*) haveit=yes;;
6909 esac
6912 if test -z "$haveit"; then
6913 haveit=
6914 for x in $LDFLAGS $LIBICONV; do
6916 acl_save_prefix="$prefix"
6917 prefix="$acl_final_prefix"
6918 acl_save_exec_prefix="$exec_prefix"
6919 exec_prefix="$acl_final_exec_prefix"
6920 eval x=\"$x\"
6921 exec_prefix="$acl_save_exec_prefix"
6922 prefix="$acl_save_prefix"
6924 if test "X$x" = "X-L$additional_libdir"; then
6925 haveit=yes
6926 break
6928 done
6929 if test -z "$haveit"; then
6930 if test -d "$additional_libdir"; then
6931 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6934 haveit=
6935 for x in $LDFLAGS $LTLIBICONV; do
6937 acl_save_prefix="$prefix"
6938 prefix="$acl_final_prefix"
6939 acl_save_exec_prefix="$exec_prefix"
6940 exec_prefix="$acl_final_exec_prefix"
6941 eval x=\"$x\"
6942 exec_prefix="$acl_save_exec_prefix"
6943 prefix="$acl_save_prefix"
6945 if test "X$x" = "X-L$additional_libdir"; then
6946 haveit=yes
6947 break
6949 done
6950 if test -z "$haveit"; then
6951 if test -d "$additional_libdir"; then
6952 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6958 -R*)
6959 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6960 if test "$enable_rpath" != no; then
6961 haveit=
6962 for x in $rpathdirs; do
6963 if test "X$x" = "X$dir"; then
6964 haveit=yes
6965 break
6967 done
6968 if test -z "$haveit"; then
6969 rpathdirs="$rpathdirs $dir"
6971 haveit=
6972 for x in $ltrpathdirs; do
6973 if test "X$x" = "X$dir"; then
6974 haveit=yes
6975 break
6977 done
6978 if test -z "$haveit"; then
6979 ltrpathdirs="$ltrpathdirs $dir"
6983 -l*)
6984 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6986 *.la)
6987 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6990 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6991 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6993 esac
6994 done
6996 else
6997 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6998 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7002 done
7003 done
7004 if test "X$rpathdirs" != "X"; then
7005 if test -n "$hardcode_libdir_separator"; then
7006 alldirs=
7007 for found_dir in $rpathdirs; do
7008 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7009 done
7010 acl_save_libdir="$libdir"
7011 libdir="$alldirs"
7012 eval flag=\"$hardcode_libdir_flag_spec\"
7013 libdir="$acl_save_libdir"
7014 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7015 else
7016 for found_dir in $rpathdirs; do
7017 acl_save_libdir="$libdir"
7018 libdir="$found_dir"
7019 eval flag=\"$hardcode_libdir_flag_spec\"
7020 libdir="$acl_save_libdir"
7021 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7022 done
7025 if test "X$ltrpathdirs" != "X"; then
7026 for found_dir in $ltrpathdirs; do
7027 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7028 done
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7038 $as_echo_n "checking for iconv... " >&6; }
7039 if test "${am_cv_func_iconv+set}" = set; then :
7040 $as_echo_n "(cached) " >&6
7041 else
7043 am_cv_func_iconv="no, consider installing GNU libiconv"
7044 am_cv_lib_iconv=no
7045 am_save_CPPFLAGS="$CPPFLAGS"
7046 CPPFLAGS="$CPPFLAGS $INCICONV"
7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7049 #include <stdlib.h>
7050 #include <iconv.h>
7052 main ()
7054 iconv_t cd = iconv_open("","");
7055 iconv(cd,NULL,NULL,NULL,NULL);
7056 iconv_close(cd);
7058 return 0;
7060 _ACEOF
7061 if ac_fn_cxx_try_link "$LINENO"; then :
7062 am_cv_func_iconv=yes
7064 rm -f core conftest.err conftest.$ac_objext \
7065 conftest$ac_exeext conftest.$ac_ext
7066 CPPFLAGS="$am_save_CPPFLAGS"
7068 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
7069 for _libs in .libs _libs; do
7070 am_save_CPPFLAGS="$CPPFLAGS"
7071 am_save_LIBS="$LIBS"
7072 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
7073 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7076 #include <stdlib.h>
7077 #include <iconv.h>
7079 main ()
7081 iconv_t cd = iconv_open("","");
7082 iconv(cd,NULL,NULL,NULL,NULL);
7083 iconv_close(cd);
7085 return 0;
7087 _ACEOF
7088 if ac_fn_cxx_try_link "$LINENO"; then :
7089 INCICONV="-I../libiconv/include"
7090 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
7091 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
7092 am_cv_lib_iconv=yes
7093 am_cv_func_iconv=yes
7095 rm -f core conftest.err conftest.$ac_objext \
7096 conftest$ac_exeext conftest.$ac_ext
7097 CPPFLAGS="$am_save_CPPFLAGS"
7098 LIBS="$am_save_LIBS"
7099 if test "$am_cv_func_iconv" = "yes"; then
7100 break
7102 done
7105 if test "$am_cv_func_iconv" != yes; then
7106 am_save_CPPFLAGS="$CPPFLAGS"
7107 am_save_LIBS="$LIBS"
7108 CPPFLAGS="$LIBS $INCICONV"
7109 LIBS="$LIBS $LIBICONV"
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7112 #include <stdlib.h>
7113 #include <iconv.h>
7115 main ()
7117 iconv_t cd = iconv_open("","");
7118 iconv(cd,NULL,NULL,NULL,NULL);
7119 iconv_close(cd);
7121 return 0;
7123 _ACEOF
7124 if ac_fn_cxx_try_link "$LINENO"; then :
7125 am_cv_lib_iconv=yes
7126 am_cv_func_iconv=yes
7128 rm -f core conftest.err conftest.$ac_objext \
7129 conftest$ac_exeext conftest.$ac_ext
7130 CPPFLAGS="$am_save_CPPFLAGS"
7131 LIBS="$am_save_LIBS"
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7136 $as_echo "$am_cv_func_iconv" >&6; }
7137 if test "$am_cv_func_iconv" = yes; then
7139 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7142 if test "$am_cv_lib_iconv" = yes; then
7144 for element in $INCICONV; do
7145 haveit=
7146 for x in $CPPFLAGS; do
7148 acl_save_prefix="$prefix"
7149 prefix="$acl_final_prefix"
7150 acl_save_exec_prefix="$exec_prefix"
7151 exec_prefix="$acl_final_exec_prefix"
7152 eval x=\"$x\"
7153 exec_prefix="$acl_save_exec_prefix"
7154 prefix="$acl_save_prefix"
7156 if test "X$x" = "X$element"; then
7157 haveit=yes
7158 break
7160 done
7161 if test -z "$haveit"; then
7162 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7164 done
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7167 $as_echo_n "checking how to link with libiconv... " >&6; }
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7169 $as_echo "$LIBICONV" >&6; }
7170 else
7171 LIBICONV=
7172 LTLIBICONV=
7177 if test "$am_cv_func_iconv" = yes; then
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7179 $as_echo_n "checking for iconv declaration... " >&6; }
7180 if test "${am_cv_proto_iconv+set}" = set; then :
7181 $as_echo_n "(cached) " >&6
7182 else
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7187 #include <stdlib.h>
7188 #include <iconv.h>
7189 extern
7190 #ifdef __cplusplus
7192 #endif
7193 #if defined(__STDC__) || defined(__cplusplus)
7194 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7195 #else
7196 size_t iconv();
7197 #endif
7200 main ()
7204 return 0;
7206 _ACEOF
7207 if ac_fn_cxx_try_compile "$LINENO"; then :
7208 am_cv_proto_iconv_arg1=""
7209 else
7210 am_cv_proto_iconv_arg1="const"
7212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7213 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);"
7216 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7218 }$am_cv_proto_iconv" >&5
7219 $as_echo "${ac_t:-
7220 }$am_cv_proto_iconv" >&6; }
7222 cat >>confdefs.h <<_ACEOF
7223 #define ICONV_CONST $am_cv_proto_iconv_arg1
7224 _ACEOF
7228 ac_ext=c
7229 ac_cpp='$CPP $CPPFLAGS'
7230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7235 # More defines and substitutions.
7236 PACKAGE="$PACKAGE_TARNAME"
7238 cat >>confdefs.h <<_ACEOF
7239 #define PACKAGE "$PACKAGE"
7240 _ACEOF
7244 if test "x$enable_nls" != xno; then
7245 USED_CATALOGS='$(CATALOGS)'
7246 else
7247 USED_CATALOGS=
7251 # Check whether --enable-maintainer-mode was given.
7252 if test "${enable_maintainer_mode+set}" = set; then :
7253 enableval=$enable_maintainer_mode;
7254 else
7255 enable_maintainer_mode=no
7259 if test "x$enable_maintainer_mode" = xno; then
7260 MAINT='#'
7261 else
7262 MAINT=
7266 # Enable expensive internal checks
7267 is_release=
7268 if test -f $srcdir/../gcc/DEV-PHASE \
7269 && test x"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental; then
7270 is_release=yes
7273 # Check whether --enable-checking was given.
7274 if test "${enable_checking+set}" = set; then :
7275 enableval=$enable_checking; ac_checking_flags="${enableval}"
7276 else
7278 # Determine the default checks.
7279 if test x$is_release = x ; then
7280 ac_checking_flags=yes
7281 else
7282 ac_checking_flags=release
7286 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7287 for check in release $ac_checking_flags
7289 case $check in
7290 # these set all the flags to specific states
7291 yes|all) ac_checking=1 ; ac_assert_checking=1 ; ac_valgrind_checking= ;;
7292 no|none) ac_checking= ; ac_assert_checking= ; ac_valgrind_checking= ;;
7293 release) ac_checking= ; ac_assert_checking=1 ; ac_valgrind_checking= ;;
7294 # these enable particular checks
7295 assert) ac_assert_checking=1 ;;
7296 misc) ac_checking=1 ;;
7297 valgrind) ac_valgrind_checking=1 ;;
7298 # accept
7299 *) ;;
7300 esac
7301 done
7302 IFS="$ac_save_IFS"
7304 if test x$ac_checking != x ; then
7306 $as_echo "#define CHECKING_P 1" >>confdefs.h
7308 else
7309 $as_echo "#define CHECKING_P 0" >>confdefs.h
7313 if test x$ac_assert_checking != x ; then
7315 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7319 if test x$ac_valgrind_checking != x ; then
7321 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7325 # Check whether --enable-canonical-system-headers was given.
7326 if test "${enable_canonical_system_headers+set}" = set; then :
7327 enableval=$enable_canonical_system_headers;
7328 else
7329 enable_canonical_system_headers=yes
7332 if test $enable_canonical_system_headers != no; then
7334 $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
7338 case $target in
7339 i?86-* | x86_64-*)
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7344 main ()
7346 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
7348 return 0;
7350 _ACEOF
7351 if ac_fn_c_try_compile "$LINENO"; then :
7353 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
7356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357 esac
7359 # Enable --enable-host-shared.
7360 # Check whether --enable-host-shared was given.
7361 if test "${enable_host_shared+set}" = set; then :
7362 enableval=$enable_host_shared; PICFLAG=-fPIC
7363 else
7364 PICFLAG=
7369 # Check whether --enable-valgrind-annotations was given.
7370 if test "${enable_valgrind_annotations+set}" = set; then :
7371 enableval=$enable_valgrind_annotations;
7372 else
7373 enable_valgrind_annotations=no
7376 if test x$enable_valgrind_annotations != xno \
7377 || test x$ac_valgrind_checking != x; then
7378 if (test $have_valgrind_h = no \
7379 && test $gcc_cv_header_memcheck_h = no \
7380 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7381 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7384 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7388 # Output.
7390 ac_config_headers="$ac_config_headers config.h:config.in"
7392 ac_config_files="$ac_config_files Makefile"
7394 cat >confcache <<\_ACEOF
7395 # This file is a shell script that caches the results of configure
7396 # tests run on this system so they can be shared between configure
7397 # scripts and configure runs, see configure's option --config-cache.
7398 # It is not useful on other systems. If it contains results you don't
7399 # want to keep, you may remove or edit it.
7401 # config.status only pays attention to the cache file if you give it
7402 # the --recheck option to rerun configure.
7404 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7405 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7406 # following values.
7408 _ACEOF
7410 # The following way of writing the cache mishandles newlines in values,
7411 # but we know of no workaround that is simple, portable, and efficient.
7412 # So, we kill variables containing newlines.
7413 # Ultrix sh set writes to stderr and can't be redirected directly,
7414 # and sets the high bit in the cache file unless we assign to the vars.
7416 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7417 eval ac_val=\$$ac_var
7418 case $ac_val in #(
7419 *${as_nl}*)
7420 case $ac_var in #(
7421 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7422 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7423 esac
7424 case $ac_var in #(
7425 _ | IFS | as_nl) ;; #(
7426 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7427 *) { eval $ac_var=; unset $ac_var;} ;;
7428 esac ;;
7429 esac
7430 done
7432 (set) 2>&1 |
7433 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7434 *${as_nl}ac_space=\ *)
7435 # `set' does not quote correctly, so add quotes: double-quote
7436 # substitution turns \\\\ into \\, and sed turns \\ into \.
7437 sed -n \
7438 "s/'/'\\\\''/g;
7439 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7440 ;; #(
7442 # `set' quotes correctly as required by POSIX, so do not add quotes.
7443 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7445 esac |
7446 sort
7448 sed '
7449 /^ac_cv_env_/b end
7450 t clear
7451 :clear
7452 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7453 t end
7454 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7455 :end' >>confcache
7456 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7457 if test -w "$cache_file"; then
7458 test "x$cache_file" != "x/dev/null" &&
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7460 $as_echo "$as_me: updating cache $cache_file" >&6;}
7461 cat confcache >$cache_file
7462 else
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7464 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7467 rm -f confcache
7469 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7470 # Let make expand exec_prefix.
7471 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7473 DEFS=-DHAVE_CONFIG_H
7475 ac_libobjs=
7476 ac_ltlibobjs=
7477 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7478 # 1. Remove the extension, and $U if already installed.
7479 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7480 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7481 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7482 # will be set to the directory where LIBOBJS objects are built.
7483 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7484 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7485 done
7486 LIBOBJS=$ac_libobjs
7488 LTLIBOBJS=$ac_ltlibobjs
7493 : ${CONFIG_STATUS=./config.status}
7494 ac_write_fail=0
7495 ac_clean_files_save=$ac_clean_files
7496 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7498 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7499 as_write_fail=0
7500 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7501 #! $SHELL
7502 # Generated by $as_me.
7503 # Run this file to recreate the current configuration.
7504 # Compiler output produced by configure, useful for debugging
7505 # configure, is in config.log if it exists.
7507 debug=false
7508 ac_cs_recheck=false
7509 ac_cs_silent=false
7511 SHELL=\${CONFIG_SHELL-$SHELL}
7512 export SHELL
7513 _ASEOF
7514 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7515 ## -------------------- ##
7516 ## M4sh Initialization. ##
7517 ## -------------------- ##
7519 # Be more Bourne compatible
7520 DUALCASE=1; export DUALCASE # for MKS sh
7521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7522 emulate sh
7523 NULLCMD=:
7524 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7525 # is contrary to our usage. Disable this feature.
7526 alias -g '${1+"$@"}'='"$@"'
7527 setopt NO_GLOB_SUBST
7528 else
7529 case `(set -o) 2>/dev/null` in #(
7530 *posix*) :
7531 set -o posix ;; #(
7532 *) :
7534 esac
7538 as_nl='
7540 export as_nl
7541 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7542 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7543 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7544 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7545 # Prefer a ksh shell builtin over an external printf program on Solaris,
7546 # but without wasting forks for bash or zsh.
7547 if test -z "$BASH_VERSION$ZSH_VERSION" \
7548 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7549 as_echo='print -r --'
7550 as_echo_n='print -rn --'
7551 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7552 as_echo='printf %s\n'
7553 as_echo_n='printf %s'
7554 else
7555 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7556 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7557 as_echo_n='/usr/ucb/echo -n'
7558 else
7559 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7560 as_echo_n_body='eval
7561 arg=$1;
7562 case $arg in #(
7563 *"$as_nl"*)
7564 expr "X$arg" : "X\\(.*\\)$as_nl";
7565 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7566 esac;
7567 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7569 export as_echo_n_body
7570 as_echo_n='sh -c $as_echo_n_body as_echo'
7572 export as_echo_body
7573 as_echo='sh -c $as_echo_body as_echo'
7576 # The user is always right.
7577 if test "${PATH_SEPARATOR+set}" != set; then
7578 PATH_SEPARATOR=:
7579 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7580 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7581 PATH_SEPARATOR=';'
7586 # IFS
7587 # We need space, tab and new line, in precisely that order. Quoting is
7588 # there to prevent editors from complaining about space-tab.
7589 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7590 # splitting by setting IFS to empty value.)
7591 IFS=" "" $as_nl"
7593 # Find who we are. Look in the path if we contain no directory separator.
7594 case $0 in #((
7595 *[\\/]* ) as_myself=$0 ;;
7596 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7602 done
7603 IFS=$as_save_IFS
7606 esac
7607 # We did not find ourselves, most probably we were run as `sh COMMAND'
7608 # in which case we are not to be found in the path.
7609 if test "x$as_myself" = x; then
7610 as_myself=$0
7612 if test ! -f "$as_myself"; then
7613 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7614 exit 1
7617 # Unset variables that we do not need and which cause bugs (e.g. in
7618 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7619 # suppresses any "Segmentation fault" message there. '((' could
7620 # trigger a bug in pdksh 5.2.14.
7621 for as_var in BASH_ENV ENV MAIL MAILPATH
7622 do eval test x\${$as_var+set} = xset \
7623 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7624 done
7625 PS1='$ '
7626 PS2='> '
7627 PS4='+ '
7629 # NLS nuisances.
7630 LC_ALL=C
7631 export LC_ALL
7632 LANGUAGE=C
7633 export LANGUAGE
7635 # CDPATH.
7636 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7639 # as_fn_error ERROR [LINENO LOG_FD]
7640 # ---------------------------------
7641 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7642 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7643 # script with status $?, using 1 if that was 0.
7644 as_fn_error ()
7646 as_status=$?; test $as_status -eq 0 && as_status=1
7647 if test "$3"; then
7648 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7649 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7651 $as_echo "$as_me: error: $1" >&2
7652 as_fn_exit $as_status
7653 } # as_fn_error
7656 # as_fn_set_status STATUS
7657 # -----------------------
7658 # Set $? to STATUS, without forking.
7659 as_fn_set_status ()
7661 return $1
7662 } # as_fn_set_status
7664 # as_fn_exit STATUS
7665 # -----------------
7666 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7667 as_fn_exit ()
7669 set +e
7670 as_fn_set_status $1
7671 exit $1
7672 } # as_fn_exit
7674 # as_fn_unset VAR
7675 # ---------------
7676 # Portably unset VAR.
7677 as_fn_unset ()
7679 { eval $1=; unset $1;}
7681 as_unset=as_fn_unset
7682 # as_fn_append VAR VALUE
7683 # ----------------------
7684 # Append the text in VALUE to the end of the definition contained in VAR. Take
7685 # advantage of any shell optimizations that allow amortized linear growth over
7686 # repeated appends, instead of the typical quadratic growth present in naive
7687 # implementations.
7688 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7689 eval 'as_fn_append ()
7691 eval $1+=\$2
7693 else
7694 as_fn_append ()
7696 eval $1=\$$1\$2
7698 fi # as_fn_append
7700 # as_fn_arith ARG...
7701 # ------------------
7702 # Perform arithmetic evaluation on the ARGs, and store the result in the
7703 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7704 # must be portable across $(()) and expr.
7705 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7706 eval 'as_fn_arith ()
7708 as_val=$(( $* ))
7710 else
7711 as_fn_arith ()
7713 as_val=`expr "$@" || test $? -eq 1`
7715 fi # as_fn_arith
7718 if expr a : '\(a\)' >/dev/null 2>&1 &&
7719 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7720 as_expr=expr
7721 else
7722 as_expr=false
7725 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7726 as_basename=basename
7727 else
7728 as_basename=false
7731 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7732 as_dirname=dirname
7733 else
7734 as_dirname=false
7737 as_me=`$as_basename -- "$0" ||
7738 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7739 X"$0" : 'X\(//\)$' \| \
7740 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7741 $as_echo X/"$0" |
7742 sed '/^.*\/\([^/][^/]*\)\/*$/{
7743 s//\1/
7746 /^X\/\(\/\/\)$/{
7747 s//\1/
7750 /^X\/\(\/\).*/{
7751 s//\1/
7754 s/.*/./; q'`
7756 # Avoid depending upon Character Ranges.
7757 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7758 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7759 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7760 as_cr_digits='0123456789'
7761 as_cr_alnum=$as_cr_Letters$as_cr_digits
7763 ECHO_C= ECHO_N= ECHO_T=
7764 case `echo -n x` in #(((((
7765 -n*)
7766 case `echo 'xy\c'` in
7767 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7768 xy) ECHO_C='\c';;
7769 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7770 ECHO_T=' ';;
7771 esac;;
7773 ECHO_N='-n';;
7774 esac
7776 rm -f conf$$ conf$$.exe conf$$.file
7777 if test -d conf$$.dir; then
7778 rm -f conf$$.dir/conf$$.file
7779 else
7780 rm -f conf$$.dir
7781 mkdir conf$$.dir 2>/dev/null
7783 if (echo >conf$$.file) 2>/dev/null; then
7784 if ln -s conf$$.file conf$$ 2>/dev/null; then
7785 as_ln_s='ln -s'
7786 # ... but there are two gotchas:
7787 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7788 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7789 # In both cases, we have to default to `cp -p'.
7790 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7791 as_ln_s='cp -p'
7792 elif ln conf$$.file conf$$ 2>/dev/null; then
7793 as_ln_s=ln
7794 else
7795 as_ln_s='cp -p'
7797 else
7798 as_ln_s='cp -p'
7800 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7801 rmdir conf$$.dir 2>/dev/null
7804 # as_fn_mkdir_p
7805 # -------------
7806 # Create "$as_dir" as a directory, including parents if necessary.
7807 as_fn_mkdir_p ()
7810 case $as_dir in #(
7811 -*) as_dir=./$as_dir;;
7812 esac
7813 test -d "$as_dir" || eval $as_mkdir_p || {
7814 as_dirs=
7815 while :; do
7816 case $as_dir in #(
7817 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7818 *) as_qdir=$as_dir;;
7819 esac
7820 as_dirs="'$as_qdir' $as_dirs"
7821 as_dir=`$as_dirname -- "$as_dir" ||
7822 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7823 X"$as_dir" : 'X\(//\)[^/]' \| \
7824 X"$as_dir" : 'X\(//\)$' \| \
7825 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7826 $as_echo X"$as_dir" |
7827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7828 s//\1/
7831 /^X\(\/\/\)[^/].*/{
7832 s//\1/
7835 /^X\(\/\/\)$/{
7836 s//\1/
7839 /^X\(\/\).*/{
7840 s//\1/
7843 s/.*/./; q'`
7844 test -d "$as_dir" && break
7845 done
7846 test -z "$as_dirs" || eval "mkdir $as_dirs"
7847 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7850 } # as_fn_mkdir_p
7851 if mkdir -p . 2>/dev/null; then
7852 as_mkdir_p='mkdir -p "$as_dir"'
7853 else
7854 test -d ./-p && rmdir ./-p
7855 as_mkdir_p=false
7858 if test -x / >/dev/null 2>&1; then
7859 as_test_x='test -x'
7860 else
7861 if ls -dL / >/dev/null 2>&1; then
7862 as_ls_L_option=L
7863 else
7864 as_ls_L_option=
7866 as_test_x='
7867 eval sh -c '\''
7868 if test -d "$1"; then
7869 test -d "$1/.";
7870 else
7871 case $1 in #(
7872 -*)set "./$1";;
7873 esac;
7874 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7875 ???[sx]*):;;*)false;;esac;fi
7876 '\'' sh
7879 as_executable_p=$as_test_x
7881 # Sed expression to map a string onto a valid CPP name.
7882 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7884 # Sed expression to map a string onto a valid variable name.
7885 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7888 exec 6>&1
7889 ## ----------------------------------- ##
7890 ## Main body of $CONFIG_STATUS script. ##
7891 ## ----------------------------------- ##
7892 _ASEOF
7893 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7896 # Save the log message, to keep $0 and so on meaningful, and to
7897 # report actual input values of CONFIG_FILES etc. instead of their
7898 # values after options handling.
7899 ac_log="
7900 This file was extended by cpplib $as_me , which was
7901 generated by GNU Autoconf 2.64. Invocation command line was
7903 CONFIG_FILES = $CONFIG_FILES
7904 CONFIG_HEADERS = $CONFIG_HEADERS
7905 CONFIG_LINKS = $CONFIG_LINKS
7906 CONFIG_COMMANDS = $CONFIG_COMMANDS
7907 $ $0 $@
7909 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7912 _ACEOF
7914 case $ac_config_files in *"
7915 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7916 esac
7918 case $ac_config_headers in *"
7919 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7920 esac
7923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7924 # Files that config.status was made for.
7925 config_files="$ac_config_files"
7926 config_headers="$ac_config_headers"
7927 config_commands="$ac_config_commands"
7929 _ACEOF
7931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7932 ac_cs_usage="\
7933 \`$as_me' instantiates files and other configuration actions
7934 from templates according to the current configuration. Unless the files
7935 and actions are specified as TAGs, all are instantiated by default.
7937 Usage: $0 [OPTION]... [TAG]...
7939 -h, --help print this help, then exit
7940 -V, --version print version number and configuration settings, then exit
7941 -q, --quiet, --silent
7942 do not print progress messages
7943 -d, --debug don't remove temporary files
7944 --recheck update $as_me by reconfiguring in the same conditions
7945 --file=FILE[:TEMPLATE]
7946 instantiate the configuration file FILE
7947 --header=FILE[:TEMPLATE]
7948 instantiate the configuration header FILE
7950 Configuration files:
7951 $config_files
7953 Configuration headers:
7954 $config_headers
7956 Configuration commands:
7957 $config_commands
7959 Report bugs to <gcc-bugs@gcc.gnu.org>."
7961 _ACEOF
7962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7963 ac_cs_version="\\
7964 cpplib config.status
7965 configured by $0, generated by GNU Autoconf 2.64,
7966 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7968 Copyright (C) 2009 Free Software Foundation, Inc.
7969 This config.status script is free software; the Free Software Foundation
7970 gives unlimited permission to copy, distribute and modify it."
7972 ac_pwd='$ac_pwd'
7973 srcdir='$srcdir'
7974 INSTALL='$INSTALL'
7975 test -n "\$AWK" || AWK=awk
7976 _ACEOF
7978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7979 # The default lists apply if the user does not specify any file.
7980 ac_need_defaults=:
7981 while test $# != 0
7983 case $1 in
7984 --*=*)
7985 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7986 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7987 ac_shift=:
7990 ac_option=$1
7991 ac_optarg=$2
7992 ac_shift=shift
7994 esac
7996 case $ac_option in
7997 # Handling of the options.
7998 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7999 ac_cs_recheck=: ;;
8000 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8001 $as_echo "$ac_cs_version"; exit ;;
8002 --debug | --debu | --deb | --de | --d | -d )
8003 debug=: ;;
8004 --file | --fil | --fi | --f )
8005 $ac_shift
8006 case $ac_optarg in
8007 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8008 esac
8009 as_fn_append CONFIG_FILES " '$ac_optarg'"
8010 ac_need_defaults=false;;
8011 --header | --heade | --head | --hea )
8012 $ac_shift
8013 case $ac_optarg in
8014 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8015 esac
8016 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8017 ac_need_defaults=false;;
8018 --he | --h)
8019 # Conflict between --help and --header
8020 as_fn_error "ambiguous option: \`$1'
8021 Try \`$0 --help' for more information.";;
8022 --help | --hel | -h )
8023 $as_echo "$ac_cs_usage"; exit ;;
8024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8025 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8026 ac_cs_silent=: ;;
8028 # This is an error.
8029 -*) as_fn_error "unrecognized option: \`$1'
8030 Try \`$0 --help' for more information." ;;
8032 *) as_fn_append ac_config_targets " $1"
8033 ac_need_defaults=false ;;
8035 esac
8036 shift
8037 done
8039 ac_configure_extra_args=
8041 if $ac_cs_silent; then
8042 exec 6>/dev/null
8043 ac_configure_extra_args="$ac_configure_extra_args --silent"
8046 _ACEOF
8047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8048 if \$ac_cs_recheck; then
8049 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8050 shift
8051 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8052 CONFIG_SHELL='$SHELL'
8053 export CONFIG_SHELL
8054 exec "\$@"
8057 _ACEOF
8058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8059 exec 5>>config.log
8061 echo
8062 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8063 ## Running $as_me. ##
8064 _ASBOX
8065 $as_echo "$ac_log"
8066 } >&5
8068 _ACEOF
8069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8071 # INIT-COMMANDS
8073 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8075 _ACEOF
8077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8079 # Handling of arguments.
8080 for ac_config_target in $ac_config_targets
8082 case $ac_config_target in
8083 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
8084 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8085 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8087 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8088 esac
8089 done
8092 # If the user did not use the arguments to specify the items to instantiate,
8093 # then the envvar interface is used. Set only those that are not.
8094 # We use the long form for the default assignment because of an extremely
8095 # bizarre bug on SunOS 4.1.3.
8096 if $ac_need_defaults; then
8097 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8098 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8099 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8102 # Have a temporary directory for convenience. Make it in the build tree
8103 # simply because there is no reason against having it here, and in addition,
8104 # creating and moving files from /tmp can sometimes cause problems.
8105 # Hook for its removal unless debugging.
8106 # Note that there is a small window in which the directory will not be cleaned:
8107 # after its creation but before its name has been assigned to `$tmp'.
8108 $debug ||
8110 tmp=
8111 trap 'exit_status=$?
8112 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8114 trap 'as_fn_exit 1' 1 2 13 15
8116 # Create a (secure) tmp directory for tmp files.
8119 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8120 test -n "$tmp" && test -d "$tmp"
8121 } ||
8123 tmp=./conf$$-$RANDOM
8124 (umask 077 && mkdir "$tmp")
8125 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8127 # Set up the scripts for CONFIG_FILES section.
8128 # No need to generate them if there are no CONFIG_FILES.
8129 # This happens for instance with `./config.status config.h'.
8130 if test -n "$CONFIG_FILES"; then
8133 ac_cr=`echo X | tr X '\015'`
8134 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8135 # But we know of no other shell where ac_cr would be empty at this
8136 # point, so we can use a bashism as a fallback.
8137 if test "x$ac_cr" = x; then
8138 eval ac_cr=\$\'\\r\'
8140 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8141 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8142 ac_cs_awk_cr='\r'
8143 else
8144 ac_cs_awk_cr=$ac_cr
8147 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8148 _ACEOF
8152 echo "cat >conf$$subs.awk <<_ACEOF" &&
8153 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8154 echo "_ACEOF"
8155 } >conf$$subs.sh ||
8156 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8157 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8158 ac_delim='%!_!# '
8159 for ac_last_try in false false false false false :; do
8160 . ./conf$$subs.sh ||
8161 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8163 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8164 if test $ac_delim_n = $ac_delim_num; then
8165 break
8166 elif $ac_last_try; then
8167 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8168 else
8169 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8171 done
8172 rm -f conf$$subs.sh
8174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8175 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8176 _ACEOF
8177 sed -n '
8179 s/^/S["/; s/!.*/"]=/
8182 s/^[^!]*!//
8183 :repl
8184 t repl
8185 s/'"$ac_delim"'$//
8186 t delim
8189 s/\(.\{148\}\).*/\1/
8190 t more1
8191 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8194 b repl
8195 :more1
8196 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8199 s/.\{148\}//
8200 t nl
8201 :delim
8203 s/\(.\{148\}\).*/\1/
8204 t more2
8205 s/["\\]/\\&/g; s/^/"/; s/$/"/
8208 :more2
8209 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8212 s/.\{148\}//
8213 t delim
8214 ' <conf$$subs.awk | sed '
8215 /^[^""]/{
8217 s/\n//
8219 ' >>$CONFIG_STATUS || ac_write_fail=1
8220 rm -f conf$$subs.awk
8221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8222 _ACAWK
8223 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8224 for (key in S) S_is_set[key] = 1
8225 FS = "\a"
8229 line = $ 0
8230 nfields = split(line, field, "@")
8231 substed = 0
8232 len = length(field[1])
8233 for (i = 2; i < nfields; i++) {
8234 key = field[i]
8235 keylen = length(key)
8236 if (S_is_set[key]) {
8237 value = S[key]
8238 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8239 len += length(value) + length(field[++i])
8240 substed = 1
8241 } else
8242 len += 1 + keylen
8245 print line
8248 _ACAWK
8249 _ACEOF
8250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8251 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8252 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8253 else
8255 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8256 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8257 _ACEOF
8259 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8260 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8261 # trailing colons and then remove the whole line if VPATH becomes empty
8262 # (actually we leave an empty line to preserve line numbers).
8263 if test "x$srcdir" = x.; then
8264 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8265 s/:*\$(srcdir):*/:/
8266 s/:*\${srcdir}:*/:/
8267 s/:*@srcdir@:*/:/
8268 s/^\([^=]*=[ ]*\):*/\1/
8269 s/:*$//
8270 s/^[^=]*=[ ]*$//
8274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8275 fi # test -n "$CONFIG_FILES"
8277 # Set up the scripts for CONFIG_HEADERS section.
8278 # No need to generate them if there are no CONFIG_HEADERS.
8279 # This happens for instance with `./config.status Makefile'.
8280 if test -n "$CONFIG_HEADERS"; then
8281 cat >"$tmp/defines.awk" <<\_ACAWK ||
8282 BEGIN {
8283 _ACEOF
8285 # Transform confdefs.h into an awk script `defines.awk', embedded as
8286 # here-document in config.status, that substitutes the proper values into
8287 # config.h.in to produce config.h.
8289 # Create a delimiter string that does not exist in confdefs.h, to ease
8290 # handling of long lines.
8291 ac_delim='%!_!# '
8292 for ac_last_try in false false :; do
8293 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8294 if test -z "$ac_t"; then
8295 break
8296 elif $ac_last_try; then
8297 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8298 else
8299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8301 done
8303 # For the awk script, D is an array of macro values keyed by name,
8304 # likewise P contains macro parameters if any. Preserve backslash
8305 # newline sequences.
8307 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8308 sed -n '
8309 s/.\{148\}/&'"$ac_delim"'/g
8310 t rset
8311 :rset
8312 s/^[ ]*#[ ]*define[ ][ ]*/ /
8313 t def
8315 :def
8316 s/\\$//
8317 t bsnl
8318 s/["\\]/\\&/g
8319 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8320 D["\1"]=" \3"/p
8321 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8323 :bsnl
8324 s/["\\]/\\&/g
8325 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8326 D["\1"]=" \3\\\\\\n"\\/p
8327 t cont
8328 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8329 t cont
8331 :cont
8333 s/.\{148\}/&'"$ac_delim"'/g
8334 t clear
8335 :clear
8336 s/\\$//
8337 t bsnlc
8338 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8340 :bsnlc
8341 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8342 b cont
8343 ' <confdefs.h | sed '
8344 s/'"$ac_delim"'/"\\\
8345 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8348 for (key in D) D_is_set[key] = 1
8349 FS = "\a"
8351 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8352 line = \$ 0
8353 split(line, arg, " ")
8354 if (arg[1] == "#") {
8355 defundef = arg[2]
8356 mac1 = arg[3]
8357 } else {
8358 defundef = substr(arg[1], 2)
8359 mac1 = arg[2]
8361 split(mac1, mac2, "(") #)
8362 macro = mac2[1]
8363 prefix = substr(line, 1, index(line, defundef) - 1)
8364 if (D_is_set[macro]) {
8365 # Preserve the white space surrounding the "#".
8366 print prefix "define", macro P[macro] D[macro]
8367 next
8368 } else {
8369 # Replace #undef with comments. This is necessary, for example,
8370 # in the case of _POSIX_SOURCE, which is predefined and required
8371 # on some systems where configure will not decide to define it.
8372 if (defundef == "undef") {
8373 print "/*", prefix defundef, macro, "*/"
8374 next
8378 { print }
8379 _ACAWK
8380 _ACEOF
8381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8382 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8383 fi # test -n "$CONFIG_HEADERS"
8386 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8387 shift
8388 for ac_tag
8390 case $ac_tag in
8391 :[FHLC]) ac_mode=$ac_tag; continue;;
8392 esac
8393 case $ac_mode$ac_tag in
8394 :[FHL]*:*);;
8395 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8396 :[FH]-) ac_tag=-:-;;
8397 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8398 esac
8399 ac_save_IFS=$IFS
8400 IFS=:
8401 set x $ac_tag
8402 IFS=$ac_save_IFS
8403 shift
8404 ac_file=$1
8405 shift
8407 case $ac_mode in
8408 :L) ac_source=$1;;
8409 :[FH])
8410 ac_file_inputs=
8411 for ac_f
8413 case $ac_f in
8414 -) ac_f="$tmp/stdin";;
8415 *) # Look for the file first in the build tree, then in the source tree
8416 # (if the path is not absolute). The absolute path cannot be DOS-style,
8417 # because $ac_f cannot contain `:'.
8418 test -f "$ac_f" ||
8419 case $ac_f in
8420 [\\/$]*) false;;
8421 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8422 esac ||
8423 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8424 esac
8425 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8426 as_fn_append ac_file_inputs " '$ac_f'"
8427 done
8429 # Let's still pretend it is `configure' which instantiates (i.e., don't
8430 # use $as_me), people would be surprised to read:
8431 # /* config.h. Generated by config.status. */
8432 configure_input='Generated from '`
8433 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8434 `' by configure.'
8435 if test x"$ac_file" != x-; then
8436 configure_input="$ac_file. $configure_input"
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8438 $as_echo "$as_me: creating $ac_file" >&6;}
8440 # Neutralize special characters interpreted by sed in replacement strings.
8441 case $configure_input in #(
8442 *\&* | *\|* | *\\* )
8443 ac_sed_conf_input=`$as_echo "$configure_input" |
8444 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8445 *) ac_sed_conf_input=$configure_input;;
8446 esac
8448 case $ac_tag in
8449 *:-:* | *:-) cat >"$tmp/stdin" \
8450 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8451 esac
8453 esac
8455 ac_dir=`$as_dirname -- "$ac_file" ||
8456 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8457 X"$ac_file" : 'X\(//\)[^/]' \| \
8458 X"$ac_file" : 'X\(//\)$' \| \
8459 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8460 $as_echo X"$ac_file" |
8461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8462 s//\1/
8465 /^X\(\/\/\)[^/].*/{
8466 s//\1/
8469 /^X\(\/\/\)$/{
8470 s//\1/
8473 /^X\(\/\).*/{
8474 s//\1/
8477 s/.*/./; q'`
8478 as_dir="$ac_dir"; as_fn_mkdir_p
8479 ac_builddir=.
8481 case "$ac_dir" in
8482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8484 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8485 # A ".." for each directory in $ac_dir_suffix.
8486 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8487 case $ac_top_builddir_sub in
8488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8490 esac ;;
8491 esac
8492 ac_abs_top_builddir=$ac_pwd
8493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8494 # for backward compatibility:
8495 ac_top_builddir=$ac_top_build_prefix
8497 case $srcdir in
8498 .) # We are building in place.
8499 ac_srcdir=.
8500 ac_top_srcdir=$ac_top_builddir_sub
8501 ac_abs_top_srcdir=$ac_pwd ;;
8502 [\\/]* | ?:[\\/]* ) # Absolute name.
8503 ac_srcdir=$srcdir$ac_dir_suffix;
8504 ac_top_srcdir=$srcdir
8505 ac_abs_top_srcdir=$srcdir ;;
8506 *) # Relative name.
8507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8508 ac_top_srcdir=$ac_top_build_prefix$srcdir
8509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8510 esac
8511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8514 case $ac_mode in
8517 # CONFIG_FILE
8520 case $INSTALL in
8521 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8522 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8523 esac
8524 _ACEOF
8526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8527 # If the template does not know about datarootdir, expand it.
8528 # FIXME: This hack should be removed a few years after 2.60.
8529 ac_datarootdir_hack=; ac_datarootdir_seen=
8530 ac_sed_dataroot='
8531 /datarootdir/ {
8535 /@datadir@/p
8536 /@docdir@/p
8537 /@infodir@/p
8538 /@localedir@/p
8539 /@mandir@/p'
8540 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8541 *datarootdir*) ac_datarootdir_seen=yes;;
8542 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8544 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8545 _ACEOF
8546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8547 ac_datarootdir_hack='
8548 s&@datadir@&$datadir&g
8549 s&@docdir@&$docdir&g
8550 s&@infodir@&$infodir&g
8551 s&@localedir@&$localedir&g
8552 s&@mandir@&$mandir&g
8553 s&\\\${datarootdir}&$datarootdir&g' ;;
8554 esac
8555 _ACEOF
8557 # Neutralize VPATH when `$srcdir' = `.'.
8558 # Shell code in configure.ac might set extrasub.
8559 # FIXME: do we really want to maintain this feature?
8560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8561 ac_sed_extra="$ac_vpsub
8562 $extrasub
8563 _ACEOF
8564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8567 s|@configure_input@|$ac_sed_conf_input|;t t
8568 s&@top_builddir@&$ac_top_builddir_sub&;t t
8569 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8570 s&@srcdir@&$ac_srcdir&;t t
8571 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8572 s&@top_srcdir@&$ac_top_srcdir&;t t
8573 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8574 s&@builddir@&$ac_builddir&;t t
8575 s&@abs_builddir@&$ac_abs_builddir&;t t
8576 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8577 s&@INSTALL@&$ac_INSTALL&;t t
8578 $ac_datarootdir_hack
8580 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8581 || as_fn_error "could not create $ac_file" "$LINENO" 5
8583 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8584 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8585 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8587 which seems to be undefined. Please make sure it is defined." >&5
8588 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8589 which seems to be undefined. Please make sure it is defined." >&2;}
8591 rm -f "$tmp/stdin"
8592 case $ac_file in
8593 -) cat "$tmp/out" && rm -f "$tmp/out";;
8594 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8595 esac \
8596 || as_fn_error "could not create $ac_file" "$LINENO" 5
8600 # CONFIG_HEADER
8602 if test x"$ac_file" != x-; then
8604 $as_echo "/* $configure_input */" \
8605 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8606 } >"$tmp/config.h" \
8607 || as_fn_error "could not create $ac_file" "$LINENO" 5
8608 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8610 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8611 else
8612 rm -f "$ac_file"
8613 mv "$tmp/config.h" "$ac_file" \
8614 || as_fn_error "could not create $ac_file" "$LINENO" 5
8616 else
8617 $as_echo "/* $configure_input */" \
8618 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8619 || as_fn_error "could not create -" "$LINENO" 5
8623 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8624 $as_echo "$as_me: executing $ac_file commands" >&6;}
8626 esac
8629 case $ac_file$ac_mode in
8630 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8631 "config.h":H) echo timestamp > stamp-h1 ;;
8633 esac
8634 done # for ac_tag
8637 as_fn_exit 0
8638 _ACEOF
8639 ac_clean_files=$ac_clean_files_save
8641 test $ac_write_fail = 0 ||
8642 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8645 # configure is writing to config.log, and then calls config.status.
8646 # config.status does its own redirection, appending to config.log.
8647 # Unfortunately, on DOS this fails, as config.log is still kept open
8648 # by configure, so config.status won't be able to write to it; its
8649 # output is simply discarded. So we exec the FD to /dev/null,
8650 # effectively closing config.log, so it can be properly (re)opened and
8651 # appended to by config.status. When coming back to configure, we
8652 # need to make the FD available again.
8653 if test "$no_create" != yes; then
8654 ac_cs_success=:
8655 ac_config_status_args=
8656 test "$silent" = yes &&
8657 ac_config_status_args="$ac_config_status_args --quiet"
8658 exec 5>/dev/null
8659 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8660 exec 5>>config.log
8661 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8662 # would make configure fail if this is the last instruction.
8663 $ac_cs_success || as_fn_exit $?
8665 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8667 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}