2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
554 ac_unique_file="server.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars='LTLIBOBJS
646 MAINTAINER_MODE_FALSE
675 program_transform_name
688 enable_option_checking
689 enable_maintainer_mode
699 enable_inprocess_agent
701 ac_precious_vars='build_alias
712 # Initialize some variables set by options.
714 ac_init_version=false
715 ac_unrecognized_opts=
717 # The variables have the same names as the options, with
718 # dashes changed to underlines.
726 program_transform_name=s,x,x,
734 # Installation directory options.
735 # These are left unexpanded so users can "make install exec_prefix=/foo"
736 # and all the variables that are supposed to be based on exec_prefix
737 # by default will actually change.
738 # Use braces instead of parens because sh, perl, etc. also accept them.
739 # (The list follows the same order as the GNU Coding Standards.)
740 bindir='${exec_prefix}/bin'
741 sbindir='${exec_prefix}/sbin'
742 libexecdir='${exec_prefix}/libexec'
743 datarootdir='${prefix}/share'
744 datadir='${datarootdir}'
745 sysconfdir='${prefix}/etc'
746 sharedstatedir='${prefix}/com'
747 localstatedir='${prefix}/var'
748 includedir='${prefix}/include'
749 oldincludedir='/usr/include'
750 docdir='${datarootdir}/doc/${PACKAGE}'
751 infodir='${datarootdir}/info'
756 libdir='${exec_prefix}/lib'
757 localedir='${datarootdir}/locale'
758 mandir='${datarootdir}/man'
764 # If the previous option needs an argument, assign it.
765 if test -n "$ac_prev"; then
766 eval $ac_prev=\$ac_option
772 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
776 # Accept the important Cygnus configure options, so we can diagnose typos.
778 case $ac_dashdash$ac_option in
782 -bindir | --bindir | --bindi | --bind | --bin | --bi)
784 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
787 -build | --build | --buil | --bui | --bu)
788 ac_prev=build_alias ;;
789 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
790 build_alias=$ac_optarg ;;
792 -cache-file | --cache-file | --cache-fil | --cache-fi \
793 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
794 ac_prev=cache_file ;;
795 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
796 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
797 cache_file=$ac_optarg ;;
800 cache_file=config.cache ;;
802 -datadir | --datadir | --datadi | --datad)
804 -datadir=* | --datadir=* | --datadi=* | --datad=*)
805 datadir=$ac_optarg ;;
807 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
808 | --dataroo | --dataro | --datar)
809 ac_prev=datarootdir ;;
810 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
811 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
812 datarootdir=$ac_optarg ;;
814 -disable-* | --disable-*)
815 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
816 # Reject names that are not valid shell variable names.
817 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
818 as_fn_error "invalid feature name: $ac_useropt"
819 ac_useropt_orig=$ac_useropt
820 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
821 case $ac_user_opts in
825 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
826 ac_unrecognized_sep=', ';;
828 eval enable_$ac_useropt=no ;;
830 -docdir | --docdir | --docdi | --doc | --do)
832 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
835 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
837 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
840 -enable-* | --enable-*)
841 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
842 # Reject names that are not valid shell variable names.
843 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
844 as_fn_error "invalid feature name: $ac_useropt"
845 ac_useropt_orig=$ac_useropt
846 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
847 case $ac_user_opts in
851 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
852 ac_unrecognized_sep=', ';;
854 eval enable_$ac_useropt=\$ac_optarg ;;
856 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
857 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
858 | --exec | --exe | --ex)
859 ac_prev=exec_prefix ;;
860 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
861 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
862 | --exec=* | --exe=* | --ex=*)
863 exec_prefix=$ac_optarg ;;
865 -gas | --gas | --ga | --g)
866 # Obsolete; use --with-gas.
869 -help | --help | --hel | --he | -h)
871 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
872 ac_init_help=recursive ;;
873 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
874 ac_init_help=short ;;
876 -host | --host | --hos | --ho)
877 ac_prev=host_alias ;;
878 -host=* | --host=* | --hos=* | --ho=*)
879 host_alias=$ac_optarg ;;
881 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
883 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
885 htmldir=$ac_optarg ;;
887 -includedir | --includedir | --includedi | --included | --include \
888 | --includ | --inclu | --incl | --inc)
889 ac_prev=includedir ;;
890 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
891 | --includ=* | --inclu=* | --incl=* | --inc=*)
892 includedir=$ac_optarg ;;
894 -infodir | --infodir | --infodi | --infod | --info | --inf)
896 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
897 infodir=$ac_optarg ;;
899 -libdir | --libdir | --libdi | --libd)
901 -libdir=* | --libdir=* | --libdi=* | --libd=*)
904 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
905 | --libexe | --libex | --libe)
906 ac_prev=libexecdir ;;
907 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
908 | --libexe=* | --libex=* | --libe=*)
909 libexecdir=$ac_optarg ;;
911 -localedir | --localedir | --localedi | --localed | --locale)
913 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
914 localedir=$ac_optarg ;;
916 -localstatedir | --localstatedir | --localstatedi | --localstated \
917 | --localstate | --localstat | --localsta | --localst | --locals)
918 ac_prev=localstatedir ;;
919 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
920 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
921 localstatedir=$ac_optarg ;;
923 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
925 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
929 # Obsolete; use --without-fp.
932 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
933 | --no-cr | --no-c | -n)
936 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
937 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
940 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
941 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
942 | --oldin | --oldi | --old | --ol | --o)
943 ac_prev=oldincludedir ;;
944 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
945 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
946 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
947 oldincludedir=$ac_optarg ;;
949 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
951 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
954 -program-prefix | --program-prefix | --program-prefi | --program-pref \
955 | --program-pre | --program-pr | --program-p)
956 ac_prev=program_prefix ;;
957 -program-prefix=* | --program-prefix=* | --program-prefi=* \
958 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
959 program_prefix=$ac_optarg ;;
961 -program-suffix | --program-suffix | --program-suffi | --program-suff \
962 | --program-suf | --program-su | --program-s)
963 ac_prev=program_suffix ;;
964 -program-suffix=* | --program-suffix=* | --program-suffi=* \
965 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
966 program_suffix=$ac_optarg ;;
968 -program-transform-name | --program-transform-name \
969 | --program-transform-nam | --program-transform-na \
970 | --program-transform-n | --program-transform- \
971 | --program-transform | --program-transfor \
972 | --program-transfo | --program-transf \
973 | --program-trans | --program-tran \
974 | --progr-tra | --program-tr | --program-t)
975 ac_prev=program_transform_name ;;
976 -program-transform-name=* | --program-transform-name=* \
977 | --program-transform-nam=* | --program-transform-na=* \
978 | --program-transform-n=* | --program-transform-=* \
979 | --program-transform=* | --program-transfor=* \
980 | --program-transfo=* | --program-transf=* \
981 | --program-trans=* | --program-tran=* \
982 | --progr-tra=* | --program-tr=* | --program-t=*)
983 program_transform_name=$ac_optarg ;;
985 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
987 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
990 -psdir | --psdir | --psdi | --psd | --ps)
992 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
996 | -silent | --silent | --silen | --sile | --sil)
999 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1001 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1003 sbindir=$ac_optarg ;;
1005 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1006 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1007 | --sharedst | --shareds | --shared | --share | --shar \
1009 ac_prev=sharedstatedir ;;
1010 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1011 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1012 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1014 sharedstatedir=$ac_optarg ;;
1016 -site | --site | --sit)
1018 -site=* | --site=* | --sit=*)
1021 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1023 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1024 srcdir=$ac_optarg ;;
1026 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1027 | --syscon | --sysco | --sysc | --sys | --sy)
1028 ac_prev=sysconfdir ;;
1029 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1030 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1031 sysconfdir=$ac_optarg ;;
1033 -target | --target | --targe | --targ | --tar | --ta | --t)
1034 ac_prev=target_alias ;;
1035 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1036 target_alias=$ac_optarg ;;
1038 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1041 -version | --version | --versio | --versi | --vers | -V)
1042 ac_init_version=: ;;
1045 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error "invalid package name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1058 eval with_$ac_useropt=\$ac_optarg ;;
1060 -without-* | --without-*)
1061 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064 as_fn_error "invalid package name: $ac_useropt"
1065 ac_useropt_orig=$ac_useropt
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1072 ac_unrecognized_sep=', ';;
1074 eval with_$ac_useropt=no ;;
1077 # Obsolete; use --with-x.
1080 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1081 | --x-incl | --x-inc | --x-in | --x-i)
1082 ac_prev=x_includes ;;
1083 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1084 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1085 x_includes=$ac_optarg ;;
1087 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1088 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1089 ac_prev=x_libraries ;;
1090 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1091 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1092 x_libraries=$ac_optarg ;;
1094 -*) as_fn_error "unrecognized option: \`$ac_option'
1095 Try \`$0 --help' for more information."
1099 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1100 # Reject names that are not valid shell variable names.
1101 case $ac_envvar in #(
1102 '' | [0-9]* | *[!_$as_cr_alnum]* )
1103 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1105 eval $ac_envvar=\$ac_optarg
1106 export $ac_envvar ;;
1109 # FIXME: should be removed in autoconf 3.0.
1110 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1111 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1113 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1119 if test -n "$ac_prev"; then
1120 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1121 as_fn_error "missing argument to $ac_option"
1124 if test -n "$ac_unrecognized_opts"; then
1125 case $enable_option_checking in
1127 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1128 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1132 # Check all directory arguments for consistency.
1133 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134 datadir sysconfdir sharedstatedir localstatedir includedir \
1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136 libdir localedir mandir
1138 eval ac_val=\$$ac_var
1139 # Remove trailing slashes.
1142 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1143 eval $ac_var=\$ac_val;;
1145 # Be sure to have absolute directory names.
1147 [\\/$]* | ?:[\\/]* ) continue;;
1148 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1150 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1153 # There might be people who depend on the old broken behavior: `$host'
1154 # used to hold the argument of --host etc.
1155 # FIXME: To remove some day.
1158 target=$target_alias
1160 # FIXME: To remove some day.
1161 if test "x$host_alias" != x; then
1162 if test "x$build_alias" = x; then
1163 cross_compiling=maybe
1164 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1165 If a cross compiler is detected then cross compile mode will be used." >&2
1166 elif test "x$build_alias" != "x$host_alias"; then
1172 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1174 test "$silent" = yes && exec 6>/dev/null
1177 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1178 ac_ls_di=`ls -di .` &&
1179 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1180 as_fn_error "working directory cannot be determined"
1181 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1182 as_fn_error "pwd does not report name of working directory"
1185 # Find the source files, if location was not specified.
1186 if test -z "$srcdir"; then
1187 ac_srcdir_defaulted=yes
1188 # Try the directory containing this script, then the parent directory.
1189 ac_confdir=`$as_dirname -- "$as_myself" ||
1190 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1191 X"$as_myself" : 'X\(//\)[^/]' \| \
1192 X"$as_myself" : 'X\(//\)$' \| \
1193 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1194 $as_echo X"$as_myself" |
1195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1217 ac_srcdir_defaulted=no
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1221 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1223 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1225 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1251 \`configure' configures this package to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1314 --build=BUILD configure for building on BUILD [guessed]
1315 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1316 --target=TARGET configure for building compilers for TARGET [HOST]
1320 if test -n "$ac_init_help"; then
1325 --disable-option-checking ignore unrecognized --enable/--with options
1326 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1327 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1328 --enable-maintainer-mode enable make rules and dependencies not useful
1329 (and sometimes confusing) to the casual installer
1330 --disable-largefile omit support for large files
1331 --enable-libmcheck Try linking with -lmcheck if available
1332 --enable-werror treat compile warnings as errors
1333 --enable-inprocess-agent
1337 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1338 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1339 --with-ust=PATH Specify prefix directory for the installed UST package
1340 Equivalent to --with-ust-include=PATH/include
1341 plus --with-ust-lib=PATH/lib
1342 --with-ust-include=PATH Specify directory for installed UST include files
1343 --with-ust-lib=PATH Specify the directory for the installed UST library
1344 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1345 --with-bugurl=URL Direct users to URL to report a bug
1346 --with-libthread-db=PATH
1347 use given libthread_db directly
1349 Some influential environment variables:
1350 CC C compiler command
1351 CFLAGS C compiler flags
1352 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1353 nonstandard directory <lib dir>
1354 LIBS libraries to pass to the linker, e.g. -l<library>
1355 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1356 you have headers in a nonstandard directory <include dir>
1359 Use these variables to override the choices made by `configure' or to help
1360 it to find libraries and programs with nonstandard names/locations.
1362 Report bugs to the package provider.
1367 if test "$ac_init_help" = "recursive"; then
1368 # If there are subdirs, report their specific --help.
1369 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1370 test -d "$ac_dir" ||
1371 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1392 .) # We are building in place.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1416 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1426 generated by GNU Autoconf 2.64
1428 Copyright (C) 2009 Free Software Foundation, Inc.
1429 This configure script is free software; the Free Software Foundation
1430 gives unlimited permission to copy, distribute and modify it.
1435 ## ------------------------ ##
1436 ## Autoconf initialization. ##
1437 ## ------------------------ ##
1439 # ac_fn_c_try_compile LINENO
1440 # --------------------------
1441 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1442 ac_fn_c_try_compile ()
1444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1445 rm -f conftest.$ac_objext
1446 if { { ac_try="$ac_compile"
1448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1449 *) ac_try_echo=$ac_try;;
1451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1452 $as_echo "$ac_try_echo"; } >&5
1453 (eval "$ac_compile") 2>conftest.err
1455 if test -s conftest.err; then
1456 grep -v '^ *+' conftest.err >conftest.er1
1457 cat conftest.er1 >&5
1458 mv -f conftest.er1 conftest.err
1460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1461 test $ac_status = 0; } && {
1462 test -z "$ac_c_werror_flag" ||
1463 test ! -s conftest.err
1464 } && test -s conftest.$ac_objext; then :
1467 $as_echo "$as_me: failed program was:" >&5
1468 sed 's/^/| /' conftest.$ac_ext >&5
1472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1475 } # ac_fn_c_try_compile
1477 # ac_fn_c_try_cpp LINENO
1478 # ----------------------
1479 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483 if { { ac_try="$ac_cpp conftest.$ac_ext"
1485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1486 *) ac_try_echo=$ac_try;;
1488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1489 $as_echo "$ac_try_echo"; } >&5
1490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1492 if test -s conftest.err; then
1493 grep -v '^ *+' conftest.err >conftest.er1
1494 cat conftest.er1 >&5
1495 mv -f conftest.er1 conftest.err
1497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1498 test $ac_status = 0; } >/dev/null && {
1499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1500 test ! -s conftest.err
1504 $as_echo "$as_me: failed program was:" >&5
1505 sed 's/^/| /' conftest.$ac_ext >&5
1509 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1514 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1515 # -------------------------------------------------------
1516 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1517 # the include files in INCLUDES and setting the cache variable VAR
1519 ac_fn_c_check_header_mongrel ()
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1524 $as_echo_n "checking for $2... " >&6; }
1525 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1526 $as_echo_n "(cached) " >&6
1529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1530 $as_echo "$ac_res" >&6; }
1532 # Is the header compilable?
1533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1534 $as_echo_n "checking $2 usability... " >&6; }
1535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1536 /* end confdefs.h. */
1540 if ac_fn_c_try_compile "$LINENO"; then :
1541 ac_header_compiler=yes
1543 ac_header_compiler=no
1545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1547 $as_echo "$ac_header_compiler" >&6; }
1549 # Is the header present?
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1551 $as_echo_n "checking $2 presence... " >&6; }
1552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1553 /* end confdefs.h. */
1556 if ac_fn_c_try_cpp "$LINENO"; then :
1557 ac_header_preproc=yes
1559 ac_header_preproc=no
1561 rm -f conftest.err conftest.$ac_ext
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1563 $as_echo "$ac_header_preproc" >&6; }
1565 # So? What about this header?
1566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1569 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1571 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1575 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1577 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1579 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1581 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1583 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587 $as_echo_n "checking for $2... " >&6; }
1588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1589 $as_echo_n "(cached) " >&6
1591 eval "$3=\$ac_header_compiler"
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1595 $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_mongrel
1601 # ac_fn_c_try_run LINENO
1602 # ----------------------
1603 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1604 # that executables *can* be run.
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { { ac_try="$ac_link"
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_link") 2>&5
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1619 { { case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_try") 2>&5
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; }; }; then :
1631 $as_echo "$as_me: program exited with status $ac_status" >&5
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1635 ac_retval=$ac_status
1637 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1638 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1644 # -------------------------------------------------------
1645 # Tests whether HEADER exists and can be compiled using the include files in
1646 # INCLUDES, setting the cache variable VAR accordingly.
1647 ac_fn_c_check_header_compile ()
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 $as_echo_n "checking for $2... " >&6; }
1652 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1653 $as_echo_n "(cached) " >&6
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1660 if ac_fn_c_try_compile "$LINENO"; then :
1665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 $as_echo "$ac_res" >&6; }
1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672 } # ac_fn_c_check_header_compile
1674 # ac_fn_c_try_link LINENO
1675 # -----------------------
1676 # Try to link conftest.$ac_ext, and return whether this succeeded.
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext conftest$ac_exeext
1681 if { { ac_try="$ac_link"
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_link") 2>conftest.err
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest$ac_exeext && {
1700 test "$cross_compiling" = yes ||
1701 $as_test_x conftest$ac_exeext
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712 # interfere with the next link command; also delete a directory that is
1713 # left behind by Apple's compiler. We do this before executing the actions.
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 } # ac_fn_c_try_link
1720 # ac_fn_c_check_func LINENO FUNC VAR
1721 # ----------------------------------
1722 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1723 ac_fn_c_check_func ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729 $as_echo_n "(cached) " >&6
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1733 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1735 #define $2 innocuous_$2
1737 /* System header to define __stub macros and hopefully few prototypes,
1738 which can conflict with char $2 (); below.
1739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1740 <limits.h> exists even on freestanding compilers. */
1743 # include <limits.h>
1745 # include <assert.h>
1750 /* Override any GCC internal prototype to avoid an error.
1751 Use char because int might match the return type of a GCC
1752 builtin and then its argument prototype would still apply. */
1757 /* The GNU C library defines this for functions which it implements
1758 to always fail with ENOSYS. Some functions are actually named
1759 something starting with __ and the normal name is an alias. */
1760 #if defined __stub_$2 || defined __stub___$2
1772 if ac_fn_c_try_link "$LINENO"; then :
1777 rm -f core conftest.err conftest.$ac_objext \
1778 conftest$ac_exeext conftest.$ac_ext
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785 } # ac_fn_c_check_func
1787 # ac_fn_c_check_decl LINENO SYMBOL VAR
1788 # ------------------------------------
1789 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1790 ac_fn_c_check_decl ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 as_decl_name=`echo $2|sed 's/ *(.*//'`
1794 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1796 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1797 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1798 $as_echo_n "(cached) " >&6
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1806 #ifndef $as_decl_name
1808 (void) $as_decl_use;
1810 (void) $as_decl_name;
1818 if ac_fn_c_try_compile "$LINENO"; then :
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 } # ac_fn_c_check_decl
1832 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1833 # -------------------------------------------
1834 # Tests whether TYPE exists after having included INCLUDES, setting cache
1835 # variable VAR accordingly.
1836 ac_fn_c_check_type ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1842 $as_echo_n "(cached) " >&6
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1870 if ac_fn_c_try_compile "$LINENO"; then :
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 } # ac_fn_c_check_type
1885 cat >config.log <<_ACEOF
1886 This file contains any messages produced by compilers while
1887 running configure, to aid debugging if configure makes a mistake.
1889 It was created by $as_me, which was
1890 generated by GNU Autoconf 2.64. Invocation command line was
1902 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1903 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1904 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1905 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1906 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1908 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1909 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1911 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1912 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1913 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1914 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1915 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1916 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1917 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 test -z "$as_dir" && as_dir=.
1926 $as_echo "PATH: $as_dir"
1942 # Keep a trace of the command line.
1943 # Strip out --no-create and --no-recursion so they do not pile up.
1944 # Strip out --silent because we don't want to record it for future runs.
1945 # Also quote any args containing shell meta-characters.
1946 # Make two passes to allow for proper duplicate-argument suppression.
1950 ac_must_keep_next=false
1956 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1958 | -silent | --silent | --silen | --sile | --sil)
1961 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1964 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1966 as_fn_append ac_configure_args1 " '$ac_arg'"
1967 if test $ac_must_keep_next = true; then
1968 ac_must_keep_next=false # Got value, back to normal.
1971 *=* | --config-cache | -C | -disable-* | --disable-* \
1972 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1973 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1974 | -with-* | --with-* | -without-* | --without-* | --x)
1975 case "$ac_configure_args0 " in
1976 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1979 -* ) ac_must_keep_next=true ;;
1982 as_fn_append ac_configure_args " '$ac_arg'"
1987 { ac_configure_args0=; unset ac_configure_args0;}
1988 { ac_configure_args1=; unset ac_configure_args1;}
1990 # When interrupted or exit'd, cleanup temporary files, and complete
1991 # config.log. We remove comments because anyway the quotes in there
1992 # would cause problems or look ugly.
1993 # WARNING: Use '\'' to represent an apostrophe within the trap.
1994 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1995 trap 'exit_status=$?
1996 # Save into config.log some information that might help in debugging.
2001 ## ---------------- ##
2002 ## Cache variables. ##
2003 ## ---------------- ##
2006 # The following way of writing the cache mishandles newlines in values,
2008 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2009 eval ac_val=\$$ac_var
2013 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2014 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2017 _ | IFS | as_nl) ;; #(
2018 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2019 *) { eval $ac_var=; unset $ac_var;} ;;
2024 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2025 *${as_nl}ac_space=\ *)
2027 "s/'\''/'\''\\\\'\'''\''/g;
2028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2031 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2039 ## ----------------- ##
2040 ## Output variables. ##
2041 ## ----------------- ##
2044 for ac_var in $ac_subst_vars
2046 eval ac_val=\$$ac_var
2048 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050 $as_echo "$ac_var='\''$ac_val'\''"
2054 if test -n "$ac_subst_files"; then
2056 ## ------------------- ##
2057 ## File substitutions. ##
2058 ## ------------------- ##
2061 for ac_var in $ac_subst_files
2063 eval ac_val=\$$ac_var
2065 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067 $as_echo "$ac_var='\''$ac_val'\''"
2072 if test -s confdefs.h; then
2082 test "$ac_signal" != 0 &&
2083 $as_echo "$as_me: caught signal $ac_signal"
2084 $as_echo "$as_me: exit $exit_status"
2086 rm -f core *.core core.conftest.* &&
2087 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2090 for ac_signal in 1 2 13 15; do
2091 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2095 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2096 rm -f -r conftest* confdefs.h
2098 $as_echo "/* confdefs.h */" > confdefs.h
2100 # Predefined preprocessor variables.
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_NAME "$PACKAGE_NAME"
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_STRING "$PACKAGE_STRING"
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_URL "$PACKAGE_URL"
2127 # Let the site file select an alternate cache file if it wants to.
2128 # Prefer an explicitly selected file to automatically selected ones.
2131 if test -n "$CONFIG_SITE"; then
2132 ac_site_file1=$CONFIG_SITE
2133 elif test "x$prefix" != xNONE; then
2134 ac_site_file1=$prefix/share/config.site
2135 ac_site_file2=$prefix/etc/config.site
2137 ac_site_file1=$ac_default_prefix/share/config.site
2138 ac_site_file2=$ac_default_prefix/etc/config.site
2140 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2142 test "x$ac_site_file" = xNONE && continue
2143 if test -r "$ac_site_file"; then
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2145 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2146 sed 's/^/| /' "$ac_site_file" >&5
2151 if test -r "$cache_file"; then
2152 # Some versions of bash will fail to source /dev/null (special
2153 # files actually), so we avoid doing that.
2154 if test -f "$cache_file"; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2156 $as_echo "$as_me: loading cache $cache_file" >&6;}
2158 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2159 *) . "./$cache_file";;
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2164 $as_echo "$as_me: creating cache $cache_file" >&6;}
2168 # Check that the precious variables saved in the cache have kept the same
2170 ac_cache_corrupted=false
2171 for ac_var in $ac_precious_vars; do
2172 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2173 eval ac_new_set=\$ac_env_${ac_var}_set
2174 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2175 eval ac_new_val=\$ac_env_${ac_var}_value
2176 case $ac_old_set,$ac_new_set in
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2180 ac_cache_corrupted=: ;;
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2183 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2184 ac_cache_corrupted=: ;;
2187 if test "x$ac_old_val" != "x$ac_new_val"; then
2188 # differences in whitespace do not lead to failure.
2189 ac_old_val_w=`echo x $ac_old_val`
2190 ac_new_val_w=`echo x $ac_new_val`
2191 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2193 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2194 ac_cache_corrupted=:
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2197 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2198 eval $ac_var=\$ac_old_val
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2201 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2203 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2206 # Pass precious variables to config.status.
2207 if test "$ac_new_set" = set; then
2209 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2210 *) ac_arg=$ac_var=$ac_new_val ;;
2212 case " $ac_configure_args " in
2213 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2214 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2218 if $ac_cache_corrupted; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2222 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2223 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2225 ## -------------------- ##
2226 ## Main body of script. ##
2227 ## -------------------- ##
2230 ac_cpp='$CPP $CPPFLAGS'
2231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2239 ac_config_headers="$ac_config_headers config.h:config.in"
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2244 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2245 # Check whether --enable-maintainer-mode was given.
2246 if test "${enable_maintainer_mode+set}" = set; then :
2247 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2249 USE_MAINTAINER_MODE=no
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2253 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2254 if test $USE_MAINTAINER_MODE = yes; then
2255 MAINTAINER_MODE_TRUE=
2256 MAINTAINER_MODE_FALSE='#'
2258 MAINTAINER_MODE_TRUE='#'
2259 MAINTAINER_MODE_FALSE=
2262 MAINT=$MAINTAINER_MODE_TRUE
2267 ac_cpp='$CPP $CPPFLAGS'
2268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2271 if test -n "$ac_tool_prefix"; then
2272 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2273 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2275 $as_echo_n "checking for $ac_word... " >&6; }
2276 if test "${ac_cv_prog_CC+set}" = set; then :
2277 $as_echo_n "(cached) " >&6
2279 if test -n "$CC"; then
2280 ac_cv_prog_CC="$CC" # Let the user override the test.
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2289 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2300 if test -n "$CC"; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2302 $as_echo "$CC" >&6; }
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2305 $as_echo "no" >&6; }
2310 if test -z "$ac_cv_prog_CC"; then
2312 # Extract the first word of "gcc", so it can be a program name with args.
2313 set dummy gcc; ac_word=$2
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2315 $as_echo_n "checking for $ac_word... " >&6; }
2316 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2317 $as_echo_n "(cached) " >&6
2319 if test -n "$ac_ct_CC"; then
2320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 test -z "$as_dir" && as_dir=.
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2329 ac_cv_prog_ac_ct_CC="gcc"
2330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2340 if test -n "$ac_ct_CC"; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2342 $as_echo "$ac_ct_CC" >&6; }
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2345 $as_echo "no" >&6; }
2348 if test "x$ac_ct_CC" = x; then
2351 case $cross_compiling:$ac_tool_warned in
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2355 ac_tool_warned=yes ;;
2363 if test -z "$CC"; then
2364 if test -n "$ac_tool_prefix"; then
2365 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2366 set dummy ${ac_tool_prefix}cc; ac_word=$2
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2368 $as_echo_n "checking for $ac_word... " >&6; }
2369 if test "${ac_cv_prog_CC+set}" = set; then :
2370 $as_echo_n "(cached) " >&6
2372 if test -n "$CC"; then
2373 ac_cv_prog_CC="$CC" # Let the user override the test.
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2382 ac_cv_prog_CC="${ac_tool_prefix}cc"
2383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2393 if test -n "$CC"; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2395 $as_echo "$CC" >&6; }
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2398 $as_echo "no" >&6; }
2404 if test -z "$CC"; then
2405 # Extract the first word of "cc", so it can be a program name with args.
2406 set dummy cc; ac_word=$2
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2408 $as_echo_n "checking for $ac_word... " >&6; }
2409 if test "${ac_cv_prog_CC+set}" = set; then :
2410 $as_echo_n "(cached) " >&6
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC="$CC" # Let the user override the test.
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2423 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2424 ac_prog_rejected=yes
2428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 if test $ac_prog_rejected = yes; then
2436 # We found a bogon in the path, so make sure we never use it.
2437 set dummy $ac_cv_prog_CC
2439 if test $# != 0; then
2440 # We chose a different compiler from the bogus one.
2441 # However, it has the same basename, so the bogon will be chosen
2442 # first if we set CC to just the basename; use the full file name.
2444 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2450 if test -n "$CC"; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2452 $as_echo "$CC" >&6; }
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2455 $as_echo "no" >&6; }
2460 if test -z "$CC"; then
2461 if test -n "$ac_tool_prefix"; then
2462 for ac_prog in cl.exe
2464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2465 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467 $as_echo_n "checking for $ac_word... " >&6; }
2468 if test "${ac_cv_prog_CC+set}" = set; then :
2469 $as_echo_n "(cached) " >&6
2471 if test -n "$CC"; then
2472 ac_cv_prog_CC="$CC" # Let the user override the test.
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 if test -n "$CC"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2494 $as_echo "$CC" >&6; }
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497 $as_echo "no" >&6; }
2501 test -n "$CC" && break
2504 if test -z "$CC"; then
2506 for ac_prog in cl.exe
2508 # Extract the first word of "$ac_prog", so it can be a program name with args.
2509 set dummy $ac_prog; ac_word=$2
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511 $as_echo_n "checking for $ac_word... " >&6; }
2512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2513 $as_echo_n "(cached) " >&6
2515 if test -n "$ac_ct_CC"; then
2516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525 ac_cv_prog_ac_ct_CC="$ac_prog"
2526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2536 if test -n "$ac_ct_CC"; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2538 $as_echo "$ac_ct_CC" >&6; }
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541 $as_echo "no" >&6; }
2545 test -n "$ac_ct_CC" && break
2548 if test "x$ac_ct_CC" = x; then
2551 case $cross_compiling:$ac_tool_warned in
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2555 ac_tool_warned=yes ;;
2564 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2566 as_fn_error "no acceptable C compiler found in \$PATH
2567 See \`config.log' for more details." "$LINENO" 5; }
2569 # Provide some information about the compiler.
2570 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2573 for ac_option in --version -v -V -qversion; do
2574 { { ac_try="$ac_compiler $ac_option >&5"
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2580 $as_echo "$ac_try_echo"; } >&5
2581 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2583 if test -s conftest.err; then
2585 ... rest of stderr output deleted ...
2586 10q' conftest.err >conftest.er1
2587 cat conftest.er1 >&5
2588 rm -f conftest.er1 conftest.err
2590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2591 test $ac_status = 0; }
2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h. */
2605 ac_clean_files_save=$ac_clean_files
2606 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2607 # Try to create an executable without -o first, disregard a.out.
2608 # It will help us diagnose broken compilers, and finding out an intuition
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2611 $as_echo_n "checking for C compiler default output file name... " >&6; }
2612 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2614 # The possible output files:
2615 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2618 for ac_file in $ac_files
2621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2622 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2627 if { { ac_try="$ac_link_default"
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2633 $as_echo "$ac_try_echo"; } >&5
2634 (eval "$ac_link_default") 2>&5
2636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2637 test $ac_status = 0; }; then :
2638 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2639 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2640 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2641 # so that the user can short-circuit this test for compilers unknown to
2643 for ac_file in $ac_files ''
2645 test -f "$ac_file" || continue
2647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2650 # We found the default executable, but exeext='' is most
2654 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2656 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2658 # We set ac_cv_exeext here because the later test for it is not
2659 # safe: cross compilers may not add the suffix if given an `-o'
2660 # argument, so we may need to know it at that point already.
2661 # Even if this section looks crufty: it has the advantage of
2668 test "$ac_cv_exeext" = no && ac_cv_exeext=
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2674 $as_echo "$ac_file" >&6; }
2675 if test -z "$ac_file"; then :
2676 $as_echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2681 { as_fn_set_status 77
2682 as_fn_error "C compiler cannot create executables
2683 See \`config.log' for more details." "$LINENO" 5; }; }
2685 ac_exeext=$ac_cv_exeext
2687 # Check that the compiler produces executables we can run. If not, either
2688 # the compiler is broken, or we cross compile.
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2690 $as_echo_n "checking whether the C compiler works... " >&6; }
2691 # If not cross compiling, check that we can run a simple program.
2692 if test "$cross_compiling" != yes; then
2693 if { ac_try='./$ac_file'
2694 { { case "(($ac_try" in
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2699 $as_echo "$ac_try_echo"; } >&5
2700 (eval "$ac_try") 2>&5
2702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2703 test $ac_status = 0; }; }; then
2706 if test "$cross_compiling" = maybe; then
2709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2711 as_fn_error "cannot run C compiled programs.
2712 If you meant to cross compile, use \`--host'.
2713 See \`config.log' for more details." "$LINENO" 5; }
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2718 $as_echo "yes" >&6; }
2720 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2721 ac_clean_files=$ac_clean_files_save
2722 # Check that the compiler produces executables we can run. If not, either
2723 # the compiler is broken, or we cross compile.
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2725 $as_echo_n "checking whether we are cross compiling... " >&6; }
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2727 $as_echo "$cross_compiling" >&6; }
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2730 $as_echo_n "checking for suffix of executables... " >&6; }
2731 if { { ac_try="$ac_link"
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2737 $as_echo "$ac_try_echo"; } >&5
2738 (eval "$ac_link") 2>&5
2740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2741 test $ac_status = 0; }; then :
2742 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2743 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2744 # work properly (i.e., refer to `conftest.exe'), while it won't with
2746 for ac_file in conftest.exe conftest conftest.*; do
2747 test -f "$ac_file" || continue
2749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2750 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2758 as_fn_error "cannot compute suffix of executables: cannot compile and link
2759 See \`config.log' for more details." "$LINENO" 5; }
2761 rm -f conftest$ac_cv_exeext
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2763 $as_echo "$ac_cv_exeext" >&6; }
2765 rm -f conftest.$ac_ext
2766 EXEEXT=$ac_cv_exeext
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2769 $as_echo_n "checking for suffix of object files... " >&6; }
2770 if test "${ac_cv_objext+set}" = set; then :
2771 $as_echo_n "(cached) " >&6
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2784 rm -f conftest.o conftest.obj
2785 if { { ac_try="$ac_compile"
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2791 $as_echo "$ac_try_echo"; } >&5
2792 (eval "$ac_compile") 2>&5
2794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2795 test $ac_status = 0; }; then :
2796 for ac_file in conftest.o conftest.obj conftest.*; do
2797 test -f "$ac_file" || continue;
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2800 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2805 $as_echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2810 as_fn_error "cannot compute suffix of object files: cannot compile
2811 See \`config.log' for more details." "$LINENO" 5; }
2813 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2816 $as_echo "$ac_cv_objext" >&6; }
2817 OBJEXT=$ac_cv_objext
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2820 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2821 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2822 $as_echo_n "(cached) " >&6
2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h. */
2838 if ac_fn_c_try_compile "$LINENO"; then :
2843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2848 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2849 if test $ac_compiler_gnu = yes; then
2854 ac_test_CFLAGS=${CFLAGS+set}
2855 ac_save_CFLAGS=$CFLAGS
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2857 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2858 if test "${ac_cv_prog_cc_g+set}" = set; then :
2859 $as_echo_n "(cached) " >&6
2861 ac_save_c_werror_flag=$ac_c_werror_flag
2862 ac_c_werror_flag=yes
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2876 if ac_fn_c_try_compile "$LINENO"; then :
2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881 /* end confdefs.h. */
2891 if ac_fn_c_try_compile "$LINENO"; then :
2894 ac_c_werror_flag=$ac_save_c_werror_flag
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897 /* end confdefs.h. */
2907 if ac_fn_c_try_compile "$LINENO"; then :
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915 ac_c_werror_flag=$ac_save_c_werror_flag
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2918 $as_echo "$ac_cv_prog_cc_g" >&6; }
2919 if test "$ac_test_CFLAGS" = set; then
2920 CFLAGS=$ac_save_CFLAGS
2921 elif test $ac_cv_prog_cc_g = yes; then
2922 if test "$GCC" = yes; then
2928 if test "$GCC" = yes; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2935 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2936 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2937 $as_echo_n "(cached) " >&6
2939 ac_cv_prog_cc_c89=no
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h. */
2945 #include <sys/types.h>
2946 #include <sys/stat.h>
2947 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2948 struct buf { int x; };
2949 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2950 static char *e (p, i)
2956 static char *f (char * (*g) (char **, int), char **p, ...)
2961 s = g (p, va_arg (v,int));
2966 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2967 function prototypes and stuff, but not '\xHH' hex character constants.
2968 These don't provoke an error unfortunately, instead are silently treated
2969 as 'x'. The following induces an error, until -std is added to get
2970 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2971 array size at least. It's necessary to write '\x00'==0 to get something
2972 that's true only with -std. */
2973 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2975 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2976 inside strings and character constants. */
2978 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2980 int test (int i, double x);
2981 struct s1 {int (*f) (int a);};
2982 struct s2 {int (*f) (double a);};
2983 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2989 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2994 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2995 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2997 CC="$ac_save_CC $ac_arg"
2998 if ac_fn_c_try_compile "$LINENO"; then :
2999 ac_cv_prog_cc_c89=$ac_arg
3001 rm -f core conftest.err conftest.$ac_objext
3002 test "x$ac_cv_prog_cc_c89" != "xno" && break
3004 rm -f conftest.$ac_ext
3009 case "x$ac_cv_prog_cc_c89" in
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3012 $as_echo "none needed" >&6; } ;;
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3015 $as_echo "unsupported" >&6; } ;;
3017 CC="$CC $ac_cv_prog_cc_c89"
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3019 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3021 if test "x$ac_cv_prog_cc_c89" != xno; then :
3026 ac_cpp='$CPP $CPPFLAGS'
3027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3038 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3039 # On Suns, sometimes $CPP names a directory.
3040 if test -n "$CPP" && test -d "$CPP"; then
3043 if test -z "$CPP"; then
3044 if test "${ac_cv_prog_CPP+set}" = set; then :
3045 $as_echo_n "(cached) " >&6
3047 # Double quotes because CPP needs to be expanded
3048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3051 for ac_c_preproc_warn_flag in '' yes
3053 # Use a header file that comes with gcc, so configuring glibc
3054 # with a fresh cross-compiler works.
3055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3056 # <limits.h> exists even on freestanding compilers.
3057 # On the NeXT, cc -E runs the code through the compiler's parser,
3058 # not just through cpp. "Syntax error" is here to catch this case.
3059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060 /* end confdefs.h. */
3062 # include <limits.h>
3064 # include <assert.h>
3068 if ac_fn_c_try_cpp "$LINENO"; then :
3071 # Broken: fails on valid input.
3074 rm -f conftest.err conftest.$ac_ext
3076 # OK, works on sane cases. Now check whether nonexistent headers
3077 # can be detected and how.
3078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079 /* end confdefs.h. */
3080 #include <ac_nonexistent.h>
3082 if ac_fn_c_try_cpp "$LINENO"; then :
3083 # Broken: success on invalid input.
3086 # Passes both tests.
3090 rm -f conftest.err conftest.$ac_ext
3093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3094 rm -f conftest.err conftest.$ac_ext
3095 if $ac_preproc_ok; then :
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3108 $as_echo "$CPP" >&6; }
3110 for ac_c_preproc_warn_flag in '' yes
3112 # Use a header file that comes with gcc, so configuring glibc
3113 # with a fresh cross-compiler works.
3114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3115 # <limits.h> exists even on freestanding compilers.
3116 # On the NeXT, cc -E runs the code through the compiler's parser,
3117 # not just through cpp. "Syntax error" is here to catch this case.
3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119 /* end confdefs.h. */
3121 # include <limits.h>
3123 # include <assert.h>
3127 if ac_fn_c_try_cpp "$LINENO"; then :
3130 # Broken: fails on valid input.
3133 rm -f conftest.err conftest.$ac_ext
3135 # OK, works on sane cases. Now check whether nonexistent headers
3136 # can be detected and how.
3137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138 /* end confdefs.h. */
3139 #include <ac_nonexistent.h>
3141 if ac_fn_c_try_cpp "$LINENO"; then :
3142 # Broken: success on invalid input.
3145 # Passes both tests.
3149 rm -f conftest.err conftest.$ac_ext
3152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3153 rm -f conftest.err conftest.$ac_ext
3154 if $ac_preproc_ok; then :
3157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3160 See \`config.log' for more details." "$LINENO" 5; }
3164 ac_cpp='$CPP $CPPFLAGS'
3165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3171 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3172 if test "${ac_cv_path_GREP+set}" = set; then :
3173 $as_echo_n "(cached) " >&6
3175 if test -z "$GREP"; then
3176 ac_path_GREP_found=false
3177 # Loop through the user's path and test for each of PROGNAME-LIST
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3182 test -z "$as_dir" && as_dir=.
3183 for ac_prog in grep ggrep; do
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3186 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3187 # Check for GNU ac_path_GREP and select it if it is found.
3188 # Check for GNU $ac_path_GREP
3189 case `"$ac_path_GREP" --version 2>&1` in
3191 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3194 $as_echo_n 0123456789 >"conftest.in"
3197 cat "conftest.in" "conftest.in" >"conftest.tmp"
3198 mv "conftest.tmp" "conftest.in"
3199 cp "conftest.in" "conftest.nl"
3200 $as_echo 'GREP' >> "conftest.nl"
3201 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3203 as_fn_arith $ac_count + 1 && ac_count=$as_val
3204 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3205 # Best one so far, save it but keep looking for a better one
3206 ac_cv_path_GREP="$ac_path_GREP"
3207 ac_path_GREP_max=$ac_count
3209 # 10*(2^10) chars as input seems more than enough
3210 test $ac_count -gt 10 && break
3212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3215 $ac_path_GREP_found && break 3
3220 if test -z "$ac_cv_path_GREP"; then
3221 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3224 ac_cv_path_GREP=$GREP
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3229 $as_echo "$ac_cv_path_GREP" >&6; }
3230 GREP="$ac_cv_path_GREP"
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3234 $as_echo_n "checking for egrep... " >&6; }
3235 if test "${ac_cv_path_EGREP+set}" = set; then :
3236 $as_echo_n "(cached) " >&6
3238 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3239 then ac_cv_path_EGREP="$GREP -E"
3241 if test -z "$EGREP"; then
3242 ac_path_EGREP_found=false
3243 # Loop through the user's path and test for each of PROGNAME-LIST
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3248 test -z "$as_dir" && as_dir=.
3249 for ac_prog in egrep; do
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3252 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3253 # Check for GNU ac_path_EGREP and select it if it is found.
3254 # Check for GNU $ac_path_EGREP
3255 case `"$ac_path_EGREP" --version 2>&1` in
3257 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3260 $as_echo_n 0123456789 >"conftest.in"
3263 cat "conftest.in" "conftest.in" >"conftest.tmp"
3264 mv "conftest.tmp" "conftest.in"
3265 cp "conftest.in" "conftest.nl"
3266 $as_echo 'EGREP' >> "conftest.nl"
3267 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3269 as_fn_arith $ac_count + 1 && ac_count=$as_val
3270 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3271 # Best one so far, save it but keep looking for a better one
3272 ac_cv_path_EGREP="$ac_path_EGREP"
3273 ac_path_EGREP_max=$ac_count
3275 # 10*(2^10) chars as input seems more than enough
3276 test $ac_count -gt 10 && break
3278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3281 $ac_path_EGREP_found && break 3
3286 if test -z "$ac_cv_path_EGREP"; then
3287 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3290 ac_cv_path_EGREP=$EGREP
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3296 $as_echo "$ac_cv_path_EGREP" >&6; }
3297 EGREP="$ac_cv_path_EGREP"
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3301 $as_echo_n "checking for ANSI C header files... " >&6; }
3302 if test "${ac_cv_header_stdc+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3320 if ac_fn_c_try_compile "$LINENO"; then :
3321 ac_cv_header_stdc=yes
3323 ac_cv_header_stdc=no
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 if test $ac_cv_header_stdc = yes; then
3328 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3335 $EGREP "memchr" >/dev/null 2>&1; then :
3338 ac_cv_header_stdc=no
3344 if test $ac_cv_header_stdc = yes; then
3345 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3352 $EGREP "free" >/dev/null 2>&1; then :
3355 ac_cv_header_stdc=no
3361 if test $ac_cv_header_stdc = yes; then
3362 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3363 if test "$cross_compiling" = yes; then :
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3370 #if ((' ' & 0x0FF) == 0x020)
3371 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3372 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3374 # define ISLOWER(c) \
3375 (('a' <= (c) && (c) <= 'i') \
3376 || ('j' <= (c) && (c) <= 'r') \
3377 || ('s' <= (c) && (c) <= 'z'))
3378 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3381 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3386 for (i = 0; i < 256; i++)
3387 if (XOR (islower (i), ISLOWER (i))
3388 || toupper (i) != TOUPPER (i))
3393 if ac_fn_c_try_run "$LINENO"; then :
3396 ac_cv_header_stdc=no
3398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3399 conftest.$ac_objext conftest.beam conftest.$ac_ext
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3405 $as_echo "$ac_cv_header_stdc" >&6; }
3406 if test $ac_cv_header_stdc = yes; then
3408 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3412 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3413 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3414 inttypes.h stdint.h unistd.h
3416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3417 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3419 eval as_val=\$$as_ac_Header
3420 if test "x$as_val" = x""yes; then :
3421 cat >>confdefs.h <<_ACEOF
3422 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3431 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3432 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3439 if test "$MINIX" = yes; then
3441 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3444 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3447 $as_echo "#define _MINIX 1" >>confdefs.h
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3453 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3454 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3455 $as_echo_n "(cached) " >&6
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3460 # define __EXTENSIONS__ 1
3461 $ac_includes_default
3470 if ac_fn_c_try_compile "$LINENO"; then :
3471 ac_cv_safe_to_define___extensions__=yes
3473 ac_cv_safe_to_define___extensions__=no
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3478 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3479 test $ac_cv_safe_to_define___extensions__ = yes &&
3480 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3482 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3484 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3486 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3488 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3492 # Check whether --enable-largefile was given.
3493 if test "${enable_largefile+set}" = set; then :
3494 enableval=$enable_largefile;
3497 if test "$enable_largefile" != no; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3500 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3501 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
3504 ac_cv_sys_largefile_CC=no
3505 if test "$GCC" != yes; then
3508 # IRIX 6.2 and later do not support large files by default,
3509 # so use the C compiler's -n32 option if that helps.
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3512 #include <sys/types.h>
3513 /* Check that off_t can represent 2**63 - 1 correctly.
3514 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3515 since some C++ compilers masquerading as C compilers
3516 incorrectly reject 9223372036854775807. */
3517 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3519 && LARGE_OFF_T % 2147483647 == 1)
3529 if ac_fn_c_try_compile "$LINENO"; then :
3532 rm -f core conftest.err conftest.$ac_objext
3534 if ac_fn_c_try_compile "$LINENO"; then :
3535 ac_cv_sys_largefile_CC=' -n32'; break
3537 rm -f core conftest.err conftest.$ac_objext
3541 rm -f conftest.$ac_ext
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3545 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3546 if test "$ac_cv_sys_largefile_CC" != no; then
3547 CC=$CC$ac_cv_sys_largefile_CC
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3551 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3552 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3558 #include <sys/types.h>
3559 /* Check that off_t can represent 2**63 - 1 correctly.
3560 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3561 since some C++ compilers masquerading as C compilers
3562 incorrectly reject 9223372036854775807. */
3563 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3564 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3565 && LARGE_OFF_T % 2147483647 == 1)
3575 if ac_fn_c_try_compile "$LINENO"; then :
3576 ac_cv_sys_file_offset_bits=no; break
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3581 #define _FILE_OFFSET_BITS 64
3582 #include <sys/types.h>
3583 /* Check that off_t can represent 2**63 - 1 correctly.
3584 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3585 since some C++ compilers masquerading as C compilers
3586 incorrectly reject 9223372036854775807. */
3587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3589 && LARGE_OFF_T % 2147483647 == 1)
3599 if ac_fn_c_try_compile "$LINENO"; then :
3600 ac_cv_sys_file_offset_bits=64; break
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 ac_cv_sys_file_offset_bits=unknown
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3608 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3609 case $ac_cv_sys_file_offset_bits in #(
3612 cat >>confdefs.h <<_ACEOF
3613 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3618 if test $ac_cv_sys_file_offset_bits = unknown; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3620 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3621 if test "${ac_cv_sys_large_files+set}" = set; then :
3622 $as_echo_n "(cached) " >&6
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3627 #include <sys/types.h>
3628 /* Check that off_t can represent 2**63 - 1 correctly.
3629 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3630 since some C++ compilers masquerading as C compilers
3631 incorrectly reject 9223372036854775807. */
3632 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3633 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3634 && LARGE_OFF_T % 2147483647 == 1)
3644 if ac_fn_c_try_compile "$LINENO"; then :
3645 ac_cv_sys_large_files=no; break
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3650 #define _LARGE_FILES 1
3651 #include <sys/types.h>
3652 /* Check that off_t can represent 2**63 - 1 correctly.
3653 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3654 since some C++ compilers masquerading as C compilers
3655 incorrectly reject 9223372036854775807. */
3656 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3657 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3658 && LARGE_OFF_T % 2147483647 == 1)
3668 if ac_fn_c_try_compile "$LINENO"; then :
3669 ac_cv_sys_large_files=1; break
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_cv_sys_large_files=unknown
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3677 $as_echo "$ac_cv_sys_large_files" >&6; }
3678 case $ac_cv_sys_large_files in #(
3681 cat >>confdefs.h <<_ACEOF
3682 #define _LARGE_FILES $ac_cv_sys_large_files
3692 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3693 for ac_t in install-sh install.sh shtool; do
3694 if test -f "$ac_dir/$ac_t"; then
3696 ac_install_sh="$ac_aux_dir/$ac_t -c"
3701 if test -z "$ac_aux_dir"; then
3702 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3705 # These three variables are undocumented and unsupported,
3706 # and are intended to be withdrawn in a future Autoconf release.
3707 # They can cause serious problems if a builder's source tree is in a directory
3708 # whose full name contains unusual characters.
3709 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3710 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3711 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3714 # Make sure we can run config.sub.
3715 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3716 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3719 $as_echo_n "checking build system type... " >&6; }
3720 if test "${ac_cv_build+set}" = set; then :
3721 $as_echo_n "(cached) " >&6
3723 ac_build_alias=$build_alias
3724 test "x$ac_build_alias" = x &&
3725 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3726 test "x$ac_build_alias" = x &&
3727 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3728 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3729 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3733 $as_echo "$ac_cv_build" >&6; }
3734 case $ac_cv_build in
3736 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3739 ac_save_IFS=$IFS; IFS='-'
3745 # Remember, the first character of IFS is used to create $*,
3746 # except with old shells:
3749 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3753 $as_echo_n "checking host system type... " >&6; }
3754 if test "${ac_cv_host+set}" = set; then :
3755 $as_echo_n "(cached) " >&6
3757 if test "x$host_alias" = x; then
3758 ac_cv_host=$ac_cv_build
3760 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3761 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3766 $as_echo "$ac_cv_host" >&6; }
3769 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3772 ac_save_IFS=$IFS; IFS='-'
3778 # Remember, the first character of IFS is used to create $*,
3779 # except with old shells:
3782 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3786 $as_echo_n "checking target system type... " >&6; }
3787 if test "${ac_cv_target+set}" = set; then :
3788 $as_echo_n "(cached) " >&6
3790 if test "x$target_alias" = x; then
3791 ac_cv_target=$ac_cv_host
3793 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3794 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3799 $as_echo "$ac_cv_target" >&6; }
3800 case $ac_cv_target in
3802 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3804 target=$ac_cv_target
3805 ac_save_IFS=$IFS; IFS='-'
3811 # Remember, the first character of IFS is used to create $*,
3812 # except with old shells:
3815 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3818 # The aliases save the names the user supplied, while $host etc.
3819 # will get canonicalized.
3820 test -n "$target_alias" &&
3821 test "$program_prefix$program_suffix$program_transform_name" = \
3823 program_prefix=${target_alias}-
3826 # Find a good install program. We prefer a C program (faster),
3827 # so one script is as good as another. But avoid the broken or
3828 # incompatible versions:
3829 # SysV /etc/install, /usr/sbin/install
3830 # SunOS /usr/etc/install
3831 # IRIX /sbin/install
3833 # AmigaOS /C/install, which installs bootblocks on floppy discs
3834 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3835 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3836 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3837 # OS/2's system install, which has a completely different semantic
3838 # ./install, which can be erroneously created by make from ./install.sh.
3839 # Reject install programs that cannot install multiple files.
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3841 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3842 if test -z "$INSTALL"; then
3843 if test "${ac_cv_path_install+set}" = set; then :
3844 $as_echo_n "(cached) " >&6
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 test -z "$as_dir" && as_dir=.
3851 # Account for people who put trailing slashes in PATH elements.
3852 case $as_dir/ in #((
3853 ./ | .// | /[cC]/* | \
3854 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3855 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3858 # OSF1 and SCO ODT 3.0 have their own names for install.
3859 # Don't use installbsd from OSF since it installs stuff as root
3861 for ac_prog in ginstall scoinst install; do
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3864 if test $ac_prog = install &&
3865 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3866 # AIX install. It has an incompatible calling convention.
3868 elif test $ac_prog = install &&
3869 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3870 # program-specific install script used by HP pwplus--don't use.
3873 rm -rf conftest.one conftest.two conftest.dir
3874 echo one > conftest.one
3875 echo two > conftest.two
3877 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3878 test -s conftest.one && test -s conftest.two &&
3879 test -s conftest.dir/conftest.one &&
3880 test -s conftest.dir/conftest.two
3882 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3895 rm -rf conftest.one conftest.two conftest.dir
3898 if test "${ac_cv_path_install+set}" = set; then
3899 INSTALL=$ac_cv_path_install
3901 # As a last resort, use the slow shell script. Don't cache a
3902 # value for INSTALL within a source directory, because that will
3903 # break other packages using the cache if that directory is
3904 # removed, or if the value is a relative name.
3905 INSTALL=$ac_install_sh
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3909 $as_echo "$INSTALL" >&6; }
3911 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3912 # It thinks the first close brace ends the variable substitution.
3913 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3915 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3917 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3919 if test -n "$ac_tool_prefix"; then
3920 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3921 set dummy ${ac_tool_prefix}ar; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if test "${ac_cv_prog_AR+set}" = set; then :
3925 $as_echo_n "(cached) " >&6
3927 if test -n "$AR"; then
3928 ac_cv_prog_AR="$AR" # Let the user override the test.
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_prog_AR="${ac_tool_prefix}ar"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 if test -n "$AR"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3950 $as_echo "$AR" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3958 if test -z "$ac_cv_prog_AR"; then
3960 # Extract the first word of "ar", so it can be a program name with args.
3961 set dummy ar; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3965 $as_echo_n "(cached) " >&6
3967 if test -n "$ac_ct_AR"; then
3968 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3977 ac_cv_prog_ac_ct_AR="ar"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3988 if test -n "$ac_ct_AR"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3990 $as_echo "$ac_ct_AR" >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3996 if test "x$ac_ct_AR" = x; then
3999 case $cross_compiling:$ac_tool_warned in
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4003 ac_tool_warned=yes ;;
4011 if test -n "$ac_tool_prefix"; then
4012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4013 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
4019 if test -n "$RANLIB"; then
4020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 test -z "$as_dir" && as_dir=.
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4029 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 RANLIB=$ac_cv_prog_RANLIB
4040 if test -n "$RANLIB"; then
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4042 $as_echo "$RANLIB" >&6; }
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4050 if test -z "$ac_cv_prog_RANLIB"; then
4051 ac_ct_RANLIB=$RANLIB
4052 # Extract the first word of "ranlib", so it can be a program name with args.
4053 set dummy ranlib; ac_word=$2
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4055 $as_echo_n "checking for $ac_word... " >&6; }
4056 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4057 $as_echo_n "(cached) " >&6
4059 if test -n "$ac_ct_RANLIB"; then
4060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 test -z "$as_dir" && as_dir=.
4067 for ac_exec_ext in '' $ac_executable_extensions; do
4068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069 ac_cv_prog_ac_ct_RANLIB="ranlib"
4070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4080 if test -n "$ac_ct_RANLIB"; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4082 $as_echo "$ac_ct_RANLIB" >&6; }
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085 $as_echo "no" >&6; }
4088 if test "x$ac_ct_RANLIB" = x; then
4091 case $cross_compiling:$ac_tool_warned in
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4095 ac_tool_warned=yes ;;
4097 RANLIB=$ac_ct_RANLIB
4100 RANLIB="$ac_cv_prog_RANLIB"
4104 test "$program_prefix" != NONE &&
4105 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4106 # Use a double $ so make ignores it.
4107 test "$program_suffix" != NONE &&
4108 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4109 # Double any \ or $.
4110 # By default was `s,x,x', remove it if useless.
4111 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4112 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4116 $as_echo_n "checking for ANSI C header files... " >&6; }
4117 if test "${ac_cv_header_stdc+set}" = set; then :
4118 $as_echo_n "(cached) " >&6
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4135 if ac_fn_c_try_compile "$LINENO"; then :
4136 ac_cv_header_stdc=yes
4138 ac_cv_header_stdc=no
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 if test $ac_cv_header_stdc = yes; then
4143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 $EGREP "memchr" >/dev/null 2>&1; then :
4153 ac_cv_header_stdc=no
4159 if test $ac_cv_header_stdc = yes; then
4160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4167 $EGREP "free" >/dev/null 2>&1; then :
4170 ac_cv_header_stdc=no
4176 if test $ac_cv_header_stdc = yes; then
4177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4178 if test "$cross_compiling" = yes; then :
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4185 #if ((' ' & 0x0FF) == 0x020)
4186 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4187 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4189 # define ISLOWER(c) \
4190 (('a' <= (c) && (c) <= 'i') \
4191 || ('j' <= (c) && (c) <= 'r') \
4192 || ('s' <= (c) && (c) <= 'z'))
4193 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4196 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4201 for (i = 0; i < 256; i++)
4202 if (XOR (islower (i), ISLOWER (i))
4203 || toupper (i) != TOUPPER (i))
4208 if ac_fn_c_try_run "$LINENO"; then :
4211 ac_cv_header_stdc=no
4213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4214 conftest.$ac_objext conftest.beam conftest.$ac_ext
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4220 $as_echo "$ac_cv_header_stdc" >&6; }
4221 if test $ac_cv_header_stdc = yes; then
4223 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4228 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4229 # for constant arguments. Useless!
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4231 $as_echo_n "checking for working alloca.h... " >&6; }
4232 if test "${ac_cv_working_alloca_h+set}" = set; then :
4233 $as_echo_n "(cached) " >&6
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4241 char *p = (char *) alloca (2 * sizeof (int));
4247 if ac_fn_c_try_link "$LINENO"; then :
4248 ac_cv_working_alloca_h=yes
4250 ac_cv_working_alloca_h=no
4252 rm -f core conftest.err conftest.$ac_objext \
4253 conftest$ac_exeext conftest.$ac_ext
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4256 $as_echo "$ac_cv_working_alloca_h" >&6; }
4257 if test $ac_cv_working_alloca_h = yes; then
4259 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4264 $as_echo_n "checking for alloca... " >&6; }
4265 if test "${ac_cv_func_alloca_works+set}" = set; then :
4266 $as_echo_n "(cached) " >&6
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4271 # define alloca __builtin_alloca
4274 # include <malloc.h>
4275 # define alloca _alloca
4277 # ifdef HAVE_ALLOCA_H
4278 # include <alloca.h>
4283 # ifndef alloca /* predefined by HP cc +Olibcalls */
4294 char *p = (char *) alloca (1);
4300 if ac_fn_c_try_link "$LINENO"; then :
4301 ac_cv_func_alloca_works=yes
4303 ac_cv_func_alloca_works=no
4305 rm -f core conftest.err conftest.$ac_objext \
4306 conftest$ac_exeext conftest.$ac_ext
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4309 $as_echo "$ac_cv_func_alloca_works" >&6; }
4311 if test $ac_cv_func_alloca_works = yes; then
4313 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4316 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4317 # that cause trouble. Some versions do not even contain alloca or
4318 # contain a buggy version. If you still want to use their alloca,
4319 # use ar to extract alloca.o from them instead of compiling alloca.c.
4321 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4323 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4327 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4328 if test "${ac_cv_os_cray+set}" = set; then :
4329 $as_echo_n "(cached) " >&6
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333 #if defined CRAY && ! defined CRAY2
4340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4341 $EGREP "webecray" >/dev/null 2>&1; then :
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4350 $as_echo "$ac_cv_os_cray" >&6; }
4351 if test $ac_cv_os_cray = yes; then
4352 for ac_func in _getb67 GETB67 getb67; do
4353 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4354 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4355 eval as_val=\$$as_ac_var
4356 if test "x$as_val" = x""yes; then :
4358 cat >>confdefs.h <<_ACEOF
4359 #define CRAY_STACKSEG_END $ac_func
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4369 $as_echo_n "checking stack direction for C alloca... " >&6; }
4370 if test "${ac_cv_c_stack_direction+set}" = set; then :
4371 $as_echo_n "(cached) " >&6
4373 if test "$cross_compiling" = yes; then :
4374 ac_cv_c_stack_direction=0
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4378 $ac_includes_default
4380 find_stack_direction ()
4382 static char *addr = 0;
4387 return find_stack_direction ();
4390 return (&dummy > addr) ? 1 : -1;
4396 return find_stack_direction () < 0;
4399 if ac_fn_c_try_run "$LINENO"; then :
4400 ac_cv_c_stack_direction=1
4402 ac_cv_c_stack_direction=-1
4404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4405 conftest.$ac_objext conftest.beam conftest.$ac_ext
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4410 $as_echo "$ac_cv_c_stack_direction" >&6; }
4411 cat >>confdefs.h <<_ACEOF
4412 #define STACK_DIRECTION $ac_cv_c_stack_direction
4419 # Set the 'development' global.
4420 . $srcdir/../../bfd/development.sh
4422 # Enable -lmcheck by default (it provides cheap-enough memory
4423 # mangling), but turn it off for releases.
4424 if $development; then
4425 libmcheck_default=yes
4427 libmcheck_default=no
4430 # Check whether --enable-libmcheck was given.
4431 if test "${enable_libmcheck+set}" = set; then :
4432 enableval=$enable_libmcheck; case "${enableval}" in
4433 yes | y) ENABLE_LIBMCHECK="yes" ;;
4434 no | n) ENABLE_LIBMCHECK="no" ;;
4435 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
4440 if test -z "${ENABLE_LIBMCHECK}"; then
4441 ENABLE_LIBMCHECK=${libmcheck_default}
4444 if test "$ENABLE_LIBMCHECK" = "yes" ; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
4446 $as_echo_n "checking for main in -lmcheck... " >&6; }
4447 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4450 ac_check_lib_save_LIBS=$LIBS
4451 LIBS="-lmcheck $LIBS"
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4464 if ac_fn_c_try_link "$LINENO"; then :
4465 ac_cv_lib_mcheck_main=yes
4467 ac_cv_lib_mcheck_main=no
4469 rm -f core conftest.err conftest.$ac_objext \
4470 conftest$ac_exeext conftest.$ac_ext
4471 LIBS=$ac_check_lib_save_LIBS
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
4474 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
4475 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
4476 cat >>confdefs.h <<_ACEOF
4477 #define HAVE_LIBMCHECK 1
4480 LIBS="-lmcheck $LIBS"
4487 case ${build_alias} in
4488 "") build_noncanonical=${build} ;;
4489 *) build_noncanonical=${build_alias} ;;
4492 case ${host_alias} in
4493 "") host_noncanonical=${build_noncanonical} ;;
4494 *) host_noncanonical=${host_alias} ;;
4497 case ${target_alias} in
4498 "") target_noncanonical=${host_noncanonical} ;;
4499 *) target_noncanonical=${target_alias} ;;
4507 # Dependency checking.
4508 rm -rf .tst 2>/dev/null
4509 mkdir .tst 2>/dev/null
4510 if test -d .tst; then
4515 rmdir .tst 2>/dev/null
4517 DEPDIR="${am__leading_dot}deps"
4519 ac_config_commands="$ac_config_commands depdir"
4522 depcc="$CC" am_compiler_list=
4524 am_depcomp=$ac_aux_dir/depcomp
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4526 $as_echo_n "checking dependency style of $depcc... " >&6; }
4527 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4530 if test -f "$am_depcomp"; then
4531 # We make a subdir and do the tests there. Otherwise we can end up
4532 # making bogus files that we don't know about and never remove. For
4533 # instance it was reported that on HP-UX the gcc test will end up
4534 # making a dummy file named `D' -- because `-MD' means `put the output
4537 # Copy depcomp to subdir because otherwise we won't find it if we're
4538 # using a relative directory.
4539 cp "$am_depcomp" conftest.dir
4541 # We will build objects and dependencies in a subdirectory because
4542 # it helps to detect inapplicable dependency modes. For instance
4543 # both Tru64's cc and ICC support -MD to output dependencies as a
4544 # side effect of compilation, but ICC will put the dependencies in
4545 # the current directory while Tru64 will put them in the object
4549 am_cv_CC_dependencies_compiler_type=none
4550 if test "$am_compiler_list" = ""; then
4551 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4553 for depmode in $am_compiler_list; do
4554 if test $depmode = none; then break; fi
4556 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4557 # Setup a source with many dependencies, because some compilers
4558 # like to wrap large dependency lists on column 80 (with \), and
4559 # we should not choose a depcomp mode which is confused by this.
4561 # We need to recreate these files for each test, as the compiler may
4562 # overwrite some of them when testing with obscure command lines.
4563 # This happens at least with the AIX C compiler.
4565 for i in 1 2 3 4 5 6; do
4566 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4567 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4568 # Solaris 8's {/usr,}/bin/sh.
4569 touch sub/conftst$i.h
4571 echo "include sub/conftest.Po" > confmf
4573 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4574 # mode. It turns out that the SunPro C++ compiler does not properly
4575 # handle `-M -o', and we need to detect this.
4576 depcmd="depmode=$depmode \
4577 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4578 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4579 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4580 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4581 if env $depcmd > conftest.err 2>&1 &&
4582 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4583 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4584 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4585 # icc doesn't choke on unknown options, it will just issue warnings
4586 # or remarks (even with -Werror). So we grep stderr for any message
4587 # that says an option was ignored or not supported.
4588 # When given -MP, icc 7.0 and 7.1 complain thusly:
4589 # icc: Command line warning: ignoring option '-M'; no argument required
4590 # The diagnosis changed in icc 8.0:
4591 # icc: Command line remark: option '-MP' not supported
4592 if (grep 'ignoring option' conftest.err ||
4593 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4594 am_cv_CC_dependencies_compiler_type=$depmode
4595 $as_echo "$as_me:$LINENO: success" >&5
4599 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4600 sed -e 's/^/| /' < conftest.err >&5
4606 am_cv_CC_dependencies_compiler_type=none
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4611 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4612 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4613 then as_fn_error "no usable dependency style found" "$LINENO" 5
4614 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4619 # Check for the 'make' the user wants to use.
4622 # Extract the first word of "$ac_prog", so it can be a program name with args.
4623 set dummy $ac_prog; ac_word=$2
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4625 $as_echo_n "checking for $ac_word... " >&6; }
4626 if test "${ac_cv_prog_MAKE+set}" = set; then :
4627 $as_echo_n "(cached) " >&6
4629 if test -n "$MAKE"; then
4630 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4639 ac_cv_prog_MAKE="$ac_prog"
4640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 MAKE=$ac_cv_prog_MAKE
4650 if test -n "$MAKE"; then
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4652 $as_echo "$MAKE" >&6; }
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655 $as_echo "no" >&6; }
4659 test -n "$MAKE" && break
4663 case "`$MAKE --version 2>&1 | sed 1q`" in
4668 if test "$MAKE_IS_GNU" = yes; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4677 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4679 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4680 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4681 $as_echo_n "(cached) " >&6
4683 cat >conftest.make <<\_ACEOF
4686 @echo '@@@%%%=$(MAKE)=@@@%%%'
4688 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4689 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4691 eval ac_cv_prog_make_${ac_make}_set=yes;;
4693 eval ac_cv_prog_make_${ac_make}_set=no;;
4697 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4699 $as_echo "yes" >&6; }
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4704 SET_MAKE="MAKE=${MAKE-make}"
4708 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
4709 # to find the the source subdir to be configured directly under
4710 # gdbserver/. We need to build gnulib under some other directory not
4711 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
4712 # build it in the same directory, when building in the source dir.
4715 in_build="build-gnulib-gdbserver"
4717 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4718 # so they do not pile up.
4719 ac_sub_configure_args=
4721 eval "set x $ac_configure_args"
4725 if test -n "$ac_prev"; then
4730 -cache-file | --cache-file | --cache-fil | --cache-fi \
4731 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4732 ac_prev=cache_file ;;
4733 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4734 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4737 --config-cache | -C)
4739 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4741 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4743 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4745 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4747 --disable-option-checking)
4751 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4753 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4757 # Always prepend --prefix to ensure using the same prefix
4758 # in subdir configurations.
4759 ac_arg="--prefix=$prefix"
4761 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4763 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4766 if test "$silent" = yes; then
4767 ac_sub_configure_args="--silent $ac_sub_configure_args"
4770 # Always prepend --disable-option-checking to silence warnings, since
4771 # different subdirs can have different --enable and --with options.
4772 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4777 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4778 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4779 $as_echo "$ac_msg" >&6
4780 as_dir="$ac_dir"; as_fn_mkdir_p
4784 ac_srcdir=$srcdir/$in_src ;;
4786 ac_srcdir=../$srcdir/$in_src ;;
4791 ac_sub_configure=$ac_srcdir/configure
4793 # Make the cache file name correct relative to the subdirectory.
4795 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4797 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
4801 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4802 # The eval makes quoting arguments work.
4803 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4804 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4805 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4811 in_src="../../libiberty"
4812 in_build="build-libiberty-gdbserver"
4814 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4815 # so they do not pile up.
4816 ac_sub_configure_args=
4818 eval "set x $ac_configure_args"
4822 if test -n "$ac_prev"; then
4827 -cache-file | --cache-file | --cache-fil | --cache-fi \
4828 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4829 ac_prev=cache_file ;;
4830 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4831 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4834 --config-cache | -C)
4836 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4838 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4840 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4842 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4844 --disable-option-checking)
4848 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4850 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4854 # Always prepend --prefix to ensure using the same prefix
4855 # in subdir configurations.
4856 ac_arg="--prefix=$prefix"
4858 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4860 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4863 if test "$silent" = yes; then
4864 ac_sub_configure_args="--silent $ac_sub_configure_args"
4867 # Always prepend --disable-option-checking to silence warnings, since
4868 # different subdirs can have different --enable and --with options.
4869 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4874 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4876 $as_echo "$ac_msg" >&6
4877 as_dir="$ac_dir"; as_fn_mkdir_p
4881 ac_srcdir=$srcdir/$in_src ;;
4883 ac_srcdir=../$srcdir/$in_src ;;
4888 ac_sub_configure=$ac_srcdir/configure
4890 # Make the cache file name correct relative to the subdirectory.
4892 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4894 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
4898 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4899 # The eval makes quoting arguments work.
4900 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4901 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4902 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4907 for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h linux/elf.h fcntl.h signal.h sys/file.h malloc.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h
4909 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4910 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4911 eval as_val=\$$as_ac_Header
4912 if test "x$as_val" = x""yes; then :
4913 cat >>confdefs.h <<_ACEOF
4914 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4921 for ac_func in pread pwrite pread64 readlink
4923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4924 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4925 eval as_val=\$$as_ac_var
4926 if test "x$as_val" = x""yes; then :
4927 cat >>confdefs.h <<_ACEOF
4928 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4937 $as_echo_n "checking for ANSI C header files... " >&6; }
4938 if test "${ac_cv_header_stdc+set}" = set; then :
4939 $as_echo_n "(cached) " >&6
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4956 if ac_fn_c_try_compile "$LINENO"; then :
4957 ac_cv_header_stdc=yes
4959 ac_cv_header_stdc=no
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 if test $ac_cv_header_stdc = yes; then
4964 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4971 $EGREP "memchr" >/dev/null 2>&1; then :
4974 ac_cv_header_stdc=no
4980 if test $ac_cv_header_stdc = yes; then
4981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4988 $EGREP "free" >/dev/null 2>&1; then :
4991 ac_cv_header_stdc=no
4997 if test $ac_cv_header_stdc = yes; then
4998 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4999 if test "$cross_compiling" = yes; then :
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5006 #if ((' ' & 0x0FF) == 0x020)
5007 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5008 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5010 # define ISLOWER(c) \
5011 (('a' <= (c) && (c) <= 'i') \
5012 || ('j' <= (c) && (c) <= 'r') \
5013 || ('s' <= (c) && (c) <= 'z'))
5014 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5017 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5022 for (i = 0; i < 256; i++)
5023 if (XOR (islower (i), ISLOWER (i))
5024 || toupper (i) != TOUPPER (i))
5029 if ac_fn_c_try_run "$LINENO"; then :
5032 ac_cv_header_stdc=no
5034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5035 conftest.$ac_objext conftest.beam conftest.$ac_ext
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5041 $as_echo "$ac_cv_header_stdc" >&6; }
5042 if test $ac_cv_header_stdc = yes; then
5044 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5048 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5049 # for constant arguments. Useless!
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5051 $as_echo_n "checking for working alloca.h... " >&6; }
5052 if test "${ac_cv_working_alloca_h+set}" = set; then :
5053 $as_echo_n "(cached) " >&6
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5061 char *p = (char *) alloca (2 * sizeof (int));
5067 if ac_fn_c_try_link "$LINENO"; then :
5068 ac_cv_working_alloca_h=yes
5070 ac_cv_working_alloca_h=no
5072 rm -f core conftest.err conftest.$ac_objext \
5073 conftest$ac_exeext conftest.$ac_ext
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5076 $as_echo "$ac_cv_working_alloca_h" >&6; }
5077 if test $ac_cv_working_alloca_h = yes; then
5079 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5084 $as_echo_n "checking for alloca... " >&6; }
5085 if test "${ac_cv_func_alloca_works+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5091 # define alloca __builtin_alloca
5094 # include <malloc.h>
5095 # define alloca _alloca
5097 # ifdef HAVE_ALLOCA_H
5098 # include <alloca.h>
5103 # ifndef alloca /* predefined by HP cc +Olibcalls */
5114 char *p = (char *) alloca (1);
5120 if ac_fn_c_try_link "$LINENO"; then :
5121 ac_cv_func_alloca_works=yes
5123 ac_cv_func_alloca_works=no
5125 rm -f core conftest.err conftest.$ac_objext \
5126 conftest$ac_exeext conftest.$ac_ext
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5129 $as_echo "$ac_cv_func_alloca_works" >&6; }
5131 if test $ac_cv_func_alloca_works = yes; then
5133 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5136 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5137 # that cause trouble. Some versions do not even contain alloca or
5138 # contain a buggy version. If you still want to use their alloca,
5139 # use ar to extract alloca.o from them instead of compiling alloca.c.
5141 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5143 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5147 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5148 if test "${ac_cv_os_cray+set}" = set; then :
5149 $as_echo_n "(cached) " >&6
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5153 #if defined CRAY && ! defined CRAY2
5160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5161 $EGREP "webecray" >/dev/null 2>&1; then :
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5170 $as_echo "$ac_cv_os_cray" >&6; }
5171 if test $ac_cv_os_cray = yes; then
5172 for ac_func in _getb67 GETB67 getb67; do
5173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5174 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5175 eval as_val=\$$as_ac_var
5176 if test "x$as_val" = x""yes; then :
5178 cat >>confdefs.h <<_ACEOF
5179 #define CRAY_STACKSEG_END $ac_func
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5189 $as_echo_n "checking stack direction for C alloca... " >&6; }
5190 if test "${ac_cv_c_stack_direction+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
5193 if test "$cross_compiling" = yes; then :
5194 ac_cv_c_stack_direction=0
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198 $ac_includes_default
5200 find_stack_direction ()
5202 static char *addr = 0;
5207 return find_stack_direction ();
5210 return (&dummy > addr) ? 1 : -1;
5216 return find_stack_direction () < 0;
5219 if ac_fn_c_try_run "$LINENO"; then :
5220 ac_cv_c_stack_direction=1
5222 ac_cv_c_stack_direction=-1
5224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5225 conftest.$ac_objext conftest.beam conftest.$ac_ext
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5230 $as_echo "$ac_cv_c_stack_direction" >&6; }
5231 cat >>confdefs.h <<_ACEOF
5232 #define STACK_DIRECTION $ac_cv_c_stack_direction
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5241 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5242 if test "${am_cv_langinfo_codeset+set}" = set; then :
5243 $as_echo_n "(cached) " >&6
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5247 #include <langinfo.h>
5251 char* cs = nl_langinfo(CODESET);
5256 if ac_fn_c_try_link "$LINENO"; then :
5257 am_cv_langinfo_codeset=yes
5259 am_cv_langinfo_codeset=no
5261 rm -f core conftest.err conftest.$ac_objext \
5262 conftest$ac_exeext conftest.$ac_ext
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5266 $as_echo "$am_cv_langinfo_codeset" >&6; }
5267 if test $am_cv_langinfo_codeset = yes; then
5269 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5274 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/syscall.h sys/un.h sys/wait.h thread_db.h wait.h
5276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5277 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5278 eval as_val=\$$as_ac_Header
5279 if test "x$as_val" = x""yes; then :
5280 cat >>confdefs.h <<_ACEOF
5281 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5289 for ac_func in fdwalk getrlimit pipe pipe2 socketpair
5291 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5292 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5293 eval as_val=\$$as_ac_var
5294 if test "x$as_val" = x""yes; then :
5295 cat >>confdefs.h <<_ACEOF
5296 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5303 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
5304 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
5310 cat >>confdefs.h <<_ACEOF
5311 #define HAVE_DECL_STRERROR $ac_have_decl
5313 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
5314 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
5320 cat >>confdefs.h <<_ACEOF
5321 #define HAVE_DECL_STRSTR $ac_have_decl
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
5326 $as_echo_n "checking for sigsetjmp... " >&6; }
5327 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
5328 $as_echo_n "(cached) " >&6
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5338 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
5343 if ac_fn_c_try_compile "$LINENO"; then :
5344 gdb_cv_func_sigsetjmp=yes
5346 gdb_cv_func_sigsetjmp=no
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
5351 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
5352 if test $gdb_cv_func_sigsetjmp = yes; then
5354 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
5364 # Check whether --with-ust was given.
5365 if test "${with_ust+set}" = set; then :
5370 # Check whether --with-ust_include was given.
5371 if test "${with_ust_include+set}" = set; then :
5372 withval=$with_ust_include;
5376 # Check whether --with-ust_lib was given.
5377 if test "${with_ust_lib+set}" = set; then :
5378 withval=$with_ust_lib;
5392 ustlibs="-L$with_ust/lib -lust"
5393 ustinc="-I$with_ust/include "
5396 if test "x$with_ust_include" != x; then
5397 ustinc="-I$with_ust_include "
5399 if test "x$with_ust_lib" != x; then
5400 ustlibs="-L$with_ust_lib -lust"
5403 if test "x$with_ust" != "xno"; then
5404 saved_CFLAGS="$CFLAGS"
5405 CFLAGS="$CFLAGS $ustinc"
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
5407 $as_echo_n "checking for ust... " >&6; }
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5411 #define CONFIG_UST_GDB_INTEGRATION
5412 #include <ust/ust.h>
5422 if ac_fn_c_try_compile "$LINENO"; then :
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5424 $as_echo "yes" >&6; };
5425 $as_echo "#define HAVE_UST 1" >>confdefs.h
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }; ustlibs= ; ustinc=
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 CFLAGS="$saved_CFLAGS"
5435 # Flags needed for UST
5439 # Check whether --enable-werror was given.
5440 if test "${enable_werror+set}" = set; then :
5441 enableval=$enable_werror; case "${enableval}" in
5442 yes | y) ERROR_ON_WARNING="yes" ;;
5443 no | n) ERROR_ON_WARNING="no" ;;
5444 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
5449 # Enable -Werror by default when using gcc. Turn it off for releases.
5450 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
5451 ERROR_ON_WARNING=yes
5455 if test "${ERROR_ON_WARNING}" = yes ; then
5456 WERROR_CFLAGS="-Werror"
5459 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
5460 -Wformat-nonliteral -Wno-char-subscripts -Wempty-body"
5463 if test "x$GCC" = xyes
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
5466 $as_echo_n "checking compiler warning flags... " >&6; }
5467 # Separate out the -Werror flag as some files just cannot be
5468 # compiled with it enabled.
5469 for w in ${build_warnings}; do
5471 -Werr*) WERROR_CFLAGS=-Werror ;;
5472 *) # Check that GCC accepts it
5473 saved_CFLAGS="$CFLAGS"
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487 WARN_CFLAGS="${WARN_CFLAGS} $w"
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 CFLAGS="$saved_CFLAGS"
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
5494 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
5501 for ac_func in dladdr
5503 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
5504 if test "x$ac_cv_func_dladdr" = x""yes; then :
5505 cat >>confdefs.h <<_ACEOF
5506 #define HAVE_DLADDR 1
5514 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
5515 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
5521 cat >>confdefs.h <<_ACEOF
5522 #define HAVE_DECL_STRERROR $ac_have_decl
5524 ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
5525 if test "x$ac_cv_have_decl_perror" = x""yes; then :
5531 cat >>confdefs.h <<_ACEOF
5532 #define HAVE_DECL_PERROR $ac_have_decl
5534 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5535 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
5541 cat >>confdefs.h <<_ACEOF
5542 #define HAVE_DECL_VASPRINTF $ac_have_decl
5544 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
5545 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
5551 cat >>confdefs.h <<_ACEOF
5552 #define HAVE_DECL_VSNPRINTF $ac_have_decl
5556 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5557 #include <sys/socket.h>
5560 if test "x$ac_cv_type_socklen_t" = x""yes; then :
5562 cat >>confdefs.h <<_ACEOF
5563 #define HAVE_SOCKLEN_T 1
5570 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h>
5573 if test "x$ac_cv_type_Elf32_auxv_t" = x""yes; then :
5575 cat >>confdefs.h <<_ACEOF
5576 #define HAVE_ELF32_AUXV_T 1
5581 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h>
5584 if test "x$ac_cv_type_Elf64_auxv_t" = x""yes; then :
5586 cat >>confdefs.h <<_ACEOF
5587 #define HAVE_ELF64_AUXV_T 1
5596 # Check whether --with-pkgversion was given.
5597 if test "${with_pkgversion+set}" = set; then :
5598 withval=$with_pkgversion; case "$withval" in
5599 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
5601 *) PKGVERSION="($withval) " ;;
5612 # Check whether --with-bugurl was given.
5613 if test "${with_bugurl+set}" = set; then :
5614 withval=$with_bugurl; case "$withval" in
5615 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
5618 *) BUGURL="$withval"
5622 BUGURL="http://www.gnu.org/software/gdb/bugs/"
5632 REPORT_BUGS_TO="<$BUGURL>"
5633 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5640 cat >>confdefs.h <<_ACEOF
5641 #define PKGVERSION "$PKGVERSION"
5645 cat >>confdefs.h <<_ACEOF
5646 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5650 # Check for various supplementary target information (beyond the
5651 # triplet) which might affect the choices in configure.srv.
5653 i[34567]86-*-linux*)
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
5655 $as_echo_n "checking if building for x86-64... " >&6; }
5656 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
5657 $as_echo_n "(cached) " >&6
5659 save_CPPFLAGS="$CPPFLAGS"
5660 CPPFLAGS="$CPPFLAGS $CFLAGS"
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5670 $EGREP "got it" >/dev/null 2>&1; then :
5671 gdb_cv_i386_is_x86_64=yes
5673 gdb_cv_i386_is_x86_64=no
5677 CPPFLAGS="$save_CPPFLAGS"
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
5680 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
5684 $as_echo_n "checking if building for Coldfire... " >&6; }
5685 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5688 save_CPPFLAGS="$CPPFLAGS"
5689 CPPFLAGS="$CPPFLAGS $CFLAGS"
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5693 #ifdef __mcoldfire__
5698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5699 $EGREP "got it" >/dev/null 2>&1; then :
5700 gdb_cv_m68k_is_coldfire=yes
5702 gdb_cv_m68k_is_coldfire=no
5706 CPPFLAGS="$save_CPPFLAGS"
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
5709 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
5713 . ${srcdir}/configure.srv
5715 if test "${srv_mingwce}" = "yes"; then
5717 elif test "${srv_mingw}" = "yes"; then
5718 LIBS="$LIBS -lws2_32"
5719 elif test "${srv_qnx}" = "yes"; then
5720 LIBS="$LIBS -lsocket"
5721 elif test "${srv_lynxos}" = "yes"; then
5722 LIBS="$LIBS -lnetinet"
5725 if test "${srv_mingw}" = "yes"; then
5727 $as_echo "#define USE_WIN32API 1" >>confdefs.h
5731 if test "${srv_linux_usrregs}" = "yes"; then
5733 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
5737 if test "${srv_linux_regsets}" = "yes"; then
5739 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
5743 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
5744 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5749 #include <sys/ptrace.h>
5758 if ac_fn_c_try_compile "$LINENO"; then :
5759 gdbsrv_cv_have_ptrace_getregs=yes
5761 gdbsrv_cv_have_ptrace_getregs=no
5763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
5767 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
5768 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
5770 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
5775 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
5776 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
5777 $as_echo_n "(cached) " >&6
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5781 #include <sys/ptrace.h>
5790 if ac_fn_c_try_compile "$LINENO"; then :
5791 gdbsrv_cv_have_ptrace_getfpxregs=yes
5793 gdbsrv_cv_have_ptrace_getfpxregs=no
5795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
5799 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
5800 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
5802 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
5807 if test "${srv_linux_btrace}" = "yes"; then
5809 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
5813 if test "$ac_cv_header_sys_procfs_h" = yes; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
5815 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
5816 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
5817 $as_echo_n "(cached) " >&6
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5823 /* Needed for new procfs interface on sparc-solaris. */
5824 #define _STRUCTURED_PROC 1
5825 #include <sys/procfs.h>
5834 if ac_fn_c_try_compile "$LINENO"; then :
5835 bfd_cv_have_sys_procfs_type_lwpid_t=yes
5837 bfd_cv_have_sys_procfs_type_lwpid_t=no
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
5845 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
5849 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
5852 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
5853 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
5854 $as_echo_n "(cached) " >&6
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5860 /* Needed for new procfs interface on sparc-solaris. */
5861 #define _STRUCTURED_PROC 1
5862 #include <sys/procfs.h>
5871 if ac_fn_c_try_compile "$LINENO"; then :
5872 bfd_cv_have_sys_procfs_type_psaddr_t=yes
5874 bfd_cv_have_sys_procfs_type_psaddr_t=no
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
5882 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
5886 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
5889 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
5890 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
5891 $as_echo_n "(cached) " >&6
5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5897 /* Needed for new procfs interface on sparc-solaris. */
5898 #define _STRUCTURED_PROC 1
5899 #include <sys/procfs.h>
5908 if ac_fn_c_try_compile "$LINENO"; then :
5909 bfd_cv_have_sys_procfs_type_prgregset_t=yes
5911 bfd_cv_have_sys_procfs_type_prgregset_t=no
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5917 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
5919 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
5923 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
5926 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
5927 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
5928 $as_echo_n "(cached) " >&6
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5934 /* Needed for new procfs interface on sparc-solaris. */
5935 #define _STRUCTURED_PROC 1
5936 #include <sys/procfs.h>
5945 if ac_fn_c_try_compile "$LINENO"; then :
5946 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
5948 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
5951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
5956 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
5960 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
5964 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
5966 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
5967 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
5968 $as_echo_n "(cached) " >&6
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5973 #include <thread_db.h>
5982 if ac_fn_c_try_compile "$LINENO"; then :
5983 gdbserver_cv_have_thread_db_type_lwpid_t=yes
5985 gdbserver_cv_have_thread_db_type_lwpid_t=no
5988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
5993 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
5997 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
6001 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
6003 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
6004 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6010 #include <thread_db.h>
6019 if ac_fn_c_try_compile "$LINENO"; then :
6020 gdbserver_cv_have_thread_db_type_psaddr_t=yes
6022 gdbserver_cv_have_thread_db_type_psaddr_t=no
6025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
6030 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
6034 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6040 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6041 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
6042 $as_echo_n "(cached) " >&6
6044 ac_check_lib_save_LIBS=$LIBS
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6049 /* Override any GCC internal prototype to avoid an error.
6050 Use char because int might match the return type of a GCC
6051 builtin and then its argument prototype would still apply. */
6064 if ac_fn_c_try_link "$LINENO"; then :
6065 ac_cv_lib_dl_dlopen=yes
6067 ac_cv_lib_dl_dlopen=no
6069 rm -f core conftest.err conftest.$ac_objext \
6070 conftest$ac_exeext conftest.$ac_ext
6071 LIBS=$ac_check_lib_save_LIBS
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6074 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6075 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
6076 cat >>confdefs.h <<_ACEOF
6077 #define HAVE_LIBDL 1
6086 srv_thread_depfiles=
6089 if test "$srv_linux_thread_db" = "yes"; then
6090 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
6093 $as_echo_n "checking for the dynamic export flag... " >&6; }
6094 old_LDFLAGS="$LDFLAGS"
6095 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
6097 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
6098 LDFLAGS="$LDFLAGS $RDYNAMIC"
6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6110 if ac_fn_c_try_link "$LINENO"; then :
6111 found="-Wl,--dynamic-list"
6112 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
6114 RDYNAMIC="-rdynamic"
6115 LDFLAGS="$old_LDFLAGS $RDYNAMIC"
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6127 if ac_fn_c_try_link "$LINENO"; then :
6133 rm -f core conftest.err conftest.$ac_objext \
6134 conftest$ac_exeext conftest.$ac_ext
6136 rm -f core conftest.err conftest.$ac_objext \
6137 conftest$ac_exeext conftest.$ac_ext
6139 LDFLAGS="$old_LDFLAGS"
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
6141 $as_echo "$found" >&6; }
6143 srv_libs="-lthread_db"
6146 srv_thread_depfiles="thread-db.o proc-service.o"
6148 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
6151 $as_echo_n "checking for TD_VERSION... " >&6; }
6152 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
6153 $as_echo_n "(cached) " >&6
6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h. */
6157 #include <thread_db.h>
6166 if ac_fn_c_try_compile "$LINENO"; then :
6167 gdbsrv_cv_have_td_version=yes
6169 gdbsrv_cv_have_td_version=no
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
6174 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
6175 if test $gdbsrv_cv_have_td_version = yes; then
6177 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
6183 # Check whether --with-libthread-db was given.
6184 if test "${with_libthread_db+set}" = set; then :
6185 withval=$with_libthread_db; srv_libthread_db_path="${withval}"
6186 srv_libs="$srv_libthread_db_path"
6191 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
6193 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
6197 if test "$srv_xmlfiles" != ""; then
6198 srv_xmlbuiltin="xml-builtin.o"
6200 $as_echo "#define USE_XML 1" >>confdefs.h
6203 tmp_xmlfiles=$srv_xmlfiles
6205 for f in $tmp_xmlfiles; do
6206 srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
6210 GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
6211 GDBSERVER_LIBS="$srv_libs"
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
6214 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
6215 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
6216 $as_echo_n "(cached) " >&6
6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6225 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
6230 if ac_fn_c_try_link "$LINENO"; then :
6231 gdbsrv_cv_have_sync_builtins=yes
6233 gdbsrv_cv_have_sync_builtins=no
6235 rm -f core conftest.err conftest.$ac_objext \
6236 conftest$ac_exeext conftest.$ac_ext
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
6239 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
6240 if test $gdbsrv_cv_have_sync_builtins = yes; then
6242 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
6246 saved_cflags="$CFLAGS"
6247 CFLAGS="$CFLAGS -fvisibility=hidden"
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6259 if ac_fn_c_try_compile "$LINENO"; then :
6260 gdbsrv_cv_have_visibility_hidden=yes
6262 gdbsrv_cv_have_visibility_hidden=no
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 CFLAGS="$saved_cflags"
6267 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
6269 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
6275 cat >>confdefs.h <<_ACEOF
6276 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
6280 if test "$cross_compiling" = yes; then :
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 #include <sys/personality.h>
6288 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
6289 # define ADDR_NO_RANDOMIZE 0x0040000
6291 /* Test the flag could be set and stays set. */
6292 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
6293 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
6299 if ac_fn_c_try_link "$LINENO"; then :
6300 gdbsrv_cv_have_personality=true
6302 gdbsrv_cv_have_personality=false
6304 rm -f core conftest.err conftest.$ac_objext \
6305 conftest$ac_exeext conftest.$ac_ext
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6309 #include <sys/personality.h>
6314 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
6315 # define ADDR_NO_RANDOMIZE 0x0040000
6317 /* Test the flag could be set and stays set. */
6318 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
6319 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
6325 if ac_fn_c_try_run "$LINENO"; then :
6326 gdbsrv_cv_have_personality=true
6328 gdbsrv_cv_have_personality=false
6330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6331 conftest.$ac_objext conftest.beam conftest.$ac_ext
6334 if $gdbsrv_cv_have_personality
6337 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
6345 # check whether to enable the inprocess agent
6346 if test "$ipa_obj" != "" \
6347 -a "$gdbsrv_cv_have_sync_builtins" = yes \
6348 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
6354 # Check whether --enable-inprocess-agent was given.
6355 if test "${enable_inprocess_agent+set}" = set; then :
6356 enableval=$enable_inprocess_agent; case "$enableval" in
6357 yes) want_ipa=true ;;
6358 no) want_ipa=false ;;
6359 *) as_fn_error "bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
6368 IPA_DEPFILES="$ipa_obj"
6369 extra_libraries="$extra_libraries libinproctrace.so"
6371 as_fn_error "inprocess agent not supported for this target" "$LINENO" 5
6382 GNULIB=build-gnulib-gdbserver/import
6385 if test x"$STDINT_H" != x; then
6386 GNULIB_STDINT_H=$GNULIB/$STDINT_H
6390 ac_config_files="$ac_config_files Makefile"
6392 ac_config_commands="$ac_config_commands default"
6394 cat >confcache <<\_ACEOF
6395 # This file is a shell script that caches the results of configure
6396 # tests run on this system so they can be shared between configure
6397 # scripts and configure runs, see configure's option --config-cache.
6398 # It is not useful on other systems. If it contains results you don't
6399 # want to keep, you may remove or edit it.
6401 # config.status only pays attention to the cache file if you give it
6402 # the --recheck option to rerun configure.
6404 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6405 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6410 # The following way of writing the cache mishandles newlines in values,
6411 # but we know of no workaround that is simple, portable, and efficient.
6412 # So, we kill variables containing newlines.
6413 # Ultrix sh set writes to stderr and can't be redirected directly,
6414 # and sets the high bit in the cache file unless we assign to the vars.
6416 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6417 eval ac_val=\$$ac_var
6421 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6422 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6425 _ | IFS | as_nl) ;; #(
6426 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6427 *) { eval $ac_var=; unset $ac_var;} ;;
6433 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6434 *${as_nl}ac_space=\ *)
6435 # `set' does not quote correctly, so add quotes: double-quote
6436 # substitution turns \\\\ into \\, and sed turns \\ into \.
6439 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6442 # `set' quotes correctly as required by POSIX, so do not add quotes.
6443 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6452 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6454 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6456 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6457 if test -w "$cache_file"; then
6458 test "x$cache_file" != "x/dev/null" &&
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6460 $as_echo "$as_me: updating cache $cache_file" >&6;}
6461 cat confcache >$cache_file
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6464 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6469 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6470 # Let make expand exec_prefix.
6471 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6473 DEFS=-DHAVE_CONFIG_H
6477 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6478 # 1. Remove the extension, and $U if already installed.
6479 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6480 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6481 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6482 # will be set to the directory where LIBOBJS objects are built.
6483 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6484 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6488 LTLIBOBJS=$ac_ltlibobjs
6491 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6492 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
6493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6495 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
6496 as_fn_error "conditional \"GMAKE\" was never defined.
6497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6500 : ${CONFIG_STATUS=./config.status}
6502 ac_clean_files_save=$ac_clean_files
6503 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6505 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6507 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6509 # Generated by $as_me.
6510 # Run this file to recreate the current configuration.
6511 # Compiler output produced by configure, useful for debugging
6512 # configure, is in config.log if it exists.
6518 SHELL=\${CONFIG_SHELL-$SHELL}
6521 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6522 ## -------------------- ##
6523 ## M4sh Initialization. ##
6524 ## -------------------- ##
6526 # Be more Bourne compatible
6527 DUALCASE=1; export DUALCASE # for MKS sh
6528 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6531 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6532 # is contrary to our usage. Disable this feature.
6533 alias -g '${1+"$@"}'='"$@"'
6534 setopt NO_GLOB_SUBST
6536 case `(set -o) 2>/dev/null` in #(
6548 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6549 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6550 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6551 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6552 # Prefer a ksh shell builtin over an external printf program on Solaris,
6553 # but without wasting forks for bash or zsh.
6554 if test -z "$BASH_VERSION$ZSH_VERSION" \
6555 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6556 as_echo='print -r --'
6557 as_echo_n='print -rn --'
6558 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6559 as_echo='printf %s\n'
6560 as_echo_n='printf %s'
6562 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6563 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6564 as_echo_n='/usr/ucb/echo -n'
6566 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6567 as_echo_n_body='eval
6571 expr "X$arg" : "X\\(.*\\)$as_nl";
6572 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6574 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6576 export as_echo_n_body
6577 as_echo_n='sh -c $as_echo_n_body as_echo'
6580 as_echo='sh -c $as_echo_body as_echo'
6583 # The user is always right.
6584 if test "${PATH_SEPARATOR+set}" != set; then
6586 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6587 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6594 # We need space, tab and new line, in precisely that order. Quoting is
6595 # there to prevent editors from complaining about space-tab.
6596 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6597 # splitting by setting IFS to empty value.)
6600 # Find who we are. Look in the path if we contain no directory separator.
6602 *[\\/]* ) as_myself=$0 ;;
6603 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 test -z "$as_dir" && as_dir=.
6608 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6614 # We did not find ourselves, most probably we were run as `sh COMMAND'
6615 # in which case we are not to be found in the path.
6616 if test "x$as_myself" = x; then
6619 if test ! -f "$as_myself"; then
6620 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6624 # Unset variables that we do not need and which cause bugs (e.g. in
6625 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6626 # suppresses any "Segmentation fault" message there. '((' could
6627 # trigger a bug in pdksh 5.2.14.
6628 for as_var in BASH_ENV ENV MAIL MAILPATH
6629 do eval test x\${$as_var+set} = xset \
6630 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6643 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6646 # as_fn_error ERROR [LINENO LOG_FD]
6647 # ---------------------------------
6648 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6649 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6650 # script with status $?, using 1 if that was 0.
6653 as_status=$?; test $as_status -eq 0 && as_status=1
6655 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6656 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6658 $as_echo "$as_me: error: $1" >&2
6659 as_fn_exit $as_status
6663 # as_fn_set_status STATUS
6664 # -----------------------
6665 # Set $? to STATUS, without forking.
6669 } # as_fn_set_status
6673 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6683 # Portably unset VAR.
6686 { eval $1=; unset $1;}
6688 as_unset=as_fn_unset
6689 # as_fn_append VAR VALUE
6690 # ----------------------
6691 # Append the text in VALUE to the end of the definition contained in VAR. Take
6692 # advantage of any shell optimizations that allow amortized linear growth over
6693 # repeated appends, instead of the typical quadratic growth present in naive
6695 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6696 eval 'as_fn_append ()
6707 # as_fn_arith ARG...
6708 # ------------------
6709 # Perform arithmetic evaluation on the ARGs, and store the result in the
6710 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6711 # must be portable across $(()) and expr.
6712 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6713 eval 'as_fn_arith ()
6720 as_val=`expr "$@" || test $? -eq 1`
6725 if expr a : '\(a\)' >/dev/null 2>&1 &&
6726 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6732 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6733 as_basename=basename
6738 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6744 as_me=`$as_basename -- "$0" ||
6745 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6746 X"$0" : 'X\(//\)$' \| \
6747 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6749 sed '/^.*\/\([^/][^/]*\)\/*$/{
6763 # Avoid depending upon Character Ranges.
6764 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6765 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6766 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6767 as_cr_digits='0123456789'
6768 as_cr_alnum=$as_cr_Letters$as_cr_digits
6770 ECHO_C= ECHO_N= ECHO_T=
6771 case `echo -n x` in #(((((
6773 case `echo 'xy\c'` in
6774 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6776 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6783 rm -f conf$$ conf$$.exe conf$$.file
6784 if test -d conf$$.dir; then
6785 rm -f conf$$.dir/conf$$.file
6788 mkdir conf$$.dir 2>/dev/null
6790 if (echo >conf$$.file) 2>/dev/null; then
6791 if ln -s conf$$.file conf$$ 2>/dev/null; then
6793 # ... but there are two gotchas:
6794 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6795 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6796 # In both cases, we have to default to `cp -p'.
6797 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6799 elif ln conf$$.file conf$$ 2>/dev/null; then
6807 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6808 rmdir conf$$.dir 2>/dev/null
6813 # Create "$as_dir" as a directory, including parents if necessary.
6818 -*) as_dir=./$as_dir;;
6820 test -d "$as_dir" || eval $as_mkdir_p || {
6824 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6825 *) as_qdir=$as_dir;;
6827 as_dirs="'$as_qdir' $as_dirs"
6828 as_dir=`$as_dirname -- "$as_dir" ||
6829 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6830 X"$as_dir" : 'X\(//\)[^/]' \| \
6831 X"$as_dir" : 'X\(//\)$' \| \
6832 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6833 $as_echo X"$as_dir" |
6834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6851 test -d "$as_dir" && break
6853 test -z "$as_dirs" || eval "mkdir $as_dirs"
6854 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6858 if mkdir -p . 2>/dev/null; then
6859 as_mkdir_p='mkdir -p "$as_dir"'
6861 test -d ./-p && rmdir ./-p
6865 if test -x / >/dev/null 2>&1; then
6868 if ls -dL / >/dev/null 2>&1; then
6875 if test -d "$1"; then
6881 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6882 ???[sx]*):;;*)false;;esac;fi
6886 as_executable_p=$as_test_x
6888 # Sed expression to map a string onto a valid CPP name.
6889 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6891 # Sed expression to map a string onto a valid variable name.
6892 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6896 ## ----------------------------------- ##
6897 ## Main body of $CONFIG_STATUS script. ##
6898 ## ----------------------------------- ##
6900 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6903 # Save the log message, to keep $0 and so on meaningful, and to
6904 # report actual input values of CONFIG_FILES etc. instead of their
6905 # values after options handling.
6907 This file was extended by $as_me, which was
6908 generated by GNU Autoconf 2.64. Invocation command line was
6910 CONFIG_FILES = $CONFIG_FILES
6911 CONFIG_HEADERS = $CONFIG_HEADERS
6912 CONFIG_LINKS = $CONFIG_LINKS
6913 CONFIG_COMMANDS = $CONFIG_COMMANDS
6916 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6921 case $ac_config_files in *"
6922 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6925 case $ac_config_headers in *"
6926 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6931 # Files that config.status was made for.
6932 config_files="$ac_config_files"
6933 config_headers="$ac_config_headers"
6934 config_commands="$ac_config_commands"
6938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6940 \`$as_me' instantiates files and other configuration actions
6941 from templates according to the current configuration. Unless the files
6942 and actions are specified as TAGs, all are instantiated by default.
6944 Usage: $0 [OPTION]... [TAG]...
6946 -h, --help print this help, then exit
6947 -V, --version print version number and configuration settings, then exit
6948 -q, --quiet, --silent
6949 do not print progress messages
6950 -d, --debug don't remove temporary files
6951 --recheck update $as_me by reconfiguring in the same conditions
6952 --file=FILE[:TEMPLATE]
6953 instantiate the configuration file FILE
6954 --header=FILE[:TEMPLATE]
6955 instantiate the configuration header FILE
6957 Configuration files:
6960 Configuration headers:
6963 Configuration commands:
6966 Report bugs to the package provider."
6969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6972 configured by $0, generated by GNU Autoconf 2.64,
6973 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6975 Copyright (C) 2009 Free Software Foundation, Inc.
6976 This config.status script is free software; the Free Software Foundation
6977 gives unlimited permission to copy, distribute and modify it."
6982 test -n "\$AWK" || AWK=awk
6985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6986 # The default lists apply if the user does not specify any file.
6992 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6993 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7004 # Handling of the options.
7005 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7007 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7008 $as_echo "$ac_cs_version"; exit ;;
7009 --debug | --debu | --deb | --de | --d | -d )
7011 --file | --fil | --fi | --f )
7014 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7016 as_fn_append CONFIG_FILES " '$ac_optarg'"
7017 ac_need_defaults=false;;
7018 --header | --heade | --head | --hea )
7021 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7023 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7024 ac_need_defaults=false;;
7026 # Conflict between --help and --header
7027 as_fn_error "ambiguous option: \`$1'
7028 Try \`$0 --help' for more information.";;
7029 --help | --hel | -h )
7030 $as_echo "$ac_cs_usage"; exit ;;
7031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7032 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7036 -*) as_fn_error "unrecognized option: \`$1'
7037 Try \`$0 --help' for more information." ;;
7039 *) as_fn_append ac_config_targets " $1"
7040 ac_need_defaults=false ;;
7046 ac_configure_extra_args=
7048 if $ac_cs_silent; then
7050 ac_configure_extra_args="$ac_configure_extra_args --silent"
7054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7055 if \$ac_cs_recheck; then
7056 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7058 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7059 CONFIG_SHELL='$SHELL'
7065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7069 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7070 ## Running $as_me. ##
7076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7080 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
7084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7086 # Handling of arguments.
7087 for ac_config_target in $ac_config_targets
7089 case $ac_config_target in
7090 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7091 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
7092 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7093 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7095 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7100 # If the user did not use the arguments to specify the items to instantiate,
7101 # then the envvar interface is used. Set only those that are not.
7102 # We use the long form for the default assignment because of an extremely
7103 # bizarre bug on SunOS 4.1.3.
7104 if $ac_need_defaults; then
7105 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7106 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7107 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7110 # Have a temporary directory for convenience. Make it in the build tree
7111 # simply because there is no reason against having it here, and in addition,
7112 # creating and moving files from /tmp can sometimes cause problems.
7113 # Hook for its removal unless debugging.
7114 # Note that there is a small window in which the directory will not be cleaned:
7115 # after its creation but before its name has been assigned to `$tmp'.
7119 trap 'exit_status=$?
7120 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7122 trap 'as_fn_exit 1' 1 2 13 15
7124 # Create a (secure) tmp directory for tmp files.
7127 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7128 test -n "$tmp" && test -d "$tmp"
7131 tmp=./conf$$-$RANDOM
7132 (umask 077 && mkdir "$tmp")
7133 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7135 # Set up the scripts for CONFIG_FILES section.
7136 # No need to generate them if there are no CONFIG_FILES.
7137 # This happens for instance with `./config.status config.h'.
7138 if test -n "$CONFIG_FILES"; then
7141 ac_cr=`echo X | tr X '\015'`
7142 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7143 # But we know of no other shell where ac_cr would be empty at this
7144 # point, so we can use a bashism as a fallback.
7145 if test "x$ac_cr" = x; then
7146 eval ac_cr=\$\'\\r\'
7148 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7149 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7155 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7160 echo "cat >conf$$subs.awk <<_ACEOF" &&
7161 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7164 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7165 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7167 for ac_last_try in false false false false false :; do
7168 . ./conf$$subs.sh ||
7169 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7171 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7172 if test $ac_delim_n = $ac_delim_num; then
7174 elif $ac_last_try; then
7175 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7177 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7183 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7187 s/^/S["/; s/!.*/"]=/
7197 s/\(.\{148\}\).*/\1/
7199 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7204 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7211 s/\(.\{148\}\).*/\1/
7213 s/["\\]/\\&/g; s/^/"/; s/$/"/
7217 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7222 ' <conf$$subs.awk | sed '
7227 ' >>$CONFIG_STATUS || ac_write_fail=1
7228 rm -f conf$$subs.awk
7229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7231 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7232 for (key in S) S_is_set[key] = 1
7238 nfields = split(line, field, "@")
7240 len = length(field[1])
7241 for (i = 2; i < nfields; i++) {
7243 keylen = length(key)
7244 if (S_is_set[key]) {
7246 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7247 len += length(value) + length(field[++i])
7258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7259 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7260 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7263 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7264 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7267 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7268 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7269 # trailing colons and then remove the whole line if VPATH becomes empty
7270 # (actually we leave an empty line to preserve line numbers).
7271 if test "x$srcdir" = x.; then
7272 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7276 s/^\([^=]*=[ ]*\):*/\1/
7282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7283 fi # test -n "$CONFIG_FILES"
7285 # Set up the scripts for CONFIG_HEADERS section.
7286 # No need to generate them if there are no CONFIG_HEADERS.
7287 # This happens for instance with `./config.status Makefile'.
7288 if test -n "$CONFIG_HEADERS"; then
7289 cat >"$tmp/defines.awk" <<\_ACAWK ||
7293 # Transform confdefs.h into an awk script `defines.awk', embedded as
7294 # here-document in config.status, that substitutes the proper values into
7295 # config.h.in to produce config.h.
7297 # Create a delimiter string that does not exist in confdefs.h, to ease
7298 # handling of long lines.
7300 for ac_last_try in false false :; do
7301 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7302 if test -z "$ac_t"; then
7304 elif $ac_last_try; then
7305 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7307 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7311 # For the awk script, D is an array of macro values keyed by name,
7312 # likewise P contains macro parameters if any. Preserve backslash
7313 # newline sequences.
7315 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7317 s/.\{148\}/&'"$ac_delim"'/g
7320 s/^[ ]*#[ ]*define[ ][ ]*/ /
7327 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7329 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7333 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7334 D["\1"]=" \3\\\\\\n"\\/p
7336 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7341 s/.\{148\}/&'"$ac_delim"'/g
7346 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7349 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7351 ' <confdefs.h | sed '
7352 s/'"$ac_delim"'/"\\\
7353 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7356 for (key in D) D_is_set[key] = 1
7359 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7361 split(line, arg, " ")
7362 if (arg[1] == "#") {
7366 defundef = substr(arg[1], 2)
7369 split(mac1, mac2, "(") #)
7371 prefix = substr(line, 1, index(line, defundef) - 1)
7372 if (D_is_set[macro]) {
7373 # Preserve the white space surrounding the "#".
7374 print prefix "define", macro P[macro] D[macro]
7377 # Replace #undef with comments. This is necessary, for example,
7378 # in the case of _POSIX_SOURCE, which is predefined and required
7379 # on some systems where configure will not decide to define it.
7380 if (defundef == "undef") {
7381 print "/*", prefix defundef, macro, "*/"
7389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7390 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7391 fi # test -n "$CONFIG_HEADERS"
7394 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7399 :[FHLC]) ac_mode=$ac_tag; continue;;
7401 case $ac_mode$ac_tag in
7403 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7404 :[FH]-) ac_tag=-:-;;
7405 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7422 -) ac_f="$tmp/stdin";;
7423 *) # Look for the file first in the build tree, then in the source tree
7424 # (if the path is not absolute). The absolute path cannot be DOS-style,
7425 # because $ac_f cannot contain `:'.
7429 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7431 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7433 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7434 as_fn_append ac_file_inputs " '$ac_f'"
7437 # Let's still pretend it is `configure' which instantiates (i.e., don't
7438 # use $as_me), people would be surprised to read:
7439 # /* config.h. Generated by config.status. */
7440 configure_input='Generated from '`
7441 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7443 if test x"$ac_file" != x-; then
7444 configure_input="$ac_file. $configure_input"
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7446 $as_echo "$as_me: creating $ac_file" >&6;}
7448 # Neutralize special characters interpreted by sed in replacement strings.
7449 case $configure_input in #(
7450 *\&* | *\|* | *\\* )
7451 ac_sed_conf_input=`$as_echo "$configure_input" |
7452 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7453 *) ac_sed_conf_input=$configure_input;;
7457 *:-:* | *:-) cat >"$tmp/stdin" \
7458 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7463 ac_dir=`$as_dirname -- "$ac_file" ||
7464 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7465 X"$ac_file" : 'X\(//\)[^/]' \| \
7466 X"$ac_file" : 'X\(//\)$' \| \
7467 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7468 $as_echo X"$ac_file" |
7469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7486 as_dir="$ac_dir"; as_fn_mkdir_p
7490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7492 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7493 # A ".." for each directory in $ac_dir_suffix.
7494 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7495 case $ac_top_builddir_sub in
7496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7500 ac_abs_top_builddir=$ac_pwd
7501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7502 # for backward compatibility:
7503 ac_top_builddir=$ac_top_build_prefix
7506 .) # We are building in place.
7508 ac_top_srcdir=$ac_top_builddir_sub
7509 ac_abs_top_srcdir=$ac_pwd ;;
7510 [\\/]* | ?:[\\/]* ) # Absolute name.
7511 ac_srcdir=$srcdir$ac_dir_suffix;
7512 ac_top_srcdir=$srcdir
7513 ac_abs_top_srcdir=$srcdir ;;
7515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7516 ac_top_srcdir=$ac_top_build_prefix$srcdir
7517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7529 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7530 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7535 # If the template does not know about datarootdir, expand it.
7536 # FIXME: This hack should be removed a few years after 2.60.
7537 ac_datarootdir_hack=; ac_datarootdir_seen=
7548 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7549 *datarootdir*) ac_datarootdir_seen=yes;;
7550 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7552 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7555 ac_datarootdir_hack='
7556 s&@datadir@&$datadir&g
7557 s&@docdir@&$docdir&g
7558 s&@infodir@&$infodir&g
7559 s&@localedir@&$localedir&g
7560 s&@mandir@&$mandir&g
7561 s&\\\${datarootdir}&$datarootdir&g' ;;
7565 # Neutralize VPATH when `$srcdir' = `.'.
7566 # Shell code in configure.ac might set extrasub.
7567 # FIXME: do we really want to maintain this feature?
7568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7569 ac_sed_extra="$ac_vpsub
7572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7574 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7575 s|@configure_input@|$ac_sed_conf_input|;t t
7576 s&@top_builddir@&$ac_top_builddir_sub&;t t
7577 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7578 s&@srcdir@&$ac_srcdir&;t t
7579 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7580 s&@top_srcdir@&$ac_top_srcdir&;t t
7581 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7582 s&@builddir@&$ac_builddir&;t t
7583 s&@abs_builddir@&$ac_abs_builddir&;t t
7584 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7585 s&@INSTALL@&$ac_INSTALL&;t t
7586 $ac_datarootdir_hack
7588 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7589 || as_fn_error "could not create $ac_file" "$LINENO" 5
7591 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7592 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7593 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7595 which seems to be undefined. Please make sure it is defined." >&5
7596 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7597 which seems to be undefined. Please make sure it is defined." >&2;}
7601 -) cat "$tmp/out" && rm -f "$tmp/out";;
7602 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7604 || as_fn_error "could not create $ac_file" "$LINENO" 5
7610 if test x"$ac_file" != x-; then
7612 $as_echo "/* $configure_input */" \
7613 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7614 } >"$tmp/config.h" \
7615 || as_fn_error "could not create $ac_file" "$LINENO" 5
7616 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7618 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7621 mv "$tmp/config.h" "$ac_file" \
7622 || as_fn_error "could not create $ac_file" "$LINENO" 5
7625 $as_echo "/* $configure_input */" \
7626 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7627 || as_fn_error "could not create -" "$LINENO" 5
7631 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7632 $as_echo "$as_me: executing $ac_file commands" >&6;}
7637 case $ac_file$ac_mode in
7638 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
7639 "default":C) case x$CONFIG_HEADERS in
7640 xconfig.h:config.in)
7651 ac_clean_files=$ac_clean_files_save
7653 test $ac_write_fail = 0 ||
7654 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7657 # configure is writing to config.log, and then calls config.status.
7658 # config.status does its own redirection, appending to config.log.
7659 # Unfortunately, on DOS this fails, as config.log is still kept open
7660 # by configure, so config.status won't be able to write to it; its
7661 # output is simply discarded. So we exec the FD to /dev/null,
7662 # effectively closing config.log, so it can be properly (re)opened and
7663 # appended to by config.status. When coming back to configure, we
7664 # need to make the FD available again.
7665 if test "$no_create" != yes; then
7667 ac_config_status_args=
7668 test "$silent" = yes &&
7669 ac_config_status_args="$ac_config_status_args --quiet"
7671 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7673 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7674 # would make configure fail if this is the last instruction.
7675 $ac_cs_success || as_fn_exit $?
7677 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7679 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}