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
643 MAINTAINER_MODE_FALSE
672 program_transform_name
685 enable_option_checking
686 enable_maintainer_mode
695 enable_inprocess_agent
697 ac_precious_vars
='build_alias
708 # Initialize some variables set by options.
710 ac_init_version
=false
711 ac_unrecognized_opts
=
713 # The variables have the same names as the options, with
714 # dashes changed to underlines.
722 program_transform_name
=s
,x
,x
,
730 # Installation directory options.
731 # These are left unexpanded so users can "make install exec_prefix=/foo"
732 # and all the variables that are supposed to be based on exec_prefix
733 # by default will actually change.
734 # Use braces instead of parens because sh, perl, etc. also accept them.
735 # (The list follows the same order as the GNU Coding Standards.)
736 bindir
='${exec_prefix}/bin'
737 sbindir
='${exec_prefix}/sbin'
738 libexecdir
='${exec_prefix}/libexec'
739 datarootdir
='${prefix}/share'
740 datadir
='${datarootdir}'
741 sysconfdir
='${prefix}/etc'
742 sharedstatedir
='${prefix}/com'
743 localstatedir
='${prefix}/var'
744 includedir
='${prefix}/include'
745 oldincludedir
='/usr/include'
746 docdir
='${datarootdir}/doc/${PACKAGE}'
747 infodir
='${datarootdir}/info'
752 libdir
='${exec_prefix}/lib'
753 localedir
='${datarootdir}/locale'
754 mandir
='${datarootdir}/man'
760 # If the previous option needs an argument, assign it.
761 if test -n "$ac_prev"; then
762 eval $ac_prev=\
$ac_option
768 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
772 # Accept the important Cygnus configure options, so we can diagnose typos.
774 case $ac_dashdash$ac_option in
778 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
780 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
783 -build |
--build |
--buil |
--bui |
--bu)
784 ac_prev
=build_alias
;;
785 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
786 build_alias
=$ac_optarg ;;
788 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
789 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
790 ac_prev
=cache_file
;;
791 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
792 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
793 cache_file
=$ac_optarg ;;
796 cache_file
=config.cache
;;
798 -datadir |
--datadir |
--datadi |
--datad)
800 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
801 datadir
=$ac_optarg ;;
803 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
804 |
--dataroo |
--dataro |
--datar)
805 ac_prev
=datarootdir
;;
806 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
807 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
808 datarootdir
=$ac_optarg ;;
810 -disable-* |
--disable-*)
811 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
812 # Reject names that are not valid shell variable names.
813 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
814 as_fn_error
"invalid feature name: $ac_useropt"
815 ac_useropt_orig
=$ac_useropt
816 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
817 case $ac_user_opts in
821 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
822 ac_unrecognized_sep
=', ';;
824 eval enable_
$ac_useropt=no
;;
826 -docdir |
--docdir |
--docdi |
--doc |
--do)
828 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
831 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
833 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
836 -enable-* |
--enable-*)
837 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
840 as_fn_error
"invalid feature name: $ac_useropt"
841 ac_useropt_orig
=$ac_useropt
842 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
843 case $ac_user_opts in
847 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
848 ac_unrecognized_sep
=', ';;
850 eval enable_
$ac_useropt=\
$ac_optarg ;;
852 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
853 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
854 |
--exec |
--exe |
--ex)
855 ac_prev
=exec_prefix
;;
856 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
857 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
858 |
--exec=* |
--exe=* |
--ex=*)
859 exec_prefix
=$ac_optarg ;;
861 -gas |
--gas |
--ga |
--g)
862 # Obsolete; use --with-gas.
865 -help |
--help |
--hel |
--he |
-h)
867 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
868 ac_init_help
=recursive
;;
869 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
870 ac_init_help
=short
;;
872 -host |
--host |
--hos |
--ho)
873 ac_prev
=host_alias
;;
874 -host=* |
--host=* |
--hos=* |
--ho=*)
875 host_alias
=$ac_optarg ;;
877 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
879 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
881 htmldir
=$ac_optarg ;;
883 -includedir |
--includedir |
--includedi |
--included |
--include \
884 |
--includ |
--inclu |
--incl |
--inc)
885 ac_prev
=includedir
;;
886 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
887 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
888 includedir
=$ac_optarg ;;
890 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
892 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
893 infodir
=$ac_optarg ;;
895 -libdir |
--libdir |
--libdi |
--libd)
897 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
900 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
901 |
--libexe |
--libex |
--libe)
902 ac_prev
=libexecdir
;;
903 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
904 |
--libexe=* |
--libex=* |
--libe=*)
905 libexecdir
=$ac_optarg ;;
907 -localedir |
--localedir |
--localedi |
--localed |
--locale)
909 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
910 localedir
=$ac_optarg ;;
912 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
913 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
914 ac_prev
=localstatedir
;;
915 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
916 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
917 localstatedir
=$ac_optarg ;;
919 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
921 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
925 # Obsolete; use --without-fp.
928 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
929 |
--no-cr |
--no-c |
-n)
932 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
933 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
936 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
937 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
938 |
--oldin |
--oldi |
--old |
--ol |
--o)
939 ac_prev
=oldincludedir
;;
940 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
941 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
942 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
943 oldincludedir
=$ac_optarg ;;
945 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
947 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
950 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
951 |
--program-pre |
--program-pr |
--program-p)
952 ac_prev
=program_prefix
;;
953 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
954 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
955 program_prefix
=$ac_optarg ;;
957 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
958 |
--program-suf |
--program-su |
--program-s)
959 ac_prev
=program_suffix
;;
960 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
961 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
962 program_suffix
=$ac_optarg ;;
964 -program-transform-name |
--program-transform-name \
965 |
--program-transform-nam |
--program-transform-na \
966 |
--program-transform-n |
--program-transform- \
967 |
--program-transform |
--program-transfor \
968 |
--program-transfo |
--program-transf \
969 |
--program-trans |
--program-tran \
970 |
--progr-tra |
--program-tr |
--program-t)
971 ac_prev
=program_transform_name
;;
972 -program-transform-name=* |
--program-transform-name=* \
973 |
--program-transform-nam=* |
--program-transform-na=* \
974 |
--program-transform-n=* |
--program-transform-=* \
975 |
--program-transform=* |
--program-transfor=* \
976 |
--program-transfo=* |
--program-transf=* \
977 |
--program-trans=* |
--program-tran=* \
978 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
979 program_transform_name
=$ac_optarg ;;
981 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
983 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
986 -psdir |
--psdir |
--psdi |
--psd |
--ps)
988 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
991 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
992 |
-silent |
--silent |
--silen |
--sile |
--sil)
995 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
997 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
999 sbindir
=$ac_optarg ;;
1001 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1002 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1003 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1005 ac_prev
=sharedstatedir
;;
1006 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1007 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1008 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1010 sharedstatedir
=$ac_optarg ;;
1012 -site |
--site |
--sit)
1014 -site=* |
--site=* |
--sit=*)
1017 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1019 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1020 srcdir
=$ac_optarg ;;
1022 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1023 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1024 ac_prev
=sysconfdir
;;
1025 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1026 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1027 sysconfdir
=$ac_optarg ;;
1029 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1030 ac_prev
=target_alias
;;
1031 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1032 target_alias
=$ac_optarg ;;
1034 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1037 -version |
--version |
--versio |
--versi |
--vers |
-V)
1038 ac_init_version
=: ;;
1041 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1044 as_fn_error
"invalid package name: $ac_useropt"
1045 ac_useropt_orig
=$ac_useropt
1046 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1051 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1052 ac_unrecognized_sep
=', ';;
1054 eval with_
$ac_useropt=\
$ac_optarg ;;
1056 -without-* |
--without-*)
1057 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1060 as_fn_error
"invalid package name: $ac_useropt"
1061 ac_useropt_orig
=$ac_useropt
1062 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1067 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1068 ac_unrecognized_sep
=', ';;
1070 eval with_
$ac_useropt=no
;;
1073 # Obsolete; use --with-x.
1076 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1077 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1078 ac_prev
=x_includes
;;
1079 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1080 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1081 x_includes
=$ac_optarg ;;
1083 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1084 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1085 ac_prev
=x_libraries
;;
1086 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1087 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1088 x_libraries
=$ac_optarg ;;
1090 -*) as_fn_error
"unrecognized option: \`$ac_option'
1091 Try \`$0 --help' for more information."
1095 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1096 # Reject names that are not valid shell variable names.
1097 case $ac_envvar in #(
1098 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1099 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1101 eval $ac_envvar=\
$ac_optarg
1102 export $ac_envvar ;;
1105 # FIXME: should be removed in autoconf 3.0.
1106 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1108 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1115 if test -n "$ac_prev"; then
1116 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1117 as_fn_error
"missing argument to $ac_option"
1120 if test -n "$ac_unrecognized_opts"; then
1121 case $enable_option_checking in
1123 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1124 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1128 # Check all directory arguments for consistency.
1129 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1134 eval ac_val
=\$
$ac_var
1135 # Remove trailing slashes.
1138 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1139 eval $ac_var=\
$ac_val;;
1141 # Be sure to have absolute directory names.
1143 [\\/$
]* | ?
:[\\/]* ) continue;;
1144 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1146 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1154 target
=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x
; then
1158 if test "x$build_alias" = x
; then
1159 cross_compiling
=maybe
1160 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1168 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1170 test "$silent" = yes && exec 6>/dev
/null
1173 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di
=`ls -di .` &&
1175 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1176 as_fn_error
"working directory cannot be determined"
1177 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1178 as_fn_error
"pwd does not report name of working directory"
1181 # Find the source files, if location was not specified.
1182 if test -z "$srcdir"; then
1183 ac_srcdir_defaulted
=yes
1184 # Try the directory containing this script, then the parent directory.
1185 ac_confdir
=`$as_dirname -- "$as_myself" ||
1186 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1187 X"$as_myself" : 'X\(//\)[^/]' \| \
1188 X"$as_myself" : 'X\(//\)$' \| \
1189 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1190 $as_echo X"$as_myself" |
1191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1213 ac_srcdir_defaulted
=no
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1216 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1217 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1219 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1221 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1223 # When building in place, set srcdir=.
1224 if test "$ac_abs_confdir" = "$ac_pwd"; then
1227 # Remove unnecessary trailing slashes from srcdir.
1228 # Double slashes in file names in object file debugging info
1229 # mess up M-x gdb in Emacs.
1231 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1233 for ac_var
in $ac_precious_vars; do
1234 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1235 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1236 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1237 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1241 # Report the --help message.
1243 if test "$ac_init_help" = "long"; then
1244 # Omit some internal or obsolete options to make the list less imposing.
1245 # This message is too long to be a string in the A/UX 3.1 sh.
1247 \`configure' configures this package to adapt to many kinds of systems.
1249 Usage: $0 [OPTION]... [VAR=VALUE]...
1251 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1252 VAR=VALUE. See below for descriptions of some of the useful variables.
1254 Defaults for the options are specified in brackets.
1257 -h, --help display this help and exit
1258 --help=short display options specific to this package
1259 --help=recursive display the short help of all the included packages
1260 -V, --version display version information and exit
1261 -q, --quiet, --silent do not print \`checking...' messages
1262 --cache-file=FILE cache test results in FILE [disabled]
1263 -C, --config-cache alias for \`--cache-file=config.cache'
1264 -n, --no-create do not create output files
1265 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1267 Installation directories:
1268 --prefix=PREFIX install architecture-independent files in PREFIX
1269 [$ac_default_prefix]
1270 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1273 By default, \`make install' will install all the files in
1274 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1275 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1276 for instance \`--prefix=\$HOME'.
1278 For better control, use the options below.
1280 Fine tuning of the installation directories:
1281 --bindir=DIR user executables [EPREFIX/bin]
1282 --sbindir=DIR system admin executables [EPREFIX/sbin]
1283 --libexecdir=DIR program executables [EPREFIX/libexec]
1284 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1285 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1286 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1287 --libdir=DIR object code libraries [EPREFIX/lib]
1288 --includedir=DIR C header files [PREFIX/include]
1289 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1290 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1291 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1292 --infodir=DIR info documentation [DATAROOTDIR/info]
1293 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1294 --mandir=DIR man documentation [DATAROOTDIR/man]
1295 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1296 --htmldir=DIR html documentation [DOCDIR]
1297 --dvidir=DIR dvi documentation [DOCDIR]
1298 --pdfdir=DIR pdf documentation [DOCDIR]
1299 --psdir=DIR ps documentation [DOCDIR]
1305 --program-prefix=PREFIX prepend PREFIX to installed program names
1306 --program-suffix=SUFFIX append SUFFIX to installed program names
1307 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1310 --build=BUILD configure
for building on BUILD
[guessed
]
1311 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1312 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1316 if test -n "$ac_init_help"; then
1321 --disable-option-checking ignore unrecognized
--enable/--with options
1322 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1323 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1324 --enable-maintainer-mode enable make rules and dependencies not useful
1325 (and sometimes confusing
) to the casual installer
1326 --disable-largefile omit support
for large files
1327 --enable-werror treat compile warnings as errors
1328 --enable-inprocess-agent
1332 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1333 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1334 --with-ust=PATH Specify prefix directory
for the installed UST package
1335 Equivalent to
--with-ust-include=PATH
/include
1336 plus
--with-ust-lib=PATH
/lib
1337 --with-ust-include=PATH Specify directory
for installed UST include files
1338 --with-ust-lib=PATH Specify the directory
for the installed UST library
1339 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1340 --with-bugurl=URL Direct users to URL to report a bug
1341 --with-libthread-db=PATH
1342 use given libthread_db directly
1344 Some influential environment variables
:
1345 CC C compiler
command
1346 CFLAGS C compiler flags
1347 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1348 nonstandard directory
<lib dir
>
1349 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1350 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1351 you have headers
in a nonstandard directory
<include dir
>
1354 Use these variables to override the choices made by
`configure' or to help
1355 it to find libraries and programs with nonstandard names/locations.
1357 Report bugs to the package provider.
1362 if test "$ac_init_help" = "recursive"; then
1363 # If there are subdirs, report their specific --help.
1364 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1365 test -d "$ac_dir" ||
1366 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1371 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1373 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1374 # A ".." for each directory in $ac_dir_suffix.
1375 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1376 case $ac_top_builddir_sub in
1377 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1381 ac_abs_top_builddir=$ac_pwd
1382 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1383 # for backward compatibility:
1384 ac_top_builddir=$ac_top_build_prefix
1387 .) # We are building in place.
1389 ac_top_srcdir=$ac_top_builddir_sub
1390 ac_abs_top_srcdir=$ac_pwd ;;
1391 [\\/]* | ?:[\\/]* ) # Absolute name.
1392 ac_srcdir=$srcdir$ac_dir_suffix;
1393 ac_top_srcdir=$srcdir
1394 ac_abs_top_srcdir=$srcdir ;;
1396 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1397 ac_top_srcdir=$ac_top_build_prefix$srcdir
1398 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1400 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1402 cd "$ac_dir" || { ac_status=$?; continue; }
1403 # Check for guested configure.
1404 if test -f "$ac_srcdir/configure.gnu"; then
1406 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1407 elif test -f "$ac_srcdir/configure"; then
1409 $SHELL "$ac_srcdir/configure" --help=recursive
1411 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1413 cd "$ac_pwd" || { ac_status=$?; break; }
1417 test -n "$ac_init_help" && exit $ac_status
1418 if $ac_init_version; then
1421 generated by GNU Autoconf 2.64
1423 Copyright (C) 2009 Free Software Foundation, Inc.
1424 This configure script is free software; the Free Software Foundation
1425 gives unlimited permission to copy, distribute and modify it.
1430 ## ------------------------ ##
1431 ## Autoconf initialization. ##
1432 ## ------------------------ ##
1434 # ac_fn_c_try_compile LINENO
1435 # --------------------------
1436 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1437 ac_fn_c_try_compile ()
1439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1440 rm -f conftest.$ac_objext
1441 if { { ac_try="$ac_compile"
1443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1444 *) ac_try_echo
=$ac_try;;
1446 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1447 $as_echo "$ac_try_echo"; } >&5
1448 (eval "$ac_compile") 2>conftest.err
1450 if test -s conftest.err
; then
1451 grep -v '^ *+' conftest.err
>conftest.er1
1452 cat conftest.er1
>&5
1453 mv -f conftest.er1 conftest.err
1455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1456 test $ac_status = 0; } && {
1457 test -z "$ac_c_werror_flag" ||
1458 test ! -s conftest.err
1459 } && test -s conftest.
$ac_objext; then :
1462 $as_echo "$as_me: failed program was:" >&5
1463 sed 's/^/| /' conftest.
$ac_ext >&5
1467 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1470 } # ac_fn_c_try_compile
1472 # ac_fn_c_try_cpp LINENO
1473 # ----------------------
1474 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1477 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1478 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1481 *) ac_try_echo=$ac_try;;
1483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1484 $as_echo "$ac_try_echo"; } >&5
1485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1487 if test -s conftest.err; then
1488 grep -v '^ *+' conftest.err >conftest.er1
1489 cat conftest.er1 >&5
1490 mv -f conftest.er1 conftest.err
1492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1493 test $ac_status = 0; } >/dev/null && {
1494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1495 test ! -s conftest.err
1499 $as_echo "$as_me: failed program was:" >&5
1500 sed 's/^/| /' conftest.$ac_ext >&5
1504 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1509 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1510 # -------------------------------------------------------
1511 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1512 # the include files in INCLUDES and setting the cache variable VAR
1514 ac_fn_c_check_header_mongrel ()
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1519 $as_echo_n "checking for $2... " >&6; }
1520 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1521 $as_echo_n "(cached) " >&6
1524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1525 $as_echo "$ac_res" >&6; }
1527 # Is the header compilable?
1528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1529 $as_echo_n "checking $2 usability... " >&6; }
1530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1531 /* end confdefs.h. */
1535 if ac_fn_c_try_compile "$LINENO"; then :
1536 ac_header_compiler=yes
1538 ac_header_compiler=no
1540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1542 $as_echo "$ac_header_compiler" >&6; }
1544 # Is the header present?
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1546 $as_echo_n "checking $2 presence... " >&6; }
1547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1548 /* end confdefs.h. */
1551 if ac_fn_c_try_cpp "$LINENO"; then :
1552 ac_header_preproc=yes
1554 ac_header_preproc=no
1556 rm -f conftest.err conftest.$ac_ext
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1558 $as_echo "$ac_header_preproc" >&6; }
1560 # So? What about this header?
1561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1564 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1566 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1570 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1572 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1574 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1576 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1578 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1582 $as_echo_n "checking for $2... " >&6; }
1583 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1584 $as_echo_n "(cached) " >&6
1586 eval "$3=\$ac_header_compiler"
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590 $as_echo "$ac_res" >&6; }
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1594 } # ac_fn_c_check_header_mongrel
1596 # ac_fn_c_try_run LINENO
1597 # ----------------------
1598 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1599 # that executables *can* be run.
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 if { { ac_try="$ac_link"
1605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1606 *) ac_try_echo
=$ac_try;;
1608 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_link") 2>&5
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1614 { { case "(($ac_try" in
1615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_try") 2>&5
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; }; }; then :
1626 $as_echo "$as_me: program exited with status $ac_status" >&5
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1630 ac_retval=$ac_status
1632 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1633 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1639 # -------------------------------------------------------
1640 # Tests whether HEADER exists and can be compiled using the include files in
1641 # INCLUDES, setting the cache variable VAR accordingly.
1642 ac_fn_c_check_header_compile ()
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646 $as_echo_n "checking for $2... " >&6; }
1647 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1648 $as_echo_n "(cached) " >&6
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1655 if ac_fn_c_try_compile "$LINENO"; then :
1660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 $as_echo "$ac_res" >&6; }
1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1667 } # ac_fn_c_check_header_compile
1669 # ac_fn_c_try_link LINENO
1670 # -----------------------
1671 # Try to link conftest.$ac_ext, and return whether this succeeded.
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext conftest$ac_exeext
1676 if { { ac_try="$ac_link"
1678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1679 *) ac_try_echo
=$ac_try;;
1681 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>conftest.err
1685 if test -s conftest.err
; then
1686 grep -v '^ *+' conftest.err
>conftest.er1
1687 cat conftest.er1
>&5
1688 mv -f conftest.er1 conftest.err
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest
$ac_exeext && {
1695 test "$cross_compiling" = yes ||
1696 $as_test_x conftest
$ac_exeext
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.
$ac_ext >&5
1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1707 # interfere with the next link command; also delete a directory that is
1708 # left behind by Apple's compiler. We do this before executing the actions.
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1713 } # ac_fn_c_try_link
1715 # ac_fn_c_check_func LINENO FUNC VAR
1716 # ----------------------------------
1717 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1718 ac_fn_c_check_func
()
1720 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1724 $as_echo_n "(cached) " >&6
1726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1728 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1730 #define $2 innocuous_$2
1732 /* System header to define __stub macros and hopefully few prototypes,
1733 which can conflict with char $2 (); below.
1734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1735 <limits.h> exists even on freestanding compilers. */
1738 # include <limits.h>
1740 # include <assert.h>
1745 /* Override any GCC internal prototype to avoid an error.
1746 Use char because int might match the return type of a GCC
1747 builtin and then its argument prototype would still apply. */
1752 /* The GNU C library defines this for functions which it implements
1753 to always fail with ENOSYS. Some functions are actually named
1754 something starting with __ and the normal name is an alias. */
1755 #if defined __stub_$2 || defined __stub___$2
1767 if ac_fn_c_try_link
"$LINENO"; then :
1772 rm -f core conftest.err conftest.
$ac_objext \
1773 conftest
$ac_exeext conftest.
$ac_ext
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1780 } # ac_fn_c_check_func
1782 # ac_fn_c_check_decl LINENO SYMBOL VAR
1783 # ------------------------------------
1784 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1785 ac_fn_c_check_decl
()
1787 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1788 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1789 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1791 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1792 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1793 $as_echo_n "(cached) " >&6
1795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1801 #ifndef $as_decl_name
1803 (void) $as_decl_use;
1805 (void) $as_decl_name;
1813 if ac_fn_c_try_compile
"$LINENO"; then :
1818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1825 } # ac_fn_c_check_decl
1827 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1828 # -------------------------------------------
1829 # Tests whether TYPE exists after having included INCLUDES, setting cache
1830 # variable VAR accordingly.
1831 ac_fn_c_check_type
()
1833 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1837 $as_echo_n "(cached) " >&6
1840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1852 if ac_fn_c_try_compile
"$LINENO"; then :
1853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1865 if ac_fn_c_try_compile
"$LINENO"; then :
1870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
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_type
1880 cat >config.log
<<_ACEOF
1881 This file contains any messages produced by compilers while
1882 running configure, to aid debugging if configure makes a mistake.
1884 It was created by $as_me, which was
1885 generated by GNU Autoconf 2.64. Invocation command line was
1897 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1898 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1899 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1900 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1901 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1904 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1906 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1907 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1908 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1909 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1910 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1911 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1912 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1916 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1920 test -z "$as_dir" && as_dir
=.
1921 $as_echo "PATH: $as_dir"
1937 # Keep a trace of the command line.
1938 # Strip out --no-create and --no-recursion so they do not pile up.
1939 # Strip out --silent because we don't want to record it for future runs.
1940 # Also quote any args containing shell meta-characters.
1941 # Make two passes to allow for proper duplicate-argument suppression.
1945 ac_must_keep_next
=false
1951 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1952 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1953 |
-silent |
--silent |
--silen |
--sile |
--sil)
1956 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1959 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1961 as_fn_append ac_configure_args1
" '$ac_arg'"
1962 if test $ac_must_keep_next = true
; then
1963 ac_must_keep_next
=false
# Got value, back to normal.
1966 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1967 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1968 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1969 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1970 case "$ac_configure_args0 " in
1971 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1974 -* ) ac_must_keep_next
=true
;;
1977 as_fn_append ac_configure_args
" '$ac_arg'"
1982 { ac_configure_args0
=; unset ac_configure_args0
;}
1983 { ac_configure_args1
=; unset ac_configure_args1
;}
1985 # When interrupted or exit'd, cleanup temporary files, and complete
1986 # config.log. We remove comments because anyway the quotes in there
1987 # would cause problems or look ugly.
1988 # WARNING: Use '\'' to represent an apostrophe within the trap.
1989 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1990 trap 'exit_status=$?
1991 # Save into config.log some information that might help in debugging.
1996 ## ---------------- ##
1997 ## Cache variables. ##
1998 ## ---------------- ##
2001 # The following way of writing the cache mishandles newlines in values,
2003 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2004 eval ac_val=\$$ac_var
2008 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2009 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2012 _ | IFS | as_nl) ;; #(
2013 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2014 *) { eval $ac_var=; unset $ac_var;} ;;
2019 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2020 *${as_nl}ac_space=\ *)
2022 "s/'\''/'\''\\\\'\'''\''/g;
2023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2034 ## ----------------- ##
2035 ## Output variables. ##
2036 ## ----------------- ##
2039 for ac_var in $ac_subst_vars
2041 eval ac_val=\$$ac_var
2043 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045 $as_echo "$ac_var='\''$ac_val'\''"
2049 if test -n "$ac_subst_files"; then
2051 ## ------------------- ##
2052 ## File substitutions. ##
2053 ## ------------------- ##
2056 for ac_var
in $ac_subst_files
2058 eval ac_val
=\$
$ac_var
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062 $as_echo "$ac_var='\''$ac_val'\''"
2067 if test -s confdefs.h; then
2077 test "$ac_signal" != 0 &&
2078 $as_echo "$as_me: caught signal $ac_signal"
2079 $as_echo "$as_me: exit $exit_status"
2081 rm -f core *.core core.conftest.* &&
2082 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2085 for ac_signal
in 1 2 13 15; do
2086 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2090 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2091 rm -f -r conftest
* confdefs.h
2093 $as_echo "/* confdefs.h */" > confdefs.h
2095 # Predefined preprocessor variables.
2097 cat >>confdefs.h
<<_ACEOF
2098 #define PACKAGE_NAME "$PACKAGE_NAME"
2101 cat >>confdefs.h
<<_ACEOF
2102 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2105 cat >>confdefs.h
<<_ACEOF
2106 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2109 cat >>confdefs.h
<<_ACEOF
2110 #define PACKAGE_STRING "$PACKAGE_STRING"
2113 cat >>confdefs.h
<<_ACEOF
2114 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2117 cat >>confdefs.h
<<_ACEOF
2118 #define PACKAGE_URL "$PACKAGE_URL"
2122 # Let the site file select an alternate cache file if it wants to.
2123 # Prefer an explicitly selected file to automatically selected ones.
2126 if test -n "$CONFIG_SITE"; then
2127 ac_site_file1
=$CONFIG_SITE
2128 elif test "x$prefix" != xNONE
; then
2129 ac_site_file1
=$prefix/share
/config.site
2130 ac_site_file2
=$prefix/etc
/config.site
2132 ac_site_file1
=$ac_default_prefix/share
/config.site
2133 ac_site_file2
=$ac_default_prefix/etc
/config.site
2135 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2137 test "x$ac_site_file" = xNONE
&& continue
2138 if test -r "$ac_site_file"; then
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2140 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2141 sed 's/^/| /' "$ac_site_file" >&5
2146 if test -r "$cache_file"; then
2147 # Some versions of bash will fail to source /dev/null (special
2148 # files actually), so we avoid doing that.
2149 if test -f "$cache_file"; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2151 $as_echo "$as_me: loading cache $cache_file" >&6;}
2153 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2154 *) .
"./$cache_file";;
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2159 $as_echo "$as_me: creating cache $cache_file" >&6;}
2163 # Check that the precious variables saved in the cache have kept the same
2165 ac_cache_corrupted
=false
2166 for ac_var
in $ac_precious_vars; do
2167 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2168 eval ac_new_set
=\
$ac_env_${ac_var}_set
2169 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2170 eval ac_new_val
=\
$ac_env_${ac_var}_value
2171 case $ac_old_set,$ac_new_set in
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2175 ac_cache_corrupted
=: ;;
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2178 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2179 ac_cache_corrupted
=: ;;
2182 if test "x$ac_old_val" != "x$ac_new_val"; then
2183 # differences in whitespace do not lead to failure.
2184 ac_old_val_w
=`echo x $ac_old_val`
2185 ac_new_val_w
=`echo x $ac_new_val`
2186 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2188 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2189 ac_cache_corrupted
=:
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2192 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2193 eval $ac_var=\
$ac_old_val
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2196 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2198 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2201 # Pass precious variables to config.status.
2202 if test "$ac_new_set" = set; then
2204 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2205 *) ac_arg
=$ac_var=$ac_new_val ;;
2207 case " $ac_configure_args " in
2208 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2209 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2213 if $ac_cache_corrupted; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2217 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2218 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2220 ## -------------------- ##
2221 ## Main body of script. ##
2222 ## -------------------- ##
2225 ac_cpp
='$CPP $CPPFLAGS'
2226 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2234 ac_config_headers
="$ac_config_headers config.h:config.in"
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2239 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2240 # Check whether --enable-maintainer-mode was given.
2241 if test "${enable_maintainer_mode+set}" = set; then :
2242 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2244 USE_MAINTAINER_MODE
=no
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2248 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2249 if test $USE_MAINTAINER_MODE = yes; then
2250 MAINTAINER_MODE_TRUE
=
2251 MAINTAINER_MODE_FALSE
='#'
2253 MAINTAINER_MODE_TRUE
='#'
2254 MAINTAINER_MODE_FALSE
=
2257 MAINT
=$MAINTAINER_MODE_TRUE
2262 ac_cpp
='$CPP $CPPFLAGS'
2263 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2264 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2265 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2266 if test -n "$ac_tool_prefix"; then
2267 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2268 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2270 $as_echo_n "checking for $ac_word... " >&6; }
2271 if test "${ac_cv_prog_CC+set}" = set; then :
2272 $as_echo_n "(cached) " >&6
2274 if test -n "$CC"; then
2275 ac_cv_prog_CC
="$CC" # Let the user override the test.
2277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2281 test -z "$as_dir" && as_dir
=.
2282 for ac_exec_ext
in '' $ac_executable_extensions; do
2283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2284 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 if test -n "$CC"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2297 $as_echo "$CC" >&6; }
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2300 $as_echo "no" >&6; }
2305 if test -z "$ac_cv_prog_CC"; then
2307 # Extract the first word of "gcc", so it can be a program name with args.
2308 set dummy gcc
; ac_word
=$2
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2310 $as_echo_n "checking for $ac_word... " >&6; }
2311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2312 $as_echo_n "(cached) " >&6
2314 if test -n "$ac_ct_CC"; then
2315 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2321 test -z "$as_dir" && as_dir
=.
2322 for ac_exec_ext
in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_ac_ct_CC
="gcc"
2325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2335 if test -n "$ac_ct_CC"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2337 $as_echo "$ac_ct_CC" >&6; }
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2340 $as_echo "no" >&6; }
2343 if test "x$ac_ct_CC" = x
; then
2346 case $cross_compiling:$ac_tool_warned in
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2350 ac_tool_warned
=yes ;;
2358 if test -z "$CC"; then
2359 if test -n "$ac_tool_prefix"; then
2360 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2361 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2363 $as_echo_n "checking for $ac_word... " >&6; }
2364 if test "${ac_cv_prog_CC+set}" = set; then :
2365 $as_echo_n "(cached) " >&6
2367 if test -n "$CC"; then
2368 ac_cv_prog_CC
="$CC" # Let the user override the test.
2370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2374 test -z "$as_dir" && as_dir
=.
2375 for ac_exec_ext
in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 if test -n "$CC"; then
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2390 $as_echo "$CC" >&6; }
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2393 $as_echo "no" >&6; }
2399 if test -z "$CC"; then
2400 # Extract the first word of "cc", so it can be a program name with args.
2401 set dummy cc
; ac_word
=$2
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2403 $as_echo_n "checking for $ac_word... " >&6; }
2404 if test "${ac_cv_prog_CC+set}" = set; then :
2405 $as_echo_n "(cached) " >&6
2407 if test -n "$CC"; then
2408 ac_cv_prog_CC
="$CC" # Let the user override the test.
2411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2415 test -z "$as_dir" && as_dir
=.
2416 for ac_exec_ext
in '' $ac_executable_extensions; do
2417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2418 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2419 ac_prog_rejected
=yes
2423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 if test $ac_prog_rejected = yes; then
2431 # We found a bogon in the path, so make sure we never use it.
2432 set dummy
$ac_cv_prog_CC
2434 if test $# != 0; then
2435 # We chose a different compiler from the bogus one.
2436 # However, it has the same basename, so the bogon will be chosen
2437 # first if we set CC to just the basename; use the full file name.
2439 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2445 if test -n "$CC"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2447 $as_echo "$CC" >&6; }
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2450 $as_echo "no" >&6; }
2455 if test -z "$CC"; then
2456 if test -n "$ac_tool_prefix"; then
2457 for ac_prog
in cl.exe
2459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2460 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if test "${ac_cv_prog_CC+set}" = set; then :
2464 $as_echo_n "(cached) " >&6
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC
="$CC" # Let the user override the test.
2469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir
=.
2474 for ac_exec_ext
in '' $ac_executable_extensions; do
2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 if test -n "$CC"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2489 $as_echo "$CC" >&6; }
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2496 test -n "$CC" && break
2499 if test -z "$CC"; then
2501 for ac_prog
in cl.exe
2503 # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy
$ac_prog; ac_word
=$2
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2508 $as_echo_n "(cached) " >&6
2510 if test -n "$ac_ct_CC"; then
2511 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir
=.
2518 for ac_exec_ext
in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_ac_ct_CC
="$ac_prog"
2521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2531 if test -n "$ac_ct_CC"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2533 $as_echo "$ac_ct_CC" >&6; }
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536 $as_echo "no" >&6; }
2540 test -n "$ac_ct_CC" && break
2543 if test "x$ac_ct_CC" = x
; then
2546 case $cross_compiling:$ac_tool_warned in
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2550 ac_tool_warned
=yes ;;
2559 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2561 as_fn_error
"no acceptable C compiler found in \$PATH
2562 See \`config.log' for more details." "$LINENO" 5; }
2564 # Provide some information about the compiler.
2565 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2568 for ac_option
in --version -v -V -qversion; do
2569 { { ac_try
="$ac_compiler $ac_option >&5"
2571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2575 $as_echo "$ac_try_echo"; } >&5
2576 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2578 if test -s conftest.err; then
2580 ... rest of stderr output deleted ...
2581 10q' conftest.err >conftest.er1
2582 cat conftest.er1 >&5
2583 rm -f conftest.er1 conftest.err
2585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2586 test $ac_status = 0; }
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2600 ac_clean_files_save=$ac_clean_files
2601 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2602 # Try to create an executable without -o first, disregard a.out.
2603 # It will help us diagnose broken compilers, and finding out an intuition
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2606 $as_echo_n "checking for C compiler default output file name... " >&6; }
2607 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2609 # The possible output files:
2610 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2613 for ac_file in $ac_files
2616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2617 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2622 if { { ac_try="$ac_link_default"
2624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2625 *) ac_try_echo
=$ac_try;;
2627 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2628 $as_echo "$ac_try_echo"; } >&5
2629 (eval "$ac_link_default") 2>&5
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; }; then :
2633 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2634 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2635 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2636 # so that the user can short-circuit this test for compilers unknown to
2638 for ac_file
in $ac_files ''
2640 test -f "$ac_file" ||
continue
2642 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2645 # We found the default executable, but exeext='' is most
2649 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2651 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2653 # We set ac_cv_exeext here because the later test for it is not
2654 # safe: cross compilers may not add the suffix if given an `-o'
2655 # argument, so we may need to know it at that point already.
2656 # Even if this section looks crufty: it has the advantage of
2663 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2669 $as_echo "$ac_file" >&6; }
2670 if test -z "$ac_file"; then :
2671 $as_echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.
$ac_ext >&5
2674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676 { as_fn_set_status
77
2677 as_fn_error
"C compiler cannot create executables
2678 See \`config.log' for more details." "$LINENO" 5; }; }
2680 ac_exeext
=$ac_cv_exeext
2682 # Check that the compiler produces executables we can run. If not, either
2683 # the compiler is broken, or we cross compile.
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2685 $as_echo_n "checking whether the C compiler works... " >&6; }
2686 # If not cross compiling, check that we can run a simple program.
2687 if test "$cross_compiling" != yes; then
2688 if { ac_try
='./$ac_file'
2689 { { case "(($ac_try" in
2690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694 $as_echo "$ac_try_echo"; } >&5
2695 (eval "$ac_try") 2>&5
2697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2698 test $ac_status = 0; }; }; then
2701 if test "$cross_compiling" = maybe; then
2704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2706 as_fn_error "cannot run C compiled programs.
2707 If you meant to cross compile
, use \
`--host'.
2708 See \`config.log
' for more details." "$LINENO" 5; }
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2713 $as_echo "yes" >&6; }
2715 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2716 ac_clean_files=$ac_clean_files_save
2717 # Check that the compiler produces executables we can run. If not, either
2718 # the compiler is broken, or we cross compile.
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2720 $as_echo_n "checking whether we are cross compiling... " >&6; }
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2722 $as_echo "$cross_compiling" >&6; }
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2725 $as_echo_n "checking for suffix of executables... " >&6; }
2726 if { { ac_try="$ac_link"
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2732 $as_echo "$ac_try_echo"; } >&5
2733 (eval "$ac_link") 2>&5
2735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2736 test $ac_status = 0; }; then :
2737 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2738 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2739 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2741 for ac_file
in conftest.exe conftest conftest.
*; do
2742 test -f "$ac_file" ||
continue
2744 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2745 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2753 as_fn_error
"cannot compute suffix of executables: cannot compile and link
2754 See \`config.log' for more details." "$LINENO" 5; }
2756 rm -f conftest
$ac_cv_exeext
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2758 $as_echo "$ac_cv_exeext" >&6; }
2760 rm -f conftest.
$ac_ext
2761 EXEEXT
=$ac_cv_exeext
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2764 $as_echo_n "checking for suffix of object files... " >&6; }
2765 if test "${ac_cv_objext+set}" = set; then :
2766 $as_echo_n "(cached) " >&6
2768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2769 /* end confdefs.h. */
2779 rm -f conftest.o conftest.obj
2780 if { { ac_try
="$ac_compile"
2782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2786 $as_echo "$ac_try_echo"; } >&5
2787 (eval "$ac_compile") 2>&5
2789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2790 test $ac_status = 0; }; then :
2791 for ac_file in conftest.o conftest.obj conftest.*; do
2792 test -f "$ac_file" || continue;
2794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2795 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2800 $as_echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2805 as_fn_error "cannot compute suffix of object files
: cannot compile
2806 See \
`config.log' for more details." "$LINENO" 5; }
2808 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2811 $as_echo "$ac_cv_objext" >&6; }
2812 OBJEXT=$ac_cv_objext
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2815 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2816 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2817 $as_echo_n "(cached) " >&6
2819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h. */
2833 if ac_fn_c_try_compile "$LINENO"; then :
2838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2839 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2843 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2844 if test $ac_compiler_gnu = yes; then
2849 ac_test_CFLAGS=${CFLAGS+set}
2850 ac_save_CFLAGS=$CFLAGS
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2852 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2853 if test "${ac_cv_prog_cc_g+set}" = set; then :
2854 $as_echo_n "(cached) " >&6
2856 ac_save_c_werror_flag=$ac_c_werror_flag
2857 ac_c_werror_flag=yes
2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861 /* end confdefs.h. */
2871 if ac_fn_c_try_compile "$LINENO"; then :
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h. */
2886 if ac_fn_c_try_compile "$LINENO"; then :
2889 ac_c_werror_flag=$ac_save_c_werror_flag
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h. */
2902 if ac_fn_c_try_compile "$LINENO"; then :
2905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 ac_c_werror_flag=$ac_save_c_werror_flag
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2913 $as_echo "$ac_cv_prog_cc_g" >&6; }
2914 if test "$ac_test_CFLAGS" = set; then
2915 CFLAGS=$ac_save_CFLAGS
2916 elif test $ac_cv_prog_cc_g = yes; then
2917 if test "$GCC" = yes; then
2923 if test "$GCC" = yes; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2930 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2931 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2932 $as_echo_n "(cached) " >&6
2934 ac_cv_prog_cc_c89=no
2936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2937 /* end confdefs.h. */
2940 #include <sys/types.h>
2941 #include <sys/stat.h>
2942 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2943 struct buf { int x; };
2944 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2945 static char *e (p, i)
2951 static char *f (char * (*g) (char **, int), char **p, ...)
2956 s = g (p, va_arg (v,int));
2961 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2962 function prototypes and stuff, but not '\xHH' hex character constants.
2963 These don't provoke an error unfortunately, instead are silently treated
2964 as 'x'. The following induces an error, until -std is added to get
2965 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2966 array size at least. It's necessary to write '\x00'==0 to get something
2967 that's true only with -std. */
2968 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2970 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2971 inside strings and character constants. */
2973 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2975 int test (int i, double x);
2976 struct s1 {int (*f) (int a);};
2977 struct s2 {int (*f) (double a);};
2978 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2984 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2989 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2990 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2992 CC="$ac_save_CC $ac_arg"
2993 if ac_fn_c_try_compile "$LINENO"; then :
2994 ac_cv_prog_cc_c89=$ac_arg
2996 rm -f core conftest.err conftest.$ac_objext
2997 test "x$ac_cv_prog_cc_c89" != "xno" && break
2999 rm -f conftest.$ac_ext
3004 case "x$ac_cv_prog_cc_c89" in
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3007 $as_echo "none needed" >&6; } ;;
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3010 $as_echo "unsupported" >&6; } ;;
3012 CC="$CC $ac_cv_prog_cc_c89"
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3014 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3016 if test "x$ac_cv_prog_cc_c89" != xno; then :
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3033 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3034 # On Suns, sometimes $CPP names a directory.
3035 if test -n "$CPP" && test -d "$CPP"; then
3038 if test -z "$CPP"; then
3039 if test "${ac_cv_prog_CPP+set}" = set; then :
3040 $as_echo_n "(cached) " >&6
3042 # Double quotes because CPP needs to be expanded
3043 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3046 for ac_c_preproc_warn_flag in '' yes
3048 # Use a header file that comes with gcc, so configuring glibc
3049 # with a fresh cross-compiler works.
3050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3051 # <limits.h> exists even on freestanding compilers.
3052 # On the NeXT, cc -E runs the code through the compiler's parser,
3053 # not just through cpp. "Syntax error" is here to catch this case.
3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3057 # include <limits.h>
3059 # include <assert.h>
3063 if ac_fn_c_try_cpp "$LINENO"; then :
3066 # Broken: fails on valid input.
3069 rm -f conftest.err conftest.$ac_ext
3071 # OK, works on sane cases. Now check whether nonexistent headers
3072 # can be detected and how.
3073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3074 /* end confdefs.h. */
3075 #include <ac_nonexistent.h>
3077 if ac_fn_c_try_cpp "$LINENO"; then :
3078 # Broken: success on invalid input.
3081 # Passes both tests.
3085 rm -f conftest.err conftest.$ac_ext
3088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3089 rm -f conftest.err conftest.
$ac_ext
3090 if $ac_preproc_ok; then :
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3103 $as_echo "$CPP" >&6; }
3105 for ac_c_preproc_warn_flag
in '' yes
3107 # Use a header file that comes with gcc, so configuring glibc
3108 # with a fresh cross-compiler works.
3109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3110 # <limits.h> exists even on freestanding compilers.
3111 # On the NeXT, cc -E runs the code through the compiler's parser,
3112 # not just through cpp. "Syntax error" is here to catch this case.
3113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3114 /* end confdefs.h. */
3116 # include <limits.h>
3118 # include <assert.h>
3122 if ac_fn_c_try_cpp
"$LINENO"; then :
3125 # Broken: fails on valid input.
3128 rm -f conftest.err conftest.
$ac_ext
3130 # OK, works on sane cases. Now check whether nonexistent headers
3131 # can be detected and how.
3132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3133 /* end confdefs.h. */
3134 #include <ac_nonexistent.h>
3136 if ac_fn_c_try_cpp
"$LINENO"; then :
3137 # Broken: success on invalid input.
3140 # Passes both tests.
3144 rm -f conftest.err conftest.
$ac_ext
3147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3148 rm -f conftest.err conftest.
$ac_ext
3149 if $ac_preproc_ok; then :
3152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3155 See \`config.log' for more details." "$LINENO" 5; }
3159 ac_cpp
='$CPP $CPPFLAGS'
3160 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3166 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3167 if test "${ac_cv_path_GREP+set}" = set; then :
3168 $as_echo_n "(cached) " >&6
3170 if test -z "$GREP"; then
3171 ac_path_GREP_found
=false
3172 # Loop through the user's path and test for each of PROGNAME-LIST
3173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3174 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3177 test -z "$as_dir" && as_dir
=.
3178 for ac_prog
in grep ggrep
; do
3179 for ac_exec_ext
in '' $ac_executable_extensions; do
3180 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3181 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3182 # Check for GNU ac_path_GREP and select it if it is found.
3183 # Check for GNU $ac_path_GREP
3184 case `"$ac_path_GREP" --version 2>&1` in
3186 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3189 $as_echo_n 0123456789 >"conftest.in"
3192 cat "conftest.in" "conftest.in" >"conftest.tmp"
3193 mv "conftest.tmp" "conftest.in"
3194 cp "conftest.in" "conftest.nl"
3195 $as_echo 'GREP' >> "conftest.nl"
3196 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3197 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3198 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3199 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3200 # Best one so far, save it but keep looking for a better one
3201 ac_cv_path_GREP
="$ac_path_GREP"
3202 ac_path_GREP_max
=$ac_count
3204 # 10*(2^10) chars as input seems more than enough
3205 test $ac_count -gt 10 && break
3207 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3210 $ac_path_GREP_found && break 3
3215 if test -z "$ac_cv_path_GREP"; then
3216 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3219 ac_cv_path_GREP
=$GREP
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3224 $as_echo "$ac_cv_path_GREP" >&6; }
3225 GREP
="$ac_cv_path_GREP"
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3229 $as_echo_n "checking for egrep... " >&6; }
3230 if test "${ac_cv_path_EGREP+set}" = set; then :
3231 $as_echo_n "(cached) " >&6
3233 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3234 then ac_cv_path_EGREP
="$GREP -E"
3236 if test -z "$EGREP"; then
3237 ac_path_EGREP_found
=false
3238 # Loop through the user's path and test for each of PROGNAME-LIST
3239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3240 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3243 test -z "$as_dir" && as_dir
=.
3244 for ac_prog
in egrep; do
3245 for ac_exec_ext
in '' $ac_executable_extensions; do
3246 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3247 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3248 # Check for GNU ac_path_EGREP and select it if it is found.
3249 # Check for GNU $ac_path_EGREP
3250 case `"$ac_path_EGREP" --version 2>&1` in
3252 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3255 $as_echo_n 0123456789 >"conftest.in"
3258 cat "conftest.in" "conftest.in" >"conftest.tmp"
3259 mv "conftest.tmp" "conftest.in"
3260 cp "conftest.in" "conftest.nl"
3261 $as_echo 'EGREP' >> "conftest.nl"
3262 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3263 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3264 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3265 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3266 # Best one so far, save it but keep looking for a better one
3267 ac_cv_path_EGREP
="$ac_path_EGREP"
3268 ac_path_EGREP_max
=$ac_count
3270 # 10*(2^10) chars as input seems more than enough
3271 test $ac_count -gt 10 && break
3273 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3276 $ac_path_EGREP_found && break 3
3281 if test -z "$ac_cv_path_EGREP"; then
3282 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3285 ac_cv_path_EGREP
=$EGREP
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3291 $as_echo "$ac_cv_path_EGREP" >&6; }
3292 EGREP
="$ac_cv_path_EGREP"
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3296 $as_echo_n "checking for ANSI C header files... " >&6; }
3297 if test "${ac_cv_header_stdc+set}" = set; then :
3298 $as_echo_n "(cached) " >&6
3300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3315 if ac_fn_c_try_compile
"$LINENO"; then :
3316 ac_cv_header_stdc
=yes
3318 ac_cv_header_stdc
=no
3320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3322 if test $ac_cv_header_stdc = yes; then
3323 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3330 $EGREP "memchr" >/dev
/null
2>&1; then :
3333 ac_cv_header_stdc
=no
3339 if test $ac_cv_header_stdc = yes; then
3340 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3347 $EGREP "free" >/dev
/null
2>&1; then :
3350 ac_cv_header_stdc
=no
3356 if test $ac_cv_header_stdc = yes; then
3357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3358 if test "$cross_compiling" = yes; then :
3361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3365 #if ((' ' & 0x0FF) == 0x020)
3366 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3367 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3369 # define ISLOWER(c) \
3370 (('a' <= (c) && (c) <= 'i') \
3371 || ('j' <= (c) && (c) <= 'r') \
3372 || ('s' <= (c) && (c) <= 'z'))
3373 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3376 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3381 for (i = 0; i < 256; i++)
3382 if (XOR (islower (i), ISLOWER (i))
3383 || toupper (i) != TOUPPER (i))
3388 if ac_fn_c_try_run
"$LINENO"; then :
3391 ac_cv_header_stdc
=no
3393 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3394 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3400 $as_echo "$ac_cv_header_stdc" >&6; }
3401 if test $ac_cv_header_stdc = yes; then
3403 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3407 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3408 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3409 inttypes.h stdint.h unistd.h
3411 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3412 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3414 eval as_val
=\$
$as_ac_Header
3415 if test "x$as_val" = x
""yes; then :
3416 cat >>confdefs.h
<<_ACEOF
3417 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3426 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3427 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3434 if test "$MINIX" = yes; then
3436 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3439 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3442 $as_echo "#define _MINIX 1" >>confdefs.h
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3448 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3449 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3450 $as_echo_n "(cached) " >&6
3452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3455 # define __EXTENSIONS__ 1
3456 $ac_includes_default
3465 if ac_fn_c_try_compile
"$LINENO"; then :
3466 ac_cv_safe_to_define___extensions__
=yes
3468 ac_cv_safe_to_define___extensions__
=no
3470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3473 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3474 test $ac_cv_safe_to_define___extensions__ = yes &&
3475 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3477 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3479 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3481 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3483 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3487 # Check whether --enable-largefile was given.
3488 if test "${enable_largefile+set}" = set; then :
3489 enableval
=$enable_largefile;
3492 if test "$enable_largefile" != no
; then
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3495 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3496 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3497 $as_echo_n "(cached) " >&6
3499 ac_cv_sys_largefile_CC
=no
3500 if test "$GCC" != yes; then
3503 # IRIX 6.2 and later do not support large files by default,
3504 # so use the C compiler's -n32 option if that helps.
3505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507 #include <sys/types.h>
3508 /* Check that off_t can represent 2**63 - 1 correctly.
3509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3510 since some C++ compilers masquerading as C compilers
3511 incorrectly reject 9223372036854775807. */
3512 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3514 && LARGE_OFF_T % 2147483647 == 1)
3524 if ac_fn_c_try_compile
"$LINENO"; then :
3527 rm -f core conftest.err conftest.
$ac_objext
3529 if ac_fn_c_try_compile
"$LINENO"; then :
3530 ac_cv_sys_largefile_CC
=' -n32'; break
3532 rm -f core conftest.err conftest.
$ac_objext
3536 rm -f conftest.
$ac_ext
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3540 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3541 if test "$ac_cv_sys_largefile_CC" != no
; then
3542 CC
=$CC$ac_cv_sys_largefile_CC
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3546 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3547 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3553 #include <sys/types.h>
3554 /* Check that off_t can represent 2**63 - 1 correctly.
3555 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3556 since some C++ compilers masquerading as C compilers
3557 incorrectly reject 9223372036854775807. */
3558 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3559 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3560 && LARGE_OFF_T % 2147483647 == 1)
3570 if ac_fn_c_try_compile
"$LINENO"; then :
3571 ac_cv_sys_file_offset_bits
=no
; break
3573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3576 #define _FILE_OFFSET_BITS 64
3577 #include <sys/types.h>
3578 /* Check that off_t can represent 2**63 - 1 correctly.
3579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3580 since some C++ compilers masquerading as C compilers
3581 incorrectly reject 9223372036854775807. */
3582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3584 && LARGE_OFF_T % 2147483647 == 1)
3594 if ac_fn_c_try_compile
"$LINENO"; then :
3595 ac_cv_sys_file_offset_bits
=64; break
3597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3598 ac_cv_sys_file_offset_bits
=unknown
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3603 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3604 case $ac_cv_sys_file_offset_bits in #(
3607 cat >>confdefs.h
<<_ACEOF
3608 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3613 if test $ac_cv_sys_file_offset_bits = unknown
; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3615 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3616 if test "${ac_cv_sys_large_files+set}" = set; then :
3617 $as_echo_n "(cached) " >&6
3620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3622 #include <sys/types.h>
3623 /* Check that off_t can represent 2**63 - 1 correctly.
3624 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3625 since some C++ compilers masquerading as C compilers
3626 incorrectly reject 9223372036854775807. */
3627 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3628 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3629 && LARGE_OFF_T % 2147483647 == 1)
3639 if ac_fn_c_try_compile
"$LINENO"; then :
3640 ac_cv_sys_large_files
=no
; break
3642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3645 #define _LARGE_FILES 1
3646 #include <sys/types.h>
3647 /* Check that off_t can represent 2**63 - 1 correctly.
3648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3649 since some C++ compilers masquerading as C compilers
3650 incorrectly reject 9223372036854775807. */
3651 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3653 && LARGE_OFF_T % 2147483647 == 1)
3663 if ac_fn_c_try_compile
"$LINENO"; then :
3664 ac_cv_sys_large_files
=1; break
3666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3667 ac_cv_sys_large_files
=unknown
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3672 $as_echo "$ac_cv_sys_large_files" >&6; }
3673 case $ac_cv_sys_large_files in #(
3676 cat >>confdefs.h
<<_ACEOF
3677 #define _LARGE_FILES $ac_cv_sys_large_files
3687 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3688 for ac_t
in install-sh
install.sh shtool
; do
3689 if test -f "$ac_dir/$ac_t"; then
3691 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3696 if test -z "$ac_aux_dir"; then
3697 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3700 # These three variables are undocumented and unsupported,
3701 # and are intended to be withdrawn in a future Autoconf release.
3702 # They can cause serious problems if a builder's source tree is in a directory
3703 # whose full name contains unusual characters.
3704 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3705 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3706 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3709 # Make sure we can run config.sub.
3710 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3711 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3714 $as_echo_n "checking build system type... " >&6; }
3715 if test "${ac_cv_build+set}" = set; then :
3716 $as_echo_n "(cached) " >&6
3718 ac_build_alias
=$build_alias
3719 test "x$ac_build_alias" = x
&&
3720 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3721 test "x$ac_build_alias" = x
&&
3722 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3723 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3724 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3728 $as_echo "$ac_cv_build" >&6; }
3729 case $ac_cv_build in
3731 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3734 ac_save_IFS
=$IFS; IFS
='-'
3740 # Remember, the first character of IFS is used to create $*,
3741 # except with old shells:
3744 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3748 $as_echo_n "checking host system type... " >&6; }
3749 if test "${ac_cv_host+set}" = set; then :
3750 $as_echo_n "(cached) " >&6
3752 if test "x$host_alias" = x
; then
3753 ac_cv_host
=$ac_cv_build
3755 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3756 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3761 $as_echo "$ac_cv_host" >&6; }
3764 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3767 ac_save_IFS
=$IFS; IFS
='-'
3773 # Remember, the first character of IFS is used to create $*,
3774 # except with old shells:
3777 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3781 $as_echo_n "checking target system type... " >&6; }
3782 if test "${ac_cv_target+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
3785 if test "x$target_alias" = x
; then
3786 ac_cv_target
=$ac_cv_host
3788 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3789 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3794 $as_echo "$ac_cv_target" >&6; }
3795 case $ac_cv_target in
3797 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3799 target
=$ac_cv_target
3800 ac_save_IFS
=$IFS; IFS
='-'
3806 # Remember, the first character of IFS is used to create $*,
3807 # except with old shells:
3810 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3813 # The aliases save the names the user supplied, while $host etc.
3814 # will get canonicalized.
3815 test -n "$target_alias" &&
3816 test "$program_prefix$program_suffix$program_transform_name" = \
3818 program_prefix
=${target_alias}-
3821 # Find a good install program. We prefer a C program (faster),
3822 # so one script is as good as another. But avoid the broken or
3823 # incompatible versions:
3824 # SysV /etc/install, /usr/sbin/install
3825 # SunOS /usr/etc/install
3826 # IRIX /sbin/install
3828 # AmigaOS /C/install, which installs bootblocks on floppy discs
3829 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3830 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3831 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3832 # OS/2's system install, which has a completely different semantic
3833 # ./install, which can be erroneously created by make from ./install.sh.
3834 # Reject install programs that cannot install multiple files.
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3836 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3837 if test -z "$INSTALL"; then
3838 if test "${ac_cv_path_install+set}" = set; then :
3839 $as_echo_n "(cached) " >&6
3841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3845 test -z "$as_dir" && as_dir
=.
3846 # Account for people who put trailing slashes in PATH elements.
3847 case $as_dir/ in #((
3848 .
/ | .
// |
/[cC
]/* | \
3849 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3850 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3853 # OSF1 and SCO ODT 3.0 have their own names for install.
3854 # Don't use installbsd from OSF since it installs stuff as root
3856 for ac_prog
in ginstall scoinst
install; do
3857 for ac_exec_ext
in '' $ac_executable_extensions; do
3858 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3859 if test $ac_prog = install &&
3860 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3861 # AIX install. It has an incompatible calling convention.
3863 elif test $ac_prog = install &&
3864 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3865 # program-specific install script used by HP pwplus--don't use.
3868 rm -rf conftest.one conftest.two conftest.dir
3869 echo one
> conftest.one
3870 echo two
> conftest.two
3872 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3873 test -s conftest.one
&& test -s conftest.two
&&
3874 test -s conftest.dir
/conftest.one
&&
3875 test -s conftest.dir
/conftest.two
3877 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3890 rm -rf conftest.one conftest.two conftest.dir
3893 if test "${ac_cv_path_install+set}" = set; then
3894 INSTALL
=$ac_cv_path_install
3896 # As a last resort, use the slow shell script. Don't cache a
3897 # value for INSTALL within a source directory, because that will
3898 # break other packages using the cache if that directory is
3899 # removed, or if the value is a relative name.
3900 INSTALL
=$ac_install_sh
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3904 $as_echo "$INSTALL" >&6; }
3906 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3907 # It thinks the first close brace ends the variable substitution.
3908 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3910 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3912 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3914 if test -n "$ac_tool_prefix"; then
3915 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3916 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 $as_echo_n "checking for $ac_word... " >&6; }
3919 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3920 $as_echo_n "(cached) " >&6
3922 if test -n "$RANLIB"; then
3923 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3925 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3929 test -z "$as_dir" && as_dir
=.
3930 for ac_exec_ext
in '' $ac_executable_extensions; do
3931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3932 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 RANLIB
=$ac_cv_prog_RANLIB
3943 if test -n "$RANLIB"; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3945 $as_echo "$RANLIB" >&6; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948 $as_echo "no" >&6; }
3953 if test -z "$ac_cv_prog_RANLIB"; then
3954 ac_ct_RANLIB
=$RANLIB
3955 # Extract the first word of "ranlib", so it can be a program name with args.
3956 set dummy ranlib
; ac_word
=$2
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 $as_echo_n "checking for $ac_word... " >&6; }
3959 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3960 $as_echo_n "(cached) " >&6
3962 if test -n "$ac_ct_RANLIB"; then
3963 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3969 test -z "$as_dir" && as_dir
=.
3970 for ac_exec_ext
in '' $ac_executable_extensions; do
3971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3972 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3983 if test -n "$ac_ct_RANLIB"; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3985 $as_echo "$ac_ct_RANLIB" >&6; }
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 $as_echo "no" >&6; }
3991 if test "x$ac_ct_RANLIB" = x
; then
3994 case $cross_compiling:$ac_tool_warned in
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3998 ac_tool_warned
=yes ;;
4000 RANLIB
=$ac_ct_RANLIB
4003 RANLIB
="$ac_cv_prog_RANLIB"
4007 test "$program_prefix" != NONE
&&
4008 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4009 # Use a double $ so make ignores it.
4010 test "$program_suffix" != NONE
&&
4011 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4012 # Double any \ or $.
4013 # By default was `s,x,x', remove it if useless.
4014 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4015 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4019 $as_echo_n "checking for ANSI C header files... " >&6; }
4020 if test "${ac_cv_header_stdc+set}" = set; then :
4021 $as_echo_n "(cached) " >&6
4023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4038 if ac_fn_c_try_compile
"$LINENO"; then :
4039 ac_cv_header_stdc
=yes
4041 ac_cv_header_stdc
=no
4043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4045 if test $ac_cv_header_stdc = yes; then
4046 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4053 $EGREP "memchr" >/dev
/null
2>&1; then :
4056 ac_cv_header_stdc
=no
4062 if test $ac_cv_header_stdc = yes; then
4063 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4070 $EGREP "free" >/dev
/null
2>&1; then :
4073 ac_cv_header_stdc
=no
4079 if test $ac_cv_header_stdc = yes; then
4080 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4081 if test "$cross_compiling" = yes; then :
4084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4088 #if ((' ' & 0x0FF) == 0x020)
4089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4092 # define ISLOWER(c) \
4093 (('a' <= (c) && (c) <= 'i') \
4094 || ('j' <= (c) && (c) <= 'r') \
4095 || ('s' <= (c) && (c) <= 'z'))
4096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4104 for (i = 0; i < 256; i++)
4105 if (XOR (islower (i), ISLOWER (i))
4106 || toupper (i) != TOUPPER (i))
4111 if ac_fn_c_try_run
"$LINENO"; then :
4114 ac_cv_header_stdc
=no
4116 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4117 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4123 $as_echo "$ac_cv_header_stdc" >&6; }
4124 if test $ac_cv_header_stdc = yes; then
4126 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4131 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4132 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4134 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4135 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
4136 $as_echo_n "(cached) " >&6
4138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4140 #include <sys/types.h>
4152 if ac_fn_c_try_compile
"$LINENO"; then :
4153 eval "$as_ac_Header=yes"
4155 eval "$as_ac_Header=no"
4157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4159 eval ac_res
=\$
$as_ac_Header
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4161 $as_echo "$ac_res" >&6; }
4162 eval as_val
=\$
$as_ac_Header
4163 if test "x$as_val" = x
""yes; then :
4164 cat >>confdefs.h
<<_ACEOF
4165 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4168 ac_header_dirent
=$ac_hdr; break
4172 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4173 if test $ac_header_dirent = dirent.h
; then
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4175 $as_echo_n "checking for library containing opendir... " >&6; }
4176 if test "${ac_cv_search_opendir+set}" = set; then :
4177 $as_echo_n "(cached) " >&6
4179 ac_func_search_save_LIBS
=$LIBS
4180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4183 /* Override any GCC internal prototype to avoid an error.
4184 Use char because int might match the return type of a GCC
4185 builtin and then its argument prototype would still apply. */
4198 for ac_lib
in '' dir
; do
4199 if test -z "$ac_lib"; then
4200 ac_res
="none required"
4203 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4205 if ac_fn_c_try_link
"$LINENO"; then :
4206 ac_cv_search_opendir
=$ac_res
4208 rm -f core conftest.err conftest.
$ac_objext \
4210 if test "${ac_cv_search_opendir+set}" = set; then :
4214 if test "${ac_cv_search_opendir+set}" = set; then :
4217 ac_cv_search_opendir
=no
4220 LIBS
=$ac_func_search_save_LIBS
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4223 $as_echo "$ac_cv_search_opendir" >&6; }
4224 ac_res
=$ac_cv_search_opendir
4225 if test "$ac_res" != no
; then :
4226 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4232 $as_echo_n "checking for library containing opendir... " >&6; }
4233 if test "${ac_cv_search_opendir+set}" = set; then :
4234 $as_echo_n "(cached) " >&6
4236 ac_func_search_save_LIBS
=$LIBS
4237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4240 /* Override any GCC internal prototype to avoid an error.
4241 Use char because int might match the return type of a GCC
4242 builtin and then its argument prototype would still apply. */
4255 for ac_lib
in '' x
; do
4256 if test -z "$ac_lib"; then
4257 ac_res
="none required"
4260 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4262 if ac_fn_c_try_link
"$LINENO"; then :
4263 ac_cv_search_opendir
=$ac_res
4265 rm -f core conftest.err conftest.
$ac_objext \
4267 if test "${ac_cv_search_opendir+set}" = set; then :
4271 if test "${ac_cv_search_opendir+set}" = set; then :
4274 ac_cv_search_opendir
=no
4277 LIBS
=$ac_func_search_save_LIBS
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4280 $as_echo "$ac_cv_search_opendir" >&6; }
4281 ac_res
=$ac_cv_search_opendir
4282 if test "$ac_res" != no
; then :
4283 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4290 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4291 # for constant arguments. Useless!
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4293 $as_echo_n "checking for working alloca.h... " >&6; }
4294 if test "${ac_cv_working_alloca_h+set}" = set; then :
4295 $as_echo_n "(cached) " >&6
4297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4303 char *p = (char *) alloca (2 * sizeof (int));
4309 if ac_fn_c_try_link
"$LINENO"; then :
4310 ac_cv_working_alloca_h
=yes
4312 ac_cv_working_alloca_h
=no
4314 rm -f core conftest.err conftest.
$ac_objext \
4315 conftest
$ac_exeext conftest.
$ac_ext
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4318 $as_echo "$ac_cv_working_alloca_h" >&6; }
4319 if test $ac_cv_working_alloca_h = yes; then
4321 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4326 $as_echo_n "checking for alloca... " >&6; }
4327 if test "${ac_cv_func_alloca_works+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
4330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4333 # define alloca __builtin_alloca
4336 # include <malloc.h>
4337 # define alloca _alloca
4339 # ifdef HAVE_ALLOCA_H
4340 # include <alloca.h>
4345 # ifndef alloca /* predefined by HP cc +Olibcalls */
4356 char *p = (char *) alloca (1);
4362 if ac_fn_c_try_link
"$LINENO"; then :
4363 ac_cv_func_alloca_works
=yes
4365 ac_cv_func_alloca_works
=no
4367 rm -f core conftest.err conftest.
$ac_objext \
4368 conftest
$ac_exeext conftest.
$ac_ext
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4371 $as_echo "$ac_cv_func_alloca_works" >&6; }
4373 if test $ac_cv_func_alloca_works = yes; then
4375 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4378 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4379 # that cause trouble. Some versions do not even contain alloca or
4380 # contain a buggy version. If you still want to use their alloca,
4381 # use ar to extract alloca.o from them instead of compiling alloca.c.
4383 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
4385 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4389 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4390 if test "${ac_cv_os_cray+set}" = set; then :
4391 $as_echo_n "(cached) " >&6
4393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4395 #if defined CRAY && ! defined CRAY2
4402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4403 $EGREP "webecray" >/dev
/null
2>&1; then :
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4412 $as_echo "$ac_cv_os_cray" >&6; }
4413 if test $ac_cv_os_cray = yes; then
4414 for ac_func
in _getb67 GETB67 getb67
; do
4415 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4416 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4417 eval as_val
=\$
$as_ac_var
4418 if test "x$as_val" = x
""yes; then :
4420 cat >>confdefs.h
<<_ACEOF
4421 #define CRAY_STACKSEG_END $ac_func
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4431 $as_echo_n "checking stack direction for C alloca... " >&6; }
4432 if test "${ac_cv_c_stack_direction+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4435 if test "$cross_compiling" = yes; then :
4436 ac_cv_c_stack_direction
=0
4438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4440 $ac_includes_default
4442 find_stack_direction ()
4444 static char *addr = 0;
4449 return find_stack_direction ();
4452 return (&dummy > addr) ? 1 : -1;
4458 return find_stack_direction () < 0;
4461 if ac_fn_c_try_run
"$LINENO"; then :
4462 ac_cv_c_stack_direction
=1
4464 ac_cv_c_stack_direction
=-1
4466 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4467 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4472 $as_echo "$ac_cv_c_stack_direction" >&6; }
4473 cat >>confdefs.h
<<_ACEOF
4474 #define STACK_DIRECTION $ac_cv_c_stack_direction
4481 # Dependency checking.
4482 rm -rf .tst
2>/dev
/null
4483 mkdir .tst
2>/dev
/null
4484 if test -d .tst
; then
4489 rmdir .tst
2>/dev
/null
4491 DEPDIR
="${am__leading_dot}deps"
4493 ac_config_commands
="$ac_config_commands depdir"
4496 depcc
="$CC" am_compiler_list
=
4498 am_depcomp
=$ac_aux_dir/depcomp
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4500 $as_echo_n "checking dependency style of $depcc... " >&6; }
4501 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4502 $as_echo_n "(cached) " >&6
4504 if test -f "$am_depcomp"; then
4505 # We make a subdir and do the tests there. Otherwise we can end up
4506 # making bogus files that we don't know about and never remove. For
4507 # instance it was reported that on HP-UX the gcc test will end up
4508 # making a dummy file named `D' -- because `-MD' means `put the output
4511 # Copy depcomp to subdir because otherwise we won't find it if we're
4512 # using a relative directory.
4513 cp "$am_depcomp" conftest.dir
4515 # We will build objects and dependencies in a subdirectory because
4516 # it helps to detect inapplicable dependency modes. For instance
4517 # both Tru64's cc and ICC support -MD to output dependencies as a
4518 # side effect of compilation, but ICC will put the dependencies in
4519 # the current directory while Tru64 will put them in the object
4523 am_cv_CC_dependencies_compiler_type
=none
4524 if test "$am_compiler_list" = ""; then
4525 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4527 for depmode
in $am_compiler_list; do
4528 if test $depmode = none
; then break; fi
4530 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4531 # Setup a source with many dependencies, because some compilers
4532 # like to wrap large dependency lists on column 80 (with \), and
4533 # we should not choose a depcomp mode which is confused by this.
4535 # We need to recreate these files for each test, as the compiler may
4536 # overwrite some of them when testing with obscure command lines.
4537 # This happens at least with the AIX C compiler.
4539 for i
in 1 2 3 4 5 6; do
4540 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4541 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4542 # Solaris 8's {/usr,}/bin/sh.
4543 touch sub
/conftst
$i.h
4545 echo "include sub/conftest.Po" > confmf
4547 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4548 # mode. It turns out that the SunPro C++ compiler does not properly
4549 # handle `-M -o', and we need to detect this.
4550 depcmd
="depmode=$depmode \
4551 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4552 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4553 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4554 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4555 if env
$depcmd > conftest.err
2>&1 &&
4556 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4557 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4558 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4559 # icc doesn't choke on unknown options, it will just issue warnings
4560 # or remarks (even with -Werror). So we grep stderr for any message
4561 # that says an option was ignored or not supported.
4562 # When given -MP, icc 7.0 and 7.1 complain thusly:
4563 # icc: Command line warning: ignoring option '-M'; no argument required
4564 # The diagnosis changed in icc 8.0:
4565 # icc: Command line remark: option '-MP' not supported
4566 if (grep 'ignoring option' conftest.err ||
4567 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4568 am_cv_CC_dependencies_compiler_type
=$depmode
4569 $as_echo "$as_me:$LINENO: success" >&5
4573 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4574 sed -e 's/^/| /' < conftest.err
>&5
4580 am_cv_CC_dependencies_compiler_type
=none
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4585 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4586 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4587 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4588 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4593 # Check for the 'make' the user wants to use.
4596 # Extract the first word of "$ac_prog", so it can be a program name with args.
4597 set dummy
$ac_prog; ac_word
=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if test "${ac_cv_prog_MAKE+set}" = set; then :
4601 $as_echo_n "(cached) " >&6
4603 if test -n "$MAKE"; then
4604 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4610 test -z "$as_dir" && as_dir
=.
4611 for ac_exec_ext
in '' $ac_executable_extensions; do
4612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4613 ac_cv_prog_MAKE
="$ac_prog"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 MAKE
=$ac_cv_prog_MAKE
4624 if test -n "$MAKE"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4626 $as_echo "$MAKE" >&6; }
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4633 test -n "$MAKE" && break
4637 case "`$MAKE --version 2>&1 | sed 1q`" in
4642 if test "$MAKE_IS_GNU" = yes; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4651 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4653 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4654 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4655 $as_echo_n "(cached) " >&6
4657 cat >conftest.
make <<\_ACEOF
4660 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4662 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4663 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4665 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4667 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4671 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4673 $as_echo "yes" >&6; }
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4678 SET_MAKE
="MAKE=${MAKE-make}"
4682 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
4683 # to find the the source subdir to be configured directly under
4684 # gdbserver/. We need to build gnulib under some other directory not
4685 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
4686 # build it in the same directory, when building in the source dir.
4689 in_build
="build-gnulib-gdbserver"
4691 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4692 # so they do not pile up.
4693 ac_sub_configure_args
=
4695 eval "set x $ac_configure_args"
4699 if test -n "$ac_prev"; then
4704 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
4705 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
4706 ac_prev
=cache_file
;;
4707 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
4708 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
4711 --config-cache |
-C)
4713 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
4715 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
4717 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
4719 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
4721 --disable-option-checking)
4725 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4727 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
4731 # Always prepend --prefix to ensure using the same prefix
4732 # in subdir configurations.
4733 ac_arg
="--prefix=$prefix"
4735 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4737 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
4740 if test "$silent" = yes; then
4741 ac_sub_configure_args
="--silent $ac_sub_configure_args"
4744 # Always prepend --disable-option-checking to silence warnings, since
4745 # different subdirs can have different --enable and --with options.
4746 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
4751 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4753 $as_echo "$ac_msg" >&6
4754 as_dir
="$ac_dir"; as_fn_mkdir_p
4758 ac_srcdir
=$srcdir/$in_src ;;
4760 ac_srcdir
=..
/$srcdir/$in_src ;;
4765 ac_sub_configure
=$ac_srcdir/configure
4767 # Make the cache file name correct relative to the subdirectory.
4769 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
4771 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
4774 { $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
4775 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4776 # The eval makes quoting arguments work.
4777 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4778 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4779 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4784 for ac_header
in sgtty.h termio.h termios.h sys
/reg.h string.h proc_service.h sys
/procfs.h thread_db.h linux
/elf.h stdlib.h unistd.h errno.h fcntl.h signal.h sys
/file.h malloc.h sys
/ioctl.h netinet
/in.h sys
/socket.h netdb.h netinet
/tcp.h arpa
/inet.h sys
/wait.h
wait.h sys
/un.h linux
/perf_event.h
4786 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4787 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4788 eval as_val
=\$
$as_ac_Header
4789 if test "x$as_val" = x
""yes; then :
4790 cat >>confdefs.h
<<_ACEOF
4791 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4798 for ac_func
in pread pwrite pread64 readlink fdwalk pipe2
4800 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4801 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4802 eval as_val
=\$
$as_ac_var
4803 if test "x$as_val" = x
""yes; then :
4804 cat >>confdefs.h
<<_ACEOF
4805 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4811 for ac_func
in vasprintf vsnprintf
4813 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4814 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4815 eval as_val
=\$
$as_ac_var
4816 if test "x$as_val" = x
""yes; then :
4817 cat >>confdefs.h
<<_ACEOF
4818 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4822 case " $LIBOBJS " in
4823 *" $ac_func.$ac_objext "* ) ;;
4824 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
4838 # Check whether --with-ust was given.
4839 if test "${with_ust+set}" = set; then :
4844 # Check whether --with-ust_include was given.
4845 if test "${with_ust_include+set}" = set; then :
4846 withval
=$with_ust_include;
4850 # Check whether --with-ust_lib was given.
4851 if test "${with_ust_lib+set}" = set; then :
4852 withval
=$with_ust_lib;
4866 ustlibs
="-L$with_ust/lib -lust"
4867 ustinc
="-I$with_ust/include "
4870 if test "x$with_ust_include" != x
; then
4871 ustinc
="-I$with_ust_include "
4873 if test "x$with_ust_lib" != x
; then
4874 ustlibs
="-L$with_ust_lib -lust"
4877 if test "x$with_ust" != "xno"; then
4878 saved_CFLAGS
="$CFLAGS"
4879 CFLAGS
="$CFLAGS $ustinc"
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
4881 $as_echo_n "checking for ust... " >&6; }
4882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4885 #define CONFIG_UST_GDB_INTEGRATION
4886 #include <ust/ust.h>
4896 if ac_fn_c_try_compile
"$LINENO"; then :
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4898 $as_echo "yes" >&6; };
4899 $as_echo "#define HAVE_UST 1" >>confdefs.h
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
4905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4906 CFLAGS
="$saved_CFLAGS"
4909 # Flags needed for UST
4913 # Check whether --enable-werror was given.
4914 if test "${enable_werror+set}" = set; then :
4915 enableval
=$enable_werror; case "${enableval}" in
4916 yes | y
) ERROR_ON_WARNING
="yes" ;;
4917 no | n
) ERROR_ON_WARNING
="no" ;;
4918 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4923 # Enable -Werror by default when using gcc
4924 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4925 ERROR_ON_WARNING
=yes
4929 if test "${ERROR_ON_WARNING}" = yes ; then
4930 WERROR_CFLAGS
="-Werror"
4933 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
4934 -Wformat-nonliteral -Wno-char-subscripts -Wempty-body"
4937 if test "x$GCC" = xyes
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
4940 $as_echo_n "checking compiler warning flags... " >&6; }
4941 # Separate out the -Werror flag as some files just cannot be
4942 # compiled with it enabled.
4943 for w
in ${build_warnings}; do
4945 -Werr*) WERROR_CFLAGS
=-Werror ;;
4946 *) # Check that GCC accepts it
4947 saved_CFLAGS
="$CFLAGS"
4949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4960 if ac_fn_c_try_compile
"$LINENO"; then :
4961 WARN_CFLAGS
="${WARN_CFLAGS} $w"
4963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4964 CFLAGS
="$saved_CFLAGS"
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
4968 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
4975 for ac_func in dladdr
4977 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
4978 if test "x
$ac_cv_func_dladdr" = x""yes; then :
4979 cat >>confdefs.h <<_ACEOF
4980 #define HAVE_DLADDR 1
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for errno
" >&5
4990 $as_echo_n "checking
for errno...
" >&6; }
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
5000 static int x; x = errno;
5005 if ac_fn_c_try_link "$LINENO"; then :
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes - in errno.h
" >&5
5007 $as_echo "yes - in errno.h
" >&6; };
5008 $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
5011 rm -f core conftest.err conftest.
$ac_objext \
5012 conftest
$ac_exeext conftest.
$ac_ext
5013 if test $have_errno = no
; then
5014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h. */
5023 extern int errno; static int x; x = errno;
5028 if ac_fn_c_try_link
"$LINENO"; then :
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5030 $as_echo "yes - must define" >&6; };
5031 $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
5033 $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5039 rm -f core conftest.err conftest.
$ac_objext \
5040 conftest
$ac_exeext conftest.
$ac_ext
5043 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
5044 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
5050 cat >>confdefs.h
<<_ACEOF
5051 #define HAVE_DECL_STRERROR $ac_have_decl
5053 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
5054 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
5060 cat >>confdefs.h
<<_ACEOF
5061 #define HAVE_DECL_STRSTR $ac_have_decl
5063 ac_fn_c_check_decl
"$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
5064 if test "x$ac_cv_have_decl_perror" = x
""yes; then :
5070 cat >>confdefs.h
<<_ACEOF
5071 #define HAVE_DECL_PERROR $ac_have_decl
5073 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5074 if test "x$ac_cv_have_decl_vasprintf" = x
""yes; then :
5080 cat >>confdefs.h
<<_ACEOF
5081 #define HAVE_DECL_VASPRINTF $ac_have_decl
5083 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
5084 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
5090 cat >>confdefs.h
<<_ACEOF
5091 #define HAVE_DECL_VSNPRINTF $ac_have_decl
5095 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5096 #include <sys/socket.h>
5099 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
5101 cat >>confdefs.h
<<_ACEOF
5102 #define HAVE_SOCKLEN_T 1
5109 ac_fn_c_check_type
"$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h>
5112 if test "x$ac_cv_type_Elf32_auxv_t" = x
""yes; then :
5114 cat >>confdefs.h
<<_ACEOF
5115 #define HAVE_ELF32_AUXV_T 1
5120 ac_fn_c_check_type
"$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h>
5123 if test "x$ac_cv_type_Elf64_auxv_t" = x
""yes; then :
5125 cat >>confdefs.h
<<_ACEOF
5126 #define HAVE_ELF64_AUXV_T 1
5135 # Check whether --with-pkgversion was given.
5136 if test "${with_pkgversion+set}" = set; then :
5137 withval
=$with_pkgversion; case "$withval" in
5138 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
5140 *) PKGVERSION
="($withval) " ;;
5151 # Check whether --with-bugurl was given.
5152 if test "${with_bugurl+set}" = set; then :
5153 withval
=$with_bugurl; case "$withval" in
5154 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
5157 *) BUGURL
="$withval"
5161 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
5171 REPORT_BUGS_TO
="<$BUGURL>"
5172 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
5179 cat >>confdefs.h
<<_ACEOF
5180 #define PKGVERSION "$PKGVERSION"
5184 cat >>confdefs.h
<<_ACEOF
5185 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5189 # Check for various supplementary target information (beyond the
5190 # triplet) which might affect the choices in configure.srv.
5192 i
[34567]86-*-linux*)
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
5194 $as_echo_n "checking if building for x86-64... " >&6; }
5195 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5198 save_CPPFLAGS
="$CPPFLAGS"
5199 CPPFLAGS
="$CPPFLAGS $CFLAGS"
5200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5209 $EGREP "got it" >/dev
/null
2>&1; then :
5210 gdb_cv_i386_is_x86_64
=yes
5212 gdb_cv_i386_is_x86_64
=no
5216 CPPFLAGS
="$save_CPPFLAGS"
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
5219 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
5223 $as_echo_n "checking if building for Coldfire... " >&6; }
5224 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
5225 $as_echo_n "(cached) " >&6
5227 save_CPPFLAGS
="$CPPFLAGS"
5228 CPPFLAGS
="$CPPFLAGS $CFLAGS"
5229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5232 #ifdef __mcoldfire__
5237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5238 $EGREP "got it" >/dev
/null
2>&1; then :
5239 gdb_cv_m68k_is_coldfire
=yes
5241 gdb_cv_m68k_is_coldfire
=no
5245 CPPFLAGS
="$save_CPPFLAGS"
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
5248 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
5252 .
${srcdir}/configure.srv
5254 if test "${srv_mingwce}" = "yes"; then
5256 elif test "${srv_mingw}" = "yes"; then
5257 LIBS
="$LIBS -lws2_32"
5258 elif test "${srv_qnx}" = "yes"; then
5259 LIBS
="$LIBS -lsocket"
5260 elif test "${srv_lynxos}" = "yes"; then
5261 LIBS
="$LIBS -lnetinet"
5264 if test "${srv_mingw}" = "yes"; then
5266 $as_echo "#define USE_WIN32API 1" >>confdefs.h
5270 if test "${srv_linux_usrregs}" = "yes"; then
5272 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
5276 if test "${srv_linux_regsets}" = "yes"; then
5278 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
5282 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
5283 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
5284 $as_echo_n "(cached) " >&6
5286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 #include <sys/ptrace.h>
5297 if ac_fn_c_try_compile
"$LINENO"; then :
5298 gdbsrv_cv_have_ptrace_getregs
=yes
5300 gdbsrv_cv_have_ptrace_getregs
=no
5302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
5306 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
5307 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
5309 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
5314 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
5315 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5320 #include <sys/ptrace.h>
5329 if ac_fn_c_try_compile
"$LINENO"; then :
5330 gdbsrv_cv_have_ptrace_getfpxregs
=yes
5332 gdbsrv_cv_have_ptrace_getfpxregs
=no
5334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
5338 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
5339 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
5341 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
5346 if test "${srv_linux_btrace}" = "yes"; then
5348 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
5352 if test "$ac_cv_header_sys_procfs_h" = yes; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
5354 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
5355 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
5356 $as_echo_n "(cached) " >&6
5358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5362 /* Needed for new procfs interface on sparc-solaris. */
5363 #define _STRUCTURED_PROC 1
5364 #include <sys/procfs.h>
5373 if ac_fn_c_try_compile
"$LINENO"; then :
5374 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
5376 bfd_cv_have_sys_procfs_type_lwpid_t
=no
5379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5382 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
5384 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
5388 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
5391 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
5392 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
5393 $as_echo_n "(cached) " >&6
5395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5399 /* Needed for new procfs interface on sparc-solaris. */
5400 #define _STRUCTURED_PROC 1
5401 #include <sys/procfs.h>
5410 if ac_fn_c_try_compile
"$LINENO"; then :
5411 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
5413 bfd_cv_have_sys_procfs_type_psaddr_t
=no
5416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5419 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
5421 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
5425 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
5428 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
5429 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
5432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5436 /* Needed for new procfs interface on sparc-solaris. */
5437 #define _STRUCTURED_PROC 1
5438 #include <sys/procfs.h>
5447 if ac_fn_c_try_compile
"$LINENO"; then :
5448 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
5450 bfd_cv_have_sys_procfs_type_prgregset_t
=no
5453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5456 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
5458 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
5462 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
5465 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
5466 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
5467 $as_echo_n "(cached) " >&6
5469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5473 /* Needed for new procfs interface on sparc-solaris. */
5474 #define _STRUCTURED_PROC 1
5475 #include <sys/procfs.h>
5484 if ac_fn_c_try_compile
"$LINENO"; then :
5485 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
5487 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
5490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5493 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
5495 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
5499 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
5503 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
5505 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
5506 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
5507 $as_echo_n "(cached) " >&6
5509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5512 #include <thread_db.h>
5521 if ac_fn_c_try_compile
"$LINENO"; then :
5522 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
5524 gdbserver_cv_have_thread_db_type_lwpid_t
=no
5527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5530 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
5532 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
5536 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
5540 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
5542 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
5543 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5549 #include <thread_db.h>
5558 if ac_fn_c_try_compile
"$LINENO"; then :
5559 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
5561 gdbserver_cv_have_thread_db_type_psaddr_t
=no
5564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5567 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
5569 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
5573 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5579 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5580 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5581 $as_echo_n "(cached) " >&6
5583 ac_check_lib_save_LIBS
=$LIBS
5585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5588 /* Override any GCC internal prototype to avoid an error.
5589 Use char because int might match the return type of a GCC
5590 builtin and then its argument prototype would still apply. */
5603 if ac_fn_c_try_link
"$LINENO"; then :
5604 ac_cv_lib_dl_dlopen
=yes
5606 ac_cv_lib_dl_dlopen
=no
5608 rm -f core conftest.err conftest.
$ac_objext \
5609 conftest
$ac_exeext conftest.
$ac_ext
5610 LIBS
=$ac_check_lib_save_LIBS
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5613 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5614 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
5615 cat >>confdefs.h
<<_ACEOF
5616 #define HAVE_LIBDL 1
5625 srv_thread_depfiles
=
5628 if test "$srv_linux_thread_db" = "yes"; then
5629 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
5632 $as_echo_n "checking for the dynamic export flag... " >&6; }
5633 old_LDFLAGS
="$LDFLAGS"
5634 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
5636 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
5637 LDFLAGS
="$LDFLAGS $RDYNAMIC"
5638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5649 if ac_fn_c_try_link
"$LINENO"; then :
5650 found
="-Wl,--dynamic-list"
5651 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
5653 RDYNAMIC
="-rdynamic"
5654 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
5655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5666 if ac_fn_c_try_link
"$LINENO"; then :
5672 rm -f core conftest.err conftest.
$ac_objext \
5673 conftest
$ac_exeext conftest.
$ac_ext
5675 rm -f core conftest.err conftest.
$ac_objext \
5676 conftest
$ac_exeext conftest.
$ac_ext
5678 LDFLAGS
="$old_LDFLAGS"
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
5680 $as_echo "$found" >&6; }
5682 srv_libs
="-lthread_db"
5685 srv_thread_depfiles
="thread-db.o proc-service.o"
5687 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
5690 $as_echo_n "checking for TD_VERSION... " >&6; }
5691 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
5692 $as_echo_n "(cached) " >&6
5694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 #include <thread_db.h>
5705 if ac_fn_c_try_compile
"$LINENO"; then :
5706 gdbsrv_cv_have_td_version
=yes
5708 gdbsrv_cv_have_td_version
=no
5710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
5713 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
5714 if test $gdbsrv_cv_have_td_version = yes; then
5716 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
5722 # Check whether --with-libthread-db was given.
5723 if test "${with_libthread_db+set}" = set; then :
5724 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
5725 srv_libs
="$srv_libthread_db_path"
5730 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
5732 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
5736 if test "$srv_xmlfiles" != ""; then
5737 srv_xmlbuiltin
="xml-builtin.o"
5739 $as_echo "#define USE_XML 1" >>confdefs.h
5742 tmp_xmlfiles
=$srv_xmlfiles
5744 for f
in $tmp_xmlfiles; do
5745 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
5749 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
5750 GDBSERVER_LIBS
="$srv_libs"
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
5753 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
5754 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5764 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
5769 if ac_fn_c_try_link
"$LINENO"; then :
5770 gdbsrv_cv_have_sync_builtins
=yes
5772 gdbsrv_cv_have_sync_builtins
=no
5774 rm -f core conftest.err conftest.
$ac_objext \
5775 conftest
$ac_exeext conftest.
$ac_ext
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
5778 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
5779 if test $gdbsrv_cv_have_sync_builtins = yes; then
5781 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
5785 saved_cflags
="$CFLAGS"
5786 CFLAGS
="$CFLAGS -fvisibility=hidden"
5787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5798 if ac_fn_c_try_compile
"$LINENO"; then :
5799 gdbsrv_cv_have_visibility_hidden
=yes
5801 gdbsrv_cv_have_visibility_hidden
=no
5803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5804 CFLAGS
="$saved_cflags"
5806 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
5808 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
5814 cat >>confdefs.h
<<_ACEOF
5815 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
5819 if test "$cross_compiling" = yes; then :
5820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 #include <sys/personality.h>
5827 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
5828 # define ADDR_NO_RANDOMIZE 0x0040000
5830 /* Test the flag could be set and stays set. */
5831 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
5832 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
5838 if ac_fn_c_try_link
"$LINENO"; then :
5839 gdbsrv_cv_have_personality
=true
5841 gdbsrv_cv_have_personality
=false
5843 rm -f core conftest.err conftest.
$ac_objext \
5844 conftest
$ac_exeext conftest.
$ac_ext
5846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5848 #include <sys/personality.h>
5853 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
5854 # define ADDR_NO_RANDOMIZE 0x0040000
5856 /* Test the flag could be set and stays set. */
5857 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
5858 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
5864 if ac_fn_c_try_run
"$LINENO"; then :
5865 gdbsrv_cv_have_personality
=true
5867 gdbsrv_cv_have_personality
=false
5869 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5870 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5873 if $gdbsrv_cv_have_personality
5876 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
5884 # check whether to enable the inprocess agent
5885 if test "$ipa_obj" != "" \
5886 -a "$gdbsrv_cv_have_sync_builtins" = yes \
5887 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
5893 # Check whether --enable-inprocess-agent was given.
5894 if test "${enable_inprocess_agent+set}" = set; then :
5895 enableval
=$enable_inprocess_agent; case "$enableval" in
5896 yes) want_ipa
=true
;;
5897 no
) want_ipa
=false
;;
5898 *) as_fn_error
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
5907 IPA_DEPFILES
="$ipa_obj"
5908 extra_libraries
="$extra_libraries libinproctrace.so"
5910 as_fn_error
"inprocess agent not supported for this target" "$LINENO" 5
5921 GNULIB
=build-gnulib-gdbserver
/import
5924 if test x
"$STDINT_H" != x
; then
5925 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
5929 ac_config_files
="$ac_config_files Makefile"
5931 ac_config_commands
="$ac_config_commands default"
5933 cat >confcache
<<\_ACEOF
5934 # This file is a shell script that caches the results of configure
5935 # tests run on this system so they can be shared between configure
5936 # scripts and configure runs, see configure's option --config-cache.
5937 # It is not useful on other systems. If it contains results you don't
5938 # want to keep, you may remove or edit it.
5940 # config.status only pays attention to the cache file if you give it
5941 # the --recheck option to rerun configure.
5943 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5944 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5949 # The following way of writing the cache mishandles newlines in values,
5950 # but we know of no workaround that is simple, portable, and efficient.
5951 # So, we kill variables containing newlines.
5952 # Ultrix sh set writes to stderr and can't be redirected directly,
5953 # and sets the high bit in the cache file unless we assign to the vars.
5955 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5956 eval ac_val
=\$
$ac_var
5960 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5961 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5964 _ | IFS | as_nl
) ;; #(
5965 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
5966 *) { eval $ac_var=; unset $ac_var;} ;;
5972 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5973 *${as_nl}ac_space
=\
*)
5974 # `set' does not quote correctly, so add quotes: double-quote
5975 # substitution turns \\\\ into \\, and sed turns \\ into \.
5978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5981 # `set' quotes correctly as required by POSIX, so do not add quotes.
5982 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5991 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5993 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5995 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
5996 if test -w "$cache_file"; then
5997 test "x$cache_file" != "x/dev/null" &&
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5999 $as_echo "$as_me: updating cache $cache_file" >&6;}
6000 cat confcache
>$cache_file
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6003 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6008 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6009 # Let make expand exec_prefix.
6010 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6012 DEFS
=-DHAVE_CONFIG_H
6016 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6017 # 1. Remove the extension, and $U if already installed.
6018 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6019 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6020 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6021 # will be set to the directory where LIBOBJS objects are built.
6022 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6023 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6027 LTLIBOBJS
=$ac_ltlibobjs
6030 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6031 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
6032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6034 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
6035 as_fn_error
"conditional \"GMAKE\" was never defined.
6036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6039 : ${CONFIG_STATUS=./config.status}
6041 ac_clean_files_save
=$ac_clean_files
6042 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6044 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6046 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6048 # Generated by $as_me.
6049 # Run this file to recreate the current configuration.
6050 # Compiler output produced by configure, useful for debugging
6051 # configure, is in config.log if it exists.
6057 SHELL=\${CONFIG_SHELL-$SHELL}
6060 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6061 ## -------------------- ##
6062 ## M4sh Initialization. ##
6063 ## -------------------- ##
6065 # Be more Bourne compatible
6066 DUALCASE
=1; export DUALCASE
# for MKS sh
6067 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6070 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6071 # is contrary to our usage. Disable this feature.
6072 alias -g '${1+"$@"}'='"$@"'
6073 setopt NO_GLOB_SUBST
6075 case `(set -o) 2>/dev/null` in #(
6087 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6088 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6089 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6090 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6091 # Prefer a ksh shell builtin over an external printf program on Solaris,
6092 # but without wasting forks for bash or zsh.
6093 if test -z "$BASH_VERSION$ZSH_VERSION" \
6094 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6095 as_echo='print
-r --'
6096 as_echo_n='print
-rn --'
6097 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6098 as_echo='printf %s
\n'
6099 as_echo_n='printf %s
'
6101 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6102 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6103 as_echo_n='/usr
/ucb
/echo -n'
6105 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6106 as_echo_n_body='eval
6110 expr "X$arg" : "X\\(.*\\)$as_nl";
6111 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6113 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6115 export as_echo_n_body
6116 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6119 as_echo='sh
-c $as_echo_body as_echo
'
6122 # The user is always right.
6123 if test "${PATH_SEPARATOR+set}" != set; then
6125 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6126 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6133 # We need space, tab and new line, in precisely that order. Quoting is
6134 # there to prevent editors from complaining about space-tab.
6135 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6136 # splitting by setting IFS to empty value.)
6139 # Find who we are. Look in the path if we contain no directory separator.
6141 *[\\/]* ) as_myself=$0 ;;
6142 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 test -z "$as_dir" && as_dir=.
6147 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6153 # We did not find ourselves, most probably we were run as `sh COMMAND'
6154 # in which case we are not to be found in the path.
6155 if test "x$as_myself" = x
; then
6158 if test ! -f "$as_myself"; then
6159 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6163 # Unset variables that we do not need and which cause bugs (e.g. in
6164 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6165 # suppresses any "Segmentation fault" message there. '((' could
6166 # trigger a bug in pdksh 5.2.14.
6167 for as_var
in BASH_ENV ENV MAIL MAILPATH
6168 do eval test x\
${$as_var+set} = xset \
6169 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6182 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
6185 # as_fn_error ERROR [LINENO LOG_FD]
6186 # ---------------------------------
6187 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6188 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6189 # script with status $?, using 1 if that was 0.
6192 as_status
=$?
; test $as_status -eq 0 && as_status
=1
6194 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6195 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6197 $as_echo "$as_me: error: $1" >&2
6198 as_fn_exit
$as_status
6202 # as_fn_set_status STATUS
6203 # -----------------------
6204 # Set $? to STATUS, without forking.
6208 } # as_fn_set_status
6212 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6222 # Portably unset VAR.
6225 { eval $1=; unset $1;}
6227 as_unset
=as_fn_unset
6228 # as_fn_append VAR VALUE
6229 # ----------------------
6230 # Append the text in VALUE to the end of the definition contained in VAR. Take
6231 # advantage of any shell optimizations that allow amortized linear growth over
6232 # repeated appends, instead of the typical quadratic growth present in naive
6234 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
6235 eval 'as_fn_append ()
6246 # as_fn_arith ARG...
6247 # ------------------
6248 # Perform arithmetic evaluation on the ARGs, and store the result in the
6249 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6250 # must be portable across $(()) and expr.
6251 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6252 eval 'as_fn_arith ()
6259 as_val
=`expr "$@" || test $? -eq 1`
6264 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6265 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6271 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6272 as_basename
=basename
6277 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6283 as_me
=`$as_basename -- "$0" ||
6284 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6285 X"$0" : 'X\(//\)$' \| \
6286 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6288 sed '/^.*\/\([^/][^/]*\)\/*$/{
6302 # Avoid depending upon Character Ranges.
6303 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6304 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6305 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6306 as_cr_digits
='0123456789'
6307 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6309 ECHO_C
= ECHO_N
= ECHO_T
=
6310 case `echo -n x` in #(((((
6312 case `echo 'xy\c'` in
6313 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6315 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6322 rm -f conf$$ conf$$.exe conf$$.
file
6323 if test -d conf$$.dir
; then
6324 rm -f conf$$.dir
/conf$$.
file
6327 mkdir conf$$.dir
2>/dev
/null
6329 if (echo >conf$$.
file) 2>/dev
/null
; then
6330 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6332 # ... but there are two gotchas:
6333 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6334 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6335 # In both cases, we have to default to `cp -p'.
6336 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6338 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6346 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6347 rmdir conf$$.dir
2>/dev
/null
6352 # Create "$as_dir" as a directory, including parents if necessary.
6357 -*) as_dir
=.
/$as_dir;;
6359 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6363 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6364 *) as_qdir
=$as_dir;;
6366 as_dirs
="'$as_qdir' $as_dirs"
6367 as_dir
=`$as_dirname -- "$as_dir" ||
6368 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6369 X"$as_dir" : 'X\(//\)[^/]' \| \
6370 X"$as_dir" : 'X\(//\)$' \| \
6371 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6372 $as_echo X"$as_dir" |
6373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6390 test -d "$as_dir" && break
6392 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6393 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
6397 if mkdir
-p .
2>/dev
/null
; then
6398 as_mkdir_p
='mkdir -p "$as_dir"'
6400 test -d .
/-p && rmdir .
/-p
6404 if test -x / >/dev
/null
2>&1; then
6407 if ls -dL / >/dev
/null
2>&1; then
6414 if test -d "$1"; then
6420 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6421 ???[sx]*):;;*)false;;esac;fi
6425 as_executable_p
=$as_test_x
6427 # Sed expression to map a string onto a valid CPP name.
6428 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6430 # Sed expression to map a string onto a valid variable name.
6431 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6435 ## ----------------------------------- ##
6436 ## Main body of $CONFIG_STATUS script. ##
6437 ## ----------------------------------- ##
6439 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6442 # Save the log message, to keep $0 and so on meaningful, and to
6443 # report actual input values of CONFIG_FILES etc. instead of their
6444 # values after options handling.
6446 This file was extended by $as_me, which was
6447 generated by GNU Autoconf 2.64. Invocation command line was
6449 CONFIG_FILES = $CONFIG_FILES
6450 CONFIG_HEADERS = $CONFIG_HEADERS
6451 CONFIG_LINKS = $CONFIG_LINKS
6452 CONFIG_COMMANDS = $CONFIG_COMMANDS
6455 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6460 case $ac_config_files in *"
6461 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6464 case $ac_config_headers in *"
6465 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6470 # Files that config.status was made for.
6471 config_files="$ac_config_files"
6472 config_headers="$ac_config_headers"
6473 config_commands="$ac_config_commands"
6477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6479 \`$as_me' instantiates files and other configuration actions
6480 from templates according to the current configuration. Unless the files
6481 and actions are specified as TAGs, all are instantiated by default.
6483 Usage: $0 [OPTION]... [TAG]...
6485 -h, --help print this help, then exit
6486 -V, --version print version number and configuration settings, then exit
6487 -q, --quiet, --silent
6488 do not print progress messages
6489 -d, --debug don't remove temporary files
6490 --recheck update $as_me by reconfiguring in the same conditions
6491 --file=FILE[:TEMPLATE]
6492 instantiate the configuration file FILE
6493 --header=FILE[:TEMPLATE]
6494 instantiate the configuration header FILE
6496 Configuration files:
6499 Configuration headers:
6502 Configuration commands:
6505 Report bugs to the package provider."
6508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6511 configured by $0, generated by GNU Autoconf 2.64,
6512 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6514 Copyright (C) 2009 Free Software Foundation, Inc.
6515 This config.status script is free software; the Free Software Foundation
6516 gives unlimited permission to copy, distribute and modify it."
6521 test -n "\$AWK" || AWK=awk
6524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6525 # The default lists apply if the user does not specify any file.
6531 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6532 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6543 # Handling of the options.
6544 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6546 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6547 $as_echo "$ac_cs_version"; exit ;;
6548 --debug |
--debu |
--deb |
--de |
--d |
-d )
6550 --file |
--fil |
--fi |
--f )
6553 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6555 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6556 ac_need_defaults
=false
;;
6557 --header |
--heade |
--head |
--hea )
6560 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6562 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6563 ac_need_defaults
=false
;;
6565 # Conflict between --help and --header
6566 as_fn_error
"ambiguous option: \`$1'
6567 Try \`$0 --help' for more information.";;
6568 --help |
--hel |
-h )
6569 $as_echo "$ac_cs_usage"; exit ;;
6570 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6571 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6575 -*) as_fn_error
"unrecognized option: \`$1'
6576 Try \`$0 --help' for more information." ;;
6578 *) as_fn_append ac_config_targets
" $1"
6579 ac_need_defaults
=false
;;
6585 ac_configure_extra_args
=
6587 if $ac_cs_silent; then
6589 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6594 if \$ac_cs_recheck; then
6595 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6597 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6598 CONFIG_SHELL='$SHELL'
6604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6608 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6609 ## Running $as_me. ##
6615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6619 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
6623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6625 # Handling of arguments.
6626 for ac_config_target
in $ac_config_targets
6628 case $ac_config_target in
6629 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6630 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
6631 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
6632 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
6634 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6639 # If the user did not use the arguments to specify the items to instantiate,
6640 # then the envvar interface is used. Set only those that are not.
6641 # We use the long form for the default assignment because of an extremely
6642 # bizarre bug on SunOS 4.1.3.
6643 if $ac_need_defaults; then
6644 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6645 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6646 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6649 # Have a temporary directory for convenience. Make it in the build tree
6650 # simply because there is no reason against having it here, and in addition,
6651 # creating and moving files from /tmp can sometimes cause problems.
6652 # Hook for its removal unless debugging.
6653 # Note that there is a small window in which the directory will not be cleaned:
6654 # after its creation but before its name has been assigned to `$tmp'.
6658 trap 'exit_status=$?
6659 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6661 trap 'as_fn_exit 1' 1 2 13 15
6663 # Create a (secure) tmp directory for tmp files.
6666 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6667 test -n "$tmp" && test -d "$tmp"
6670 tmp
=.
/conf$$
-$RANDOM
6671 (umask 077 && mkdir
"$tmp")
6672 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
6674 # Set up the scripts for CONFIG_FILES section.
6675 # No need to generate them if there are no CONFIG_FILES.
6676 # This happens for instance with `./config.status config.h'.
6677 if test -n "$CONFIG_FILES"; then
6680 ac_cr
=`echo X | tr X '\015'`
6681 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6682 # But we know of no other shell where ac_cr would be empty at this
6683 # point, so we can use a bashism as a fallback.
6684 if test "x$ac_cr" = x
; then
6685 eval ac_cr
=\$
\'\\r
\'
6687 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6688 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6694 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6699 echo "cat >conf$$subs.awk <<_ACEOF" &&
6700 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6703 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6704 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6706 for ac_last_try in false false false false false :; do
6707 . ./conf$$subs.sh ||
6708 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6710 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6711 if test $ac_delim_n = $ac_delim_num; then
6713 elif $ac_last_try; then
6714 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6716 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6722 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
6726 s/^/S["/; s
/!.
*/"]=/
6736 s/\(.\{148\}\).*/\1/
6738 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6743 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6750 s/\(.\{148\}\).*/\1/
6752 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6756 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6761 ' <conf$$subs.awk | sed '
6766 ' >>$CONFIG_STATUS || ac_write_fail=1
6767 rm -f conf$$subs.awk
6768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6770 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
6771 for (key in S) S_is_set[key] = 1
6777 nfields = split(line, field, "@
")
6779 len = length(field[1])
6780 for (i = 2; i < nfields; i++) {
6782 keylen = length(key)
6783 if (S_is_set[key]) {
6785 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6786 len += length(value) + length(field[++i])
6797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6798 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6799 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6802 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
6803 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
6806 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6807 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
6808 # trailing colons and then remove the whole line if VPATH becomes empty
6809 # (actually we leave an empty line to preserve line numbers).
6810 if test "x
$srcdir" = x.; then
6811 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6815 s/^\([^=]*=[ ]*\):*/\1/
6821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6822 fi # test -n "$CONFIG_FILES"
6824 # Set up the scripts for CONFIG_HEADERS section.
6825 # No need to generate them if there are no CONFIG_HEADERS.
6826 # This happens for instance with `./config.status Makefile'.
6827 if test -n "$CONFIG_HEADERS"; then
6828 cat >"$tmp/defines.
awk" <<\_ACAWK ||
6832 # Transform confdefs.h into an awk script `defines.awk', embedded as
6833 # here-document in config.status, that substitutes the proper values into
6834 # config.h.in to produce config.h.
6836 # Create a delimiter string that does not exist in confdefs.h, to ease
6837 # handling of long lines.
6839 for ac_last_try in false false :; do
6840 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
6841 if test -z "$ac_t"; then
6843 elif $ac_last_try; then
6844 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
6846 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6850 # For the awk script, D is an array of macro values keyed by name,
6851 # likewise P contains macro parameters if any. Preserve backslash
6852 # newline sequences.
6854 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6856 s/.\{148\}/&'"$ac_delim"'/g
6859 s/^[ ]*#[ ]*define[ ][ ]*/ /
6866 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6868 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6872 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6873 D["\
1"]=" \
3\\\\\\n
"\\/p
6875 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6880 s/.\{148\}/&'"$ac_delim"'/g
6885 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6888 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6890 ' <confdefs.h | sed '
6891 s/'"$ac_delim"'/"\\\
6892 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6895 for (key in D) D_is_set[key] = 1
6898 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6900 split(line, arg, " ")
6901 if (arg[1] == "#") {
6905 defundef
= substr
(arg
[1], 2)
6908 split(mac1
, mac2
, "(") #)
6910 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6911 if (D_is_set
[macro
]) {
6912 # Preserve the white space surrounding the "#".
6913 print prefix
"define", macro P
[macro
] D
[macro
]
6916 # Replace #undef with comments. This is necessary, for example,
6917 # in the case of _POSIX_SOURCE, which is predefined and required
6918 # on some systems where configure will not decide to define it.
6919 if (defundef
== "undef") {
6920 print
"/*", prefix defundef
, macro
, "*/"
6928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6929 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
6930 fi # test -n "$CONFIG_HEADERS"
6933 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6938 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6940 case $ac_mode$ac_tag in
6942 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6943 :[FH
]-) ac_tag
=-:-;;
6944 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6961 -) ac_f
="$tmp/stdin";;
6962 *) # Look for the file first in the build tree, then in the source tree
6963 # (if the path is not absolute). The absolute path cannot be DOS-style,
6964 # because $ac_f cannot contain `:'.
6968 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6970 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
6972 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6973 as_fn_append ac_file_inputs
" '$ac_f'"
6976 # Let's still pretend it is `configure' which instantiates (i.e., don't
6977 # use $as_me), people would be surprised to read:
6978 # /* config.h. Generated by config.status. */
6979 configure_input
='Generated from '`
6980 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6982 if test x
"$ac_file" != x-
; then
6983 configure_input
="$ac_file. $configure_input"
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6985 $as_echo "$as_me: creating $ac_file" >&6;}
6987 # Neutralize special characters interpreted by sed in replacement strings.
6988 case $configure_input in #(
6989 *\
&* |
*\|
* |
*\\* )
6990 ac_sed_conf_input
=`$as_echo "$configure_input" |
6991 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6992 *) ac_sed_conf_input
=$configure_input;;
6996 *:-:* |
*:-) cat >"$tmp/stdin" \
6997 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
7002 ac_dir
=`$as_dirname -- "$ac_file" ||
7003 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7004 X"$ac_file" : 'X\(//\)[^/]' \| \
7005 X"$ac_file" : 'X\(//\)$' \| \
7006 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7007 $as_echo X"$ac_file" |
7008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7025 as_dir
="$ac_dir"; as_fn_mkdir_p
7029 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7031 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7032 # A ".." for each directory in $ac_dir_suffix.
7033 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7034 case $ac_top_builddir_sub in
7035 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7036 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7039 ac_abs_top_builddir
=$ac_pwd
7040 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7041 # for backward compatibility:
7042 ac_top_builddir
=$ac_top_build_prefix
7045 .
) # We are building in place.
7047 ac_top_srcdir
=$ac_top_builddir_sub
7048 ac_abs_top_srcdir
=$ac_pwd ;;
7049 [\\/]* | ?
:[\\/]* ) # Absolute name.
7050 ac_srcdir
=$srcdir$ac_dir_suffix;
7051 ac_top_srcdir
=$srcdir
7052 ac_abs_top_srcdir
=$srcdir ;;
7054 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7055 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7056 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7058 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7068 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7069 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7074 # If the template does not know about datarootdir, expand it.
7075 # FIXME: This hack should be removed a few years after 2.60.
7076 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7087 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7088 *datarootdir
*) ac_datarootdir_seen
=yes;;
7089 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7091 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7094 ac_datarootdir_hack='
7095 s&@datadir@&$datadir&g
7096 s&@docdir@&$docdir&g
7097 s&@infodir@&$infodir&g
7098 s&@localedir@&$localedir&g
7099 s&@mandir@&$mandir&g
7100 s&\\\${datarootdir}&$datarootdir&g' ;;
7104 # Neutralize VPATH when `$srcdir' = `.'.
7105 # Shell code in configure.ac might set extrasub.
7106 # FIXME: do we really want to maintain this feature?
7107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7108 ac_sed_extra="$ac_vpsub
7111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7113 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7114 s|@configure_input@|
$ac_sed_conf_input|
;t t
7115 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7116 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7117 s
&@srcdir@
&$ac_srcdir&;t t
7118 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7119 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7120 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7121 s
&@builddir@
&$ac_builddir&;t t
7122 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7123 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7124 s
&@INSTALL@
&$ac_INSTALL&;t t
7125 $ac_datarootdir_hack
7127 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
7128 || as_fn_error "could not create
$ac_file" "$LINENO" 5
7130 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7131 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
7132 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7134 which seems to be undefined. Please make sure it is defined." >&5
7135 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7136 which seems to be undefined. Please make sure it is defined." >&2;}
7140 -) cat "$tmp/out" && rm -f "$tmp/out";;
7141 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7143 || as_fn_error "could not create $ac_file" "$LINENO" 5
7149 if test x"$ac_file" != x-; then
7151 $as_echo "/* $configure_input */" \
7152 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7153 } >"$tmp/config.h" \
7154 || as_fn_error "could not create $ac_file" "$LINENO" 5
7155 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7157 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7160 mv "$tmp/config.h" "$ac_file" \
7161 || as_fn_error "could not create $ac_file" "$LINENO" 5
7164 $as_echo "/* $configure_input */" \
7165 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7166 || as_fn_error "could not create -" "$LINENO" 5
7170 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7171 $as_echo "$as_me: executing $ac_file commands" >&6;}
7176 case $ac_file$ac_mode in
7177 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
7178 "default":C) case x$CONFIG_HEADERS in
7179 xconfig.h:config.in)
7190 ac_clean_files=$ac_clean_files_save
7192 test $ac_write_fail = 0 ||
7193 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7196 # configure is writing to config.log, and then calls config.status.
7197 # config.status does its own redirection, appending to config.log.
7198 # Unfortunately, on DOS this fails, as config.log is still kept open
7199 # by configure, so config.status won't be able to
write to it
; its
7200 # output is simply discarded. So we exec the FD to /dev/null,
7201 # effectively closing config.log, so it can be properly (re)opened and
7202 # appended to by config.status. When coming back to configure, we
7203 # need to make the FD available again.
7204 if test "$no_create" != yes; then
7206 ac_config_status_args
=
7207 test "$silent" = yes &&
7208 ac_config_status_args
="$ac_config_status_args --quiet"
7210 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7212 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7213 # would make configure fail if this is the last instruction.
7214 $ac_cs_success || as_fn_exit $?
7216 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7218 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}