2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 ac_unique_file
="server.c"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars
='LTLIBOBJS
650 MAINTAINER_MODE_FALSE
679 program_transform_name
692 enable_option_checking
693 enable_maintainer_mode
695 enable_build_with_cxx
704 enable_inprocess_agent
706 ac_precious_vars
='build_alias
720 # Initialize some variables set by options.
722 ac_init_version
=false
723 ac_unrecognized_opts
=
725 # The variables have the same names as the options, with
726 # dashes changed to underlines.
734 program_transform_name
=s
,x
,x
,
742 # Installation directory options.
743 # These are left unexpanded so users can "make install exec_prefix=/foo"
744 # and all the variables that are supposed to be based on exec_prefix
745 # by default will actually change.
746 # Use braces instead of parens because sh, perl, etc. also accept them.
747 # (The list follows the same order as the GNU Coding Standards.)
748 bindir
='${exec_prefix}/bin'
749 sbindir
='${exec_prefix}/sbin'
750 libexecdir
='${exec_prefix}/libexec'
751 datarootdir
='${prefix}/share'
752 datadir
='${datarootdir}'
753 sysconfdir
='${prefix}/etc'
754 sharedstatedir
='${prefix}/com'
755 localstatedir
='${prefix}/var'
756 includedir
='${prefix}/include'
757 oldincludedir
='/usr/include'
758 docdir
='${datarootdir}/doc/${PACKAGE}'
759 infodir
='${datarootdir}/info'
764 libdir
='${exec_prefix}/lib'
765 localedir
='${datarootdir}/locale'
766 mandir
='${datarootdir}/man'
772 # If the previous option needs an argument, assign it.
773 if test -n "$ac_prev"; then
774 eval $ac_prev=\
$ac_option
780 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
784 # Accept the important Cygnus configure options, so we can diagnose typos.
786 case $ac_dashdash$ac_option in
790 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
792 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
795 -build |
--build |
--buil |
--bui |
--bu)
796 ac_prev
=build_alias
;;
797 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
798 build_alias
=$ac_optarg ;;
800 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
801 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
802 ac_prev
=cache_file
;;
803 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
804 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
805 cache_file
=$ac_optarg ;;
808 cache_file
=config.cache
;;
810 -datadir |
--datadir |
--datadi |
--datad)
812 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
813 datadir
=$ac_optarg ;;
815 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
816 |
--dataroo |
--dataro |
--datar)
817 ac_prev
=datarootdir
;;
818 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
819 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
820 datarootdir
=$ac_optarg ;;
822 -disable-* |
--disable-*)
823 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
824 # Reject names that are not valid shell variable names.
825 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
826 as_fn_error
"invalid feature name: $ac_useropt"
827 ac_useropt_orig
=$ac_useropt
828 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
829 case $ac_user_opts in
833 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
834 ac_unrecognized_sep
=', ';;
836 eval enable_
$ac_useropt=no
;;
838 -docdir |
--docdir |
--docdi |
--doc |
--do)
840 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
843 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
845 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
848 -enable-* |
--enable-*)
849 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
852 as_fn_error
"invalid feature name: $ac_useropt"
853 ac_useropt_orig
=$ac_useropt
854 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
859 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
860 ac_unrecognized_sep
=', ';;
862 eval enable_
$ac_useropt=\
$ac_optarg ;;
864 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
865 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
866 |
--exec |
--exe |
--ex)
867 ac_prev
=exec_prefix
;;
868 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
869 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
870 |
--exec=* |
--exe=* |
--ex=*)
871 exec_prefix
=$ac_optarg ;;
873 -gas |
--gas |
--ga |
--g)
874 # Obsolete; use --with-gas.
877 -help |
--help |
--hel |
--he |
-h)
879 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
880 ac_init_help
=recursive
;;
881 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
882 ac_init_help
=short
;;
884 -host |
--host |
--hos |
--ho)
885 ac_prev
=host_alias
;;
886 -host=* |
--host=* |
--hos=* |
--ho=*)
887 host_alias
=$ac_optarg ;;
889 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
891 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
893 htmldir
=$ac_optarg ;;
895 -includedir |
--includedir |
--includedi |
--included |
--include \
896 |
--includ |
--inclu |
--incl |
--inc)
897 ac_prev
=includedir
;;
898 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
899 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
900 includedir
=$ac_optarg ;;
902 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
904 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
905 infodir
=$ac_optarg ;;
907 -libdir |
--libdir |
--libdi |
--libd)
909 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
912 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
913 |
--libexe |
--libex |
--libe)
914 ac_prev
=libexecdir
;;
915 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
916 |
--libexe=* |
--libex=* |
--libe=*)
917 libexecdir
=$ac_optarg ;;
919 -localedir |
--localedir |
--localedi |
--localed |
--locale)
921 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
922 localedir
=$ac_optarg ;;
924 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
925 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
926 ac_prev
=localstatedir
;;
927 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
928 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
929 localstatedir
=$ac_optarg ;;
931 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
933 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
937 # Obsolete; use --without-fp.
940 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
941 |
--no-cr |
--no-c |
-n)
944 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
945 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
948 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
949 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
950 |
--oldin |
--oldi |
--old |
--ol |
--o)
951 ac_prev
=oldincludedir
;;
952 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
953 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
954 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
955 oldincludedir
=$ac_optarg ;;
957 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
959 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
962 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
963 |
--program-pre |
--program-pr |
--program-p)
964 ac_prev
=program_prefix
;;
965 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
966 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
967 program_prefix
=$ac_optarg ;;
969 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
970 |
--program-suf |
--program-su |
--program-s)
971 ac_prev
=program_suffix
;;
972 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
973 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
974 program_suffix
=$ac_optarg ;;
976 -program-transform-name |
--program-transform-name \
977 |
--program-transform-nam |
--program-transform-na \
978 |
--program-transform-n |
--program-transform- \
979 |
--program-transform |
--program-transfor \
980 |
--program-transfo |
--program-transf \
981 |
--program-trans |
--program-tran \
982 |
--progr-tra |
--program-tr |
--program-t)
983 ac_prev
=program_transform_name
;;
984 -program-transform-name=* |
--program-transform-name=* \
985 |
--program-transform-nam=* |
--program-transform-na=* \
986 |
--program-transform-n=* |
--program-transform-=* \
987 |
--program-transform=* |
--program-transfor=* \
988 |
--program-transfo=* |
--program-transf=* \
989 |
--program-trans=* |
--program-tran=* \
990 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
991 program_transform_name
=$ac_optarg ;;
993 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
995 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
998 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1000 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1003 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1004 |
-silent |
--silent |
--silen |
--sile |
--sil)
1007 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1009 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1011 sbindir
=$ac_optarg ;;
1013 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1014 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1015 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1017 ac_prev
=sharedstatedir
;;
1018 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1019 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1020 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1022 sharedstatedir
=$ac_optarg ;;
1024 -site |
--site |
--sit)
1026 -site=* |
--site=* |
--sit=*)
1029 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1031 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1032 srcdir
=$ac_optarg ;;
1034 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1035 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1036 ac_prev
=sysconfdir
;;
1037 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1038 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1039 sysconfdir
=$ac_optarg ;;
1041 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1042 ac_prev
=target_alias
;;
1043 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1044 target_alias
=$ac_optarg ;;
1046 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1049 -version |
--version |
--versio |
--versi |
--vers |
-V)
1050 ac_init_version
=: ;;
1053 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1056 as_fn_error
"invalid package name: $ac_useropt"
1057 ac_useropt_orig
=$ac_useropt
1058 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1063 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1064 ac_unrecognized_sep
=', ';;
1066 eval with_
$ac_useropt=\
$ac_optarg ;;
1068 -without-* |
--without-*)
1069 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1072 as_fn_error
"invalid package name: $ac_useropt"
1073 ac_useropt_orig
=$ac_useropt
1074 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1079 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1080 ac_unrecognized_sep
=', ';;
1082 eval with_
$ac_useropt=no
;;
1085 # Obsolete; use --with-x.
1088 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1089 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1090 ac_prev
=x_includes
;;
1091 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1092 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1093 x_includes
=$ac_optarg ;;
1095 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1096 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1097 ac_prev
=x_libraries
;;
1098 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1099 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1100 x_libraries
=$ac_optarg ;;
1102 -*) as_fn_error
"unrecognized option: \`$ac_option'
1103 Try \`$0 --help' for more information."
1107 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
1109 case $ac_envvar in #(
1110 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1111 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1113 eval $ac_envvar=\
$ac_optarg
1114 export $ac_envvar ;;
1117 # FIXME: should be removed in autoconf 3.0.
1118 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1120 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1127 if test -n "$ac_prev"; then
1128 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1129 as_fn_error
"missing argument to $ac_option"
1132 if test -n "$ac_unrecognized_opts"; then
1133 case $enable_option_checking in
1135 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1136 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1140 # Check all directory arguments for consistency.
1141 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1142 datadir sysconfdir sharedstatedir localstatedir includedir \
1143 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1144 libdir localedir mandir
1146 eval ac_val
=\$
$ac_var
1147 # Remove trailing slashes.
1150 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1151 eval $ac_var=\
$ac_val;;
1153 # Be sure to have absolute directory names.
1155 [\\/$
]* | ?
:[\\/]* ) continue;;
1156 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1158 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1161 # There might be people who depend on the old broken behavior: `$host'
1162 # used to hold the argument of --host etc.
1163 # FIXME: To remove some day.
1166 target
=$target_alias
1168 # FIXME: To remove some day.
1169 if test "x$host_alias" != x
; then
1170 if test "x$build_alias" = x
; then
1171 cross_compiling
=maybe
1172 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1173 If a cross compiler is detected then cross compile mode will be used." >&2
1174 elif test "x$build_alias" != "x$host_alias"; then
1180 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1182 test "$silent" = yes && exec 6>/dev
/null
1185 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1186 ac_ls_di
=`ls -di .` &&
1187 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1188 as_fn_error
"working directory cannot be determined"
1189 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1190 as_fn_error
"pwd does not report name of working directory"
1193 # Find the source files, if location was not specified.
1194 if test -z "$srcdir"; then
1195 ac_srcdir_defaulted
=yes
1196 # Try the directory containing this script, then the parent directory.
1197 ac_confdir
=`$as_dirname -- "$as_myself" ||
1198 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1199 X"$as_myself" : 'X\(//\)[^/]' \| \
1200 X"$as_myself" : 'X\(//\)$' \| \
1201 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1202 $as_echo X"$as_myself" |
1203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1225 ac_srcdir_defaulted
=no
1227 if test ! -r "$srcdir/$ac_unique_file"; then
1228 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1229 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1231 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1233 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1243 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1245 for ac_var
in $ac_precious_vars; do
1246 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1248 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1253 # Report the --help message.
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1259 \`configure' configures this package to adapt to many kinds of systems.
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1266 Defaults for the options are specified in brackets.
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1290 For better control, use the options below.
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1317 --program-prefix=PREFIX prepend PREFIX to installed program names
1318 --program-suffix=SUFFIX append SUFFIX to installed program names
1319 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1322 --build=BUILD configure
for building on BUILD
[guessed
]
1323 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1324 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1328 if test -n "$ac_init_help"; then
1333 --disable-option-checking ignore unrecognized
--enable/--with options
1334 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1335 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1336 --enable-maintainer-mode enable make rules and dependencies not useful
1337 (and sometimes confusing
) to the casual installer
1338 --disable-largefile omit support
for large files
1339 --enable-build-with-cxx build with C
++ compiler instead of C compiler
1340 --enable-libmcheck Try linking with
-lmcheck if available
1341 --enable-werror treat compile warnings as errors
1342 --enable-inprocess-agent
1346 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1347 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1348 --with-ust=PATH Specify prefix directory
for the installed UST package
1349 Equivalent to
--with-ust-include=PATH
/include
1350 plus
--with-ust-lib=PATH
/lib
1351 --with-ust-include=PATH Specify directory
for installed UST include files
1352 --with-ust-lib=PATH Specify the directory
for the installed UST library
1353 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1354 --with-bugurl=URL Direct users to URL to report a bug
1355 --with-libthread-db=PATH
1356 use given libthread_db directly
1358 Some influential environment variables
:
1359 CC C compiler
command
1360 CFLAGS C compiler flags
1361 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1362 nonstandard directory
<lib dir
>
1363 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1364 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1365 you have headers
in a nonstandard directory
<include dir
>
1366 CXX C
++ compiler
command
1367 CXXFLAGS C
++ compiler flags
1370 Use these variables to override the choices made by
`configure' or to help
1371 it to find libraries and programs with nonstandard names/locations.
1373 Report bugs to the package provider.
1378 if test "$ac_init_help" = "recursive"; then
1379 # If there are subdirs, report their specific --help.
1380 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1381 test -d "$ac_dir" ||
1382 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1390 # A ".." for each directory in $ac_dir_suffix.
1391 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1392 case $ac_top_builddir_sub in
1393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1397 ac_abs_top_builddir=$ac_pwd
1398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1399 # for backward compatibility:
1400 ac_top_builddir=$ac_top_build_prefix
1403 .) # We are building in place.
1405 ac_top_srcdir=$ac_top_builddir_sub
1406 ac_abs_top_srcdir=$ac_pwd ;;
1407 [\\/]* | ?:[\\/]* ) # Absolute name.
1408 ac_srcdir=$srcdir$ac_dir_suffix;
1409 ac_top_srcdir=$srcdir
1410 ac_abs_top_srcdir=$srcdir ;;
1412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1413 ac_top_srcdir=$ac_top_build_prefix$srcdir
1414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1418 cd "$ac_dir" || { ac_status=$?; continue; }
1419 # Check for guested configure.
1420 if test -f "$ac_srcdir/configure.gnu"; then
1422 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1423 elif test -f "$ac_srcdir/configure"; then
1425 $SHELL "$ac_srcdir/configure" --help=recursive
1427 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1429 cd "$ac_pwd" || { ac_status=$?; break; }
1433 test -n "$ac_init_help" && exit $ac_status
1434 if $ac_init_version; then
1437 generated by GNU Autoconf 2.64
1439 Copyright (C) 2009 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1446 ## ------------------------ ##
1447 ## Autoconf initialization. ##
1448 ## ------------------------ ##
1450 # ac_fn_c_try_compile LINENO
1451 # --------------------------
1452 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1453 ac_fn_c_try_compile ()
1455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1456 rm -f conftest.$ac_objext
1457 if { { ac_try="$ac_compile"
1459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1460 *) ac_try_echo
=$ac_try;;
1462 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1463 $as_echo "$ac_try_echo"; } >&5
1464 (eval "$ac_compile") 2>conftest.err
1466 if test -s conftest.err
; then
1467 grep -v '^ *+' conftest.err
>conftest.er1
1468 cat conftest.er1
>&5
1469 mv -f conftest.er1 conftest.err
1471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1472 test $ac_status = 0; } && {
1473 test -z "$ac_c_werror_flag" ||
1474 test ! -s conftest.err
1475 } && test -s conftest.
$ac_objext; then :
1478 $as_echo "$as_me: failed program was:" >&5
1479 sed 's/^/| /' conftest.
$ac_ext >&5
1483 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1486 } # ac_fn_c_try_compile
1488 # ac_fn_cxx_try_compile LINENO
1489 # ----------------------------
1490 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1491 ac_fn_cxx_try_compile
()
1493 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1494 rm -f conftest.
$ac_objext
1495 if { { ac_try
="$ac_compile"
1497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1498 *) ac_try_echo=$ac_try;;
1500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1501 $as_echo "$ac_try_echo"; } >&5
1502 (eval "$ac_compile") 2>conftest.err
1504 if test -s conftest.err; then
1505 grep -v '^ *+' conftest.err >conftest.er1
1506 cat conftest.er1 >&5
1507 mv -f conftest.er1 conftest.err
1509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510 test $ac_status = 0; } && {
1511 test -z "$ac_cxx_werror_flag" ||
1512 test ! -s conftest.err
1513 } && test -s conftest.$ac_objext; then :
1516 $as_echo "$as_me: failed program was:" >&5
1517 sed 's/^/| /' conftest.$ac_ext >&5
1521 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1524 } # ac_fn_cxx_try_compile
1526 # ac_fn_c_try_cpp LINENO
1527 # ----------------------
1528 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 if { { ac_try="$ac_cpp conftest.$ac_ext"
1534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1535 *) ac_try_echo
=$ac_try;;
1537 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1541 if test -s conftest.err
; then
1542 grep -v '^ *+' conftest.err
>conftest.er1
1543 cat conftest.er1
>&5
1544 mv -f conftest.er1 conftest.err
1546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547 test $ac_status = 0; } >/dev
/null
&& {
1548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1549 test ! -s conftest.err
1553 $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.
$ac_ext >&5
1558 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1563 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1564 # -------------------------------------------------------
1565 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1566 # the include files in INCLUDES and setting the cache variable VAR
1568 ac_fn_c_check_header_mongrel
()
1570 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1571 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1573 $as_echo_n "checking for $2... " >&6; }
1574 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1575 $as_echo_n "(cached) " >&6
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1579 $as_echo "$ac_res" >&6; }
1581 # Is the header compilable?
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1583 $as_echo_n "checking $2 usability... " >&6; }
1584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1585 /* end confdefs.h. */
1589 if ac_fn_c_try_compile
"$LINENO"; then :
1590 ac_header_compiler
=yes
1592 ac_header_compiler
=no
1594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1596 $as_echo "$ac_header_compiler" >&6; }
1598 # Is the header present?
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1600 $as_echo_n "checking $2 presence... " >&6; }
1601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1602 /* end confdefs.h. */
1605 if ac_fn_c_try_cpp
"$LINENO"; then :
1606 ac_header_preproc
=yes
1608 ac_header_preproc
=no
1610 rm -f conftest.err conftest.
$ac_ext
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1612 $as_echo "$ac_header_preproc" >&6; }
1614 # So? What about this header?
1615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1618 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1620 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1624 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1626 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1628 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1630 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1632 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1638 $as_echo_n "(cached) " >&6
1640 eval "$3=\$ac_header_compiler"
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644 $as_echo "$ac_res" >&6; }
1646 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1648 } # ac_fn_c_check_header_mongrel
1650 # ac_fn_c_try_run LINENO
1651 # ----------------------
1652 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1653 # that executables *can* be run.
1656 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1657 if { { ac_try
="$ac_link"
1659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_link") 2>&5
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1668 { { case "(($ac_try" in
1669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1670 *) ac_try_echo
=$ac_try;;
1672 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_try") 2>&5
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; }; }; then :
1680 $as_echo "$as_me: program exited with status $ac_status" >&5
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.
$ac_ext >&5
1684 ac_retval
=$ac_status
1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1692 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1693 # -------------------------------------------------------
1694 # Tests whether HEADER exists and can be compiled using the include files in
1695 # INCLUDES, setting the cache variable VAR accordingly.
1696 ac_fn_c_check_header_compile
()
1698 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 $as_echo_n "checking for $2... " >&6; }
1701 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1702 $as_echo_n "(cached) " >&6
1704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1709 if ac_fn_c_try_compile
"$LINENO"; then :
1714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718 $as_echo "$ac_res" >&6; }
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1721 } # ac_fn_c_check_header_compile
1723 # ac_fn_c_try_link LINENO
1724 # -----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded.
1728 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1729 rm -f conftest.
$ac_objext conftest
$ac_exeext
1730 if { { ac_try
="$ac_link"
1732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>conftest.err
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest$ac_exeext && {
1749 test "$cross_compiling" = yes ||
1750 $as_test_x conftest$ac_exeext
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1761 # interfere with the next link command; also delete a directory that is
1762 # left behind by Apple's compiler. We do this before executing the actions.
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767 } # ac_fn_c_try_link
1769 # ac_fn_c_check_func LINENO FUNC VAR
1770 # ----------------------------------
1771 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1772 ac_fn_c_check_func ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1778 $as_echo_n "(cached) " >&6
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1784 #define $2 innocuous_$2
1786 /* System header to define __stub macros and hopefully few prototypes,
1787 which can conflict with char $2 (); below.
1788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1789 <limits.h> exists even on freestanding compilers. */
1792 # include <limits.h>
1794 # include <assert.h>
1799 /* Override any GCC internal prototype to avoid an error.
1800 Use char because int might match the return type of a GCC
1801 builtin and then its argument prototype would still apply. */
1806 /* The GNU C library defines this for functions which it implements
1807 to always fail with ENOSYS. Some functions are actually named
1808 something starting with __ and the normal name is an alias. */
1809 #if defined __stub_$2 || defined __stub___$2
1821 if ac_fn_c_try_link "$LINENO"; then :
1826 rm -f core conftest.err conftest.$ac_objext \
1827 conftest$ac_exeext conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 } # ac_fn_c_check_func
1836 # ac_fn_c_check_decl LINENO SYMBOL VAR
1837 # ------------------------------------
1838 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1839 ac_fn_c_check_decl ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1843 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1845 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1846 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1847 $as_echo_n "(cached) " >&6
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1855 #ifndef $as_decl_name
1857 (void) $as_decl_use;
1859 (void) $as_decl_name;
1867 if ac_fn_c_try_compile "$LINENO"; then :
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879 } # ac_fn_c_check_decl
1881 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1882 # -------------------------------------------
1883 # Tests whether TYPE exists after having included INCLUDES, setting cache
1884 # variable VAR accordingly.
1885 ac_fn_c_check_type ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1906 if ac_fn_c_try_compile "$LINENO"; then :
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1919 if ac_fn_c_try_compile "$LINENO"; then :
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933 } # ac_fn_c_check_type
1935 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1936 # --------------------------------------------
1937 # Tries to find the compile-time value of EXPR in a program that includes
1938 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1940 ac_fn_c_compute_int ()
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if test "$cross_compiling" = yes; then
1944 # Depending upon the size, compute the lo and hi bounds.
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1951 static int test_array [1 - 2 * !(($2) >= 0)];
1958 if ac_fn_c_try_compile "$LINENO"; then :
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1967 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1974 if ac_fn_c_try_compile "$LINENO"; then :
1975 ac_hi=$ac_mid; break
1977 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1978 if test $ac_lo -le $ac_mid; then
1982 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1993 static int test_array [1 - 2 * !(($2) < 0)];
2000 if ac_fn_c_try_compile "$LINENO"; then :
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2009 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017 ac_lo=$ac_mid; break
2019 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2020 if test $ac_mid -le $ac_hi; then
2024 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 # Binary search between lo and hi bounds.
2035 while test "x$ac_lo" != "x$ac_hi"; do
2036 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2043 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2050 if ac_fn_c_try_compile "$LINENO"; then :
2053 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2065 static long int longval () { return $2; }
2066 static unsigned long int ulongval () { return $2; }
2073 FILE *f = fopen ("conftest.val", "w");
2078 long int i = longval ();
2081 fprintf (f, "%ld", i);
2085 unsigned long int i = ulongval ();
2088 fprintf (f, "%lu", i);
2090 /* Do not output a trailing newline, as this causes \r\n confusion
2091 on some platforms. */
2092 return ferror (f) || fclose (f) != 0;
2098 if ac_fn_c_try_run "$LINENO"; then :
2099 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2104 conftest.$ac_objext conftest.beam conftest.$ac_ext
2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111 } # ac_fn_c_compute_int
2112 cat >config.log <<_ACEOF
2113 This file contains any messages produced by compilers while
2114 running configure, to aid debugging if configure makes a mistake.
2116 It was created by $as_me, which was
2117 generated by GNU Autoconf 2.64. Invocation command line was
2129 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2130 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2131 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2132 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2133 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2135 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2136 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2138 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2139 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2140 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2141 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2142 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2143 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2144 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 test -z "$as_dir" && as_dir=.
2153 $as_echo "PATH: $as_dir"
2169 # Keep a trace of the command line.
2170 # Strip out --no-create and --no-recursion so they do not pile up.
2171 # Strip out --silent because we don't want to record it for future runs.
2172 # Also quote any args containing shell meta-characters.
2173 # Make two passes to allow for proper duplicate-argument suppression.
2177 ac_must_keep_next=false
2183 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2185 | -silent | --silent | --silen | --sile | --sil)
2188 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2191 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2193 as_fn_append ac_configure_args1 " '$ac_arg'"
2194 if test $ac_must_keep_next = true; then
2195 ac_must_keep_next=false # Got value, back to normal.
2198 *=* | --config-cache | -C | -disable-* | --disable-* \
2199 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2200 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2201 | -with-* | --with-* | -without-* | --without-* | --x)
2202 case "$ac_configure_args0 " in
2203 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2206 -* ) ac_must_keep_next=true ;;
2209 as_fn_append ac_configure_args " '$ac_arg'"
2214 { ac_configure_args0=; unset ac_configure_args0;}
2215 { ac_configure_args1=; unset ac_configure_args1;}
2217 # When interrupted or exit'd, cleanup temporary files, and complete
2218 # config.log. We remove comments because anyway the quotes in there
2219 # would cause problems or look ugly.
2220 # WARNING: Use '\'' to represent an apostrophe within the trap.
2221 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2222 trap 'exit_status=$?
2223 # Save into config.log some information that might help in debugging.
2228 ## ---------------- ##
2229 ## Cache variables. ##
2230 ## ---------------- ##
2233 # The following way of writing the cache mishandles newlines in values,
2235 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2236 eval ac_val=\$$ac_var
2240 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2241 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2244 _ | IFS | as_nl) ;; #(
2245 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2246 *) { eval $ac_var=; unset $ac_var;} ;;
2251 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2252 *${as_nl}ac_space=\ *)
2254 "s/'\''/'\''\\\\'\'''\''/g;
2255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2258 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2266 ## ----------------- ##
2267 ## Output variables. ##
2268 ## ----------------- ##
2271 for ac_var in $ac_subst_vars
2273 eval ac_val=\$$ac_var
2275 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2277 $as_echo "$ac_var='\''$ac_val'\''"
2281 if test -n "$ac_subst_files"; then
2283 ## ------------------- ##
2284 ## File substitutions. ##
2285 ## ------------------- ##
2288 for ac_var in $ac_subst_files
2290 eval ac_val=\$$ac_var
2292 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2294 $as_echo "$ac_var='\''$ac_val'\''"
2299 if test -s confdefs.h; then
2309 test "$ac_signal" != 0 &&
2310 $as_echo "$as_me: caught signal $ac_signal"
2311 $as_echo "$as_me: exit $exit_status"
2313 rm -f core *.core core.conftest.* &&
2314 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2317 for ac_signal in 1 2 13 15; do
2318 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2322 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2323 rm -f -r conftest* confdefs.h
2325 $as_echo "/* confdefs.h */" > confdefs.h
2327 # Predefined preprocessor variables.
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_NAME "$PACKAGE_NAME"
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_STRING "$PACKAGE_STRING"
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_URL "$PACKAGE_URL"
2354 # Let the site file select an alternate cache file if it wants to.
2355 # Prefer an explicitly selected file to automatically selected ones.
2358 if test -n "$CONFIG_SITE"; then
2359 ac_site_file1=$CONFIG_SITE
2360 elif test "x$prefix" != xNONE; then
2361 ac_site_file1=$prefix/share/config.site
2362 ac_site_file2=$prefix/etc/config.site
2364 ac_site_file1=$ac_default_prefix/share/config.site
2365 ac_site_file2=$ac_default_prefix/etc/config.site
2367 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2369 test "x$ac_site_file" = xNONE && continue
2370 if test -r "$ac_site_file"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2372 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2373 sed 's/^/| /' "$ac_site_file" >&5
2378 if test -r "$cache_file"; then
2379 # Some versions of bash will fail to source /dev/null (special
2380 # files actually), so we avoid doing that.
2381 if test -f "$cache_file"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2383 $as_echo "$as_me: loading cache $cache_file" >&6;}
2385 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2386 *) . "./$cache_file";;
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2391 $as_echo "$as_me: creating cache $cache_file" >&6;}
2395 # Check that the precious variables saved in the cache have kept the same
2397 ac_cache_corrupted=false
2398 for ac_var in $ac_precious_vars; do
2399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2400 eval ac_new_set=\$ac_env_${ac_var}_set
2401 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2402 eval ac_new_val=\$ac_env_${ac_var}_value
2403 case $ac_old_set,$ac_new_set in
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2406 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2407 ac_cache_corrupted=: ;;
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2410 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2411 ac_cache_corrupted=: ;;
2414 if test "x$ac_old_val" != "x$ac_new_val"; then
2415 # differences in whitespace do not lead to failure.
2416 ac_old_val_w=`echo x
$ac_old_val`
2417 ac_new_val_w=`echo x
$ac_new_val`
2418 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2420 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2421 ac_cache_corrupted=:
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2424 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2425 eval $ac_var=\$ac_old_val
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2428 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2430 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2433 # Pass precious variables to config.status.
2434 if test "$ac_new_set" = set; then
2436 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2437 *) ac_arg=$ac_var=$ac_new_val ;;
2439 case " $ac_configure_args " in
2440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2441 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2445 if $ac_cache_corrupted; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2449 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2450 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2452 ## -------------------- ##
2453 ## Main body of script. ##
2454 ## -------------------- ##
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2466 ac_config_headers="$ac_config_headers config.h:config.in"
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2471 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2472 # Check whether --enable-maintainer-mode was given.
2473 if test "${enable_maintainer_mode+set}" = set; then :
2474 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2476 USE_MAINTAINER_MODE=no
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2480 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2481 if test $USE_MAINTAINER_MODE = yes; then
2482 MAINTAINER_MODE_TRUE=
2483 MAINTAINER_MODE_FALSE='#'
2485 MAINTAINER_MODE_TRUE='#'
2486 MAINTAINER_MODE_FALSE=
2489 MAINT=$MAINTAINER_MODE_TRUE
2494 ac_cpp='$CPP $CPPFLAGS'
2495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2498 if test -n "$ac_tool_prefix"; then
2499 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2500 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2502 $as_echo_n "checking for $ac_word... " >&6; }
2503 if test "${ac_cv_prog_CC+set}" = set; then :
2504 $as_echo_n "(cached) " >&6
2506 if test -n "$CC"; then
2507 ac_cv_prog_CC="$CC" # Let the user override the test.
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 if test -n "$CC"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2529 $as_echo "$CC" >&6; }
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532 $as_echo "no" >&6; }
2537 if test -z "$ac_cv_prog_CC"; then
2539 # Extract the first word of "gcc", so it can be a program name with args.
2540 set dummy gcc; ac_word=$2
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2542 $as_echo_n "checking for $ac_word... " >&6; }
2543 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2544 $as_echo_n "(cached) " >&6
2546 if test -n "$ac_ct_CC"; then
2547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2556 ac_cv_prog_ac_ct_CC="gcc"
2557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2567 if test -n "$ac_ct_CC"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2569 $as_echo "$ac_ct_CC" >&6; }
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2572 $as_echo "no" >&6; }
2575 if test "x$ac_ct_CC" = x; then
2578 case $cross_compiling:$ac_tool_warned in
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2582 ac_tool_warned=yes ;;
2590 if test -z "$CC"; then
2591 if test -n "$ac_tool_prefix"; then
2592 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2593 set dummy ${ac_tool_prefix}cc; ac_word=$2
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if test "${ac_cv_prog_CC+set}" = set; then :
2597 $as_echo_n "(cached) " >&6
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609 ac_cv_prog_CC="${ac_tool_prefix}cc"
2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 if test -n "$CC"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2622 $as_echo "$CC" >&6; }
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2631 if test -z "$CC"; then
2632 # Extract the first word of "cc", so it can be a program name with args.
2633 set dummy cc; ac_word=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then :
2637 $as_echo_n "(cached) " >&6
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2651 ac_prog_rejected=yes
2655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 if test $ac_prog_rejected = yes; then
2663 # We found a bogon in the path, so make sure we never use it.
2664 set dummy $ac_cv_prog_CC
2666 if test $# != 0; then
2667 # We chose a different compiler from the bogus one.
2668 # However, it has the same basename, so the bogon will be chosen
2669 # first if we set CC to just the basename; use the full file name.
2671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2677 if test -n "$CC"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2679 $as_echo "$CC" >&6; }
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2687 if test -z "$CC"; then
2688 if test -n "$ac_tool_prefix"; then
2689 for ac_prog in cl.exe
2691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if test "${ac_cv_prog_CC+set}" = set; then :
2696 $as_echo_n "(cached) " >&6
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 if test -n "$CC"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2721 $as_echo "$CC" >&6; }
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2728 test -n "$CC" && break
2731 if test -z "$CC"; then
2733 for ac_prog in cl.exe
2735 # Extract the first word of "$ac_prog", so it can be a program name with args.
2736 set dummy $ac_prog; ac_word=$2
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2740 $as_echo_n "(cached) " >&6
2742 if test -n "$ac_ct_CC"; then
2743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 ac_cv_prog_ac_ct_CC="$ac_prog"
2753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2763 if test -n "$ac_ct_CC"; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2765 $as_echo "$ac_ct_CC" >&6; }
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768 $as_echo "no" >&6; }
2772 test -n "$ac_ct_CC" && break
2775 if test "x$ac_ct_CC" = x; then
2778 case $cross_compiling:$ac_tool_warned in
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2782 ac_tool_warned=yes ;;
2791 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2793 as_fn_error "no acceptable C compiler found
in \
$PATH
2794 See \
`config.log' for more details." "$LINENO" 5; }
2796 # Provide some information about the compiler.
2797 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2800 for ac_option in --version -v -V -qversion; do
2801 { { ac_try="$ac_compiler $ac_option >&5"
2803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2804 *) ac_try_echo
=$ac_try;;
2806 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2807 $as_echo "$ac_try_echo"; } >&5
2808 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2810 if test -s conftest.err
; then
2812 ... rest of stderr output deleted ...
2813 10q' conftest.err
>conftest.er1
2814 cat conftest.er1
>&5
2815 rm -f conftest.er1 conftest.err
2817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2818 test $ac_status = 0; }
2821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h. */
2832 ac_clean_files_save
=$ac_clean_files
2833 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2834 # Try to create an executable without -o first, disregard a.out.
2835 # It will help us diagnose broken compilers, and finding out an intuition
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2838 $as_echo_n "checking for C compiler default output file name... " >&6; }
2839 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2841 # The possible output files:
2842 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2845 for ac_file
in $ac_files
2848 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2849 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2854 if { { ac_try
="$ac_link_default"
2856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2857 *) ac_try_echo=$ac_try;;
2859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2860 $as_echo "$ac_try_echo"; } >&5
2861 (eval "$ac_link_default") 2>&5
2863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2864 test $ac_status = 0; }; then :
2865 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2866 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2867 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2868 # so that the user can short-circuit this test for compilers unknown to
2870 for ac_file in $ac_files ''
2872 test -f "$ac_file" || continue
2874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2877 # We found the default executable, but exeext='' is most
2881 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2883 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2885 # We set ac_cv_exeext here because the later test for it is not
2886 # safe: cross compilers may not add the suffix if given an `-o'
2887 # argument, so we may need to know it at that point already.
2888 # Even if this section looks crufty: it has the advantage of
2895 test "$ac_cv_exeext" = no && ac_cv_exeext=
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2901 $as_echo "$ac_file" >&6; }
2902 if test -z "$ac_file"; then :
2903 $as_echo "$as_me: failed program was:" >&5
2904 sed 's
/^
/|
/' conftest.$ac_ext >&5
2906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2907 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2908 { as_fn_set_status 77
2909 as_fn_error "C compiler cannot create executables
2910 See \`config.log
' for more details." "$LINENO" 5; }; }
2912 ac_exeext=$ac_cv_exeext
2914 # Check that the compiler produces executables we can run. If not, either
2915 # the compiler is broken, or we cross compile.
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2917 $as_echo_n "checking whether the C compiler works... " >&6; }
2918 # If not cross compiling, check that we can run a simple program.
2919 if test "$cross_compiling" != yes; then
2920 if { ac_try='.
/$ac_file'
2921 { { case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2926 $as_echo "$ac_try_echo"; } >&5
2927 (eval "$ac_try") 2>&5
2929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2930 test $ac_status = 0; }; }; then
2933 if test "$cross_compiling" = maybe; then
2936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2937 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2938 as_fn_error "cannot run C compiled programs.
2939 If you meant to cross compile, use \`--host'.
2940 See \`config.log' for more details.
" "$LINENO" 5; }
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
2945 $as_echo "yes" >&6; }
2947 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2948 ac_clean_files=$ac_clean_files_save
2949 # Check that the compiler produces executables we can run. If not, either
2950 # the compiler is broken, or we cross compile.
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
2952 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
2954 $as_echo "$cross_compiling" >&6; }
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
2957 $as_echo_n "checking
for suffix of executables...
" >&6; }
2958 if { { ac_try="$ac_link"
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2963 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2964 $as_echo "$ac_try_echo"; } >&5
2965 (eval "$ac_link") 2>&5
2967 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2968 test $ac_status = 0; }; then :
2969 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2970 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2971 # work properly (i.e., refer to `conftest.exe'), while it won't with
2973 for ac_file in conftest.exe conftest conftest.*; do
2974 test -f "$ac_file" || continue
2976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2977 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2985 as_fn_error "cannot compute suffix of executables: cannot compile and link
2986 See \`config.log' for more details.
" "$LINENO" 5; }
2988 rm -f conftest$ac_cv_exeext
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
2990 $as_echo "$ac_cv_exeext" >&6; }
2992 rm -f conftest.$ac_ext
2993 EXEEXT=$ac_cv_exeext
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
2996 $as_echo_n "checking
for suffix of object files...
" >&6; }
2997 if test "${ac_cv_objext+set}" = set; then :
2998 $as_echo_n "(cached
) " >&6
3000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001 /* end confdefs.h. */
3011 rm -f conftest.o conftest.obj
3012 if { { ac_try="$ac_compile"
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3018 $as_echo "$ac_try_echo"; } >&5
3019 (eval "$ac_compile") 2>&5
3021 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3022 test $ac_status = 0; }; then :
3023 for ac_file in conftest.o conftest.obj conftest.*; do
3024 test -f "$ac_file" || continue;
3026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3027 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3032 $as_echo "$as_me: failed program was
:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3037 as_fn_error "cannot compute suffix of object files: cannot compile
3038 See \`config.log' for more details.
" "$LINENO" 5; }
3040 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3043 $as_echo "$ac_cv_objext" >&6; }
3044 OBJEXT=$ac_cv_objext
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3047 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3048 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3049 $as_echo_n "(cached
) " >&6
3051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3052 /* end confdefs.h. */
3065 if ac_fn_c_try_compile "$LINENO"; then :
3070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3071 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3075 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3076 if test $ac_compiler_gnu = yes; then
3081 ac_test_CFLAGS=${CFLAGS+set}
3082 ac_save_CFLAGS=$CFLAGS
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3084 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3085 if test "${ac_cv_prog_cc_g+set}" = set; then :
3086 $as_echo_n "(cached
) " >&6
3088 ac_save_c_werror_flag=$ac_c_werror_flag
3089 ac_c_werror_flag=yes
3092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3093 /* end confdefs.h. */
3103 if ac_fn_c_try_compile "$LINENO"; then :
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3118 if ac_fn_c_try_compile "$LINENO"; then :
3121 ac_c_werror_flag=$ac_save_c_werror_flag
3123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124 /* end confdefs.h. */
3134 if ac_fn_c_try_compile "$LINENO"; then :
3137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 ac_c_werror_flag=$ac_save_c_werror_flag
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3145 $as_echo "$ac_cv_prog_cc_g" >&6; }
3146 if test "$ac_test_CFLAGS" = set; then
3147 CFLAGS=$ac_save_CFLAGS
3148 elif test $ac_cv_prog_cc_g = yes; then
3149 if test "$GCC" = yes; then
3155 if test "$GCC" = yes; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3162 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3163 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3164 $as_echo_n "(cached
) " >&6
3166 ac_cv_prog_cc_c89=no
3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h. */
3172 #include <sys/types.h>
3173 #include <sys/stat.h>
3174 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3175 struct buf { int x; };
3176 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3177 static char *e (p, i)
3183 static char *f (char * (*g) (char **, int), char **p, ...)
3188 s = g (p, va_arg (v,int));
3193 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3194 function prototypes and stuff, but not '\xHH' hex character constants.
3195 These don't provoke an error unfortunately, instead are silently treated
3196 as 'x'. The following induces an error, until -std is added to get
3197 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3198 array size at least. It's necessary to write '\x00'==0 to get something
3199 that's true only with -std. */
3200 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3202 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3203 inside strings and character constants. */
3205 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3207 int test (int i, double x);
3208 struct s1 {int (*f) (int a);};
3209 struct s2 {int (*f) (double a);};
3210 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3216 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3221 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3222 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3224 CC="$ac_save_CC $ac_arg"
3225 if ac_fn_c_try_compile "$LINENO"; then :
3226 ac_cv_prog_cc_c89=$ac_arg
3228 rm -f core conftest.err conftest.$ac_objext
3229 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3231 rm -f conftest.$ac_ext
3236 case "x
$ac_cv_prog_cc_c89" in
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3239 $as_echo "none needed
" >&6; } ;;
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3242 $as_echo "unsupported
" >&6; } ;;
3244 CC="$CC $ac_cv_prog_cc_c89"
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3246 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3248 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3253 ac_cpp='$CPP $CPPFLAGS'
3254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259 ac_cpp='$CXXCPP $CPPFLAGS'
3260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3263 if test -z "$CXX"; then
3264 if test -n "$CCC"; then
3267 if test -n "$ac_tool_prefix"; then
3268 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3273 $as_echo_n "checking
for $ac_word...
" >&6; }
3274 if test "${ac_cv_prog_CXX+set}" = set; then :
3275 $as_echo_n "(cached
) " >&6
3277 if test -n "$CXX"; then
3278 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3288 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3298 if test -n "$CXX"; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX" >&5
3300 $as_echo "$CXX" >&6; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3303 $as_echo "no
" >&6; }
3307 test -n "$CXX" && break
3310 if test -z "$CXX"; then
3312 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3314 # Extract the first word of "$ac_prog", so it can be a program name with args.
3315 set dummy $ac_prog; ac_word=$2
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3317 $as_echo_n "checking
for $ac_word...
" >&6; }
3318 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3319 $as_echo_n "(cached
) " >&6
3321 if test -n "$ac_ct_CXX"; then
3322 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331 ac_cv_prog_ac_ct_CXX="$ac_prog"
3332 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3341 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3342 if test -n "$ac_ct_CXX"; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CXX" >&5
3344 $as_echo "$ac_ct_CXX" >&6; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3347 $as_echo "no
" >&6; }
3351 test -n "$ac_ct_CXX" && break
3354 if test "x
$ac_ct_CXX" = x; then
3357 case $cross_compiling:$ac_tool_warned in
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3360 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3361 ac_tool_warned=yes ;;
3369 # Provide some information about the compiler.
3370 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C
++ compiler version
" >&5
3373 for ac_option in --version -v -V -qversion; do
3374 { { ac_try="$ac_compiler $ac_option >&5"
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3383 if test -s conftest.err; then
3385 ... rest of stderr output deleted ...
3386 10q' conftest.err >conftest.er1
3387 cat conftest.er1 >&5
3388 rm -f conftest.er1 conftest.err
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3391 test $ac_status = 0; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
++ compiler
" >&5
3395 $as_echo_n "checking whether we are using the GNU C
++ compiler...
" >&6; }
3396 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3397 $as_echo_n "(cached
) " >&6
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3413 if ac_fn_cxx_try_compile "$LINENO"; then :
3418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_cxx_compiler_gnu" >&5
3423 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3424 if test $ac_compiler_gnu = yes; then
3429 ac_test_CXXFLAGS=${CXXFLAGS+set}
3430 ac_save_CXXFLAGS=$CXXFLAGS
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX accepts
-g" >&5
3432 $as_echo_n "checking whether
$CXX accepts
-g...
" >&6; }
3433 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3434 $as_echo_n "(cached
) " >&6
3436 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3437 ac_cxx_werror_flag=yes
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3451 if ac_fn_cxx_try_compile "$LINENO"; then :
3452 ac_cv_prog_cxx_g=yes
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3466 if ac_fn_cxx_try_compile "$LINENO"; then :
3469 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3482 if ac_fn_cxx_try_compile "$LINENO"; then :
3483 ac_cv_prog_cxx_g=yes
3485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cxx_g" >&5
3493 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3494 if test "$ac_test_CXXFLAGS" = set; then
3495 CXXFLAGS=$ac_save_CXXFLAGS
3496 elif test $ac_cv_prog_cxx_g = yes; then
3497 if test "$GXX" = yes; then
3503 if test "$GXX" = yes; then
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517 ac_cpp='$CPP $CPPFLAGS'
3518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3522 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3523 # On Suns, sometimes $CPP names a directory.
3524 if test -n "$CPP" && test -d "$CPP"; then
3527 if test -z "$CPP"; then
3528 if test "${ac_cv_prog_CPP+set}" = set; then :
3529 $as_echo_n "(cached
) " >&6
3531 # Double quotes because CPP needs to be expanded
3532 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3535 for ac_c_preproc_warn_flag in '' yes
3537 # Use a header file that comes with gcc, so configuring glibc
3538 # with a fresh cross-compiler works.
3539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3540 # <limits.h> exists even on freestanding compilers.
3541 # On the NeXT, cc -E runs the code through the compiler's parser,
3542 # not just through cpp. "Syntax error
" is here to catch this case.
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3546 # include <limits.h>
3548 # include <assert.h>
3552 if ac_fn_c_try_cpp "$LINENO"; then :
3555 # Broken: fails on valid input.
3558 rm -f conftest.err conftest.$ac_ext
3560 # OK, works on sane cases. Now check whether nonexistent headers
3561 # can be detected and how.
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3564 #include <ac_nonexistent.h>
3566 if ac_fn_c_try_cpp "$LINENO"; then :
3567 # Broken: success on invalid input.
3570 # Passes both tests.
3574 rm -f conftest.err conftest.$ac_ext
3577 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3578 rm -f conftest.err conftest.$ac_ext
3579 if $ac_preproc_ok; then :
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3592 $as_echo "$CPP" >&6; }
3594 for ac_c_preproc_warn_flag in '' yes
3596 # Use a header file that comes with gcc, so configuring glibc
3597 # with a fresh cross-compiler works.
3598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3599 # <limits.h> exists even on freestanding compilers.
3600 # On the NeXT, cc -E runs the code through the compiler's parser,
3601 # not just through cpp. "Syntax error
" is here to catch this case.
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3605 # include <limits.h>
3607 # include <assert.h>
3611 if ac_fn_c_try_cpp "$LINENO"; then :
3614 # Broken: fails on valid input.
3617 rm -f conftest.err conftest.$ac_ext
3619 # OK, works on sane cases. Now check whether nonexistent headers
3620 # can be detected and how.
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3623 #include <ac_nonexistent.h>
3625 if ac_fn_c_try_cpp "$LINENO"; then :
3626 # Broken: success on invalid input.
3629 # Passes both tests.
3633 rm -f conftest.err conftest.$ac_ext
3636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3637 rm -f conftest.err conftest.$ac_ext
3638 if $ac_preproc_ok; then :
3641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3644 See \`config.log' for more details.
" "$LINENO" 5; }
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3655 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3656 if test "${ac_cv_path_GREP+set}" = set; then :
3657 $as_echo_n "(cached
) " >&6
3659 if test -z "$GREP"; then
3660 ac_path_GREP_found=false
3661 # Loop through the user's path and test for each of PROGNAME-LIST
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3666 test -z "$as_dir" && as_dir=.
3667 for ac_prog in grep ggrep; do
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3670 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3671 # Check for GNU ac_path_GREP and select it if it is found.
3672 # Check for GNU $ac_path_GREP
3673 case `"$ac_path_GREP" --version 2>&1` in
3675 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3678 $as_echo_n 0123456789 >"conftest.
in"
3681 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3682 mv "conftest.tmp
" "conftest.
in"
3683 cp "conftest.
in" "conftest.
nl"
3684 $as_echo 'GREP' >> "conftest.
nl"
3685 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3686 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3687 as_fn_arith $ac_count + 1 && ac_count=$as_val
3688 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3689 # Best one so far, save it but keep looking for a better one
3690 ac_cv_path_GREP="$ac_path_GREP"
3691 ac_path_GREP_max=$ac_count
3693 # 10*(2^10) chars as input seems more than enough
3694 test $ac_count -gt 10 && break
3696 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3699 $ac_path_GREP_found && break 3
3704 if test -z "$ac_cv_path_GREP"; then
3705 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3708 ac_cv_path_GREP=$GREP
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3713 $as_echo "$ac_cv_path_GREP" >&6; }
3714 GREP="$ac_cv_path_GREP"
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3718 $as_echo_n "checking
for egrep...
" >&6; }
3719 if test "${ac_cv_path_EGREP+set}" = set; then :
3720 $as_echo_n "(cached
) " >&6
3722 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3723 then ac_cv_path_EGREP="$GREP -E"
3725 if test -z "$EGREP"; then
3726 ac_path_EGREP_found=false
3727 # Loop through the user's path and test for each of PROGNAME-LIST
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3732 test -z "$as_dir" && as_dir=.
3733 for ac_prog in egrep; do
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3736 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3737 # Check for GNU ac_path_EGREP and select it if it is found.
3738 # Check for GNU $ac_path_EGREP
3739 case `"$ac_path_EGREP" --version 2>&1` in
3741 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3744 $as_echo_n 0123456789 >"conftest.
in"
3747 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3748 mv "conftest.tmp
" "conftest.
in"
3749 cp "conftest.
in" "conftest.
nl"
3750 $as_echo 'EGREP' >> "conftest.
nl"
3751 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3752 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3753 as_fn_arith $ac_count + 1 && ac_count=$as_val
3754 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3755 # Best one so far, save it but keep looking for a better one
3756 ac_cv_path_EGREP="$ac_path_EGREP"
3757 ac_path_EGREP_max=$ac_count
3759 # 10*(2^10) chars as input seems more than enough
3760 test $ac_count -gt 10 && break
3762 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3765 $ac_path_EGREP_found && break 3
3770 if test -z "$ac_cv_path_EGREP"; then
3771 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3774 ac_cv_path_EGREP=$EGREP
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3780 $as_echo "$ac_cv_path_EGREP" >&6; }
3781 EGREP="$ac_cv_path_EGREP"
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3785 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3786 if test "${ac_cv_header_stdc+set}" = set; then :
3787 $as_echo_n "(cached
) " >&6
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3804 if ac_fn_c_try_compile "$LINENO"; then :
3805 ac_cv_header_stdc=yes
3807 ac_cv_header_stdc=no
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 if test $ac_cv_header_stdc = yes; then
3812 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3818 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3819 $EGREP "memchr
" >/dev/null 2>&1; then :
3822 ac_cv_header_stdc=no
3828 if test $ac_cv_header_stdc = yes; then
3829 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3835 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3836 $EGREP "free
" >/dev/null 2>&1; then :
3839 ac_cv_header_stdc=no
3845 if test $ac_cv_header_stdc = yes; then
3846 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3847 if test "$cross_compiling" = yes; then :
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3854 #if ((' ' & 0x0FF) == 0x020)
3855 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3856 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3858 # define ISLOWER(c) \
3859 (('a' <= (c) && (c) <= 'i') \
3860 || ('j' <= (c) && (c) <= 'r') \
3861 || ('s' <= (c) && (c) <= 'z'))
3862 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3865 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3870 for (i = 0; i < 256; i++)
3871 if (XOR (islower (i), ISLOWER (i))
3872 || toupper (i) != TOUPPER (i))
3877 if ac_fn_c_try_run "$LINENO"; then :
3880 ac_cv_header_stdc=no
3882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3883 conftest.$ac_objext conftest.beam conftest.$ac_ext
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3889 $as_echo "$ac_cv_header_stdc" >&6; }
3890 if test $ac_cv_header_stdc = yes; then
3892 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3896 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3897 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3898 inttypes.h stdint.h unistd.h
3900 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3901 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3903 eval as_val
=\$
$as_ac_Header
3904 if test "x$as_val" = x
""yes; then :
3905 cat >>confdefs.h
<<_ACEOF
3906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3915 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3916 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3923 if test "$MINIX" = yes; then
3925 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3928 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3931 $as_echo "#define _MINIX 1" >>confdefs.h
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3937 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3938 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3939 $as_echo_n "(cached) " >&6
3941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3944 # define __EXTENSIONS__ 1
3945 $ac_includes_default
3954 if ac_fn_c_try_compile
"$LINENO"; then :
3955 ac_cv_safe_to_define___extensions__
=yes
3957 ac_cv_safe_to_define___extensions__
=no
3959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3962 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3963 test $ac_cv_safe_to_define___extensions__ = yes &&
3964 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3966 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3968 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3970 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3972 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3976 # Check whether --enable-largefile was given.
3977 if test "${enable_largefile+set}" = set; then :
3978 enableval
=$enable_largefile;
3981 if test "$enable_largefile" != no
; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3984 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3985 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3986 $as_echo_n "(cached) " >&6
3988 ac_cv_sys_largefile_CC
=no
3989 if test "$GCC" != yes; then
3992 # IRIX 6.2 and later do not support large files by default,
3993 # so use the C compiler's -n32 option if that helps.
3994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996 #include <sys/types.h>
3997 /* Check that off_t can represent 2**63 - 1 correctly.
3998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3999 since some C++ compilers masquerading as C compilers
4000 incorrectly reject 9223372036854775807. */
4001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4003 && LARGE_OFF_T % 2147483647 == 1)
4013 if ac_fn_c_try_compile
"$LINENO"; then :
4016 rm -f core conftest.err conftest.
$ac_objext
4018 if ac_fn_c_try_compile
"$LINENO"; then :
4019 ac_cv_sys_largefile_CC
=' -n32'; break
4021 rm -f core conftest.err conftest.
$ac_objext
4025 rm -f conftest.
$ac_ext
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4029 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4030 if test "$ac_cv_sys_largefile_CC" != no
; then
4031 CC
=$CC$ac_cv_sys_largefile_CC
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4035 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4036 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4042 #include <sys/types.h>
4043 /* Check that off_t can represent 2**63 - 1 correctly.
4044 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4045 since some C++ compilers masquerading as C compilers
4046 incorrectly reject 9223372036854775807. */
4047 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4048 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4049 && LARGE_OFF_T % 2147483647 == 1)
4059 if ac_fn_c_try_compile
"$LINENO"; then :
4060 ac_cv_sys_file_offset_bits
=no
; break
4062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 #define _FILE_OFFSET_BITS 64
4066 #include <sys/types.h>
4067 /* Check that off_t can represent 2**63 - 1 correctly.
4068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4069 since some C++ compilers masquerading as C compilers
4070 incorrectly reject 9223372036854775807. */
4071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4073 && LARGE_OFF_T % 2147483647 == 1)
4083 if ac_fn_c_try_compile
"$LINENO"; then :
4084 ac_cv_sys_file_offset_bits
=64; break
4086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4087 ac_cv_sys_file_offset_bits
=unknown
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4092 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4093 case $ac_cv_sys_file_offset_bits in #(
4096 cat >>confdefs.h
<<_ACEOF
4097 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4102 if test $ac_cv_sys_file_offset_bits = unknown
; then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4104 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4105 if test "${ac_cv_sys_large_files+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4111 #include <sys/types.h>
4112 /* Check that off_t can represent 2**63 - 1 correctly.
4113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4114 since some C++ compilers masquerading as C compilers
4115 incorrectly reject 9223372036854775807. */
4116 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4118 && LARGE_OFF_T % 2147483647 == 1)
4128 if ac_fn_c_try_compile
"$LINENO"; then :
4129 ac_cv_sys_large_files
=no
; break
4131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4134 #define _LARGE_FILES 1
4135 #include <sys/types.h>
4136 /* Check that off_t can represent 2**63 - 1 correctly.
4137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4138 since some C++ compilers masquerading as C compilers
4139 incorrectly reject 9223372036854775807. */
4140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4142 && LARGE_OFF_T % 2147483647 == 1)
4152 if ac_fn_c_try_compile
"$LINENO"; then :
4153 ac_cv_sys_large_files
=1; break
4155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4156 ac_cv_sys_large_files
=unknown
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4161 $as_echo "$ac_cv_sys_large_files" >&6; }
4162 case $ac_cv_sys_large_files in #(
4165 cat >>confdefs.h
<<_ACEOF
4166 #define _LARGE_FILES $ac_cv_sys_large_files
4176 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4177 for ac_t
in install-sh
install.sh shtool
; do
4178 if test -f "$ac_dir/$ac_t"; then
4180 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4185 if test -z "$ac_aux_dir"; then
4186 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4189 # These three variables are undocumented and unsupported,
4190 # and are intended to be withdrawn in a future Autoconf release.
4191 # They can cause serious problems if a builder's source tree is in a directory
4192 # whose full name contains unusual characters.
4193 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4194 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4195 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4198 # Make sure we can run config.sub.
4199 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4200 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4203 $as_echo_n "checking build system type... " >&6; }
4204 if test "${ac_cv_build+set}" = set; then :
4205 $as_echo_n "(cached) " >&6
4207 ac_build_alias
=$build_alias
4208 test "x$ac_build_alias" = x
&&
4209 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4210 test "x$ac_build_alias" = x
&&
4211 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4212 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4213 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4217 $as_echo "$ac_cv_build" >&6; }
4218 case $ac_cv_build in
4220 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4223 ac_save_IFS
=$IFS; IFS
='-'
4229 # Remember, the first character of IFS is used to create $*,
4230 # except with old shells:
4233 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4237 $as_echo_n "checking host system type... " >&6; }
4238 if test "${ac_cv_host+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4241 if test "x$host_alias" = x
; then
4242 ac_cv_host
=$ac_cv_build
4244 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4245 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4250 $as_echo "$ac_cv_host" >&6; }
4253 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4256 ac_save_IFS
=$IFS; IFS
='-'
4262 # Remember, the first character of IFS is used to create $*,
4263 # except with old shells:
4266 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4270 $as_echo_n "checking target system type... " >&6; }
4271 if test "${ac_cv_target+set}" = set; then :
4272 $as_echo_n "(cached) " >&6
4274 if test "x$target_alias" = x
; then
4275 ac_cv_target
=$ac_cv_host
4277 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4278 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4283 $as_echo "$ac_cv_target" >&6; }
4284 case $ac_cv_target in
4286 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4288 target
=$ac_cv_target
4289 ac_save_IFS
=$IFS; IFS
='-'
4295 # Remember, the first character of IFS is used to create $*,
4296 # except with old shells:
4299 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4302 # The aliases save the names the user supplied, while $host etc.
4303 # will get canonicalized.
4304 test -n "$target_alias" &&
4305 test "$program_prefix$program_suffix$program_transform_name" = \
4307 program_prefix
=${target_alias}-
4310 # Find a good install program. We prefer a C program (faster),
4311 # so one script is as good as another. But avoid the broken or
4312 # incompatible versions:
4313 # SysV /etc/install, /usr/sbin/install
4314 # SunOS /usr/etc/install
4315 # IRIX /sbin/install
4317 # AmigaOS /C/install, which installs bootblocks on floppy discs
4318 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4319 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4320 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4321 # OS/2's system install, which has a completely different semantic
4322 # ./install, which can be erroneously created by make from ./install.sh.
4323 # Reject install programs that cannot install multiple files.
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4325 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4326 if test -z "$INSTALL"; then
4327 if test "${ac_cv_path_install+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
4330 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4334 test -z "$as_dir" && as_dir
=.
4335 # Account for people who put trailing slashes in PATH elements.
4336 case $as_dir/ in #((
4337 .
/ | .
// |
/[cC
]/* | \
4338 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4339 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4342 # OSF1 and SCO ODT 3.0 have their own names for install.
4343 # Don't use installbsd from OSF since it installs stuff as root
4345 for ac_prog
in ginstall scoinst
install; do
4346 for ac_exec_ext
in '' $ac_executable_extensions; do
4347 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4348 if test $ac_prog = install &&
4349 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4350 # AIX install. It has an incompatible calling convention.
4352 elif test $ac_prog = install &&
4353 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4354 # program-specific install script used by HP pwplus--don't use.
4357 rm -rf conftest.one conftest.two conftest.dir
4358 echo one
> conftest.one
4359 echo two
> conftest.two
4361 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4362 test -s conftest.one
&& test -s conftest.two
&&
4363 test -s conftest.dir
/conftest.one
&&
4364 test -s conftest.dir
/conftest.two
4366 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4379 rm -rf conftest.one conftest.two conftest.dir
4382 if test "${ac_cv_path_install+set}" = set; then
4383 INSTALL
=$ac_cv_path_install
4385 # As a last resort, use the slow shell script. Don't cache a
4386 # value for INSTALL within a source directory, because that will
4387 # break other packages using the cache if that directory is
4388 # removed, or if the value is a relative name.
4389 INSTALL
=$ac_install_sh
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4393 $as_echo "$INSTALL" >&6; }
4395 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4396 # It thinks the first close brace ends the variable substitution.
4397 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4399 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4401 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4403 if test -n "$ac_tool_prefix"; then
4404 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4405 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407 $as_echo_n "checking for $ac_word... " >&6; }
4408 if test "${ac_cv_prog_AR+set}" = set; then :
4409 $as_echo_n "(cached) " >&6
4411 if test -n "$AR"; then
4412 ac_cv_prog_AR
="$AR" # Let the user override the test.
4414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4418 test -z "$as_dir" && as_dir
=.
4419 for ac_exec_ext
in '' $ac_executable_extensions; do
4420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 if test -n "$AR"; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4434 $as_echo "$AR" >&6; }
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 $as_echo "no" >&6; }
4442 if test -z "$ac_cv_prog_AR"; then
4444 # Extract the first word of "ar", so it can be a program name with args.
4445 set dummy
ar; ac_word
=$2
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4447 $as_echo_n "checking for $ac_word... " >&6; }
4448 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4449 $as_echo_n "(cached) " >&6
4451 if test -n "$ac_ct_AR"; then
4452 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4458 test -z "$as_dir" && as_dir
=.
4459 for ac_exec_ext
in '' $ac_executable_extensions; do
4460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4461 ac_cv_prog_ac_ct_AR
="ar"
4462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4472 if test -n "$ac_ct_AR"; then
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4474 $as_echo "$ac_ct_AR" >&6; }
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477 $as_echo "no" >&6; }
4480 if test "x$ac_ct_AR" = x
; then
4483 case $cross_compiling:$ac_tool_warned in
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4487 ac_tool_warned
=yes ;;
4495 if test -n "$ac_tool_prefix"; then
4496 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4497 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4501 $as_echo_n "(cached) " >&6
4503 if test -n "$RANLIB"; then
4504 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir
=.
4511 for ac_exec_ext
in '' $ac_executable_extensions; do
4512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 RANLIB
=$ac_cv_prog_RANLIB
4524 if test -n "$RANLIB"; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4526 $as_echo "$RANLIB" >&6; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4534 if test -z "$ac_cv_prog_RANLIB"; then
4535 ac_ct_RANLIB
=$RANLIB
4536 # Extract the first word of "ranlib", so it can be a program name with args.
4537 set dummy ranlib
; ac_word
=$2
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4541 $as_echo_n "(cached) " >&6
4543 if test -n "$ac_ct_RANLIB"; then
4544 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4550 test -z "$as_dir" && as_dir
=.
4551 for ac_exec_ext
in '' $ac_executable_extensions; do
4552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4553 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4564 if test -n "$ac_ct_RANLIB"; then
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4566 $as_echo "$ac_ct_RANLIB" >&6; }
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 $as_echo "no" >&6; }
4572 if test "x$ac_ct_RANLIB" = x
; then
4575 case $cross_compiling:$ac_tool_warned in
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4579 ac_tool_warned
=yes ;;
4581 RANLIB
=$ac_ct_RANLIB
4584 RANLIB
="$ac_cv_prog_RANLIB"
4588 test "$program_prefix" != NONE
&&
4589 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4590 # Use a double $ so make ignores it.
4591 test "$program_suffix" != NONE
&&
4592 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4593 # Double any \ or $.
4594 # By default was `s,x,x', remove it if useless.
4595 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4596 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4600 $as_echo_n "checking for ANSI C header files... " >&6; }
4601 if test "${ac_cv_header_stdc+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4619 if ac_fn_c_try_compile
"$LINENO"; then :
4620 ac_cv_header_stdc
=yes
4622 ac_cv_header_stdc
=no
4624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4626 if test $ac_cv_header_stdc = yes; then
4627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4634 $EGREP "memchr" >/dev
/null
2>&1; then :
4637 ac_cv_header_stdc
=no
4643 if test $ac_cv_header_stdc = yes; then
4644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4651 $EGREP "free" >/dev
/null
2>&1; then :
4654 ac_cv_header_stdc
=no
4660 if test $ac_cv_header_stdc = yes; then
4661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4662 if test "$cross_compiling" = yes; then :
4665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4669 #if ((' ' & 0x0FF) == 0x020)
4670 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4671 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4673 # define ISLOWER(c) \
4674 (('a' <= (c) && (c) <= 'i') \
4675 || ('j' <= (c) && (c) <= 'r') \
4676 || ('s' <= (c) && (c) <= 'z'))
4677 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4680 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4685 for (i = 0; i < 256; i++)
4686 if (XOR (islower (i), ISLOWER (i))
4687 || toupper (i) != TOUPPER (i))
4692 if ac_fn_c_try_run
"$LINENO"; then :
4695 ac_cv_header_stdc
=no
4697 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4698 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4704 $as_echo "$ac_cv_header_stdc" >&6; }
4705 if test $ac_cv_header_stdc = yes; then
4707 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4712 # See if we are building with C++, and substitute COMPILER.
4714 # Check whether --enable-build-with-cxx was given.
4715 if test "${enable_build_with_cxx+set}" = set; then :
4716 enableval
=$enable_build_with_cxx; case $enableval in
4720 as_fn_error
"bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
4723 enable_build_with_cxx
=no
4727 if test "$enable_build_with_cxx" = "yes"; then
4728 # We're using -fpermissive as shortcut for now.
4729 COMPILER
='$(CXX) -fpermissive'
4736 # Set the 'development' global.
4737 .
$srcdir/..
/..
/bfd
/development.sh
4739 # Enable -lmcheck by default (it provides cheap-enough memory
4740 # mangling), but turn it off for releases.
4741 if $development; then
4742 libmcheck_default
=yes
4744 libmcheck_default
=no
4747 # Check whether --enable-libmcheck was given.
4748 if test "${enable_libmcheck+set}" = set; then :
4749 enableval
=$enable_libmcheck; case "${enableval}" in
4750 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
4751 no | n
) ENABLE_LIBMCHECK
="no" ;;
4752 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
4757 if test -z "${ENABLE_LIBMCHECK}"; then
4758 ENABLE_LIBMCHECK
=${libmcheck_default}
4761 if test "$ENABLE_LIBMCHECK" = "yes" ; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
4763 $as_echo_n "checking for main in -lmcheck... " >&6; }
4764 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
4767 ac_check_lib_save_LIBS
=$LIBS
4768 LIBS
="-lmcheck $LIBS"
4769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4781 if ac_fn_c_try_link
"$LINENO"; then :
4782 ac_cv_lib_mcheck_main
=yes
4784 ac_cv_lib_mcheck_main
=no
4786 rm -f core conftest.err conftest.
$ac_objext \
4787 conftest
$ac_exeext conftest.
$ac_ext
4788 LIBS
=$ac_check_lib_save_LIBS
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
4791 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
4792 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
4793 cat >>confdefs.h
<<_ACEOF
4794 #define HAVE_LIBMCHECK 1
4797 LIBS
="-lmcheck $LIBS"
4804 case ${build_alias} in
4805 "") build_noncanonical
=${build} ;;
4806 *) build_noncanonical
=${build_alias} ;;
4809 case ${host_alias} in
4810 "") host_noncanonical
=${build_noncanonical} ;;
4811 *) host_noncanonical
=${host_alias} ;;
4814 case ${target_alias} in
4815 "") target_noncanonical
=${host_noncanonical} ;;
4816 *) target_noncanonical
=${target_alias} ;;
4824 # Dependency checking.
4825 rm -rf .tst
2>/dev
/null
4826 mkdir .tst
2>/dev
/null
4827 if test -d .tst
; then
4832 rmdir .tst
2>/dev
/null
4834 DEPDIR
="${am__leading_dot}deps"
4836 ac_config_commands
="$ac_config_commands depdir"
4839 depcc
="$CC" am_compiler_list
=
4841 am_depcomp
=$ac_aux_dir/depcomp
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4843 $as_echo_n "checking dependency style of $depcc... " >&6; }
4844 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4847 if test -f "$am_depcomp"; then
4848 # We make a subdir and do the tests there. Otherwise we can end up
4849 # making bogus files that we don't know about and never remove. For
4850 # instance it was reported that on HP-UX the gcc test will end up
4851 # making a dummy file named `D' -- because `-MD' means `put the output
4854 # Copy depcomp to subdir because otherwise we won't find it if we're
4855 # using a relative directory.
4856 cp "$am_depcomp" conftest.dir
4858 # We will build objects and dependencies in a subdirectory because
4859 # it helps to detect inapplicable dependency modes. For instance
4860 # both Tru64's cc and ICC support -MD to output dependencies as a
4861 # side effect of compilation, but ICC will put the dependencies in
4862 # the current directory while Tru64 will put them in the object
4866 am_cv_CC_dependencies_compiler_type
=none
4867 if test "$am_compiler_list" = ""; then
4868 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4870 for depmode
in $am_compiler_list; do
4871 if test $depmode = none
; then break; fi
4873 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4874 # Setup a source with many dependencies, because some compilers
4875 # like to wrap large dependency lists on column 80 (with \), and
4876 # we should not choose a depcomp mode which is confused by this.
4878 # We need to recreate these files for each test, as the compiler may
4879 # overwrite some of them when testing with obscure command lines.
4880 # This happens at least with the AIX C compiler.
4882 for i
in 1 2 3 4 5 6; do
4883 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4884 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4885 # Solaris 8's {/usr,}/bin/sh.
4886 touch sub
/conftst
$i.h
4888 echo "include sub/conftest.Po" > confmf
4890 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4891 # mode. It turns out that the SunPro C++ compiler does not properly
4892 # handle `-M -o', and we need to detect this.
4893 depcmd
="depmode=$depmode \
4894 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4895 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4896 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4897 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4898 if env
$depcmd > conftest.err
2>&1 &&
4899 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4900 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4901 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4902 # icc doesn't choke on unknown options, it will just issue warnings
4903 # or remarks (even with -Werror). So we grep stderr for any message
4904 # that says an option was ignored or not supported.
4905 # When given -MP, icc 7.0 and 7.1 complain thusly:
4906 # icc: Command line warning: ignoring option '-M'; no argument required
4907 # The diagnosis changed in icc 8.0:
4908 # icc: Command line remark: option '-MP' not supported
4909 if (grep 'ignoring option' conftest.err ||
4910 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4911 am_cv_CC_dependencies_compiler_type
=$depmode
4912 $as_echo "$as_me:$LINENO: success" >&5
4916 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4917 sed -e 's/^/| /' < conftest.err
>&5
4923 am_cv_CC_dependencies_compiler_type
=none
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4928 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4929 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4930 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4931 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4936 # Check for the 'make' the user wants to use.
4939 # Extract the first word of "$ac_prog", so it can be a program name with args.
4940 set dummy
$ac_prog; ac_word
=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if test "${ac_cv_prog_MAKE+set}" = set; then :
4944 $as_echo_n "(cached) " >&6
4946 if test -n "$MAKE"; then
4947 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir
=.
4954 for ac_exec_ext
in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956 ac_cv_prog_MAKE
="$ac_prog"
4957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 MAKE
=$ac_cv_prog_MAKE
4967 if test -n "$MAKE"; then
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4969 $as_echo "$MAKE" >&6; }
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972 $as_echo "no" >&6; }
4976 test -n "$MAKE" && break
4980 case "`$MAKE --version 2>&1 | sed 1q`" in
4985 if test "$MAKE_IS_GNU" = yes; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4994 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4996 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4997 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4998 $as_echo_n "(cached) " >&6
5000 cat >conftest.
make <<\_ACEOF
5003 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5005 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5006 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5008 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5010 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5014 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5016 $as_echo "yes" >&6; }
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5021 SET_MAKE
="MAKE=${MAKE-make}"
5025 gnulib_extra_configure_args
=
5026 # If large-file support is disabled, make sure gnulib does the same.
5027 if test "$enable_largefile" = no
; then
5028 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
5031 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
5032 # to find the the source subdir to be configured directly under
5033 # gdbserver/. We need to build gnulib under some other directory not
5034 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
5035 # build it in the same directory, when building in the source dir.
5038 in_build
="build-gnulib-gdbserver"
5039 in_extra_args
="$gnulib_extra_configure_args"
5041 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5042 # so they do not pile up.
5043 ac_sub_configure_args
=
5045 eval "set x $ac_configure_args"
5049 if test -n "$ac_prev"; then
5054 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5055 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5056 ac_prev
=cache_file
;;
5057 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5058 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5061 --config-cache |
-C)
5063 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5065 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5067 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5069 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5071 --disable-option-checking)
5075 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5077 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5081 # Always prepend --prefix to ensure using the same prefix
5082 # in subdir configurations.
5083 ac_arg
="--prefix=$prefix"
5085 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5087 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5090 if test "$silent" = yes; then
5091 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5094 # Always prepend --disable-option-checking to silence warnings, since
5095 # different subdirs can have different --enable and --with options.
5096 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5101 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5102 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5103 $as_echo "$ac_msg" >&6
5104 as_dir
="$ac_dir"; as_fn_mkdir_p
5108 ac_srcdir
=$srcdir/$in_src ;;
5110 ac_srcdir
=..
/$srcdir/$in_src ;;
5115 ac_sub_configure
=$ac_srcdir/configure
5117 # Make the cache file name correct relative to the subdirectory.
5119 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5121 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5124 if test -n "$in_extra_args"; then
5125 # Add the extra args at the end.
5126 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5129 { $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
5130 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5131 # The eval makes quoting arguments work.
5132 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5133 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5134 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5140 in_src
="../../libiberty"
5141 in_build
="build-libiberty-gdbserver"
5144 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5145 # so they do not pile up.
5146 ac_sub_configure_args
=
5148 eval "set x $ac_configure_args"
5152 if test -n "$ac_prev"; then
5157 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5158 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5159 ac_prev
=cache_file
;;
5160 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5161 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5164 --config-cache |
-C)
5166 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5168 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5170 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5172 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5174 --disable-option-checking)
5178 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5180 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5184 # Always prepend --prefix to ensure using the same prefix
5185 # in subdir configurations.
5186 ac_arg
="--prefix=$prefix"
5188 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5190 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5193 if test "$silent" = yes; then
5194 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5197 # Always prepend --disable-option-checking to silence warnings, since
5198 # different subdirs can have different --enable and --with options.
5199 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5204 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5206 $as_echo "$ac_msg" >&6
5207 as_dir
="$ac_dir"; as_fn_mkdir_p
5211 ac_srcdir
=$srcdir/$in_src ;;
5213 ac_srcdir
=..
/$srcdir/$in_src ;;
5218 ac_sub_configure
=$ac_srcdir/configure
5220 # Make the cache file name correct relative to the subdirectory.
5222 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5224 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5227 if test -n "$in_extra_args"; then
5228 # Add the extra args at the end.
5229 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5232 { $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
5233 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5234 # The eval makes quoting arguments work.
5235 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5236 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5237 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5242 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
5244 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5245 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5246 eval as_val
=\$
$as_ac_Header
5247 if test "x$as_val" = x
""yes; then :
5248 cat >>confdefs.h
<<_ACEOF
5249 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5256 for ac_func
in getauxval pread pwrite pread64
5258 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5259 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5260 eval as_val
=\$
$as_ac_var
5261 if test "x$as_val" = x
""yes; then :
5262 cat >>confdefs.h
<<_ACEOF
5263 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5272 $as_echo_n "checking for ANSI C header files... " >&6; }
5273 if test "${ac_cv_header_stdc+set}" = set; then :
5274 $as_echo_n "(cached) " >&6
5276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5291 if ac_fn_c_try_compile
"$LINENO"; then :
5292 ac_cv_header_stdc
=yes
5294 ac_cv_header_stdc
=no
5296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5298 if test $ac_cv_header_stdc = yes; then
5299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5306 $EGREP "memchr" >/dev
/null
2>&1; then :
5309 ac_cv_header_stdc
=no
5315 if test $ac_cv_header_stdc = yes; then
5316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h. */
5322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323 $EGREP "free" >/dev
/null
2>&1; then :
5326 ac_cv_header_stdc
=no
5332 if test $ac_cv_header_stdc = yes; then
5333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5334 if test "$cross_compiling" = yes; then :
5337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5341 #if ((' ' & 0x0FF) == 0x020)
5342 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5343 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5345 # define ISLOWER(c) \
5346 (('a' <= (c) && (c) <= 'i') \
5347 || ('j' <= (c) && (c) <= 'r') \
5348 || ('s' <= (c) && (c) <= 'z'))
5349 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5352 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5357 for (i = 0; i < 256; i++)
5358 if (XOR (islower (i), ISLOWER (i))
5359 || toupper (i) != TOUPPER (i))
5364 if ac_fn_c_try_run
"$LINENO"; then :
5367 ac_cv_header_stdc
=no
5369 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5370 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5376 $as_echo "$ac_cv_header_stdc" >&6; }
5377 if test $ac_cv_header_stdc = yes; then
5379 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5383 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5384 # for constant arguments. Useless!
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5386 $as_echo_n "checking for working alloca.h... " >&6; }
5387 if test "${ac_cv_working_alloca_h+set}" = set; then :
5388 $as_echo_n "(cached) " >&6
5390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5396 char *p = (char *) alloca (2 * sizeof (int));
5402 if ac_fn_c_try_link
"$LINENO"; then :
5403 ac_cv_working_alloca_h
=yes
5405 ac_cv_working_alloca_h
=no
5407 rm -f core conftest.err conftest.
$ac_objext \
5408 conftest
$ac_exeext conftest.
$ac_ext
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5411 $as_echo "$ac_cv_working_alloca_h" >&6; }
5412 if test $ac_cv_working_alloca_h = yes; then
5414 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5419 $as_echo_n "checking for alloca... " >&6; }
5420 if test "${ac_cv_func_alloca_works+set}" = set; then :
5421 $as_echo_n "(cached) " >&6
5423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5426 # define alloca __builtin_alloca
5429 # include <malloc.h>
5430 # define alloca _alloca
5432 # ifdef HAVE_ALLOCA_H
5433 # include <alloca.h>
5438 # ifndef alloca /* predefined by HP cc +Olibcalls */
5449 char *p = (char *) alloca (1);
5455 if ac_fn_c_try_link
"$LINENO"; then :
5456 ac_cv_func_alloca_works
=yes
5458 ac_cv_func_alloca_works
=no
5460 rm -f core conftest.err conftest.
$ac_objext \
5461 conftest
$ac_exeext conftest.
$ac_ext
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5464 $as_echo "$ac_cv_func_alloca_works" >&6; }
5466 if test $ac_cv_func_alloca_works = yes; then
5468 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5471 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5472 # that cause trouble. Some versions do not even contain alloca or
5473 # contain a buggy version. If you still want to use their alloca,
5474 # use ar to extract alloca.o from them instead of compiling alloca.c.
5476 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
5478 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5482 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5483 if test "${ac_cv_os_cray+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488 #if defined CRAY && ! defined CRAY2
5495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5496 $EGREP "webecray" >/dev
/null
2>&1; then :
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5505 $as_echo "$ac_cv_os_cray" >&6; }
5506 if test $ac_cv_os_cray = yes; then
5507 for ac_func
in _getb67 GETB67 getb67
; do
5508 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5509 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5510 eval as_val
=\$
$as_ac_var
5511 if test "x$as_val" = x
""yes; then :
5513 cat >>confdefs.h
<<_ACEOF
5514 #define CRAY_STACKSEG_END $ac_func
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5524 $as_echo_n "checking stack direction for C alloca... " >&6; }
5525 if test "${ac_cv_c_stack_direction+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5528 if test "$cross_compiling" = yes; then :
5529 ac_cv_c_stack_direction
=0
5531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 $ac_includes_default
5535 find_stack_direction ()
5537 static char *addr = 0;
5542 return find_stack_direction ();
5545 return (&dummy > addr) ? 1 : -1;
5551 return find_stack_direction () < 0;
5554 if ac_fn_c_try_run
"$LINENO"; then :
5555 ac_cv_c_stack_direction
=1
5557 ac_cv_c_stack_direction
=-1
5559 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5560 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5565 $as_echo "$ac_cv_c_stack_direction" >&6; }
5566 cat >>confdefs.h
<<_ACEOF
5567 #define STACK_DIRECTION $ac_cv_c_stack_direction
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5576 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5577 if test "${am_cv_langinfo_codeset+set}" = set; then :
5578 $as_echo_n "(cached) " >&6
5580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5582 #include <langinfo.h>
5586 char* cs = nl_langinfo(CODESET);
5591 if ac_fn_c_try_link
"$LINENO"; then :
5592 am_cv_langinfo_codeset
=yes
5594 am_cv_langinfo_codeset
=no
5596 rm -f core conftest.err conftest.
$ac_objext \
5597 conftest
$ac_exeext conftest.
$ac_ext
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5601 $as_echo "$am_cv_langinfo_codeset" >&6; }
5602 if test $am_cv_langinfo_codeset = yes; then
5604 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5609 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
5611 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5612 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5613 eval as_val
=\$
$as_ac_Header
5614 if test "x$as_val" = x
""yes; then :
5615 cat >>confdefs.h
<<_ACEOF
5616 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5624 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair
5626 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5627 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5628 eval as_val
=\$
$as_ac_var
5629 if test "x$as_val" = x
""yes; then :
5630 cat >>confdefs.h
<<_ACEOF
5631 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5638 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
5639 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
5645 cat >>confdefs.h
<<_ACEOF
5646 #define HAVE_DECL_STRERROR $ac_have_decl
5648 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
5649 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
5655 cat >>confdefs.h
<<_ACEOF
5656 #define HAVE_DECL_STRSTR $ac_have_decl
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
5661 $as_echo_n "checking for sigsetjmp... " >&6; }
5662 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
5663 $as_echo_n "(cached) " >&6
5665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5673 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
5678 if ac_fn_c_try_compile
"$LINENO"; then :
5679 gdb_cv_func_sigsetjmp
=yes
5681 gdb_cv_func_sigsetjmp
=no
5683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
5686 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
5687 if test $gdb_cv_func_sigsetjmp = yes; then
5689 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
5699 # Check whether --with-ust was given.
5700 if test "${with_ust+set}" = set; then :
5705 # Check whether --with-ust_include was given.
5706 if test "${with_ust_include+set}" = set; then :
5707 withval
=$with_ust_include;
5711 # Check whether --with-ust_lib was given.
5712 if test "${with_ust_lib+set}" = set; then :
5713 withval
=$with_ust_lib;
5727 ustlibs
="-L$with_ust/lib -lust"
5728 ustinc
="-I$with_ust/include "
5731 if test "x$with_ust_include" != x
; then
5732 ustinc
="-I$with_ust_include "
5734 if test "x$with_ust_lib" != x
; then
5735 ustlibs
="-L$with_ust_lib -lust"
5738 if test "x$with_ust" != "xno"; then
5739 saved_CFLAGS
="$CFLAGS"
5740 CFLAGS
="$CFLAGS $ustinc"
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
5742 $as_echo_n "checking for ust... " >&6; }
5743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5746 #define CONFIG_UST_GDB_INTEGRATION
5747 #include <ust/ust.h>
5757 if ac_fn_c_try_compile
"$LINENO"; then :
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759 $as_echo "yes" >&6; };
5760 $as_echo "#define HAVE_UST 1" >>confdefs.h
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
5766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5767 CFLAGS
="$saved_CFLAGS"
5770 # Flags needed for UST
5774 # Check whether --enable-werror was given.
5775 if test "${enable_werror+set}" = set; then :
5776 enableval
=$enable_werror; case "${enableval}" in
5777 yes | y
) ERROR_ON_WARNING
="yes" ;;
5778 no | n
) ERROR_ON_WARNING
="no" ;;
5779 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
5784 # Enable -Werror by default when using gcc in C mode. Leave it off
5785 # for C++ until we're warning clean. Turn it off for releases.
5786 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" \
5787 && test x
"$enable_build_with_cxx" != x
"yes" \
5788 && $development; then
5789 ERROR_ON_WARNING
=yes
5793 if test "${ERROR_ON_WARNING}" = yes ; then
5794 WERROR_CFLAGS
="-Werror"
5797 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
5798 -Wformat-nonliteral -Wno-char-subscripts -Wempty-body"
5800 # Now add in C and C++ specific options, depending on mode.
5801 if test "$enable_build_with_cxx" = "yes"; then
5802 build_warnings
="$build_warnings -Wno-sign-compare -Wno-write-strings \
5806 # The set of warnings supported by a C++ compiler is not the same as
5807 # of the C compiler.
5808 if test "$enable_build_with_cxx" = "yes"; then
5810 ac_cpp
='$CXXCPP $CPPFLAGS'
5811 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5818 if test "x$GCC" = xyes
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
5821 $as_echo_n "checking compiler warning flags... " >&6; }
5822 # Separate out the -Werror flag as some files just cannot be
5823 # compiled with it enabled.
5824 for w
in ${build_warnings}; do
5826 -Werr*) WERROR_CFLAGS
=-Werror ;;
5828 # Check whether GCC accepts it.
5829 saved_CFLAGS
="$CFLAGS"
5831 saved_CXXFLAGS
="$CXXFLAGS"
5832 CXXFLAGS
="$CXXFLAGS $w"
5834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5845 if ac_fn_cxx_try_compile
"$LINENO"; then :
5846 WARN_CFLAGS
="${WARN_CFLAGS} $w"
5848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5849 CFLAGS
="$saved_CFLAGS"
5850 CXXFLAGS
="$saved_CXXFLAGS"
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
5854 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
5859 if test "$enable_build_with_cxx" = "yes"; then
5861 ac_cpp='$CPP $CPPFLAGS'
5862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5870 for ac_func in dladdr
5872 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
5873 if test "x
$ac_cv_func_dladdr" = x""yes; then :
5874 cat >>confdefs.h <<_ACEOF
5875 #define HAVE_DLADDR 1
5884 # Check for presence and size of long long.
5885 ac_fn_c_check_type "$LINENO" "long long
" "ac_cv_type_long_long
" "$ac_includes_default"
5886 if test "x
$ac_cv_type_long_long" = x""yes; then :
5888 cat >>confdefs.h <<_ACEOF
5889 #define HAVE_LONG_LONG 1
5892 # The cast to long int works around a bug in the HP C Compiler
5893 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5894 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5895 # This bug is HP SR number 8606223364.
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long
" >&5
5897 $as_echo_n "checking size of long long...
" >&6; }
5898 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5899 $as_echo_n "(cached
) " >&6
5901 if ac_fn_c_compute_int "$LINENO" "(long int
) (sizeof
(long long
))" "ac_cv_sizeof_long_long
" "$ac_includes_default"; then :
5904 if test "$ac_cv_type_long_long" = yes; then
5905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
5906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5907 { as_fn_set_status 77
5908 as_fn_error "cannot compute sizeof (long long)
5909 See \`config.log' for more details.
" "$LINENO" 5; }; }
5911 ac_cv_sizeof_long_long=0
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_sizeof_long_long" >&5
5917 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5921 cat >>confdefs.h <<_ACEOF
5922 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5929 ac_fn_c_check_decl "$LINENO" "basename(char
*)" "ac_cv_have_decl_basename_char_p_
" "$ac_includes_default"
5930 if test "x
$ac_cv_have_decl_basename_char_p_" = x""yes; then :
5936 cat >>confdefs.h <<_ACEOF
5937 #define HAVE_DECL_BASENAME $ac_have_decl
5939 ac_fn_c_check_decl "$LINENO" "ffs
" "ac_cv_have_decl_ffs
" "$ac_includes_default"
5940 if test "x
$ac_cv_have_decl_ffs" = x""yes; then :
5946 cat >>confdefs.h <<_ACEOF
5947 #define HAVE_DECL_FFS $ac_have_decl
5949 ac_fn_c_check_decl "$LINENO" "asprintf
" "ac_cv_have_decl_asprintf
" "$ac_includes_default"
5950 if test "x
$ac_cv_have_decl_asprintf" = x""yes; then :
5956 cat >>confdefs.h <<_ACEOF
5957 #define HAVE_DECL_ASPRINTF $ac_have_decl
5959 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
5960 if test "x
$ac_cv_have_decl_vasprintf" = x""yes; then :
5966 cat >>confdefs.h <<_ACEOF
5967 #define HAVE_DECL_VASPRINTF $ac_have_decl
5969 ac_fn_c_check_decl "$LINENO" "snprintf
" "ac_cv_have_decl_snprintf
" "$ac_includes_default"
5970 if test "x
$ac_cv_have_decl_snprintf" = x""yes; then :
5976 cat >>confdefs.h <<_ACEOF
5977 #define HAVE_DECL_SNPRINTF $ac_have_decl
5979 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
5980 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then :
5986 cat >>confdefs.h <<_ACEOF
5987 #define HAVE_DECL_VSNPRINTF $ac_have_decl
5990 ac_fn_c_check_decl "$LINENO" "strtol
" "ac_cv_have_decl_strtol
" "$ac_includes_default"
5991 if test "x
$ac_cv_have_decl_strtol" = x""yes; then :
5997 cat >>confdefs.h <<_ACEOF
5998 #define HAVE_DECL_STRTOL $ac_have_decl
6000 ac_fn_c_check_decl "$LINENO" "strtoul
" "ac_cv_have_decl_strtoul
" "$ac_includes_default"
6001 if test "x
$ac_cv_have_decl_strtoul" = x""yes; then :
6007 cat >>confdefs.h <<_ACEOF
6008 #define HAVE_DECL_STRTOUL $ac_have_decl
6010 ac_fn_c_check_decl "$LINENO" "strtoll
" "ac_cv_have_decl_strtoll
" "$ac_includes_default"
6011 if test "x
$ac_cv_have_decl_strtoll" = x""yes; then :
6017 cat >>confdefs.h <<_ACEOF
6018 #define HAVE_DECL_STRTOLL $ac_have_decl
6020 ac_fn_c_check_decl "$LINENO" "strtoull
" "ac_cv_have_decl_strtoull
" "$ac_includes_default"
6021 if test "x
$ac_cv_have_decl_strtoull" = x""yes; then :
6027 cat >>confdefs.h <<_ACEOF
6028 #define HAVE_DECL_STRTOULL $ac_have_decl
6031 ac_fn_c_check_decl "$LINENO" "strverscmp
" "ac_cv_have_decl_strverscmp
" "$ac_includes_default"
6032 if test "x
$ac_cv_have_decl_strverscmp" = x""yes; then :
6038 cat >>confdefs.h <<_ACEOF
6039 #define HAVE_DECL_STRVERSCMP $ac_have_decl
6044 ac_fn_c_check_decl "$LINENO" "strerror
" "ac_cv_have_decl_strerror
" "$ac_includes_default"
6045 if test "x
$ac_cv_have_decl_strerror" = x""yes; then :
6051 cat >>confdefs.h <<_ACEOF
6052 #define HAVE_DECL_STRERROR $ac_have_decl
6054 ac_fn_c_check_decl "$LINENO" "perror
" "ac_cv_have_decl_perror
" "$ac_includes_default"
6055 if test "x
$ac_cv_have_decl_perror" = x""yes; then :
6061 cat >>confdefs.h <<_ACEOF
6062 #define HAVE_DECL_PERROR $ac_have_decl
6064 ac_fn_c_check_decl "$LINENO" "vasprintf
" "ac_cv_have_decl_vasprintf
" "$ac_includes_default"
6065 if test "x
$ac_cv_have_decl_vasprintf" = x""yes; then :
6071 cat >>confdefs.h <<_ACEOF
6072 #define HAVE_DECL_VASPRINTF $ac_have_decl
6074 ac_fn_c_check_decl "$LINENO" "vsnprintf
" "ac_cv_have_decl_vsnprintf
" "$ac_includes_default"
6075 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then :
6081 cat >>confdefs.h <<_ACEOF
6082 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6086 ac_fn_c_check_type "$LINENO" "socklen_t
" "ac_cv_type_socklen_t
" "#include <sys/types.h>
6087 #include <sys/socket.h>
6090 if test "x
$ac_cv_type_socklen_t" = x""yes; then :
6092 cat >>confdefs.h <<_ACEOF
6093 #define HAVE_SOCKLEN_T 1
6100 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t
" "ac_cv_type_Elf32_auxv_t
" "#include <elf.h>
6103 if test "x
$ac_cv_type_Elf32_auxv_t" = x""yes; then :
6105 cat >>confdefs.h <<_ACEOF
6106 #define HAVE_ELF32_AUXV_T 1
6111 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t
" "ac_cv_type_Elf64_auxv_t
" "#include <elf.h>
6114 if test "x
$ac_cv_type_Elf64_auxv_t" = x""yes; then :
6116 cat >>confdefs.h <<_ACEOF
6117 #define HAVE_ELF64_AUXV_T 1
6126 # Check whether --with-pkgversion was given.
6127 if test "${with_pkgversion+set}" = set; then :
6128 withval=$with_pkgversion; case "$withval" in
6129 yes) as_fn_error "package version not specified
" "$LINENO" 5 ;;
6131 *) PKGVERSION="($withval) " ;;
6142 # Check whether --with-bugurl was given.
6143 if test "${with_bugurl+set}" = set; then :
6144 withval=$with_bugurl; case "$withval" in
6145 yes) as_fn_error "bug URL not specified
" "$LINENO" 5 ;;
6148 *) BUGURL="$withval"
6152 BUGURL="http
://www.gnu.org
/software
/gdb
/bugs
/"
6162 REPORT_BUGS_TO="<$BUGURL>"
6163 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6170 cat >>confdefs.h <<_ACEOF
6171 #define PKGVERSION "$PKGVERSION"
6175 cat >>confdefs.h <<_ACEOF
6176 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6180 # Check for various supplementary target information (beyond the
6181 # triplet) which might affect the choices in configure.srv.
6183 i[34567]86-*-linux*)
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for x86-64
" >&5
6185 $as_echo_n "checking
if building
for x86-64...
" >&6; }
6186 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
6187 $as_echo_n "(cached
) " >&6
6189 save_CPPFLAGS="$CPPFLAGS"
6190 CPPFLAGS="$CPPFLAGS $CFLAGS"
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6199 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6200 $EGREP "got it
" >/dev/null 2>&1; then :
6201 gdb_cv_i386_is_x86_64=yes
6203 gdb_cv_i386_is_x86_64=no
6207 CPPFLAGS="$save_CPPFLAGS"
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_i386_is_x86_64" >&5
6210 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if building
for Coldfire
" >&5
6214 $as_echo_n "checking
if building
for Coldfire...
" >&6; }
6215 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
6216 $as_echo_n "(cached
) " >&6
6218 save_CPPFLAGS="$CPPFLAGS"
6219 CPPFLAGS="$CPPFLAGS $CFLAGS"
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6223 #ifdef __mcoldfire__
6228 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6229 $EGREP "got it
" >/dev/null 2>&1; then :
6230 gdb_cv_m68k_is_coldfire=yes
6232 gdb_cv_m68k_is_coldfire=no
6236 CPPFLAGS="$save_CPPFLAGS"
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_m68k_is_coldfire" >&5
6239 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
6243 . ${srcdir}/configure.srv
6245 # Add in the common host objects.
6246 . ${srcdir}/../common/common.host
6247 srv_host_obs="$common_host_obs"
6249 if test "${srv_mingwce}" = "yes"; then
6251 elif test "${srv_mingw}" = "yes"; then
6252 LIBS="$LIBS -lws2_32"
6253 elif test "${srv_qnx}" = "yes"; then
6254 LIBS="$LIBS -lsocket"
6255 elif test "${srv_lynxos}" = "yes"; then
6256 LIBS="$LIBS -lnetinet"
6259 if test "${srv_mingw}" = "yes"; then
6261 $as_echo "#define USE_WIN32API 1" >>confdefs.h
6265 if test "${srv_linux_usrregs}" = "yes"; then
6267 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
6271 if test "${srv_linux_regsets}" = "yes"; then
6273 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
6277 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
6278 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
6279 $as_echo_n "(cached) " >&6
6281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 #include <sys/ptrace.h>
6292 if ac_fn_c_try_compile
"$LINENO"; then :
6293 gdbsrv_cv_have_ptrace_getregs
=yes
6295 gdbsrv_cv_have_ptrace_getregs
=no
6297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
6301 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
6302 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
6304 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
6309 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
6310 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
6311 $as_echo_n "(cached) " >&6
6313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6315 #include <sys/ptrace.h>
6324 if ac_fn_c_try_compile
"$LINENO"; then :
6325 gdbsrv_cv_have_ptrace_getfpxregs
=yes
6327 gdbsrv_cv_have_ptrace_getfpxregs
=no
6329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
6333 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
6334 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
6336 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
6341 if test "${srv_linux_btrace}" = "yes"; then
6343 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
6347 if test "$ac_cv_header_sys_procfs_h" = yes; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
6349 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
6350 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6357 /* Needed for new procfs interface on sparc-solaris. */
6358 #define _STRUCTURED_PROC 1
6359 #include <sys/procfs.h>
6368 if ac_fn_c_try_compile
"$LINENO"; then :
6369 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
6371 bfd_cv_have_sys_procfs_type_lwpid_t
=no
6374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6377 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
6379 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
6383 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
6386 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
6387 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
6388 $as_echo_n "(cached) " >&6
6390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6394 /* Needed for new procfs interface on sparc-solaris. */
6395 #define _STRUCTURED_PROC 1
6396 #include <sys/procfs.h>
6405 if ac_fn_c_try_compile
"$LINENO"; then :
6406 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
6408 bfd_cv_have_sys_procfs_type_psaddr_t
=no
6411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6414 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
6416 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
6420 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
6423 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
6424 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
6425 $as_echo_n "(cached) " >&6
6427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6428 /* end confdefs.h. */
6431 /* Needed for new procfs interface on sparc-solaris. */
6432 #define _STRUCTURED_PROC 1
6433 #include <sys/procfs.h>
6442 if ac_fn_c_try_compile
"$LINENO"; then :
6443 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
6445 bfd_cv_have_sys_procfs_type_prgregset_t
=no
6448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6451 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
6453 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
6457 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
6460 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
6461 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
6462 $as_echo_n "(cached) " >&6
6464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6468 /* Needed for new procfs interface on sparc-solaris. */
6469 #define _STRUCTURED_PROC 1
6470 #include <sys/procfs.h>
6479 if ac_fn_c_try_compile
"$LINENO"; then :
6480 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
6482 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
6485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6488 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
6490 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
6494 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
6498 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
6500 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
6501 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
6502 $as_echo_n "(cached) " >&6
6504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6507 #include <thread_db.h>
6516 if ac_fn_c_try_compile
"$LINENO"; then :
6517 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
6519 gdbserver_cv_have_thread_db_type_lwpid_t
=no
6522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6525 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
6527 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
6531 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
6535 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
6537 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
6538 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
6539 $as_echo_n "(cached) " >&6
6541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6544 #include <thread_db.h>
6553 if ac_fn_c_try_compile
"$LINENO"; then :
6554 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
6556 gdbserver_cv_have_thread_db_type_psaddr_t
=no
6559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6562 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
6564 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
6568 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6574 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6575 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
6576 $as_echo_n "(cached) " >&6
6578 ac_check_lib_save_LIBS
=$LIBS
6580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6583 /* Override any GCC internal prototype to avoid an error.
6584 Use char because int might match the return type of a GCC
6585 builtin and then its argument prototype would still apply. */
6598 if ac_fn_c_try_link
"$LINENO"; then :
6599 ac_cv_lib_dl_dlopen
=yes
6601 ac_cv_lib_dl_dlopen
=no
6603 rm -f core conftest.err conftest.
$ac_objext \
6604 conftest
$ac_exeext conftest.
$ac_ext
6605 LIBS
=$ac_check_lib_save_LIBS
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6608 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6609 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
6610 cat >>confdefs.h
<<_ACEOF
6611 #define HAVE_LIBDL 1
6620 srv_thread_depfiles
=
6623 if test "$srv_linux_thread_db" = "yes"; then
6624 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
6627 $as_echo_n "checking for the dynamic export flag... " >&6; }
6628 old_LDFLAGS
="$LDFLAGS"
6629 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
6631 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
6632 LDFLAGS
="$LDFLAGS $RDYNAMIC"
6633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6644 if ac_fn_c_try_link
"$LINENO"; then :
6645 found
="-Wl,--dynamic-list"
6646 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
6648 RDYNAMIC
="-rdynamic"
6649 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
6650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6651 /* end confdefs.h. */
6661 if ac_fn_c_try_link
"$LINENO"; then :
6667 rm -f core conftest.err conftest.
$ac_objext \
6668 conftest
$ac_exeext conftest.
$ac_ext
6670 rm -f core conftest.err conftest.
$ac_objext \
6671 conftest
$ac_exeext conftest.
$ac_ext
6673 LDFLAGS
="$old_LDFLAGS"
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
6675 $as_echo "$found" >&6; }
6677 srv_libs
="-lthread_db"
6680 srv_thread_depfiles
="thread-db.o proc-service.o"
6682 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
6685 $as_echo_n "checking for TD_VERSION... " >&6; }
6686 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
6687 $as_echo_n "(cached) " >&6
6689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6690 /* end confdefs.h. */
6691 #include <thread_db.h>
6700 if ac_fn_c_try_compile
"$LINENO"; then :
6701 gdbsrv_cv_have_td_version
=yes
6703 gdbsrv_cv_have_td_version
=no
6705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
6708 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
6709 if test $gdbsrv_cv_have_td_version = yes; then
6711 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
6717 # Check whether --with-libthread-db was given.
6718 if test "${with_libthread_db+set}" = set; then :
6719 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
6720 srv_libs
="$srv_libthread_db_path"
6725 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
6727 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
6731 if test "$srv_xmlfiles" != ""; then
6732 srv_xmlbuiltin
="xml-builtin.o"
6734 $as_echo "#define USE_XML 1" >>confdefs.h
6737 tmp_xmlfiles
=$srv_xmlfiles
6739 for f
in $tmp_xmlfiles; do
6740 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
6744 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs"
6745 GDBSERVER_LIBS
="$srv_libs"
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
6748 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
6749 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
6750 $as_echo_n "(cached) " >&6
6753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6759 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
6764 if ac_fn_c_try_link
"$LINENO"; then :
6765 gdbsrv_cv_have_sync_builtins
=yes
6767 gdbsrv_cv_have_sync_builtins
=no
6769 rm -f core conftest.err conftest.
$ac_objext \
6770 conftest
$ac_exeext conftest.
$ac_ext
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
6773 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
6774 if test $gdbsrv_cv_have_sync_builtins = yes; then
6776 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
6780 saved_cflags
="$CFLAGS"
6781 CFLAGS
="$CFLAGS -fvisibility=hidden"
6782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6793 if ac_fn_c_try_compile
"$LINENO"; then :
6794 gdbsrv_cv_have_visibility_hidden
=yes
6796 gdbsrv_cv_have_visibility_hidden
=no
6798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6799 CFLAGS
="$saved_cflags"
6801 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
6803 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
6809 cat >>confdefs.h
<<_ACEOF
6810 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
6814 if test "$cross_compiling" = yes; then :
6815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6817 #include <sys/personality.h>
6822 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
6823 # define ADDR_NO_RANDOMIZE 0x0040000
6825 /* Test the flag could be set and stays set. */
6826 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
6827 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
6833 if ac_fn_c_try_link
"$LINENO"; then :
6834 gdbsrv_cv_have_personality
=true
6836 gdbsrv_cv_have_personality
=false
6838 rm -f core conftest.err conftest.
$ac_objext \
6839 conftest
$ac_exeext conftest.
$ac_ext
6841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6843 #include <sys/personality.h>
6848 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
6849 # define ADDR_NO_RANDOMIZE 0x0040000
6851 /* Test the flag could be set and stays set. */
6852 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
6853 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
6859 if ac_fn_c_try_run
"$LINENO"; then :
6860 gdbsrv_cv_have_personality
=true
6862 gdbsrv_cv_have_personality
=false
6864 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6865 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6868 if $gdbsrv_cv_have_personality
6871 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
6879 # check whether to enable the inprocess agent
6880 if test "$ipa_obj" != "" \
6881 -a "$gdbsrv_cv_have_sync_builtins" = yes \
6882 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
6888 # Check whether --enable-inprocess-agent was given.
6889 if test "${enable_inprocess_agent+set}" = set; then :
6890 enableval
=$enable_inprocess_agent; case "$enableval" in
6891 yes) want_ipa
=true
;;
6892 no
) want_ipa
=false
;;
6893 *) as_fn_error
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
6902 IPA_DEPFILES
="$ipa_obj"
6903 extra_libraries
="$extra_libraries libinproctrace.so"
6905 as_fn_error
"inprocess agent not supported for this target" "$LINENO" 5
6916 GNULIB
=build-gnulib-gdbserver
/import
6919 if test x
"$STDINT_H" != x
; then
6920 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
6924 ac_config_files
="$ac_config_files Makefile"
6926 ac_config_commands
="$ac_config_commands default"
6928 cat >confcache
<<\_ACEOF
6929 # This file is a shell script that caches the results of configure
6930 # tests run on this system so they can be shared between configure
6931 # scripts and configure runs, see configure's option --config-cache.
6932 # It is not useful on other systems. If it contains results you don't
6933 # want to keep, you may remove or edit it.
6935 # config.status only pays attention to the cache file if you give it
6936 # the --recheck option to rerun configure.
6938 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6939 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6944 # The following way of writing the cache mishandles newlines in values,
6945 # but we know of no workaround that is simple, portable, and efficient.
6946 # So, we kill variables containing newlines.
6947 # Ultrix sh set writes to stderr and can't be redirected directly,
6948 # and sets the high bit in the cache file unless we assign to the vars.
6950 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6951 eval ac_val
=\$
$ac_var
6955 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6956 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6959 _ | IFS | as_nl
) ;; #(
6960 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6961 *) { eval $ac_var=; unset $ac_var;} ;;
6967 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6968 *${as_nl}ac_space
=\
*)
6969 # `set' does not quote correctly, so add quotes: double-quote
6970 # substitution turns \\\\ into \\, and sed turns \\ into \.
6973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6976 # `set' quotes correctly as required by POSIX, so do not add quotes.
6977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6986 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6988 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6990 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6991 if test -w "$cache_file"; then
6992 test "x$cache_file" != "x/dev/null" &&
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6994 $as_echo "$as_me: updating cache $cache_file" >&6;}
6995 cat confcache
>$cache_file
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6998 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7003 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7004 # Let make expand exec_prefix.
7005 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7007 DEFS
=-DHAVE_CONFIG_H
7011 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7012 # 1. Remove the extension, and $U if already installed.
7013 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7014 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7015 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7016 # will be set to the directory where LIBOBJS objects are built.
7017 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7018 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7022 LTLIBOBJS
=$ac_ltlibobjs
7025 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7026 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
7027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7029 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
7030 as_fn_error
"conditional \"GMAKE\" was never defined.
7031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7034 : ${CONFIG_STATUS=./config.status}
7036 ac_clean_files_save
=$ac_clean_files
7037 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7039 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7041 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7043 # Generated by $as_me.
7044 # Run this file to recreate the current configuration.
7045 # Compiler output produced by configure, useful for debugging
7046 # configure, is in config.log if it exists.
7052 SHELL=\${CONFIG_SHELL-$SHELL}
7055 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7056 ## -------------------- ##
7057 ## M4sh Initialization. ##
7058 ## -------------------- ##
7060 # Be more Bourne compatible
7061 DUALCASE
=1; export DUALCASE
# for MKS sh
7062 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7065 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7066 # is contrary to our usage. Disable this feature.
7067 alias -g '${1+"$@"}'='"$@"'
7068 setopt NO_GLOB_SUBST
7070 case `(set -o) 2>/dev/null` in #(
7082 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7083 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7084 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7085 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7086 # Prefer a ksh shell builtin over an external printf program on Solaris,
7087 # but without wasting forks for bash or zsh.
7088 if test -z "$BASH_VERSION$ZSH_VERSION" \
7089 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7090 as_echo='print
-r --'
7091 as_echo_n='print
-rn --'
7092 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7093 as_echo='printf %s
\n'
7094 as_echo_n='printf %s
'
7096 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7097 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7098 as_echo_n='/usr
/ucb
/echo -n'
7100 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7101 as_echo_n_body='eval
7105 expr "X$arg" : "X\\(.*\\)$as_nl";
7106 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7108 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7110 export as_echo_n_body
7111 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7114 as_echo='sh
-c $as_echo_body as_echo
'
7117 # The user is always right.
7118 if test "${PATH_SEPARATOR+set}" != set; then
7120 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7121 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7128 # We need space, tab and new line, in precisely that order. Quoting is
7129 # there to prevent editors from complaining about space-tab.
7130 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7131 # splitting by setting IFS to empty value.)
7134 # Find who we are. Look in the path if we contain no directory separator.
7136 *[\\/]* ) as_myself=$0 ;;
7137 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 test -z "$as_dir" && as_dir=.
7142 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7148 # We did not find ourselves, most probably we were run as `sh COMMAND'
7149 # in which case we are not to be found in the path.
7150 if test "x$as_myself" = x
; then
7153 if test ! -f "$as_myself"; then
7154 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7158 # Unset variables that we do not need and which cause bugs (e.g. in
7159 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7160 # suppresses any "Segmentation fault" message there. '((' could
7161 # trigger a bug in pdksh 5.2.14.
7162 for as_var
in BASH_ENV ENV MAIL MAILPATH
7163 do eval test x\
${$as_var+set} = xset \
7164 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7177 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7180 # as_fn_error ERROR [LINENO LOG_FD]
7181 # ---------------------------------
7182 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7183 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7184 # script with status $?, using 1 if that was 0.
7187 as_status
=$?
; test $as_status -eq 0 && as_status
=1
7189 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7190 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7192 $as_echo "$as_me: error: $1" >&2
7193 as_fn_exit
$as_status
7197 # as_fn_set_status STATUS
7198 # -----------------------
7199 # Set $? to STATUS, without forking.
7203 } # as_fn_set_status
7207 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7217 # Portably unset VAR.
7220 { eval $1=; unset $1;}
7222 as_unset
=as_fn_unset
7223 # as_fn_append VAR VALUE
7224 # ----------------------
7225 # Append the text in VALUE to the end of the definition contained in VAR. Take
7226 # advantage of any shell optimizations that allow amortized linear growth over
7227 # repeated appends, instead of the typical quadratic growth present in naive
7229 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7230 eval 'as_fn_append ()
7241 # as_fn_arith ARG...
7242 # ------------------
7243 # Perform arithmetic evaluation on the ARGs, and store the result in the
7244 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7245 # must be portable across $(()) and expr.
7246 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7247 eval 'as_fn_arith ()
7254 as_val
=`expr "$@" || test $? -eq 1`
7259 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7260 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7266 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7267 as_basename
=basename
7272 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7278 as_me
=`$as_basename -- "$0" ||
7279 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7280 X"$0" : 'X\(//\)$' \| \
7281 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7283 sed '/^.*\/\([^/][^/]*\)\/*$/{
7297 # Avoid depending upon Character Ranges.
7298 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7299 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7300 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7301 as_cr_digits
='0123456789'
7302 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7304 ECHO_C
= ECHO_N
= ECHO_T
=
7305 case `echo -n x` in #(((((
7307 case `echo 'xy\c'` in
7308 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7310 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7317 rm -f conf$$ conf$$.exe conf$$.
file
7318 if test -d conf$$.dir
; then
7319 rm -f conf$$.dir
/conf$$.
file
7322 mkdir conf$$.dir
2>/dev
/null
7324 if (echo >conf$$.
file) 2>/dev
/null
; then
7325 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7327 # ... but there are two gotchas:
7328 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7329 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7330 # In both cases, we have to default to `cp -p'.
7331 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7333 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7341 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7342 rmdir conf$$.dir
2>/dev
/null
7347 # Create "$as_dir" as a directory, including parents if necessary.
7352 -*) as_dir
=.
/$as_dir;;
7354 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7358 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7359 *) as_qdir
=$as_dir;;
7361 as_dirs
="'$as_qdir' $as_dirs"
7362 as_dir
=`$as_dirname -- "$as_dir" ||
7363 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7364 X"$as_dir" : 'X\(//\)[^/]' \| \
7365 X"$as_dir" : 'X\(//\)$' \| \
7366 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7367 $as_echo X"$as_dir" |
7368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7385 test -d "$as_dir" && break
7387 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7388 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
7392 if mkdir
-p .
2>/dev
/null
; then
7393 as_mkdir_p
='mkdir -p "$as_dir"'
7395 test -d .
/-p && rmdir .
/-p
7399 if test -x / >/dev
/null
2>&1; then
7402 if ls -dL / >/dev
/null
2>&1; then
7409 if test -d "$1"; then
7415 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7416 ???[sx]*):;;*)false;;esac;fi
7420 as_executable_p
=$as_test_x
7422 # Sed expression to map a string onto a valid CPP name.
7423 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7425 # Sed expression to map a string onto a valid variable name.
7426 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7430 ## ----------------------------------- ##
7431 ## Main body of $CONFIG_STATUS script. ##
7432 ## ----------------------------------- ##
7434 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7437 # Save the log message, to keep $0 and so on meaningful, and to
7438 # report actual input values of CONFIG_FILES etc. instead of their
7439 # values after options handling.
7441 This file was extended by $as_me, which was
7442 generated by GNU Autoconf 2.64. Invocation command line was
7444 CONFIG_FILES = $CONFIG_FILES
7445 CONFIG_HEADERS = $CONFIG_HEADERS
7446 CONFIG_LINKS = $CONFIG_LINKS
7447 CONFIG_COMMANDS = $CONFIG_COMMANDS
7450 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7455 case $ac_config_files in *"
7456 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7459 case $ac_config_headers in *"
7460 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7465 # Files that config.status was made for.
7466 config_files="$ac_config_files"
7467 config_headers="$ac_config_headers"
7468 config_commands="$ac_config_commands"
7472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7474 \`$as_me' instantiates files and other configuration actions
7475 from templates according to the current configuration. Unless the files
7476 and actions are specified as TAGs, all are instantiated by default.
7478 Usage: $0 [OPTION]... [TAG]...
7480 -h, --help print this help, then exit
7481 -V, --version print version number and configuration settings, then exit
7482 -q, --quiet, --silent
7483 do not print progress messages
7484 -d, --debug don't remove temporary files
7485 --recheck update $as_me by reconfiguring in the same conditions
7486 --file=FILE[:TEMPLATE]
7487 instantiate the configuration file FILE
7488 --header=FILE[:TEMPLATE]
7489 instantiate the configuration header FILE
7491 Configuration files:
7494 Configuration headers:
7497 Configuration commands:
7500 Report bugs to the package provider."
7503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7506 configured by $0, generated by GNU Autoconf 2.64,
7507 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7509 Copyright (C) 2009 Free Software Foundation, Inc.
7510 This config.status script is free software; the Free Software Foundation
7511 gives unlimited permission to copy, distribute and modify it."
7516 test -n "\$AWK" || AWK=awk
7519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7520 # The default lists apply if the user does not specify any file.
7526 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7527 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7538 # Handling of the options.
7539 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7541 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7542 $as_echo "$ac_cs_version"; exit ;;
7543 --debug |
--debu |
--deb |
--de |
--d |
-d )
7545 --file |
--fil |
--fi |
--f )
7548 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7550 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7551 ac_need_defaults
=false
;;
7552 --header |
--heade |
--head |
--hea )
7555 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7557 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7558 ac_need_defaults
=false
;;
7560 # Conflict between --help and --header
7561 as_fn_error
"ambiguous option: \`$1'
7562 Try \`$0 --help' for more information.";;
7563 --help |
--hel |
-h )
7564 $as_echo "$ac_cs_usage"; exit ;;
7565 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7566 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7570 -*) as_fn_error
"unrecognized option: \`$1'
7571 Try \`$0 --help' for more information." ;;
7573 *) as_fn_append ac_config_targets
" $1"
7574 ac_need_defaults
=false
;;
7580 ac_configure_extra_args
=
7582 if $ac_cs_silent; then
7584 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7589 if \$ac_cs_recheck; then
7590 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7592 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7593 CONFIG_SHELL='$SHELL'
7599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7603 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7604 ## Running $as_me. ##
7610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7614 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
7618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7620 # Handling of arguments.
7621 for ac_config_target
in $ac_config_targets
7623 case $ac_config_target in
7624 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
7625 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
7626 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7627 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
7629 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7634 # If the user did not use the arguments to specify the items to instantiate,
7635 # then the envvar interface is used. Set only those that are not.
7636 # We use the long form for the default assignment because of an extremely
7637 # bizarre bug on SunOS 4.1.3.
7638 if $ac_need_defaults; then
7639 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7640 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7641 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7644 # Have a temporary directory for convenience. Make it in the build tree
7645 # simply because there is no reason against having it here, and in addition,
7646 # creating and moving files from /tmp can sometimes cause problems.
7647 # Hook for its removal unless debugging.
7648 # Note that there is a small window in which the directory will not be cleaned:
7649 # after its creation but before its name has been assigned to `$tmp'.
7653 trap 'exit_status=$?
7654 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7656 trap 'as_fn_exit 1' 1 2 13 15
7658 # Create a (secure) tmp directory for tmp files.
7661 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7662 test -n "$tmp" && test -d "$tmp"
7665 tmp
=.
/conf$$
-$RANDOM
7666 (umask 077 && mkdir
"$tmp")
7667 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
7669 # Set up the scripts for CONFIG_FILES section.
7670 # No need to generate them if there are no CONFIG_FILES.
7671 # This happens for instance with `./config.status config.h'.
7672 if test -n "$CONFIG_FILES"; then
7675 ac_cr
=`echo X | tr X '\015'`
7676 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7677 # But we know of no other shell where ac_cr would be empty at this
7678 # point, so we can use a bashism as a fallback.
7679 if test "x$ac_cr" = x
; then
7680 eval ac_cr
=\$
\'\\r
\'
7682 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7683 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7689 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7694 echo "cat >conf$$subs.awk <<_ACEOF" &&
7695 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7698 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
7699 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7701 for ac_last_try in false false false false false :; do
7702 . ./conf$$subs.sh ||
7703 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
7705 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7706 if test $ac_delim_n = $ac_delim_num; then
7708 elif $ac_last_try; then
7709 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
7711 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7717 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
7721 s/^/S["/; s
/!.
*/"]=/
7731 s/\(.\{148\}\).*/\1/
7733 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7738 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7745 s/\(.\{148\}\).*/\1/
7747 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7751 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7756 ' <conf$$subs.awk | sed '
7761 ' >>$CONFIG_STATUS || ac_write_fail=1
7762 rm -f conf$$subs.awk
7763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7765 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
7766 for (key in S) S_is_set[key] = 1
7772 nfields = split(line, field, "@
")
7774 len = length(field[1])
7775 for (i = 2; i < nfields; i++) {
7777 keylen = length(key)
7778 if (S_is_set[key]) {
7780 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7781 len += length(value) + length(field[++i])
7792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7793 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7794 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7797 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
7798 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
7801 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7802 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
7803 # trailing colons and then remove the whole line if VPATH becomes empty
7804 # (actually we leave an empty line to preserve line numbers).
7805 if test "x
$srcdir" = x.; then
7806 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7810 s/^\([^=]*=[ ]*\):*/\1/
7816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7817 fi # test -n "$CONFIG_FILES"
7819 # Set up the scripts for CONFIG_HEADERS section.
7820 # No need to generate them if there are no CONFIG_HEADERS.
7821 # This happens for instance with `./config.status Makefile'.
7822 if test -n "$CONFIG_HEADERS"; then
7823 cat >"$tmp/defines.
awk" <<\_ACAWK ||
7827 # Transform confdefs.h into an awk script `defines.awk', embedded as
7828 # here-document in config.status, that substitutes the proper values into
7829 # config.h.in to produce config.h.
7831 # Create a delimiter string that does not exist in confdefs.h, to ease
7832 # handling of long lines.
7834 for ac_last_try in false false :; do
7835 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
7836 if test -z "$ac_t"; then
7838 elif $ac_last_try; then
7839 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
7841 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7845 # For the awk script, D is an array of macro values keyed by name,
7846 # likewise P contains macro parameters if any. Preserve backslash
7847 # newline sequences.
7849 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7851 s/.\{148\}/&'"$ac_delim"'/g
7854 s/^[ ]*#[ ]*define[ ][ ]*/ /
7861 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7863 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7867 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7868 D["\
1"]=" \
3\\\\\\n
"\\/p
7870 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7875 s/.\{148\}/&'"$ac_delim"'/g
7880 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7883 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7885 ' <confdefs.h | sed '
7886 s/'"$ac_delim"'/"\\\
7887 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7890 for (key in D) D_is_set[key] = 1
7893 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7895 split(line, arg, " ")
7896 if (arg[1] == "#") {
7900 defundef
= substr
(arg
[1], 2)
7903 split(mac1
, mac2
, "(") #)
7905 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7906 if (D_is_set
[macro
]) {
7907 # Preserve the white space surrounding the "#".
7908 print prefix
"define", macro P
[macro
] D
[macro
]
7911 # Replace #undef with comments. This is necessary, for example,
7912 # in the case of _POSIX_SOURCE, which is predefined and required
7913 # on some systems where configure will not decide to define it.
7914 if (defundef
== "undef") {
7915 print
"/*", prefix defundef
, macro
, "*/"
7923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7924 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
7925 fi # test -n "$CONFIG_HEADERS"
7928 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7933 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7935 case $ac_mode$ac_tag in
7937 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7938 :[FH
]-) ac_tag
=-:-;;
7939 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7956 -) ac_f
="$tmp/stdin";;
7957 *) # Look for the file first in the build tree, then in the source tree
7958 # (if the path is not absolute). The absolute path cannot be DOS-style,
7959 # because $ac_f cannot contain `:'.
7963 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7965 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
7967 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7968 as_fn_append ac_file_inputs
" '$ac_f'"
7971 # Let's still pretend it is `configure' which instantiates (i.e., don't
7972 # use $as_me), people would be surprised to read:
7973 # /* config.h. Generated by config.status. */
7974 configure_input
='Generated from '`
7975 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7977 if test x
"$ac_file" != x-
; then
7978 configure_input
="$ac_file. $configure_input"
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7980 $as_echo "$as_me: creating $ac_file" >&6;}
7982 # Neutralize special characters interpreted by sed in replacement strings.
7983 case $configure_input in #(
7984 *\
&* |
*\|
* |
*\\* )
7985 ac_sed_conf_input
=`$as_echo "$configure_input" |
7986 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7987 *) ac_sed_conf_input
=$configure_input;;
7991 *:-:* |
*:-) cat >"$tmp/stdin" \
7992 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
7997 ac_dir
=`$as_dirname -- "$ac_file" ||
7998 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7999 X"$ac_file" : 'X\(//\)[^/]' \| \
8000 X"$ac_file" : 'X\(//\)$' \| \
8001 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8002 $as_echo X"$ac_file" |
8003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8020 as_dir
="$ac_dir"; as_fn_mkdir_p
8024 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8026 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8027 # A ".." for each directory in $ac_dir_suffix.
8028 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8029 case $ac_top_builddir_sub in
8030 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8031 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8034 ac_abs_top_builddir
=$ac_pwd
8035 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8036 # for backward compatibility:
8037 ac_top_builddir
=$ac_top_build_prefix
8040 .
) # We are building in place.
8042 ac_top_srcdir
=$ac_top_builddir_sub
8043 ac_abs_top_srcdir
=$ac_pwd ;;
8044 [\\/]* | ?
:[\\/]* ) # Absolute name.
8045 ac_srcdir
=$srcdir$ac_dir_suffix;
8046 ac_top_srcdir
=$srcdir
8047 ac_abs_top_srcdir
=$srcdir ;;
8049 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8050 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8051 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8053 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8063 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8064 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8069 # If the template does not know about datarootdir, expand it.
8070 # FIXME: This hack should be removed a few years after 2.60.
8071 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8082 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8083 *datarootdir
*) ac_datarootdir_seen
=yes;;
8084 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8086 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8089 ac_datarootdir_hack='
8090 s&@datadir@&$datadir&g
8091 s&@docdir@&$docdir&g
8092 s&@infodir@&$infodir&g
8093 s&@localedir@&$localedir&g
8094 s&@mandir@&$mandir&g
8095 s&\\\${datarootdir}&$datarootdir&g' ;;
8099 # Neutralize VPATH when `$srcdir' = `.'.
8100 # Shell code in configure.ac might set extrasub.
8101 # FIXME: do we really want to maintain this feature?
8102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8103 ac_sed_extra="$ac_vpsub
8106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8108 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8109 s|@configure_input@|
$ac_sed_conf_input|
;t t
8110 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8111 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8112 s
&@srcdir@
&$ac_srcdir&;t t
8113 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8114 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8115 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8116 s
&@builddir@
&$ac_builddir&;t t
8117 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8118 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8119 s
&@INSTALL@
&$ac_INSTALL&;t t
8120 $ac_datarootdir_hack
8122 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
8123 || as_fn_error "could not create
$ac_file" "$LINENO" 5
8125 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8126 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8127 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8129 which seems to be undefined. Please make sure it is defined." >&5
8130 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8131 which seems to be undefined. Please make sure it is defined." >&2;}
8135 -) cat "$tmp/out" && rm -f "$tmp/out";;
8136 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8138 || as_fn_error "could not create $ac_file" "$LINENO" 5
8144 if test x"$ac_file" != x-; then
8146 $as_echo "/* $configure_input */" \
8147 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8148 } >"$tmp/config.h" \
8149 || as_fn_error "could not create $ac_file" "$LINENO" 5
8150 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8152 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8155 mv "$tmp/config.h" "$ac_file" \
8156 || as_fn_error "could not create $ac_file" "$LINENO" 5
8159 $as_echo "/* $configure_input */" \
8160 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8161 || as_fn_error "could not create -" "$LINENO" 5
8165 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8166 $as_echo "$as_me: executing $ac_file commands" >&6;}
8171 case $ac_file$ac_mode in
8172 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8173 "default":C) case x$CONFIG_HEADERS in
8174 xconfig.h:config.in)
8185 ac_clean_files=$ac_clean_files_save
8187 test $ac_write_fail = 0 ||
8188 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8191 # configure is writing to config.log, and then calls config.status.
8192 # config.status does its own redirection, appending to config.log.
8193 # Unfortunately, on DOS this fails, as config.log is still kept open
8194 # by configure, so config.status won't be able to
write to it
; its
8195 # output is simply discarded. So we exec the FD to /dev/null,
8196 # effectively closing config.log, so it can be properly (re)opened and
8197 # appended to by config.status. When coming back to configure, we
8198 # need to make the FD available again.
8199 if test "$no_create" != yes; then
8201 ac_config_status_args
=
8202 test "$silent" = yes &&
8203 ac_config_status_args
="$ac_config_status_args --quiet"
8205 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8207 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8208 # would make configure fail if this is the last instruction.
8209 $ac_cs_success || as_fn_exit $?
8211 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8213 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}