2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.64 for utakata 0.0.1.
5 @%:@ Report bugs to <BUG-REPORT-ADDRESS>.
7 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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 :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in @%:@(
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
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 || :
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 :
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+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in @%:@(
147 set -o posix ;; @%:@(
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; }
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 :
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 :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
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 :
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
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.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
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."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and BUG-REPORT-ADDRESS
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
241 SHELL=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
252 @%:@ Portably unset VAR.
255 { eval $1=; unset $1;}
259 @%:@ as_fn_set_status STATUS
260 @%:@ -----------------------
261 @%:@ Set $? to STATUS, without forking.
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.
279 @%:@ Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir=./$as_dir;;
286 test -d "$as_dir" || eval $as_mkdir_p || {
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
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 ()
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 :
355 as_val=`expr "$@" || test $? -eq 1`
360 @%:@ as_fn_error ERROR [LINENO LOG_FD]
361 @%:@ ---------------------------------
362 @%:@ Output "`basename @S|@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.
367 as_status=$?; test $as_status -eq 0 && as_status=1
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
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
449 # Exit status is that of the last command.
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in @%:@(((((
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
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
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 ||
482 elif ln conf$$.file conf$$ 2>/dev/null; then
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"'
496 test -d ./-p && rmdir ./-p
500 if test -x / >/dev/null 2>&1; then
503 if ls -dL / >/dev/null 2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
517 ???[sx]*):;;*)false;;esac;fi
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
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`
540 ac_default_prefix=/usr/local
542 ac_config_libobj_dir=.
549 # Identity of this package.
550 PACKAGE_NAME='utakata'
551 PACKAGE_TARNAME='utakata'
552 PACKAGE_VERSION='0.0.1'
553 PACKAGE_STRING='utakata 0.0.1'
554 PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
558 # Factoring default headers for most tests.
559 ac_includes_default="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_subst_vars='LTLIBOBJS
636 program_transform_name
649 enable_option_checking
651 ac_precious_vars='build_alias
665 # Initialize some variables set by options.
667 ac_init_version=false
668 ac_unrecognized_opts=
670 # The variables have the same names as the options, with
671 # dashes changed to underlines.
679 program_transform_name=s,x,x,
687 # Installation directory options.
688 # These are left unexpanded so users can "make install exec_prefix=/foo"
689 # and all the variables that are supposed to be based on exec_prefix
690 # by default will actually change.
691 # Use braces instead of parens because sh, perl, etc. also accept them.
692 # (The list follows the same order as the GNU Coding Standards.)
693 bindir='${exec_prefix}/bin'
694 sbindir='${exec_prefix}/sbin'
695 libexecdir='${exec_prefix}/libexec'
696 datarootdir='${prefix}/share'
697 datadir='${datarootdir}'
698 sysconfdir='${prefix}/etc'
699 sharedstatedir='${prefix}/com'
700 localstatedir='${prefix}/var'
701 includedir='${prefix}/include'
702 oldincludedir='/usr/include'
703 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
704 infodir='${datarootdir}/info'
709 libdir='${exec_prefix}/lib'
710 localedir='${datarootdir}/locale'
711 mandir='${datarootdir}/man'
717 # If the previous option needs an argument, assign it.
718 if test -n "$ac_prev"; then
719 eval $ac_prev=\$ac_option
725 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
729 # Accept the important Cygnus configure options, so we can diagnose typos.
731 case $ac_dashdash$ac_option in
735 -bindir | --bindir | --bindi | --bind | --bin | --bi)
737 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
740 -build | --build | --buil | --bui | --bu)
741 ac_prev=build_alias ;;
742 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
743 build_alias=$ac_optarg ;;
745 -cache-file | --cache-file | --cache-fil | --cache-fi \
746 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
747 ac_prev=cache_file ;;
748 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
749 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
750 cache_file=$ac_optarg ;;
753 cache_file=config.cache ;;
755 -datadir | --datadir | --datadi | --datad)
757 -datadir=* | --datadir=* | --datadi=* | --datad=*)
758 datadir=$ac_optarg ;;
760 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
761 | --dataroo | --dataro | --datar)
762 ac_prev=datarootdir ;;
763 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
764 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
765 datarootdir=$ac_optarg ;;
767 -disable-* | --disable-*)
768 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
769 # Reject names that are not valid shell variable names.
770 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
771 as_fn_error "invalid feature name: $ac_useropt"
772 ac_useropt_orig=$ac_useropt
773 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
774 case $ac_user_opts in
778 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
779 ac_unrecognized_sep=', ';;
781 eval enable_$ac_useropt=no ;;
783 -docdir | --docdir | --docdi | --doc | --do)
785 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
788 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
790 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
793 -enable-* | --enable-*)
794 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795 # Reject names that are not valid shell variable names.
796 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
797 as_fn_error "invalid feature name: $ac_useropt"
798 ac_useropt_orig=$ac_useropt
799 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
800 case $ac_user_opts in
804 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
805 ac_unrecognized_sep=', ';;
807 eval enable_$ac_useropt=\$ac_optarg ;;
809 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
810 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
811 | --exec | --exe | --ex)
812 ac_prev=exec_prefix ;;
813 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
814 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
815 | --exec=* | --exe=* | --ex=*)
816 exec_prefix=$ac_optarg ;;
818 -gas | --gas | --ga | --g)
819 # Obsolete; use --with-gas.
822 -help | --help | --hel | --he | -h)
824 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
825 ac_init_help=recursive ;;
826 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
827 ac_init_help=short ;;
829 -host | --host | --hos | --ho)
830 ac_prev=host_alias ;;
831 -host=* | --host=* | --hos=* | --ho=*)
832 host_alias=$ac_optarg ;;
834 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
836 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
838 htmldir=$ac_optarg ;;
840 -includedir | --includedir | --includedi | --included | --include \
841 | --includ | --inclu | --incl | --inc)
842 ac_prev=includedir ;;
843 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
844 | --includ=* | --inclu=* | --incl=* | --inc=*)
845 includedir=$ac_optarg ;;
847 -infodir | --infodir | --infodi | --infod | --info | --inf)
849 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
850 infodir=$ac_optarg ;;
852 -libdir | --libdir | --libdi | --libd)
854 -libdir=* | --libdir=* | --libdi=* | --libd=*)
857 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
858 | --libexe | --libex | --libe)
859 ac_prev=libexecdir ;;
860 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
861 | --libexe=* | --libex=* | --libe=*)
862 libexecdir=$ac_optarg ;;
864 -localedir | --localedir | --localedi | --localed | --locale)
866 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
867 localedir=$ac_optarg ;;
869 -localstatedir | --localstatedir | --localstatedi | --localstated \
870 | --localstate | --localstat | --localsta | --localst | --locals)
871 ac_prev=localstatedir ;;
872 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
873 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
874 localstatedir=$ac_optarg ;;
876 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
878 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
882 # Obsolete; use --without-fp.
885 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
886 | --no-cr | --no-c | -n)
889 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
890 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
893 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
894 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
895 | --oldin | --oldi | --old | --ol | --o)
896 ac_prev=oldincludedir ;;
897 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
898 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
899 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
900 oldincludedir=$ac_optarg ;;
902 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
904 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
907 -program-prefix | --program-prefix | --program-prefi | --program-pref \
908 | --program-pre | --program-pr | --program-p)
909 ac_prev=program_prefix ;;
910 -program-prefix=* | --program-prefix=* | --program-prefi=* \
911 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
912 program_prefix=$ac_optarg ;;
914 -program-suffix | --program-suffix | --program-suffi | --program-suff \
915 | --program-suf | --program-su | --program-s)
916 ac_prev=program_suffix ;;
917 -program-suffix=* | --program-suffix=* | --program-suffi=* \
918 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
919 program_suffix=$ac_optarg ;;
921 -program-transform-name | --program-transform-name \
922 | --program-transform-nam | --program-transform-na \
923 | --program-transform-n | --program-transform- \
924 | --program-transform | --program-transfor \
925 | --program-transfo | --program-transf \
926 | --program-trans | --program-tran \
927 | --progr-tra | --program-tr | --program-t)
928 ac_prev=program_transform_name ;;
929 -program-transform-name=* | --program-transform-name=* \
930 | --program-transform-nam=* | --program-transform-na=* \
931 | --program-transform-n=* | --program-transform-=* \
932 | --program-transform=* | --program-transfor=* \
933 | --program-transfo=* | --program-transf=* \
934 | --program-trans=* | --program-tran=* \
935 | --progr-tra=* | --program-tr=* | --program-t=*)
936 program_transform_name=$ac_optarg ;;
938 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
940 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
943 -psdir | --psdir | --psdi | --psd | --ps)
945 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
949 | -silent | --silent | --silen | --sile | --sil)
952 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
954 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
956 sbindir=$ac_optarg ;;
958 -sharedstatedir | --sharedstatedir | --sharedstatedi \
959 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
960 | --sharedst | --shareds | --shared | --share | --shar \
962 ac_prev=sharedstatedir ;;
963 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
964 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
965 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
967 sharedstatedir=$ac_optarg ;;
969 -site | --site | --sit)
971 -site=* | --site=* | --sit=*)
974 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
976 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
980 | --syscon | --sysco | --sysc | --sys | --sy)
981 ac_prev=sysconfdir ;;
982 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
983 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
984 sysconfdir=$ac_optarg ;;
986 -target | --target | --targe | --targ | --tar | --ta | --t)
987 ac_prev=target_alias ;;
988 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
989 target_alias=$ac_optarg ;;
991 -v | -verbose | --verbose | --verbos | --verbo | --verb)
994 -version | --version | --versio | --versi | --vers | -V)
998 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 as_fn_error "invalid package name: $ac_useropt"
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1011 eval with_$ac_useropt=\$ac_optarg ;;
1013 -without-* | --without-*)
1014 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 as_fn_error "invalid package name: $ac_useropt"
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1027 eval with_$ac_useropt=no ;;
1030 # Obsolete; use --with-x.
1033 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1034 | --x-incl | --x-inc | --x-in | --x-i)
1035 ac_prev=x_includes ;;
1036 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1037 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1038 x_includes=$ac_optarg ;;
1040 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1041 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1042 ac_prev=x_libraries ;;
1043 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1044 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1045 x_libraries=$ac_optarg ;;
1047 -*) as_fn_error "unrecognized option: \`$ac_option'
1048 Try \`$0 --help' for more information."
1052 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1053 # Reject names that are not valid shell variable names.
1054 case $ac_envvar in #(
1055 '' | [0-9]* | *[!_$as_cr_alnum]* )
1056 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1058 eval $ac_envvar=\$ac_optarg
1059 export $ac_envvar ;;
1062 # FIXME: should be removed in autoconf 3.0.
1063 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1064 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1066 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1072 if test -n "$ac_prev"; then
1073 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1074 as_fn_error "missing argument to $ac_option"
1077 if test -n "$ac_unrecognized_opts"; then
1078 case $enable_option_checking in
1080 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1081 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1085 # Check all directory arguments for consistency.
1086 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1087 datadir sysconfdir sharedstatedir localstatedir includedir \
1088 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1089 libdir localedir mandir
1091 eval ac_val=\$$ac_var
1092 # Remove trailing slashes.
1095 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1096 eval $ac_var=\$ac_val;;
1098 # Be sure to have absolute directory names.
1100 [\\/$]* | ?:[\\/]* ) continue;;
1101 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1103 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1106 # There might be people who depend on the old broken behavior: `$host'
1107 # used to hold the argument of --host etc.
1108 # FIXME: To remove some day.
1111 target=$target_alias
1113 # FIXME: To remove some day.
1114 if test "x$host_alias" != x; then
1115 if test "x$build_alias" = x; then
1116 cross_compiling=maybe
1117 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1118 If a cross compiler is detected then cross compile mode will be used." >&2
1119 elif test "x$build_alias" != "x$host_alias"; then
1125 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1127 test "$silent" = yes && exec 6>/dev/null
1130 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1131 ac_ls_di=`ls -di .` &&
1132 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1133 as_fn_error "working directory cannot be determined"
1134 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1135 as_fn_error "pwd does not report name of working directory"
1138 # Find the source files, if location was not specified.
1139 if test -z "$srcdir"; then
1140 ac_srcdir_defaulted=yes
1141 # Try the directory containing this script, then the parent directory.
1142 ac_confdir=`$as_dirname -- "$as_myself" ||
1143 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1144 X"$as_myself" : 'X\(//\)[^/]' \| \
1145 X"$as_myself" : 'X\(//\)$' \| \
1146 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1147 $as_echo X"$as_myself" |
1148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1166 if test ! -r "$srcdir/$ac_unique_file"; then
1170 ac_srcdir_defaulted=no
1172 if test ! -r "$srcdir/$ac_unique_file"; then
1173 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1174 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1176 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1178 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1180 # When building in place, set srcdir=.
1181 if test "$ac_abs_confdir" = "$ac_pwd"; then
1184 # Remove unnecessary trailing slashes from srcdir.
1185 # Double slashes in file names in object file debugging info
1186 # mess up M-x gdb in Emacs.
1188 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1190 for ac_var in $ac_precious_vars; do
1191 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1192 eval ac_env_${ac_var}_value=\$${ac_var}
1193 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1194 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1198 # Report the --help message.
1200 if test "$ac_init_help" = "long"; then
1201 # Omit some internal or obsolete options to make the list less imposing.
1202 # This message is too long to be a string in the A/UX 3.1 sh.
1204 \`configure' configures utakata 0.0.1 to adapt to many kinds of systems.
1206 Usage: $0 [OPTION]... [VAR=VALUE]...
1208 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1209 VAR=VALUE. See below for descriptions of some of the useful variables.
1211 Defaults for the options are specified in brackets.
1214 -h, --help display this help and exit
1215 --help=short display options specific to this package
1216 --help=recursive display the short help of all the included packages
1217 -V, --version display version information and exit
1218 -q, --quiet, --silent do not print \`checking...' messages
1219 --cache-file=FILE cache test results in FILE [disabled]
1220 -C, --config-cache alias for \`--cache-file=config.cache'
1221 -n, --no-create do not create output files
1222 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1224 Installation directories:
1225 --prefix=PREFIX install architecture-independent files in PREFIX
1226 [$ac_default_prefix]
1227 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1230 By default, \`make install' will install all the files in
1231 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1232 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1233 for instance \`--prefix=\$HOME'.
1235 For better control, use the options below.
1237 Fine tuning of the installation directories:
1238 --bindir=DIR user executables [EPREFIX/bin]
1239 --sbindir=DIR system admin executables [EPREFIX/sbin]
1240 --libexecdir=DIR program executables [EPREFIX/libexec]
1241 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1242 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1243 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1244 --libdir=DIR object code libraries [EPREFIX/lib]
1245 --includedir=DIR C header files [PREFIX/include]
1246 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1247 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1248 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1249 --infodir=DIR info documentation [DATAROOTDIR/info]
1250 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1251 --mandir=DIR man documentation [DATAROOTDIR/man]
1252 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/utakata@:>@
1253 --htmldir=DIR html documentation [DOCDIR]
1254 --dvidir=DIR dvi documentation [DOCDIR]
1255 --pdfdir=DIR pdf documentation [DOCDIR]
1256 --psdir=DIR ps documentation [DOCDIR]
1263 if test -n "$ac_init_help"; then
1264 case $ac_init_help in
1265 short | recursive ) echo "Configuration of utakata 0.0.1:";;
1269 Some influential environment variables:
1270 CXX C++ compiler command
1271 CXXFLAGS C++ compiler flags
1272 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1273 nonstandard directory <lib dir>
1274 LIBS libraries to pass to the linker, e.g. -l<library>
1275 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1276 you have headers in a nonstandard directory <include dir>
1277 CC C compiler command
1278 CFLAGS C compiler flags
1281 Use these variables to override the choices made by `configure' or to help
1282 it to find libraries and programs with nonstandard names/locations.
1284 Report bugs to <BUG-REPORT-ADDRESS>.
1289 if test "$ac_init_help" = "recursive"; then
1290 # If there are subdirs, report their specific --help.
1291 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1292 test -d "$ac_dir" ||
1293 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1298 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1300 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1301 # A ".." for each directory in $ac_dir_suffix.
1302 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1303 case $ac_top_builddir_sub in
1304 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1305 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1308 ac_abs_top_builddir=$ac_pwd
1309 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1310 # for backward compatibility:
1311 ac_top_builddir=$ac_top_build_prefix
1314 .) # We are building in place.
1316 ac_top_srcdir=$ac_top_builddir_sub
1317 ac_abs_top_srcdir=$ac_pwd ;;
1318 [\\/]* | ?:[\\/]* ) # Absolute name.
1319 ac_srcdir=$srcdir$ac_dir_suffix;
1320 ac_top_srcdir=$srcdir
1321 ac_abs_top_srcdir=$srcdir ;;
1323 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1324 ac_top_srcdir=$ac_top_build_prefix$srcdir
1325 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1327 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1329 cd "$ac_dir" || { ac_status=$?; continue; }
1330 # Check for guested configure.
1331 if test -f "$ac_srcdir/configure.gnu"; then
1333 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1334 elif test -f "$ac_srcdir/configure"; then
1336 $SHELL "$ac_srcdir/configure" --help=recursive
1338 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1340 cd "$ac_pwd" || { ac_status=$?; break; }
1344 test -n "$ac_init_help" && exit $ac_status
1345 if $ac_init_version; then
1347 utakata configure 0.0.1
1348 generated by GNU Autoconf 2.64
1350 Copyright (C) 2009 Free Software Foundation, Inc.
1351 This configure script is free software; the Free Software Foundation
1352 gives unlimited permission to copy, distribute and modify it.
1357 ## ------------------------ ##
1358 ## Autoconf initialization. ##
1359 ## ------------------------ ##
1361 @%:@ ac_fn_cxx_try_compile LINENO
1362 @%:@ ----------------------------
1363 @%:@ Try to compile conftest.$ac_ext, and return whether this succeeded.
1364 ac_fn_cxx_try_compile ()
1366 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1367 rm -f conftest.$ac_objext
1368 if { { ac_try="$ac_compile"
1370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1371 *) ac_try_echo=$ac_try;;
1373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1374 $as_echo "$ac_try_echo"; } >&5
1375 (eval "$ac_compile") 2>conftest.err
1377 if test -s conftest.err; then
1378 grep -v '^ *+' conftest.err >conftest.er1
1379 cat conftest.er1 >&5
1380 mv -f conftest.er1 conftest.err
1382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1383 test $ac_status = 0; } && {
1384 test -z "$ac_cxx_werror_flag" ||
1385 test ! -s conftest.err
1386 } && test -s conftest.$ac_objext; then :
1389 $as_echo "$as_me: failed program was:" >&5
1390 sed 's/^/| /' conftest.$ac_ext >&5
1394 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1397 } @%:@ ac_fn_cxx_try_compile
1399 @%:@ ac_fn_c_try_compile LINENO
1400 @%:@ --------------------------
1401 @%:@ Try to compile conftest.$ac_ext, and return whether this succeeded.
1402 ac_fn_c_try_compile ()
1404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1405 rm -f conftest.$ac_objext
1406 if { { ac_try="$ac_compile"
1408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1409 *) ac_try_echo=$ac_try;;
1411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1412 $as_echo "$ac_try_echo"; } >&5
1413 (eval "$ac_compile") 2>conftest.err
1415 if test -s conftest.err; then
1416 grep -v '^ *+' conftest.err >conftest.er1
1417 cat conftest.er1 >&5
1418 mv -f conftest.er1 conftest.err
1420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1421 test $ac_status = 0; } && {
1422 test -z "$ac_c_werror_flag" ||
1423 test ! -s conftest.err
1424 } && test -s conftest.$ac_objext; then :
1427 $as_echo "$as_me: failed program was:" >&5
1428 sed 's/^/| /' conftest.$ac_ext >&5
1432 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1435 } @%:@ ac_fn_c_try_compile
1437 @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1438 @%:@ -------------------------------------------
1439 @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
1440 @%:@ variable VAR accordingly.
1441 ac_fn_c_check_type ()
1443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1445 $as_echo_n "checking for $2... " >&6; }
1446 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1447 $as_echo_n "(cached) " >&6
1450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1451 /* end confdefs.h. */
1462 if ac_fn_c_try_compile "$LINENO"; then :
1463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1464 /* end confdefs.h. */
1475 if ac_fn_c_try_compile "$LINENO"; then :
1480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1486 $as_echo "$ac_res" >&6; }
1487 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1489 } @%:@ ac_fn_c_check_type
1491 @%:@ ac_fn_c_try_cpp LINENO
1492 @%:@ ----------------------
1493 @%:@ Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 if { { ac_try="$ac_cpp conftest.$ac_ext"
1499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500 *) ac_try_echo=$ac_try;;
1502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503 $as_echo "$ac_try_echo"; } >&5
1504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1506 if test -s conftest.err; then
1507 grep -v '^ *+' conftest.err >conftest.er1
1508 cat conftest.er1 >&5
1509 mv -f conftest.er1 conftest.err
1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512 test $ac_status = 0; } >/dev/null && {
1513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1514 test ! -s conftest.err
1518 $as_echo "$as_me: failed program was:" >&5
1519 sed 's/^/| /' conftest.$ac_ext >&5
1523 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1526 } @%:@ ac_fn_c_try_cpp
1528 @%:@ ac_fn_c_try_run LINENO
1529 @%:@ ----------------------
1530 @%:@ Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1531 @%:@ that executables *can* be run.
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 if { { ac_try="$ac_link"
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_link") 2>&5
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1546 { { case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_try") 2>&5
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; }; }; then :
1558 $as_echo "$as_me: program exited with status $ac_status" >&5
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1562 ac_retval=$ac_status
1564 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1568 } @%:@ ac_fn_c_try_run
1570 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1571 @%:@ -------------------------------------------------------
1572 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1573 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1574 ac_fn_c_check_header_compile ()
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1578 $as_echo_n "checking for $2... " >&6; }
1579 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1580 $as_echo_n "(cached) " >&6
1582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1583 /* end confdefs.h. */
1587 if ac_fn_c_try_compile "$LINENO"; then :
1592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1596 $as_echo "$ac_res" >&6; }
1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1599 } @%:@ ac_fn_c_check_header_compile
1600 cat >config.log <<_ACEOF
1601 This file contains any messages produced by compilers while
1602 running configure, to aid debugging if configure makes a mistake.
1604 It was created by utakata $as_me 0.0.1, which was
1605 generated by GNU Autoconf 2.64. Invocation command line was
1617 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1618 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1619 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1620 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1621 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1623 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1624 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1626 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1627 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1628 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1629 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1630 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1631 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1632 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 test -z "$as_dir" && as_dir=.
1641 $as_echo "PATH: $as_dir"
1657 # Keep a trace of the command line.
1658 # Strip out --no-create and --no-recursion so they do not pile up.
1659 # Strip out --silent because we don't want to record it for future runs.
1660 # Also quote any args containing shell meta-characters.
1661 # Make two passes to allow for proper duplicate-argument suppression.
1665 ac_must_keep_next=false
1671 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1673 | -silent | --silent | --silen | --sile | --sil)
1676 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1679 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1681 as_fn_append ac_configure_args1 " '$ac_arg'"
1682 if test $ac_must_keep_next = true; then
1683 ac_must_keep_next=false # Got value, back to normal.
1686 *=* | --config-cache | -C | -disable-* | --disable-* \
1687 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1688 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1689 | -with-* | --with-* | -without-* | --without-* | --x)
1690 case "$ac_configure_args0 " in
1691 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1694 -* ) ac_must_keep_next=true ;;
1697 as_fn_append ac_configure_args " '$ac_arg'"
1702 { ac_configure_args0=; unset ac_configure_args0;}
1703 { ac_configure_args1=; unset ac_configure_args1;}
1705 # When interrupted or exit'd, cleanup temporary files, and complete
1706 # config.log. We remove comments because anyway the quotes in there
1707 # would cause problems or look ugly.
1708 # WARNING: Use '\'' to represent an apostrophe within the trap.
1709 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1710 trap 'exit_status=$?
1711 # Save into config.log some information that might help in debugging.
1716 ## ---------------- ##
1717 ## Cache variables. ##
1718 ## ---------------- ##
1721 # The following way of writing the cache mishandles newlines in values,
1723 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1724 eval ac_val=\$$ac_var
1728 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1729 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1732 _ | IFS | as_nl) ;; #(
1733 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1734 *) { eval $ac_var=; unset $ac_var;} ;;
1739 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1740 *${as_nl}ac_space=\ *)
1742 "s/'\''/'\''\\\\'\'''\''/g;
1743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1754 ## ----------------- ##
1755 ## Output variables. ##
1756 ## ----------------- ##
1759 for ac_var in $ac_subst_vars
1761 eval ac_val=\$$ac_var
1763 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 $as_echo "$ac_var='\''$ac_val'\''"
1769 if test -n "$ac_subst_files"; then
1771 ## ------------------- ##
1772 ## File substitutions. ##
1773 ## ------------------- ##
1776 for ac_var in $ac_subst_files
1778 eval ac_val=\$$ac_var
1780 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782 $as_echo "$ac_var='\''$ac_val'\''"
1787 if test -s confdefs.h; then
1797 test "$ac_signal" != 0 &&
1798 $as_echo "$as_me: caught signal $ac_signal"
1799 $as_echo "$as_me: exit $exit_status"
1801 rm -f core *.core core.conftest.* &&
1802 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1805 for ac_signal in 1 2 13 15; do
1806 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1810 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1811 rm -f -r conftest* confdefs.h
1813 $as_echo "/* confdefs.h */" > confdefs.h
1815 # Predefined preprocessor variables.
1817 cat >>confdefs.h <<_ACEOF
1818 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1821 cat >>confdefs.h <<_ACEOF
1822 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1825 cat >>confdefs.h <<_ACEOF
1826 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1829 cat >>confdefs.h <<_ACEOF
1830 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1833 cat >>confdefs.h <<_ACEOF
1834 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1837 cat >>confdefs.h <<_ACEOF
1838 @%:@define PACKAGE_URL "$PACKAGE_URL"
1842 # Let the site file select an alternate cache file if it wants to.
1843 # Prefer an explicitly selected file to automatically selected ones.
1846 if test -n "$CONFIG_SITE"; then
1847 ac_site_file1=$CONFIG_SITE
1848 elif test "x$prefix" != xNONE; then
1849 ac_site_file1=$prefix/share/config.site
1850 ac_site_file2=$prefix/etc/config.site
1852 ac_site_file1=$ac_default_prefix/share/config.site
1853 ac_site_file2=$ac_default_prefix/etc/config.site
1855 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1857 test "x$ac_site_file" = xNONE && continue
1858 if test -r "$ac_site_file"; then
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1860 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1861 sed 's/^/| /' "$ac_site_file" >&5
1866 if test -r "$cache_file"; then
1867 # Some versions of bash will fail to source /dev/null (special
1868 # files actually), so we avoid doing that.
1869 if test -f "$cache_file"; then
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1871 $as_echo "$as_me: loading cache $cache_file" >&6;}
1873 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1874 *) . "./$cache_file";;
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1879 $as_echo "$as_me: creating cache $cache_file" >&6;}
1883 # Check that the precious variables saved in the cache have kept the same
1885 ac_cache_corrupted=false
1886 for ac_var in $ac_precious_vars; do
1887 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1888 eval ac_new_set=\$ac_env_${ac_var}_set
1889 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1890 eval ac_new_val=\$ac_env_${ac_var}_value
1891 case $ac_old_set,$ac_new_set in
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1894 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1895 ac_cache_corrupted=: ;;
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1898 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1899 ac_cache_corrupted=: ;;
1902 if test "x$ac_old_val" != "x$ac_new_val"; then
1903 # differences in whitespace do not lead to failure.
1904 ac_old_val_w=`echo x $ac_old_val`
1905 ac_new_val_w=`echo x $ac_new_val`
1906 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1908 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1909 ac_cache_corrupted=:
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1912 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1913 eval $ac_var=\$ac_old_val
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1916 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1918 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1921 # Pass precious variables to config.status.
1922 if test "$ac_new_set" = set; then
1924 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1925 *) ac_arg=$ac_var=$ac_new_val ;;
1927 case " $ac_configure_args " in
1928 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1929 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1933 if $ac_cache_corrupted; then
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1937 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1938 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1940 ## -------------------- ##
1941 ## Main body of script. ##
1942 ## -------------------- ##
1945 ac_cpp='$CPP $CPPFLAGS'
1946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1952 ac_config_headers="$ac_config_headers config.h"
1955 # Checks for programs.
1957 ac_cpp='$CXXCPP $CPPFLAGS'
1958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1961 if test -z "$CXX"; then
1962 if test -n "$CCC"; then
1965 if test -n "$ac_tool_prefix"; then
1966 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1971 $as_echo_n "checking for $ac_word... " >&6; }
1972 if test "${ac_cv_prog_CXX+set}" = set; then :
1973 $as_echo_n "(cached) " >&6
1975 if test -n "$CXX"; then
1976 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1985 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 if test -n "$CXX"; then
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
1998 $as_echo "$CXX" >&6; }
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2001 $as_echo "no" >&6; }
2005 test -n "$CXX" && break
2008 if test -z "$CXX"; then
2010 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2012 # Extract the first word of "$ac_prog", so it can be a program name with args.
2013 set dummy $ac_prog; ac_word=$2
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2015 $as_echo_n "checking for $ac_word... " >&6; }
2016 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2017 $as_echo_n "(cached) " >&6
2019 if test -n "$ac_ct_CXX"; then
2020 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 test -z "$as_dir" && as_dir=.
2027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2029 ac_cv_prog_ac_ct_CXX="$ac_prog"
2030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2040 if test -n "$ac_ct_CXX"; then
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2042 $as_echo "$ac_ct_CXX" >&6; }
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2045 $as_echo "no" >&6; }
2049 test -n "$ac_ct_CXX" && break
2052 if test "x$ac_ct_CXX" = x; then
2055 case $cross_compiling:$ac_tool_warned in
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2059 ac_tool_warned=yes ;;
2067 # Provide some information about the compiler.
2068 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2071 for ac_option in --version -v -V -qversion; do
2072 { { ac_try="$ac_compiler $ac_option >&5"
2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075 *) ac_try_echo=$ac_try;;
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2081 if test -s conftest.err; then
2083 ... rest of stderr output deleted ...
2084 10q' conftest.err >conftest.er1
2085 cat conftest.er1 >&5
2086 rm -f conftest.er1 conftest.err
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; }
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2094 @%:@include <stdio.h>
2098 FILE *f = fopen ("conftest.out", "w");
2099 return ferror (f) || fclose (f) != 0;
2105 ac_clean_files_save=$ac_clean_files
2106 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2107 # Try to create an executable without -o first, disregard a.out.
2108 # It will help us diagnose broken compilers, and finding out an intuition
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2111 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2112 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2114 # The possible output files:
2115 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2118 for ac_file in $ac_files
2121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2122 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2127 if { { ac_try="$ac_link_default"
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_link_default") 2>&5
2136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137 test $ac_status = 0; }; then :
2138 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2139 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2140 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2141 # so that the user can short-circuit this test for compilers unknown to
2143 for ac_file in $ac_files ''
2145 test -f "$ac_file" || continue
2147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2150 # We found the default executable, but exeext='' is most
2154 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2156 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2158 # We set ac_cv_exeext here because the later test for it is not
2159 # safe: cross compilers may not add the suffix if given an `-o'
2160 # argument, so we may need to know it at that point already.
2161 # Even if this section looks crufty: it has the advantage of
2168 test "$ac_cv_exeext" = no && ac_cv_exeext=
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2174 $as_echo "$ac_file" >&6; }
2175 if test -z "$ac_file"; then :
2176 $as_echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2181 { as_fn_set_status 77
2182 as_fn_error "C++ compiler cannot create executables
2183 See \`config.log' for more details." "$LINENO" 5; }; }
2185 ac_exeext=$ac_cv_exeext
2187 # Check that the compiler produces executables we can run. If not, either
2188 # the compiler is broken, or we cross compile.
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2190 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2191 # If not cross compiling, check that we can run a simple program.
2192 if test "$cross_compiling" != yes; then
2193 if { ac_try='./$ac_file'
2194 { { case "(($ac_try" in
2195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196 *) ac_try_echo=$ac_try;;
2198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199 $as_echo "$ac_try_echo"; } >&5
2200 (eval "$ac_try") 2>&5
2202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2203 test $ac_status = 0; }; }; then
2206 if test "$cross_compiling" = maybe; then
2209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2211 as_fn_error "cannot run C++ compiled programs.
2212 If you meant to cross compile, use \`--host'.
2213 See \`config.log' for more details." "$LINENO" 5; }
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2218 $as_echo "yes" >&6; }
2220 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2221 ac_clean_files=$ac_clean_files_save
2222 # Check that the compiler produces executables we can run. If not, either
2223 # the compiler is broken, or we cross compile.
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2225 $as_echo_n "checking whether we are cross compiling... " >&6; }
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2227 $as_echo "$cross_compiling" >&6; }
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2230 $as_echo_n "checking for suffix of executables... " >&6; }
2231 if { { ac_try="$ac_link"
2233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2234 *) ac_try_echo=$ac_try;;
2236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2237 $as_echo "$ac_try_echo"; } >&5
2238 (eval "$ac_link") 2>&5
2240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2241 test $ac_status = 0; }; then :
2242 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2243 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2244 # work properly (i.e., refer to `conftest.exe'), while it won't with
2246 for ac_file in conftest.exe conftest conftest.*; do
2247 test -f "$ac_file" || continue
2249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2250 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2258 as_fn_error "cannot compute suffix of executables: cannot compile and link
2259 See \`config.log' for more details." "$LINENO" 5; }
2261 rm -f conftest$ac_cv_exeext
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2263 $as_echo "$ac_cv_exeext" >&6; }
2265 rm -f conftest.$ac_ext
2266 EXEEXT=$ac_cv_exeext
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2269 $as_echo_n "checking for suffix of object files... " >&6; }
2270 if test "${ac_cv_objext+set}" = set; then :
2271 $as_echo_n "(cached) " >&6
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2284 rm -f conftest.o conftest.obj
2285 if { { ac_try="$ac_compile"
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291 $as_echo "$ac_try_echo"; } >&5
2292 (eval "$ac_compile") 2>&5
2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295 test $ac_status = 0; }; then :
2296 for ac_file in conftest.o conftest.obj conftest.*; do
2297 test -f "$ac_file" || continue;
2299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2300 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2305 $as_echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310 as_fn_error "cannot compute suffix of object files: cannot compile
2311 See \`config.log' for more details." "$LINENO" 5; }
2313 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2316 $as_echo "$ac_cv_objext" >&6; }
2317 OBJEXT=$ac_cv_objext
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2320 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2321 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
2322 $as_echo_n "(cached) " >&6
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2338 if ac_fn_cxx_try_compile "$LINENO"; then :
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2348 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2349 if test $ac_compiler_gnu = yes; then
2354 ac_test_CXXFLAGS=${CXXFLAGS+set}
2355 ac_save_CXXFLAGS=$CXXFLAGS
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2357 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2358 if test "${ac_cv_prog_cxx_g+set}" = set; then :
2359 $as_echo_n "(cached) " >&6
2361 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2362 ac_cxx_werror_flag=yes
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2376 if ac_fn_cxx_try_compile "$LINENO"; then :
2377 ac_cv_prog_cxx_g=yes
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2391 if ac_fn_cxx_try_compile "$LINENO"; then :
2394 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2407 if ac_fn_cxx_try_compile "$LINENO"; then :
2408 ac_cv_prog_cxx_g=yes
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2418 $as_echo "$ac_cv_prog_cxx_g" >&6; }
2419 if test "$ac_test_CXXFLAGS" = set; then
2420 CXXFLAGS=$ac_save_CXXFLAGS
2421 elif test $ac_cv_prog_cxx_g = yes; then
2422 if test "$GXX" = yes; then
2428 if test "$GXX" = yes; then
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441 ac_cpp='$CPP $CPPFLAGS'
2442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2445 if test -n "$ac_tool_prefix"; then
2446 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2447 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2449 $as_echo_n "checking for $ac_word... " >&6; }
2450 if test "${ac_cv_prog_CC+set}" = set; then :
2451 $as_echo_n "(cached) " >&6
2453 if test -n "$CC"; then
2454 ac_cv_prog_CC="$CC" # Let the user override the test.
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2463 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 if test -n "$CC"; then
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2476 $as_echo "$CC" >&6; }
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2479 $as_echo "no" >&6; }
2484 if test -z "$ac_cv_prog_CC"; then
2486 # Extract the first word of "gcc", so it can be a program name with args.
2487 set dummy gcc; ac_word=$2
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2489 $as_echo_n "checking for $ac_word... " >&6; }
2490 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2491 $as_echo_n "(cached) " >&6
2493 if test -n "$ac_ct_CC"; then
2494 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503 ac_cv_prog_ac_ct_CC="gcc"
2504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2514 if test -n "$ac_ct_CC"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2516 $as_echo "$ac_ct_CC" >&6; }
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2519 $as_echo "no" >&6; }
2522 if test "x$ac_ct_CC" = x; then
2525 case $cross_compiling:$ac_tool_warned in
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2529 ac_tool_warned=yes ;;
2537 if test -z "$CC"; then
2538 if test -n "$ac_tool_prefix"; then
2539 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2540 set dummy ${ac_tool_prefix}cc; ac_word=$2
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2542 $as_echo_n "checking for $ac_word... " >&6; }
2543 if test "${ac_cv_prog_CC+set}" = set; then :
2544 $as_echo_n "(cached) " >&6
2546 if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2556 ac_cv_prog_CC="${ac_tool_prefix}cc"
2557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 if test -n "$CC"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2569 $as_echo "$CC" >&6; }
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2572 $as_echo "no" >&6; }
2578 if test -z "$CC"; then
2579 # Extract the first word of "cc", so it can be a program name with args.
2580 set dummy cc; ac_word=$2
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if test "${ac_cv_prog_CC+set}" = set; then :
2584 $as_echo_n "(cached) " >&6
2586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2597 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2598 ac_prog_rejected=yes
2602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 if test $ac_prog_rejected = yes; then
2610 # We found a bogon in the path, so make sure we never use it.
2611 set dummy $ac_cv_prog_CC
2613 if test $@%:@ != 0; then
2614 # We chose a different compiler from the bogus one.
2615 # However, it has the same basename, so the bogon will be chosen
2616 # first if we set CC to just the basename; use the full file name.
2618 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2624 if test -n "$CC"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2626 $as_echo "$CC" >&6; }
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629 $as_echo "no" >&6; }
2634 if test -z "$CC"; then
2635 if test -n "$ac_tool_prefix"; then
2636 for ac_prog in cl.exe
2638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_prog_CC+set}" = set; then :
2643 $as_echo_n "(cached) " >&6
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 if test -n "$CC"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2668 $as_echo "$CC" >&6; }
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2675 test -n "$CC" && break
2678 if test -z "$CC"; then
2680 for ac_prog in cl.exe
2682 # Extract the first word of "$ac_prog", so it can be a program name with args.
2683 set dummy $ac_prog; ac_word=$2
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685 $as_echo_n "checking for $ac_word... " >&6; }
2686 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2687 $as_echo_n "(cached) " >&6
2689 if test -n "$ac_ct_CC"; then
2690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_prog_ac_ct_CC="$ac_prog"
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2710 if test -n "$ac_ct_CC"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2712 $as_echo "$ac_ct_CC" >&6; }
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2719 test -n "$ac_ct_CC" && break
2722 if test "x$ac_ct_CC" = x; then
2725 case $cross_compiling:$ac_tool_warned in
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2729 ac_tool_warned=yes ;;
2738 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2740 as_fn_error "no acceptable C compiler found in \$PATH
2741 See \`config.log' for more details." "$LINENO" 5; }
2743 # Provide some information about the compiler.
2744 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2747 for ac_option in --version -v -V -qversion; do
2748 { { ac_try="$ac_compiler $ac_option >&5"
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2754 $as_echo "$ac_try_echo"; } >&5
2755 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2757 if test -s conftest.err; then
2759 ... rest of stderr output deleted ...
2760 10q' conftest.err >conftest.er1
2761 cat conftest.er1 >&5
2762 rm -f conftest.er1 conftest.err
2764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2765 test $ac_status = 0; }
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2769 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2770 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2771 $as_echo_n "(cached) " >&6
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2787 if ac_fn_c_try_compile "$LINENO"; then :
2792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2793 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2797 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2798 if test $ac_compiler_gnu = yes; then
2803 ac_test_CFLAGS=${CFLAGS+set}
2804 ac_save_CFLAGS=$CFLAGS
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2806 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2807 if test "${ac_cv_prog_cc_g+set}" = set; then :
2808 $as_echo_n "(cached) " >&6
2810 ac_save_c_werror_flag=$ac_c_werror_flag
2811 ac_c_werror_flag=yes
2814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815 /* end confdefs.h. */
2825 if ac_fn_c_try_compile "$LINENO"; then :
2829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2830 /* end confdefs.h. */
2840 if ac_fn_c_try_compile "$LINENO"; then :
2843 ac_c_werror_flag=$ac_save_c_werror_flag
2845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2846 /* end confdefs.h. */
2856 if ac_fn_c_try_compile "$LINENO"; then :
2859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 ac_c_werror_flag=$ac_save_c_werror_flag
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2867 $as_echo "$ac_cv_prog_cc_g" >&6; }
2868 if test "$ac_test_CFLAGS" = set; then
2869 CFLAGS=$ac_save_CFLAGS
2870 elif test $ac_cv_prog_cc_g = yes; then
2871 if test "$GCC" = yes; then
2877 if test "$GCC" = yes; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2884 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2885 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2886 $as_echo_n "(cached) " >&6
2888 ac_cv_prog_cc_c89=no
2890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2891 /* end confdefs.h. */
2894 #include <sys/types.h>
2895 #include <sys/stat.h>
2896 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2897 struct buf { int x; };
2898 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2899 static char *e (p, i)
2905 static char *f (char * (*g) (char **, int), char **p, ...)
2910 s = g (p, va_arg (v,int));
2915 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2916 function prototypes and stuff, but not '\xHH' hex character constants.
2917 These don't provoke an error unfortunately, instead are silently treated
2918 as 'x'. The following induces an error, until -std is added to get
2919 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2920 array size at least. It's necessary to write '\x00'==0 to get something
2921 that's true only with -std. */
2922 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2924 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2925 inside strings and character constants. */
2927 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2929 int test (int i, double x);
2930 struct s1 {int (*f) (int a);};
2931 struct s2 {int (*f) (double a);};
2932 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2938 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2943 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2944 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2946 CC="$ac_save_CC $ac_arg"
2947 if ac_fn_c_try_compile "$LINENO"; then :
2948 ac_cv_prog_cc_c89=$ac_arg
2950 rm -f core conftest.err conftest.$ac_objext
2951 test "x$ac_cv_prog_cc_c89" != "xno" && break
2953 rm -f conftest.$ac_ext
2958 case "x$ac_cv_prog_cc_c89" in
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2961 $as_echo "none needed" >&6; } ;;
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2964 $as_echo "unsupported" >&6; } ;;
2966 CC="$CC $ac_cv_prog_cc_c89"
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2968 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2970 if test "x$ac_cv_prog_cc_c89" != xno; then :
2975 ac_cpp='$CPP $CPPFLAGS'
2976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 # Checks for libraries.
2984 # Checks for header files.
2986 # Checks for typedefs, structures, and compiler characteristics.
2989 ac_cpp='$CPP $CPPFLAGS'
2990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2994 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2995 # On Suns, sometimes $CPP names a directory.
2996 if test -n "$CPP" && test -d "$CPP"; then
2999 if test -z "$CPP"; then
3000 if test "${ac_cv_prog_CPP+set}" = set; then :
3001 $as_echo_n "(cached) " >&6
3003 # Double quotes because CPP needs to be expanded
3004 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3007 for ac_c_preproc_warn_flag in '' yes
3009 # Use a header file that comes with gcc, so configuring glibc
3010 # with a fresh cross-compiler works.
3011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3012 # <limits.h> exists even on freestanding compilers.
3013 # On the NeXT, cc -E runs the code through the compiler's parser,
3014 # not just through cpp. "Syntax error" is here to catch this case.
3015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016 /* end confdefs.h. */
3018 @%:@ include <limits.h>
3020 @%:@ include <assert.h>
3024 if ac_fn_c_try_cpp "$LINENO"; then :
3027 # Broken: fails on valid input.
3030 rm -f conftest.err conftest.$ac_ext
3032 # OK, works on sane cases. Now check whether nonexistent headers
3033 # can be detected and how.
3034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3035 /* end confdefs.h. */
3036 @%:@include <ac_nonexistent.h>
3038 if ac_fn_c_try_cpp "$LINENO"; then :
3039 # Broken: success on invalid input.
3042 # Passes both tests.
3046 rm -f conftest.err conftest.$ac_ext
3049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3050 rm -f conftest.err conftest.$ac_ext
3051 if $ac_preproc_ok; then :
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3064 $as_echo "$CPP" >&6; }
3066 for ac_c_preproc_warn_flag in '' yes
3068 # Use a header file that comes with gcc, so configuring glibc
3069 # with a fresh cross-compiler works.
3070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3071 # <limits.h> exists even on freestanding compilers.
3072 # On the NeXT, cc -E runs the code through the compiler's parser,
3073 # not just through cpp. "Syntax error" is here to catch this case.
3074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075 /* end confdefs.h. */
3077 @%:@ include <limits.h>
3079 @%:@ include <assert.h>
3083 if ac_fn_c_try_cpp "$LINENO"; then :
3086 # Broken: fails on valid input.
3089 rm -f conftest.err conftest.$ac_ext
3091 # OK, works on sane cases. Now check whether nonexistent headers
3092 # can be detected and how.
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3095 @%:@include <ac_nonexistent.h>
3097 if ac_fn_c_try_cpp "$LINENO"; then :
3098 # Broken: success on invalid input.
3101 # Passes both tests.
3105 rm -f conftest.err conftest.$ac_ext
3108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3109 rm -f conftest.err conftest.$ac_ext
3110 if $ac_preproc_ok; then :
3113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3115 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3116 See \`config.log' for more details." "$LINENO" 5; }
3120 ac_cpp='$CPP $CPPFLAGS'
3121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3127 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3128 if test "${ac_cv_path_GREP+set}" = set; then :
3129 $as_echo_n "(cached) " >&6
3131 if test -z "$GREP"; then
3132 ac_path_GREP_found=false
3133 # Loop through the user's path and test for each of PROGNAME-LIST
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3138 test -z "$as_dir" && as_dir=.
3139 for ac_prog in grep ggrep; do
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3142 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3143 # Check for GNU ac_path_GREP and select it if it is found.
3144 # Check for GNU $ac_path_GREP
3145 case `"$ac_path_GREP" --version 2>&1` in
3147 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3150 $as_echo_n 0123456789 >"conftest.in"
3153 cat "conftest.in" "conftest.in" >"conftest.tmp"
3154 mv "conftest.tmp" "conftest.in"
3155 cp "conftest.in" "conftest.nl"
3156 $as_echo 'GREP' >> "conftest.nl"
3157 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3159 as_fn_arith $ac_count + 1 && ac_count=$as_val
3160 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3161 # Best one so far, save it but keep looking for a better one
3162 ac_cv_path_GREP="$ac_path_GREP"
3163 ac_path_GREP_max=$ac_count
3165 # 10*(2^10) chars as input seems more than enough
3166 test $ac_count -gt 10 && break
3168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3171 $ac_path_GREP_found && break 3
3176 if test -z "$ac_cv_path_GREP"; then
3177 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3180 ac_cv_path_GREP=$GREP
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3185 $as_echo "$ac_cv_path_GREP" >&6; }
3186 GREP="$ac_cv_path_GREP"
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3190 $as_echo_n "checking for egrep... " >&6; }
3191 if test "${ac_cv_path_EGREP+set}" = set; then :
3192 $as_echo_n "(cached) " >&6
3194 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3195 then ac_cv_path_EGREP="$GREP -E"
3197 if test -z "$EGREP"; then
3198 ac_path_EGREP_found=false
3199 # Loop through the user's path and test for each of PROGNAME-LIST
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3204 test -z "$as_dir" && as_dir=.
3205 for ac_prog in egrep; do
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3208 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3209 # Check for GNU ac_path_EGREP and select it if it is found.
3210 # Check for GNU $ac_path_EGREP
3211 case `"$ac_path_EGREP" --version 2>&1` in
3213 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3216 $as_echo_n 0123456789 >"conftest.in"
3219 cat "conftest.in" "conftest.in" >"conftest.tmp"
3220 mv "conftest.tmp" "conftest.in"
3221 cp "conftest.in" "conftest.nl"
3222 $as_echo 'EGREP' >> "conftest.nl"
3223 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3225 as_fn_arith $ac_count + 1 && ac_count=$as_val
3226 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3227 # Best one so far, save it but keep looking for a better one
3228 ac_cv_path_EGREP="$ac_path_EGREP"
3229 ac_path_EGREP_max=$ac_count
3231 # 10*(2^10) chars as input seems more than enough
3232 test $ac_count -gt 10 && break
3234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3237 $ac_path_EGREP_found && break 3
3242 if test -z "$ac_cv_path_EGREP"; then
3243 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3246 ac_cv_path_EGREP=$EGREP
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3252 $as_echo "$ac_cv_path_EGREP" >&6; }
3253 EGREP="$ac_cv_path_EGREP"
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3257 $as_echo_n "checking for ANSI C header files... " >&6; }
3258 if test "${ac_cv_header_stdc+set}" = set; then :
3259 $as_echo_n "(cached) " >&6
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3276 if ac_fn_c_try_compile "$LINENO"; then :
3277 ac_cv_header_stdc=yes
3279 ac_cv_header_stdc=no
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283 if test $ac_cv_header_stdc = yes; then
3284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3291 $EGREP "memchr" >/dev/null 2>&1; then :
3294 ac_cv_header_stdc=no
3300 if test $ac_cv_header_stdc = yes; then
3301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h. */
3307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3308 $EGREP "free" >/dev/null 2>&1; then :
3311 ac_cv_header_stdc=no
3317 if test $ac_cv_header_stdc = yes; then
3318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3319 if test "$cross_compiling" = yes; then :
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3326 #if ((' ' & 0x0FF) == 0x020)
3327 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3328 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3330 # define ISLOWER(c) \
3331 (('a' <= (c) && (c) <= 'i') \
3332 || ('j' <= (c) && (c) <= 'r') \
3333 || ('s' <= (c) && (c) <= 'z'))
3334 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3342 for (i = 0; i < 256; i++)
3343 if (XOR (islower (i), ISLOWER (i))
3344 || toupper (i) != TOUPPER (i))
3349 if ac_fn_c_try_run "$LINENO"; then :
3352 ac_cv_header_stdc=no
3354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3355 conftest.$ac_objext conftest.beam conftest.$ac_ext
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3361 $as_echo "$ac_cv_header_stdc" >&6; }
3362 if test $ac_cv_header_stdc = yes; then
3364 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
3368 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3369 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3370 inttypes.h stdint.h unistd.h
3372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3373 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3375 eval as_val=\$$as_ac_Header
3376 if test "x$as_val" = x""yes; then :
3377 cat >>confdefs.h <<_ACEOF
3378 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
3387 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
3388 if test "${ac_cv_header_stdbool_h+set}" = set; then :
3389 $as_echo_n "(cached) " >&6
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3394 #include <stdbool.h>
3396 "error: bool is not defined"
3399 "error: false is not defined"
3402 "error: false is not 0"
3405 "error: true is not defined"
3408 "error: true is not 1"
3410 #ifndef __bool_true_false_are_defined
3411 "error: __bool_true_false_are_defined is not defined"
3414 struct s { _Bool s: 1; _Bool t; } s;
3416 char a[true == 1 ? 1 : -1];
3417 char b[false == 0 ? 1 : -1];
3418 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
3419 char d[(bool) 0.5 == true ? 1 : -1];
3421 char f[(_Bool) 0.0 == false ? 1 : -1];
3423 char h[sizeof (_Bool)];
3425 enum { j = false, k = true, l = false * true, m = true * 256 };
3426 /* The following fails for
3427 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
3429 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
3430 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
3431 # if defined __xlc__ || defined __GNUC__
3432 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
3433 reported by James Lemley on 2005-10-05; see
3434 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
3435 This test is not quite right, since xlc is allowed to
3436 reject this program, as the initializer for xlcbug is
3437 not one of the forms that C requires support for.
3438 However, doing the test right would require a runtime
3439 test, and that would make cross-compilation harder.
3440 Let us hope that IBM fixes the xlc bug, and also adds
3441 support for this kind of constant expression. In the
3442 meantime, this test will reject xlc, which is OK, since
3443 our stdbool.h substitute should suffice. We also test
3444 this with GCC, where it should work, to detect more
3445 quickly whether someone messes up the test in the
3447 char digs[] = "0123456789";
3448 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
3450 /* Catch a bug in an HP-UX C compiler. See
3451 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
3452 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
3463 /* Refer to every declared value, to avoid compiler optimizations. */
3464 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
3465 + !m + !n + !o + !p + !q + !pq);
3471 if ac_fn_c_try_compile "$LINENO"; then :
3472 ac_cv_header_stdbool_h=yes
3474 ac_cv_header_stdbool_h=no
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
3479 $as_echo "$ac_cv_header_stdbool_h" >&6; }
3480 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
3481 if test "x$ac_cv_type__Bool" = x""yes; then :
3483 cat >>confdefs.h <<_ACEOF
3484 @%:@define HAVE__BOOL 1
3490 if test $ac_cv_header_stdbool_h = yes; then
3492 $as_echo "@%:@define HAVE_STDBOOL_H 1" >>confdefs.h
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3497 $as_echo_n "checking for inline... " >&6; }
3498 if test "${ac_cv_c_inline+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3502 for ac_kw in inline __inline__ __inline; do
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3507 static $ac_kw foo_t static_foo () {return 0; }
3508 $ac_kw foo_t foo () {return 0; }
3512 if ac_fn_c_try_compile "$LINENO"; then :
3513 ac_cv_c_inline=$ac_kw
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516 test "$ac_cv_c_inline" != no && break
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
3521 $as_echo "$ac_cv_c_inline" >&6; }
3523 case $ac_cv_c_inline in
3526 case $ac_cv_c_inline in
3528 *) ac_val=$ac_cv_c_inline;;
3530 cat >>confdefs.h <<_ACEOF
3532 #define inline $ac_val
3538 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
3539 if test "x$ac_cv_type_size_t" = x""yes; then :
3543 cat >>confdefs.h <<_ACEOF
3544 @%:@define size_t unsigned int
3550 # Checks for library functions.
3552 ac_config_files="$ac_config_files Makefile src/Rakefile test/Rakefile test/Makefile"
3554 cat >confcache <<\_ACEOF
3555 # This file is a shell script that caches the results of configure
3556 # tests run on this system so they can be shared between configure
3557 # scripts and configure runs, see configure's option --config-cache.
3558 # It is not useful on other systems. If it contains results you don't
3559 # want to keep, you may remove or edit it.
3561 # config.status only pays attention to the cache file if you give it
3562 # the --recheck option to rerun configure.
3564 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3565 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3570 # The following way of writing the cache mishandles newlines in values,
3571 # but we know of no workaround that is simple, portable, and efficient.
3572 # So, we kill variables containing newlines.
3573 # Ultrix sh set writes to stderr and can't be redirected directly,
3574 # and sets the high bit in the cache file unless we assign to the vars.
3576 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3577 eval ac_val=\$$ac_var
3581 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3582 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3585 _ | IFS | as_nl) ;; #(
3586 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3587 *) { eval $ac_var=; unset $ac_var;} ;;
3593 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3594 *${as_nl}ac_space=\ *)
3595 # `set' does not quote correctly, so add quotes: double-quote
3596 # substitution turns \\\\ into \\, and sed turns \\ into \.
3599 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3602 # `set' quotes correctly as required by POSIX, so do not add quotes.
3603 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3612 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3614 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3616 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3617 if test -w "$cache_file"; then
3618 test "x$cache_file" != "x/dev/null" &&
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3620 $as_echo "$as_me: updating cache $cache_file" >&6;}
3621 cat confcache >$cache_file
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3624 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3629 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3630 # Let make expand exec_prefix.
3631 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3633 DEFS=-DHAVE_CONFIG_H
3637 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
3638 # 1. Remove the extension, and $U if already installed.
3639 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3640 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3641 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3642 # will be set to the directory where LIBOBJS objects are built.
3643 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3644 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3646 LIB@&t@OBJS=$ac_libobjs
3648 LTLIBOBJS=$ac_ltlibobjs
3652 : ${CONFIG_STATUS=./config.status}
3654 ac_clean_files_save=$ac_clean_files
3655 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3657 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3659 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3661 # Generated by $as_me.
3662 # Run this file to recreate the current configuration.
3663 # Compiler output produced by configure, useful for debugging
3664 # configure, is in config.log if it exists.
3670 SHELL=\${CONFIG_SHELL-$SHELL}
3673 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3674 ## -------------------- ##
3675 ## M4sh Initialization. ##
3676 ## -------------------- ##
3678 # Be more Bourne compatible
3679 DUALCASE=1; export DUALCASE # for MKS sh
3680 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3683 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3684 # is contrary to our usage. Disable this feature.
3685 alias -g '${1+"$@"}'='"$@"'
3686 setopt NO_GLOB_SUBST
3688 case `(set -o) 2>/dev/null` in @%:@(
3690 set -o posix ;; @%:@(
3700 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3701 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3702 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3703 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3704 # Prefer a ksh shell builtin over an external printf program on Solaris,
3705 # but without wasting forks for bash or zsh.
3706 if test -z "$BASH_VERSION$ZSH_VERSION" \
3707 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3708 as_echo='print -r --'
3709 as_echo_n='print -rn --'
3710 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3711 as_echo='printf %s\n'
3712 as_echo_n='printf %s'
3714 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3715 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3716 as_echo_n='/usr/ucb/echo -n'
3718 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3719 as_echo_n_body='eval
3723 expr "X$arg" : "X\\(.*\\)$as_nl";
3724 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3726 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3728 export as_echo_n_body
3729 as_echo_n='sh -c $as_echo_n_body as_echo'
3732 as_echo='sh -c $as_echo_body as_echo'
3735 # The user is always right.
3736 if test "${PATH_SEPARATOR+set}" != set; then
3738 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3739 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3746 # We need space, tab and new line, in precisely that order. Quoting is
3747 # there to prevent editors from complaining about space-tab.
3748 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3749 # splitting by setting IFS to empty value.)
3752 # Find who we are. Look in the path if we contain no directory separator.
3754 *[\\/]* ) as_myself=$0 ;;
3755 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 test -z "$as_dir" && as_dir=.
3760 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3766 # We did not find ourselves, most probably we were run as `sh COMMAND'
3767 # in which case we are not to be found in the path.
3768 if test "x$as_myself" = x; then
3771 if test ! -f "$as_myself"; then
3772 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3776 # Unset variables that we do not need and which cause bugs (e.g. in
3777 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3778 # suppresses any "Segmentation fault" message there. '((' could
3779 # trigger a bug in pdksh 5.2.14.
3780 for as_var in BASH_ENV ENV MAIL MAILPATH
3781 do eval test x\${$as_var+set} = xset \
3782 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3795 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3798 @%:@ as_fn_error ERROR [LINENO LOG_FD]
3799 @%:@ ---------------------------------
3800 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3801 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3802 @%:@ script with status $?, using 1 if that was 0.
3805 as_status=$?; test $as_status -eq 0 && as_status=1
3807 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3808 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
3810 $as_echo "$as_me: error: $1" >&2
3811 as_fn_exit $as_status
3815 @%:@ as_fn_set_status STATUS
3816 @%:@ -----------------------
3817 @%:@ Set $? to STATUS, without forking.
3821 } @%:@ as_fn_set_status
3823 @%:@ as_fn_exit STATUS
3824 @%:@ -----------------
3825 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3833 @%:@ as_fn_unset VAR
3834 @%:@ ---------------
3835 @%:@ Portably unset VAR.
3838 { eval $1=; unset $1;}
3840 as_unset=as_fn_unset
3841 @%:@ as_fn_append VAR VALUE
3842 @%:@ ----------------------
3843 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
3844 @%:@ advantage of any shell optimizations that allow amortized linear growth over
3845 @%:@ repeated appends, instead of the typical quadratic growth present in naive
3846 @%:@ implementations.
3847 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3848 eval 'as_fn_append ()
3859 @%:@ as_fn_arith ARG...
3860 @%:@ ------------------
3861 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
3862 @%:@ global $as_val. Take advantage of shells that can avoid forks. The arguments
3863 @%:@ must be portable across $(()) and expr.
3864 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3865 eval 'as_fn_arith ()
3872 as_val=`expr "$@" || test $? -eq 1`
3877 if expr a : '\(a\)' >/dev/null 2>&1 &&
3878 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3884 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3885 as_basename=basename
3890 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3896 as_me=`$as_basename -- "$0" ||
3897 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3898 X"$0" : 'X\(//\)$' \| \
3899 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3901 sed '/^.*\/\([^/][^/]*\)\/*$/{
3915 # Avoid depending upon Character Ranges.
3916 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3917 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3918 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3919 as_cr_digits='0123456789'
3920 as_cr_alnum=$as_cr_Letters$as_cr_digits
3922 ECHO_C= ECHO_N= ECHO_T=
3923 case `echo -n x` in @%:@(((((
3925 case `echo 'xy\c'` in
3926 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3928 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3935 rm -f conf$$ conf$$.exe conf$$.file
3936 if test -d conf$$.dir; then
3937 rm -f conf$$.dir/conf$$.file
3940 mkdir conf$$.dir 2>/dev/null
3942 if (echo >conf$$.file) 2>/dev/null; then
3943 if ln -s conf$$.file conf$$ 2>/dev/null; then
3945 # ... but there are two gotchas:
3946 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3947 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3948 # In both cases, we have to default to `cp -p'.
3949 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3951 elif ln conf$$.file conf$$ 2>/dev/null; then
3959 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3960 rmdir conf$$.dir 2>/dev/null
3965 @%:@ Create "$as_dir" as a directory, including parents if necessary.
3970 -*) as_dir=./$as_dir;;
3972 test -d "$as_dir" || eval $as_mkdir_p || {
3976 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3977 *) as_qdir=$as_dir;;
3979 as_dirs="'$as_qdir' $as_dirs"
3980 as_dir=`$as_dirname -- "$as_dir" ||
3981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3982 X"$as_dir" : 'X\(//\)[^/]' \| \
3983 X"$as_dir" : 'X\(//\)$' \| \
3984 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3985 $as_echo X"$as_dir" |
3986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4003 test -d "$as_dir" && break
4005 test -z "$as_dirs" || eval "mkdir $as_dirs"
4006 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
4009 } @%:@ as_fn_mkdir_p
4010 if mkdir -p . 2>/dev/null; then
4011 as_mkdir_p='mkdir -p "$as_dir"'
4013 test -d ./-p && rmdir ./-p
4017 if test -x / >/dev/null 2>&1; then
4020 if ls -dL / >/dev/null 2>&1; then
4027 if test -d "$1"; then
4033 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
4034 ???[sx]*):;;*)false;;esac;fi
4038 as_executable_p=$as_test_x
4040 # Sed expression to map a string onto a valid CPP name.
4041 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4043 # Sed expression to map a string onto a valid variable name.
4044 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4048 ## ----------------------------------- ##
4049 ## Main body of $CONFIG_STATUS script. ##
4050 ## ----------------------------------- ##
4052 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4055 # Save the log message, to keep $0 and so on meaningful, and to
4056 # report actual input values of CONFIG_FILES etc. instead of their
4057 # values after options handling.
4059 This file was extended by utakata $as_me 0.0.1, which was
4060 generated by GNU Autoconf 2.64. Invocation command line was
4062 CONFIG_FILES = $CONFIG_FILES
4063 CONFIG_HEADERS = $CONFIG_HEADERS
4064 CONFIG_LINKS = $CONFIG_LINKS
4065 CONFIG_COMMANDS = $CONFIG_COMMANDS
4068 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4073 case $ac_config_files in *"
4074 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4077 case $ac_config_headers in *"
4078 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4083 # Files that config.status was made for.
4084 config_files="$ac_config_files"
4085 config_headers="$ac_config_headers"
4089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4091 \`$as_me' instantiates files and other configuration actions
4092 from templates according to the current configuration. Unless the files
4093 and actions are specified as TAGs, all are instantiated by default.
4095 Usage: $0 [OPTION]... [TAG]...
4097 -h, --help print this help, then exit
4098 -V, --version print version number and configuration settings, then exit
4099 -q, --quiet, --silent
4100 do not print progress messages
4101 -d, --debug don't remove temporary files
4102 --recheck update $as_me by reconfiguring in the same conditions
4103 --file=FILE[:TEMPLATE]
4104 instantiate the configuration file FILE
4105 --header=FILE[:TEMPLATE]
4106 instantiate the configuration header FILE
4108 Configuration files:
4111 Configuration headers:
4114 Report bugs to <BUG-REPORT-ADDRESS>."
4117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4119 utakata config.status 0.0.1
4120 configured by $0, generated by GNU Autoconf 2.64,
4121 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4123 Copyright (C) 2009 Free Software Foundation, Inc.
4124 This config.status script is free software; the Free Software Foundation
4125 gives unlimited permission to copy, distribute and modify it."
4129 test -n "\$AWK" || AWK=awk
4132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4133 # The default lists apply if the user does not specify any file.
4139 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4140 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4151 # Handling of the options.
4152 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4154 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4155 $as_echo "$ac_cs_version"; exit ;;
4156 --debug | --debu | --deb | --de | --d | -d )
4158 --file | --fil | --fi | --f )
4161 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4163 as_fn_append CONFIG_FILES " '$ac_optarg'"
4164 ac_need_defaults=false;;
4165 --header | --heade | --head | --hea )
4168 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4170 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4171 ac_need_defaults=false;;
4173 # Conflict between --help and --header
4174 as_fn_error "ambiguous option: \`$1'
4175 Try \`$0 --help' for more information.";;
4176 --help | --hel | -h )
4177 $as_echo "$ac_cs_usage"; exit ;;
4178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4179 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4183 -*) as_fn_error "unrecognized option: \`$1'
4184 Try \`$0 --help' for more information." ;;
4186 *) as_fn_append ac_config_targets " $1"
4187 ac_need_defaults=false ;;
4193 ac_configure_extra_args=
4195 if $ac_cs_silent; then
4197 ac_configure_extra_args="$ac_configure_extra_args --silent"
4201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4202 if \$ac_cs_recheck; then
4203 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4205 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4206 CONFIG_SHELL='$SHELL'
4212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4216 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
4217 @%:@@%:@ Running $as_me. @%:@@%:@
4223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4228 # Handling of arguments.
4229 for ac_config_target in $ac_config_targets
4231 case $ac_config_target in
4232 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4233 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4234 "src/Rakefile") CONFIG_FILES="$CONFIG_FILES src/Rakefile" ;;
4235 "test/Rakefile") CONFIG_FILES="$CONFIG_FILES test/Rakefile" ;;
4236 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
4238 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4243 # If the user did not use the arguments to specify the items to instantiate,
4244 # then the envvar interface is used. Set only those that are not.
4245 # We use the long form for the default assignment because of an extremely
4246 # bizarre bug on SunOS 4.1.3.
4247 if $ac_need_defaults; then
4248 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4249 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4252 # Have a temporary directory for convenience. Make it in the build tree
4253 # simply because there is no reason against having it here, and in addition,
4254 # creating and moving files from /tmp can sometimes cause problems.
4255 # Hook for its removal unless debugging.
4256 # Note that there is a small window in which the directory will not be cleaned:
4257 # after its creation but before its name has been assigned to `$tmp'.
4261 trap 'exit_status=$?
4262 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4264 trap 'as_fn_exit 1' 1 2 13 15
4266 # Create a (secure) tmp directory for tmp files.
4269 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4270 test -n "$tmp" && test -d "$tmp"
4273 tmp=./conf$$-$RANDOM
4274 (umask 077 && mkdir "$tmp")
4275 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
4277 # Set up the scripts for CONFIG_FILES section.
4278 # No need to generate them if there are no CONFIG_FILES.
4279 # This happens for instance with `./config.status config.h'.
4280 if test -n "$CONFIG_FILES"; then
4283 ac_cr=`echo X | tr X '\015'`
4284 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4285 # But we know of no other shell where ac_cr would be empty at this
4286 # point, so we can use a bashism as a fallback.
4287 if test "x$ac_cr" = x; then
4288 eval ac_cr=\$\'\\r\'
4290 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4291 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4297 echo 'BEGIN {' >"$tmp/subs1.awk" &&
4302 echo "cat >conf$$subs.awk <<_ACEOF" &&
4303 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4306 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4307 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
4309 for ac_last_try in false false false false false :; do
4310 . ./conf$$subs.sh ||
4311 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4313 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4314 if test $ac_delim_n = $ac_delim_num; then
4316 elif $ac_last_try; then
4317 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4319 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4325 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
4329 s/^/S["/; s/!.*/"]=/
4339 s/\(.\{148\}\).*/\1/
4341 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4346 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4353 s/\(.\{148\}\).*/\1/
4355 s/["\\]/\\&/g; s/^/"/; s/$/"/
4359 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4364 ' <conf$$subs.awk | sed '
4369 ' >>$CONFIG_STATUS || ac_write_fail=1
4370 rm -f conf$$subs.awk
4371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4373 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
4374 for (key in S) S_is_set[key] = 1
4380 nfields = split(line, field, "@")
4382 len = length(field[1])
4383 for (i = 2; i < nfields; i++) {
4385 keylen = length(key)
4386 if (S_is_set[key]) {
4388 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4389 len += length(value) + length(field[++i])
4400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4401 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4402 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4405 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
4406 || as_fn_error "could not setup config files machinery" "$LINENO" 5
4409 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4410 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4411 # trailing colons and then remove the whole line if VPATH becomes empty
4412 # (actually we leave an empty line to preserve line numbers).
4413 if test "x$srcdir" = x.; then
4414 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4418 s/^\([^=]*=[ ]*\):*/\1/
4424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4425 fi # test -n "$CONFIG_FILES"
4427 # Set up the scripts for CONFIG_HEADERS section.
4428 # No need to generate them if there are no CONFIG_HEADERS.
4429 # This happens for instance with `./config.status Makefile'.
4430 if test -n "$CONFIG_HEADERS"; then
4431 cat >"$tmp/defines.awk" <<\_ACAWK ||
4435 # Transform confdefs.h into an awk script `defines.awk', embedded as
4436 # here-document in config.status, that substitutes the proper values into
4437 # config.h.in to produce config.h.
4439 # Create a delimiter string that does not exist in confdefs.h, to ease
4440 # handling of long lines.
4442 for ac_last_try in false false :; do
4443 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
4444 if test -z "$ac_t"; then
4446 elif $ac_last_try; then
4447 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
4449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4453 # For the awk script, D is an array of macro values keyed by name,
4454 # likewise P contains macro parameters if any. Preserve backslash
4455 # newline sequences.
4457 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4459 s/.\{148\}/&'"$ac_delim"'/g
4462 s/^[ ]*#[ ]*define[ ][ ]*/ /
4469 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4471 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4475 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4476 D["\1"]=" \3\\\\\\n"\\/p
4478 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4483 s/.\{148\}/&'"$ac_delim"'/g
4488 s/["\\]/\\&/g; s/^/"/; s/$/"/p
4491 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4493 ' <confdefs.h | sed '
4494 s/'"$ac_delim"'/"\\\
4495 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4498 for (key in D) D_is_set[key] = 1
4501 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4503 split(line, arg, " ")
4504 if (arg[1] == "#") {
4508 defundef = substr(arg[1], 2)
4511 split(mac1, mac2, "(") #)
4513 prefix = substr(line, 1, index(line, defundef) - 1)
4514 if (D_is_set[macro]) {
4515 # Preserve the white space surrounding the "#".
4516 print prefix "define", macro P[macro] D[macro]
4519 # Replace #undef with comments. This is necessary, for example,
4520 # in the case of _POSIX_SOURCE, which is predefined and required
4521 # on some systems where configure will not decide to define it.
4522 if (defundef == "undef") {
4523 print "/*", prefix defundef, macro, "*/"
4531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4532 as_fn_error "could not setup config headers machinery" "$LINENO" 5
4533 fi # test -n "$CONFIG_HEADERS"
4536 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
4541 :[FHLC]) ac_mode=$ac_tag; continue;;
4543 case $ac_mode$ac_tag in
4545 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
4546 :[FH]-) ac_tag=-:-;;
4547 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4564 -) ac_f="$tmp/stdin";;
4565 *) # Look for the file first in the build tree, then in the source tree
4566 # (if the path is not absolute). The absolute path cannot be DOS-style,
4567 # because $ac_f cannot contain `:'.
4571 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4573 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4575 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4576 as_fn_append ac_file_inputs " '$ac_f'"
4579 # Let's still pretend it is `configure' which instantiates (i.e., don't
4580 # use $as_me), people would be surprised to read:
4581 # /* config.h. Generated by config.status. */
4582 configure_input='Generated from '`
4583 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4585 if test x"$ac_file" != x-; then
4586 configure_input="$ac_file. $configure_input"
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4588 $as_echo "$as_me: creating $ac_file" >&6;}
4590 # Neutralize special characters interpreted by sed in replacement strings.
4591 case $configure_input in #(
4592 *\&* | *\|* | *\\* )
4593 ac_sed_conf_input=`$as_echo "$configure_input" |
4594 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4595 *) ac_sed_conf_input=$configure_input;;
4599 *:-:* | *:-) cat >"$tmp/stdin" \
4600 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
4605 ac_dir=`$as_dirname -- "$ac_file" ||
4606 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4607 X"$ac_file" : 'X\(//\)[^/]' \| \
4608 X"$ac_file" : 'X\(//\)$' \| \
4609 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4610 $as_echo X"$ac_file" |
4611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4628 as_dir="$ac_dir"; as_fn_mkdir_p
4632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4634 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4635 # A ".." for each directory in $ac_dir_suffix.
4636 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4637 case $ac_top_builddir_sub in
4638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4642 ac_abs_top_builddir=$ac_pwd
4643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4644 # for backward compatibility:
4645 ac_top_builddir=$ac_top_build_prefix
4648 .) # We are building in place.
4650 ac_top_srcdir=$ac_top_builddir_sub
4651 ac_abs_top_srcdir=$ac_pwd ;;
4652 [\\/]* | ?:[\\/]* ) # Absolute name.
4653 ac_srcdir=$srcdir$ac_dir_suffix;
4654 ac_top_srcdir=$srcdir
4655 ac_abs_top_srcdir=$srcdir ;;
4657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4658 ac_top_srcdir=$ac_top_build_prefix$srcdir
4659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4673 # If the template does not know about datarootdir, expand it.
4674 # FIXME: This hack should be removed a few years after 2.60.
4675 ac_datarootdir_hack=; ac_datarootdir_seen=
4686 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4687 *datarootdir*) ac_datarootdir_seen=yes;;
4688 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4690 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4693 ac_datarootdir_hack='
4694 s&@datadir@&$datadir&g
4695 s&@docdir@&$docdir&g
4696 s&@infodir@&$infodir&g
4697 s&@localedir@&$localedir&g
4698 s&@mandir@&$mandir&g
4699 s&\\\${datarootdir}&$datarootdir&g' ;;
4703 # Neutralize VPATH when `$srcdir' = `.'.
4704 # Shell code in configure.ac might set extrasub.
4705 # FIXME: do we really want to maintain this feature?
4706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4707 ac_sed_extra="$ac_vpsub
4710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4712 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4713 s|@configure_input@|$ac_sed_conf_input|;t t
4714 s&@top_builddir@&$ac_top_builddir_sub&;t t
4715 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4716 s&@srcdir@&$ac_srcdir&;t t
4717 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4718 s&@top_srcdir@&$ac_top_srcdir&;t t
4719 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4720 s&@builddir@&$ac_builddir&;t t
4721 s&@abs_builddir@&$ac_abs_builddir&;t t
4722 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4723 $ac_datarootdir_hack
4725 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
4726 || as_fn_error "could not create $ac_file" "$LINENO" 5
4728 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4729 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4730 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4732 which seems to be undefined. Please make sure it is defined." >&5
4733 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4734 which seems to be undefined. Please make sure it is defined." >&2;}
4738 -) cat "$tmp/out" && rm -f "$tmp/out";;
4739 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
4741 || as_fn_error "could not create $ac_file" "$LINENO" 5
4747 if test x"$ac_file" != x-; then
4749 $as_echo "/* $configure_input */" \
4750 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
4751 } >"$tmp/config.h" \
4752 || as_fn_error "could not create $ac_file" "$LINENO" 5
4753 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4755 $as_echo "$as_me: $ac_file is unchanged" >&6;}
4758 mv "$tmp/config.h" "$ac_file" \
4759 || as_fn_error "could not create $ac_file" "$LINENO" 5
4762 $as_echo "/* $configure_input */" \
4763 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
4764 || as_fn_error "could not create -" "$LINENO" 5
4776 ac_clean_files=$ac_clean_files_save
4778 test $ac_write_fail = 0 ||
4779 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
4782 # configure is writing to config.log, and then calls config.status.
4783 # config.status does its own redirection, appending to config.log.
4784 # Unfortunately, on DOS this fails, as config.log is still kept open
4785 # by configure, so config.status won't be able to write to it; its
4786 # output is simply discarded. So we exec the FD to /dev/null,
4787 # effectively closing config.log, so it can be properly (re)opened and
4788 # appended to by config.status. When coming back to configure, we
4789 # need to make the FD available again.
4790 if test "$no_create" != yes; then
4792 ac_config_status_args=
4793 test "$silent" = yes &&
4794 ac_config_status_args="$ac_config_status_args --quiet"
4796 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4798 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4799 # would make configure fail if this is the last instruction.
4800 $ac_cs_success || as_fn_exit $?
4802 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4804 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}