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."
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
1886 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1887 # --------------------------------------------
1888 # Tries to find the compile-time value of EXPR in a program that includes
1889 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1891 ac_fn_c_compute_int ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if test "$cross_compiling" = yes; then
1895 # Depending upon the size, compute the lo and hi bounds.
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1902 static int test_array [1 - 2 * !(($2) >= 0)];
1909 if ac_fn_c_try_compile "$LINENO"; then :
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1918 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1925 if ac_fn_c_try_compile "$LINENO"; then :
1926 ac_hi=$ac_mid; break
1928 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1929 if test $ac_lo -le $ac_mid; then
1933 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1944 static int test_array [1 - 2 * !(($2) < 0)];
1951 if ac_fn_c_try_compile "$LINENO"; then :
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1960 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1967 if ac_fn_c_try_compile "$LINENO"; then :
1968 ac_lo=$ac_mid; break
1970 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1971 if test $ac_mid -le $ac_hi; then
1975 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 # Binary search between lo and hi bounds.
1986 while test "x$ac_lo" != "x$ac_hi"; do
1987 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1994 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2001 if ac_fn_c_try_compile "$LINENO"; then :
2004 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2016 static long int longval () { return $2; }
2017 static unsigned long int ulongval () { return $2; }
2024 FILE *f = fopen ("conftest.val", "w");
2029 long int i = longval ();
2032 fprintf (f, "%ld", i);
2036 unsigned long int i = ulongval ();
2039 fprintf (f, "%lu", i);
2041 /* Do not output a trailing newline, as this causes \r\n confusion
2042 on some platforms. */
2043 return ferror (f) || fclose (f) != 0;
2049 if ac_fn_c_try_run "$LINENO"; then :
2050 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2055 conftest.$ac_objext conftest.beam conftest.$ac_ext
2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062 } # ac_fn_c_compute_int
2063 cat >config.log <<_ACEOF
2064 This file contains any messages produced by compilers while
2065 running configure, to aid debugging if configure makes a mistake.
2067 It was created by $as_me, which was
2068 generated by GNU Autoconf 2.64. Invocation command line was
2080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2087 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2089 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2090 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2092 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2093 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2094 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2095 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 test -z "$as_dir" && as_dir=.
2104 $as_echo "PATH: $as_dir"
2120 # Keep a trace of the command line.
2121 # Strip out --no-create and --no-recursion so they do not pile up.
2122 # Strip out --silent because we don't want to record it for future runs.
2123 # Also quote any args containing shell meta-characters.
2124 # Make two passes to allow for proper duplicate-argument suppression.
2128 ac_must_keep_next=false
2134 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2136 | -silent | --silent | --silen | --sile | --sil)
2139 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2142 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2144 as_fn_append ac_configure_args1 " '$ac_arg'"
2145 if test $ac_must_keep_next = true; then
2146 ac_must_keep_next=false # Got value, back to normal.
2149 *=* | --config-cache | -C | -disable-* | --disable-* \
2150 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2151 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2152 | -with-* | --with-* | -without-* | --without-* | --x)
2153 case "$ac_configure_args0 " in
2154 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2157 -* ) ac_must_keep_next=true ;;
2160 as_fn_append ac_configure_args " '$ac_arg'"
2165 { ac_configure_args0=; unset ac_configure_args0;}
2166 { ac_configure_args1=; unset ac_configure_args1;}
2168 # When interrupted or exit'd, cleanup temporary files, and complete
2169 # config.log. We remove comments because anyway the quotes in there
2170 # would cause problems or look ugly.
2171 # WARNING: Use '\'' to represent an apostrophe within the trap.
2172 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2173 trap 'exit_status=$?
2174 # Save into config.log some information that might help in debugging.
2179 ## ---------------- ##
2180 ## Cache variables. ##
2181 ## ---------------- ##
2184 # The following way of writing the cache mishandles newlines in values,
2186 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2187 eval ac_val=\$$ac_var
2191 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2192 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2195 _ | IFS | as_nl) ;; #(
2196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2197 *) { eval $ac_var=; unset $ac_var;} ;;
2202 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2203 *${as_nl}ac_space=\ *)
2205 "s/'\''/'\''\\\\'\'''\''/g;
2206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2217 ## ----------------- ##
2218 ## Output variables. ##
2219 ## ----------------- ##
2222 for ac_var in $ac_subst_vars
2224 eval ac_val=\$$ac_var
2226 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2228 $as_echo "$ac_var='\''$ac_val'\''"
2232 if test -n "$ac_subst_files"; then
2234 ## ------------------- ##
2235 ## File substitutions. ##
2236 ## ------------------- ##
2239 for ac_var in $ac_subst_files
2241 eval ac_val=\$$ac_var
2243 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2245 $as_echo "$ac_var='\''$ac_val'\''"
2250 if test -s confdefs.h; then
2260 test "$ac_signal" != 0 &&
2261 $as_echo "$as_me: caught signal $ac_signal"
2262 $as_echo "$as_me: exit $exit_status"
2264 rm -f core *.core core.conftest.* &&
2265 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2268 for ac_signal in 1 2 13 15; do
2269 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2273 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2274 rm -f -r conftest* confdefs.h
2276 $as_echo "/* confdefs.h */" > confdefs.h
2278 # Predefined preprocessor variables.
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_NAME "$PACKAGE_NAME"
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_STRING "$PACKAGE_STRING"
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_URL "$PACKAGE_URL"
2305 # Let the site file select an alternate cache file if it wants to.
2306 # Prefer an explicitly selected file to automatically selected ones.
2309 if test -n "$CONFIG_SITE"; then
2310 ac_site_file1=$CONFIG_SITE
2311 elif test "x$prefix" != xNONE; then
2312 ac_site_file1=$prefix/share/config.site
2313 ac_site_file2=$prefix/etc/config.site
2315 ac_site_file1=$ac_default_prefix/share/config.site
2316 ac_site_file2=$ac_default_prefix/etc/config.site
2318 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2320 test "x$ac_site_file" = xNONE && continue
2321 if test -r "$ac_site_file"; then
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2323 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2324 sed 's/^/| /' "$ac_site_file" >&5
2329 if test -r "$cache_file"; then
2330 # Some versions of bash will fail to source /dev/null (special
2331 # files actually), so we avoid doing that.
2332 if test -f "$cache_file"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2334 $as_echo "$as_me: loading cache $cache_file" >&6;}
2336 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2337 *) . "./$cache_file";;
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2342 $as_echo "$as_me: creating cache $cache_file" >&6;}
2346 # Check that the precious variables saved in the cache have kept the same
2348 ac_cache_corrupted=false
2349 for ac_var in $ac_precious_vars; do
2350 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2351 eval ac_new_set=\$ac_env_${ac_var}_set
2352 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2353 eval ac_new_val=\$ac_env_${ac_var}_value
2354 case $ac_old_set,$ac_new_set in
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2357 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2358 ac_cache_corrupted=: ;;
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2361 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2362 ac_cache_corrupted=: ;;
2365 if test "x$ac_old_val" != "x$ac_new_val"; then
2366 # differences in whitespace do not lead to failure.
2367 ac_old_val_w=`echo x $ac_old_val`
2368 ac_new_val_w=`echo x $ac_new_val`
2369 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2371 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2372 ac_cache_corrupted=:
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2375 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2376 eval $ac_var=\$ac_old_val
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2379 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2381 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2384 # Pass precious variables to config.status.
2385 if test "$ac_new_set" = set; then
2387 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2388 *) ac_arg=$ac_var=$ac_new_val ;;
2390 case " $ac_configure_args " in
2391 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2392 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2396 if $ac_cache_corrupted; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2400 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2401 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2403 ## -------------------- ##
2404 ## Main body of script. ##
2405 ## -------------------- ##
2408 ac_cpp='$CPP $CPPFLAGS'
2409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2417 ac_config_headers="$ac_config_headers config.h:config.in"
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2422 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2423 # Check whether --enable-maintainer-mode was given.
2424 if test "${enable_maintainer_mode+set}" = set; then :
2425 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2427 USE_MAINTAINER_MODE=no
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2431 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2432 if test $USE_MAINTAINER_MODE = yes; then
2433 MAINTAINER_MODE_TRUE=
2434 MAINTAINER_MODE_FALSE='#'
2436 MAINTAINER_MODE_TRUE='#'
2437 MAINTAINER_MODE_FALSE=
2440 MAINT=$MAINTAINER_MODE_TRUE
2445 ac_cpp='$CPP $CPPFLAGS'
2446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2449 if test -n "$ac_tool_prefix"; then
2450 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2451 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453 $as_echo_n "checking for $ac_word... " >&6; }
2454 if test "${ac_cv_prog_CC+set}" = set; then :
2455 $as_echo_n "(cached) " >&6
2457 if test -n "$CC"; then
2458 ac_cv_prog_CC="$CC" # Let the user override the test.
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 if test -n "$CC"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2480 $as_echo "$CC" >&6; }
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483 $as_echo "no" >&6; }
2488 if test -z "$ac_cv_prog_CC"; then
2490 # Extract the first word of "gcc", so it can be a program name with args.
2491 set dummy gcc; ac_word=$2
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2493 $as_echo_n "checking for $ac_word... " >&6; }
2494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2495 $as_echo_n "(cached) " >&6
2497 if test -n "$ac_ct_CC"; then
2498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 ac_cv_prog_ac_ct_CC="gcc"
2508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2518 if test -n "$ac_ct_CC"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2520 $as_echo "$ac_ct_CC" >&6; }
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2523 $as_echo "no" >&6; }
2526 if test "x$ac_ct_CC" = x; then
2529 case $cross_compiling:$ac_tool_warned in
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2533 ac_tool_warned=yes ;;
2541 if test -z "$CC"; then
2542 if test -n "$ac_tool_prefix"; then
2543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2544 set dummy ${ac_tool_prefix}cc; ac_word=$2
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2546 $as_echo_n "checking for $ac_word... " >&6; }
2547 if test "${ac_cv_prog_CC+set}" = set; then :
2548 $as_echo_n "(cached) " >&6
2550 if test -n "$CC"; then
2551 ac_cv_prog_CC="$CC" # Let the user override the test.
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 test -z "$as_dir" && as_dir=.
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2560 ac_cv_prog_CC="${ac_tool_prefix}cc"
2561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 if test -n "$CC"; then
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2573 $as_echo "$CC" >&6; }
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2576 $as_echo "no" >&6; }
2582 if test -z "$CC"; then
2583 # Extract the first word of "cc", so it can be a program name with args.
2584 set dummy cc; ac_word=$2
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2586 $as_echo_n "checking for $ac_word... " >&6; }
2587 if test "${ac_cv_prog_CC+set}" = set; then :
2588 $as_echo_n "(cached) " >&6
2590 if test -n "$CC"; then
2591 ac_cv_prog_CC="$CC" # Let the user override the test.
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2602 ac_prog_rejected=yes
2606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 if test $ac_prog_rejected = yes; then
2614 # We found a bogon in the path, so make sure we never use it.
2615 set dummy $ac_cv_prog_CC
2617 if test $# != 0; then
2618 # We chose a different compiler from the bogus one.
2619 # However, it has the same basename, so the bogon will be chosen
2620 # first if we set CC to just the basename; use the full file name.
2622 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2628 if test -n "$CC"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2630 $as_echo "$CC" >&6; }
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2638 if test -z "$CC"; then
2639 if test -n "$ac_tool_prefix"; then
2640 for ac_prog in cl.exe
2642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if test "${ac_cv_prog_CC+set}" = set; then :
2647 $as_echo_n "(cached) " >&6
2649 if test -n "$CC"; then
2650 ac_cv_prog_CC="$CC" # Let the user override the test.
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 if test -n "$CC"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2672 $as_echo "$CC" >&6; }
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675 $as_echo "no" >&6; }
2679 test -n "$CC" && break
2682 if test -z "$CC"; then
2684 for ac_prog in cl.exe
2686 # Extract the first word of "$ac_prog", so it can be a program name with args.
2687 set dummy $ac_prog; ac_word=$2
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2691 $as_echo_n "(cached) " >&6
2693 if test -n "$ac_ct_CC"; then
2694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703 ac_cv_prog_ac_ct_CC="$ac_prog"
2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2714 if test -n "$ac_ct_CC"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2716 $as_echo "$ac_ct_CC" >&6; }
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2723 test -n "$ac_ct_CC" && break
2726 if test "x$ac_ct_CC" = x; then
2729 case $cross_compiling:$ac_tool_warned in
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2733 ac_tool_warned=yes ;;
2742 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2744 as_fn_error "no acceptable C compiler found in \$PATH
2745 See \`config.log' for more details." "$LINENO" 5; }
2747 # Provide some information about the compiler.
2748 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2751 for ac_option in --version -v -V -qversion; do
2752 { { ac_try="$ac_compiler $ac_option >&5"
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2758 $as_echo "$ac_try_echo"; } >&5
2759 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2761 if test -s conftest.err; then
2763 ... rest of stderr output deleted ...
2764 10q' conftest.err >conftest.er1
2765 cat conftest.er1 >&5
2766 rm -f conftest.er1 conftest.err
2768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2769 test $ac_status = 0; }
2772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773 /* end confdefs.h. */
2783 ac_clean_files_save=$ac_clean_files
2784 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2785 # Try to create an executable without -o first, disregard a.out.
2786 # It will help us diagnose broken compilers, and finding out an intuition
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2789 $as_echo_n "checking for C compiler default output file name... " >&6; }
2790 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2792 # The possible output files:
2793 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2796 for ac_file in $ac_files
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2800 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2805 if { { ac_try="$ac_link_default"
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2811 $as_echo "$ac_try_echo"; } >&5
2812 (eval "$ac_link_default") 2>&5
2814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2815 test $ac_status = 0; }; then :
2816 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2817 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2818 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2819 # so that the user can short-circuit this test for compilers unknown to
2821 for ac_file in $ac_files ''
2823 test -f "$ac_file" || continue
2825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2828 # We found the default executable, but exeext='' is most
2832 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2834 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2836 # We set ac_cv_exeext here because the later test for it is not
2837 # safe: cross compilers may not add the suffix if given an `-o'
2838 # argument, so we may need to know it at that point already.
2839 # Even if this section looks crufty: it has the advantage of
2846 test "$ac_cv_exeext" = no && ac_cv_exeext=
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2852 $as_echo "$ac_file" >&6; }
2853 if test -z "$ac_file"; then :
2854 $as_echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859 { as_fn_set_status 77
2860 as_fn_error "C compiler cannot create executables
2861 See \`config.log' for more details." "$LINENO" 5; }; }
2863 ac_exeext=$ac_cv_exeext
2865 # Check that the compiler produces executables we can run. If not, either
2866 # the compiler is broken, or we cross compile.
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2868 $as_echo_n "checking whether the C compiler works... " >&6; }
2869 # If not cross compiling, check that we can run a simple program.
2870 if test "$cross_compiling" != yes; then
2871 if { ac_try='./$ac_file'
2872 { { case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2877 $as_echo "$ac_try_echo"; } >&5
2878 (eval "$ac_try") 2>&5
2880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2881 test $ac_status = 0; }; }; then
2884 if test "$cross_compiling" = maybe; then
2887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2889 as_fn_error "cannot run C compiled programs.
2890 If you meant to cross compile, use \`--host'.
2891 See \`config.log' for more details." "$LINENO" 5; }
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2896 $as_echo "yes" >&6; }
2898 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2899 ac_clean_files=$ac_clean_files_save
2900 # Check that the compiler produces executables we can run. If not, either
2901 # the compiler is broken, or we cross compile.
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2903 $as_echo_n "checking whether we are cross compiling... " >&6; }
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2905 $as_echo "$cross_compiling" >&6; }
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2908 $as_echo_n "checking for suffix of executables... " >&6; }
2909 if { { ac_try="$ac_link"
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2915 $as_echo "$ac_try_echo"; } >&5
2916 (eval "$ac_link") 2>&5
2918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2919 test $ac_status = 0; }; then :
2920 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2921 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2922 # work properly (i.e., refer to `conftest.exe'), while it won't with
2924 for ac_file in conftest.exe conftest conftest.*; do
2925 test -f "$ac_file" || continue
2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2928 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936 as_fn_error "cannot compute suffix of executables: cannot compile and link
2937 See \`config.log' for more details." "$LINENO" 5; }
2939 rm -f conftest$ac_cv_exeext
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2941 $as_echo "$ac_cv_exeext" >&6; }
2943 rm -f conftest.$ac_ext
2944 EXEEXT=$ac_cv_exeext
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2947 $as_echo_n "checking for suffix of object files... " >&6; }
2948 if test "${ac_cv_objext+set}" = set; then :
2949 $as_echo_n "(cached) " >&6
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2962 rm -f conftest.o conftest.obj
2963 if { { ac_try="$ac_compile"
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969 $as_echo "$ac_try_echo"; } >&5
2970 (eval "$ac_compile") 2>&5
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }; then :
2974 for ac_file in conftest.o conftest.obj conftest.*; do
2975 test -f "$ac_file" || continue;
2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2978 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2983 $as_echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988 as_fn_error "cannot compute suffix of object files: cannot compile
2989 See \`config.log' for more details." "$LINENO" 5; }
2991 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2994 $as_echo "$ac_cv_objext" >&6; }
2995 OBJEXT=$ac_cv_objext
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2998 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2999 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003 /* end confdefs.h. */
3016 if ac_fn_c_try_compile "$LINENO"; then :
3021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3026 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3027 if test $ac_compiler_gnu = yes; then
3032 ac_test_CFLAGS=${CFLAGS+set}
3033 ac_save_CFLAGS=$CFLAGS
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3035 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3036 if test "${ac_cv_prog_cc_g+set}" = set; then :
3037 $as_echo_n "(cached) " >&6
3039 ac_save_c_werror_flag=$ac_c_werror_flag
3040 ac_c_werror_flag=yes
3043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3044 /* end confdefs.h. */
3054 if ac_fn_c_try_compile "$LINENO"; then :
3058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h. */
3069 if ac_fn_c_try_compile "$LINENO"; then :
3072 ac_c_werror_flag=$ac_save_c_werror_flag
3074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075 /* end confdefs.h. */
3085 if ac_fn_c_try_compile "$LINENO"; then :
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093 ac_c_werror_flag=$ac_save_c_werror_flag
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3096 $as_echo "$ac_cv_prog_cc_g" >&6; }
3097 if test "$ac_test_CFLAGS" = set; then
3098 CFLAGS=$ac_save_CFLAGS
3099 elif test $ac_cv_prog_cc_g = yes; then
3100 if test "$GCC" = yes; then
3106 if test "$GCC" = yes; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3113 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3114 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3115 $as_echo_n "(cached) " >&6
3117 ac_cv_prog_cc_c89=no
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3123 #include <sys/types.h>
3124 #include <sys/stat.h>
3125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3126 struct buf { int x; };
3127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3128 static char *e (p, i)
3134 static char *f (char * (*g) (char **, int), char **p, ...)
3139 s = g (p, va_arg (v,int));
3144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3145 function prototypes and stuff, but not '\xHH' hex character constants.
3146 These don't provoke an error unfortunately, instead are silently treated
3147 as 'x'. The following induces an error, until -std is added to get
3148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3149 array size at least. It's necessary to write '\x00'==0 to get something
3150 that's true only with -std. */
3151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3154 inside strings and character constants. */
3156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3158 int test (int i, double x);
3159 struct s1 {int (*f) (int a);};
3160 struct s2 {int (*f) (double a);};
3161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3175 CC="$ac_save_CC $ac_arg"
3176 if ac_fn_c_try_compile "$LINENO"; then :
3177 ac_cv_prog_cc_c89=$ac_arg
3179 rm -f core conftest.err conftest.$ac_objext
3180 test "x$ac_cv_prog_cc_c89" != "xno" && break
3182 rm -f conftest.$ac_ext
3187 case "x$ac_cv_prog_cc_c89" in
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3190 $as_echo "none needed" >&6; } ;;
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3193 $as_echo "unsupported" >&6; } ;;
3195 CC="$CC $ac_cv_prog_cc_c89"
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3197 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3199 if test "x$ac_cv_prog_cc_c89" != xno; then :
3204 ac_cpp='$CPP $CPPFLAGS'
3205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3216 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3217 # On Suns, sometimes $CPP names a directory.
3218 if test -n "$CPP" && test -d "$CPP"; then
3221 if test -z "$CPP"; then
3222 if test "${ac_cv_prog_CPP+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3225 # Double quotes because CPP needs to be expanded
3226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3229 for ac_c_preproc_warn_flag in '' yes
3231 # Use a header file that comes with gcc, so configuring glibc
3232 # with a fresh cross-compiler works.
3233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 # <limits.h> exists even on freestanding compilers.
3235 # On the NeXT, cc -E runs the code through the compiler's parser,
3236 # not just through cpp. "Syntax error" is here to catch this case.
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3240 # include <limits.h>
3242 # include <assert.h>
3246 if ac_fn_c_try_cpp "$LINENO"; then :
3249 # Broken: fails on valid input.
3252 rm -f conftest.err conftest.$ac_ext
3254 # OK, works on sane cases. Now check whether nonexistent headers
3255 # can be detected and how.
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3258 #include <ac_nonexistent.h>
3260 if ac_fn_c_try_cpp "$LINENO"; then :
3261 # Broken: success on invalid input.
3264 # Passes both tests.
3268 rm -f conftest.err conftest.$ac_ext
3271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3272 rm -f conftest.err conftest.$ac_ext
3273 if $ac_preproc_ok; then :
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3286 $as_echo "$CPP" >&6; }
3288 for ac_c_preproc_warn_flag in '' yes
3290 # Use a header file that comes with gcc, so configuring glibc
3291 # with a fresh cross-compiler works.
3292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3293 # <limits.h> exists even on freestanding compilers.
3294 # On the NeXT, cc -E runs the code through the compiler's parser,
3295 # not just through cpp. "Syntax error" is here to catch this case.
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3299 # include <limits.h>
3301 # include <assert.h>
3305 if ac_fn_c_try_cpp "$LINENO"; then :
3308 # Broken: fails on valid input.
3311 rm -f conftest.err conftest.$ac_ext
3313 # OK, works on sane cases. Now check whether nonexistent headers
3314 # can be detected and how.
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3317 #include <ac_nonexistent.h>
3319 if ac_fn_c_try_cpp "$LINENO"; then :
3320 # Broken: success on invalid input.
3323 # Passes both tests.
3327 rm -f conftest.err conftest.$ac_ext
3330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3331 rm -f conftest.err conftest.$ac_ext
3332 if $ac_preproc_ok; then :
3335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3338 See \`config.log' for more details." "$LINENO" 5; }
3342 ac_cpp='$CPP $CPPFLAGS'
3343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3349 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3350 if test "${ac_cv_path_GREP+set}" = set; then :
3351 $as_echo_n "(cached) " >&6
3353 if test -z "$GREP"; then
3354 ac_path_GREP_found=false
3355 # Loop through the user's path and test for each of PROGNAME-LIST
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3360 test -z "$as_dir" && as_dir=.
3361 for ac_prog in grep ggrep; do
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3364 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3365 # Check for GNU ac_path_GREP and select it if it is found.
3366 # Check for GNU $ac_path_GREP
3367 case `"$ac_path_GREP" --version 2>&1` in
3369 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3372 $as_echo_n 0123456789 >"conftest.in"
3375 cat "conftest.in" "conftest.in" >"conftest.tmp"
3376 mv "conftest.tmp" "conftest.in"
3377 cp "conftest.in" "conftest.nl"
3378 $as_echo 'GREP' >> "conftest.nl"
3379 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3381 as_fn_arith $ac_count + 1 && ac_count=$as_val
3382 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3383 # Best one so far, save it but keep looking for a better one
3384 ac_cv_path_GREP="$ac_path_GREP"
3385 ac_path_GREP_max=$ac_count
3387 # 10*(2^10) chars as input seems more than enough
3388 test $ac_count -gt 10 && break
3390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3393 $ac_path_GREP_found && break 3
3398 if test -z "$ac_cv_path_GREP"; then
3399 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3402 ac_cv_path_GREP=$GREP
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3407 $as_echo "$ac_cv_path_GREP" >&6; }
3408 GREP="$ac_cv_path_GREP"
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3412 $as_echo_n "checking for egrep... " >&6; }
3413 if test "${ac_cv_path_EGREP+set}" = set; then :
3414 $as_echo_n "(cached) " >&6
3416 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3417 then ac_cv_path_EGREP="$GREP -E"
3419 if test -z "$EGREP"; then
3420 ac_path_EGREP_found=false
3421 # Loop through the user's path and test for each of PROGNAME-LIST
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3426 test -z "$as_dir" && as_dir=.
3427 for ac_prog in egrep; do
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3430 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3431 # Check for GNU ac_path_EGREP and select it if it is found.
3432 # Check for GNU $ac_path_EGREP
3433 case `"$ac_path_EGREP" --version 2>&1` in
3435 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3438 $as_echo_n 0123456789 >"conftest.in"
3441 cat "conftest.in" "conftest.in" >"conftest.tmp"
3442 mv "conftest.tmp" "conftest.in"
3443 cp "conftest.in" "conftest.nl"
3444 $as_echo 'EGREP' >> "conftest.nl"
3445 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3447 as_fn_arith $ac_count + 1 && ac_count=$as_val
3448 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3449 # Best one so far, save it but keep looking for a better one
3450 ac_cv_path_EGREP="$ac_path_EGREP"
3451 ac_path_EGREP_max=$ac_count
3453 # 10*(2^10) chars as input seems more than enough
3454 test $ac_count -gt 10 && break
3456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3459 $ac_path_EGREP_found && break 3
3464 if test -z "$ac_cv_path_EGREP"; then
3465 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3468 ac_cv_path_EGREP=$EGREP
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3474 $as_echo "$ac_cv_path_EGREP" >&6; }
3475 EGREP="$ac_cv_path_EGREP"
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3479 $as_echo_n "checking for ANSI C header files... " >&6; }
3480 if test "${ac_cv_header_stdc+set}" = set; then :
3481 $as_echo_n "(cached) " >&6
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499 ac_cv_header_stdc=yes
3501 ac_cv_header_stdc=no
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 if test $ac_cv_header_stdc = yes; then
3506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3513 $EGREP "memchr" >/dev/null 2>&1; then :
3516 ac_cv_header_stdc=no
3522 if test $ac_cv_header_stdc = yes; then
3523 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3530 $EGREP "free" >/dev/null 2>&1; then :
3533 ac_cv_header_stdc=no
3539 if test $ac_cv_header_stdc = yes; then
3540 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3541 if test "$cross_compiling" = yes; then :
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3548 #if ((' ' & 0x0FF) == 0x020)
3549 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3550 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3552 # define ISLOWER(c) \
3553 (('a' <= (c) && (c) <= 'i') \
3554 || ('j' <= (c) && (c) <= 'r') \
3555 || ('s' <= (c) && (c) <= 'z'))
3556 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3564 for (i = 0; i < 256; i++)
3565 if (XOR (islower (i), ISLOWER (i))
3566 || toupper (i) != TOUPPER (i))
3571 if ac_fn_c_try_run "$LINENO"; then :
3574 ac_cv_header_stdc=no
3576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3577 conftest.$ac_objext conftest.beam conftest.$ac_ext
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3583 $as_echo "$ac_cv_header_stdc" >&6; }
3584 if test $ac_cv_header_stdc = yes; then
3586 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3590 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3591 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3592 inttypes.h stdint.h unistd.h
3594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3595 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3597 eval as_val=\$$as_ac_Header
3598 if test "x$as_val" = x""yes; then :
3599 cat >>confdefs.h <<_ACEOF
3600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3609 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3610 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3617 if test "$MINIX" = yes; then
3619 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3622 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3625 $as_echo "#define _MINIX 1" >>confdefs.h
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3631 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3632 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3638 # define __EXTENSIONS__ 1
3639 $ac_includes_default
3648 if ac_fn_c_try_compile "$LINENO"; then :
3649 ac_cv_safe_to_define___extensions__=yes
3651 ac_cv_safe_to_define___extensions__=no
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3656 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3657 test $ac_cv_safe_to_define___extensions__ = yes &&
3658 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3660 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3662 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3664 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3666 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3670 # Check whether --enable-largefile was given.
3671 if test "${enable_largefile+set}" = set; then :
3672 enableval=$enable_largefile;
3675 if test "$enable_largefile" != no; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3678 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3679 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
3682 ac_cv_sys_largefile_CC=no
3683 if test "$GCC" != yes; then
3686 # IRIX 6.2 and later do not support large files by default,
3687 # so use the C compiler's -n32 option if that helps.
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3690 #include <sys/types.h>
3691 /* Check that off_t can represent 2**63 - 1 correctly.
3692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3693 since some C++ compilers masquerading as C compilers
3694 incorrectly reject 9223372036854775807. */
3695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3697 && LARGE_OFF_T % 2147483647 == 1)
3707 if ac_fn_c_try_compile "$LINENO"; then :
3710 rm -f core conftest.err conftest.$ac_objext
3712 if ac_fn_c_try_compile "$LINENO"; then :
3713 ac_cv_sys_largefile_CC=' -n32'; break
3715 rm -f core conftest.err conftest.$ac_objext
3719 rm -f conftest.$ac_ext
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3723 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3724 if test "$ac_cv_sys_largefile_CC" != no; then
3725 CC=$CC$ac_cv_sys_largefile_CC
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3729 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3730 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3731 $as_echo_n "(cached) " >&6
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3736 #include <sys/types.h>
3737 /* Check that off_t can represent 2**63 - 1 correctly.
3738 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3739 since some C++ compilers masquerading as C compilers
3740 incorrectly reject 9223372036854775807. */
3741 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3743 && LARGE_OFF_T % 2147483647 == 1)
3753 if ac_fn_c_try_compile "$LINENO"; then :
3754 ac_cv_sys_file_offset_bits=no; break
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759 #define _FILE_OFFSET_BITS 64
3760 #include <sys/types.h>
3761 /* Check that off_t can represent 2**63 - 1 correctly.
3762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3763 since some C++ compilers masquerading as C compilers
3764 incorrectly reject 9223372036854775807. */
3765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3767 && LARGE_OFF_T % 2147483647 == 1)
3777 if ac_fn_c_try_compile "$LINENO"; then :
3778 ac_cv_sys_file_offset_bits=64; break
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781 ac_cv_sys_file_offset_bits=unknown
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3786 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3787 case $ac_cv_sys_file_offset_bits in #(
3790 cat >>confdefs.h <<_ACEOF
3791 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3796 if test $ac_cv_sys_file_offset_bits = unknown; then
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3798 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3799 if test "${ac_cv_sys_large_files+set}" = set; then :
3800 $as_echo_n "(cached) " >&6
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3805 #include <sys/types.h>
3806 /* Check that off_t can represent 2**63 - 1 correctly.
3807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3808 since some C++ compilers masquerading as C compilers
3809 incorrectly reject 9223372036854775807. */
3810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3812 && LARGE_OFF_T % 2147483647 == 1)
3822 if ac_fn_c_try_compile "$LINENO"; then :
3823 ac_cv_sys_large_files=no; break
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3828 #define _LARGE_FILES 1
3829 #include <sys/types.h>
3830 /* Check that off_t can represent 2**63 - 1 correctly.
3831 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3832 since some C++ compilers masquerading as C compilers
3833 incorrectly reject 9223372036854775807. */
3834 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3835 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3836 && LARGE_OFF_T % 2147483647 == 1)
3846 if ac_fn_c_try_compile "$LINENO"; then :
3847 ac_cv_sys_large_files=1; break
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 ac_cv_sys_large_files=unknown
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3855 $as_echo "$ac_cv_sys_large_files" >&6; }
3856 case $ac_cv_sys_large_files in #(
3859 cat >>confdefs.h <<_ACEOF
3860 #define _LARGE_FILES $ac_cv_sys_large_files
3870 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3871 for ac_t in install-sh install.sh shtool; do
3872 if test -f "$ac_dir/$ac_t"; then
3874 ac_install_sh="$ac_aux_dir/$ac_t -c"
3879 if test -z "$ac_aux_dir"; then
3880 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3883 # These three variables are undocumented and unsupported,
3884 # and are intended to be withdrawn in a future Autoconf release.
3885 # They can cause serious problems if a builder's source tree is in a directory
3886 # whose full name contains unusual characters.
3887 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3888 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3889 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3892 # Make sure we can run config.sub.
3893 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3894 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3897 $as_echo_n "checking build system type... " >&6; }
3898 if test "${ac_cv_build+set}" = set; then :
3899 $as_echo_n "(cached) " >&6
3901 ac_build_alias=$build_alias
3902 test "x$ac_build_alias" = x &&
3903 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3904 test "x$ac_build_alias" = x &&
3905 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3906 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3907 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3911 $as_echo "$ac_cv_build" >&6; }
3912 case $ac_cv_build in
3914 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3917 ac_save_IFS=$IFS; IFS='-'
3923 # Remember, the first character of IFS is used to create $*,
3924 # except with old shells:
3927 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3931 $as_echo_n "checking host system type... " >&6; }
3932 if test "${ac_cv_host+set}" = set; then :
3933 $as_echo_n "(cached) " >&6
3935 if test "x$host_alias" = x; then
3936 ac_cv_host=$ac_cv_build
3938 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3939 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3944 $as_echo "$ac_cv_host" >&6; }
3947 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3950 ac_save_IFS=$IFS; IFS='-'
3956 # Remember, the first character of IFS is used to create $*,
3957 # except with old shells:
3960 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3964 $as_echo_n "checking target system type... " >&6; }
3965 if test "${ac_cv_target+set}" = set; then :
3966 $as_echo_n "(cached) " >&6
3968 if test "x$target_alias" = x; then
3969 ac_cv_target=$ac_cv_host
3971 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3972 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3977 $as_echo "$ac_cv_target" >&6; }
3978 case $ac_cv_target in
3980 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3982 target=$ac_cv_target
3983 ac_save_IFS=$IFS; IFS='-'
3989 # Remember, the first character of IFS is used to create $*,
3990 # except with old shells:
3993 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3996 # The aliases save the names the user supplied, while $host etc.
3997 # will get canonicalized.
3998 test -n "$target_alias" &&
3999 test "$program_prefix$program_suffix$program_transform_name" = \
4001 program_prefix=${target_alias}-
4004 # Find a good install program. We prefer a C program (faster),
4005 # so one script is as good as another. But avoid the broken or
4006 # incompatible versions:
4007 # SysV /etc/install, /usr/sbin/install
4008 # SunOS /usr/etc/install
4009 # IRIX /sbin/install
4011 # AmigaOS /C/install, which installs bootblocks on floppy discs
4012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4015 # OS/2's system install, which has a completely different semantic
4016 # ./install, which can be erroneously created by make from ./install.sh.
4017 # Reject install programs that cannot install multiple files.
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4019 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4020 if test -z "$INSTALL"; then
4021 if test "${ac_cv_path_install+set}" = set; then :
4022 $as_echo_n "(cached) " >&6
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 test -z "$as_dir" && as_dir=.
4029 # Account for people who put trailing slashes in PATH elements.
4030 case $as_dir/ in #((
4031 ./ | .// | /[cC]/* | \
4032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4033 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4036 # OSF1 and SCO ODT 3.0 have their own names for install.
4037 # Don't use installbsd from OSF since it installs stuff as root
4039 for ac_prog in ginstall scoinst install; do
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4042 if test $ac_prog = install &&
4043 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4044 # AIX install. It has an incompatible calling convention.
4046 elif test $ac_prog = install &&
4047 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4048 # program-specific install script used by HP pwplus--don't use.
4051 rm -rf conftest.one conftest.two conftest.dir
4052 echo one > conftest.one
4053 echo two > conftest.two
4055 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4056 test -s conftest.one && test -s conftest.two &&
4057 test -s conftest.dir/conftest.one &&
4058 test -s conftest.dir/conftest.two
4060 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4073 rm -rf conftest.one conftest.two conftest.dir
4076 if test "${ac_cv_path_install+set}" = set; then
4077 INSTALL=$ac_cv_path_install
4079 # As a last resort, use the slow shell script. Don't cache a
4080 # value for INSTALL within a source directory, because that will
4081 # break other packages using the cache if that directory is
4082 # removed, or if the value is a relative name.
4083 INSTALL=$ac_install_sh
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4087 $as_echo "$INSTALL" >&6; }
4089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4090 # It thinks the first close brace ends the variable substitution.
4091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4097 if test -n "$ac_tool_prefix"; then
4098 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4099 set dummy ${ac_tool_prefix}ar; ac_word=$2
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101 $as_echo_n "checking for $ac_word... " >&6; }
4102 if test "${ac_cv_prog_AR+set}" = set; then :
4103 $as_echo_n "(cached) " >&6
4105 if test -n "$AR"; then
4106 ac_cv_prog_AR="$AR" # Let the user override the test.
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4115 ac_cv_prog_AR="${ac_tool_prefix}ar"
4116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 if test -n "$AR"; then
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4128 $as_echo "$AR" >&6; }
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131 $as_echo "no" >&6; }
4136 if test -z "$ac_cv_prog_AR"; then
4138 # Extract the first word of "ar", so it can be a program name with args.
4139 set dummy ar; ac_word=$2
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141 $as_echo_n "checking for $ac_word... " >&6; }
4142 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4143 $as_echo_n "(cached) " >&6
4145 if test -n "$ac_ct_AR"; then
4146 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4155 ac_cv_prog_ac_ct_AR="ar"
4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4166 if test -n "$ac_ct_AR"; then
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4168 $as_echo "$ac_ct_AR" >&6; }
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 $as_echo "no" >&6; }
4174 if test "x$ac_ct_AR" = x; then
4177 case $cross_compiling:$ac_tool_warned in
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4181 ac_tool_warned=yes ;;
4189 if test -n "$ac_tool_prefix"; then
4190 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4191 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193 $as_echo_n "checking for $ac_word... " >&6; }
4194 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4197 if test -n "$RANLIB"; then
4198 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 RANLIB=$ac_cv_prog_RANLIB
4218 if test -n "$RANLIB"; then
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4220 $as_echo "$RANLIB" >&6; }
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 $as_echo "no" >&6; }
4228 if test -z "$ac_cv_prog_RANLIB"; then
4229 ac_ct_RANLIB=$RANLIB
4230 # Extract the first word of "ranlib", so it can be a program name with args.
4231 set dummy ranlib; ac_word=$2
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 $as_echo_n "checking for $ac_word... " >&6; }
4234 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4237 if test -n "$ac_ct_RANLIB"; then
4238 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4247 ac_cv_prog_ac_ct_RANLIB="ranlib"
4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4258 if test -n "$ac_ct_RANLIB"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4260 $as_echo "$ac_ct_RANLIB" >&6; }
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4266 if test "x$ac_ct_RANLIB" = x; then
4269 case $cross_compiling:$ac_tool_warned in
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4273 ac_tool_warned=yes ;;
4275 RANLIB=$ac_ct_RANLIB
4278 RANLIB="$ac_cv_prog_RANLIB"
4282 test "$program_prefix" != NONE &&
4283 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4284 # Use a double $ so make ignores it.
4285 test "$program_suffix" != NONE &&
4286 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4287 # Double any \ or $.
4288 # By default was `s,x,x', remove it if useless.
4289 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4290 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4294 $as_echo_n "checking for ANSI C header files... " >&6; }
4295 if test "${ac_cv_header_stdc+set}" = set; then :
4296 $as_echo_n "(cached) " >&6
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4313 if ac_fn_c_try_compile "$LINENO"; then :
4314 ac_cv_header_stdc=yes
4316 ac_cv_header_stdc=no
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320 if test $ac_cv_header_stdc = yes; then
4321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328 $EGREP "memchr" >/dev/null 2>&1; then :
4331 ac_cv_header_stdc=no
4337 if test $ac_cv_header_stdc = yes; then
4338 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4345 $EGREP "free" >/dev/null 2>&1; then :
4348 ac_cv_header_stdc=no
4354 if test $ac_cv_header_stdc = yes; then
4355 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4356 if test "$cross_compiling" = yes; then :
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4363 #if ((' ' & 0x0FF) == 0x020)
4364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4367 # define ISLOWER(c) \
4368 (('a' <= (c) && (c) <= 'i') \
4369 || ('j' <= (c) && (c) <= 'r') \
4370 || ('s' <= (c) && (c) <= 'z'))
4371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4379 for (i = 0; i < 256; i++)
4380 if (XOR (islower (i), ISLOWER (i))
4381 || toupper (i) != TOUPPER (i))
4386 if ac_fn_c_try_run "$LINENO"; then :
4389 ac_cv_header_stdc=no
4391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4392 conftest.$ac_objext conftest.beam conftest.$ac_ext
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4398 $as_echo "$ac_cv_header_stdc" >&6; }
4399 if test $ac_cv_header_stdc = yes; then
4401 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4406 # Set the 'development' global.
4407 . $srcdir/../../bfd/development.sh
4409 # Enable -lmcheck by default (it provides cheap-enough memory
4410 # mangling), but turn it off for releases.
4411 if $development; then
4412 libmcheck_default=yes
4414 libmcheck_default=no
4417 # Check whether --enable-libmcheck was given.
4418 if test "${enable_libmcheck+set}" = set; then :
4419 enableval=$enable_libmcheck; case "${enableval}" in
4420 yes | y) ENABLE_LIBMCHECK="yes" ;;
4421 no | n) ENABLE_LIBMCHECK="no" ;;
4422 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
4427 if test -z "${ENABLE_LIBMCHECK}"; then
4428 ENABLE_LIBMCHECK=${libmcheck_default}
4431 if test "$ENABLE_LIBMCHECK" = "yes" ; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
4433 $as_echo_n "checking for main in -lmcheck... " >&6; }
4434 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
4437 ac_check_lib_save_LIBS=$LIBS
4438 LIBS="-lmcheck $LIBS"
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4451 if ac_fn_c_try_link "$LINENO"; then :
4452 ac_cv_lib_mcheck_main=yes
4454 ac_cv_lib_mcheck_main=no
4456 rm -f core conftest.err conftest.$ac_objext \
4457 conftest$ac_exeext conftest.$ac_ext
4458 LIBS=$ac_check_lib_save_LIBS
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
4461 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
4462 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
4463 cat >>confdefs.h <<_ACEOF
4464 #define HAVE_LIBMCHECK 1
4467 LIBS="-lmcheck $LIBS"
4474 case ${build_alias} in
4475 "") build_noncanonical=${build} ;;
4476 *) build_noncanonical=${build_alias} ;;
4479 case ${host_alias} in
4480 "") host_noncanonical=${build_noncanonical} ;;
4481 *) host_noncanonical=${host_alias} ;;
4484 case ${target_alias} in
4485 "") target_noncanonical=${host_noncanonical} ;;
4486 *) target_noncanonical=${target_alias} ;;
4494 # Dependency checking.
4495 rm -rf .tst 2>/dev/null
4496 mkdir .tst 2>/dev/null
4497 if test -d .tst; then
4502 rmdir .tst 2>/dev/null
4504 DEPDIR="${am__leading_dot}deps"
4506 ac_config_commands="$ac_config_commands depdir"
4509 depcc="$CC" am_compiler_list=
4511 am_depcomp=$ac_aux_dir/depcomp
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4513 $as_echo_n "checking dependency style of $depcc... " >&6; }
4514 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4517 if test -f "$am_depcomp"; then
4518 # We make a subdir and do the tests there. Otherwise we can end up
4519 # making bogus files that we don't know about and never remove. For
4520 # instance it was reported that on HP-UX the gcc test will end up
4521 # making a dummy file named `D' -- because `-MD' means `put the output
4524 # Copy depcomp to subdir because otherwise we won't find it if we're
4525 # using a relative directory.
4526 cp "$am_depcomp" conftest.dir
4528 # We will build objects and dependencies in a subdirectory because
4529 # it helps to detect inapplicable dependency modes. For instance
4530 # both Tru64's cc and ICC support -MD to output dependencies as a
4531 # side effect of compilation, but ICC will put the dependencies in
4532 # the current directory while Tru64 will put them in the object
4536 am_cv_CC_dependencies_compiler_type=none
4537 if test "$am_compiler_list" = ""; then
4538 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4540 for depmode in $am_compiler_list; do
4541 if test $depmode = none; then break; fi
4543 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4544 # Setup a source with many dependencies, because some compilers
4545 # like to wrap large dependency lists on column 80 (with \), and
4546 # we should not choose a depcomp mode which is confused by this.
4548 # We need to recreate these files for each test, as the compiler may
4549 # overwrite some of them when testing with obscure command lines.
4550 # This happens at least with the AIX C compiler.
4552 for i in 1 2 3 4 5 6; do
4553 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4554 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4555 # Solaris 8's {/usr,}/bin/sh.
4556 touch sub/conftst$i.h
4558 echo "include sub/conftest.Po" > confmf
4560 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4561 # mode. It turns out that the SunPro C++ compiler does not properly
4562 # handle `-M -o', and we need to detect this.
4563 depcmd="depmode=$depmode \
4564 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4565 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4566 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4567 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4568 if env $depcmd > conftest.err 2>&1 &&
4569 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4570 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4571 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4572 # icc doesn't choke on unknown options, it will just issue warnings
4573 # or remarks (even with -Werror). So we grep stderr for any message
4574 # that says an option was ignored or not supported.
4575 # When given -MP, icc 7.0 and 7.1 complain thusly:
4576 # icc: Command line warning: ignoring option '-M'; no argument required
4577 # The diagnosis changed in icc 8.0:
4578 # icc: Command line remark: option '-MP' not supported
4579 if (grep 'ignoring option' conftest.err ||
4580 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4581 am_cv_CC_dependencies_compiler_type=$depmode
4582 $as_echo "$as_me:$LINENO: success" >&5
4586 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4587 sed -e 's/^/| /' < conftest.err >&5
4593 am_cv_CC_dependencies_compiler_type=none
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4598 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4599 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4600 then as_fn_error "no usable dependency style found" "$LINENO" 5
4601 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4606 # Check for the 'make' the user wants to use.
4609 # Extract the first word of "$ac_prog", so it can be a program name with args.
4610 set dummy $ac_prog; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if test "${ac_cv_prog_MAKE+set}" = set; then :
4614 $as_echo_n "(cached) " >&6
4616 if test -n "$MAKE"; then
4617 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626 ac_cv_prog_MAKE="$ac_prog"
4627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 MAKE=$ac_cv_prog_MAKE
4637 if test -n "$MAKE"; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4639 $as_echo "$MAKE" >&6; }
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 $as_echo "no" >&6; }
4646 test -n "$MAKE" && break
4650 case "`$MAKE --version 2>&1 | sed 1q`" in
4655 if test "$MAKE_IS_GNU" = yes; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4664 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4666 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4667 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4668 $as_echo_n "(cached) " >&6
4670 cat >conftest.make <<\_ACEOF
4673 @echo '@@@%%%=$(MAKE)=@@@%%%'
4675 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4676 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4678 eval ac_cv_prog_make_${ac_make}_set=yes;;
4680 eval ac_cv_prog_make_${ac_make}_set=no;;
4684 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4686 $as_echo "yes" >&6; }
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4691 SET_MAKE="MAKE=${MAKE-make}"
4695 gnulib_extra_configure_args=
4696 # If large-file support is disabled, make sure gnulib does the same.
4697 if test "$enable_largefile" = no; then
4698 gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
4701 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
4702 # to find the the source subdir to be configured directly under
4703 # gdbserver/. We need to build gnulib under some other directory not
4704 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
4705 # build it in the same directory, when building in the source dir.
4708 in_build="build-gnulib-gdbserver"
4709 in_extra_args="$gnulib_extra_configure_args"
4711 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4712 # so they do not pile up.
4713 ac_sub_configure_args=
4715 eval "set x $ac_configure_args"
4719 if test -n "$ac_prev"; then
4724 -cache-file | --cache-file | --cache-fil | --cache-fi \
4725 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4726 ac_prev=cache_file ;;
4727 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4728 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4731 --config-cache | -C)
4733 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4735 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4737 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4739 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4741 --disable-option-checking)
4745 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4747 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4751 # Always prepend --prefix to ensure using the same prefix
4752 # in subdir configurations.
4753 ac_arg="--prefix=$prefix"
4755 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4757 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4760 if test "$silent" = yes; then
4761 ac_sub_configure_args="--silent $ac_sub_configure_args"
4764 # Always prepend --disable-option-checking to silence warnings, since
4765 # different subdirs can have different --enable and --with options.
4766 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4771 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4772 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4773 $as_echo "$ac_msg" >&6
4774 as_dir="$ac_dir"; as_fn_mkdir_p
4778 ac_srcdir=$srcdir/$in_src ;;
4780 ac_srcdir=../$srcdir/$in_src ;;
4785 ac_sub_configure=$ac_srcdir/configure
4787 # Make the cache file name correct relative to the subdirectory.
4789 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4791 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4794 if test -n "$in_extra_args"; then
4795 # Add the extra args at the end.
4796 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
4799 { $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
4800 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4801 # The eval makes quoting arguments work.
4802 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4803 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4804 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4810 in_src="../../libiberty"
4811 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 if test -n "$in_extra_args"; then
4898 # Add the extra args at the end.
4899 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
4902 { $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
4903 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4904 # The eval makes quoting arguments work.
4905 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4906 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4907 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4912 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 sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h
4914 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4915 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4916 eval as_val=\$$as_ac_Header
4917 if test "x$as_val" = x""yes; then :
4918 cat >>confdefs.h <<_ACEOF
4919 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4926 for ac_func in getauxval pread pwrite pread64
4928 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4929 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4930 eval as_val=\$$as_ac_var
4931 if test "x$as_val" = x""yes; then :
4932 cat >>confdefs.h <<_ACEOF
4933 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4942 $as_echo_n "checking for ANSI C header files... " >&6; }
4943 if test "${ac_cv_header_stdc+set}" = set; then :
4944 $as_echo_n "(cached) " >&6
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4961 if ac_fn_c_try_compile "$LINENO"; then :
4962 ac_cv_header_stdc=yes
4964 ac_cv_header_stdc=no
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 if test $ac_cv_header_stdc = yes; then
4969 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4976 $EGREP "memchr" >/dev/null 2>&1; then :
4979 ac_cv_header_stdc=no
4985 if test $ac_cv_header_stdc = yes; then
4986 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4993 $EGREP "free" >/dev/null 2>&1; then :
4996 ac_cv_header_stdc=no
5002 if test $ac_cv_header_stdc = yes; then
5003 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5004 if test "$cross_compiling" = yes; then :
5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008 /* end confdefs.h. */
5011 #if ((' ' & 0x0FF) == 0x020)
5012 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5013 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5015 # define ISLOWER(c) \
5016 (('a' <= (c) && (c) <= 'i') \
5017 || ('j' <= (c) && (c) <= 'r') \
5018 || ('s' <= (c) && (c) <= 'z'))
5019 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5022 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5027 for (i = 0; i < 256; i++)
5028 if (XOR (islower (i), ISLOWER (i))
5029 || toupper (i) != TOUPPER (i))
5034 if ac_fn_c_try_run "$LINENO"; then :
5037 ac_cv_header_stdc=no
5039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5040 conftest.$ac_objext conftest.beam conftest.$ac_ext
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5046 $as_echo "$ac_cv_header_stdc" >&6; }
5047 if test $ac_cv_header_stdc = yes; then
5049 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5053 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5054 # for constant arguments. Useless!
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5056 $as_echo_n "checking for working alloca.h... " >&6; }
5057 if test "${ac_cv_working_alloca_h+set}" = set; then :
5058 $as_echo_n "(cached) " >&6
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5066 char *p = (char *) alloca (2 * sizeof (int));
5072 if ac_fn_c_try_link "$LINENO"; then :
5073 ac_cv_working_alloca_h=yes
5075 ac_cv_working_alloca_h=no
5077 rm -f core conftest.err conftest.$ac_objext \
5078 conftest$ac_exeext conftest.$ac_ext
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5081 $as_echo "$ac_cv_working_alloca_h" >&6; }
5082 if test $ac_cv_working_alloca_h = yes; then
5084 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5089 $as_echo_n "checking for alloca... " >&6; }
5090 if test "${ac_cv_func_alloca_works+set}" = set; then :
5091 $as_echo_n "(cached) " >&6
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5096 # define alloca __builtin_alloca
5099 # include <malloc.h>
5100 # define alloca _alloca
5102 # ifdef HAVE_ALLOCA_H
5103 # include <alloca.h>
5108 # ifndef alloca /* predefined by HP cc +Olibcalls */
5119 char *p = (char *) alloca (1);
5125 if ac_fn_c_try_link "$LINENO"; then :
5126 ac_cv_func_alloca_works=yes
5128 ac_cv_func_alloca_works=no
5130 rm -f core conftest.err conftest.$ac_objext \
5131 conftest$ac_exeext conftest.$ac_ext
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5134 $as_echo "$ac_cv_func_alloca_works" >&6; }
5136 if test $ac_cv_func_alloca_works = yes; then
5138 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5141 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5142 # that cause trouble. Some versions do not even contain alloca or
5143 # contain a buggy version. If you still want to use their alloca,
5144 # use ar to extract alloca.o from them instead of compiling alloca.c.
5146 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5148 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5152 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5153 if test "${ac_cv_os_cray+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5158 #if defined CRAY && ! defined CRAY2
5165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5166 $EGREP "webecray" >/dev/null 2>&1; then :
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5175 $as_echo "$ac_cv_os_cray" >&6; }
5176 if test $ac_cv_os_cray = yes; then
5177 for ac_func in _getb67 GETB67 getb67; do
5178 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5179 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5180 eval as_val=\$$as_ac_var
5181 if test "x$as_val" = x""yes; then :
5183 cat >>confdefs.h <<_ACEOF
5184 #define CRAY_STACKSEG_END $ac_func
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5194 $as_echo_n "checking stack direction for C alloca... " >&6; }
5195 if test "${ac_cv_c_stack_direction+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5198 if test "$cross_compiling" = yes; then :
5199 ac_cv_c_stack_direction=0
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5203 $ac_includes_default
5205 find_stack_direction ()
5207 static char *addr = 0;
5212 return find_stack_direction ();
5215 return (&dummy > addr) ? 1 : -1;
5221 return find_stack_direction () < 0;
5224 if ac_fn_c_try_run "$LINENO"; then :
5225 ac_cv_c_stack_direction=1
5227 ac_cv_c_stack_direction=-1
5229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5230 conftest.$ac_objext conftest.beam conftest.$ac_ext
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5235 $as_echo "$ac_cv_c_stack_direction" >&6; }
5236 cat >>confdefs.h <<_ACEOF
5237 #define STACK_DIRECTION $ac_cv_c_stack_direction
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5246 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5247 if test "${am_cv_langinfo_codeset+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5252 #include <langinfo.h>
5256 char* cs = nl_langinfo(CODESET);
5261 if ac_fn_c_try_link "$LINENO"; then :
5262 am_cv_langinfo_codeset=yes
5264 am_cv_langinfo_codeset=no
5266 rm -f core conftest.err conftest.$ac_objext \
5267 conftest$ac_exeext conftest.$ac_ext
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5271 $as_echo "$am_cv_langinfo_codeset" >&6; }
5272 if test $am_cv_langinfo_codeset = yes; then
5274 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5279 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
5281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5282 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5283 eval as_val=\$$as_ac_Header
5284 if test "x$as_val" = x""yes; then :
5285 cat >>confdefs.h <<_ACEOF
5286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5294 for ac_func in fdwalk getrlimit pipe pipe2 socketpair
5296 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5297 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5298 eval as_val=\$$as_ac_var
5299 if test "x$as_val" = x""yes; then :
5300 cat >>confdefs.h <<_ACEOF
5301 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5308 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
5309 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
5315 cat >>confdefs.h <<_ACEOF
5316 #define HAVE_DECL_STRERROR $ac_have_decl
5318 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
5319 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
5325 cat >>confdefs.h <<_ACEOF
5326 #define HAVE_DECL_STRSTR $ac_have_decl
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
5331 $as_echo_n "checking for sigsetjmp... " >&6; }
5332 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5343 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
5348 if ac_fn_c_try_compile "$LINENO"; then :
5349 gdb_cv_func_sigsetjmp=yes
5351 gdb_cv_func_sigsetjmp=no
5353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
5356 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
5357 if test $gdb_cv_func_sigsetjmp = yes; then
5359 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
5369 # Check whether --with-ust was given.
5370 if test "${with_ust+set}" = set; then :
5375 # Check whether --with-ust_include was given.
5376 if test "${with_ust_include+set}" = set; then :
5377 withval=$with_ust_include;
5381 # Check whether --with-ust_lib was given.
5382 if test "${with_ust_lib+set}" = set; then :
5383 withval=$with_ust_lib;
5397 ustlibs="-L$with_ust/lib -lust"
5398 ustinc="-I$with_ust/include "
5401 if test "x$with_ust_include" != x; then
5402 ustinc="-I$with_ust_include "
5404 if test "x$with_ust_lib" != x; then
5405 ustlibs="-L$with_ust_lib -lust"
5408 if test "x$with_ust" != "xno"; then
5409 saved_CFLAGS="$CFLAGS"
5410 CFLAGS="$CFLAGS $ustinc"
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
5412 $as_echo_n "checking for ust... " >&6; }
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5416 #define CONFIG_UST_GDB_INTEGRATION
5417 #include <ust/ust.h>
5427 if ac_fn_c_try_compile "$LINENO"; then :
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5429 $as_echo "yes" >&6; };
5430 $as_echo "#define HAVE_UST 1" >>confdefs.h
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }; ustlibs= ; ustinc=
5436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437 CFLAGS="$saved_CFLAGS"
5440 # Flags needed for UST
5444 # Check whether --enable-werror was given.
5445 if test "${enable_werror+set}" = set; then :
5446 enableval=$enable_werror; case "${enableval}" in
5447 yes | y) ERROR_ON_WARNING="yes" ;;
5448 no | n) ERROR_ON_WARNING="no" ;;
5449 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
5454 # Enable -Werror by default when using gcc. Turn it off for releases.
5455 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
5456 ERROR_ON_WARNING=yes
5460 if test "${ERROR_ON_WARNING}" = yes ; then
5461 WERROR_CFLAGS="-Werror"
5464 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
5465 -Wformat-nonliteral -Wno-char-subscripts -Wempty-body"
5468 if test "x$GCC" = xyes
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
5471 $as_echo_n "checking compiler warning flags... " >&6; }
5472 # Separate out the -Werror flag as some files just cannot be
5473 # compiled with it enabled.
5474 for w in ${build_warnings}; do
5476 -Werr*) WERROR_CFLAGS=-Werror ;;
5477 *) # Check that GCC accepts it
5478 saved_CFLAGS="$CFLAGS"
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5491 if ac_fn_c_try_compile "$LINENO"; then :
5492 WARN_CFLAGS="${WARN_CFLAGS} $w"
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 CFLAGS="$saved_CFLAGS"
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
5499 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
5506 for ac_func in dladdr
5508 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
5509 if test "x$ac_cv_func_dladdr" = x""yes; then :
5510 cat >>confdefs.h <<_ACEOF
5511 #define HAVE_DLADDR 1
5520 # Check for presence and size of long long.
5521 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5522 if test "x$ac_cv_type_long_long" = x""yes; then :
5524 cat >>confdefs.h <<_ACEOF
5525 #define HAVE_LONG_LONG 1
5528 # The cast to long int works around a bug in the HP C Compiler
5529 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5530 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5531 # This bug is HP SR number 8606223364.
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5533 $as_echo_n "checking size of long long... " >&6; }
5534 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5535 $as_echo_n "(cached) " >&6
5537 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5540 if test "$ac_cv_type_long_long" = yes; then
5541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5543 { as_fn_set_status 77
5544 as_fn_error "cannot compute sizeof (long long)
5545 See \`config.log' for more details." "$LINENO" 5; }; }
5547 ac_cv_sizeof_long_long=0
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5553 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5557 cat >>confdefs.h <<_ACEOF
5558 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5565 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
5566 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
5572 cat >>confdefs.h <<_ACEOF
5573 #define HAVE_DECL_BASENAME $ac_have_decl
5575 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
5576 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
5582 cat >>confdefs.h <<_ACEOF
5583 #define HAVE_DECL_FFS $ac_have_decl
5585 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5586 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
5592 cat >>confdefs.h <<_ACEOF
5593 #define HAVE_DECL_ASPRINTF $ac_have_decl
5595 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5596 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
5602 cat >>confdefs.h <<_ACEOF
5603 #define HAVE_DECL_VASPRINTF $ac_have_decl
5605 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
5606 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
5612 cat >>confdefs.h <<_ACEOF
5613 #define HAVE_DECL_SNPRINTF $ac_have_decl
5615 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
5616 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
5622 cat >>confdefs.h <<_ACEOF
5623 #define HAVE_DECL_VSNPRINTF $ac_have_decl
5626 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
5627 if test "x$ac_cv_have_decl_strtol" = x""yes; then :
5633 cat >>confdefs.h <<_ACEOF
5634 #define HAVE_DECL_STRTOL $ac_have_decl
5636 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
5637 if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
5643 cat >>confdefs.h <<_ACEOF
5644 #define HAVE_DECL_STRTOUL $ac_have_decl
5646 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
5647 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
5653 cat >>confdefs.h <<_ACEOF
5654 #define HAVE_DECL_STRTOLL $ac_have_decl
5656 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
5657 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
5663 cat >>confdefs.h <<_ACEOF
5664 #define HAVE_DECL_STRTOULL $ac_have_decl
5667 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
5668 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
5674 cat >>confdefs.h <<_ACEOF
5675 #define HAVE_DECL_STRVERSCMP $ac_have_decl
5680 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
5681 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
5687 cat >>confdefs.h <<_ACEOF
5688 #define HAVE_DECL_STRERROR $ac_have_decl
5690 ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
5691 if test "x$ac_cv_have_decl_perror" = x""yes; then :
5697 cat >>confdefs.h <<_ACEOF
5698 #define HAVE_DECL_PERROR $ac_have_decl
5700 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5701 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
5707 cat >>confdefs.h <<_ACEOF
5708 #define HAVE_DECL_VASPRINTF $ac_have_decl
5710 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
5711 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
5717 cat >>confdefs.h <<_ACEOF
5718 #define HAVE_DECL_VSNPRINTF $ac_have_decl
5722 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5723 #include <sys/socket.h>
5726 if test "x$ac_cv_type_socklen_t" = x""yes; then :
5728 cat >>confdefs.h <<_ACEOF
5729 #define HAVE_SOCKLEN_T 1
5736 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h>
5739 if test "x$ac_cv_type_Elf32_auxv_t" = x""yes; then :
5741 cat >>confdefs.h <<_ACEOF
5742 #define HAVE_ELF32_AUXV_T 1
5747 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h>
5750 if test "x$ac_cv_type_Elf64_auxv_t" = x""yes; then :
5752 cat >>confdefs.h <<_ACEOF
5753 #define HAVE_ELF64_AUXV_T 1
5762 # Check whether --with-pkgversion was given.
5763 if test "${with_pkgversion+set}" = set; then :
5764 withval=$with_pkgversion; case "$withval" in
5765 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
5767 *) PKGVERSION="($withval) " ;;
5778 # Check whether --with-bugurl was given.
5779 if test "${with_bugurl+set}" = set; then :
5780 withval=$with_bugurl; case "$withval" in
5781 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
5784 *) BUGURL="$withval"
5788 BUGURL="http://www.gnu.org/software/gdb/bugs/"
5798 REPORT_BUGS_TO="<$BUGURL>"
5799 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5806 cat >>confdefs.h <<_ACEOF
5807 #define PKGVERSION "$PKGVERSION"
5811 cat >>confdefs.h <<_ACEOF
5812 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5816 # Check for various supplementary target information (beyond the
5817 # triplet) which might affect the choices in configure.srv.
5819 i[34567]86-*-linux*)
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
5821 $as_echo_n "checking if building for x86-64... " >&6; }
5822 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
5823 $as_echo_n "(cached) " >&6
5825 save_CPPFLAGS="$CPPFLAGS"
5826 CPPFLAGS="$CPPFLAGS $CFLAGS"
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5836 $EGREP "got it" >/dev/null 2>&1; then :
5837 gdb_cv_i386_is_x86_64=yes
5839 gdb_cv_i386_is_x86_64=no
5843 CPPFLAGS="$save_CPPFLAGS"
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
5846 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
5850 $as_echo_n "checking if building for Coldfire... " >&6; }
5851 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5854 save_CPPFLAGS="$CPPFLAGS"
5855 CPPFLAGS="$CPPFLAGS $CFLAGS"
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5859 #ifdef __mcoldfire__
5864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5865 $EGREP "got it" >/dev/null 2>&1; then :
5866 gdb_cv_m68k_is_coldfire=yes
5868 gdb_cv_m68k_is_coldfire=no
5872 CPPFLAGS="$save_CPPFLAGS"
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
5875 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
5879 . ${srcdir}/configure.srv
5881 # Add in the common host objects.
5882 . ${srcdir}/../common/common.host
5883 srv_host_obs="$common_host_obs"
5885 if test "${srv_mingwce}" = "yes"; then
5887 elif test "${srv_mingw}" = "yes"; then
5888 LIBS="$LIBS -lws2_32"
5889 elif test "${srv_qnx}" = "yes"; then
5890 LIBS="$LIBS -lsocket"
5891 elif test "${srv_lynxos}" = "yes"; then
5892 LIBS="$LIBS -lnetinet"
5895 if test "${srv_mingw}" = "yes"; then
5897 $as_echo "#define USE_WIN32API 1" >>confdefs.h
5901 if test "${srv_linux_usrregs}" = "yes"; then
5903 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
5907 if test "${srv_linux_regsets}" = "yes"; then
5909 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
5913 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
5914 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
5915 $as_echo_n "(cached) " >&6
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5919 #include <sys/ptrace.h>
5928 if ac_fn_c_try_compile "$LINENO"; then :
5929 gdbsrv_cv_have_ptrace_getregs=yes
5931 gdbsrv_cv_have_ptrace_getregs=no
5933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
5937 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
5938 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
5940 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
5945 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
5946 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
5947 $as_echo_n "(cached) " >&6
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5951 #include <sys/ptrace.h>
5960 if ac_fn_c_try_compile "$LINENO"; then :
5961 gdbsrv_cv_have_ptrace_getfpxregs=yes
5963 gdbsrv_cv_have_ptrace_getfpxregs=no
5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
5969 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
5970 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
5972 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
5977 if test "${srv_linux_btrace}" = "yes"; then
5979 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
5983 if test "$ac_cv_header_sys_procfs_h" = yes; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
5985 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
5986 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
5987 $as_echo_n "(cached) " >&6
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
5993 /* Needed for new procfs interface on sparc-solaris. */
5994 #define _STRUCTURED_PROC 1
5995 #include <sys/procfs.h>
6004 if ac_fn_c_try_compile "$LINENO"; then :
6005 bfd_cv_have_sys_procfs_type_lwpid_t=yes
6007 bfd_cv_have_sys_procfs_type_lwpid_t=no
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
6015 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
6019 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
6022 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
6023 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
6024 $as_echo_n "(cached) " >&6
6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h. */
6030 /* Needed for new procfs interface on sparc-solaris. */
6031 #define _STRUCTURED_PROC 1
6032 #include <sys/procfs.h>
6041 if ac_fn_c_try_compile "$LINENO"; then :
6042 bfd_cv_have_sys_procfs_type_psaddr_t=yes
6044 bfd_cv_have_sys_procfs_type_psaddr_t=no
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
6052 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
6056 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
6059 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
6060 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
6061 $as_echo_n "(cached) " >&6
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6067 /* Needed for new procfs interface on sparc-solaris. */
6068 #define _STRUCTURED_PROC 1
6069 #include <sys/procfs.h>
6078 if ac_fn_c_try_compile "$LINENO"; then :
6079 bfd_cv_have_sys_procfs_type_prgregset_t=yes
6081 bfd_cv_have_sys_procfs_type_prgregset_t=no
6084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
6089 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
6093 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
6096 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
6097 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
6098 $as_echo_n "(cached) " >&6
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6104 /* Needed for new procfs interface on sparc-solaris. */
6105 #define _STRUCTURED_PROC 1
6106 #include <sys/procfs.h>
6115 if ac_fn_c_try_compile "$LINENO"; then :
6116 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
6118 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
6121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
6126 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
6130 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
6134 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
6136 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
6137 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
6138 $as_echo_n "(cached) " >&6
6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6143 #include <thread_db.h>
6152 if ac_fn_c_try_compile "$LINENO"; then :
6153 gdbserver_cv_have_thread_db_type_lwpid_t=yes
6155 gdbserver_cv_have_thread_db_type_lwpid_t=no
6158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6161 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
6163 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
6167 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
6171 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
6173 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
6174 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
6175 $as_echo_n "(cached) " >&6
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6180 #include <thread_db.h>
6189 if ac_fn_c_try_compile "$LINENO"; then :
6190 gdbserver_cv_have_thread_db_type_psaddr_t=yes
6192 gdbserver_cv_have_thread_db_type_psaddr_t=no
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
6200 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
6204 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6210 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6211 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
6212 $as_echo_n "(cached) " >&6
6214 ac_check_lib_save_LIBS=$LIBS
6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h. */
6219 /* Override any GCC internal prototype to avoid an error.
6220 Use char because int might match the return type of a GCC
6221 builtin and then its argument prototype would still apply. */
6234 if ac_fn_c_try_link "$LINENO"; then :
6235 ac_cv_lib_dl_dlopen=yes
6237 ac_cv_lib_dl_dlopen=no
6239 rm -f core conftest.err conftest.$ac_objext \
6240 conftest$ac_exeext conftest.$ac_ext
6241 LIBS=$ac_check_lib_save_LIBS
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6244 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6245 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
6246 cat >>confdefs.h <<_ACEOF
6247 #define HAVE_LIBDL 1
6256 srv_thread_depfiles=
6259 if test "$srv_linux_thread_db" = "yes"; then
6260 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
6263 $as_echo_n "checking for the dynamic export flag... " >&6; }
6264 old_LDFLAGS="$LDFLAGS"
6265 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
6267 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
6268 LDFLAGS="$LDFLAGS $RDYNAMIC"
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6280 if ac_fn_c_try_link "$LINENO"; then :
6281 found="-Wl,--dynamic-list"
6282 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
6284 RDYNAMIC="-rdynamic"
6285 LDFLAGS="$old_LDFLAGS $RDYNAMIC"
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6297 if ac_fn_c_try_link "$LINENO"; then :
6303 rm -f core conftest.err conftest.$ac_objext \
6304 conftest$ac_exeext conftest.$ac_ext
6306 rm -f core conftest.err conftest.$ac_objext \
6307 conftest$ac_exeext conftest.$ac_ext
6309 LDFLAGS="$old_LDFLAGS"
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
6311 $as_echo "$found" >&6; }
6313 srv_libs="-lthread_db"
6316 srv_thread_depfiles="thread-db.o proc-service.o"
6318 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
6321 $as_echo_n "checking for TD_VERSION... " >&6; }
6322 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
6323 $as_echo_n "(cached) " >&6
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6327 #include <thread_db.h>
6336 if ac_fn_c_try_compile "$LINENO"; then :
6337 gdbsrv_cv_have_td_version=yes
6339 gdbsrv_cv_have_td_version=no
6341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
6344 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
6345 if test $gdbsrv_cv_have_td_version = yes; then
6347 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
6353 # Check whether --with-libthread-db was given.
6354 if test "${with_libthread_db+set}" = set; then :
6355 withval=$with_libthread_db; srv_libthread_db_path="${withval}"
6356 srv_libs="$srv_libthread_db_path"
6361 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
6363 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
6367 if test "$srv_xmlfiles" != ""; then
6368 srv_xmlbuiltin="xml-builtin.o"
6370 $as_echo "#define USE_XML 1" >>confdefs.h
6373 tmp_xmlfiles=$srv_xmlfiles
6375 for f in $tmp_xmlfiles; do
6376 srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
6380 GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs"
6381 GDBSERVER_LIBS="$srv_libs"
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
6384 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
6385 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
6386 $as_echo_n "(cached) " >&6
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6395 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
6400 if ac_fn_c_try_link "$LINENO"; then :
6401 gdbsrv_cv_have_sync_builtins=yes
6403 gdbsrv_cv_have_sync_builtins=no
6405 rm -f core conftest.err conftest.$ac_objext \
6406 conftest$ac_exeext conftest.$ac_ext
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
6409 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
6410 if test $gdbsrv_cv_have_sync_builtins = yes; then
6412 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
6416 saved_cflags="$CFLAGS"
6417 CFLAGS="$CFLAGS -fvisibility=hidden"
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6429 if ac_fn_c_try_compile "$LINENO"; then :
6430 gdbsrv_cv_have_visibility_hidden=yes
6432 gdbsrv_cv_have_visibility_hidden=no
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 CFLAGS="$saved_cflags"
6437 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
6439 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
6445 cat >>confdefs.h <<_ACEOF
6446 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
6450 if test "$cross_compiling" = yes; then :
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6453 #include <sys/personality.h>
6458 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
6459 # define ADDR_NO_RANDOMIZE 0x0040000
6461 /* Test the flag could be set and stays set. */
6462 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
6463 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
6469 if ac_fn_c_try_link "$LINENO"; then :
6470 gdbsrv_cv_have_personality=true
6472 gdbsrv_cv_have_personality=false
6474 rm -f core conftest.err conftest.$ac_objext \
6475 conftest$ac_exeext conftest.$ac_ext
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6479 #include <sys/personality.h>
6484 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
6485 # define ADDR_NO_RANDOMIZE 0x0040000
6487 /* Test the flag could be set and stays set. */
6488 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
6489 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
6495 if ac_fn_c_try_run "$LINENO"; then :
6496 gdbsrv_cv_have_personality=true
6498 gdbsrv_cv_have_personality=false
6500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6501 conftest.$ac_objext conftest.beam conftest.$ac_ext
6504 if $gdbsrv_cv_have_personality
6507 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
6515 # check whether to enable the inprocess agent
6516 if test "$ipa_obj" != "" \
6517 -a "$gdbsrv_cv_have_sync_builtins" = yes \
6518 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
6524 # Check whether --enable-inprocess-agent was given.
6525 if test "${enable_inprocess_agent+set}" = set; then :
6526 enableval=$enable_inprocess_agent; case "$enableval" in
6527 yes) want_ipa=true ;;
6528 no) want_ipa=false ;;
6529 *) as_fn_error "bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
6538 IPA_DEPFILES="$ipa_obj"
6539 extra_libraries="$extra_libraries libinproctrace.so"
6541 as_fn_error "inprocess agent not supported for this target" "$LINENO" 5
6552 GNULIB=build-gnulib-gdbserver/import
6555 if test x"$STDINT_H" != x; then
6556 GNULIB_STDINT_H=$GNULIB/$STDINT_H
6560 ac_config_files="$ac_config_files Makefile"
6562 ac_config_commands="$ac_config_commands default"
6564 cat >confcache <<\_ACEOF
6565 # This file is a shell script that caches the results of configure
6566 # tests run on this system so they can be shared between configure
6567 # scripts and configure runs, see configure's option --config-cache.
6568 # It is not useful on other systems. If it contains results you don't
6569 # want to keep, you may remove or edit it.
6571 # config.status only pays attention to the cache file if you give it
6572 # the --recheck option to rerun configure.
6574 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6575 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6580 # The following way of writing the cache mishandles newlines in values,
6581 # but we know of no workaround that is simple, portable, and efficient.
6582 # So, we kill variables containing newlines.
6583 # Ultrix sh set writes to stderr and can't be redirected directly,
6584 # and sets the high bit in the cache file unless we assign to the vars.
6586 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6587 eval ac_val=\$$ac_var
6591 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6592 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6595 _ | IFS | as_nl) ;; #(
6596 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6597 *) { eval $ac_var=; unset $ac_var;} ;;
6603 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6604 *${as_nl}ac_space=\ *)
6605 # `set' does not quote correctly, so add quotes: double-quote
6606 # substitution turns \\\\ into \\, and sed turns \\ into \.
6609 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6612 # `set' quotes correctly as required by POSIX, so do not add quotes.
6613 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6622 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6624 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6626 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6627 if test -w "$cache_file"; then
6628 test "x$cache_file" != "x/dev/null" &&
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6630 $as_echo "$as_me: updating cache $cache_file" >&6;}
6631 cat confcache >$cache_file
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6634 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6639 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6640 # Let make expand exec_prefix.
6641 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6643 DEFS=-DHAVE_CONFIG_H
6647 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6648 # 1. Remove the extension, and $U if already installed.
6649 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6650 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6651 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6652 # will be set to the directory where LIBOBJS objects are built.
6653 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6654 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6658 LTLIBOBJS=$ac_ltlibobjs
6661 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6662 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
6663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6665 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
6666 as_fn_error "conditional \"GMAKE\" was never defined.
6667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6670 : ${CONFIG_STATUS=./config.status}
6672 ac_clean_files_save=$ac_clean_files
6673 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6675 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6677 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6679 # Generated by $as_me.
6680 # Run this file to recreate the current configuration.
6681 # Compiler output produced by configure, useful for debugging
6682 # configure, is in config.log if it exists.
6688 SHELL=\${CONFIG_SHELL-$SHELL}
6691 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6692 ## -------------------- ##
6693 ## M4sh Initialization. ##
6694 ## -------------------- ##
6696 # Be more Bourne compatible
6697 DUALCASE=1; export DUALCASE # for MKS sh
6698 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6701 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6702 # is contrary to our usage. Disable this feature.
6703 alias -g '${1+"$@"}'='"$@"'
6704 setopt NO_GLOB_SUBST
6706 case `(set -o) 2>/dev/null` in #(
6718 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6719 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6720 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6721 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6722 # Prefer a ksh shell builtin over an external printf program on Solaris,
6723 # but without wasting forks for bash or zsh.
6724 if test -z "$BASH_VERSION$ZSH_VERSION" \
6725 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6726 as_echo='print -r --'
6727 as_echo_n='print -rn --'
6728 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6729 as_echo='printf %s\n'
6730 as_echo_n='printf %s'
6732 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6733 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6734 as_echo_n='/usr/ucb/echo -n'
6736 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6737 as_echo_n_body='eval
6741 expr "X$arg" : "X\\(.*\\)$as_nl";
6742 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6744 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6746 export as_echo_n_body
6747 as_echo_n='sh -c $as_echo_n_body as_echo'
6750 as_echo='sh -c $as_echo_body as_echo'
6753 # The user is always right.
6754 if test "${PATH_SEPARATOR+set}" != set; then
6756 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6757 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6764 # We need space, tab and new line, in precisely that order. Quoting is
6765 # there to prevent editors from complaining about space-tab.
6766 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6767 # splitting by setting IFS to empty value.)
6770 # Find who we are. Look in the path if we contain no directory separator.
6772 *[\\/]* ) as_myself=$0 ;;
6773 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 test -z "$as_dir" && as_dir=.
6778 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6784 # We did not find ourselves, most probably we were run as `sh COMMAND'
6785 # in which case we are not to be found in the path.
6786 if test "x$as_myself" = x; then
6789 if test ! -f "$as_myself"; then
6790 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6794 # Unset variables that we do not need and which cause bugs (e.g. in
6795 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6796 # suppresses any "Segmentation fault" message there. '((' could
6797 # trigger a bug in pdksh 5.2.14.
6798 for as_var in BASH_ENV ENV MAIL MAILPATH
6799 do eval test x\${$as_var+set} = xset \
6800 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6813 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6816 # as_fn_error ERROR [LINENO LOG_FD]
6817 # ---------------------------------
6818 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6819 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6820 # script with status $?, using 1 if that was 0.
6823 as_status=$?; test $as_status -eq 0 && as_status=1
6825 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6826 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6828 $as_echo "$as_me: error: $1" >&2
6829 as_fn_exit $as_status
6833 # as_fn_set_status STATUS
6834 # -----------------------
6835 # Set $? to STATUS, without forking.
6839 } # as_fn_set_status
6843 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6853 # Portably unset VAR.
6856 { eval $1=; unset $1;}
6858 as_unset=as_fn_unset
6859 # as_fn_append VAR VALUE
6860 # ----------------------
6861 # Append the text in VALUE to the end of the definition contained in VAR. Take
6862 # advantage of any shell optimizations that allow amortized linear growth over
6863 # repeated appends, instead of the typical quadratic growth present in naive
6865 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6866 eval 'as_fn_append ()
6877 # as_fn_arith ARG...
6878 # ------------------
6879 # Perform arithmetic evaluation on the ARGs, and store the result in the
6880 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6881 # must be portable across $(()) and expr.
6882 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6883 eval 'as_fn_arith ()
6890 as_val=`expr "$@" || test $? -eq 1`
6895 if expr a : '\(a\)' >/dev/null 2>&1 &&
6896 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6902 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6903 as_basename=basename
6908 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6914 as_me=`$as_basename -- "$0" ||
6915 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6916 X"$0" : 'X\(//\)$' \| \
6917 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6919 sed '/^.*\/\([^/][^/]*\)\/*$/{
6933 # Avoid depending upon Character Ranges.
6934 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6935 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6936 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6937 as_cr_digits='0123456789'
6938 as_cr_alnum=$as_cr_Letters$as_cr_digits
6940 ECHO_C= ECHO_N= ECHO_T=
6941 case `echo -n x` in #(((((
6943 case `echo 'xy\c'` in
6944 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6946 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6953 rm -f conf$$ conf$$.exe conf$$.file
6954 if test -d conf$$.dir; then
6955 rm -f conf$$.dir/conf$$.file
6958 mkdir conf$$.dir 2>/dev/null
6960 if (echo >conf$$.file) 2>/dev/null; then
6961 if ln -s conf$$.file conf$$ 2>/dev/null; then
6963 # ... but there are two gotchas:
6964 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6965 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6966 # In both cases, we have to default to `cp -p'.
6967 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6969 elif ln conf$$.file conf$$ 2>/dev/null; then
6977 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6978 rmdir conf$$.dir 2>/dev/null
6983 # Create "$as_dir" as a directory, including parents if necessary.
6988 -*) as_dir=./$as_dir;;
6990 test -d "$as_dir" || eval $as_mkdir_p || {
6994 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6995 *) as_qdir=$as_dir;;
6997 as_dirs="'$as_qdir' $as_dirs"
6998 as_dir=`$as_dirname -- "$as_dir" ||
6999 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7000 X"$as_dir" : 'X\(//\)[^/]' \| \
7001 X"$as_dir" : 'X\(//\)$' \| \
7002 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7003 $as_echo X"$as_dir" |
7004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7021 test -d "$as_dir" && break
7023 test -z "$as_dirs" || eval "mkdir $as_dirs"
7024 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7028 if mkdir -p . 2>/dev/null; then
7029 as_mkdir_p='mkdir -p "$as_dir"'
7031 test -d ./-p && rmdir ./-p
7035 if test -x / >/dev/null 2>&1; then
7038 if ls -dL / >/dev/null 2>&1; then
7045 if test -d "$1"; then
7051 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7052 ???[sx]*):;;*)false;;esac;fi
7056 as_executable_p=$as_test_x
7058 # Sed expression to map a string onto a valid CPP name.
7059 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7061 # Sed expression to map a string onto a valid variable name.
7062 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7066 ## ----------------------------------- ##
7067 ## Main body of $CONFIG_STATUS script. ##
7068 ## ----------------------------------- ##
7070 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7073 # Save the log message, to keep $0 and so on meaningful, and to
7074 # report actual input values of CONFIG_FILES etc. instead of their
7075 # values after options handling.
7077 This file was extended by $as_me, which was
7078 generated by GNU Autoconf 2.64. Invocation command line was
7080 CONFIG_FILES = $CONFIG_FILES
7081 CONFIG_HEADERS = $CONFIG_HEADERS
7082 CONFIG_LINKS = $CONFIG_LINKS
7083 CONFIG_COMMANDS = $CONFIG_COMMANDS
7086 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7091 case $ac_config_files in *"
7092 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7095 case $ac_config_headers in *"
7096 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7101 # Files that config.status was made for.
7102 config_files="$ac_config_files"
7103 config_headers="$ac_config_headers"
7104 config_commands="$ac_config_commands"
7108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7110 \`$as_me' instantiates files and other configuration actions
7111 from templates according to the current configuration. Unless the files
7112 and actions are specified as TAGs, all are instantiated by default.
7114 Usage: $0 [OPTION]... [TAG]...
7116 -h, --help print this help, then exit
7117 -V, --version print version number and configuration settings, then exit
7118 -q, --quiet, --silent
7119 do not print progress messages
7120 -d, --debug don't remove temporary files
7121 --recheck update $as_me by reconfiguring in the same conditions
7122 --file=FILE[:TEMPLATE]
7123 instantiate the configuration file FILE
7124 --header=FILE[:TEMPLATE]
7125 instantiate the configuration header FILE
7127 Configuration files:
7130 Configuration headers:
7133 Configuration commands:
7136 Report bugs to the package provider."
7139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7142 configured by $0, generated by GNU Autoconf 2.64,
7143 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7145 Copyright (C) 2009 Free Software Foundation, Inc.
7146 This config.status script is free software; the Free Software Foundation
7147 gives unlimited permission to copy, distribute and modify it."
7152 test -n "\$AWK" || AWK=awk
7155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7156 # The default lists apply if the user does not specify any file.
7162 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7163 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7174 # Handling of the options.
7175 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7177 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7178 $as_echo "$ac_cs_version"; exit ;;
7179 --debug | --debu | --deb | --de | --d | -d )
7181 --file | --fil | --fi | --f )
7184 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7186 as_fn_append CONFIG_FILES " '$ac_optarg'"
7187 ac_need_defaults=false;;
7188 --header | --heade | --head | --hea )
7191 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7193 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7194 ac_need_defaults=false;;
7196 # Conflict between --help and --header
7197 as_fn_error "ambiguous option: \`$1'
7198 Try \`$0 --help' for more information.";;
7199 --help | --hel | -h )
7200 $as_echo "$ac_cs_usage"; exit ;;
7201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7202 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7206 -*) as_fn_error "unrecognized option: \`$1'
7207 Try \`$0 --help' for more information." ;;
7209 *) as_fn_append ac_config_targets " $1"
7210 ac_need_defaults=false ;;
7216 ac_configure_extra_args=
7218 if $ac_cs_silent; then
7220 ac_configure_extra_args="$ac_configure_extra_args --silent"
7224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7225 if \$ac_cs_recheck; then
7226 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7228 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7229 CONFIG_SHELL='$SHELL'
7235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7239 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7240 ## Running $as_me. ##
7246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7250 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
7254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7256 # Handling of arguments.
7257 for ac_config_target in $ac_config_targets
7259 case $ac_config_target in
7260 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7261 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
7262 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7263 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7265 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7270 # If the user did not use the arguments to specify the items to instantiate,
7271 # then the envvar interface is used. Set only those that are not.
7272 # We use the long form for the default assignment because of an extremely
7273 # bizarre bug on SunOS 4.1.3.
7274 if $ac_need_defaults; then
7275 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7276 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7277 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7280 # Have a temporary directory for convenience. Make it in the build tree
7281 # simply because there is no reason against having it here, and in addition,
7282 # creating and moving files from /tmp can sometimes cause problems.
7283 # Hook for its removal unless debugging.
7284 # Note that there is a small window in which the directory will not be cleaned:
7285 # after its creation but before its name has been assigned to `$tmp'.
7289 trap 'exit_status=$?
7290 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7292 trap 'as_fn_exit 1' 1 2 13 15
7294 # Create a (secure) tmp directory for tmp files.
7297 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7298 test -n "$tmp" && test -d "$tmp"
7301 tmp=./conf$$-$RANDOM
7302 (umask 077 && mkdir "$tmp")
7303 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7305 # Set up the scripts for CONFIG_FILES section.
7306 # No need to generate them if there are no CONFIG_FILES.
7307 # This happens for instance with `./config.status config.h'.
7308 if test -n "$CONFIG_FILES"; then
7311 ac_cr=`echo X | tr X '\015'`
7312 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7313 # But we know of no other shell where ac_cr would be empty at this
7314 # point, so we can use a bashism as a fallback.
7315 if test "x$ac_cr" = x; then
7316 eval ac_cr=\$\'\\r\'
7318 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7319 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7325 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7330 echo "cat >conf$$subs.awk <<_ACEOF" &&
7331 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7334 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7335 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7337 for ac_last_try in false false false false false :; do
7338 . ./conf$$subs.sh ||
7339 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7341 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7342 if test $ac_delim_n = $ac_delim_num; then
7344 elif $ac_last_try; then
7345 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7347 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7353 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7357 s/^/S["/; s/!.*/"]=/
7367 s/\(.\{148\}\).*/\1/
7369 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7374 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7381 s/\(.\{148\}\).*/\1/
7383 s/["\\]/\\&/g; s/^/"/; s/$/"/
7387 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7392 ' <conf$$subs.awk | sed '
7397 ' >>$CONFIG_STATUS || ac_write_fail=1
7398 rm -f conf$$subs.awk
7399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7401 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7402 for (key in S) S_is_set[key] = 1
7408 nfields = split(line, field, "@")
7410 len = length(field[1])
7411 for (i = 2; i < nfields; i++) {
7413 keylen = length(key)
7414 if (S_is_set[key]) {
7416 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7417 len += length(value) + length(field[++i])
7428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7429 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7430 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7433 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7434 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7437 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7438 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7439 # trailing colons and then remove the whole line if VPATH becomes empty
7440 # (actually we leave an empty line to preserve line numbers).
7441 if test "x$srcdir" = x.; then
7442 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7446 s/^\([^=]*=[ ]*\):*/\1/
7452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7453 fi # test -n "$CONFIG_FILES"
7455 # Set up the scripts for CONFIG_HEADERS section.
7456 # No need to generate them if there are no CONFIG_HEADERS.
7457 # This happens for instance with `./config.status Makefile'.
7458 if test -n "$CONFIG_HEADERS"; then
7459 cat >"$tmp/defines.awk" <<\_ACAWK ||
7463 # Transform confdefs.h into an awk script `defines.awk', embedded as
7464 # here-document in config.status, that substitutes the proper values into
7465 # config.h.in to produce config.h.
7467 # Create a delimiter string that does not exist in confdefs.h, to ease
7468 # handling of long lines.
7470 for ac_last_try in false false :; do
7471 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7472 if test -z "$ac_t"; then
7474 elif $ac_last_try; then
7475 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7477 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7481 # For the awk script, D is an array of macro values keyed by name,
7482 # likewise P contains macro parameters if any. Preserve backslash
7483 # newline sequences.
7485 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7487 s/.\{148\}/&'"$ac_delim"'/g
7490 s/^[ ]*#[ ]*define[ ][ ]*/ /
7497 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7499 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7503 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7504 D["\1"]=" \3\\\\\\n"\\/p
7506 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7511 s/.\{148\}/&'"$ac_delim"'/g
7516 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7519 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7521 ' <confdefs.h | sed '
7522 s/'"$ac_delim"'/"\\\
7523 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7526 for (key in D) D_is_set[key] = 1
7529 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7531 split(line, arg, " ")
7532 if (arg[1] == "#") {
7536 defundef = substr(arg[1], 2)
7539 split(mac1, mac2, "(") #)
7541 prefix = substr(line, 1, index(line, defundef) - 1)
7542 if (D_is_set[macro]) {
7543 # Preserve the white space surrounding the "#".
7544 print prefix "define", macro P[macro] D[macro]
7547 # Replace #undef with comments. This is necessary, for example,
7548 # in the case of _POSIX_SOURCE, which is predefined and required
7549 # on some systems where configure will not decide to define it.
7550 if (defundef == "undef") {
7551 print "/*", prefix defundef, macro, "*/"
7559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7560 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7561 fi # test -n "$CONFIG_HEADERS"
7564 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7569 :[FHLC]) ac_mode=$ac_tag; continue;;
7571 case $ac_mode$ac_tag in
7573 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7574 :[FH]-) ac_tag=-:-;;
7575 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7592 -) ac_f="$tmp/stdin";;
7593 *) # Look for the file first in the build tree, then in the source tree
7594 # (if the path is not absolute). The absolute path cannot be DOS-style,
7595 # because $ac_f cannot contain `:'.
7599 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7601 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7603 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7604 as_fn_append ac_file_inputs " '$ac_f'"
7607 # Let's still pretend it is `configure' which instantiates (i.e., don't
7608 # use $as_me), people would be surprised to read:
7609 # /* config.h. Generated by config.status. */
7610 configure_input='Generated from '`
7611 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7613 if test x"$ac_file" != x-; then
7614 configure_input="$ac_file. $configure_input"
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7616 $as_echo "$as_me: creating $ac_file" >&6;}
7618 # Neutralize special characters interpreted by sed in replacement strings.
7619 case $configure_input in #(
7620 *\&* | *\|* | *\\* )
7621 ac_sed_conf_input=`$as_echo "$configure_input" |
7622 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7623 *) ac_sed_conf_input=$configure_input;;
7627 *:-:* | *:-) cat >"$tmp/stdin" \
7628 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7633 ac_dir=`$as_dirname -- "$ac_file" ||
7634 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7635 X"$ac_file" : 'X\(//\)[^/]' \| \
7636 X"$ac_file" : 'X\(//\)$' \| \
7637 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7638 $as_echo X"$ac_file" |
7639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7656 as_dir="$ac_dir"; as_fn_mkdir_p
7660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7663 # A ".." for each directory in $ac_dir_suffix.
7664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7665 case $ac_top_builddir_sub in
7666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7670 ac_abs_top_builddir=$ac_pwd
7671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7672 # for backward compatibility:
7673 ac_top_builddir=$ac_top_build_prefix
7676 .) # We are building in place.
7678 ac_top_srcdir=$ac_top_builddir_sub
7679 ac_abs_top_srcdir=$ac_pwd ;;
7680 [\\/]* | ?:[\\/]* ) # Absolute name.
7681 ac_srcdir=$srcdir$ac_dir_suffix;
7682 ac_top_srcdir=$srcdir
7683 ac_abs_top_srcdir=$srcdir ;;
7685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7686 ac_top_srcdir=$ac_top_build_prefix$srcdir
7687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7700 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7705 # If the template does not know about datarootdir, expand it.
7706 # FIXME: This hack should be removed a few years after 2.60.
7707 ac_datarootdir_hack=; ac_datarootdir_seen=
7718 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7719 *datarootdir*) ac_datarootdir_seen=yes;;
7720 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7722 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7725 ac_datarootdir_hack='
7726 s&@datadir@&$datadir&g
7727 s&@docdir@&$docdir&g
7728 s&@infodir@&$infodir&g
7729 s&@localedir@&$localedir&g
7730 s&@mandir@&$mandir&g
7731 s&\\\${datarootdir}&$datarootdir&g' ;;
7735 # Neutralize VPATH when `$srcdir' = `.'.
7736 # Shell code in configure.ac might set extrasub.
7737 # FIXME: do we really want to maintain this feature?
7738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7739 ac_sed_extra="$ac_vpsub
7742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7744 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7745 s|@configure_input@|$ac_sed_conf_input|;t t
7746 s&@top_builddir@&$ac_top_builddir_sub&;t t
7747 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7748 s&@srcdir@&$ac_srcdir&;t t
7749 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7750 s&@top_srcdir@&$ac_top_srcdir&;t t
7751 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7752 s&@builddir@&$ac_builddir&;t t
7753 s&@abs_builddir@&$ac_abs_builddir&;t t
7754 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7755 s&@INSTALL@&$ac_INSTALL&;t t
7756 $ac_datarootdir_hack
7758 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7759 || as_fn_error "could not create $ac_file" "$LINENO" 5
7761 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7762 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7763 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7765 which seems to be undefined. Please make sure it is defined." >&5
7766 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7767 which seems to be undefined. Please make sure it is defined." >&2;}
7771 -) cat "$tmp/out" && rm -f "$tmp/out";;
7772 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7774 || as_fn_error "could not create $ac_file" "$LINENO" 5
7780 if test x"$ac_file" != x-; then
7782 $as_echo "/* $configure_input */" \
7783 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7784 } >"$tmp/config.h" \
7785 || as_fn_error "could not create $ac_file" "$LINENO" 5
7786 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7788 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7791 mv "$tmp/config.h" "$ac_file" \
7792 || as_fn_error "could not create $ac_file" "$LINENO" 5
7795 $as_echo "/* $configure_input */" \
7796 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7797 || as_fn_error "could not create -" "$LINENO" 5
7801 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7802 $as_echo "$as_me: executing $ac_file commands" >&6;}
7807 case $ac_file$ac_mode in
7808 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
7809 "default":C) case x$CONFIG_HEADERS in
7810 xconfig.h:config.in)
7821 ac_clean_files=$ac_clean_files_save
7823 test $ac_write_fail = 0 ||
7824 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7827 # configure is writing to config.log, and then calls config.status.
7828 # config.status does its own redirection, appending to config.log.
7829 # Unfortunately, on DOS this fails, as config.log is still kept open
7830 # by configure, so config.status won't be able to write to it; its
7831 # output is simply discarded. So we exec the FD to /dev/null,
7832 # effectively closing config.log, so it can be properly (re)opened and
7833 # appended to by config.status. When coming back to configure, we
7834 # need to make the FD available again.
7835 if test "$no_create" != yes; then
7837 ac_config_status_args=
7838 test "$silent" = yes &&
7839 ac_config_status_args="$ac_config_status_args --quiet"
7841 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7843 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7844 # would make configure fail if this is the last instruction.
7845 $ac_cs_success || as_fn_exit $?
7847 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7849 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}