fix Change log
[official-gcc.git] / libcpp / configure
blobc400d23a93df298f37b9079d1e92991a808349bf
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for cpplib .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: gcc-bugs@gcc.gnu.org about your system, including any
233 $0: error possibly output before this message. Then install
234 $0: a modern shell, or manually run the script under such a
235 $0: shell if you do have one."
237 exit 1
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
255 { eval $1=; unset $1;}
257 as_unset=as_fn_unset
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
264 return $1
265 } # as_fn_set_status
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
308 /^X\(\/\/\)$/{
309 s//\1/
312 /^X\(\/\).*/{
313 s//\1/
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
333 eval $1+=\$2
335 else
336 as_fn_append ()
338 eval $1=\$$1\$2
340 fi # as_fn_append
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
350 as_val=$(( $* ))
352 else
353 as_fn_arith ()
355 as_val=`expr "$@" || test $? -eq 1`
357 fi # as_fn_arith
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
404 /^X\/\(\/\/\)$/{
405 s//\1/
408 /^X\/\(\/\).*/{
409 s//\1/
412 s/.*/./; q'`
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
435 :lineno
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
463 ECHO_N='-n';;
464 esac
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
487 else
488 as_ln_s='cp -p'
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 exec 7<&0 </dev/null 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='cpplib'
551 PACKAGE_TARNAME='cpplib'
552 PACKAGE_VERSION=' '
553 PACKAGE_STRING='cpplib '
554 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
555 PACKAGE_URL=''
557 ac_unique_file="ucnid.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_subst_vars='LTLIBOBJS
595 MAINT
596 USED_CATALOGS
597 PACKAGE
598 LTLIBICONV
599 LIBICONV
600 CATOBJEXT
601 GENCAT
602 INSTOBJEXT
603 DATADIRNAME
604 CATALOGS
605 POSUB
606 GMSGFMT
607 XGETTEXT
608 INCINTL
609 LIBINTL_DEP
610 LIBINTL
611 USE_NLS
612 ALLOCA
613 LIBOBJS
614 CXXDEPMODE
615 CCDEPMODE
616 DEPDIR
617 am__leading_dot
618 WERROR
619 WARN_PEDANTIC
620 c_warn
621 warn
622 AUTOHEADER
623 AUTOCONF
624 ACLOCAL
625 ENABLE_BUILD_WITH_CXX
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_build_with_cxx
699 enable_werror_always
700 with_gnu_ld
701 enable_rpath
702 with_libiconv_prefix
703 enable_maintainer_mode
704 enable_checking
706 ac_precious_vars='build_alias
707 host_alias
708 target_alias
710 CFLAGS
711 LDFLAGS
712 LIBS
713 CPPFLAGS
715 CXXFLAGS
717 CPP'
720 # Initialize some variables set by options.
721 ac_init_help=
722 ac_init_version=false
723 ac_unrecognized_opts=
724 ac_unrecognized_sep=
725 # The variables have the same names as the options, with
726 # dashes changed to underlines.
727 cache_file=/dev/null
728 exec_prefix=NONE
729 no_create=
730 no_recursion=
731 prefix=NONE
732 program_prefix=NONE
733 program_suffix=NONE
734 program_transform_name=s,x,x,
735 silent=
736 site=
737 srcdir=
738 verbose=
739 x_includes=NONE
740 x_libraries=NONE
742 # Installation directory options.
743 # These are left unexpanded so users can "make install exec_prefix=/foo"
744 # and all the variables that are supposed to be based on exec_prefix
745 # by default will actually change.
746 # Use braces instead of parens because sh, perl, etc. also accept them.
747 # (The list follows the same order as the GNU Coding Standards.)
748 bindir='${exec_prefix}/bin'
749 sbindir='${exec_prefix}/sbin'
750 libexecdir='${exec_prefix}/libexec'
751 datarootdir='${prefix}/share'
752 datadir='${datarootdir}'
753 sysconfdir='${prefix}/etc'
754 sharedstatedir='${prefix}/com'
755 localstatedir='${prefix}/var'
756 includedir='${prefix}/include'
757 oldincludedir='/usr/include'
758 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
759 infodir='${datarootdir}/info'
760 htmldir='${docdir}'
761 dvidir='${docdir}'
762 pdfdir='${docdir}'
763 psdir='${docdir}'
764 libdir='${exec_prefix}/lib'
765 localedir='${datarootdir}/locale'
766 mandir='${datarootdir}/man'
768 ac_prev=
769 ac_dashdash=
770 for ac_option
772 # If the previous option needs an argument, assign it.
773 if test -n "$ac_prev"; then
774 eval $ac_prev=\$ac_option
775 ac_prev=
776 continue
779 case $ac_option in
780 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
781 *) ac_optarg=yes ;;
782 esac
784 # Accept the important Cygnus configure options, so we can diagnose typos.
786 case $ac_dashdash$ac_option in
788 ac_dashdash=yes ;;
790 -bindir | --bindir | --bindi | --bind | --bin | --bi)
791 ac_prev=bindir ;;
792 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
793 bindir=$ac_optarg ;;
795 -build | --build | --buil | --bui | --bu)
796 ac_prev=build_alias ;;
797 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
798 build_alias=$ac_optarg ;;
800 -cache-file | --cache-file | --cache-fil | --cache-fi \
801 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
802 ac_prev=cache_file ;;
803 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
804 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
805 cache_file=$ac_optarg ;;
807 --config-cache | -C)
808 cache_file=config.cache ;;
810 -datadir | --datadir | --datadi | --datad)
811 ac_prev=datadir ;;
812 -datadir=* | --datadir=* | --datadi=* | --datad=*)
813 datadir=$ac_optarg ;;
815 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
816 | --dataroo | --dataro | --datar)
817 ac_prev=datarootdir ;;
818 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
819 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
820 datarootdir=$ac_optarg ;;
822 -disable-* | --disable-*)
823 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
824 # Reject names that are not valid shell variable names.
825 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
826 as_fn_error "invalid feature name: $ac_useropt"
827 ac_useropt_orig=$ac_useropt
828 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
829 case $ac_user_opts in
831 "enable_$ac_useropt"
832 "*) ;;
833 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
834 ac_unrecognized_sep=', ';;
835 esac
836 eval enable_$ac_useropt=no ;;
838 -docdir | --docdir | --docdi | --doc | --do)
839 ac_prev=docdir ;;
840 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
841 docdir=$ac_optarg ;;
843 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
844 ac_prev=dvidir ;;
845 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
846 dvidir=$ac_optarg ;;
848 -enable-* | --enable-*)
849 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 as_fn_error "invalid feature name: $ac_useropt"
853 ac_useropt_orig=$ac_useropt
854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
857 "enable_$ac_useropt"
858 "*) ;;
859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
860 ac_unrecognized_sep=', ';;
861 esac
862 eval enable_$ac_useropt=\$ac_optarg ;;
864 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
865 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
866 | --exec | --exe | --ex)
867 ac_prev=exec_prefix ;;
868 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
869 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
870 | --exec=* | --exe=* | --ex=*)
871 exec_prefix=$ac_optarg ;;
873 -gas | --gas | --ga | --g)
874 # Obsolete; use --with-gas.
875 with_gas=yes ;;
877 -help | --help | --hel | --he | -h)
878 ac_init_help=long ;;
879 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
880 ac_init_help=recursive ;;
881 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
882 ac_init_help=short ;;
884 -host | --host | --hos | --ho)
885 ac_prev=host_alias ;;
886 -host=* | --host=* | --hos=* | --ho=*)
887 host_alias=$ac_optarg ;;
889 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
890 ac_prev=htmldir ;;
891 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
892 | --ht=*)
893 htmldir=$ac_optarg ;;
895 -includedir | --includedir | --includedi | --included | --include \
896 | --includ | --inclu | --incl | --inc)
897 ac_prev=includedir ;;
898 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
899 | --includ=* | --inclu=* | --incl=* | --inc=*)
900 includedir=$ac_optarg ;;
902 -infodir | --infodir | --infodi | --infod | --info | --inf)
903 ac_prev=infodir ;;
904 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
905 infodir=$ac_optarg ;;
907 -libdir | --libdir | --libdi | --libd)
908 ac_prev=libdir ;;
909 -libdir=* | --libdir=* | --libdi=* | --libd=*)
910 libdir=$ac_optarg ;;
912 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
913 | --libexe | --libex | --libe)
914 ac_prev=libexecdir ;;
915 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
916 | --libexe=* | --libex=* | --libe=*)
917 libexecdir=$ac_optarg ;;
919 -localedir | --localedir | --localedi | --localed | --locale)
920 ac_prev=localedir ;;
921 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
922 localedir=$ac_optarg ;;
924 -localstatedir | --localstatedir | --localstatedi | --localstated \
925 | --localstate | --localstat | --localsta | --localst | --locals)
926 ac_prev=localstatedir ;;
927 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
928 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
929 localstatedir=$ac_optarg ;;
931 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
932 ac_prev=mandir ;;
933 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
934 mandir=$ac_optarg ;;
936 -nfp | --nfp | --nf)
937 # Obsolete; use --without-fp.
938 with_fp=no ;;
940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941 | --no-cr | --no-c | -n)
942 no_create=yes ;;
944 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
945 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
946 no_recursion=yes ;;
948 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
949 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
950 | --oldin | --oldi | --old | --ol | --o)
951 ac_prev=oldincludedir ;;
952 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
953 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
954 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
955 oldincludedir=$ac_optarg ;;
957 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
958 ac_prev=prefix ;;
959 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
960 prefix=$ac_optarg ;;
962 -program-prefix | --program-prefix | --program-prefi | --program-pref \
963 | --program-pre | --program-pr | --program-p)
964 ac_prev=program_prefix ;;
965 -program-prefix=* | --program-prefix=* | --program-prefi=* \
966 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
967 program_prefix=$ac_optarg ;;
969 -program-suffix | --program-suffix | --program-suffi | --program-suff \
970 | --program-suf | --program-su | --program-s)
971 ac_prev=program_suffix ;;
972 -program-suffix=* | --program-suffix=* | --program-suffi=* \
973 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
974 program_suffix=$ac_optarg ;;
976 -program-transform-name | --program-transform-name \
977 | --program-transform-nam | --program-transform-na \
978 | --program-transform-n | --program-transform- \
979 | --program-transform | --program-transfor \
980 | --program-transfo | --program-transf \
981 | --program-trans | --program-tran \
982 | --progr-tra | --program-tr | --program-t)
983 ac_prev=program_transform_name ;;
984 -program-transform-name=* | --program-transform-name=* \
985 | --program-transform-nam=* | --program-transform-na=* \
986 | --program-transform-n=* | --program-transform-=* \
987 | --program-transform=* | --program-transfor=* \
988 | --program-transfo=* | --program-transf=* \
989 | --program-trans=* | --program-tran=* \
990 | --progr-tra=* | --program-tr=* | --program-t=*)
991 program_transform_name=$ac_optarg ;;
993 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
994 ac_prev=pdfdir ;;
995 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
996 pdfdir=$ac_optarg ;;
998 -psdir | --psdir | --psdi | --psd | --ps)
999 ac_prev=psdir ;;
1000 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1001 psdir=$ac_optarg ;;
1003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004 | -silent | --silent | --silen | --sile | --sil)
1005 silent=yes ;;
1007 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1008 ac_prev=sbindir ;;
1009 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1010 | --sbi=* | --sb=*)
1011 sbindir=$ac_optarg ;;
1013 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1014 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1015 | --sharedst | --shareds | --shared | --share | --shar \
1016 | --sha | --sh)
1017 ac_prev=sharedstatedir ;;
1018 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1019 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1020 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1021 | --sha=* | --sh=*)
1022 sharedstatedir=$ac_optarg ;;
1024 -site | --site | --sit)
1025 ac_prev=site ;;
1026 -site=* | --site=* | --sit=*)
1027 site=$ac_optarg ;;
1029 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1030 ac_prev=srcdir ;;
1031 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1032 srcdir=$ac_optarg ;;
1034 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1035 | --syscon | --sysco | --sysc | --sys | --sy)
1036 ac_prev=sysconfdir ;;
1037 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1038 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1039 sysconfdir=$ac_optarg ;;
1041 -target | --target | --targe | --targ | --tar | --ta | --t)
1042 ac_prev=target_alias ;;
1043 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1044 target_alias=$ac_optarg ;;
1046 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1047 verbose=yes ;;
1049 -version | --version | --versio | --versi | --vers | -V)
1050 ac_init_version=: ;;
1052 -with-* | --with-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error "invalid package name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1061 "with_$ac_useropt"
1062 "*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval with_$ac_useropt=\$ac_optarg ;;
1068 -without-* | --without-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error "invalid package name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1077 "with_$ac_useropt"
1078 "*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval with_$ac_useropt=no ;;
1084 --x)
1085 # Obsolete; use --with-x.
1086 with_x=yes ;;
1088 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089 | --x-incl | --x-inc | --x-in | --x-i)
1090 ac_prev=x_includes ;;
1091 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1093 x_includes=$ac_optarg ;;
1095 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097 ac_prev=x_libraries ;;
1098 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1100 x_libraries=$ac_optarg ;;
1102 -*) as_fn_error "unrecognized option: \`$ac_option'
1103 Try \`$0 --help' for more information."
1106 *=*)
1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
1109 case $ac_envvar in #(
1110 '' | [0-9]* | *[!_$as_cr_alnum]* )
1111 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1112 esac
1113 eval $ac_envvar=\$ac_optarg
1114 export $ac_envvar ;;
1117 # FIXME: should be removed in autoconf 3.0.
1118 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1124 esac
1125 done
1127 if test -n "$ac_prev"; then
1128 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1129 as_fn_error "missing argument to $ac_option"
1132 if test -n "$ac_unrecognized_opts"; then
1133 case $enable_option_checking in
1134 no) ;;
1135 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1136 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1137 esac
1140 # Check all directory arguments for consistency.
1141 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1142 datadir sysconfdir sharedstatedir localstatedir includedir \
1143 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1144 libdir localedir mandir
1146 eval ac_val=\$$ac_var
1147 # Remove trailing slashes.
1148 case $ac_val in
1149 */ )
1150 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1151 eval $ac_var=\$ac_val;;
1152 esac
1153 # Be sure to have absolute directory names.
1154 case $ac_val in
1155 [\\/$]* | ?:[\\/]* ) continue;;
1156 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1157 esac
1158 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1159 done
1161 # There might be people who depend on the old broken behavior: `$host'
1162 # used to hold the argument of --host etc.
1163 # FIXME: To remove some day.
1164 build=$build_alias
1165 host=$host_alias
1166 target=$target_alias
1168 # FIXME: To remove some day.
1169 if test "x$host_alias" != x; then
1170 if test "x$build_alias" = x; then
1171 cross_compiling=maybe
1172 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1173 If a cross compiler is detected then cross compile mode will be used." >&2
1174 elif test "x$build_alias" != "x$host_alias"; then
1175 cross_compiling=yes
1179 ac_tool_prefix=
1180 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1182 test "$silent" = yes && exec 6>/dev/null
1185 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1186 ac_ls_di=`ls -di .` &&
1187 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1188 as_fn_error "working directory cannot be determined"
1189 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1190 as_fn_error "pwd does not report name of working directory"
1193 # Find the source files, if location was not specified.
1194 if test -z "$srcdir"; then
1195 ac_srcdir_defaulted=yes
1196 # Try the directory containing this script, then the parent directory.
1197 ac_confdir=`$as_dirname -- "$as_myself" ||
1198 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1199 X"$as_myself" : 'X\(//\)[^/]' \| \
1200 X"$as_myself" : 'X\(//\)$' \| \
1201 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1202 $as_echo X"$as_myself" |
1203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1204 s//\1/
1207 /^X\(\/\/\)[^/].*/{
1208 s//\1/
1211 /^X\(\/\/\)$/{
1212 s//\1/
1215 /^X\(\/\).*/{
1216 s//\1/
1219 s/.*/./; q'`
1220 srcdir=$ac_confdir
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1222 srcdir=..
1224 else
1225 ac_srcdir_defaulted=no
1227 if test ! -r "$srcdir/$ac_unique_file"; then
1228 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1229 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1231 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1232 ac_abs_confdir=`(
1233 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1234 pwd)`
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1237 srcdir=.
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1242 case $srcdir in
1243 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244 esac
1245 for ac_var in $ac_precious_vars; do
1246 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_${ac_var}_value=\$${ac_var}
1248 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1250 done
1253 # Report the --help message.
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1258 cat <<_ACEOF
1259 \`configure' configures cpplib to adapt to many kinds of systems.
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1266 Defaults for the options are specified in brackets.
1268 Configuration:
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1283 [PREFIX]
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1290 For better control, use the options below.
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1312 _ACEOF
1314 cat <<\_ACEOF
1316 System types:
1317 --build=BUILD configure for building on BUILD [guessed]
1318 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1319 --target=TARGET configure for building compilers for TARGET [HOST]
1320 _ACEOF
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of cpplib :";;
1326 esac
1327 cat <<\_ACEOF
1329 Optional Features:
1330 --disable-option-checking ignore unrecognized --enable/--with options
1331 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1332 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1333 --disable-largefile omit support for large files
1334 --enable-build-with-cxx build with C++ compiler instead of C compiler
1335 --enable-werror-always enable -Werror despite compiler version
1336 --disable-rpath do not hardcode runtime library paths
1337 --enable-maintainer-mode enable rules only needed by maintainers
1338 --enable-checking enable expensive run-time checks
1340 Optional Packages:
1341 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1342 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1343 --with-gnu-ld assume the C compiler uses GNU ld default=no
1344 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1345 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1347 Some influential environment variables:
1348 CC C compiler command
1349 CFLAGS C compiler flags
1350 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1351 nonstandard directory <lib dir>
1352 LIBS libraries to pass to the linker, e.g. -l<library>
1353 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1354 you have headers in a nonstandard directory <include dir>
1355 CXX C++ compiler command
1356 CXXFLAGS C++ compiler flags
1357 CPP C preprocessor
1359 Use these variables to override the choices made by `configure' or to help
1360 it to find libraries and programs with nonstandard names/locations.
1362 Report bugs to <gcc-bugs@gcc.gnu.org>.
1363 _ACEOF
1364 ac_status=$?
1367 if test "$ac_init_help" = "recursive"; then
1368 # If there are subdirs, report their specific --help.
1369 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1370 test -d "$ac_dir" ||
1371 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1372 continue
1373 ac_builddir=.
1375 case "$ac_dir" in
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 esac ;;
1385 esac
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1391 case $srcdir in
1392 .) # We are building in place.
1393 ac_srcdir=.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1400 *) # Relative name.
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 esac
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1413 echo &&
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1415 else
1416 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 fi || ac_status=$?
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1419 done
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1424 cat <<\_ACEOF
1425 cpplib configure
1426 generated by GNU Autoconf 2.64
1428 Copyright (C) 2009 Free Software Foundation, Inc.
1429 This configure script is free software; the Free Software Foundation
1430 gives unlimited permission to copy, distribute and modify it.
1431 _ACEOF
1432 exit
1435 ## ------------------------ ##
1436 ## Autoconf initialization. ##
1437 ## ------------------------ ##
1439 # ac_fn_c_try_compile LINENO
1440 # --------------------------
1441 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1442 ac_fn_c_try_compile ()
1444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1445 rm -f conftest.$ac_objext
1446 if { { ac_try="$ac_compile"
1447 case "(($ac_try" in
1448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1449 *) ac_try_echo=$ac_try;;
1450 esac
1451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1452 $as_echo "$ac_try_echo"; } >&5
1453 (eval "$ac_compile") 2>conftest.err
1454 ac_status=$?
1455 if test -s conftest.err; then
1456 grep -v '^ *+' conftest.err >conftest.er1
1457 cat conftest.er1 >&5
1458 mv -f conftest.er1 conftest.err
1460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1461 test $ac_status = 0; } && {
1462 test -z "$ac_c_werror_flag" ||
1463 test ! -s conftest.err
1464 } && test -s conftest.$ac_objext; then :
1465 ac_retval=0
1466 else
1467 $as_echo "$as_me: failed program was:" >&5
1468 sed 's/^/| /' conftest.$ac_ext >&5
1470 ac_retval=1
1472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1473 return $ac_retval
1475 } # ac_fn_c_try_compile
1477 # ac_fn_cxx_try_compile LINENO
1478 # ----------------------------
1479 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1480 ac_fn_cxx_try_compile ()
1482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483 rm -f conftest.$ac_objext
1484 if { { ac_try="$ac_compile"
1485 case "(($ac_try" in
1486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487 *) ac_try_echo=$ac_try;;
1488 esac
1489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490 $as_echo "$ac_try_echo"; } >&5
1491 (eval "$ac_compile") 2>conftest.err
1492 ac_status=$?
1493 if test -s conftest.err; then
1494 grep -v '^ *+' conftest.err >conftest.er1
1495 cat conftest.er1 >&5
1496 mv -f conftest.er1 conftest.err
1498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499 test $ac_status = 0; } && {
1500 test -z "$ac_cxx_werror_flag" ||
1501 test ! -s conftest.err
1502 } && test -s conftest.$ac_objext; then :
1503 ac_retval=0
1504 else
1505 $as_echo "$as_me: failed program was:" >&5
1506 sed 's/^/| /' conftest.$ac_ext >&5
1508 ac_retval=1
1510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1511 return $ac_retval
1513 } # ac_fn_cxx_try_compile
1515 # ac_fn_c_try_cpp LINENO
1516 # ----------------------
1517 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_cpp ()
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 if { { ac_try="$ac_cpp conftest.$ac_ext"
1522 case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525 esac
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1529 ac_status=$?
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } >/dev/null && {
1537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 }; then :
1540 ac_retval=0
1541 else
1542 $as_echo "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1545 ac_retval=1
1547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1548 return $ac_retval
1550 } # ac_fn_c_try_cpp
1552 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1553 # -------------------------------------------------------
1554 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1555 # the include files in INCLUDES and setting the cache variable VAR
1556 # accordingly.
1557 ac_fn_c_check_header_mongrel ()
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1562 $as_echo_n "checking for $2... " >&6; }
1563 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1564 $as_echo_n "(cached) " >&6
1566 eval ac_res=\$$3
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1568 $as_echo "$ac_res" >&6; }
1569 else
1570 # Is the header compilable?
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1572 $as_echo_n "checking $2 usability... " >&6; }
1573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574 /* end confdefs.h. */
1576 #include <$2>
1577 _ACEOF
1578 if ac_fn_c_try_compile "$LINENO"; then :
1579 ac_header_compiler=yes
1580 else
1581 ac_header_compiler=no
1583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1585 $as_echo "$ac_header_compiler" >&6; }
1587 # Is the header present?
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1589 $as_echo_n "checking $2 presence... " >&6; }
1590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1591 /* end confdefs.h. */
1592 #include <$2>
1593 _ACEOF
1594 if ac_fn_c_try_cpp "$LINENO"; then :
1595 ac_header_preproc=yes
1596 else
1597 ac_header_preproc=no
1599 rm -f conftest.err conftest.$ac_ext
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1601 $as_echo "$ac_header_preproc" >&6; }
1603 # So? What about this header?
1604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1605 yes:no: )
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1607 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1609 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1611 no:yes:* )
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1613 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1615 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1617 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1619 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1621 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1622 ( cat <<\_ASBOX
1623 ## ----------------------------------- ##
1624 ## Report this to gcc-bugs@gcc.gnu.org ##
1625 ## ----------------------------------- ##
1626 _ASBOX
1627 ) | sed "s/^/$as_me: WARNING: /" >&2
1629 esac
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631 $as_echo_n "checking for $2... " >&6; }
1632 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1633 $as_echo_n "(cached) " >&6
1634 else
1635 eval "$3=\$ac_header_compiler"
1637 eval ac_res=\$$3
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639 $as_echo "$ac_res" >&6; }
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 } # ac_fn_c_check_header_mongrel
1645 # ac_fn_c_try_run LINENO
1646 # ----------------------
1647 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1648 # that executables *can* be run.
1649 ac_fn_c_try_run ()
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if { { ac_try="$ac_link"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_link") 2>&5
1660 ac_status=$?
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1663 { { case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_try") 2>&5
1670 ac_status=$?
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; }; }; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: program exited with status $ac_status" >&5
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1679 ac_retval=$ac_status
1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1683 return $ac_retval
1685 } # ac_fn_c_try_run
1687 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1688 # -------------------------------------------------------
1689 # Tests whether HEADER exists and can be compiled using the include files in
1690 # INCLUDES, setting the cache variable VAR accordingly.
1691 ac_fn_c_check_header_compile ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1697 $as_echo_n "(cached) " >&6
1698 else
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_compile "$LINENO"; then :
1705 eval "$3=yes"
1706 else
1707 eval "$3=no"
1709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711 eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 $as_echo "$ac_res" >&6; }
1714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716 } # ac_fn_c_check_header_compile
1718 # ac_fn_c_try_link LINENO
1719 # -----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_link ()
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext conftest$ac_exeext
1725 if { { ac_try="$ac_link"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest$ac_exeext && {
1744 test "$cross_compiling" = yes ||
1745 $as_test_x conftest$ac_exeext
1746 }; then :
1747 ac_retval=0
1748 else
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1752 ac_retval=1
1754 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1755 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1756 # interfere with the next link command; also delete a directory that is
1757 # left behind by Apple's compiler. We do this before executing the actions.
1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 return $ac_retval
1762 } # ac_fn_c_try_link
1764 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1765 # -------------------------------------------
1766 # Tests whether TYPE exists after having included INCLUDES, setting cache
1767 # variable VAR accordingly.
1768 ac_fn_c_check_type ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1774 $as_echo_n "(cached) " >&6
1775 else
1776 eval "$3=no"
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1781 main ()
1783 if (sizeof ($2))
1784 return 0;
1786 return 0;
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1794 main ()
1796 if (sizeof (($2)))
1797 return 0;
1799 return 0;
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"; then :
1804 else
1805 eval "$3=yes"
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 } # ac_fn_c_check_type
1818 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1819 # --------------------------------------------
1820 # Tries to find the compile-time value of EXPR in a program that includes
1821 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1822 # computed
1823 ac_fn_c_compute_int ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if test "$cross_compiling" = yes; then
1827 # Depending upon the size, compute the lo and hi bounds.
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1832 main ()
1834 static int test_array [1 - 2 * !(($2) >= 0)];
1835 test_array [0] = 0
1838 return 0;
1840 _ACEOF
1841 if ac_fn_c_try_compile "$LINENO"; then :
1842 ac_lo=0 ac_mid=0
1843 while :; do
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1848 main ()
1850 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1851 test_array [0] = 0
1854 return 0;
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858 ac_hi=$ac_mid; break
1859 else
1860 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1861 if test $ac_lo -le $ac_mid; then
1862 ac_lo= ac_hi=
1863 break
1865 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 done
1869 else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1874 main ()
1876 static int test_array [1 - 2 * !(($2) < 0)];
1877 test_array [0] = 0
1880 return 0;
1882 _ACEOF
1883 if ac_fn_c_try_compile "$LINENO"; then :
1884 ac_hi=-1 ac_mid=-1
1885 while :; do
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1890 main ()
1892 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1893 test_array [0] = 0
1896 return 0;
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900 ac_lo=$ac_mid; break
1901 else
1902 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1903 if test $ac_mid -le $ac_hi; then
1904 ac_lo= ac_hi=
1905 break
1907 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 done
1911 else
1912 ac_lo= ac_hi=
1914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 # Binary search between lo and hi bounds.
1918 while test "x$ac_lo" != "x$ac_hi"; do
1919 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1924 main ()
1926 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1927 test_array [0] = 0
1930 return 0;
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 ac_hi=$ac_mid
1935 else
1936 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 done
1940 case $ac_lo in #((
1941 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1942 '') ac_retval=1 ;;
1943 esac
1944 else
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1948 static long int longval () { return $2; }
1949 static unsigned long int ulongval () { return $2; }
1950 #include <stdio.h>
1951 #include <stdlib.h>
1953 main ()
1956 FILE *f = fopen ("conftest.val", "w");
1957 if (! f)
1958 return 1;
1959 if (($2) < 0)
1961 long int i = longval ();
1962 if (i != ($2))
1963 return 1;
1964 fprintf (f, "%ld", i);
1966 else
1968 unsigned long int i = ulongval ();
1969 if (i != ($2))
1970 return 1;
1971 fprintf (f, "%lu", i);
1973 /* Do not output a trailing newline, as this causes \r\n confusion
1974 on some platforms. */
1975 return ferror (f) || fclose (f) != 0;
1978 return 0;
1980 _ACEOF
1981 if ac_fn_c_try_run "$LINENO"; then :
1982 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1983 else
1984 ac_retval=1
1986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1987 conftest.$ac_objext conftest.beam conftest.$ac_ext
1988 rm -f conftest.val
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 return $ac_retval
1994 } # ac_fn_c_compute_int
1996 # ac_fn_c_check_func LINENO FUNC VAR
1997 # ----------------------------------
1998 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1999 ac_fn_c_check_func ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005 $as_echo_n "(cached) " >&6
2006 else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2009 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2011 #define $2 innocuous_$2
2013 /* System header to define __stub macros and hopefully few prototypes,
2014 which can conflict with char $2 (); below.
2015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2016 <limits.h> exists even on freestanding compilers. */
2018 #ifdef __STDC__
2019 # include <limits.h>
2020 #else
2021 # include <assert.h>
2022 #endif
2024 #undef $2
2026 /* Override any GCC internal prototype to avoid an error.
2027 Use char because int might match the return type of a GCC
2028 builtin and then its argument prototype would still apply. */
2029 #ifdef __cplusplus
2030 extern "C"
2031 #endif
2032 char $2 ();
2033 /* The GNU C library defines this for functions which it implements
2034 to always fail with ENOSYS. Some functions are actually named
2035 something starting with __ and the normal name is an alias. */
2036 #if defined __stub_$2 || defined __stub___$2
2037 choke me
2038 #endif
2041 main ()
2043 return $2 ();
2045 return 0;
2047 _ACEOF
2048 if ac_fn_c_try_link "$LINENO"; then :
2049 eval "$3=yes"
2050 else
2051 eval "$3=no"
2053 rm -f core conftest.err conftest.$ac_objext \
2054 conftest$ac_exeext conftest.$ac_ext
2056 eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2061 } # ac_fn_c_check_func
2063 # ac_fn_c_check_decl LINENO SYMBOL VAR
2064 # ------------------------------------
2065 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2066 ac_fn_c_check_decl ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 as_decl_name=`echo $2|sed 's/ *(.*//'`
2070 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2072 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2073 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2080 main ()
2082 #ifndef $as_decl_name
2083 #ifdef __cplusplus
2084 (void) $as_decl_use;
2085 #else
2086 (void) $as_decl_name;
2087 #endif
2088 #endif
2091 return 0;
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 eval "$3=yes"
2096 else
2097 eval "$3=no"
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2106 } # ac_fn_c_check_decl
2108 # ac_fn_cxx_try_link LINENO
2109 # -------------------------
2110 # Try to link conftest.$ac_ext, and return whether this succeeded.
2111 ac_fn_cxx_try_link ()
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 rm -f conftest.$ac_objext conftest$ac_exeext
2115 if { { ac_try="$ac_link"
2116 case "(($ac_try" in
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2119 esac
2120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121 $as_echo "$ac_try_echo"; } >&5
2122 (eval "$ac_link") 2>conftest.err
2123 ac_status=$?
2124 if test -s conftest.err; then
2125 grep -v '^ *+' conftest.err >conftest.er1
2126 cat conftest.er1 >&5
2127 mv -f conftest.er1 conftest.err
2129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130 test $ac_status = 0; } && {
2131 test -z "$ac_cxx_werror_flag" ||
2132 test ! -s conftest.err
2133 } && test -s conftest$ac_exeext && {
2134 test "$cross_compiling" = yes ||
2135 $as_test_x conftest$ac_exeext
2136 }; then :
2137 ac_retval=0
2138 else
2139 $as_echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2142 ac_retval=1
2144 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2145 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2146 # interfere with the next link command; also delete a directory that is
2147 # left behind by Apple's compiler. We do this before executing the actions.
2148 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150 return $ac_retval
2152 } # ac_fn_cxx_try_link
2153 cat >config.log <<_ACEOF
2154 This file contains any messages produced by compilers while
2155 running configure, to aid debugging if configure makes a mistake.
2157 It was created by cpplib $as_me , which was
2158 generated by GNU Autoconf 2.64. Invocation command line was
2160 $ $0 $@
2162 _ACEOF
2163 exec 5>>config.log
2165 cat <<_ASUNAME
2166 ## --------- ##
2167 ## Platform. ##
2168 ## --------- ##
2170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2182 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2187 _ASUNAME
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 $as_echo "PATH: $as_dir"
2195 done
2196 IFS=$as_save_IFS
2198 } >&5
2200 cat >&5 <<_ACEOF
2203 ## ----------- ##
2204 ## Core tests. ##
2205 ## ----------- ##
2207 _ACEOF
2210 # Keep a trace of the command line.
2211 # Strip out --no-create and --no-recursion so they do not pile up.
2212 # Strip out --silent because we don't want to record it for future runs.
2213 # Also quote any args containing shell meta-characters.
2214 # Make two passes to allow for proper duplicate-argument suppression.
2215 ac_configure_args=
2216 ac_configure_args0=
2217 ac_configure_args1=
2218 ac_must_keep_next=false
2219 for ac_pass in 1 2
2221 for ac_arg
2223 case $ac_arg in
2224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2226 | -silent | --silent | --silen | --sile | --sil)
2227 continue ;;
2228 *\'*)
2229 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2230 esac
2231 case $ac_pass in
2232 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2234 as_fn_append ac_configure_args1 " '$ac_arg'"
2235 if test $ac_must_keep_next = true; then
2236 ac_must_keep_next=false # Got value, back to normal.
2237 else
2238 case $ac_arg in
2239 *=* | --config-cache | -C | -disable-* | --disable-* \
2240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2242 | -with-* | --with-* | -without-* | --without-* | --x)
2243 case "$ac_configure_args0 " in
2244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2245 esac
2247 -* ) ac_must_keep_next=true ;;
2248 esac
2250 as_fn_append ac_configure_args " '$ac_arg'"
2252 esac
2253 done
2254 done
2255 { ac_configure_args0=; unset ac_configure_args0;}
2256 { ac_configure_args1=; unset ac_configure_args1;}
2258 # When interrupted or exit'd, cleanup temporary files, and complete
2259 # config.log. We remove comments because anyway the quotes in there
2260 # would cause problems or look ugly.
2261 # WARNING: Use '\'' to represent an apostrophe within the trap.
2262 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2263 trap 'exit_status=$?
2264 # Save into config.log some information that might help in debugging.
2266 echo
2268 cat <<\_ASBOX
2269 ## ---------------- ##
2270 ## Cache variables. ##
2271 ## ---------------- ##
2272 _ASBOX
2273 echo
2274 # The following way of writing the cache mishandles newlines in values,
2276 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2277 eval ac_val=\$$ac_var
2278 case $ac_val in #(
2279 *${as_nl}*)
2280 case $ac_var in #(
2281 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2282 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2283 esac
2284 case $ac_var in #(
2285 _ | IFS | as_nl) ;; #(
2286 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2287 *) { eval $ac_var=; unset $ac_var;} ;;
2288 esac ;;
2289 esac
2290 done
2291 (set) 2>&1 |
2292 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2293 *${as_nl}ac_space=\ *)
2294 sed -n \
2295 "s/'\''/'\''\\\\'\'''\''/g;
2296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2297 ;; #(
2299 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2301 esac |
2302 sort
2304 echo
2306 cat <<\_ASBOX
2307 ## ----------------- ##
2308 ## Output variables. ##
2309 ## ----------------- ##
2310 _ASBOX
2311 echo
2312 for ac_var in $ac_subst_vars
2314 eval ac_val=\$$ac_var
2315 case $ac_val in
2316 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317 esac
2318 $as_echo "$ac_var='\''$ac_val'\''"
2319 done | sort
2320 echo
2322 if test -n "$ac_subst_files"; then
2323 cat <<\_ASBOX
2324 ## ------------------- ##
2325 ## File substitutions. ##
2326 ## ------------------- ##
2327 _ASBOX
2328 echo
2329 for ac_var in $ac_subst_files
2331 eval ac_val=\$$ac_var
2332 case $ac_val in
2333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 esac
2335 $as_echo "$ac_var='\''$ac_val'\''"
2336 done | sort
2337 echo
2340 if test -s confdefs.h; then
2341 cat <<\_ASBOX
2342 ## ----------- ##
2343 ## confdefs.h. ##
2344 ## ----------- ##
2345 _ASBOX
2346 echo
2347 cat confdefs.h
2348 echo
2350 test "$ac_signal" != 0 &&
2351 $as_echo "$as_me: caught signal $ac_signal"
2352 $as_echo "$as_me: exit $exit_status"
2353 } >&5
2354 rm -f core *.core core.conftest.* &&
2355 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2356 exit $exit_status
2358 for ac_signal in 1 2 13 15; do
2359 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2360 done
2361 ac_signal=0
2363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2364 rm -f -r conftest* confdefs.h
2366 $as_echo "/* confdefs.h */" > confdefs.h
2368 # Predefined preprocessor variables.
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_NAME "$PACKAGE_NAME"
2372 _ACEOF
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2376 _ACEOF
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2380 _ACEOF
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_STRING "$PACKAGE_STRING"
2384 _ACEOF
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2388 _ACEOF
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_URL "$PACKAGE_URL"
2392 _ACEOF
2395 # Let the site file select an alternate cache file if it wants to.
2396 # Prefer an explicitly selected file to automatically selected ones.
2397 ac_site_file1=NONE
2398 ac_site_file2=NONE
2399 if test -n "$CONFIG_SITE"; then
2400 ac_site_file1=$CONFIG_SITE
2401 elif test "x$prefix" != xNONE; then
2402 ac_site_file1=$prefix/share/config.site
2403 ac_site_file2=$prefix/etc/config.site
2404 else
2405 ac_site_file1=$ac_default_prefix/share/config.site
2406 ac_site_file2=$ac_default_prefix/etc/config.site
2408 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2410 test "x$ac_site_file" = xNONE && continue
2411 if test -r "$ac_site_file"; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2413 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2414 sed 's/^/| /' "$ac_site_file" >&5
2415 . "$ac_site_file"
2417 done
2419 if test -r "$cache_file"; then
2420 # Some versions of bash will fail to source /dev/null (special
2421 # files actually), so we avoid doing that.
2422 if test -f "$cache_file"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2424 $as_echo "$as_me: loading cache $cache_file" >&6;}
2425 case $cache_file in
2426 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2427 *) . "./$cache_file";;
2428 esac
2430 else
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2432 $as_echo "$as_me: creating cache $cache_file" >&6;}
2433 >$cache_file
2436 # Check that the precious variables saved in the cache have kept the same
2437 # value.
2438 ac_cache_corrupted=false
2439 for ac_var in $ac_precious_vars; do
2440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2441 eval ac_new_set=\$ac_env_${ac_var}_set
2442 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2443 eval ac_new_val=\$ac_env_${ac_var}_value
2444 case $ac_old_set,$ac_new_set in
2445 set,)
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2447 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2448 ac_cache_corrupted=: ;;
2449 ,set)
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2451 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2452 ac_cache_corrupted=: ;;
2453 ,);;
2455 if test "x$ac_old_val" != "x$ac_new_val"; then
2456 # differences in whitespace do not lead to failure.
2457 ac_old_val_w=`echo x $ac_old_val`
2458 ac_new_val_w=`echo x $ac_new_val`
2459 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2461 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2462 ac_cache_corrupted=:
2463 else
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2465 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2466 eval $ac_var=\$ac_old_val
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2469 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2471 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2472 fi;;
2473 esac
2474 # Pass precious variables to config.status.
2475 if test "$ac_new_set" = set; then
2476 case $ac_new_val in
2477 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2478 *) ac_arg=$ac_var=$ac_new_val ;;
2479 esac
2480 case " $ac_configure_args " in
2481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2482 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2483 esac
2485 done
2486 if $ac_cache_corrupted; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2490 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2491 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2493 ## -------------------- ##
2494 ## Main body of script. ##
2495 ## -------------------- ##
2497 ac_ext=c
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2509 ac_aux_dir=
2510 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2511 for ac_t in install-sh install.sh shtool; do
2512 if test -f "$ac_dir/$ac_t"; then
2513 ac_aux_dir=$ac_dir
2514 ac_install_sh="$ac_aux_dir/$ac_t -c"
2515 break 2
2517 done
2518 done
2519 if test -z "$ac_aux_dir"; then
2520 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2523 # These three variables are undocumented and unsupported,
2524 # and are intended to be withdrawn in a future Autoconf release.
2525 # They can cause serious problems if a builder's source tree is in a directory
2526 # whose full name contains unusual characters.
2527 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2528 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2529 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2532 # Make sure we can run config.sub.
2533 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2534 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2537 $as_echo_n "checking build system type... " >&6; }
2538 if test "${ac_cv_build+set}" = set; then :
2539 $as_echo_n "(cached) " >&6
2540 else
2541 ac_build_alias=$build_alias
2542 test "x$ac_build_alias" = x &&
2543 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2544 test "x$ac_build_alias" = x &&
2545 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2546 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2547 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2551 $as_echo "$ac_cv_build" >&6; }
2552 case $ac_cv_build in
2553 *-*-*) ;;
2554 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2555 esac
2556 build=$ac_cv_build
2557 ac_save_IFS=$IFS; IFS='-'
2558 set x $ac_cv_build
2559 shift
2560 build_cpu=$1
2561 build_vendor=$2
2562 shift; shift
2563 # Remember, the first character of IFS is used to create $*,
2564 # except with old shells:
2565 build_os=$*
2566 IFS=$ac_save_IFS
2567 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2571 $as_echo_n "checking host system type... " >&6; }
2572 if test "${ac_cv_host+set}" = set; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 if test "x$host_alias" = x; then
2576 ac_cv_host=$ac_cv_build
2577 else
2578 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2579 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2584 $as_echo "$ac_cv_host" >&6; }
2585 case $ac_cv_host in
2586 *-*-*) ;;
2587 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2588 esac
2589 host=$ac_cv_host
2590 ac_save_IFS=$IFS; IFS='-'
2591 set x $ac_cv_host
2592 shift
2593 host_cpu=$1
2594 host_vendor=$2
2595 shift; shift
2596 # Remember, the first character of IFS is used to create $*,
2597 # except with old shells:
2598 host_os=$*
2599 IFS=$ac_save_IFS
2600 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2604 $as_echo_n "checking target system type... " >&6; }
2605 if test "${ac_cv_target+set}" = set; then :
2606 $as_echo_n "(cached) " >&6
2607 else
2608 if test "x$target_alias" = x; then
2609 ac_cv_target=$ac_cv_host
2610 else
2611 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2612 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2617 $as_echo "$ac_cv_target" >&6; }
2618 case $ac_cv_target in
2619 *-*-*) ;;
2620 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2621 esac
2622 target=$ac_cv_target
2623 ac_save_IFS=$IFS; IFS='-'
2624 set x $ac_cv_target
2625 shift
2626 target_cpu=$1
2627 target_vendor=$2
2628 shift; shift
2629 # Remember, the first character of IFS is used to create $*,
2630 # except with old shells:
2631 target_os=$*
2632 IFS=$ac_save_IFS
2633 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2636 # The aliases save the names the user supplied, while $host etc.
2637 # will get canonicalized.
2638 test -n "$target_alias" &&
2639 test "$program_prefix$program_suffix$program_transform_name" = \
2640 NONENONEs,x,x, &&
2641 program_prefix=${target_alias}-
2644 # Checks for programs.
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2646 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2647 set x ${MAKE-make}
2648 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2649 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 cat >conftest.make <<\_ACEOF
2653 SHELL = /bin/sh
2654 all:
2655 @echo '@@@%%%=$(MAKE)=@@@%%%'
2656 _ACEOF
2657 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2658 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2659 *@@@%%%=?*=@@@%%%*)
2660 eval ac_cv_prog_make_${ac_make}_set=yes;;
2662 eval ac_cv_prog_make_${ac_make}_set=no;;
2663 esac
2664 rm -f conftest.make
2666 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2668 $as_echo "yes" >&6; }
2669 SET_MAKE=
2670 else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2673 SET_MAKE="MAKE=${MAKE-make}"
2676 # Find a good install program. We prefer a C program (faster),
2677 # so one script is as good as another. But avoid the broken or
2678 # incompatible versions:
2679 # SysV /etc/install, /usr/sbin/install
2680 # SunOS /usr/etc/install
2681 # IRIX /sbin/install
2682 # AIX /bin/install
2683 # AmigaOS /C/install, which installs bootblocks on floppy discs
2684 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2685 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2686 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2687 # OS/2's system install, which has a completely different semantic
2688 # ./install, which can be erroneously created by make from ./install.sh.
2689 # Reject install programs that cannot install multiple files.
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2691 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2692 if test -z "$INSTALL"; then
2693 if test "${ac_cv_path_install+set}" = set; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 # Account for people who put trailing slashes in PATH elements.
2702 case $as_dir/ in #((
2703 ./ | .// | /[cC]/* | \
2704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2705 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2706 /usr/ucb/* ) ;;
2708 # OSF1 and SCO ODT 3.0 have their own names for install.
2709 # Don't use installbsd from OSF since it installs stuff as root
2710 # by default.
2711 for ac_prog in ginstall scoinst install; do
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2714 if test $ac_prog = install &&
2715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716 # AIX install. It has an incompatible calling convention.
2718 elif test $ac_prog = install &&
2719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2720 # program-specific install script used by HP pwplus--don't use.
2722 else
2723 rm -rf conftest.one conftest.two conftest.dir
2724 echo one > conftest.one
2725 echo two > conftest.two
2726 mkdir conftest.dir
2727 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2728 test -s conftest.one && test -s conftest.two &&
2729 test -s conftest.dir/conftest.one &&
2730 test -s conftest.dir/conftest.two
2731 then
2732 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2733 break 3
2737 done
2738 done
2740 esac
2742 done
2743 IFS=$as_save_IFS
2745 rm -rf conftest.one conftest.two conftest.dir
2748 if test "${ac_cv_path_install+set}" = set; then
2749 INSTALL=$ac_cv_path_install
2750 else
2751 # As a last resort, use the slow shell script. Don't cache a
2752 # value for INSTALL within a source directory, because that will
2753 # break other packages using the cache if that directory is
2754 # removed, or if the value is a relative name.
2755 INSTALL=$ac_install_sh
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2759 $as_echo "$INSTALL" >&6; }
2761 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2762 # It thinks the first close brace ends the variable substitution.
2763 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2765 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2767 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2769 ac_ext=c
2770 ac_cpp='$CPP $CPPFLAGS'
2771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774 if test -n "$ac_tool_prefix"; then
2775 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2776 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778 $as_echo_n "checking for $ac_word... " >&6; }
2779 if test "${ac_cv_prog_CC+set}" = set; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2796 done
2797 done
2798 IFS=$as_save_IFS
2802 CC=$ac_cv_prog_CC
2803 if test -n "$CC"; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2805 $as_echo "$CC" >&6; }
2806 else
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 $as_echo "no" >&6; }
2813 if test -z "$ac_cv_prog_CC"; then
2814 ac_ct_CC=$CC
2815 # Extract the first word of "gcc", so it can be a program name with args.
2816 set dummy gcc; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 if test -n "$ac_ct_CC"; then
2823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832 ac_cv_prog_ac_ct_CC="gcc"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2836 done
2837 done
2838 IFS=$as_save_IFS
2842 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2843 if test -n "$ac_ct_CC"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2845 $as_echo "$ac_ct_CC" >&6; }
2846 else
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2851 if test "x$ac_ct_CC" = x; then
2852 CC=""
2853 else
2854 case $cross_compiling:$ac_tool_warned in
2855 yes:)
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2858 ac_tool_warned=yes ;;
2859 esac
2860 CC=$ac_ct_CC
2862 else
2863 CC="$ac_cv_prog_CC"
2866 if test -z "$CC"; then
2867 if test -n "$ac_tool_prefix"; then
2868 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2869 set dummy ${ac_tool_prefix}cc; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if test "${ac_cv_prog_CC+set}" = set; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2885 ac_cv_prog_CC="${ac_tool_prefix}cc"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2889 done
2890 done
2891 IFS=$as_save_IFS
2895 CC=$ac_cv_prog_CC
2896 if test -n "$CC"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2898 $as_echo "$CC" >&6; }
2899 else
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2907 if test -z "$CC"; then
2908 # Extract the first word of "cc", so it can be a program name with args.
2909 set dummy cc; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if test "${ac_cv_prog_CC+set}" = set; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2917 else
2918 ac_prog_rejected=no
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2927 ac_prog_rejected=yes
2928 continue
2930 ac_cv_prog_CC="cc"
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2934 done
2935 done
2936 IFS=$as_save_IFS
2938 if test $ac_prog_rejected = yes; then
2939 # We found a bogon in the path, so make sure we never use it.
2940 set dummy $ac_cv_prog_CC
2941 shift
2942 if test $# != 0; then
2943 # We chose a different compiler from the bogus one.
2944 # However, it has the same basename, so the bogon will be chosen
2945 # first if we set CC to just the basename; use the full file name.
2946 shift
2947 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2952 CC=$ac_cv_prog_CC
2953 if test -n "$CC"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2955 $as_echo "$CC" >&6; }
2956 else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2963 if test -z "$CC"; then
2964 if test -n "$ac_tool_prefix"; then
2965 for ac_prog in cl.exe
2967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if test "${ac_cv_prog_CC+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
2973 else
2974 if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2988 done
2989 done
2990 IFS=$as_save_IFS
2994 CC=$ac_cv_prog_CC
2995 if test -n "$CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997 $as_echo "$CC" >&6; }
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3004 test -n "$CC" && break
3005 done
3007 if test -z "$CC"; then
3008 ac_ct_CC=$CC
3009 for ac_prog in cl.exe
3011 # Extract the first word of "$ac_prog", so it can be a program name with args.
3012 set dummy $ac_prog; ac_word=$2
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 $as_echo_n "checking for $ac_word... " >&6; }
3015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 if test -n "$ac_ct_CC"; then
3019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3020 else
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3028 ac_cv_prog_ac_ct_CC="$ac_prog"
3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3032 done
3033 done
3034 IFS=$as_save_IFS
3038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3039 if test -n "$ac_ct_CC"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3041 $as_echo "$ac_ct_CC" >&6; }
3042 else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3048 test -n "$ac_ct_CC" && break
3049 done
3051 if test "x$ac_ct_CC" = x; then
3052 CC=""
3053 else
3054 case $cross_compiling:$ac_tool_warned in
3055 yes:)
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3058 ac_tool_warned=yes ;;
3059 esac
3060 CC=$ac_ct_CC
3067 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3069 as_fn_error "no acceptable C compiler found in \$PATH
3070 See \`config.log' for more details." "$LINENO" 5; }
3072 # Provide some information about the compiler.
3073 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3074 set X $ac_compile
3075 ac_compiler=$2
3076 for ac_option in --version -v -V -qversion; do
3077 { { ac_try="$ac_compiler $ac_option >&5"
3078 case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081 esac
3082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083 $as_echo "$ac_try_echo"; } >&5
3084 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3085 ac_status=$?
3086 if test -s conftest.err; then
3087 sed '10a\
3088 ... rest of stderr output deleted ...
3089 10q' conftest.err >conftest.er1
3090 cat conftest.er1 >&5
3091 rm -f conftest.er1 conftest.err
3093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }
3095 done
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3101 main ()
3105 return 0;
3107 _ACEOF
3108 ac_clean_files_save=$ac_clean_files
3109 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3110 # Try to create an executable without -o first, disregard a.out.
3111 # It will help us diagnose broken compilers, and finding out an intuition
3112 # of exeext.
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3114 $as_echo_n "checking for C compiler default output file name... " >&6; }
3115 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3117 # The possible output files:
3118 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3120 ac_rmfiles=
3121 for ac_file in $ac_files
3123 case $ac_file in
3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3125 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3126 esac
3127 done
3128 rm -f $ac_rmfiles
3130 if { { ac_try="$ac_link_default"
3131 case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134 esac
3135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3136 $as_echo "$ac_try_echo"; } >&5
3137 (eval "$ac_link_default") 2>&5
3138 ac_status=$?
3139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3140 test $ac_status = 0; }; then :
3141 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3142 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3143 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3144 # so that the user can short-circuit this test for compilers unknown to
3145 # Autoconf.
3146 for ac_file in $ac_files ''
3148 test -f "$ac_file" || continue
3149 case $ac_file in
3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3152 [ab].out )
3153 # We found the default executable, but exeext='' is most
3154 # certainly right.
3155 break;;
3156 *.* )
3157 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3158 then :; else
3159 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3161 # We set ac_cv_exeext here because the later test for it is not
3162 # safe: cross compilers may not add the suffix if given an `-o'
3163 # argument, so we may need to know it at that point already.
3164 # Even if this section looks crufty: it has the advantage of
3165 # actually working.
3166 break;;
3168 break;;
3169 esac
3170 done
3171 test "$ac_cv_exeext" = no && ac_cv_exeext=
3173 else
3174 ac_file=''
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3177 $as_echo "$ac_file" >&6; }
3178 if test -z "$ac_file"; then :
3179 $as_echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 { as_fn_set_status 77
3185 as_fn_error "C compiler cannot create executables
3186 See \`config.log' for more details." "$LINENO" 5; }; }
3188 ac_exeext=$ac_cv_exeext
3190 # Check that the compiler produces executables we can run. If not, either
3191 # the compiler is broken, or we cross compile.
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3193 $as_echo_n "checking whether the C compiler works... " >&6; }
3194 # If not cross compiling, check that we can run a simple program.
3195 if test "$cross_compiling" != yes; then
3196 if { ac_try='./$ac_file'
3197 { { case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_try") 2>&5
3204 ac_status=$?
3205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }; }; then
3207 cross_compiling=no
3208 else
3209 if test "$cross_compiling" = maybe; then
3210 cross_compiling=yes
3211 else
3212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 as_fn_error "cannot run C compiled programs.
3215 If you meant to cross compile, use \`--host'.
3216 See \`config.log' for more details." "$LINENO" 5; }
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3221 $as_echo "yes" >&6; }
3223 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3224 ac_clean_files=$ac_clean_files_save
3225 # Check that the compiler produces executables we can run. If not, either
3226 # the compiler is broken, or we cross compile.
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3228 $as_echo_n "checking whether we are cross compiling... " >&6; }
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3230 $as_echo "$cross_compiling" >&6; }
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3233 $as_echo_n "checking for suffix of executables... " >&6; }
3234 if { { ac_try="$ac_link"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_link") 2>&5
3242 ac_status=$?
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }; then :
3245 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3246 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3247 # work properly (i.e., refer to `conftest.exe'), while it won't with
3248 # `rm'.
3249 for ac_file in conftest.exe conftest conftest.*; do
3250 test -f "$ac_file" || continue
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3253 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254 break;;
3255 * ) break;;
3256 esac
3257 done
3258 else
3259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error "cannot compute suffix of executables: cannot compile and link
3262 See \`config.log' for more details." "$LINENO" 5; }
3264 rm -f conftest$ac_cv_exeext
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3266 $as_echo "$ac_cv_exeext" >&6; }
3268 rm -f conftest.$ac_ext
3269 EXEEXT=$ac_cv_exeext
3270 ac_exeext=$EXEEXT
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3272 $as_echo_n "checking for suffix of object files... " >&6; }
3273 if test "${ac_cv_objext+set}" = set; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3280 main ()
3284 return 0;
3286 _ACEOF
3287 rm -f conftest.o conftest.obj
3288 if { { ac_try="$ac_compile"
3289 case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292 esac
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_compile") 2>&5
3296 ac_status=$?
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }; then :
3299 for ac_file in conftest.o conftest.obj conftest.*; do
3300 test -f "$ac_file" || continue;
3301 case $ac_file in
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3303 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3304 break;;
3305 esac
3306 done
3307 else
3308 $as_echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error "cannot compute suffix of object files: cannot compile
3314 See \`config.log' for more details." "$LINENO" 5; }
3316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3319 $as_echo "$ac_cv_objext" >&6; }
3320 OBJEXT=$ac_cv_objext
3321 ac_objext=$OBJEXT
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3323 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3324 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3331 main ()
3333 #ifndef __GNUC__
3334 choke me
3335 #endif
3338 return 0;
3340 _ACEOF
3341 if ac_fn_c_try_compile "$LINENO"; then :
3342 ac_compiler_gnu=yes
3343 else
3344 ac_compiler_gnu=no
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3351 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3352 if test $ac_compiler_gnu = yes; then
3353 GCC=yes
3354 else
3355 GCC=
3357 ac_test_CFLAGS=${CFLAGS+set}
3358 ac_save_CFLAGS=$CFLAGS
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3360 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3361 if test "${ac_cv_prog_cc_g+set}" = set; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 ac_save_c_werror_flag=$ac_c_werror_flag
3365 ac_c_werror_flag=yes
3366 ac_cv_prog_cc_g=no
3367 CFLAGS="-g"
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3372 main ()
3376 return 0;
3378 _ACEOF
3379 if ac_fn_c_try_compile "$LINENO"; then :
3380 ac_cv_prog_cc_g=yes
3381 else
3382 CFLAGS=""
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3387 main ()
3391 return 0;
3393 _ACEOF
3394 if ac_fn_c_try_compile "$LINENO"; then :
3396 else
3397 ac_c_werror_flag=$ac_save_c_werror_flag
3398 CFLAGS="-g"
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3403 main ()
3407 return 0;
3409 _ACEOF
3410 if ac_fn_c_try_compile "$LINENO"; then :
3411 ac_cv_prog_cc_g=yes
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418 ac_c_werror_flag=$ac_save_c_werror_flag
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3421 $as_echo "$ac_cv_prog_cc_g" >&6; }
3422 if test "$ac_test_CFLAGS" = set; then
3423 CFLAGS=$ac_save_CFLAGS
3424 elif test $ac_cv_prog_cc_g = yes; then
3425 if test "$GCC" = yes; then
3426 CFLAGS="-g -O2"
3427 else
3428 CFLAGS="-g"
3430 else
3431 if test "$GCC" = yes; then
3432 CFLAGS="-O2"
3433 else
3434 CFLAGS=
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3438 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3439 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 ac_cv_prog_cc_c89=no
3443 ac_save_CC=$CC
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3446 #include <stdarg.h>
3447 #include <stdio.h>
3448 #include <sys/types.h>
3449 #include <sys/stat.h>
3450 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3451 struct buf { int x; };
3452 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3453 static char *e (p, i)
3454 char **p;
3455 int i;
3457 return p[i];
3459 static char *f (char * (*g) (char **, int), char **p, ...)
3461 char *s;
3462 va_list v;
3463 va_start (v,p);
3464 s = g (p, va_arg (v,int));
3465 va_end (v);
3466 return s;
3469 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3470 function prototypes and stuff, but not '\xHH' hex character constants.
3471 These don't provoke an error unfortunately, instead are silently treated
3472 as 'x'. The following induces an error, until -std is added to get
3473 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3474 array size at least. It's necessary to write '\x00'==0 to get something
3475 that's true only with -std. */
3476 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3478 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3479 inside strings and character constants. */
3480 #define FOO(x) 'x'
3481 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3483 int test (int i, double x);
3484 struct s1 {int (*f) (int a);};
3485 struct s2 {int (*f) (double a);};
3486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3487 int argc;
3488 char **argv;
3490 main ()
3492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3494 return 0;
3496 _ACEOF
3497 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3498 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3500 CC="$ac_save_CC $ac_arg"
3501 if ac_fn_c_try_compile "$LINENO"; then :
3502 ac_cv_prog_cc_c89=$ac_arg
3504 rm -f core conftest.err conftest.$ac_objext
3505 test "x$ac_cv_prog_cc_c89" != "xno" && break
3506 done
3507 rm -f conftest.$ac_ext
3508 CC=$ac_save_CC
3511 # AC_CACHE_VAL
3512 case "x$ac_cv_prog_cc_c89" in
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3515 $as_echo "none needed" >&6; } ;;
3516 xno)
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3518 $as_echo "unsupported" >&6; } ;;
3520 CC="$CC $ac_cv_prog_cc_c89"
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3522 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3523 esac
3524 if test "x$ac_cv_prog_cc_c89" != xno; then :
3528 ac_ext=c
3529 ac_cpp='$CPP $CPPFLAGS'
3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 ac_ext=cpp
3535 ac_cpp='$CXXCPP $CPPFLAGS'
3536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3539 if test -z "$CXX"; then
3540 if test -n "$CCC"; then
3541 CXX=$CCC
3542 else
3543 if test -n "$ac_tool_prefix"; then
3544 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_CXX+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 if test -n "$CXX"; then
3554 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3555 else
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 break 2
3567 done
3568 done
3569 IFS=$as_save_IFS
3573 CXX=$ac_cv_prog_CXX
3574 if test -n "$CXX"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3576 $as_echo "$CXX" >&6; }
3577 else
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3583 test -n "$CXX" && break
3584 done
3586 if test -z "$CXX"; then
3587 ac_ct_CXX=$CXX
3588 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3590 # Extract the first word of "$ac_prog", so it can be a program name with args.
3591 set dummy $ac_prog; ac_word=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 if test -n "$ac_ct_CXX"; then
3598 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3603 IFS=$as_save_IFS
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3607 ac_cv_prog_ac_ct_CXX="$ac_prog"
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 break 2
3611 done
3612 done
3613 IFS=$as_save_IFS
3617 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3618 if test -n "$ac_ct_CXX"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3620 $as_echo "$ac_ct_CXX" >&6; }
3621 else
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3627 test -n "$ac_ct_CXX" && break
3628 done
3630 if test "x$ac_ct_CXX" = x; then
3631 CXX="g++"
3632 else
3633 case $cross_compiling:$ac_tool_warned in
3634 yes:)
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3637 ac_tool_warned=yes ;;
3638 esac
3639 CXX=$ac_ct_CXX
3645 # Provide some information about the compiler.
3646 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3647 set X $ac_compile
3648 ac_compiler=$2
3649 for ac_option in --version -v -V -qversion; do
3650 { { ac_try="$ac_compiler $ac_option >&5"
3651 case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3658 ac_status=$?
3659 if test -s conftest.err; then
3660 sed '10a\
3661 ... rest of stderr output deleted ...
3662 10q' conftest.err >conftest.er1
3663 cat conftest.er1 >&5
3664 rm -f conftest.er1 conftest.err
3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667 test $ac_status = 0; }
3668 done
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3671 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3672 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3679 main ()
3681 #ifndef __GNUC__
3682 choke me
3683 #endif
3686 return 0;
3688 _ACEOF
3689 if ac_fn_cxx_try_compile "$LINENO"; then :
3690 ac_compiler_gnu=yes
3691 else
3692 ac_compiler_gnu=no
3694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3699 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3700 if test $ac_compiler_gnu = yes; then
3701 GXX=yes
3702 else
3703 GXX=
3705 ac_test_CXXFLAGS=${CXXFLAGS+set}
3706 ac_save_CXXFLAGS=$CXXFLAGS
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3708 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3709 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3713 ac_cxx_werror_flag=yes
3714 ac_cv_prog_cxx_g=no
3715 CXXFLAGS="-g"
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3720 main ()
3724 return 0;
3726 _ACEOF
3727 if ac_fn_cxx_try_compile "$LINENO"; then :
3728 ac_cv_prog_cxx_g=yes
3729 else
3730 CXXFLAGS=""
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3735 main ()
3739 return 0;
3741 _ACEOF
3742 if ac_fn_cxx_try_compile "$LINENO"; then :
3744 else
3745 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3746 CXXFLAGS="-g"
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3751 main ()
3755 return 0;
3757 _ACEOF
3758 if ac_fn_cxx_try_compile "$LINENO"; then :
3759 ac_cv_prog_cxx_g=yes
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3769 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3770 if test "$ac_test_CXXFLAGS" = set; then
3771 CXXFLAGS=$ac_save_CXXFLAGS
3772 elif test $ac_cv_prog_cxx_g = yes; then
3773 if test "$GXX" = yes; then
3774 CXXFLAGS="-g -O2"
3775 else
3776 CXXFLAGS="-g"
3778 else
3779 if test "$GXX" = yes; then
3780 CXXFLAGS="-O2"
3781 else
3782 CXXFLAGS=
3785 ac_ext=c
3786 ac_cpp='$CPP $CPPFLAGS'
3787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791 if test -n "$ac_tool_prefix"; then
3792 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3793 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 $as_echo_n "checking for $ac_word... " >&6; }
3796 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3797 $as_echo_n "(cached) " >&6
3798 else
3799 if test -n "$RANLIB"; then
3800 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3801 else
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 break 2
3813 done
3814 done
3815 IFS=$as_save_IFS
3819 RANLIB=$ac_cv_prog_RANLIB
3820 if test -n "$RANLIB"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3822 $as_echo "$RANLIB" >&6; }
3823 else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3830 if test -z "$ac_cv_prog_RANLIB"; then
3831 ac_ct_RANLIB=$RANLIB
3832 # Extract the first word of "ranlib", so it can be a program name with args.
3833 set dummy ranlib; ac_word=$2
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835 $as_echo_n "checking for $ac_word... " >&6; }
3836 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 if test -n "$ac_ct_RANLIB"; then
3840 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3841 else
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3845 IFS=$as_save_IFS
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3849 ac_cv_prog_ac_ct_RANLIB="ranlib"
3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 break 2
3853 done
3854 done
3855 IFS=$as_save_IFS
3859 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3860 if test -n "$ac_ct_RANLIB"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3862 $as_echo "$ac_ct_RANLIB" >&6; }
3863 else
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865 $as_echo "no" >&6; }
3868 if test "x$ac_ct_RANLIB" = x; then
3869 RANLIB=":"
3870 else
3871 case $cross_compiling:$ac_tool_warned in
3872 yes:)
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3875 ac_tool_warned=yes ;;
3876 esac
3877 RANLIB=$ac_ct_RANLIB
3879 else
3880 RANLIB="$ac_cv_prog_RANLIB"
3885 ac_ext=c
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3891 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3892 # On Suns, sometimes $CPP names a directory.
3893 if test -n "$CPP" && test -d "$CPP"; then
3894 CPP=
3896 if test -z "$CPP"; then
3897 if test "${ac_cv_prog_CPP+set}" = set; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 # Double quotes because CPP needs to be expanded
3901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3903 ac_preproc_ok=false
3904 for ac_c_preproc_warn_flag in '' yes
3906 # Use a header file that comes with gcc, so configuring glibc
3907 # with a fresh cross-compiler works.
3908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3909 # <limits.h> exists even on freestanding compilers.
3910 # On the NeXT, cc -E runs the code through the compiler's parser,
3911 # not just through cpp. "Syntax error" is here to catch this case.
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3914 #ifdef __STDC__
3915 # include <limits.h>
3916 #else
3917 # include <assert.h>
3918 #endif
3919 Syntax error
3920 _ACEOF
3921 if ac_fn_c_try_cpp "$LINENO"; then :
3923 else
3924 # Broken: fails on valid input.
3925 continue
3927 rm -f conftest.err conftest.$ac_ext
3929 # OK, works on sane cases. Now check whether nonexistent headers
3930 # can be detected and how.
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3933 #include <ac_nonexistent.h>
3934 _ACEOF
3935 if ac_fn_c_try_cpp "$LINENO"; then :
3936 # Broken: success on invalid input.
3937 continue
3938 else
3939 # Passes both tests.
3940 ac_preproc_ok=:
3941 break
3943 rm -f conftest.err conftest.$ac_ext
3945 done
3946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3947 rm -f conftest.err conftest.$ac_ext
3948 if $ac_preproc_ok; then :
3949 break
3952 done
3953 ac_cv_prog_CPP=$CPP
3956 CPP=$ac_cv_prog_CPP
3957 else
3958 ac_cv_prog_CPP=$CPP
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3961 $as_echo "$CPP" >&6; }
3962 ac_preproc_ok=false
3963 for ac_c_preproc_warn_flag in '' yes
3965 # Use a header file that comes with gcc, so configuring glibc
3966 # with a fresh cross-compiler works.
3967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3968 # <limits.h> exists even on freestanding compilers.
3969 # On the NeXT, cc -E runs the code through the compiler's parser,
3970 # not just through cpp. "Syntax error" is here to catch this case.
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3973 #ifdef __STDC__
3974 # include <limits.h>
3975 #else
3976 # include <assert.h>
3977 #endif
3978 Syntax error
3979 _ACEOF
3980 if ac_fn_c_try_cpp "$LINENO"; then :
3982 else
3983 # Broken: fails on valid input.
3984 continue
3986 rm -f conftest.err conftest.$ac_ext
3988 # OK, works on sane cases. Now check whether nonexistent headers
3989 # can be detected and how.
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992 #include <ac_nonexistent.h>
3993 _ACEOF
3994 if ac_fn_c_try_cpp "$LINENO"; then :
3995 # Broken: success on invalid input.
3996 continue
3997 else
3998 # Passes both tests.
3999 ac_preproc_ok=:
4000 break
4002 rm -f conftest.err conftest.$ac_ext
4004 done
4005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4006 rm -f conftest.err conftest.$ac_ext
4007 if $ac_preproc_ok; then :
4009 else
4010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4012 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4013 See \`config.log' for more details." "$LINENO" 5; }
4016 ac_ext=c
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4024 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4025 if test "${ac_cv_path_GREP+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
4027 else
4028 if test -z "$GREP"; then
4029 ac_path_GREP_found=false
4030 # Loop through the user's path and test for each of PROGNAME-LIST
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_prog in grep ggrep; do
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4039 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4040 # Check for GNU ac_path_GREP and select it if it is found.
4041 # Check for GNU $ac_path_GREP
4042 case `"$ac_path_GREP" --version 2>&1` in
4043 *GNU*)
4044 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4046 ac_count=0
4047 $as_echo_n 0123456789 >"conftest.in"
4048 while :
4050 cat "conftest.in" "conftest.in" >"conftest.tmp"
4051 mv "conftest.tmp" "conftest.in"
4052 cp "conftest.in" "conftest.nl"
4053 $as_echo 'GREP' >> "conftest.nl"
4054 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4056 as_fn_arith $ac_count + 1 && ac_count=$as_val
4057 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4058 # Best one so far, save it but keep looking for a better one
4059 ac_cv_path_GREP="$ac_path_GREP"
4060 ac_path_GREP_max=$ac_count
4062 # 10*(2^10) chars as input seems more than enough
4063 test $ac_count -gt 10 && break
4064 done
4065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4066 esac
4068 $ac_path_GREP_found && break 3
4069 done
4070 done
4071 done
4072 IFS=$as_save_IFS
4073 if test -z "$ac_cv_path_GREP"; then
4074 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4076 else
4077 ac_cv_path_GREP=$GREP
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4082 $as_echo "$ac_cv_path_GREP" >&6; }
4083 GREP="$ac_cv_path_GREP"
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4087 $as_echo_n "checking for egrep... " >&6; }
4088 if test "${ac_cv_path_EGREP+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4092 then ac_cv_path_EGREP="$GREP -E"
4093 else
4094 if test -z "$EGREP"; then
4095 ac_path_EGREP_found=false
4096 # Loop through the user's path and test for each of PROGNAME-LIST
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for ac_prog in egrep; do
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4105 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4106 # Check for GNU ac_path_EGREP and select it if it is found.
4107 # Check for GNU $ac_path_EGREP
4108 case `"$ac_path_EGREP" --version 2>&1` in
4109 *GNU*)
4110 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4112 ac_count=0
4113 $as_echo_n 0123456789 >"conftest.in"
4114 while :
4116 cat "conftest.in" "conftest.in" >"conftest.tmp"
4117 mv "conftest.tmp" "conftest.in"
4118 cp "conftest.in" "conftest.nl"
4119 $as_echo 'EGREP' >> "conftest.nl"
4120 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4122 as_fn_arith $ac_count + 1 && ac_count=$as_val
4123 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4124 # Best one so far, save it but keep looking for a better one
4125 ac_cv_path_EGREP="$ac_path_EGREP"
4126 ac_path_EGREP_max=$ac_count
4128 # 10*(2^10) chars as input seems more than enough
4129 test $ac_count -gt 10 && break
4130 done
4131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4132 esac
4134 $ac_path_EGREP_found && break 3
4135 done
4136 done
4137 done
4138 IFS=$as_save_IFS
4139 if test -z "$ac_cv_path_EGREP"; then
4140 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4142 else
4143 ac_cv_path_EGREP=$EGREP
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4149 $as_echo "$ac_cv_path_EGREP" >&6; }
4150 EGREP="$ac_cv_path_EGREP"
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4154 $as_echo_n "checking for ANSI C header files... " >&6; }
4155 if test "${ac_cv_header_stdc+set}" = set; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160 #include <stdlib.h>
4161 #include <stdarg.h>
4162 #include <string.h>
4163 #include <float.h>
4166 main ()
4170 return 0;
4172 _ACEOF
4173 if ac_fn_c_try_compile "$LINENO"; then :
4174 ac_cv_header_stdc=yes
4175 else
4176 ac_cv_header_stdc=no
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 if test $ac_cv_header_stdc = yes; then
4181 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4184 #include <string.h>
4186 _ACEOF
4187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4188 $EGREP "memchr" >/dev/null 2>&1; then :
4190 else
4191 ac_cv_header_stdc=no
4193 rm -f conftest*
4197 if test $ac_cv_header_stdc = yes; then
4198 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 #include <stdlib.h>
4203 _ACEOF
4204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4205 $EGREP "free" >/dev/null 2>&1; then :
4207 else
4208 ac_cv_header_stdc=no
4210 rm -f conftest*
4214 if test $ac_cv_header_stdc = yes; then
4215 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4216 if test "$cross_compiling" = yes; then :
4218 else
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4221 #include <ctype.h>
4222 #include <stdlib.h>
4223 #if ((' ' & 0x0FF) == 0x020)
4224 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4225 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4226 #else
4227 # define ISLOWER(c) \
4228 (('a' <= (c) && (c) <= 'i') \
4229 || ('j' <= (c) && (c) <= 'r') \
4230 || ('s' <= (c) && (c) <= 'z'))
4231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4232 #endif
4234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4236 main ()
4238 int i;
4239 for (i = 0; i < 256; i++)
4240 if (XOR (islower (i), ISLOWER (i))
4241 || toupper (i) != TOUPPER (i))
4242 return 2;
4243 return 0;
4245 _ACEOF
4246 if ac_fn_c_try_run "$LINENO"; then :
4248 else
4249 ac_cv_header_stdc=no
4251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4252 conftest.$ac_objext conftest.beam conftest.$ac_ext
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4258 $as_echo "$ac_cv_header_stdc" >&6; }
4259 if test $ac_cv_header_stdc = yes; then
4261 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4265 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4266 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4267 inttypes.h stdint.h unistd.h
4268 do :
4269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4270 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4272 eval as_val=\$$as_ac_Header
4273 if test "x$as_val" = x""yes; then :
4274 cat >>confdefs.h <<_ACEOF
4275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4276 _ACEOF
4280 done
4284 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4285 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4286 MINIX=yes
4287 else
4288 MINIX=
4292 if test "$MINIX" = yes; then
4294 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4297 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4300 $as_echo "#define _MINIX 1" >>confdefs.h
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4306 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4307 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4313 # define __EXTENSIONS__ 1
4314 $ac_includes_default
4316 main ()
4320 return 0;
4322 _ACEOF
4323 if ac_fn_c_try_compile "$LINENO"; then :
4324 ac_cv_safe_to_define___extensions__=yes
4325 else
4326 ac_cv_safe_to_define___extensions__=no
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4331 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4332 test $ac_cv_safe_to_define___extensions__ = yes &&
4333 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4335 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4337 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4339 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4341 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4344 # Check whether --enable-largefile was given.
4345 if test "${enable_largefile+set}" = set; then :
4346 enableval=$enable_largefile;
4349 if test "$enable_largefile" != no; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4352 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4353 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 ac_cv_sys_largefile_CC=no
4357 if test "$GCC" != yes; then
4358 ac_save_CC=$CC
4359 while :; do
4360 # IRIX 6.2 and later do not support large files by default,
4361 # so use the C compiler's -n32 option if that helps.
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4364 #include <sys/types.h>
4365 /* Check that off_t can represent 2**63 - 1 correctly.
4366 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4367 since some C++ compilers masquerading as C compilers
4368 incorrectly reject 9223372036854775807. */
4369 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4370 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4371 && LARGE_OFF_T % 2147483647 == 1)
4372 ? 1 : -1];
4374 main ()
4378 return 0;
4380 _ACEOF
4381 if ac_fn_c_try_compile "$LINENO"; then :
4382 break
4384 rm -f core conftest.err conftest.$ac_objext
4385 CC="$CC -n32"
4386 if ac_fn_c_try_compile "$LINENO"; then :
4387 ac_cv_sys_largefile_CC=' -n32'; break
4389 rm -f core conftest.err conftest.$ac_objext
4390 break
4391 done
4392 CC=$ac_save_CC
4393 rm -f conftest.$ac_ext
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4397 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4398 if test "$ac_cv_sys_largefile_CC" != no; then
4399 CC=$CC$ac_cv_sys_largefile_CC
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4403 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4404 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 while :; do
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4410 #include <sys/types.h>
4411 /* Check that off_t can represent 2**63 - 1 correctly.
4412 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4413 since some C++ compilers masquerading as C compilers
4414 incorrectly reject 9223372036854775807. */
4415 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4416 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4417 && LARGE_OFF_T % 2147483647 == 1)
4418 ? 1 : -1];
4420 main ()
4424 return 0;
4426 _ACEOF
4427 if ac_fn_c_try_compile "$LINENO"; then :
4428 ac_cv_sys_file_offset_bits=no; break
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4433 #define _FILE_OFFSET_BITS 64
4434 #include <sys/types.h>
4435 /* Check that off_t can represent 2**63 - 1 correctly.
4436 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4437 since some C++ compilers masquerading as C compilers
4438 incorrectly reject 9223372036854775807. */
4439 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4440 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4441 && LARGE_OFF_T % 2147483647 == 1)
4442 ? 1 : -1];
4444 main ()
4448 return 0;
4450 _ACEOF
4451 if ac_fn_c_try_compile "$LINENO"; then :
4452 ac_cv_sys_file_offset_bits=64; break
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455 ac_cv_sys_file_offset_bits=unknown
4456 break
4457 done
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4460 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4461 case $ac_cv_sys_file_offset_bits in #(
4462 no | unknown) ;;
4464 cat >>confdefs.h <<_ACEOF
4465 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4466 _ACEOF
4468 esac
4469 rm -rf conftest*
4470 if test $ac_cv_sys_file_offset_bits = unknown; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4472 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4473 if test "${ac_cv_sys_large_files+set}" = set; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 while :; do
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4479 #include <sys/types.h>
4480 /* Check that off_t can represent 2**63 - 1 correctly.
4481 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4482 since some C++ compilers masquerading as C compilers
4483 incorrectly reject 9223372036854775807. */
4484 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4485 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4486 && LARGE_OFF_T % 2147483647 == 1)
4487 ? 1 : -1];
4489 main ()
4493 return 0;
4495 _ACEOF
4496 if ac_fn_c_try_compile "$LINENO"; then :
4497 ac_cv_sys_large_files=no; break
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4502 #define _LARGE_FILES 1
4503 #include <sys/types.h>
4504 /* Check that off_t can represent 2**63 - 1 correctly.
4505 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4506 since some C++ compilers masquerading as C compilers
4507 incorrectly reject 9223372036854775807. */
4508 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4509 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4510 && LARGE_OFF_T % 2147483647 == 1)
4511 ? 1 : -1];
4513 main ()
4517 return 0;
4519 _ACEOF
4520 if ac_fn_c_try_compile "$LINENO"; then :
4521 ac_cv_sys_large_files=1; break
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 ac_cv_sys_large_files=unknown
4525 break
4526 done
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4529 $as_echo "$ac_cv_sys_large_files" >&6; }
4530 case $ac_cv_sys_large_files in #(
4531 no | unknown) ;;
4533 cat >>confdefs.h <<_ACEOF
4534 #define _LARGE_FILES $ac_cv_sys_large_files
4535 _ACEOF
4537 esac
4538 rm -rf conftest*
4543 # See if we are building gcc with C++.
4544 # Do this early so setting lang to C++ affects following tests
4545 # Check whether --enable-build-with-cxx was given.
4546 if test "${enable_build_with_cxx+set}" = set; then :
4547 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
4548 else
4549 ENABLE_BUILD_WITH_CXX=no
4554 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4555 for ac_prog in aclocal
4557 # Extract the first word of "$ac_prog", so it can be a program name with args.
4558 set dummy $ac_prog; ac_word=$2
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 if test -n "$ACLOCAL"; then
4565 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
4566 else
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4574 ac_cv_prog_ACLOCAL="$ac_prog"
4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 break 2
4578 done
4579 done
4580 IFS=$as_save_IFS
4584 ACLOCAL=$ac_cv_prog_ACLOCAL
4585 if test -n "$ACLOCAL"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4587 $as_echo "$ACLOCAL" >&6; }
4588 else
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4594 test -n "$ACLOCAL" && break
4595 done
4596 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
4598 for ac_prog in autoconf
4600 # Extract the first word of "$ac_prog", so it can be a program name with args.
4601 set dummy $ac_prog; ac_word=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
4606 else
4607 if test -n "$AUTOCONF"; then
4608 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4609 else
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_prog_AUTOCONF="$ac_prog"
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 break 2
4621 done
4622 done
4623 IFS=$as_save_IFS
4627 AUTOCONF=$ac_cv_prog_AUTOCONF
4628 if test -n "$AUTOCONF"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4630 $as_echo "$AUTOCONF" >&6; }
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4637 test -n "$AUTOCONF" && break
4638 done
4639 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
4641 for ac_prog in autoheader
4643 # Extract the first word of "$ac_prog", so it can be a program name with args.
4644 set dummy $ac_prog; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if test -n "$AUTOHEADER"; then
4651 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_AUTOHEADER="$ac_prog"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4664 done
4665 done
4666 IFS=$as_save_IFS
4670 AUTOHEADER=$ac_cv_prog_AUTOHEADER
4671 if test -n "$AUTOHEADER"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4673 $as_echo "$AUTOHEADER" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4680 test -n "$AUTOHEADER" && break
4681 done
4682 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
4685 # Figure out what compiler warnings we can enable.
4686 # See config/warnings.m4 for details.
4688 warn=
4689 save_CFLAGS="$CFLAGS"
4690 for option in -W -Wall -Wwrite-strings \
4691 -Wmissing-format-attribute; do
4692 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4695 $as_echo_n "checking whether $CC supports $option... " >&6; }
4696 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 CFLAGS="$option"
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4704 main ()
4708 return 0;
4710 _ACEOF
4711 if ac_fn_c_try_compile "$LINENO"; then :
4712 eval "$as_acx_Woption=yes"
4713 else
4714 eval "$as_acx_Woption=no"
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 eval ac_res=\$$as_acx_Woption
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4721 $as_echo "$ac_res" >&6; }
4722 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4723 warn="$warn${warn:+ }$option"
4725 done
4726 CFLAGS="$save_CFLAGS"
4728 c_warn=
4729 save_CFLAGS="$CFLAGS"
4730 for option in -Wstrict-prototypes -Wmissing-prototypes \
4731 -Wold-style-definition -Wc++-compat; do
4732 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4735 $as_echo_n "checking whether $CC supports $option... " >&6; }
4736 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 CFLAGS="$option"
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4744 main ()
4748 return 0;
4750 _ACEOF
4751 if ac_fn_c_try_compile "$LINENO"; then :
4752 eval "$as_acx_Woption=yes"
4753 else
4754 eval "$as_acx_Woption=no"
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759 eval ac_res=\$$as_acx_Woption
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4761 $as_echo "$ac_res" >&6; }
4762 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4763 c_warn="$c_warn${c_warn:+ }$option"
4765 done
4766 CFLAGS="$save_CFLAGS"
4768 WARN_PEDANTIC=
4769 if test "$GCC" = yes; then :
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long" >&5
4771 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long... " >&6; }
4772 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 save_CFLAGS="$CFLAGS"
4776 CFLAGS="-pedantic -Wno-long-long"
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4781 main ()
4785 return 0;
4787 _ACEOF
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789 acx_cv_prog_cc_pedantic__Wno_long_long=yes
4790 else
4791 acx_cv_prog_cc_pedantic__Wno_long_long=no
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 CFLAGS="$save_CFLAGS"
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
4797 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long" >&6; }
4798 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then :
4799 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
4805 # Only enable with --enable-werror-always until existing warnings are
4806 # corrected.
4807 WERROR=
4808 # Check whether --enable-werror-always was given.
4809 if test "${enable_werror_always+set}" = set; then :
4810 enableval=$enable_werror_always;
4811 else
4812 enable_werror_always=no
4815 if test $enable_werror_always = yes; then :
4816 WERROR="$WERROR${WERROR:+ }-Werror"
4821 # Dependency checking.
4822 rm -rf .tst 2>/dev/null
4823 mkdir .tst 2>/dev/null
4824 if test -d .tst; then
4825 am__leading_dot=.
4826 else
4827 am__leading_dot=_
4829 rmdir .tst 2>/dev/null
4831 DEPDIR="${am__leading_dot}deps"
4833 ac_config_commands="$ac_config_commands depdir"
4836 if test "$ENABLE_BUILD_WITH_CXX" = "no"; then
4837 depcc="$CC" am_compiler_list=
4839 am_depcomp=$ac_aux_dir/depcomp
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4841 $as_echo_n "checking dependency style of $depcc... " >&6; }
4842 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4845 if test -f "$am_depcomp"; then
4846 # We make a subdir and do the tests there. Otherwise we can end up
4847 # making bogus files that we don't know about and never remove. For
4848 # instance it was reported that on HP-UX the gcc test will end up
4849 # making a dummy file named `D' -- because `-MD' means `put the output
4850 # in D'.
4851 mkdir conftest.dir
4852 # Copy depcomp to subdir because otherwise we won't find it if we're
4853 # using a relative directory.
4854 cp "$am_depcomp" conftest.dir
4855 cd conftest.dir
4856 # We will build objects and dependencies in a subdirectory because
4857 # it helps to detect inapplicable dependency modes. For instance
4858 # both Tru64's cc and ICC support -MD to output dependencies as a
4859 # side effect of compilation, but ICC will put the dependencies in
4860 # the current directory while Tru64 will put them in the object
4861 # directory.
4862 mkdir sub
4864 am_cv_CC_dependencies_compiler_type=none
4865 if test "$am_compiler_list" = ""; then
4866 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4868 for depmode in $am_compiler_list; do
4869 if test $depmode = none; then break; fi
4871 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4872 # Setup a source with many dependencies, because some compilers
4873 # like to wrap large dependency lists on column 80 (with \), and
4874 # we should not choose a depcomp mode which is confused by this.
4876 # We need to recreate these files for each test, as the compiler may
4877 # overwrite some of them when testing with obscure command lines.
4878 # This happens at least with the AIX C compiler.
4879 : > sub/conftest.c
4880 for i in 1 2 3 4 5 6; do
4881 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4882 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4883 # Solaris 8's {/usr,}/bin/sh.
4884 touch sub/conftst$i.h
4885 done
4886 echo "include sub/conftest.Po" > confmf
4888 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4889 # mode. It turns out that the SunPro C++ compiler does not properly
4890 # handle `-M -o', and we need to detect this.
4891 depcmd="depmode=$depmode \
4892 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4893 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4894 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4895 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4896 if env $depcmd > conftest.err 2>&1 &&
4897 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4898 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4899 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4900 # icc doesn't choke on unknown options, it will just issue warnings
4901 # or remarks (even with -Werror). So we grep stderr for any message
4902 # that says an option was ignored or not supported.
4903 # When given -MP, icc 7.0 and 7.1 complain thusly:
4904 # icc: Command line warning: ignoring option '-M'; no argument required
4905 # The diagnosis changed in icc 8.0:
4906 # icc: Command line remark: option '-MP' not supported
4907 if (grep 'ignoring option' conftest.err ||
4908 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4909 am_cv_CC_dependencies_compiler_type=$depmode
4910 $as_echo "$as_me:$LINENO: success" >&5
4911 break
4914 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4915 sed -e 's/^/| /' < conftest.err >&5
4916 done
4918 cd ..
4919 rm -rf conftest.dir
4920 else
4921 am_cv_CC_dependencies_compiler_type=none
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4926 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4927 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4928 then as_fn_error "no usable dependency style found" "$LINENO" 5
4929 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4933 else
4934 ac_ext=cpp
4935 ac_cpp='$CXXCPP $CPPFLAGS'
4936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943 int i;
4944 _ACEOF
4945 if ac_fn_cxx_try_compile "$LINENO"; then :
4947 else
4948 as_fn_error "C++ compiler missing or inoperational" "$LINENO" 5
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 ac_ext=c
4952 ac_cpp='$CPP $CPPFLAGS'
4953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4957 depcc="$CXX" am_compiler_list=
4959 am_depcomp=$ac_aux_dir/depcomp
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4961 $as_echo_n "checking dependency style of $depcc... " >&6; }
4962 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 if test -f "$am_depcomp"; then
4966 # We make a subdir and do the tests there. Otherwise we can end up
4967 # making bogus files that we don't know about and never remove. For
4968 # instance it was reported that on HP-UX the gcc test will end up
4969 # making a dummy file named `D' -- because `-MD' means `put the output
4970 # in D'.
4971 mkdir conftest.dir
4972 # Copy depcomp to subdir because otherwise we won't find it if we're
4973 # using a relative directory.
4974 cp "$am_depcomp" conftest.dir
4975 cd conftest.dir
4976 # We will build objects and dependencies in a subdirectory because
4977 # it helps to detect inapplicable dependency modes. For instance
4978 # both Tru64's cc and ICC support -MD to output dependencies as a
4979 # side effect of compilation, but ICC will put the dependencies in
4980 # the current directory while Tru64 will put them in the object
4981 # directory.
4982 mkdir sub
4984 am_cv_CXX_dependencies_compiler_type=none
4985 if test "$am_compiler_list" = ""; then
4986 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4988 for depmode in $am_compiler_list; do
4989 if test $depmode = none; then break; fi
4991 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4992 # Setup a source with many dependencies, because some compilers
4993 # like to wrap large dependency lists on column 80 (with \), and
4994 # we should not choose a depcomp mode which is confused by this.
4996 # We need to recreate these files for each test, as the compiler may
4997 # overwrite some of them when testing with obscure command lines.
4998 # This happens at least with the AIX C compiler.
4999 : > sub/conftest.c
5000 for i in 1 2 3 4 5 6; do
5001 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5002 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5003 # Solaris 8's {/usr,}/bin/sh.
5004 touch sub/conftst$i.h
5005 done
5006 echo "include sub/conftest.Po" > confmf
5008 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5009 # mode. It turns out that the SunPro C++ compiler does not properly
5010 # handle `-M -o', and we need to detect this.
5011 depcmd="depmode=$depmode \
5012 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5013 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5014 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5015 echo "| $depcmd" | sed -e 's/ */ /g' >&5
5016 if env $depcmd > conftest.err 2>&1 &&
5017 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5018 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5019 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5020 # icc doesn't choke on unknown options, it will just issue warnings
5021 # or remarks (even with -Werror). So we grep stderr for any message
5022 # that says an option was ignored or not supported.
5023 # When given -MP, icc 7.0 and 7.1 complain thusly:
5024 # icc: Command line warning: ignoring option '-M'; no argument required
5025 # The diagnosis changed in icc 8.0:
5026 # icc: Command line remark: option '-MP' not supported
5027 if (grep 'ignoring option' conftest.err ||
5028 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5029 am_cv_CXX_dependencies_compiler_type=$depmode
5030 $as_echo "$as_me:$LINENO: success" >&5
5031 break
5034 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5035 sed -e 's/^/| /' < conftest.err >&5
5036 done
5038 cd ..
5039 rm -rf conftest.dir
5040 else
5041 am_cv_CXX_dependencies_compiler_type=none
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5046 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5047 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
5048 then as_fn_error "no usable dependency style found" "$LINENO" 5
5049 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5055 # Checks for header files.
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5057 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5058 if test "${ac_cv_header_time+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5063 #include <sys/types.h>
5064 #include <sys/time.h>
5065 #include <time.h>
5068 main ()
5070 if ((struct tm *) 0)
5071 return 0;
5073 return 0;
5075 _ACEOF
5076 if ac_fn_c_try_compile "$LINENO"; then :
5077 ac_cv_header_time=yes
5078 else
5079 ac_cv_header_time=no
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5084 $as_echo "$ac_cv_header_time" >&6; }
5085 if test $ac_cv_header_time = yes; then
5087 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5092 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5093 if test "${gcc_cv_header_string+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098 #include <string.h>
5099 #include <strings.h>
5101 main ()
5105 return 0;
5107 _ACEOF
5108 if ac_fn_c_try_compile "$LINENO"; then :
5109 gcc_cv_header_string=yes
5110 else
5111 gcc_cv_header_string=no
5113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5116 $as_echo "$gcc_cv_header_string" >&6; }
5117 if test $gcc_cv_header_string = yes; then
5119 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5124 for ac_header in locale.h fcntl.h limits.h stddef.h \
5125 stdlib.h strings.h string.h sys/file.h unistd.h
5126 do :
5127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5128 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5129 eval as_val=\$$as_ac_Header
5130 if test "x$as_val" = x""yes; then :
5131 cat >>confdefs.h <<_ACEOF
5132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5133 _ACEOF
5137 done
5140 # Checks for typedefs, structures, and compiler characteristics.
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5142 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5143 if test "${ac_cv_c_bigendian+set}" = set; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 ac_cv_c_bigendian=unknown
5147 # See if we're dealing with a universal compiler.
5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5150 #ifndef __APPLE_CC__
5151 not a universal capable compiler
5152 #endif
5153 typedef int dummy;
5155 _ACEOF
5156 if ac_fn_c_try_compile "$LINENO"; then :
5158 # Check for potential -arch flags. It is not universal unless
5159 # there are at least two -arch flags with different values.
5160 ac_arch=
5161 ac_prev=
5162 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5163 if test -n "$ac_prev"; then
5164 case $ac_word in
5165 i?86 | x86_64 | ppc | ppc64)
5166 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5167 ac_arch=$ac_word
5168 else
5169 ac_cv_c_bigendian=universal
5170 break
5173 esac
5174 ac_prev=
5175 elif test "x$ac_word" = "x-arch"; then
5176 ac_prev=arch
5178 done
5180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5181 if test $ac_cv_c_bigendian = unknown; then
5182 # See if sys/param.h defines the BYTE_ORDER macro.
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5185 #include <sys/types.h>
5186 #include <sys/param.h>
5189 main ()
5191 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5192 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5193 && LITTLE_ENDIAN)
5194 bogus endian macros
5195 #endif
5198 return 0;
5200 _ACEOF
5201 if ac_fn_c_try_compile "$LINENO"; then :
5202 # It does; now see whether it defined to BIG_ENDIAN or not.
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 #include <sys/types.h>
5206 #include <sys/param.h>
5209 main ()
5211 #if BYTE_ORDER != BIG_ENDIAN
5212 not big endian
5213 #endif
5216 return 0;
5218 _ACEOF
5219 if ac_fn_c_try_compile "$LINENO"; then :
5220 ac_cv_c_bigendian=yes
5221 else
5222 ac_cv_c_bigendian=no
5224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5228 if test $ac_cv_c_bigendian = unknown; then
5229 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 #include <limits.h>
5235 main ()
5237 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5238 bogus endian macros
5239 #endif
5242 return 0;
5244 _ACEOF
5245 if ac_fn_c_try_compile "$LINENO"; then :
5246 # It does; now see whether it defined to _BIG_ENDIAN or not.
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5249 #include <limits.h>
5252 main ()
5254 #ifndef _BIG_ENDIAN
5255 not big endian
5256 #endif
5259 return 0;
5261 _ACEOF
5262 if ac_fn_c_try_compile "$LINENO"; then :
5263 ac_cv_c_bigendian=yes
5264 else
5265 ac_cv_c_bigendian=no
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 if test $ac_cv_c_bigendian = unknown; then
5272 # Compile a test program.
5273 if test "$cross_compiling" = yes; then :
5274 # Try to guess by grepping values from an object file.
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 short int ascii_mm[] =
5278 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5279 short int ascii_ii[] =
5280 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5281 int use_ascii (int i) {
5282 return ascii_mm[i] + ascii_ii[i];
5284 short int ebcdic_ii[] =
5285 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5286 short int ebcdic_mm[] =
5287 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5288 int use_ebcdic (int i) {
5289 return ebcdic_mm[i] + ebcdic_ii[i];
5291 extern int foo;
5294 main ()
5296 return use_ascii (foo) == use_ebcdic (foo);
5298 return 0;
5300 _ACEOF
5301 if ac_fn_c_try_compile "$LINENO"; then :
5302 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5303 ac_cv_c_bigendian=yes
5305 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5306 if test "$ac_cv_c_bigendian" = unknown; then
5307 ac_cv_c_bigendian=no
5308 else
5309 # finding both strings is unlikely to happen, but who knows?
5310 ac_cv_c_bigendian=unknown
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 else
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5318 $ac_includes_default
5320 main ()
5323 /* Are we little or big endian? From Harbison&Steele. */
5324 union
5326 long int l;
5327 char c[sizeof (long int)];
5328 } u;
5329 u.l = 1;
5330 return u.c[sizeof (long int) - 1] == 1;
5333 return 0;
5335 _ACEOF
5336 if ac_fn_c_try_run "$LINENO"; then :
5337 ac_cv_c_bigendian=no
5338 else
5339 ac_cv_c_bigendian=yes
5341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5342 conftest.$ac_objext conftest.beam conftest.$ac_ext
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5348 $as_echo "$ac_cv_c_bigendian" >&6; }
5349 case $ac_cv_c_bigendian in #(
5350 yes)
5351 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5352 ;; #(
5354 ;; #(
5355 universal)
5357 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5359 ;; #(
5361 as_fn_error "unknown endianness
5362 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5363 esac
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5366 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5367 if test "${ac_cv_c_const+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5374 main ()
5376 /* FIXME: Include the comments suggested by Paul. */
5377 #ifndef __cplusplus
5378 /* Ultrix mips cc rejects this. */
5379 typedef int charset[2];
5380 const charset cs;
5381 /* SunOS 4.1.1 cc rejects this. */
5382 char const *const *pcpcc;
5383 char **ppc;
5384 /* NEC SVR4.0.2 mips cc rejects this. */
5385 struct point {int x, y;};
5386 static struct point const zero = {0,0};
5387 /* AIX XL C 1.02.0.0 rejects this.
5388 It does not let you subtract one const X* pointer from another in
5389 an arm of an if-expression whose if-part is not a constant
5390 expression */
5391 const char *g = "string";
5392 pcpcc = &g + (g ? g-g : 0);
5393 /* HPUX 7.0 cc rejects these. */
5394 ++pcpcc;
5395 ppc = (char**) pcpcc;
5396 pcpcc = (char const *const *) ppc;
5397 { /* SCO 3.2v4 cc rejects this. */
5398 char *t;
5399 char const *s = 0 ? (char *) 0 : (char const *) 0;
5401 *t++ = 0;
5402 if (s) return 0;
5404 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5405 int x[] = {25, 17};
5406 const int *foo = &x[0];
5407 ++foo;
5409 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5410 typedef const int *iptr;
5411 iptr p = 0;
5412 ++p;
5414 { /* AIX XL C 1.02.0.0 rejects this saying
5415 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5416 struct s { int j; const int *ap[3]; };
5417 struct s *b; b->j = 5;
5419 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5420 const int foo = 10;
5421 if (!foo) return 0;
5423 return !cs[0] && !zero.x;
5424 #endif
5427 return 0;
5429 _ACEOF
5430 if ac_fn_c_try_compile "$LINENO"; then :
5431 ac_cv_c_const=yes
5432 else
5433 ac_cv_c_const=no
5435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5438 $as_echo "$ac_cv_c_const" >&6; }
5439 if test $ac_cv_c_const = no; then
5441 $as_echo "#define const /**/" >>confdefs.h
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5446 $as_echo_n "checking for inline... " >&6; }
5447 if test "${ac_cv_c_inline+set}" = set; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 ac_cv_c_inline=no
5451 for ac_kw in inline __inline__ __inline; do
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5454 #ifndef __cplusplus
5455 typedef int foo_t;
5456 static $ac_kw foo_t static_foo () {return 0; }
5457 $ac_kw foo_t foo () {return 0; }
5458 #endif
5460 _ACEOF
5461 if ac_fn_c_try_compile "$LINENO"; then :
5462 ac_cv_c_inline=$ac_kw
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 test "$ac_cv_c_inline" != no && break
5466 done
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5470 $as_echo "$ac_cv_c_inline" >&6; }
5472 case $ac_cv_c_inline in
5473 inline | yes) ;;
5475 case $ac_cv_c_inline in
5476 no) ac_val=;;
5477 *) ac_val=$ac_cv_c_inline;;
5478 esac
5479 cat >>confdefs.h <<_ACEOF
5480 #ifndef __cplusplus
5481 #define inline $ac_val
5482 #endif
5483 _ACEOF
5485 esac
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5488 $as_echo_n "checking for obstacks... " >&6; }
5489 if test "${ac_cv_func_obstack+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 $ac_includes_default
5495 #include "obstack.h"
5497 main ()
5499 struct obstack mem;
5500 #define obstack_chunk_alloc malloc
5501 #define obstack_chunk_free free
5502 obstack_init (&mem);
5503 obstack_free (&mem, 0);
5505 return 0;
5507 _ACEOF
5508 if ac_fn_c_try_link "$LINENO"; then :
5509 ac_cv_func_obstack=yes
5510 else
5511 ac_cv_func_obstack=no
5513 rm -f core conftest.err conftest.$ac_objext \
5514 conftest$ac_exeext conftest.$ac_ext
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5517 $as_echo "$ac_cv_func_obstack" >&6; }
5518 if test $ac_cv_func_obstack = yes; then
5520 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5522 else
5523 case " $LIBOBJS " in
5524 *" obstack.$ac_objext "* ) ;;
5525 *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
5527 esac
5531 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5532 if test "x$ac_cv_type_off_t" = x""yes; then :
5534 else
5536 cat >>confdefs.h <<_ACEOF
5537 #define off_t long int
5538 _ACEOF
5542 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5543 if test "x$ac_cv_type_size_t" = x""yes; then :
5545 else
5547 cat >>confdefs.h <<_ACEOF
5548 #define size_t unsigned int
5549 _ACEOF
5553 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5554 if test "x$ac_cv_type_ssize_t" = x""yes; then :
5556 else
5558 cat >>confdefs.h <<_ACEOF
5559 #define ssize_t int
5560 _ACEOF
5565 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5566 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
5568 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5570 else
5571 for ac_type in 'unsigned int' 'unsigned long int' \
5572 'unsigned long long int'; do
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 $ac_includes_default
5577 main ()
5579 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5580 test_array [0] = 0
5583 return 0;
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"; then :
5588 cat >>confdefs.h <<_ACEOF
5589 #define uintptr_t $ac_type
5590 _ACEOF
5592 ac_type=
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595 test -z "$ac_type" && break
5596 done
5600 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5601 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
5603 else
5605 cat >>confdefs.h <<_ACEOF
5606 #define ptrdiff_t int
5607 _ACEOF
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5612 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5613 if test "${ac_cv_struct_tm+set}" = set; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 #include <sys/types.h>
5619 #include <time.h>
5622 main ()
5624 struct tm tm;
5625 int *p = &tm.tm_sec;
5626 return !p;
5628 return 0;
5630 _ACEOF
5631 if ac_fn_c_try_compile "$LINENO"; then :
5632 ac_cv_struct_tm=time.h
5633 else
5634 ac_cv_struct_tm=sys/time.h
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5639 $as_echo "$ac_cv_struct_tm" >&6; }
5640 if test $ac_cv_struct_tm = sys/time.h; then
5642 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5646 # The cast to long int works around a bug in the HP C Compiler
5647 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5648 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5649 # This bug is HP SR number 8606223364.
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5651 $as_echo_n "checking size of int... " >&6; }
5652 if test "${ac_cv_sizeof_int+set}" = set; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5657 else
5658 if test "$ac_cv_type_int" = yes; then
5659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5661 { as_fn_set_status 77
5662 as_fn_error "cannot compute sizeof (int)
5663 See \`config.log' for more details." "$LINENO" 5; }; }
5664 else
5665 ac_cv_sizeof_int=0
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5671 $as_echo "$ac_cv_sizeof_int" >&6; }
5675 cat >>confdefs.h <<_ACEOF
5676 #define SIZEOF_INT $ac_cv_sizeof_int
5677 _ACEOF
5680 # The cast to long int works around a bug in the HP C Compiler
5681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5683 # This bug is HP SR number 8606223364.
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5685 $as_echo_n "checking size of long... " >&6; }
5686 if test "${ac_cv_sizeof_long+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5691 else
5692 if test "$ac_cv_type_long" = yes; then
5693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5695 { as_fn_set_status 77
5696 as_fn_error "cannot compute sizeof (long)
5697 See \`config.log' for more details." "$LINENO" 5; }; }
5698 else
5699 ac_cv_sizeof_long=0
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5705 $as_echo "$ac_cv_sizeof_long" >&6; }
5709 cat >>confdefs.h <<_ACEOF
5710 #define SIZEOF_LONG $ac_cv_sizeof_long
5711 _ACEOF
5715 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
5716 do :
5717 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5718 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5719 eval as_val=\$$as_ac_var
5720 if test "x$as_val" = x""yes; then :
5721 cat >>confdefs.h <<_ACEOF
5722 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5723 _ACEOF
5726 done
5728 ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5729 if test "x$ac_cv_have_decl_abort" = x""yes; then :
5730 ac_have_decl=1
5731 else
5732 ac_have_decl=0
5735 cat >>confdefs.h <<_ACEOF
5736 #define HAVE_DECL_ABORT $ac_have_decl
5737 _ACEOF
5738 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5739 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
5740 ac_have_decl=1
5741 else
5742 ac_have_decl=0
5745 cat >>confdefs.h <<_ACEOF
5746 #define HAVE_DECL_ASPRINTF $ac_have_decl
5747 _ACEOF
5748 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
5749 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
5750 ac_have_decl=1
5751 else
5752 ac_have_decl=0
5755 cat >>confdefs.h <<_ACEOF
5756 #define HAVE_DECL_BASENAME $ac_have_decl
5757 _ACEOF
5758 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
5759 if test "x$ac_cv_have_decl_errno" = x""yes; then :
5760 ac_have_decl=1
5761 else
5762 ac_have_decl=0
5765 cat >>confdefs.h <<_ACEOF
5766 #define HAVE_DECL_ERRNO $ac_have_decl
5767 _ACEOF
5768 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
5769 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
5770 ac_have_decl=1
5771 else
5772 ac_have_decl=0
5775 cat >>confdefs.h <<_ACEOF
5776 #define HAVE_DECL_GETOPT $ac_have_decl
5777 _ACEOF
5778 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5779 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
5780 ac_have_decl=1
5781 else
5782 ac_have_decl=0
5785 cat >>confdefs.h <<_ACEOF
5786 #define HAVE_DECL_VASPRINTF $ac_have_decl
5787 _ACEOF
5789 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
5790 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
5791 ac_have_decl=1
5792 else
5793 ac_have_decl=0
5796 cat >>confdefs.h <<_ACEOF
5797 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
5798 _ACEOF
5799 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
5800 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
5801 ac_have_decl=1
5802 else
5803 ac_have_decl=0
5806 cat >>confdefs.h <<_ACEOF
5807 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
5808 _ACEOF
5809 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
5810 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
5811 ac_have_decl=1
5812 else
5813 ac_have_decl=0
5816 cat >>confdefs.h <<_ACEOF
5817 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
5818 _ACEOF
5819 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
5820 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
5821 ac_have_decl=1
5822 else
5823 ac_have_decl=0
5826 cat >>confdefs.h <<_ACEOF
5827 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
5828 _ACEOF
5829 ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
5830 if test "x$ac_cv_have_decl_fgetc_unlocked" = x""yes; then :
5831 ac_have_decl=1
5832 else
5833 ac_have_decl=0
5836 cat >>confdefs.h <<_ACEOF
5837 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
5838 _ACEOF
5839 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
5840 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
5841 ac_have_decl=1
5842 else
5843 ac_have_decl=0
5846 cat >>confdefs.h <<_ACEOF
5847 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
5848 _ACEOF
5849 ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
5850 if test "x$ac_cv_have_decl_fileno_unlocked" = x""yes; then :
5851 ac_have_decl=1
5852 else
5853 ac_have_decl=0
5856 cat >>confdefs.h <<_ACEOF
5857 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
5858 _ACEOF
5859 ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
5860 if test "x$ac_cv_have_decl_fprintf_unlocked" = x""yes; then :
5861 ac_have_decl=1
5862 else
5863 ac_have_decl=0
5866 cat >>confdefs.h <<_ACEOF
5867 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
5868 _ACEOF
5869 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
5870 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
5871 ac_have_decl=1
5872 else
5873 ac_have_decl=0
5876 cat >>confdefs.h <<_ACEOF
5877 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
5878 _ACEOF
5879 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
5880 if test "x$ac_cv_have_decl_fputs_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_FPUTS_UNLOCKED $ac_have_decl
5888 _ACEOF
5889 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
5890 if test "x$ac_cv_have_decl_fread_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_FREAD_UNLOCKED $ac_have_decl
5898 _ACEOF
5899 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
5900 if test "x$ac_cv_have_decl_fwrite_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_FWRITE_UNLOCKED $ac_have_decl
5908 _ACEOF
5909 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
5910 if test "x$ac_cv_have_decl_getchar_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_GETCHAR_UNLOCKED $ac_have_decl
5918 _ACEOF
5919 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
5920 if test "x$ac_cv_have_decl_getc_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_GETC_UNLOCKED $ac_have_decl
5928 _ACEOF
5929 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
5930 if test "x$ac_cv_have_decl_putchar_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_PUTCHAR_UNLOCKED $ac_have_decl
5938 _ACEOF
5939 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
5940 if test "x$ac_cv_have_decl_putc_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_PUTC_UNLOCKED $ac_have_decl
5948 _ACEOF
5951 # Checks for library functions.
5952 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5953 # for constant arguments. Useless!
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5955 $as_echo_n "checking for working alloca.h... " >&6; }
5956 if test "${ac_cv_working_alloca_h+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5961 #include <alloca.h>
5963 main ()
5965 char *p = (char *) alloca (2 * sizeof (int));
5966 if (p) return 0;
5968 return 0;
5970 _ACEOF
5971 if ac_fn_c_try_link "$LINENO"; then :
5972 ac_cv_working_alloca_h=yes
5973 else
5974 ac_cv_working_alloca_h=no
5976 rm -f core conftest.err conftest.$ac_objext \
5977 conftest$ac_exeext conftest.$ac_ext
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5980 $as_echo "$ac_cv_working_alloca_h" >&6; }
5981 if test $ac_cv_working_alloca_h = yes; then
5983 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5988 $as_echo_n "checking for alloca... " >&6; }
5989 if test "${ac_cv_func_alloca_works+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994 #ifdef __GNUC__
5995 # define alloca __builtin_alloca
5996 #else
5997 # ifdef _MSC_VER
5998 # include <malloc.h>
5999 # define alloca _alloca
6000 # else
6001 # ifdef HAVE_ALLOCA_H
6002 # include <alloca.h>
6003 # else
6004 # ifdef _AIX
6005 #pragma alloca
6006 # else
6007 # ifndef alloca /* predefined by HP cc +Olibcalls */
6008 char *alloca ();
6009 # endif
6010 # endif
6011 # endif
6012 # endif
6013 #endif
6016 main ()
6018 char *p = (char *) alloca (1);
6019 if (p) return 0;
6021 return 0;
6023 _ACEOF
6024 if ac_fn_c_try_link "$LINENO"; then :
6025 ac_cv_func_alloca_works=yes
6026 else
6027 ac_cv_func_alloca_works=no
6029 rm -f core conftest.err conftest.$ac_objext \
6030 conftest$ac_exeext conftest.$ac_ext
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6033 $as_echo "$ac_cv_func_alloca_works" >&6; }
6035 if test $ac_cv_func_alloca_works = yes; then
6037 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6039 else
6040 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6041 # that cause trouble. Some versions do not even contain alloca or
6042 # contain a buggy version. If you still want to use their alloca,
6043 # use ar to extract alloca.o from them instead of compiling alloca.c.
6045 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6047 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6051 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6052 if test "${ac_cv_os_cray+set}" = set; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6057 #if defined CRAY && ! defined CRAY2
6058 webecray
6059 #else
6060 wenotbecray
6061 #endif
6063 _ACEOF
6064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065 $EGREP "webecray" >/dev/null 2>&1; then :
6066 ac_cv_os_cray=yes
6067 else
6068 ac_cv_os_cray=no
6070 rm -f conftest*
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6074 $as_echo "$ac_cv_os_cray" >&6; }
6075 if test $ac_cv_os_cray = yes; then
6076 for ac_func in _getb67 GETB67 getb67; do
6077 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6078 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6079 eval as_val=\$$as_ac_var
6080 if test "x$as_val" = x""yes; then :
6082 cat >>confdefs.h <<_ACEOF
6083 #define CRAY_STACKSEG_END $ac_func
6084 _ACEOF
6086 break
6089 done
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6093 $as_echo_n "checking stack direction for C alloca... " >&6; }
6094 if test "${ac_cv_c_stack_direction+set}" = set; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 if test "$cross_compiling" = yes; then :
6098 ac_cv_c_stack_direction=0
6099 else
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6102 $ac_includes_default
6104 find_stack_direction ()
6106 static char *addr = 0;
6107 auto char dummy;
6108 if (addr == 0)
6110 addr = &dummy;
6111 return find_stack_direction ();
6113 else
6114 return (&dummy > addr) ? 1 : -1;
6118 main ()
6120 return find_stack_direction () < 0;
6122 _ACEOF
6123 if ac_fn_c_try_run "$LINENO"; then :
6124 ac_cv_c_stack_direction=1
6125 else
6126 ac_cv_c_stack_direction=-1
6128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6129 conftest.$ac_objext conftest.beam conftest.$ac_ext
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6134 $as_echo "$ac_cv_c_stack_direction" >&6; }
6135 cat >>confdefs.h <<_ACEOF
6136 #define STACK_DIRECTION $ac_cv_c_stack_direction
6137 _ACEOF
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6143 $as_echo_n "checking for ANSI C header files... " >&6; }
6144 if test "${ac_cv_header_stdc+set}" = set; then :
6145 $as_echo_n "(cached) " >&6
6146 else
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6149 #include <stdlib.h>
6150 #include <stdarg.h>
6151 #include <string.h>
6152 #include <float.h>
6155 main ()
6159 return 0;
6161 _ACEOF
6162 if ac_fn_c_try_compile "$LINENO"; then :
6163 ac_cv_header_stdc=yes
6164 else
6165 ac_cv_header_stdc=no
6167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169 if test $ac_cv_header_stdc = yes; then
6170 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6173 #include <string.h>
6175 _ACEOF
6176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6177 $EGREP "memchr" >/dev/null 2>&1; then :
6179 else
6180 ac_cv_header_stdc=no
6182 rm -f conftest*
6186 if test $ac_cv_header_stdc = yes; then
6187 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6190 #include <stdlib.h>
6192 _ACEOF
6193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6194 $EGREP "free" >/dev/null 2>&1; then :
6196 else
6197 ac_cv_header_stdc=no
6199 rm -f conftest*
6203 if test $ac_cv_header_stdc = yes; then
6204 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6205 if test "$cross_compiling" = yes; then :
6207 else
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6210 #include <ctype.h>
6211 #include <stdlib.h>
6212 #if ((' ' & 0x0FF) == 0x020)
6213 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6214 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6215 #else
6216 # define ISLOWER(c) \
6217 (('a' <= (c) && (c) <= 'i') \
6218 || ('j' <= (c) && (c) <= 'r') \
6219 || ('s' <= (c) && (c) <= 'z'))
6220 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6221 #endif
6223 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6225 main ()
6227 int i;
6228 for (i = 0; i < 256; i++)
6229 if (XOR (islower (i), ISLOWER (i))
6230 || toupper (i) != TOUPPER (i))
6231 return 2;
6232 return 0;
6234 _ACEOF
6235 if ac_fn_c_try_run "$LINENO"; then :
6237 else
6238 ac_cv_header_stdc=no
6240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6241 conftest.$ac_objext conftest.beam conftest.$ac_ext
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6247 $as_echo "$ac_cv_header_stdc" >&6; }
6248 if test $ac_cv_header_stdc = yes; then
6250 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6256 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6257 if test "${am_cv_langinfo_codeset+set}" = set; then :
6258 $as_echo_n "(cached) " >&6
6259 else
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 #include <langinfo.h>
6264 main ()
6266 char* cs = nl_langinfo(CODESET);
6268 return 0;
6270 _ACEOF
6271 if ac_fn_c_try_link "$LINENO"; then :
6272 am_cv_langinfo_codeset=yes
6273 else
6274 am_cv_langinfo_codeset=no
6276 rm -f core conftest.err conftest.$ac_objext \
6277 conftest$ac_exeext conftest.$ac_ext
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6281 $as_echo "$am_cv_langinfo_codeset" >&6; }
6282 if test $am_cv_langinfo_codeset = yes; then
6284 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6288 # If we haven't got the data from the intl directory,
6289 # assume NLS is disabled.
6290 USE_NLS=no
6291 LIBINTL=
6292 LIBINTL_DEP=
6293 INCINTL=
6294 XGETTEXT=
6295 GMSGFMT=
6296 POSUB=
6298 if test -f ../intl/config.intl; then
6299 . ../intl/config.intl
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6302 $as_echo_n "checking whether NLS is requested... " >&6; }
6303 if test x"$USE_NLS" != xyes; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6306 else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6308 $as_echo "yes" >&6; }
6310 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6314 $as_echo_n "checking for catalogs to be installed... " >&6; }
6315 # Look for .po and .gmo files in the source directory.
6316 CATALOGS=
6317 XLINGUAS=
6318 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6319 # If there aren't any .gmo files the shell will give us the
6320 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6321 # weeded out.
6322 case "$cat" in *\**)
6323 continue;;
6324 esac
6325 # The quadruple backslash is collapsed to a double backslash
6326 # by the backticks, then collapsed again by the double quotes,
6327 # leaving us with one backslash in the sed expression (right
6328 # before the dot that mustn't act as a wildcard).
6329 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6330 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6331 # The user is allowed to set LINGUAS to a list of languages to
6332 # install catalogs for. If it's empty that means "all of them."
6333 if test "x$LINGUAS" = x; then
6334 CATALOGS="$CATALOGS $cat"
6335 XLINGUAS="$XLINGUAS $lang"
6336 else
6337 case "$LINGUAS" in *$lang*)
6338 CATALOGS="$CATALOGS $cat"
6339 XLINGUAS="$XLINGUAS $lang"
6341 esac
6343 done
6344 LINGUAS="$XLINGUAS"
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6346 $as_echo "$LINGUAS" >&6; }
6349 DATADIRNAME=share
6351 INSTOBJEXT=.mo
6353 GENCAT=gencat
6355 CATOBJEXT=.gmo
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
6360 $as_echo_n "checking for uchar... " >&6; }
6361 if test "${gcc_cv_type_uchar+set}" = set; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6367 #include <sys/types.h>
6370 main ()
6372 if ((uchar *)0) return 0;
6373 if (sizeof(uchar)) return 0;
6375 return 0;
6377 _ACEOF
6378 if ac_fn_c_try_compile "$LINENO"; then :
6379 ac_cv_type_uchar=yes
6380 else
6381 ac_cv_type_uchar=no
6383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
6386 $as_echo "$gcc_cv_type_uchar" >&6; }
6387 if test $ac_cv_type_uchar = yes; then
6389 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
6393 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
6394 # iconv() prototype.
6396 if test "X$prefix" = "XNONE"; then
6397 acl_final_prefix="$ac_default_prefix"
6398 else
6399 acl_final_prefix="$prefix"
6401 if test "X$exec_prefix" = "XNONE"; then
6402 acl_final_exec_prefix='${prefix}'
6403 else
6404 acl_final_exec_prefix="$exec_prefix"
6406 acl_save_prefix="$prefix"
6407 prefix="$acl_final_prefix"
6408 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6409 prefix="$acl_save_prefix"
6412 # Check whether --with-gnu-ld was given.
6413 if test "${with_gnu_ld+set}" = set; then :
6414 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6415 else
6416 with_gnu_ld=no
6419 # Prepare PATH_SEPARATOR.
6420 # The user is always right.
6421 if test "${PATH_SEPARATOR+set}" != set; then
6422 echo "#! /bin/sh" >conf$$.sh
6423 echo "exit 0" >>conf$$.sh
6424 chmod +x conf$$.sh
6425 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6426 PATH_SEPARATOR=';'
6427 else
6428 PATH_SEPARATOR=:
6430 rm -f conf$$.sh
6432 ac_prog=ld
6433 if test "$GCC" = yes; then
6434 # Check if gcc -print-prog-name=ld gives a path.
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6436 $as_echo_n "checking for ld used by GCC... " >&6; }
6437 case $host in
6438 *-*-mingw*)
6439 # gcc leaves a trailing carriage return which upsets mingw
6440 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6442 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6443 esac
6444 case $ac_prog in
6445 # Accept absolute paths.
6446 [\\/]* | [A-Za-z]:[\\/]*)
6447 re_direlt='/[^/][^/]*/\.\./'
6448 # Canonicalize the path of ld
6449 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6450 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6451 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6452 done
6453 test -z "$LD" && LD="$ac_prog"
6456 # If it fails, then pretend we aren't using GCC.
6457 ac_prog=ld
6460 # If it is relative, then search for the first ld in PATH.
6461 with_gnu_ld=unknown
6463 esac
6464 elif test "$with_gnu_ld" = yes; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6466 $as_echo_n "checking for GNU ld... " >&6; }
6467 else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6469 $as_echo_n "checking for non-GNU ld... " >&6; }
6471 if test "${acl_cv_path_LD+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 if test -z "$LD"; then
6475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6476 for ac_dir in $PATH; do
6477 test -z "$ac_dir" && ac_dir=.
6478 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6479 acl_cv_path_LD="$ac_dir/$ac_prog"
6480 # Check to see if the program is GNU ld. I'd rather use --version,
6481 # but apparently some GNU ld's only accept -v.
6482 # Break only if it was the GNU/non-GNU ld that we prefer.
6483 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6484 test "$with_gnu_ld" != no && break
6485 else
6486 test "$with_gnu_ld" != yes && break
6489 done
6490 IFS="$ac_save_ifs"
6491 else
6492 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6496 LD="$acl_cv_path_LD"
6497 if test -n "$LD"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6499 $as_echo "$LD" >&6; }
6500 else
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502 $as_echo "no" >&6; }
6504 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6506 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6507 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6511 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6512 acl_cv_prog_gnu_ld=yes
6513 else
6514 acl_cv_prog_gnu_ld=no
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6518 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6519 with_gnu_ld=$acl_cv_prog_gnu_ld
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6524 $as_echo_n "checking for shared library run path origin... " >&6; }
6525 if test "${acl_cv_rpath+set}" = set; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6529 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6530 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6531 . ./conftest.sh
6532 rm -f ./conftest.sh
6533 acl_cv_rpath=done
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6537 $as_echo "$acl_cv_rpath" >&6; }
6538 wl="$acl_cv_wl"
6539 libext="$acl_cv_libext"
6540 shlibext="$acl_cv_shlibext"
6541 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6542 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6543 hardcode_direct="$acl_cv_hardcode_direct"
6544 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6545 # Check whether --enable-rpath was given.
6546 if test "${enable_rpath+set}" = set; then :
6547 enableval=$enable_rpath; :
6548 else
6549 enable_rpath=yes
6559 use_additional=yes
6561 acl_save_prefix="$prefix"
6562 prefix="$acl_final_prefix"
6563 acl_save_exec_prefix="$exec_prefix"
6564 exec_prefix="$acl_final_exec_prefix"
6566 eval additional_includedir=\"$includedir\"
6567 eval additional_libdir=\"$libdir\"
6569 exec_prefix="$acl_save_exec_prefix"
6570 prefix="$acl_save_prefix"
6573 # Check whether --with-libiconv-prefix was given.
6574 if test "${with_libiconv_prefix+set}" = set; then :
6575 withval=$with_libiconv_prefix;
6576 if test "X$withval" = "Xno"; then
6577 use_additional=no
6578 else
6579 if test "X$withval" = "X"; then
6581 acl_save_prefix="$prefix"
6582 prefix="$acl_final_prefix"
6583 acl_save_exec_prefix="$exec_prefix"
6584 exec_prefix="$acl_final_exec_prefix"
6586 eval additional_includedir=\"$includedir\"
6587 eval additional_libdir=\"$libdir\"
6589 exec_prefix="$acl_save_exec_prefix"
6590 prefix="$acl_save_prefix"
6592 else
6593 additional_includedir="$withval/include"
6594 additional_libdir="$withval/lib"
6600 LIBICONV=
6601 LTLIBICONV=
6602 INCICONV=
6603 rpathdirs=
6604 ltrpathdirs=
6605 names_already_handled=
6606 names_next_round='iconv '
6607 while test -n "$names_next_round"; do
6608 names_this_round="$names_next_round"
6609 names_next_round=
6610 for name in $names_this_round; do
6611 already_handled=
6612 for n in $names_already_handled; do
6613 if test "$n" = "$name"; then
6614 already_handled=yes
6615 break
6617 done
6618 if test -z "$already_handled"; then
6619 names_already_handled="$names_already_handled $name"
6620 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6621 eval value=\"\$HAVE_LIB$uppername\"
6622 if test -n "$value"; then
6623 if test "$value" = yes; then
6624 eval value=\"\$LIB$uppername\"
6625 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6626 eval value=\"\$LTLIB$uppername\"
6627 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6628 else
6631 else
6632 found_dir=
6633 found_la=
6634 found_so=
6635 found_a=
6636 if test $use_additional = yes; then
6637 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6638 found_dir="$additional_libdir"
6639 found_so="$additional_libdir/lib$name.$shlibext"
6640 if test -f "$additional_libdir/lib$name.la"; then
6641 found_la="$additional_libdir/lib$name.la"
6643 else
6644 if test -f "$additional_libdir/lib$name.$libext"; then
6645 found_dir="$additional_libdir"
6646 found_a="$additional_libdir/lib$name.$libext"
6647 if test -f "$additional_libdir/lib$name.la"; then
6648 found_la="$additional_libdir/lib$name.la"
6653 if test "X$found_dir" = "X"; then
6654 for x in $LDFLAGS $LTLIBICONV; do
6656 acl_save_prefix="$prefix"
6657 prefix="$acl_final_prefix"
6658 acl_save_exec_prefix="$exec_prefix"
6659 exec_prefix="$acl_final_exec_prefix"
6660 eval x=\"$x\"
6661 exec_prefix="$acl_save_exec_prefix"
6662 prefix="$acl_save_prefix"
6664 case "$x" in
6665 -L*)
6666 dir=`echo "X$x" | sed -e 's/^X-L//'`
6667 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6668 found_dir="$dir"
6669 found_so="$dir/lib$name.$shlibext"
6670 if test -f "$dir/lib$name.la"; then
6671 found_la="$dir/lib$name.la"
6673 else
6674 if test -f "$dir/lib$name.$libext"; then
6675 found_dir="$dir"
6676 found_a="$dir/lib$name.$libext"
6677 if test -f "$dir/lib$name.la"; then
6678 found_la="$dir/lib$name.la"
6683 esac
6684 if test "X$found_dir" != "X"; then
6685 break
6687 done
6689 if test "X$found_dir" != "X"; then
6690 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6691 if test "X$found_so" != "X"; then
6692 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6693 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6694 else
6695 haveit=
6696 for x in $ltrpathdirs; do
6697 if test "X$x" = "X$found_dir"; then
6698 haveit=yes
6699 break
6701 done
6702 if test -z "$haveit"; then
6703 ltrpathdirs="$ltrpathdirs $found_dir"
6705 if test "$hardcode_direct" = yes; then
6706 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6707 else
6708 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6709 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6710 haveit=
6711 for x in $rpathdirs; do
6712 if test "X$x" = "X$found_dir"; then
6713 haveit=yes
6714 break
6716 done
6717 if test -z "$haveit"; then
6718 rpathdirs="$rpathdirs $found_dir"
6720 else
6721 haveit=
6722 for x in $LDFLAGS $LIBICONV; do
6724 acl_save_prefix="$prefix"
6725 prefix="$acl_final_prefix"
6726 acl_save_exec_prefix="$exec_prefix"
6727 exec_prefix="$acl_final_exec_prefix"
6728 eval x=\"$x\"
6729 exec_prefix="$acl_save_exec_prefix"
6730 prefix="$acl_save_prefix"
6732 if test "X$x" = "X-L$found_dir"; then
6733 haveit=yes
6734 break
6736 done
6737 if test -z "$haveit"; then
6738 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6740 if test "$hardcode_minus_L" != no; then
6741 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6742 else
6743 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6748 else
6749 if test "X$found_a" != "X"; then
6750 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6751 else
6752 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6755 additional_includedir=
6756 case "$found_dir" in
6757 */lib | */lib/)
6758 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6759 additional_includedir="$basedir/include"
6761 esac
6762 if test "X$additional_includedir" != "X"; then
6763 if test "X$additional_includedir" != "X/usr/include"; then
6764 haveit=
6765 if test "X$additional_includedir" = "X/usr/local/include"; then
6766 if test -n "$GCC"; then
6767 case $host_os in
6768 linux*) haveit=yes;;
6769 esac
6772 if test -z "$haveit"; then
6773 for x in $CPPFLAGS $INCICONV; do
6775 acl_save_prefix="$prefix"
6776 prefix="$acl_final_prefix"
6777 acl_save_exec_prefix="$exec_prefix"
6778 exec_prefix="$acl_final_exec_prefix"
6779 eval x=\"$x\"
6780 exec_prefix="$acl_save_exec_prefix"
6781 prefix="$acl_save_prefix"
6783 if test "X$x" = "X-I$additional_includedir"; then
6784 haveit=yes
6785 break
6787 done
6788 if test -z "$haveit"; then
6789 if test -d "$additional_includedir"; then
6790 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6796 if test -n "$found_la"; then
6797 save_libdir="$libdir"
6798 case "$found_la" in
6799 */* | *\\*) . "$found_la" ;;
6800 *) . "./$found_la" ;;
6801 esac
6802 libdir="$save_libdir"
6803 for dep in $dependency_libs; do
6804 case "$dep" in
6805 -L*)
6806 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6807 if test "X$additional_libdir" != "X/usr/lib"; then
6808 haveit=
6809 if test "X$additional_libdir" = "X/usr/local/lib"; then
6810 if test -n "$GCC"; then
6811 case $host_os in
6812 linux*) haveit=yes;;
6813 esac
6816 if test -z "$haveit"; then
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$additional_libdir"; then
6829 haveit=yes
6830 break
6832 done
6833 if test -z "$haveit"; then
6834 if test -d "$additional_libdir"; then
6835 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6838 haveit=
6839 for x in $LDFLAGS $LTLIBICONV; do
6841 acl_save_prefix="$prefix"
6842 prefix="$acl_final_prefix"
6843 acl_save_exec_prefix="$exec_prefix"
6844 exec_prefix="$acl_final_exec_prefix"
6845 eval x=\"$x\"
6846 exec_prefix="$acl_save_exec_prefix"
6847 prefix="$acl_save_prefix"
6849 if test "X$x" = "X-L$additional_libdir"; then
6850 haveit=yes
6851 break
6853 done
6854 if test -z "$haveit"; then
6855 if test -d "$additional_libdir"; then
6856 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6862 -R*)
6863 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6864 if test "$enable_rpath" != no; then
6865 haveit=
6866 for x in $rpathdirs; do
6867 if test "X$x" = "X$dir"; then
6868 haveit=yes
6869 break
6871 done
6872 if test -z "$haveit"; then
6873 rpathdirs="$rpathdirs $dir"
6875 haveit=
6876 for x in $ltrpathdirs; do
6877 if test "X$x" = "X$dir"; then
6878 haveit=yes
6879 break
6881 done
6882 if test -z "$haveit"; then
6883 ltrpathdirs="$ltrpathdirs $dir"
6887 -l*)
6888 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6890 *.la)
6891 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6894 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6895 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6897 esac
6898 done
6900 else
6901 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6902 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6906 done
6907 done
6908 if test "X$rpathdirs" != "X"; then
6909 if test -n "$hardcode_libdir_separator"; then
6910 alldirs=
6911 for found_dir in $rpathdirs; do
6912 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6913 done
6914 acl_save_libdir="$libdir"
6915 libdir="$alldirs"
6916 eval flag=\"$hardcode_libdir_flag_spec\"
6917 libdir="$acl_save_libdir"
6918 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6919 else
6920 for found_dir in $rpathdirs; do
6921 acl_save_libdir="$libdir"
6922 libdir="$found_dir"
6923 eval flag=\"$hardcode_libdir_flag_spec\"
6924 libdir="$acl_save_libdir"
6925 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6926 done
6929 if test "X$ltrpathdirs" != "X"; then
6930 for found_dir in $ltrpathdirs; do
6931 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6932 done
6936 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
6937 ac_ext=cpp
6938 ac_cpp='$CXXCPP $CPPFLAGS'
6939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6948 am_save_CPPFLAGS="$CPPFLAGS"
6950 for element in $INCICONV; do
6951 haveit=
6952 for x in $CPPFLAGS; do
6954 acl_save_prefix="$prefix"
6955 prefix="$acl_final_prefix"
6956 acl_save_exec_prefix="$exec_prefix"
6957 exec_prefix="$acl_final_exec_prefix"
6958 eval x=\"$x\"
6959 exec_prefix="$acl_save_exec_prefix"
6960 prefix="$acl_save_prefix"
6962 if test "X$x" = "X$element"; then
6963 haveit=yes
6964 break
6966 done
6967 if test -z "$haveit"; then
6968 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6970 done
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6974 $as_echo_n "checking for iconv... " >&6; }
6975 if test "${am_cv_func_iconv+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6979 am_cv_func_iconv="no, consider installing GNU libiconv"
6980 am_cv_lib_iconv=no
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6983 #include <stdlib.h>
6984 #include <iconv.h>
6986 main ()
6988 iconv_t cd = iconv_open("","");
6989 iconv(cd,NULL,NULL,NULL,NULL);
6990 iconv_close(cd);
6992 return 0;
6994 _ACEOF
6995 if ac_fn_cxx_try_link "$LINENO"; then :
6996 am_cv_func_iconv=yes
6998 rm -f core conftest.err conftest.$ac_objext \
6999 conftest$ac_exeext conftest.$ac_ext
7000 if test "$am_cv_func_iconv" != yes; then
7001 am_save_LIBS="$LIBS"
7002 LIBS="$LIBS $LIBICONV"
7003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004 /* end confdefs.h. */
7005 #include <stdlib.h>
7006 #include <iconv.h>
7008 main ()
7010 iconv_t cd = iconv_open("","");
7011 iconv(cd,NULL,NULL,NULL,NULL);
7012 iconv_close(cd);
7014 return 0;
7016 _ACEOF
7017 if ac_fn_cxx_try_link "$LINENO"; then :
7018 am_cv_lib_iconv=yes
7019 am_cv_func_iconv=yes
7021 rm -f core conftest.err conftest.$ac_objext \
7022 conftest$ac_exeext conftest.$ac_ext
7023 LIBS="$am_save_LIBS"
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7028 $as_echo "$am_cv_func_iconv" >&6; }
7029 if test "$am_cv_func_iconv" = yes; then
7031 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7034 if test "$am_cv_lib_iconv" = yes; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7036 $as_echo_n "checking how to link with libiconv... " >&6; }
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7038 $as_echo "$LIBICONV" >&6; }
7039 else
7040 CPPFLAGS="$am_save_CPPFLAGS"
7041 LIBICONV=
7042 LTLIBICONV=
7047 if test "$am_cv_func_iconv" = yes; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7049 $as_echo_n "checking for iconv declaration... " >&6; }
7050 if test "${am_cv_proto_iconv+set}" = set; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7057 #include <stdlib.h>
7058 #include <iconv.h>
7059 extern
7060 #ifdef __cplusplus
7062 #endif
7063 #if defined(__STDC__) || defined(__cplusplus)
7064 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7065 #else
7066 size_t iconv();
7067 #endif
7070 main ()
7074 return 0;
7076 _ACEOF
7077 if ac_fn_cxx_try_compile "$LINENO"; then :
7078 am_cv_proto_iconv_arg1=""
7079 else
7080 am_cv_proto_iconv_arg1="const"
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083 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);"
7086 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7088 }$am_cv_proto_iconv" >&5
7089 $as_echo "${ac_t:-
7090 }$am_cv_proto_iconv" >&6; }
7092 cat >>confdefs.h <<_ACEOF
7093 #define ICONV_CONST $am_cv_proto_iconv_arg1
7094 _ACEOF
7098 ac_ext=c
7099 ac_cpp='$CPP $CPPFLAGS'
7100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7104 else
7110 am_save_CPPFLAGS="$CPPFLAGS"
7112 for element in $INCICONV; do
7113 haveit=
7114 for x in $CPPFLAGS; do
7116 acl_save_prefix="$prefix"
7117 prefix="$acl_final_prefix"
7118 acl_save_exec_prefix="$exec_prefix"
7119 exec_prefix="$acl_final_exec_prefix"
7120 eval x=\"$x\"
7121 exec_prefix="$acl_save_exec_prefix"
7122 prefix="$acl_save_prefix"
7124 if test "X$x" = "X$element"; then
7125 haveit=yes
7126 break
7128 done
7129 if test -z "$haveit"; then
7130 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7132 done
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7136 $as_echo_n "checking for iconv... " >&6; }
7137 if test "${am_cv_func_iconv+set}" = set; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7141 am_cv_func_iconv="no, consider installing GNU libiconv"
7142 am_cv_lib_iconv=no
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7145 #include <stdlib.h>
7146 #include <iconv.h>
7148 main ()
7150 iconv_t cd = iconv_open("","");
7151 iconv(cd,NULL,NULL,NULL,NULL);
7152 iconv_close(cd);
7154 return 0;
7156 _ACEOF
7157 if ac_fn_c_try_link "$LINENO"; then :
7158 am_cv_func_iconv=yes
7160 rm -f core conftest.err conftest.$ac_objext \
7161 conftest$ac_exeext conftest.$ac_ext
7162 if test "$am_cv_func_iconv" != yes; then
7163 am_save_LIBS="$LIBS"
7164 LIBS="$LIBS $LIBICONV"
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7167 #include <stdlib.h>
7168 #include <iconv.h>
7170 main ()
7172 iconv_t cd = iconv_open("","");
7173 iconv(cd,NULL,NULL,NULL,NULL);
7174 iconv_close(cd);
7176 return 0;
7178 _ACEOF
7179 if ac_fn_c_try_link "$LINENO"; then :
7180 am_cv_lib_iconv=yes
7181 am_cv_func_iconv=yes
7183 rm -f core conftest.err conftest.$ac_objext \
7184 conftest$ac_exeext conftest.$ac_ext
7185 LIBS="$am_save_LIBS"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7190 $as_echo "$am_cv_func_iconv" >&6; }
7191 if test "$am_cv_func_iconv" = yes; then
7193 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7196 if test "$am_cv_lib_iconv" = yes; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7198 $as_echo_n "checking how to link with libiconv... " >&6; }
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7200 $as_echo "$LIBICONV" >&6; }
7201 else
7202 CPPFLAGS="$am_save_CPPFLAGS"
7203 LIBICONV=
7204 LTLIBICONV=
7209 if test "$am_cv_func_iconv" = yes; then
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7211 $as_echo_n "checking for iconv declaration... " >&6; }
7212 if test "${am_cv_proto_iconv+set}" = set; then :
7213 $as_echo_n "(cached) " >&6
7214 else
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7219 #include <stdlib.h>
7220 #include <iconv.h>
7221 extern
7222 #ifdef __cplusplus
7224 #endif
7225 #if defined(__STDC__) || defined(__cplusplus)
7226 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7227 #else
7228 size_t iconv();
7229 #endif
7232 main ()
7236 return 0;
7238 _ACEOF
7239 if ac_fn_c_try_compile "$LINENO"; then :
7240 am_cv_proto_iconv_arg1=""
7241 else
7242 am_cv_proto_iconv_arg1="const"
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245 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);"
7248 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7250 }$am_cv_proto_iconv" >&5
7251 $as_echo "${ac_t:-
7252 }$am_cv_proto_iconv" >&6; }
7254 cat >>confdefs.h <<_ACEOF
7255 #define ICONV_CONST $am_cv_proto_iconv_arg1
7256 _ACEOF
7262 # More defines and substitutions.
7263 PACKAGE="$PACKAGE_TARNAME"
7265 cat >>confdefs.h <<_ACEOF
7266 #define PACKAGE "$PACKAGE"
7267 _ACEOF
7271 if test "x$enable_nls" != xno; then
7272 USED_CATALOGS='$(CATALOGS)'
7273 else
7274 USED_CATALOGS=
7278 # Check whether --enable-maintainer-mode was given.
7279 if test "${enable_maintainer_mode+set}" = set; then :
7280 enableval=$enable_maintainer_mode;
7281 else
7282 enable_maintainer_mode=no
7286 if test "x$enable_maintainer_mode" = xno; then
7287 MAINT='#'
7288 else
7289 MAINT=
7293 # Check whether --enable-checking was given.
7294 if test "${enable_checking+set}" = set; then :
7295 enableval=$enable_checking;
7296 else
7297 enable_checking=no
7301 if test $enable_checking != no ; then
7303 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
7308 case $target in
7309 alpha*-*-* | \
7310 arm*-*-*eabi* | \
7311 arm*-*-symbianelf* | \
7312 x86_64-*-* | \
7313 ia64-*-* | \
7314 hppa*64*-*-* | \
7315 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]* | \
7316 mips*-*-* | \
7317 mmix-*-* | \
7318 powerpc*-*-* | \
7319 rs6000*-*-* | \
7320 s390*-*-* | \
7321 sparc*-*-* | \
7322 spu-*-* | \
7323 sh[123456789lbe]*-*-* | sh-*-*)
7324 need_64bit_hwint=yes ;;
7326 need_64bit_hwint=no ;;
7327 esac
7329 case $need_64bit_hwint:$ac_cv_sizeof_long in
7330 *:8 | no:*) host_wide_int=long ;;
7331 *) host_wide_int='long long' ;;
7332 esac
7336 cat >>confdefs.h <<_ACEOF
7337 #define HOST_WIDE_INT $host_wide_int
7338 _ACEOF
7341 case $target in
7342 i?86-* | x86_64-*)
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7347 main ()
7349 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
7351 return 0;
7353 _ACEOF
7354 if ac_fn_c_try_compile "$LINENO"; then :
7356 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
7359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7360 esac
7362 # Output.
7364 ac_config_headers="$ac_config_headers config.h:config.in"
7366 ac_config_files="$ac_config_files Makefile"
7368 cat >confcache <<\_ACEOF
7369 # This file is a shell script that caches the results of configure
7370 # tests run on this system so they can be shared between configure
7371 # scripts and configure runs, see configure's option --config-cache.
7372 # It is not useful on other systems. If it contains results you don't
7373 # want to keep, you may remove or edit it.
7375 # config.status only pays attention to the cache file if you give it
7376 # the --recheck option to rerun configure.
7378 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7379 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7380 # following values.
7382 _ACEOF
7384 # The following way of writing the cache mishandles newlines in values,
7385 # but we know of no workaround that is simple, portable, and efficient.
7386 # So, we kill variables containing newlines.
7387 # Ultrix sh set writes to stderr and can't be redirected directly,
7388 # and sets the high bit in the cache file unless we assign to the vars.
7390 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7391 eval ac_val=\$$ac_var
7392 case $ac_val in #(
7393 *${as_nl}*)
7394 case $ac_var in #(
7395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7397 esac
7398 case $ac_var in #(
7399 _ | IFS | as_nl) ;; #(
7400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7401 *) { eval $ac_var=; unset $ac_var;} ;;
7402 esac ;;
7403 esac
7404 done
7406 (set) 2>&1 |
7407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7408 *${as_nl}ac_space=\ *)
7409 # `set' does not quote correctly, so add quotes: double-quote
7410 # substitution turns \\\\ into \\, and sed turns \\ into \.
7411 sed -n \
7412 "s/'/'\\\\''/g;
7413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7414 ;; #(
7416 # `set' quotes correctly as required by POSIX, so do not add quotes.
7417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7419 esac |
7420 sort
7422 sed '
7423 /^ac_cv_env_/b end
7424 t clear
7425 :clear
7426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7427 t end
7428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7429 :end' >>confcache
7430 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7431 if test -w "$cache_file"; then
7432 test "x$cache_file" != "x/dev/null" &&
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7434 $as_echo "$as_me: updating cache $cache_file" >&6;}
7435 cat confcache >$cache_file
7436 else
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7438 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7441 rm -f confcache
7443 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7444 # Let make expand exec_prefix.
7445 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7447 DEFS=-DHAVE_CONFIG_H
7449 ac_libobjs=
7450 ac_ltlibobjs=
7451 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7452 # 1. Remove the extension, and $U if already installed.
7453 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7454 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7455 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7456 # will be set to the directory where LIBOBJS objects are built.
7457 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7458 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7459 done
7460 LIBOBJS=$ac_libobjs
7462 LTLIBOBJS=$ac_ltlibobjs
7467 : ${CONFIG_STATUS=./config.status}
7468 ac_write_fail=0
7469 ac_clean_files_save=$ac_clean_files
7470 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7472 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7473 as_write_fail=0
7474 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7475 #! $SHELL
7476 # Generated by $as_me.
7477 # Run this file to recreate the current configuration.
7478 # Compiler output produced by configure, useful for debugging
7479 # configure, is in config.log if it exists.
7481 debug=false
7482 ac_cs_recheck=false
7483 ac_cs_silent=false
7485 SHELL=\${CONFIG_SHELL-$SHELL}
7486 export SHELL
7487 _ASEOF
7488 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7489 ## -------------------- ##
7490 ## M4sh Initialization. ##
7491 ## -------------------- ##
7493 # Be more Bourne compatible
7494 DUALCASE=1; export DUALCASE # for MKS sh
7495 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7496 emulate sh
7497 NULLCMD=:
7498 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7499 # is contrary to our usage. Disable this feature.
7500 alias -g '${1+"$@"}'='"$@"'
7501 setopt NO_GLOB_SUBST
7502 else
7503 case `(set -o) 2>/dev/null` in #(
7504 *posix*) :
7505 set -o posix ;; #(
7506 *) :
7508 esac
7512 as_nl='
7514 export as_nl
7515 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7516 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7517 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7518 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7519 # Prefer a ksh shell builtin over an external printf program on Solaris,
7520 # but without wasting forks for bash or zsh.
7521 if test -z "$BASH_VERSION$ZSH_VERSION" \
7522 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7523 as_echo='print -r --'
7524 as_echo_n='print -rn --'
7525 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7526 as_echo='printf %s\n'
7527 as_echo_n='printf %s'
7528 else
7529 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7530 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7531 as_echo_n='/usr/ucb/echo -n'
7532 else
7533 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7534 as_echo_n_body='eval
7535 arg=$1;
7536 case $arg in #(
7537 *"$as_nl"*)
7538 expr "X$arg" : "X\\(.*\\)$as_nl";
7539 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7540 esac;
7541 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7543 export as_echo_n_body
7544 as_echo_n='sh -c $as_echo_n_body as_echo'
7546 export as_echo_body
7547 as_echo='sh -c $as_echo_body as_echo'
7550 # The user is always right.
7551 if test "${PATH_SEPARATOR+set}" != set; then
7552 PATH_SEPARATOR=:
7553 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7554 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7555 PATH_SEPARATOR=';'
7560 # IFS
7561 # We need space, tab and new line, in precisely that order. Quoting is
7562 # there to prevent editors from complaining about space-tab.
7563 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7564 # splitting by setting IFS to empty value.)
7565 IFS=" "" $as_nl"
7567 # Find who we are. Look in the path if we contain no directory separator.
7568 case $0 in #((
7569 *[\\/]* ) as_myself=$0 ;;
7570 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 for as_dir in $PATH
7573 IFS=$as_save_IFS
7574 test -z "$as_dir" && as_dir=.
7575 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7576 done
7577 IFS=$as_save_IFS
7580 esac
7581 # We did not find ourselves, most probably we were run as `sh COMMAND'
7582 # in which case we are not to be found in the path.
7583 if test "x$as_myself" = x; then
7584 as_myself=$0
7586 if test ! -f "$as_myself"; then
7587 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7588 exit 1
7591 # Unset variables that we do not need and which cause bugs (e.g. in
7592 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7593 # suppresses any "Segmentation fault" message there. '((' could
7594 # trigger a bug in pdksh 5.2.14.
7595 for as_var in BASH_ENV ENV MAIL MAILPATH
7596 do eval test x\${$as_var+set} = xset \
7597 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7598 done
7599 PS1='$ '
7600 PS2='> '
7601 PS4='+ '
7603 # NLS nuisances.
7604 LC_ALL=C
7605 export LC_ALL
7606 LANGUAGE=C
7607 export LANGUAGE
7609 # CDPATH.
7610 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7613 # as_fn_error ERROR [LINENO LOG_FD]
7614 # ---------------------------------
7615 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7616 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7617 # script with status $?, using 1 if that was 0.
7618 as_fn_error ()
7620 as_status=$?; test $as_status -eq 0 && as_status=1
7621 if test "$3"; then
7622 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7623 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7625 $as_echo "$as_me: error: $1" >&2
7626 as_fn_exit $as_status
7627 } # as_fn_error
7630 # as_fn_set_status STATUS
7631 # -----------------------
7632 # Set $? to STATUS, without forking.
7633 as_fn_set_status ()
7635 return $1
7636 } # as_fn_set_status
7638 # as_fn_exit STATUS
7639 # -----------------
7640 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7641 as_fn_exit ()
7643 set +e
7644 as_fn_set_status $1
7645 exit $1
7646 } # as_fn_exit
7648 # as_fn_unset VAR
7649 # ---------------
7650 # Portably unset VAR.
7651 as_fn_unset ()
7653 { eval $1=; unset $1;}
7655 as_unset=as_fn_unset
7656 # as_fn_append VAR VALUE
7657 # ----------------------
7658 # Append the text in VALUE to the end of the definition contained in VAR. Take
7659 # advantage of any shell optimizations that allow amortized linear growth over
7660 # repeated appends, instead of the typical quadratic growth present in naive
7661 # implementations.
7662 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7663 eval 'as_fn_append ()
7665 eval $1+=\$2
7667 else
7668 as_fn_append ()
7670 eval $1=\$$1\$2
7672 fi # as_fn_append
7674 # as_fn_arith ARG...
7675 # ------------------
7676 # Perform arithmetic evaluation on the ARGs, and store the result in the
7677 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7678 # must be portable across $(()) and expr.
7679 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7680 eval 'as_fn_arith ()
7682 as_val=$(( $* ))
7684 else
7685 as_fn_arith ()
7687 as_val=`expr "$@" || test $? -eq 1`
7689 fi # as_fn_arith
7692 if expr a : '\(a\)' >/dev/null 2>&1 &&
7693 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7694 as_expr=expr
7695 else
7696 as_expr=false
7699 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7700 as_basename=basename
7701 else
7702 as_basename=false
7705 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7706 as_dirname=dirname
7707 else
7708 as_dirname=false
7711 as_me=`$as_basename -- "$0" ||
7712 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7713 X"$0" : 'X\(//\)$' \| \
7714 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7715 $as_echo X/"$0" |
7716 sed '/^.*\/\([^/][^/]*\)\/*$/{
7717 s//\1/
7720 /^X\/\(\/\/\)$/{
7721 s//\1/
7724 /^X\/\(\/\).*/{
7725 s//\1/
7728 s/.*/./; q'`
7730 # Avoid depending upon Character Ranges.
7731 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7732 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7733 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7734 as_cr_digits='0123456789'
7735 as_cr_alnum=$as_cr_Letters$as_cr_digits
7737 ECHO_C= ECHO_N= ECHO_T=
7738 case `echo -n x` in #(((((
7739 -n*)
7740 case `echo 'xy\c'` in
7741 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7742 xy) ECHO_C='\c';;
7743 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7744 ECHO_T=' ';;
7745 esac;;
7747 ECHO_N='-n';;
7748 esac
7750 rm -f conf$$ conf$$.exe conf$$.file
7751 if test -d conf$$.dir; then
7752 rm -f conf$$.dir/conf$$.file
7753 else
7754 rm -f conf$$.dir
7755 mkdir conf$$.dir 2>/dev/null
7757 if (echo >conf$$.file) 2>/dev/null; then
7758 if ln -s conf$$.file conf$$ 2>/dev/null; then
7759 as_ln_s='ln -s'
7760 # ... but there are two gotchas:
7761 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7762 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7763 # In both cases, we have to default to `cp -p'.
7764 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7765 as_ln_s='cp -p'
7766 elif ln conf$$.file conf$$ 2>/dev/null; then
7767 as_ln_s=ln
7768 else
7769 as_ln_s='cp -p'
7771 else
7772 as_ln_s='cp -p'
7774 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7775 rmdir conf$$.dir 2>/dev/null
7778 # as_fn_mkdir_p
7779 # -------------
7780 # Create "$as_dir" as a directory, including parents if necessary.
7781 as_fn_mkdir_p ()
7784 case $as_dir in #(
7785 -*) as_dir=./$as_dir;;
7786 esac
7787 test -d "$as_dir" || eval $as_mkdir_p || {
7788 as_dirs=
7789 while :; do
7790 case $as_dir in #(
7791 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7792 *) as_qdir=$as_dir;;
7793 esac
7794 as_dirs="'$as_qdir' $as_dirs"
7795 as_dir=`$as_dirname -- "$as_dir" ||
7796 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7797 X"$as_dir" : 'X\(//\)[^/]' \| \
7798 X"$as_dir" : 'X\(//\)$' \| \
7799 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7800 $as_echo X"$as_dir" |
7801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7802 s//\1/
7805 /^X\(\/\/\)[^/].*/{
7806 s//\1/
7809 /^X\(\/\/\)$/{
7810 s//\1/
7813 /^X\(\/\).*/{
7814 s//\1/
7817 s/.*/./; q'`
7818 test -d "$as_dir" && break
7819 done
7820 test -z "$as_dirs" || eval "mkdir $as_dirs"
7821 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7824 } # as_fn_mkdir_p
7825 if mkdir -p . 2>/dev/null; then
7826 as_mkdir_p='mkdir -p "$as_dir"'
7827 else
7828 test -d ./-p && rmdir ./-p
7829 as_mkdir_p=false
7832 if test -x / >/dev/null 2>&1; then
7833 as_test_x='test -x'
7834 else
7835 if ls -dL / >/dev/null 2>&1; then
7836 as_ls_L_option=L
7837 else
7838 as_ls_L_option=
7840 as_test_x='
7841 eval sh -c '\''
7842 if test -d "$1"; then
7843 test -d "$1/.";
7844 else
7845 case $1 in #(
7846 -*)set "./$1";;
7847 esac;
7848 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7849 ???[sx]*):;;*)false;;esac;fi
7850 '\'' sh
7853 as_executable_p=$as_test_x
7855 # Sed expression to map a string onto a valid CPP name.
7856 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7858 # Sed expression to map a string onto a valid variable name.
7859 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7862 exec 6>&1
7863 ## ----------------------------------- ##
7864 ## Main body of $CONFIG_STATUS script. ##
7865 ## ----------------------------------- ##
7866 _ASEOF
7867 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7870 # Save the log message, to keep $0 and so on meaningful, and to
7871 # report actual input values of CONFIG_FILES etc. instead of their
7872 # values after options handling.
7873 ac_log="
7874 This file was extended by cpplib $as_me , which was
7875 generated by GNU Autoconf 2.64. Invocation command line was
7877 CONFIG_FILES = $CONFIG_FILES
7878 CONFIG_HEADERS = $CONFIG_HEADERS
7879 CONFIG_LINKS = $CONFIG_LINKS
7880 CONFIG_COMMANDS = $CONFIG_COMMANDS
7881 $ $0 $@
7883 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7886 _ACEOF
7888 case $ac_config_files in *"
7889 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7890 esac
7892 case $ac_config_headers in *"
7893 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7894 esac
7897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7898 # Files that config.status was made for.
7899 config_files="$ac_config_files"
7900 config_headers="$ac_config_headers"
7901 config_commands="$ac_config_commands"
7903 _ACEOF
7905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7906 ac_cs_usage="\
7907 \`$as_me' instantiates files and other configuration actions
7908 from templates according to the current configuration. Unless the files
7909 and actions are specified as TAGs, all are instantiated by default.
7911 Usage: $0 [OPTION]... [TAG]...
7913 -h, --help print this help, then exit
7914 -V, --version print version number and configuration settings, then exit
7915 -q, --quiet, --silent
7916 do not print progress messages
7917 -d, --debug don't remove temporary files
7918 --recheck update $as_me by reconfiguring in the same conditions
7919 --file=FILE[:TEMPLATE]
7920 instantiate the configuration file FILE
7921 --header=FILE[:TEMPLATE]
7922 instantiate the configuration header FILE
7924 Configuration files:
7925 $config_files
7927 Configuration headers:
7928 $config_headers
7930 Configuration commands:
7931 $config_commands
7933 Report bugs to <gcc-bugs@gcc.gnu.org>."
7935 _ACEOF
7936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7937 ac_cs_version="\\
7938 cpplib config.status
7939 configured by $0, generated by GNU Autoconf 2.64,
7940 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7942 Copyright (C) 2009 Free Software Foundation, Inc.
7943 This config.status script is free software; the Free Software Foundation
7944 gives unlimited permission to copy, distribute and modify it."
7946 ac_pwd='$ac_pwd'
7947 srcdir='$srcdir'
7948 INSTALL='$INSTALL'
7949 test -n "\$AWK" || AWK=awk
7950 _ACEOF
7952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7953 # The default lists apply if the user does not specify any file.
7954 ac_need_defaults=:
7955 while test $# != 0
7957 case $1 in
7958 --*=*)
7959 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7960 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7961 ac_shift=:
7964 ac_option=$1
7965 ac_optarg=$2
7966 ac_shift=shift
7968 esac
7970 case $ac_option in
7971 # Handling of the options.
7972 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7973 ac_cs_recheck=: ;;
7974 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7975 $as_echo "$ac_cs_version"; exit ;;
7976 --debug | --debu | --deb | --de | --d | -d )
7977 debug=: ;;
7978 --file | --fil | --fi | --f )
7979 $ac_shift
7980 case $ac_optarg in
7981 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7982 esac
7983 as_fn_append CONFIG_FILES " '$ac_optarg'"
7984 ac_need_defaults=false;;
7985 --header | --heade | --head | --hea )
7986 $ac_shift
7987 case $ac_optarg in
7988 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7989 esac
7990 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7991 ac_need_defaults=false;;
7992 --he | --h)
7993 # Conflict between --help and --header
7994 as_fn_error "ambiguous option: \`$1'
7995 Try \`$0 --help' for more information.";;
7996 --help | --hel | -h )
7997 $as_echo "$ac_cs_usage"; exit ;;
7998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7999 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8000 ac_cs_silent=: ;;
8002 # This is an error.
8003 -*) as_fn_error "unrecognized option: \`$1'
8004 Try \`$0 --help' for more information." ;;
8006 *) as_fn_append ac_config_targets " $1"
8007 ac_need_defaults=false ;;
8009 esac
8010 shift
8011 done
8013 ac_configure_extra_args=
8015 if $ac_cs_silent; then
8016 exec 6>/dev/null
8017 ac_configure_extra_args="$ac_configure_extra_args --silent"
8020 _ACEOF
8021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8022 if \$ac_cs_recheck; then
8023 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8024 shift
8025 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8026 CONFIG_SHELL='$SHELL'
8027 export CONFIG_SHELL
8028 exec "\$@"
8031 _ACEOF
8032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8033 exec 5>>config.log
8035 echo
8036 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8037 ## Running $as_me. ##
8038 _ASBOX
8039 $as_echo "$ac_log"
8040 } >&5
8042 _ACEOF
8043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8045 # INIT-COMMANDS
8047 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8049 _ACEOF
8051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8053 # Handling of arguments.
8054 for ac_config_target in $ac_config_targets
8056 case $ac_config_target in
8057 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
8058 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8059 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8061 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8062 esac
8063 done
8066 # If the user did not use the arguments to specify the items to instantiate,
8067 # then the envvar interface is used. Set only those that are not.
8068 # We use the long form for the default assignment because of an extremely
8069 # bizarre bug on SunOS 4.1.3.
8070 if $ac_need_defaults; then
8071 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8072 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8073 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8076 # Have a temporary directory for convenience. Make it in the build tree
8077 # simply because there is no reason against having it here, and in addition,
8078 # creating and moving files from /tmp can sometimes cause problems.
8079 # Hook for its removal unless debugging.
8080 # Note that there is a small window in which the directory will not be cleaned:
8081 # after its creation but before its name has been assigned to `$tmp'.
8082 $debug ||
8084 tmp=
8085 trap 'exit_status=$?
8086 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8088 trap 'as_fn_exit 1' 1 2 13 15
8090 # Create a (secure) tmp directory for tmp files.
8093 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8094 test -n "$tmp" && test -d "$tmp"
8095 } ||
8097 tmp=./conf$$-$RANDOM
8098 (umask 077 && mkdir "$tmp")
8099 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8101 # Set up the scripts for CONFIG_FILES section.
8102 # No need to generate them if there are no CONFIG_FILES.
8103 # This happens for instance with `./config.status config.h'.
8104 if test -n "$CONFIG_FILES"; then
8107 ac_cr=`echo X | tr X '\015'`
8108 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8109 # But we know of no other shell where ac_cr would be empty at this
8110 # point, so we can use a bashism as a fallback.
8111 if test "x$ac_cr" = x; then
8112 eval ac_cr=\$\'\\r\'
8114 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8115 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8116 ac_cs_awk_cr='\r'
8117 else
8118 ac_cs_awk_cr=$ac_cr
8121 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8122 _ACEOF
8126 echo "cat >conf$$subs.awk <<_ACEOF" &&
8127 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8128 echo "_ACEOF"
8129 } >conf$$subs.sh ||
8130 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8131 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8132 ac_delim='%!_!# '
8133 for ac_last_try in false false false false false :; do
8134 . ./conf$$subs.sh ||
8135 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8137 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8138 if test $ac_delim_n = $ac_delim_num; then
8139 break
8140 elif $ac_last_try; then
8141 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8142 else
8143 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8145 done
8146 rm -f conf$$subs.sh
8148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8149 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8150 _ACEOF
8151 sed -n '
8153 s/^/S["/; s/!.*/"]=/
8156 s/^[^!]*!//
8157 :repl
8158 t repl
8159 s/'"$ac_delim"'$//
8160 t delim
8163 s/\(.\{148\}\).*/\1/
8164 t more1
8165 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8168 b repl
8169 :more1
8170 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8173 s/.\{148\}//
8174 t nl
8175 :delim
8177 s/\(.\{148\}\).*/\1/
8178 t more2
8179 s/["\\]/\\&/g; s/^/"/; s/$/"/
8182 :more2
8183 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8186 s/.\{148\}//
8187 t delim
8188 ' <conf$$subs.awk | sed '
8189 /^[^""]/{
8191 s/\n//
8193 ' >>$CONFIG_STATUS || ac_write_fail=1
8194 rm -f conf$$subs.awk
8195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8196 _ACAWK
8197 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8198 for (key in S) S_is_set[key] = 1
8199 FS = "\a"
8203 line = $ 0
8204 nfields = split(line, field, "@")
8205 substed = 0
8206 len = length(field[1])
8207 for (i = 2; i < nfields; i++) {
8208 key = field[i]
8209 keylen = length(key)
8210 if (S_is_set[key]) {
8211 value = S[key]
8212 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8213 len += length(value) + length(field[++i])
8214 substed = 1
8215 } else
8216 len += 1 + keylen
8219 print line
8222 _ACAWK
8223 _ACEOF
8224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8225 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8226 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8227 else
8229 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8230 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8231 _ACEOF
8233 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8234 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8235 # trailing colons and then remove the whole line if VPATH becomes empty
8236 # (actually we leave an empty line to preserve line numbers).
8237 if test "x$srcdir" = x.; then
8238 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8239 s/:*\$(srcdir):*/:/
8240 s/:*\${srcdir}:*/:/
8241 s/:*@srcdir@:*/:/
8242 s/^\([^=]*=[ ]*\):*/\1/
8243 s/:*$//
8244 s/^[^=]*=[ ]*$//
8248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8249 fi # test -n "$CONFIG_FILES"
8251 # Set up the scripts for CONFIG_HEADERS section.
8252 # No need to generate them if there are no CONFIG_HEADERS.
8253 # This happens for instance with `./config.status Makefile'.
8254 if test -n "$CONFIG_HEADERS"; then
8255 cat >"$tmp/defines.awk" <<\_ACAWK ||
8256 BEGIN {
8257 _ACEOF
8259 # Transform confdefs.h into an awk script `defines.awk', embedded as
8260 # here-document in config.status, that substitutes the proper values into
8261 # config.h.in to produce config.h.
8263 # Create a delimiter string that does not exist in confdefs.h, to ease
8264 # handling of long lines.
8265 ac_delim='%!_!# '
8266 for ac_last_try in false false :; do
8267 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8268 if test -z "$ac_t"; then
8269 break
8270 elif $ac_last_try; then
8271 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8272 else
8273 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8275 done
8277 # For the awk script, D is an array of macro values keyed by name,
8278 # likewise P contains macro parameters if any. Preserve backslash
8279 # newline sequences.
8281 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8282 sed -n '
8283 s/.\{148\}/&'"$ac_delim"'/g
8284 t rset
8285 :rset
8286 s/^[ ]*#[ ]*define[ ][ ]*/ /
8287 t def
8289 :def
8290 s/\\$//
8291 t bsnl
8292 s/["\\]/\\&/g
8293 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8294 D["\1"]=" \3"/p
8295 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8297 :bsnl
8298 s/["\\]/\\&/g
8299 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8300 D["\1"]=" \3\\\\\\n"\\/p
8301 t cont
8302 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8303 t cont
8305 :cont
8307 s/.\{148\}/&'"$ac_delim"'/g
8308 t clear
8309 :clear
8310 s/\\$//
8311 t bsnlc
8312 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8314 :bsnlc
8315 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8316 b cont
8317 ' <confdefs.h | sed '
8318 s/'"$ac_delim"'/"\\\
8319 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8322 for (key in D) D_is_set[key] = 1
8323 FS = "\a"
8325 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8326 line = \$ 0
8327 split(line, arg, " ")
8328 if (arg[1] == "#") {
8329 defundef = arg[2]
8330 mac1 = arg[3]
8331 } else {
8332 defundef = substr(arg[1], 2)
8333 mac1 = arg[2]
8335 split(mac1, mac2, "(") #)
8336 macro = mac2[1]
8337 prefix = substr(line, 1, index(line, defundef) - 1)
8338 if (D_is_set[macro]) {
8339 # Preserve the white space surrounding the "#".
8340 print prefix "define", macro P[macro] D[macro]
8341 next
8342 } else {
8343 # Replace #undef with comments. This is necessary, for example,
8344 # in the case of _POSIX_SOURCE, which is predefined and required
8345 # on some systems where configure will not decide to define it.
8346 if (defundef == "undef") {
8347 print "/*", prefix defundef, macro, "*/"
8348 next
8352 { print }
8353 _ACAWK
8354 _ACEOF
8355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8356 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8357 fi # test -n "$CONFIG_HEADERS"
8360 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8361 shift
8362 for ac_tag
8364 case $ac_tag in
8365 :[FHLC]) ac_mode=$ac_tag; continue;;
8366 esac
8367 case $ac_mode$ac_tag in
8368 :[FHL]*:*);;
8369 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8370 :[FH]-) ac_tag=-:-;;
8371 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8372 esac
8373 ac_save_IFS=$IFS
8374 IFS=:
8375 set x $ac_tag
8376 IFS=$ac_save_IFS
8377 shift
8378 ac_file=$1
8379 shift
8381 case $ac_mode in
8382 :L) ac_source=$1;;
8383 :[FH])
8384 ac_file_inputs=
8385 for ac_f
8387 case $ac_f in
8388 -) ac_f="$tmp/stdin";;
8389 *) # Look for the file first in the build tree, then in the source tree
8390 # (if the path is not absolute). The absolute path cannot be DOS-style,
8391 # because $ac_f cannot contain `:'.
8392 test -f "$ac_f" ||
8393 case $ac_f in
8394 [\\/$]*) false;;
8395 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8396 esac ||
8397 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8398 esac
8399 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8400 as_fn_append ac_file_inputs " '$ac_f'"
8401 done
8403 # Let's still pretend it is `configure' which instantiates (i.e., don't
8404 # use $as_me), people would be surprised to read:
8405 # /* config.h. Generated by config.status. */
8406 configure_input='Generated from '`
8407 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8408 `' by configure.'
8409 if test x"$ac_file" != x-; then
8410 configure_input="$ac_file. $configure_input"
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8412 $as_echo "$as_me: creating $ac_file" >&6;}
8414 # Neutralize special characters interpreted by sed in replacement strings.
8415 case $configure_input in #(
8416 *\&* | *\|* | *\\* )
8417 ac_sed_conf_input=`$as_echo "$configure_input" |
8418 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8419 *) ac_sed_conf_input=$configure_input;;
8420 esac
8422 case $ac_tag in
8423 *:-:* | *:-) cat >"$tmp/stdin" \
8424 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8425 esac
8427 esac
8429 ac_dir=`$as_dirname -- "$ac_file" ||
8430 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8431 X"$ac_file" : 'X\(//\)[^/]' \| \
8432 X"$ac_file" : 'X\(//\)$' \| \
8433 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8434 $as_echo X"$ac_file" |
8435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8436 s//\1/
8439 /^X\(\/\/\)[^/].*/{
8440 s//\1/
8443 /^X\(\/\/\)$/{
8444 s//\1/
8447 /^X\(\/\).*/{
8448 s//\1/
8451 s/.*/./; q'`
8452 as_dir="$ac_dir"; as_fn_mkdir_p
8453 ac_builddir=.
8455 case "$ac_dir" in
8456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8459 # A ".." for each directory in $ac_dir_suffix.
8460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8461 case $ac_top_builddir_sub in
8462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8464 esac ;;
8465 esac
8466 ac_abs_top_builddir=$ac_pwd
8467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8468 # for backward compatibility:
8469 ac_top_builddir=$ac_top_build_prefix
8471 case $srcdir in
8472 .) # We are building in place.
8473 ac_srcdir=.
8474 ac_top_srcdir=$ac_top_builddir_sub
8475 ac_abs_top_srcdir=$ac_pwd ;;
8476 [\\/]* | ?:[\\/]* ) # Absolute name.
8477 ac_srcdir=$srcdir$ac_dir_suffix;
8478 ac_top_srcdir=$srcdir
8479 ac_abs_top_srcdir=$srcdir ;;
8480 *) # Relative name.
8481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8482 ac_top_srcdir=$ac_top_build_prefix$srcdir
8483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8484 esac
8485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8488 case $ac_mode in
8491 # CONFIG_FILE
8494 case $INSTALL in
8495 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8496 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8497 esac
8498 _ACEOF
8500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8501 # If the template does not know about datarootdir, expand it.
8502 # FIXME: This hack should be removed a few years after 2.60.
8503 ac_datarootdir_hack=; ac_datarootdir_seen=
8504 ac_sed_dataroot='
8505 /datarootdir/ {
8509 /@datadir@/p
8510 /@docdir@/p
8511 /@infodir@/p
8512 /@localedir@/p
8513 /@mandir@/p'
8514 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8515 *datarootdir*) ac_datarootdir_seen=yes;;
8516 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8518 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8519 _ACEOF
8520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8521 ac_datarootdir_hack='
8522 s&@datadir@&$datadir&g
8523 s&@docdir@&$docdir&g
8524 s&@infodir@&$infodir&g
8525 s&@localedir@&$localedir&g
8526 s&@mandir@&$mandir&g
8527 s&\\\${datarootdir}&$datarootdir&g' ;;
8528 esac
8529 _ACEOF
8531 # Neutralize VPATH when `$srcdir' = `.'.
8532 # Shell code in configure.ac might set extrasub.
8533 # FIXME: do we really want to maintain this feature?
8534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8535 ac_sed_extra="$ac_vpsub
8536 $extrasub
8537 _ACEOF
8538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8540 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8541 s|@configure_input@|$ac_sed_conf_input|;t t
8542 s&@top_builddir@&$ac_top_builddir_sub&;t t
8543 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8544 s&@srcdir@&$ac_srcdir&;t t
8545 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8546 s&@top_srcdir@&$ac_top_srcdir&;t t
8547 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8548 s&@builddir@&$ac_builddir&;t t
8549 s&@abs_builddir@&$ac_abs_builddir&;t t
8550 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8551 s&@INSTALL@&$ac_INSTALL&;t t
8552 $ac_datarootdir_hack
8554 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8555 || as_fn_error "could not create $ac_file" "$LINENO" 5
8557 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8558 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8559 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8561 which seems to be undefined. Please make sure it is defined." >&5
8562 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8563 which seems to be undefined. Please make sure it is defined." >&2;}
8565 rm -f "$tmp/stdin"
8566 case $ac_file in
8567 -) cat "$tmp/out" && rm -f "$tmp/out";;
8568 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8569 esac \
8570 || as_fn_error "could not create $ac_file" "$LINENO" 5
8574 # CONFIG_HEADER
8576 if test x"$ac_file" != x-; then
8578 $as_echo "/* $configure_input */" \
8579 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8580 } >"$tmp/config.h" \
8581 || as_fn_error "could not create $ac_file" "$LINENO" 5
8582 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8584 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8585 else
8586 rm -f "$ac_file"
8587 mv "$tmp/config.h" "$ac_file" \
8588 || as_fn_error "could not create $ac_file" "$LINENO" 5
8590 else
8591 $as_echo "/* $configure_input */" \
8592 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8593 || as_fn_error "could not create -" "$LINENO" 5
8597 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8598 $as_echo "$as_me: executing $ac_file commands" >&6;}
8600 esac
8603 case $ac_file$ac_mode in
8604 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8605 "config.h":H) echo timestamp > stamp-h1 ;;
8607 esac
8608 done # for ac_tag
8611 as_fn_exit 0
8612 _ACEOF
8613 ac_clean_files=$ac_clean_files_save
8615 test $ac_write_fail = 0 ||
8616 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8619 # configure is writing to config.log, and then calls config.status.
8620 # config.status does its own redirection, appending to config.log.
8621 # Unfortunately, on DOS this fails, as config.log is still kept open
8622 # by configure, so config.status won't be able to write to it; its
8623 # output is simply discarded. So we exec the FD to /dev/null,
8624 # effectively closing config.log, so it can be properly (re)opened and
8625 # appended to by config.status. When coming back to configure, we
8626 # need to make the FD available again.
8627 if test "$no_create" != yes; then
8628 ac_cs_success=:
8629 ac_config_status_args=
8630 test "$silent" = yes &&
8631 ac_config_status_args="$ac_config_status_args --quiet"
8632 exec 5>/dev/null
8633 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8634 exec 5>>config.log
8635 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8636 # would make configure fail if this is the last instruction.
8637 $ac_cs_success || as_fn_exit $?
8639 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8641 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}