Fix gdb crash when trying to print the address of a synthetic C++ reference
[deliverable/binutils-gdb.git] / gdb / gdbserver / configure
CommitLineData
d6e9fb05 1#! /bin/sh
d6e9fb05 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
d6e9fb05
JK
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
bec39cab 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bec39cab
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bec39cab
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
bec39cab 31fi
bec39cab 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
bec39cab 50else
81ecdfbb
RW
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'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
bec39cab
AC
79fi
80
81
81ecdfbb
RW
82# IFS
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
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.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
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.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
bec39cab
AC
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test 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
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bec39cab 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
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 :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
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
207fi; }
208IFS=$as_save_IFS
209
210
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.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
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."
bec39cab 228 else
81ecdfbb
RW
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."
bec39cab 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
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
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
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.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
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.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
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
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
bec39cab 372
81ecdfbb
RW
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
bec39cab 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
bec39cab
AC
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
bec39cab 410
dae5f5cf
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
b80864fb 417
bec39cab 418
81ecdfbb
RW
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. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
bec39cab 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
bec39cab 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
bec39cab 436 t loop
81ecdfbb 437 s/-\n.*//
bec39cab 438 ' >$as_me.lineno &&
81ecdfbb
RW
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; }
bec39cab
AC
441
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
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
bec39cab
AC
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
bec39cab
AC
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
bec39cab 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
bec39cab 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
dae5f5cf 472 as_ln_s='ln -s'
81ecdfbb
RW
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 ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
dae5f5cf 483 fi
bec39cab
AC
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
bec39cab
AC
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
d6e9fb05 496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
bec39cab
AC
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
bec39cab
AC
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
bec39cab
AC
534#
535# Initializations.
536#
d6e9fb05 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
bec39cab 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
bec39cab
AC
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
dae5f5cf 545
bec39cab
AC
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
bec39cab
AC
553
554ac_unique_file="server.c"
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
81ecdfbb 558#ifdef HAVE_SYS_TYPES_H
bec39cab
AC
559# include <sys/types.h>
560#endif
81ecdfbb 561#ifdef HAVE_SYS_STAT_H
bec39cab
AC
562# include <sys/stat.h>
563#endif
81ecdfbb 564#ifdef STDC_HEADERS
bec39cab
AC
565# include <stdlib.h>
566# include <stddef.h>
567#else
81ecdfbb 568# ifdef HAVE_STDLIB_H
bec39cab
AC
569# include <stdlib.h>
570# endif
571#endif
81ecdfbb
RW
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
bec39cab
AC
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
81ecdfbb 578#ifdef HAVE_STRINGS_H
bec39cab
AC
579# include <strings.h>
580#endif
81ecdfbb 581#ifdef HAVE_INTTYPES_H
bec39cab 582# include <inttypes.h>
bec39cab 583#endif
81ecdfbb
RW
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
bec39cab
AC
588# include <unistd.h>
589#endif"
590
c971b7fa 591ac_subst_vars='LTLIBOBJS
698b3e08 592LIBOBJS
c9a1864a 593GNULIB_STDINT_H
fa593d66
PA
594extra_libraries
595IPA_DEPFILES
81ecdfbb
RW
596srv_xmlfiles
597srv_xmlbuiltin
81ecdfbb
RW
598GDBSERVER_LIBS
599GDBSERVER_DEPFILES
600RDYNAMIC
601REPORT_BUGS_TEXI
602REPORT_BUGS_TO
603PKGVERSION
d4596a3d
PA
604WERROR_CFLAGS
605WARN_CFLAGS
0fb4aa4b
PA
606ustinc
607ustlibs
9c232dda 608ALLOCA
61c125b9
TT
609SET_MAKE
610GMAKE_FALSE
611GMAKE_TRUE
c9a1864a 612MAKE
61c125b9
TT
613CCDEPMODE
614DEPDIR
615am__leading_dot
bd885420
YQ
616host_noncanonical
617target_noncanonical
a994041d 618COMPILER_CFLAGS
3bc3d82a 619COMPILER
c971b7fa 620RANLIB
e1d2394b 621AR
81ecdfbb
RW
622INSTALL_DATA
623INSTALL_SCRIPT
624INSTALL_PROGRAM
625target_os
626target_vendor
627target_cpu
628target
629host_os
630host_vendor
631host_cpu
632host
633build_os
634build_vendor
635build_cpu
636build
770d76d7
PA
637EGREP
638GREP
639CPP
3bc3d82a
PA
640ac_ct_CXX
641CXXFLAGS
642CXX
81ecdfbb
RW
643OBJEXT
644EXEEXT
645ac_ct_CC
646CPPFLAGS
647LDFLAGS
648CFLAGS
649CC
c9a1864a
YQ
650MAINT
651MAINTAINER_MODE_FALSE
652MAINTAINER_MODE_TRUE
81ecdfbb
RW
653target_alias
654host_alias
655build_alias
656LIBS
657ECHO_T
658ECHO_N
659ECHO_C
660DEFS
661mandir
662localedir
663libdir
664psdir
665pdfdir
666dvidir
667htmldir
668infodir
669docdir
670oldincludedir
671includedir
672localstatedir
673sharedstatedir
674sysconfdir
675datadir
676datarootdir
677libexecdir
678sbindir
679bindir
680program_transform_name
681prefix
682exec_prefix
683PACKAGE_URL
684PACKAGE_BUGREPORT
685PACKAGE_STRING
686PACKAGE_VERSION
687PACKAGE_TARNAME
688PACKAGE_NAME
689PATH_SEPARATOR
690SHELL'
bec39cab 691ac_subst_files=''
81ecdfbb
RW
692ac_user_opts='
693enable_option_checking
c9a1864a 694enable_maintainer_mode
589bc927 695enable_largefile
3bc3d82a 696enable_build_with_cxx
17ef446e 697enable_libmcheck
0fb4aa4b
PA
698with_ust
699with_ust_include
700with_ust_lib
d4596a3d 701enable_werror
8f13a3ce
MF
702enable_build_warnings
703enable_gdb_build_warnings
81ecdfbb
RW
704with_pkgversion
705with_bugurl
96f15937 706with_libthread_db
c2a66c29 707enable_inprocess_agent
81ecdfbb
RW
708'
709 ac_precious_vars='build_alias
710host_alias
711target_alias
712CC
713CFLAGS
714LDFLAGS
715LIBS
716CPPFLAGS
3bc3d82a
PA
717CXX
718CXXFLAGS
719CCC
81ecdfbb
RW
720CPP'
721
d6e9fb05
JK
722
723# Initialize some variables set by options.
bec39cab
AC
724ac_init_help=
725ac_init_version=false
81ecdfbb
RW
726ac_unrecognized_opts=
727ac_unrecognized_sep=
d6e9fb05
JK
728# The variables have the same names as the options, with
729# dashes changed to underlines.
bec39cab 730cache_file=/dev/null
d6e9fb05 731exec_prefix=NONE
d6e9fb05 732no_create=
d6e9fb05
JK
733no_recursion=
734prefix=NONE
735program_prefix=NONE
736program_suffix=NONE
737program_transform_name=s,x,x,
738silent=
739site=
740srcdir=
d6e9fb05
JK
741verbose=
742x_includes=NONE
743x_libraries=NONE
bec39cab
AC
744
745# Installation directory options.
746# These are left unexpanded so users can "make install exec_prefix=/foo"
747# and all the variables that are supposed to be based on exec_prefix
748# by default will actually change.
749# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 750# (The list follows the same order as the GNU Coding Standards.)
d6e9fb05
JK
751bindir='${exec_prefix}/bin'
752sbindir='${exec_prefix}/sbin'
753libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
754datarootdir='${prefix}/share'
755datadir='${datarootdir}'
d6e9fb05
JK
756sysconfdir='${prefix}/etc'
757sharedstatedir='${prefix}/com'
758localstatedir='${prefix}/var'
d6e9fb05
JK
759includedir='${prefix}/include'
760oldincludedir='/usr/include'
81ecdfbb
RW
761docdir='${datarootdir}/doc/${PACKAGE}'
762infodir='${datarootdir}/info'
763htmldir='${docdir}'
764dvidir='${docdir}'
765pdfdir='${docdir}'
766psdir='${docdir}'
767libdir='${exec_prefix}/lib'
768localedir='${datarootdir}/locale'
769mandir='${datarootdir}/man'
d6e9fb05 770
d6e9fb05 771ac_prev=
81ecdfbb 772ac_dashdash=
d6e9fb05
JK
773for ac_option
774do
d6e9fb05
JK
775 # If the previous option needs an argument, assign it.
776 if test -n "$ac_prev"; then
81ecdfbb 777 eval $ac_prev=\$ac_option
d6e9fb05
JK
778 ac_prev=
779 continue
780 fi
781
81ecdfbb
RW
782 case $ac_option in
783 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
784 *) ac_optarg=yes ;;
785 esac
d6e9fb05
JK
786
787 # Accept the important Cygnus configure options, so we can diagnose typos.
788
81ecdfbb
RW
789 case $ac_dashdash$ac_option in
790 --)
791 ac_dashdash=yes ;;
d6e9fb05
JK
792
793 -bindir | --bindir | --bindi | --bind | --bin | --bi)
794 ac_prev=bindir ;;
795 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 796 bindir=$ac_optarg ;;
d6e9fb05
JK
797
798 -build | --build | --buil | --bui | --bu)
bec39cab 799 ac_prev=build_alias ;;
d6e9fb05 800 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 801 build_alias=$ac_optarg ;;
d6e9fb05
JK
802
803 -cache-file | --cache-file | --cache-fil | --cache-fi \
804 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
805 ac_prev=cache_file ;;
806 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
807 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
808 cache_file=$ac_optarg ;;
809
810 --config-cache | -C)
811 cache_file=config.cache ;;
d6e9fb05 812
81ecdfbb 813 -datadir | --datadir | --datadi | --datad)
d6e9fb05 814 ac_prev=datadir ;;
81ecdfbb 815 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bec39cab 816 datadir=$ac_optarg ;;
d6e9fb05 817
81ecdfbb
RW
818 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
819 | --dataroo | --dataro | --datar)
820 ac_prev=datarootdir ;;
821 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
822 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
823 datarootdir=$ac_optarg ;;
824
d6e9fb05 825 -disable-* | --disable-*)
81ecdfbb 826 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d6e9fb05 827 # Reject names that are not valid shell variable names.
81ecdfbb
RW
828 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
829 as_fn_error "invalid feature name: $ac_useropt"
830 ac_useropt_orig=$ac_useropt
831 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
832 case $ac_user_opts in
833 *"
834"enable_$ac_useropt"
835"*) ;;
836 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
837 ac_unrecognized_sep=', ';;
838 esac
839 eval enable_$ac_useropt=no ;;
840
841 -docdir | --docdir | --docdi | --doc | --do)
842 ac_prev=docdir ;;
843 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
844 docdir=$ac_optarg ;;
845
846 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
847 ac_prev=dvidir ;;
848 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
849 dvidir=$ac_optarg ;;
d6e9fb05
JK
850
851 -enable-* | --enable-*)
81ecdfbb 852 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d6e9fb05 853 # Reject names that are not valid shell variable names.
81ecdfbb
RW
854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
855 as_fn_error "invalid feature name: $ac_useropt"
856 ac_useropt_orig=$ac_useropt
857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
859 *"
860"enable_$ac_useropt"
861"*) ;;
862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
863 ac_unrecognized_sep=', ';;
dae5f5cf 864 esac
81ecdfbb 865 eval enable_$ac_useropt=\$ac_optarg ;;
d6e9fb05
JK
866
867 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
868 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
869 | --exec | --exe | --ex)
870 ac_prev=exec_prefix ;;
871 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
872 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
873 | --exec=* | --exe=* | --ex=*)
bec39cab 874 exec_prefix=$ac_optarg ;;
d6e9fb05
JK
875
876 -gas | --gas | --ga | --g)
877 # Obsolete; use --with-gas.
878 with_gas=yes ;;
879
bec39cab
AC
880 -help | --help | --hel | --he | -h)
881 ac_init_help=long ;;
882 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
883 ac_init_help=recursive ;;
884 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
885 ac_init_help=short ;;
d6e9fb05
JK
886
887 -host | --host | --hos | --ho)
bec39cab 888 ac_prev=host_alias ;;
d6e9fb05 889 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 890 host_alias=$ac_optarg ;;
d6e9fb05 891
81ecdfbb
RW
892 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
893 ac_prev=htmldir ;;
894 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
895 | --ht=*)
896 htmldir=$ac_optarg ;;
897
d6e9fb05
JK
898 -includedir | --includedir | --includedi | --included | --include \
899 | --includ | --inclu | --incl | --inc)
900 ac_prev=includedir ;;
901 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
902 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 903 includedir=$ac_optarg ;;
d6e9fb05
JK
904
905 -infodir | --infodir | --infodi | --infod | --info | --inf)
906 ac_prev=infodir ;;
907 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 908 infodir=$ac_optarg ;;
d6e9fb05
JK
909
910 -libdir | --libdir | --libdi | --libd)
911 ac_prev=libdir ;;
912 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 913 libdir=$ac_optarg ;;
d6e9fb05
JK
914
915 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
916 | --libexe | --libex | --libe)
917 ac_prev=libexecdir ;;
918 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
919 | --libexe=* | --libex=* | --libe=*)
bec39cab 920 libexecdir=$ac_optarg ;;
d6e9fb05 921
81ecdfbb
RW
922 -localedir | --localedir | --localedi | --localed | --locale)
923 ac_prev=localedir ;;
924 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
925 localedir=$ac_optarg ;;
926
d6e9fb05 927 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 928 | --localstate | --localstat | --localsta | --localst | --locals)
d6e9fb05
JK
929 ac_prev=localstatedir ;;
930 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 931 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bec39cab 932 localstatedir=$ac_optarg ;;
d6e9fb05
JK
933
934 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
935 ac_prev=mandir ;;
936 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 937 mandir=$ac_optarg ;;
d6e9fb05
JK
938
939 -nfp | --nfp | --nf)
940 # Obsolete; use --without-fp.
941 with_fp=no ;;
942
943 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 944 | --no-cr | --no-c | -n)
d6e9fb05
JK
945 no_create=yes ;;
946
947 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
948 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
949 no_recursion=yes ;;
950
951 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
952 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
953 | --oldin | --oldi | --old | --ol | --o)
954 ac_prev=oldincludedir ;;
955 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
956 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
957 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 958 oldincludedir=$ac_optarg ;;
d6e9fb05
JK
959
960 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
961 ac_prev=prefix ;;
962 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 963 prefix=$ac_optarg ;;
d6e9fb05
JK
964
965 -program-prefix | --program-prefix | --program-prefi | --program-pref \
966 | --program-pre | --program-pr | --program-p)
967 ac_prev=program_prefix ;;
968 -program-prefix=* | --program-prefix=* | --program-prefi=* \
969 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 970 program_prefix=$ac_optarg ;;
d6e9fb05
JK
971
972 -program-suffix | --program-suffix | --program-suffi | --program-suff \
973 | --program-suf | --program-su | --program-s)
974 ac_prev=program_suffix ;;
975 -program-suffix=* | --program-suffix=* | --program-suffi=* \
976 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 977 program_suffix=$ac_optarg ;;
d6e9fb05
JK
978
979 -program-transform-name | --program-transform-name \
980 | --program-transform-nam | --program-transform-na \
981 | --program-transform-n | --program-transform- \
982 | --program-transform | --program-transfor \
983 | --program-transfo | --program-transf \
984 | --program-trans | --program-tran \
985 | --progr-tra | --program-tr | --program-t)
986 ac_prev=program_transform_name ;;
987 -program-transform-name=* | --program-transform-name=* \
988 | --program-transform-nam=* | --program-transform-na=* \
989 | --program-transform-n=* | --program-transform-=* \
990 | --program-transform=* | --program-transfor=* \
991 | --program-transfo=* | --program-transf=* \
992 | --program-trans=* | --program-tran=* \
993 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 994 program_transform_name=$ac_optarg ;;
d6e9fb05 995
81ecdfbb
RW
996 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
997 ac_prev=pdfdir ;;
998 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
999 pdfdir=$ac_optarg ;;
1000
1001 -psdir | --psdir | --psdi | --psd | --ps)
1002 ac_prev=psdir ;;
1003 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1004 psdir=$ac_optarg ;;
1005
d6e9fb05
JK
1006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1007 | -silent | --silent | --silen | --sile | --sil)
1008 silent=yes ;;
1009
1010 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1011 ac_prev=sbindir ;;
1012 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1013 | --sbi=* | --sb=*)
bec39cab 1014 sbindir=$ac_optarg ;;
d6e9fb05
JK
1015
1016 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1017 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1018 | --sharedst | --shareds | --shared | --share | --shar \
1019 | --sha | --sh)
1020 ac_prev=sharedstatedir ;;
1021 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1022 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1023 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1024 | --sha=* | --sh=*)
bec39cab 1025 sharedstatedir=$ac_optarg ;;
d6e9fb05
JK
1026
1027 -site | --site | --sit)
1028 ac_prev=site ;;
1029 -site=* | --site=* | --sit=*)
bec39cab 1030 site=$ac_optarg ;;
434c4c77 1031
d6e9fb05
JK
1032 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1033 ac_prev=srcdir ;;
1034 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 1035 srcdir=$ac_optarg ;;
d6e9fb05
JK
1036
1037 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1038 | --syscon | --sysco | --sysc | --sys | --sy)
1039 ac_prev=sysconfdir ;;
1040 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1041 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 1042 sysconfdir=$ac_optarg ;;
d6e9fb05
JK
1043
1044 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 1045 ac_prev=target_alias ;;
d6e9fb05 1046 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 1047 target_alias=$ac_optarg ;;
d6e9fb05
JK
1048
1049 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1050 verbose=yes ;;
1051
bec39cab
AC
1052 -version | --version | --versio | --versi | --vers | -V)
1053 ac_init_version=: ;;
d6e9fb05
JK
1054
1055 -with-* | --with-*)
81ecdfbb 1056 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d6e9fb05 1057 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error "invalid package name: $ac_useropt"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1063 *"
1064"with_$ac_useropt"
1065"*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
dae5f5cf 1068 esac
81ecdfbb 1069 eval with_$ac_useropt=\$ac_optarg ;;
d6e9fb05
JK
1070
1071 -without-* | --without-*)
81ecdfbb 1072 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d6e9fb05 1073 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error "invalid package name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080"with_$ac_useropt"
1081"*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval with_$ac_useropt=no ;;
d6e9fb05
JK
1086
1087 --x)
1088 # Obsolete; use --with-x.
1089 with_x=yes ;;
1090
1091 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1092 | --x-incl | --x-inc | --x-in | --x-i)
1093 ac_prev=x_includes ;;
1094 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1095 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 1096 x_includes=$ac_optarg ;;
d6e9fb05
JK
1097
1098 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1099 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1100 ac_prev=x_libraries ;;
1101 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1102 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 1103 x_libraries=$ac_optarg ;;
d6e9fb05 1104
81ecdfbb
RW
1105 -*) as_fn_error "unrecognized option: \`$ac_option'
1106Try \`$0 --help' for more information."
d6e9fb05
JK
1107 ;;
1108
bec39cab
AC
1109 *=*)
1110 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1112 case $ac_envvar in #(
1113 '' | [0-9]* | *[!_$as_cr_alnum]* )
1114 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1115 esac
1116 eval $ac_envvar=\$ac_optarg
bec39cab
AC
1117 export $ac_envvar ;;
1118
d6e9fb05 1119 *)
bec39cab 1120 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1121 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bec39cab 1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1123 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
bec39cab 1124 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
d6e9fb05
JK
1125 ;;
1126
1127 esac
1128done
1129
1130if test -n "$ac_prev"; then
bec39cab 1131 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1132 as_fn_error "missing argument to $ac_option"
d6e9fb05 1133fi
d6e9fb05 1134
81ecdfbb
RW
1135if test -n "$ac_unrecognized_opts"; then
1136 case $enable_option_checking in
1137 no) ;;
1138 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1139 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
dae5f5cf 1140 esac
81ecdfbb 1141fi
dae5f5cf 1142
81ecdfbb
RW
1143# Check all directory arguments for consistency.
1144for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1145 datadir sysconfdir sharedstatedir localstatedir includedir \
1146 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1147 libdir localedir mandir
dae5f5cf 1148do
81ecdfbb
RW
1149 eval ac_val=\$$ac_var
1150 # Remove trailing slashes.
1151 case $ac_val in
1152 */ )
1153 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1154 eval $ac_var=\$ac_val;;
1155 esac
1156 # Be sure to have absolute directory names.
dae5f5cf 1157 case $ac_val in
81ecdfbb
RW
1158 [\\/$]* | ?:[\\/]* ) continue;;
1159 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d6e9fb05 1160 esac
81ecdfbb 1161 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
d6e9fb05
JK
1162done
1163
bec39cab
AC
1164# There might be people who depend on the old broken behavior: `$host'
1165# used to hold the argument of --host etc.
1166# FIXME: To remove some day.
1167build=$build_alias
1168host=$host_alias
1169target=$target_alias
1170
1171# FIXME: To remove some day.
1172if test "x$host_alias" != x; then
1173 if test "x$build_alias" = x; then
1174 cross_compiling=maybe
81ecdfbb 1175 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
bec39cab
AC
1176 If a cross compiler is detected then cross compile mode will be used." >&2
1177 elif test "x$build_alias" != "x$host_alias"; then
1178 cross_compiling=yes
1179 fi
1180fi
d6e9fb05 1181
bec39cab
AC
1182ac_tool_prefix=
1183test -n "$host_alias" && ac_tool_prefix=$host_alias-
1184
1185test "$silent" = yes && exec 6>/dev/null
d6e9fb05 1186
d6e9fb05 1187
81ecdfbb
RW
1188ac_pwd=`pwd` && test -n "$ac_pwd" &&
1189ac_ls_di=`ls -di .` &&
1190ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1191 as_fn_error "working directory cannot be determined"
1192test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1193 as_fn_error "pwd does not report name of working directory"
1194
1195
d6e9fb05
JK
1196# Find the source files, if location was not specified.
1197if test -z "$srcdir"; then
1198 ac_srcdir_defaulted=yes
81ecdfbb
RW
1199 # Try the directory containing this script, then the parent directory.
1200 ac_confdir=`$as_dirname -- "$as_myself" ||
1201$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1202 X"$as_myself" : 'X\(//\)[^/]' \| \
1203 X"$as_myself" : 'X\(//\)$' \| \
1204 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1205$as_echo X"$as_myself" |
1206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1207 s//\1/
1208 q
1209 }
1210 /^X\(\/\/\)[^/].*/{
1211 s//\1/
1212 q
1213 }
1214 /^X\(\/\/\)$/{
1215 s//\1/
1216 q
1217 }
1218 /^X\(\/\).*/{
1219 s//\1/
1220 q
1221 }
1222 s/.*/./; q'`
d6e9fb05 1223 srcdir=$ac_confdir
81ecdfbb 1224 if test ! -r "$srcdir/$ac_unique_file"; then
d6e9fb05
JK
1225 srcdir=..
1226 fi
1227else
1228 ac_srcdir_defaulted=no
1229fi
81ecdfbb
RW
1230if test ! -r "$srcdir/$ac_unique_file"; then
1231 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1232 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1233fi
1234ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1235ac_abs_confdir=`(
1236 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1237 pwd)`
1238# When building in place, set srcdir=.
1239if test "$ac_abs_confdir" = "$ac_pwd"; then
1240 srcdir=.
1241fi
1242# Remove unnecessary trailing slashes from srcdir.
1243# Double slashes in file names in object file debugging info
1244# mess up M-x gdb in Emacs.
1245case $srcdir in
1246*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1247esac
1248for ac_var in $ac_precious_vars; do
1249 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1250 eval ac_env_${ac_var}_value=\$${ac_var}
1251 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1252 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1253done
d6e9fb05 1254
bec39cab
AC
1255#
1256# Report the --help message.
1257#
1258if test "$ac_init_help" = "long"; then
1259 # Omit some internal or obsolete options to make the list less imposing.
1260 # This message is too long to be a string in the A/UX 3.1 sh.
1261 cat <<_ACEOF
1262\`configure' configures this package to adapt to many kinds of systems.
1263
1264Usage: $0 [OPTION]... [VAR=VALUE]...
1265
1266To assign environment variables (e.g., CC, CFLAGS...), specify them as
1267VAR=VALUE. See below for descriptions of some of the useful variables.
1268
1269Defaults for the options are specified in brackets.
1270
1271Configuration:
1272 -h, --help display this help and exit
1273 --help=short display options specific to this package
1274 --help=recursive display the short help of all the included packages
1275 -V, --version display version information and exit
1276 -q, --quiet, --silent do not print \`checking...' messages
1277 --cache-file=FILE cache test results in FILE [disabled]
1278 -C, --config-cache alias for \`--cache-file=config.cache'
1279 -n, --no-create do not create output files
1280 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1281
bec39cab
AC
1282Installation directories:
1283 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1284 [$ac_default_prefix]
bec39cab 1285 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1286 [PREFIX]
bec39cab
AC
1287
1288By default, \`make install' will install all the files in
1289\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1290an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1291for instance \`--prefix=\$HOME'.
1292
1293For better control, use the options below.
1294
1295Fine tuning of the installation directories:
81ecdfbb
RW
1296 --bindir=DIR user executables [EPREFIX/bin]
1297 --sbindir=DIR system admin executables [EPREFIX/sbin]
1298 --libexecdir=DIR program executables [EPREFIX/libexec]
1299 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1300 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1301 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1302 --libdir=DIR object code libraries [EPREFIX/lib]
1303 --includedir=DIR C header files [PREFIX/include]
1304 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1305 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1306 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1307 --infodir=DIR info documentation [DATAROOTDIR/info]
1308 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1309 --mandir=DIR man documentation [DATAROOTDIR/man]
1310 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1311 --htmldir=DIR html documentation [DOCDIR]
1312 --dvidir=DIR dvi documentation [DOCDIR]
1313 --pdfdir=DIR pdf documentation [DOCDIR]
1314 --psdir=DIR ps documentation [DOCDIR]
bec39cab
AC
1315_ACEOF
1316
1317 cat <<\_ACEOF
1318
dcdb98d2
DJ
1319Program names:
1320 --program-prefix=PREFIX prepend PREFIX to installed program names
1321 --program-suffix=SUFFIX append SUFFIX to installed program names
1322 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1323
bec39cab
AC
1324System types:
1325 --build=BUILD configure for building on BUILD [guessed]
1326 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1327 --target=TARGET configure for building compilers for TARGET [HOST]
1328_ACEOF
1329fi
1330
1331if test -n "$ac_init_help"; then
1332
1333 cat <<\_ACEOF
1334
d4596a3d
PA
1335Optional Features:
1336 --disable-option-checking ignore unrecognized --enable/--with options
1337 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1338 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c9a1864a
YQ
1339 --enable-maintainer-mode enable make rules and dependencies not useful
1340 (and sometimes confusing) to the casual installer
589bc927 1341 --disable-largefile omit support for large files
3bc3d82a 1342 --enable-build-with-cxx build with C++ compiler instead of C compiler
17ef446e 1343 --enable-libmcheck Try linking with -lmcheck if available
d4596a3d 1344 --enable-werror treat compile warnings as errors
8f13a3ce
MF
1345 --enable-build-warnings enable build-time compiler warnings if gcc is used
1346 --enable-gdb-build-warnings
1347 enable GDB specific build-time compiler warnings if
1348 gcc is used
c2a66c29
NS
1349 --enable-inprocess-agent
1350 inprocess agent
d4596a3d 1351
c16158bc
JM
1352Optional Packages:
1353 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1354 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
0fb4aa4b
PA
1355 --with-ust=PATH Specify prefix directory for the installed UST package
1356 Equivalent to --with-ust-include=PATH/include
1357 plus --with-ust-lib=PATH/lib
1358 --with-ust-include=PATH Specify directory for installed UST include files
1359 --with-ust-lib=PATH Specify the directory for the installed UST library
c16158bc
JM
1360 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1361 --with-bugurl=URL Direct users to URL to report a bug
96f15937
PP
1362 --with-libthread-db=PATH
1363 use given libthread_db directly
c16158bc 1364
bec39cab
AC
1365Some influential environment variables:
1366 CC C compiler command
1367 CFLAGS C compiler flags
1368 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1369 nonstandard directory <lib dir>
81ecdfbb
RW
1370 LIBS libraries to pass to the linker, e.g. -l<library>
1371 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1372 you have headers in a nonstandard directory <include dir>
3bc3d82a
PA
1373 CXX C++ compiler command
1374 CXXFLAGS C++ compiler flags
bec39cab
AC
1375 CPP C preprocessor
1376
1377Use these variables to override the choices made by `configure' or to help
1378it to find libraries and programs with nonstandard names/locations.
1379
81ecdfbb 1380Report bugs to the package provider.
bec39cab 1381_ACEOF
81ecdfbb 1382ac_status=$?
bec39cab
AC
1383fi
1384
1385if test "$ac_init_help" = "recursive"; then
1386 # If there are subdirs, report their specific --help.
bec39cab 1387 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1388 test -d "$ac_dir" ||
1389 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1390 continue
bec39cab
AC
1391 ac_builddir=.
1392
81ecdfbb
RW
1393case "$ac_dir" in
1394.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395*)
1396 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1397 # A ".." for each directory in $ac_dir_suffix.
1398 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1399 case $ac_top_builddir_sub in
1400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1402 esac ;;
1403esac
1404ac_abs_top_builddir=$ac_pwd
1405ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406# for backward compatibility:
1407ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
1408
1409case $srcdir in
81ecdfbb 1410 .) # We are building in place.
bec39cab 1411 ac_srcdir=.
81ecdfbb
RW
1412 ac_top_srcdir=$ac_top_builddir_sub
1413 ac_abs_top_srcdir=$ac_pwd ;;
1414 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 1415 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1416 ac_top_srcdir=$srcdir
1417 ac_abs_top_srcdir=$srcdir ;;
1418 *) # Relative name.
1419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420 ac_top_srcdir=$ac_top_build_prefix$srcdir
1421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
dae5f5cf 1422esac
81ecdfbb
RW
1423ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1424
1425 cd "$ac_dir" || { ac_status=$?; continue; }
1426 # Check for guested configure.
1427 if test -f "$ac_srcdir/configure.gnu"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430 elif test -f "$ac_srcdir/configure"; then
1431 echo &&
1432 $SHELL "$ac_srcdir/configure" --help=recursive
434c4c77 1433 else
81ecdfbb
RW
1434 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1435 fi || ac_status=$?
1436 cd "$ac_pwd" || { ac_status=$?; break; }
bec39cab
AC
1437 done
1438fi
1439
81ecdfbb 1440test -n "$ac_init_help" && exit $ac_status
bec39cab
AC
1441if $ac_init_version; then
1442 cat <<\_ACEOF
81ecdfbb
RW
1443configure
1444generated by GNU Autoconf 2.64
bec39cab 1445
81ecdfbb 1446Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
1447This configure script is free software; the Free Software Foundation
1448gives unlimited permission to copy, distribute and modify it.
1449_ACEOF
81ecdfbb 1450 exit
bec39cab 1451fi
bec39cab 1452
81ecdfbb
RW
1453## ------------------------ ##
1454## Autoconf initialization. ##
1455## ------------------------ ##
bec39cab 1456
81ecdfbb
RW
1457# ac_fn_c_try_compile LINENO
1458# --------------------------
1459# Try to compile conftest.$ac_ext, and return whether this succeeded.
1460ac_fn_c_try_compile ()
bec39cab 1461{
81ecdfbb
RW
1462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1463 rm -f conftest.$ac_objext
1464 if { { ac_try="$ac_compile"
1465case "(($ac_try" in
1466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1467 *) ac_try_echo=$ac_try;;
1468esac
1469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1470$as_echo "$ac_try_echo"; } >&5
1471 (eval "$ac_compile") 2>conftest.err
1472 ac_status=$?
1473 if test -s conftest.err; then
1474 grep -v '^ *+' conftest.err >conftest.er1
1475 cat conftest.er1 >&5
1476 mv -f conftest.er1 conftest.err
1477 fi
1478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1479 test $ac_status = 0; } && {
1480 test -z "$ac_c_werror_flag" ||
1481 test ! -s conftest.err
1482 } && test -s conftest.$ac_objext; then :
1483 ac_retval=0
1484else
1485 $as_echo "$as_me: failed program was:" >&5
1486sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1487
81ecdfbb
RW
1488 ac_retval=1
1489fi
1490 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1491 return $ac_retval
bec39cab 1492
81ecdfbb 1493} # ac_fn_c_try_compile
bec39cab 1494
3bc3d82a
PA
1495# ac_fn_cxx_try_compile LINENO
1496# ----------------------------
1497# Try to compile conftest.$ac_ext, and return whether this succeeded.
1498ac_fn_cxx_try_compile ()
1499{
1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501 rm -f conftest.$ac_objext
1502 if { { ac_try="$ac_compile"
1503case "(($ac_try" in
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1506esac
1507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508$as_echo "$ac_try_echo"; } >&5
1509 (eval "$ac_compile") 2>conftest.err
1510 ac_status=$?
1511 if test -s conftest.err; then
1512 grep -v '^ *+' conftest.err >conftest.er1
1513 cat conftest.er1 >&5
1514 mv -f conftest.er1 conftest.err
1515 fi
1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517 test $ac_status = 0; } && {
1518 test -z "$ac_cxx_werror_flag" ||
1519 test ! -s conftest.err
1520 } && test -s conftest.$ac_objext; then :
1521 ac_retval=0
1522else
1523 $as_echo "$as_me: failed program was:" >&5
1524sed 's/^/| /' conftest.$ac_ext >&5
1525
1526 ac_retval=1
1527fi
1528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1529 return $ac_retval
1530
1531} # ac_fn_cxx_try_compile
1532
81ecdfbb
RW
1533# ac_fn_c_try_cpp LINENO
1534# ----------------------
1535# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1536ac_fn_c_try_cpp ()
1537{
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 if { { ac_try="$ac_cpp conftest.$ac_ext"
1540case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543esac
1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545$as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1552 fi
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } >/dev/null && {
1555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 }; then :
1558 ac_retval=0
1559else
1560 $as_echo "$as_me: failed program was:" >&5
1561sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1562
81ecdfbb
RW
1563 ac_retval=1
1564fi
1565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1566 return $ac_retval
bec39cab 1567
81ecdfbb
RW
1568} # ac_fn_c_try_cpp
1569
1570# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1571# -------------------------------------------------------
1572# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1573# the include files in INCLUDES and setting the cache variable VAR
1574# accordingly.
1575ac_fn_c_check_header_mongrel ()
1576{
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1580$as_echo_n "checking for $2... " >&6; }
1581if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1582 $as_echo_n "(cached) " >&6
1583fi
1584eval ac_res=\$$3
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1586$as_echo "$ac_res" >&6; }
1587else
1588 # Is the header compilable?
1589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1590$as_echo_n "checking $2 usability... " >&6; }
1591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592/* end confdefs.h. */
1593$4
1594#include <$2>
1595_ACEOF
1596if ac_fn_c_try_compile "$LINENO"; then :
1597 ac_header_compiler=yes
1598else
1599 ac_header_compiler=no
1600fi
1601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1603$as_echo "$ac_header_compiler" >&6; }
1604
1605# Is the header present?
1606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1607$as_echo_n "checking $2 presence... " >&6; }
1608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609/* end confdefs.h. */
1610#include <$2>
1611_ACEOF
1612if ac_fn_c_try_cpp "$LINENO"; then :
1613 ac_header_preproc=yes
1614else
1615 ac_header_preproc=no
1616fi
1617rm -f conftest.err conftest.$ac_ext
1618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1619$as_echo "$ac_header_preproc" >&6; }
1620
1621# So? What about this header?
1622case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1623 yes:no: )
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1625$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1627$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1628 ;;
1629 no:yes:* )
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1631$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1633$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1635$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1637$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1639$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1640 ;;
1641esac
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643$as_echo_n "checking for $2... " >&6; }
1644if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1645 $as_echo_n "(cached) " >&6
1646else
1647 eval "$3=\$ac_header_compiler"
1648fi
1649eval ac_res=\$$3
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651$as_echo "$ac_res" >&6; }
1652fi
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654
1655} # ac_fn_c_check_header_mongrel
1656
1657# ac_fn_c_try_run LINENO
1658# ----------------------
1659# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1660# that executables *can* be run.
1661ac_fn_c_try_run ()
1662{
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if { { ac_try="$ac_link"
1665case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668esac
1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670$as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_link") 2>&5
1672 ac_status=$?
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1675 { { case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678esac
1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680$as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_try") 2>&5
1682 ac_status=$?
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; }; }; then :
1685 ac_retval=0
1686else
1687 $as_echo "$as_me: program exited with status $ac_status" >&5
1688 $as_echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=$ac_status
1692fi
1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695 return $ac_retval
1696
1697} # ac_fn_c_try_run
1698
1699# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700# -------------------------------------------------------
1701# Tests whether HEADER exists and can be compiled using the include files in
1702# INCLUDES, setting the cache variable VAR accordingly.
1703ac_fn_c_check_header_compile ()
1704{
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707$as_echo_n "checking for $2... " >&6; }
1708if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1709 $as_echo_n "(cached) " >&6
1710else
1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712/* end confdefs.h. */
1713$4
1714#include <$2>
1715_ACEOF
1716if ac_fn_c_try_compile "$LINENO"; then :
1717 eval "$3=yes"
1718else
1719 eval "$3=no"
1720fi
1721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1722fi
1723eval ac_res=\$$3
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725$as_echo "$ac_res" >&6; }
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727
1728} # ac_fn_c_check_header_compile
1729
1730# ac_fn_c_try_link LINENO
1731# -----------------------
1732# Try to link conftest.$ac_ext, and return whether this succeeded.
1733ac_fn_c_try_link ()
1734{
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext conftest$ac_exeext
1737 if { { ac_try="$ac_link"
1738case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741esac
1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743$as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_link") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1750 fi
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest$ac_exeext && {
1756 test "$cross_compiling" = yes ||
1757 $as_test_x conftest$ac_exeext
1758 }; then :
1759 ac_retval=0
1760else
1761 $as_echo "$as_me: failed program was:" >&5
1762sed 's/^/| /' conftest.$ac_ext >&5
1763
1764 ac_retval=1
1765fi
1766 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1767 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1768 # interfere with the next link command; also delete a directory that is
1769 # left behind by Apple's compiler. We do this before executing the actions.
1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1772 return $ac_retval
1773
1774} # ac_fn_c_try_link
1775
eb0edac8
GB
1776# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1777# -------------------------------------------
1778# Tests whether TYPE exists after having included INCLUDES, setting cache
1779# variable VAR accordingly.
1780ac_fn_c_check_type ()
1781{
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784$as_echo_n "checking for $2... " >&6; }
1785if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 $as_echo_n "(cached) " >&6
1787else
1788 eval "$3=no"
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h. */
1791$4
1792int
1793main ()
1794{
1795if (sizeof ($2))
1796 return 0;
1797 ;
1798 return 0;
1799}
1800_ACEOF
1801if ac_fn_c_try_compile "$LINENO"; then :
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h. */
1804$4
1805int
1806main ()
1807{
1808if (sizeof (($2)))
1809 return 0;
1810 ;
1811 return 0;
1812}
1813_ACEOF
1814if ac_fn_c_try_compile "$LINENO"; then :
1815
1816else
1817 eval "$3=yes"
1818fi
1819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820fi
1821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822fi
1823eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825$as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827
1828} # ac_fn_c_check_type
1829
81ecdfbb
RW
1830# ac_fn_c_check_func LINENO FUNC VAR
1831# ----------------------------------
1832# Tests whether FUNC exists, setting the cache variable VAR accordingly
1833ac_fn_c_check_func ()
1834{
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837$as_echo_n "checking for $2... " >&6; }
1838if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1840else
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842/* end confdefs.h. */
1843/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1845#define $2 innocuous_$2
1846
1847/* System header to define __stub macros and hopefully few prototypes,
1848 which can conflict with char $2 (); below.
1849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1850 <limits.h> exists even on freestanding compilers. */
1851
1852#ifdef __STDC__
1853# include <limits.h>
1854#else
1855# include <assert.h>
1856#endif
1857
1858#undef $2
1859
1860/* Override any GCC internal prototype to avoid an error.
1861 Use char because int might match the return type of a GCC
1862 builtin and then its argument prototype would still apply. */
1863#ifdef __cplusplus
1864extern "C"
1865#endif
1866char $2 ();
1867/* The GNU C library defines this for functions which it implements
1868 to always fail with ENOSYS. Some functions are actually named
1869 something starting with __ and the normal name is an alias. */
1870#if defined __stub_$2 || defined __stub___$2
1871choke me
1872#endif
1873
1874int
1875main ()
1876{
1877return $2 ();
1878 ;
1879 return 0;
1880}
1881_ACEOF
1882if ac_fn_c_try_link "$LINENO"; then :
1883 eval "$3=yes"
1884else
1885 eval "$3=no"
1886fi
1887rm -f core conftest.err conftest.$ac_objext \
1888 conftest$ac_exeext conftest.$ac_ext
1889fi
1890eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892$as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894
1895} # ac_fn_c_check_func
1896
1897# ac_fn_c_check_decl LINENO SYMBOL VAR
1898# ------------------------------------
1899# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1900ac_fn_c_check_decl ()
1901{
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
0fb4aa4b
PA
1903 as_decl_name=`echo $2|sed 's/ *(.*//'`
1904 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1906$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
1907if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1908 $as_echo_n "(cached) " >&6
1909else
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911/* end confdefs.h. */
1912$4
1913int
1914main ()
1915{
0fb4aa4b
PA
1916#ifndef $as_decl_name
1917#ifdef __cplusplus
1918 (void) $as_decl_use;
1919#else
1920 (void) $as_decl_name;
1921#endif
81ecdfbb
RW
1922#endif
1923
1924 ;
1925 return 0;
1926}
1927_ACEOF
1928if ac_fn_c_try_compile "$LINENO"; then :
1929 eval "$3=yes"
1930else
1931 eval "$3=no"
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934fi
1935eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1939
1940} # ac_fn_c_check_decl
1941
54019719
PA
1942# ac_fn_cxx_check_decl LINENO SYMBOL VAR
1943# --------------------------------------
1944# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1945ac_fn_cxx_check_decl ()
1946{
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 as_decl_name=`echo $2|sed 's/ *(.*//'`
1949 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1951$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1952if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1953 $as_echo_n "(cached) " >&6
1954else
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956/* end confdefs.h. */
1957$4
1958int
1959main ()
1960{
1961#ifndef $as_decl_name
1962#ifdef __cplusplus
1963 (void) $as_decl_use;
1964#else
1965 (void) $as_decl_name;
1966#endif
1967#endif
1968
1969 ;
1970 return 0;
1971}
1972_ACEOF
1973if ac_fn_cxx_try_compile "$LINENO"; then :
1974 eval "$3=yes"
1975else
1976 eval "$3=no"
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979fi
1980eval ac_res=\$$3
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982$as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984
1985} # ac_fn_cxx_check_decl
1986
07697489
PA
1987# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1988# --------------------------------------------
1989# Tries to find the compile-time value of EXPR in a program that includes
1990# INCLUDES, setting VAR accordingly. Returns whether the value could be
1991# computed
1992ac_fn_c_compute_int ()
1993{
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 if test "$cross_compiling" = yes; then
1996 # Depending upon the size, compute the lo and hi bounds.
1997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h. */
1999$4
2000int
2001main ()
2002{
2003static int test_array [1 - 2 * !(($2) >= 0)];
2004test_array [0] = 0
2005
2006 ;
2007 return 0;
2008}
2009_ACEOF
2010if ac_fn_c_try_compile "$LINENO"; then :
2011 ac_lo=0 ac_mid=0
2012 while :; do
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h. */
2015$4
2016int
2017main ()
2018{
2019static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2020test_array [0] = 0
2021
2022 ;
2023 return 0;
2024}
2025_ACEOF
2026if ac_fn_c_try_compile "$LINENO"; then :
2027 ac_hi=$ac_mid; break
2028else
2029 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2030 if test $ac_lo -le $ac_mid; then
2031 ac_lo= ac_hi=
2032 break
2033 fi
2034 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 done
2038else
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040/* end confdefs.h. */
2041$4
2042int
2043main ()
2044{
2045static int test_array [1 - 2 * !(($2) < 0)];
2046test_array [0] = 0
2047
2048 ;
2049 return 0;
2050}
2051_ACEOF
2052if ac_fn_c_try_compile "$LINENO"; then :
2053 ac_hi=-1 ac_mid=-1
2054 while :; do
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056/* end confdefs.h. */
2057$4
2058int
2059main ()
2060{
2061static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2062test_array [0] = 0
2063
2064 ;
2065 return 0;
2066}
2067_ACEOF
2068if ac_fn_c_try_compile "$LINENO"; then :
2069 ac_lo=$ac_mid; break
2070else
2071 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2072 if test $ac_mid -le $ac_hi; then
2073 ac_lo= ac_hi=
2074 break
2075 fi
2076 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2077fi
2078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 done
2080else
2081 ac_lo= ac_hi=
2082fi
2083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086# Binary search between lo and hi bounds.
2087while test "x$ac_lo" != "x$ac_hi"; do
2088 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h. */
2091$4
2092int
2093main ()
2094{
2095static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2096test_array [0] = 0
2097
2098 ;
2099 return 0;
2100}
2101_ACEOF
2102if ac_fn_c_try_compile "$LINENO"; then :
2103 ac_hi=$ac_mid
2104else
2105 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2106fi
2107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108done
2109case $ac_lo in #((
2110?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2111'') ac_retval=1 ;;
2112esac
2113 else
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h. */
2116$4
2117static long int longval () { return $2; }
2118static unsigned long int ulongval () { return $2; }
2119#include <stdio.h>
2120#include <stdlib.h>
2121int
2122main ()
2123{
2124
2125 FILE *f = fopen ("conftest.val", "w");
2126 if (! f)
2127 return 1;
2128 if (($2) < 0)
2129 {
2130 long int i = longval ();
2131 if (i != ($2))
2132 return 1;
2133 fprintf (f, "%ld", i);
2134 }
2135 else
2136 {
2137 unsigned long int i = ulongval ();
2138 if (i != ($2))
2139 return 1;
2140 fprintf (f, "%lu", i);
2141 }
2142 /* Do not output a trailing newline, as this causes \r\n confusion
2143 on some platforms. */
2144 return ferror (f) || fclose (f) != 0;
2145
2146 ;
2147 return 0;
2148}
2149_ACEOF
2150if ac_fn_c_try_run "$LINENO"; then :
2151 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2152else
2153 ac_retval=1
2154fi
2155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2156 conftest.$ac_objext conftest.beam conftest.$ac_ext
2157rm -f conftest.val
2158
2159 fi
2160 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2161 return $ac_retval
2162
2163} # ac_fn_c_compute_int
791c0056
GB
2164
2165# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2166# ----------------------------------------------------
2167# Tries to find if the field MEMBER exists in type AGGR, after including
2168# INCLUDES, setting cache variable VAR accordingly.
2169ac_fn_c_check_member ()
2170{
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2173$as_echo_n "checking for $2.$3... " >&6; }
2174if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2175 $as_echo_n "(cached) " >&6
2176else
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178/* end confdefs.h. */
2179$5
2180int
2181main ()
2182{
2183static $2 ac_aggr;
2184if (ac_aggr.$3)
2185return 0;
2186 ;
2187 return 0;
2188}
2189_ACEOF
2190if ac_fn_c_try_compile "$LINENO"; then :
2191 eval "$4=yes"
2192else
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h. */
2195$5
2196int
2197main ()
2198{
2199static $2 ac_aggr;
2200if (sizeof ac_aggr.$3)
2201return 0;
2202 ;
2203 return 0;
2204}
2205_ACEOF
2206if ac_fn_c_try_compile "$LINENO"; then :
2207 eval "$4=yes"
2208else
2209 eval "$4=no"
2210fi
2211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212fi
2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214fi
2215eval ac_res=\$$4
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217$as_echo "$ac_res" >&6; }
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2219
2220} # ac_fn_c_check_member
81ecdfbb
RW
2221cat >config.log <<_ACEOF
2222This file contains any messages produced by compilers while
2223running configure, to aid debugging if configure makes a mistake.
2224
2225It was created by $as_me, which was
2226generated by GNU Autoconf 2.64. Invocation command line was
2227
2228 $ $0 $@
2229
2230_ACEOF
2231exec 5>>config.log
2232{
2233cat <<_ASUNAME
2234## --------- ##
2235## Platform. ##
2236## --------- ##
2237
2238hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2239uname -m = `(uname -m) 2>/dev/null || echo unknown`
2240uname -r = `(uname -r) 2>/dev/null || echo unknown`
2241uname -s = `(uname -s) 2>/dev/null || echo unknown`
2242uname -v = `(uname -v) 2>/dev/null || echo unknown`
2243
2244/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2245/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2246
2247/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2248/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2249/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2250/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2251/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2252/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2253/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2254
2255_ASUNAME
2256
2257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258for as_dir in $PATH
2259do
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 $as_echo "PATH: $as_dir"
2263 done
2264IFS=$as_save_IFS
2265
2266} >&5
2267
2268cat >&5 <<_ACEOF
2269
2270
2271## ----------- ##
2272## Core tests. ##
2273## ----------- ##
bec39cab
AC
2274
2275_ACEOF
2276
2277
2278# Keep a trace of the command line.
2279# Strip out --no-create and --no-recursion so they do not pile up.
2280# Strip out --silent because we don't want to record it for future runs.
2281# Also quote any args containing shell meta-characters.
2282# Make two passes to allow for proper duplicate-argument suppression.
2283ac_configure_args=
2284ac_configure_args0=
2285ac_configure_args1=
bec39cab
AC
2286ac_must_keep_next=false
2287for ac_pass in 1 2
2288do
2289 for ac_arg
2290 do
2291 case $ac_arg in
2292 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2294 | -silent | --silent | --silen | --sile | --sil)
2295 continue ;;
81ecdfbb
RW
2296 *\'*)
2297 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
2298 esac
2299 case $ac_pass in
81ecdfbb 2300 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
bec39cab 2301 2)
81ecdfbb 2302 as_fn_append ac_configure_args1 " '$ac_arg'"
bec39cab
AC
2303 if test $ac_must_keep_next = true; then
2304 ac_must_keep_next=false # Got value, back to normal.
2305 else
2306 case $ac_arg in
2307 *=* | --config-cache | -C | -disable-* | --disable-* \
2308 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2309 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2310 | -with-* | --with-* | -without-* | --without-* | --x)
2311 case "$ac_configure_args0 " in
2312 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2313 esac
2314 ;;
2315 -* ) ac_must_keep_next=true ;;
2316 esac
2317 fi
81ecdfbb 2318 as_fn_append ac_configure_args " '$ac_arg'"
bec39cab
AC
2319 ;;
2320 esac
2321 done
2322done
81ecdfbb
RW
2323{ ac_configure_args0=; unset ac_configure_args0;}
2324{ ac_configure_args1=; unset ac_configure_args1;}
bec39cab
AC
2325
2326# When interrupted or exit'd, cleanup temporary files, and complete
2327# config.log. We remove comments because anyway the quotes in there
2328# would cause problems or look ugly.
81ecdfbb
RW
2329# WARNING: Use '\'' to represent an apostrophe within the trap.
2330# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
bec39cab
AC
2331trap 'exit_status=$?
2332 # Save into config.log some information that might help in debugging.
2333 {
2334 echo
2335
2336 cat <<\_ASBOX
2337## ---------------- ##
2338## Cache variables. ##
2339## ---------------- ##
2340_ASBOX
2341 echo
2342 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2343(
2344 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2345 eval ac_val=\$$ac_var
2346 case $ac_val in #(
2347 *${as_nl}*)
2348 case $ac_var in #(
2349 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2350$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2351 esac
2352 case $ac_var in #(
2353 _ | IFS | as_nl) ;; #(
2354 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2355 *) { eval $ac_var=; unset $ac_var;} ;;
2356 esac ;;
2357 esac
2358 done
bec39cab 2359 (set) 2>&1 |
81ecdfbb
RW
2360 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2361 *${as_nl}ac_space=\ *)
bec39cab 2362 sed -n \
81ecdfbb
RW
2363 "s/'\''/'\''\\\\'\'''\''/g;
2364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2365 ;; #(
bec39cab 2366 *)
81ecdfbb 2367 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 2368 ;;
81ecdfbb
RW
2369 esac |
2370 sort
2371)
bec39cab
AC
2372 echo
2373
2374 cat <<\_ASBOX
2375## ----------------- ##
2376## Output variables. ##
2377## ----------------- ##
2378_ASBOX
2379 echo
2380 for ac_var in $ac_subst_vars
2381 do
81ecdfbb
RW
2382 eval ac_val=\$$ac_var
2383 case $ac_val in
2384 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2385 esac
2386 $as_echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
2387 done | sort
2388 echo
2389
2390 if test -n "$ac_subst_files"; then
2391 cat <<\_ASBOX
81ecdfbb
RW
2392## ------------------- ##
2393## File substitutions. ##
2394## ------------------- ##
bec39cab
AC
2395_ASBOX
2396 echo
2397 for ac_var in $ac_subst_files
2398 do
81ecdfbb
RW
2399 eval ac_val=\$$ac_var
2400 case $ac_val in
2401 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2402 esac
2403 $as_echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
2404 done | sort
2405 echo
434c4c77 2406 fi
bec39cab
AC
2407
2408 if test -s confdefs.h; then
2409 cat <<\_ASBOX
2410## ----------- ##
2411## confdefs.h. ##
2412## ----------- ##
2413_ASBOX
2414 echo
81ecdfbb 2415 cat confdefs.h
bec39cab
AC
2416 echo
2417 fi
2418 test "$ac_signal" != 0 &&
81ecdfbb
RW
2419 $as_echo "$as_me: caught signal $ac_signal"
2420 $as_echo "$as_me: exit $exit_status"
bec39cab 2421 } >&5
81ecdfbb
RW
2422 rm -f core *.core core.conftest.* &&
2423 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 2424 exit $exit_status
81ecdfbb 2425' 0
bec39cab 2426for ac_signal in 1 2 13 15; do
81ecdfbb 2427 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
bec39cab
AC
2428done
2429ac_signal=0
2430
2431# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2432rm -f -r conftest* confdefs.h
2433
2434$as_echo "/* confdefs.h */" > confdefs.h
bec39cab
AC
2435
2436# Predefined preprocessor variables.
2437
2438cat >>confdefs.h <<_ACEOF
2439#define PACKAGE_NAME "$PACKAGE_NAME"
2440_ACEOF
2441
bec39cab
AC
2442cat >>confdefs.h <<_ACEOF
2443#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2444_ACEOF
2445
bec39cab
AC
2446cat >>confdefs.h <<_ACEOF
2447#define PACKAGE_VERSION "$PACKAGE_VERSION"
2448_ACEOF
2449
bec39cab
AC
2450cat >>confdefs.h <<_ACEOF
2451#define PACKAGE_STRING "$PACKAGE_STRING"
2452_ACEOF
2453
bec39cab
AC
2454cat >>confdefs.h <<_ACEOF
2455#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2456_ACEOF
2457
81ecdfbb
RW
2458cat >>confdefs.h <<_ACEOF
2459#define PACKAGE_URL "$PACKAGE_URL"
2460_ACEOF
2461
bec39cab
AC
2462
2463# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2464# Prefer an explicitly selected file to automatically selected ones.
2465ac_site_file1=NONE
2466ac_site_file2=NONE
2467if test -n "$CONFIG_SITE"; then
2468 ac_site_file1=$CONFIG_SITE
2469elif test "x$prefix" != xNONE; then
2470 ac_site_file1=$prefix/share/config.site
2471 ac_site_file2=$prefix/etc/config.site
2472else
2473 ac_site_file1=$ac_default_prefix/share/config.site
2474 ac_site_file2=$ac_default_prefix/etc/config.site
d6e9fb05 2475fi
81ecdfbb
RW
2476for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2477do
2478 test "x$ac_site_file" = xNONE && continue
d6e9fb05 2479 if test -r "$ac_site_file"; then
81ecdfbb
RW
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2481$as_echo "$as_me: loading site script $ac_site_file" >&6;}
bec39cab 2482 sed 's/^/| /' "$ac_site_file" >&5
d6e9fb05
JK
2483 . "$ac_site_file"
2484 fi
2485done
2486
2487if test -r "$cache_file"; then
bec39cab
AC
2488 # Some versions of bash will fail to source /dev/null (special
2489 # files actually), so we avoid doing that.
2490 if test -f "$cache_file"; then
81ecdfbb
RW
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2492$as_echo "$as_me: loading cache $cache_file" >&6;}
bec39cab 2493 case $cache_file in
81ecdfbb
RW
2494 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2495 *) . "./$cache_file";;
bec39cab
AC
2496 esac
2497 fi
d6e9fb05 2498else
81ecdfbb
RW
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2500$as_echo "$as_me: creating cache $cache_file" >&6;}
bec39cab 2501 >$cache_file
d6e9fb05
JK
2502fi
2503
bec39cab
AC
2504# Check that the precious variables saved in the cache have kept the same
2505# value.
2506ac_cache_corrupted=false
81ecdfbb 2507for ac_var in $ac_precious_vars; do
bec39cab
AC
2508 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2509 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2510 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2511 eval ac_new_val=\$ac_env_${ac_var}_value
bec39cab
AC
2512 case $ac_old_set,$ac_new_set in
2513 set,)
81ecdfbb
RW
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2515$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
bec39cab
AC
2516 ac_cache_corrupted=: ;;
2517 ,set)
81ecdfbb
RW
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2519$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
bec39cab
AC
2520 ac_cache_corrupted=: ;;
2521 ,);;
2522 *)
2523 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2524 # differences in whitespace do not lead to failure.
2525 ac_old_val_w=`echo x $ac_old_val`
2526 ac_new_val_w=`echo x $ac_new_val`
2527 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2529$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2530 ac_cache_corrupted=:
2531 else
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2533$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2534 eval $ac_var=\$ac_old_val
2535 fi
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2537$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2539$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
bec39cab
AC
2540 fi;;
2541 esac
2542 # Pass precious variables to config.status.
2543 if test "$ac_new_set" = set; then
2544 case $ac_new_val in
81ecdfbb 2545 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
2546 *) ac_arg=$ac_var=$ac_new_val ;;
2547 esac
2548 case " $ac_configure_args " in
2549 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2550 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
bec39cab 2551 esac
d6e9fb05 2552 fi
bec39cab
AC
2553done
2554if $ac_cache_corrupted; then
81ecdfbb
RW
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2558$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2559 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d6e9fb05 2560fi
81ecdfbb
RW
2561## -------------------- ##
2562## Main body of script. ##
2563## -------------------- ##
d6e9fb05 2564
dae5f5cf
DJ
2565ac_ext=c
2566ac_cpp='$CPP $CPPFLAGS'
2567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2569ac_compiler_gnu=$ac_cv_c_compiler_gnu
2570
d6e9fb05 2571
84563040 2572
bec39cab
AC
2573
2574
81ecdfbb 2575ac_config_headers="$ac_config_headers config.h:config.in"
bec39cab
AC
2576
2577
e28b3332 2578
c9a1864a
YQ
2579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2580$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2581 # Check whether --enable-maintainer-mode was given.
2582if test "${enable_maintainer_mode+set}" = set; then :
2583 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2584else
2585 USE_MAINTAINER_MODE=no
2586fi
2587
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2589$as_echo "$USE_MAINTAINER_MODE" >&6; }
2590 if test $USE_MAINTAINER_MODE = yes; then
2591 MAINTAINER_MODE_TRUE=
2592 MAINTAINER_MODE_FALSE='#'
2593else
2594 MAINTAINER_MODE_TRUE='#'
2595 MAINTAINER_MODE_FALSE=
2596fi
2597
2598 MAINT=$MAINTAINER_MODE_TRUE
2599
2600
2601
bec39cab
AC
2602ac_ext=c
2603ac_cpp='$CPP $CPPFLAGS'
2604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606ac_compiler_gnu=$ac_cv_c_compiler_gnu
2607if test -n "$ac_tool_prefix"; then
2608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2609set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611$as_echo_n "checking for $ac_word... " >&6; }
2612if test "${ac_cv_prog_CC+set}" = set; then :
2613 $as_echo_n "(cached) " >&6
84563040
DJ
2614else
2615 if test -n "$CC"; then
2616 ac_cv_prog_CC="$CC" # Let the user override the test.
2617else
bec39cab
AC
2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619for as_dir in $PATH
2620do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2627 break 2
2628 fi
2629done
81ecdfbb
RW
2630 done
2631IFS=$as_save_IFS
bec39cab 2632
84563040
DJ
2633fi
2634fi
bec39cab 2635CC=$ac_cv_prog_CC
84563040 2636if test -n "$CC"; then
81ecdfbb
RW
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2638$as_echo "$CC" >&6; }
84563040 2639else
81ecdfbb
RW
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641$as_echo "no" >&6; }
84563040
DJ
2642fi
2643
81ecdfbb 2644
bec39cab
AC
2645fi
2646if test -z "$ac_cv_prog_CC"; then
2647 ac_ct_CC=$CC
2648 # Extract the first word of "gcc", so it can be a program name with args.
2649set dummy gcc; ac_word=$2
81ecdfbb
RW
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651$as_echo_n "checking for $ac_word... " >&6; }
2652if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
84563040 2654else
bec39cab
AC
2655 if test -n "$ac_ct_CC"; then
2656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
84563040 2657else
bec39cab
AC
2658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659for as_dir in $PATH
2660do
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2665 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2667 break 2
2668 fi
2669done
81ecdfbb
RW
2670 done
2671IFS=$as_save_IFS
bec39cab
AC
2672
2673fi
2674fi
2675ac_ct_CC=$ac_cv_prog_ac_ct_CC
2676if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2678$as_echo "$ac_ct_CC" >&6; }
bec39cab 2679else
81ecdfbb
RW
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681$as_echo "no" >&6; }
bec39cab
AC
2682fi
2683
81ecdfbb
RW
2684 if test "x$ac_ct_CC" = x; then
2685 CC=""
2686 else
2687 case $cross_compiling:$ac_tool_warned in
2688yes:)
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2691ac_tool_warned=yes ;;
2692esac
2693 CC=$ac_ct_CC
2694 fi
bec39cab
AC
2695else
2696 CC="$ac_cv_prog_CC"
2697fi
2698
2699if test -z "$CC"; then
81ecdfbb
RW
2700 if test -n "$ac_tool_prefix"; then
2701 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 2702set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704$as_echo_n "checking for $ac_word... " >&6; }
2705if test "${ac_cv_prog_CC+set}" = set; then :
2706 $as_echo_n "(cached) " >&6
bec39cab
AC
2707else
2708 if test -n "$CC"; then
2709 ac_cv_prog_CC="$CC" # Let the user override the test.
2710else
2711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712for as_dir in $PATH
2713do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2718 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2720 break 2
2721 fi
2722done
81ecdfbb
RW
2723 done
2724IFS=$as_save_IFS
bec39cab
AC
2725
2726fi
2727fi
2728CC=$ac_cv_prog_CC
2729if test -n "$CC"; then
81ecdfbb
RW
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2731$as_echo "$CC" >&6; }
bec39cab 2732else
81ecdfbb
RW
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734$as_echo "no" >&6; }
bec39cab
AC
2735fi
2736
81ecdfbb
RW
2737
2738 fi
dae5f5cf 2739fi
81ecdfbb 2740if test -z "$CC"; then
dae5f5cf
DJ
2741 # Extract the first word of "cc", so it can be a program name with args.
2742set dummy cc; ac_word=$2
81ecdfbb
RW
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744$as_echo_n "checking for $ac_word... " >&6; }
2745if test "${ac_cv_prog_CC+set}" = set; then :
2746 $as_echo_n "(cached) " >&6
dae5f5cf 2747else
81ecdfbb
RW
2748 if test -n "$CC"; then
2749 ac_cv_prog_CC="$CC" # Let the user override the test.
dae5f5cf 2750else
81ecdfbb 2751 ac_prog_rejected=no
dae5f5cf
DJ
2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2760 ac_prog_rejected=yes
2761 continue
2762 fi
2763 ac_cv_prog_CC="cc"
2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dae5f5cf 2765 break 2
b80864fb 2766 fi
dae5f5cf 2767done
81ecdfbb
RW
2768 done
2769IFS=$as_save_IFS
bec39cab 2770
84563040
DJ
2771if test $ac_prog_rejected = yes; then
2772 # We found a bogon in the path, so make sure we never use it.
2773 set dummy $ac_cv_prog_CC
2774 shift
bec39cab 2775 if test $# != 0; then
84563040
DJ
2776 # We chose a different compiler from the bogus one.
2777 # However, it has the same basename, so the bogon will be chosen
2778 # first if we set CC to just the basename; use the full file name.
2779 shift
bec39cab 2780 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
84563040
DJ
2781 fi
2782fi
2783fi
2784fi
bec39cab 2785CC=$ac_cv_prog_CC
84563040 2786if test -n "$CC"; then
81ecdfbb
RW
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2788$as_echo "$CC" >&6; }
84563040 2789else
81ecdfbb
RW
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791$as_echo "no" >&6; }
84563040
DJ
2792fi
2793
81ecdfbb 2794
bec39cab
AC
2795fi
2796if test -z "$CC"; then
2797 if test -n "$ac_tool_prefix"; then
81ecdfbb 2798 for ac_prog in cl.exe
bec39cab
AC
2799 do
2800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2801set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803$as_echo_n "checking for $ac_word... " >&6; }
2804if test "${ac_cv_prog_CC+set}" = set; then :
2805 $as_echo_n "(cached) " >&6
84563040
DJ
2806else
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC="$CC" # Let the user override the test.
2809else
bec39cab
AC
2810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811for as_dir in $PATH
2812do
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2817 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2819 break 2
2820 fi
2821done
81ecdfbb
RW
2822 done
2823IFS=$as_save_IFS
bec39cab 2824
84563040
DJ
2825fi
2826fi
bec39cab 2827CC=$ac_cv_prog_CC
84563040 2828if test -n "$CC"; then
81ecdfbb
RW
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2830$as_echo "$CC" >&6; }
84563040 2831else
81ecdfbb
RW
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833$as_echo "no" >&6; }
84563040 2834fi
bec39cab 2835
81ecdfbb 2836
bec39cab
AC
2837 test -n "$CC" && break
2838 done
2839fi
2840if test -z "$CC"; then
2841 ac_ct_CC=$CC
81ecdfbb 2842 for ac_prog in cl.exe
bec39cab
AC
2843do
2844 # Extract the first word of "$ac_prog", so it can be a program name with args.
2845set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847$as_echo_n "checking for $ac_word... " >&6; }
2848if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2849 $as_echo_n "(cached) " >&6
bec39cab
AC
2850else
2851 if test -n "$ac_ct_CC"; then
2852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2853else
2854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855for as_dir in $PATH
2856do
2857 IFS=$as_save_IFS
2858 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2861 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab 2863 break 2
84563040 2864 fi
bec39cab 2865done
81ecdfbb
RW
2866 done
2867IFS=$as_save_IFS
bec39cab
AC
2868
2869fi
2870fi
2871ac_ct_CC=$ac_cv_prog_ac_ct_CC
2872if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2874$as_echo "$ac_ct_CC" >&6; }
bec39cab 2875else
81ecdfbb
RW
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877$as_echo "no" >&6; }
84563040
DJ
2878fi
2879
81ecdfbb 2880
bec39cab
AC
2881 test -n "$ac_ct_CC" && break
2882done
84563040 2883
81ecdfbb
RW
2884 if test "x$ac_ct_CC" = x; then
2885 CC=""
2886 else
2887 case $cross_compiling:$ac_tool_warned in
2888yes:)
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2891ac_tool_warned=yes ;;
2892esac
2893 CC=$ac_ct_CC
2894 fi
bec39cab
AC
2895fi
2896
2897fi
2898
2899
81ecdfbb
RW
2900test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2902as_fn_error "no acceptable C compiler found in \$PATH
2903See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
2904
2905# Provide some information about the compiler.
81ecdfbb
RW
2906$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2907set X $ac_compile
2908ac_compiler=$2
2909for ac_option in --version -v -V -qversion; do
2910 { { ac_try="$ac_compiler $ac_option >&5"
2911case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914esac
2915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2916$as_echo "$ac_try_echo"; } >&5
2917 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
bec39cab 2918 ac_status=$?
81ecdfbb
RW
2919 if test -s conftest.err; then
2920 sed '10a\
2921... rest of stderr output deleted ...
2922 10q' conftest.err >conftest.er1
2923 cat conftest.er1 >&5
2924 rm -f conftest.er1 conftest.err
2925 fi
2926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2927 test $ac_status = 0; }
2928done
bec39cab 2929
81ecdfbb 2930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2931/* end confdefs.h. */
2932
2933int
2934main ()
2935{
2936
2937 ;
2938 return 0;
2939}
2940_ACEOF
2941ac_clean_files_save=$ac_clean_files
81ecdfbb 2942ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
bec39cab
AC
2943# Try to create an executable without -o first, disregard a.out.
2944# It will help us diagnose broken compilers, and finding out an intuition
2945# of exeext.
81ecdfbb
RW
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2947$as_echo_n "checking for C compiler default output file name... " >&6; }
2948ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2949
2950# The possible output files:
2951ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2952
2953ac_rmfiles=
2954for ac_file in $ac_files
2955do
2956 case $ac_file in
2957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2958 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2959 esac
2960done
2961rm -f $ac_rmfiles
2962
2963if { { ac_try="$ac_link_default"
2964case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967esac
2968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969$as_echo "$ac_try_echo"; } >&5
2970 (eval "$ac_link_default") 2>&5
bec39cab 2971 ac_status=$?
81ecdfbb
RW
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }; then :
2974 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2975# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2976# in a Makefile. We should not override ac_cv_exeext if it was cached,
2977# so that the user can short-circuit this test for compilers unknown to
2978# Autoconf.
2979for ac_file in $ac_files ''
bec39cab
AC
2980do
2981 test -f "$ac_file" || continue
2982 case $ac_file in
81ecdfbb 2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
bec39cab
AC
2984 ;;
2985 [ab].out )
2986 # We found the default executable, but exeext='' is most
2987 # certainly right.
2988 break;;
2989 *.* )
81ecdfbb
RW
2990 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2991 then :; else
2992 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2993 fi
2994 # We set ac_cv_exeext here because the later test for it is not
2995 # safe: cross compilers may not add the suffix if given an `-o'
2996 # argument, so we may need to know it at that point already.
2997 # Even if this section looks crufty: it has the advantage of
2998 # actually working.
bec39cab
AC
2999 break;;
3000 * )
3001 break;;
3002 esac
3003done
81ecdfbb
RW
3004test "$ac_cv_exeext" = no && ac_cv_exeext=
3005
bec39cab 3006else
81ecdfbb
RW
3007 ac_file=''
3008fi
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3010$as_echo "$ac_file" >&6; }
3011if test -z "$ac_file"; then :
3012 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
3013sed 's/^/| /' conftest.$ac_ext >&5
3014
81ecdfbb
RW
3015{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3017{ as_fn_set_status 77
3018as_fn_error "C compiler cannot create executables
3019See \`config.log' for more details." "$LINENO" 5; }; }
bec39cab 3020fi
bec39cab 3021ac_exeext=$ac_cv_exeext
bec39cab 3022
81ecdfbb 3023# Check that the compiler produces executables we can run. If not, either
bec39cab 3024# the compiler is broken, or we cross compile.
81ecdfbb
RW
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3026$as_echo_n "checking whether the C compiler works... " >&6; }
bec39cab
AC
3027# If not cross compiling, check that we can run a simple program.
3028if test "$cross_compiling" != yes; then
3029 if { ac_try='./$ac_file'
81ecdfbb
RW
3030 { { case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
3034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035$as_echo "$ac_try_echo"; } >&5
3036 (eval "$ac_try") 2>&5
bec39cab 3037 ac_status=$?
81ecdfbb
RW
3038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039 test $ac_status = 0; }; }; then
bec39cab 3040 cross_compiling=no
84563040 3041 else
bec39cab
AC
3042 if test "$cross_compiling" = maybe; then
3043 cross_compiling=yes
3044 else
81ecdfbb
RW
3045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047as_fn_error "cannot run C compiled programs.
bec39cab 3048If you meant to cross compile, use \`--host'.
81ecdfbb 3049See \`config.log' for more details." "$LINENO" 5; }
bec39cab 3050 fi
84563040 3051 fi
84563040 3052fi
81ecdfbb
RW
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3054$as_echo "yes" >&6; }
bec39cab 3055
81ecdfbb 3056rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
bec39cab 3057ac_clean_files=$ac_clean_files_save
81ecdfbb 3058# Check that the compiler produces executables we can run. If not, either
bec39cab 3059# the compiler is broken, or we cross compile.
81ecdfbb
RW
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3061$as_echo_n "checking whether we are cross compiling... " >&6; }
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3063$as_echo "$cross_compiling" >&6; }
3064
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3066$as_echo_n "checking for suffix of executables... " >&6; }
3067if { { ac_try="$ac_link"
3068case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071esac
3072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073$as_echo "$ac_try_echo"; } >&5
3074 (eval "$ac_link") 2>&5
bec39cab 3075 ac_status=$?
81ecdfbb
RW
3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3077 test $ac_status = 0; }; then :
bec39cab
AC
3078 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3079# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3080# work properly (i.e., refer to `conftest.exe'), while it won't with
3081# `rm'.
3082for ac_file in conftest.exe conftest conftest.*; do
3083 test -f "$ac_file" || continue
3084 case $ac_file in
81ecdfbb 3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
bec39cab 3086 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
bec39cab
AC
3087 break;;
3088 * ) break;;
3089 esac
3090done
84563040 3091else
81ecdfbb
RW
3092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094as_fn_error "cannot compute suffix of executables: cannot compile and link
3095See \`config.log' for more details." "$LINENO" 5; }
84563040 3096fi
bec39cab 3097rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3099$as_echo "$ac_cv_exeext" >&6; }
bec39cab
AC
3100
3101rm -f conftest.$ac_ext
3102EXEEXT=$ac_cv_exeext
3103ac_exeext=$EXEEXT
81ecdfbb
RW
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3105$as_echo_n "checking for suffix of object files... " >&6; }
3106if test "${ac_cv_objext+set}" = set; then :
3107 $as_echo_n "(cached) " >&6
bec39cab 3108else
81ecdfbb 3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3110/* end confdefs.h. */
3111
3112int
3113main ()
3114{
3115
3116 ;
3117 return 0;
3118}
3119_ACEOF
3120rm -f conftest.o conftest.obj
81ecdfbb
RW
3121if { { ac_try="$ac_compile"
3122case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125esac
3126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127$as_echo "$ac_try_echo"; } >&5
3128 (eval "$ac_compile") 2>&5
bec39cab 3129 ac_status=$?
81ecdfbb
RW
3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }; then :
3132 for ac_file in conftest.o conftest.obj conftest.*; do
3133 test -f "$ac_file" || continue;
bec39cab 3134 case $ac_file in
81ecdfbb 3135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
bec39cab
AC
3136 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3137 break;;
3138 esac
3139done
3140else
81ecdfbb 3141 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
81ecdfbb
RW
3144{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146as_fn_error "cannot compute suffix of object files: cannot compile
3147See \`config.log' for more details." "$LINENO" 5; }
84563040 3148fi
bec39cab
AC
3149rm -f conftest.$ac_cv_objext conftest.$ac_ext
3150fi
81ecdfbb
RW
3151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3152$as_echo "$ac_cv_objext" >&6; }
bec39cab
AC
3153OBJEXT=$ac_cv_objext
3154ac_objext=$OBJEXT
81ecdfbb
RW
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3156$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3157if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3158 $as_echo_n "(cached) " >&6
bec39cab 3159else
81ecdfbb 3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3161/* end confdefs.h. */
3162
3163int
3164main ()
3165{
3166#ifndef __GNUC__
3167 choke me
3168#endif
84563040 3169
bec39cab
AC
3170 ;
3171 return 0;
3172}
3173_ACEOF
81ecdfbb 3174if ac_fn_c_try_compile "$LINENO"; then :
bec39cab 3175 ac_compiler_gnu=yes
84563040 3176else
81ecdfbb 3177 ac_compiler_gnu=no
84563040 3178fi
81ecdfbb 3179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 3180ac_cv_c_compiler_gnu=$ac_compiler_gnu
84563040 3181
bec39cab 3182fi
81ecdfbb
RW
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3184$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3185if test $ac_compiler_gnu = yes; then
3186 GCC=yes
3187else
3188 GCC=
3189fi
bec39cab
AC
3190ac_test_CFLAGS=${CFLAGS+set}
3191ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3193$as_echo_n "checking whether $CC accepts -g... " >&6; }
3194if test "${ac_cv_prog_cc_g+set}" = set; then :
3195 $as_echo_n "(cached) " >&6
3196else
3197 ac_save_c_werror_flag=$ac_c_werror_flag
3198 ac_c_werror_flag=yes
3199 ac_cv_prog_cc_g=no
3200 CFLAGS="-g"
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3202/* end confdefs.h. */
3203
3204int
3205main ()
3206{
3207
3208 ;
3209 return 0;
3210}
3211_ACEOF
81ecdfbb 3212if ac_fn_c_try_compile "$LINENO"; then :
84563040
DJ
3213 ac_cv_prog_cc_g=yes
3214else
81ecdfbb
RW
3215 CFLAGS=""
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217/* end confdefs.h. */
3218
3219int
3220main ()
3221{
3222
3223 ;
3224 return 0;
3225}
3226_ACEOF
3227if ac_fn_c_try_compile "$LINENO"; then :
3228
3229else
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3231 CFLAGS="-g"
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233/* end confdefs.h. */
3234
3235int
3236main ()
3237{
84563040 3238
81ecdfbb
RW
3239 ;
3240 return 0;
3241}
3242_ACEOF
3243if ac_fn_c_try_compile "$LINENO"; then :
3244 ac_cv_prog_cc_g=yes
3245fi
3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84563040 3247fi
81ecdfbb 3248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 3249fi
81ecdfbb
RW
3250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 ac_c_werror_flag=$ac_save_c_werror_flag
3252fi
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3254$as_echo "$ac_cv_prog_cc_g" >&6; }
84563040 3255if test "$ac_test_CFLAGS" = set; then
bec39cab 3256 CFLAGS=$ac_save_CFLAGS
84563040
DJ
3257elif test $ac_cv_prog_cc_g = yes; then
3258 if test "$GCC" = yes; then
3259 CFLAGS="-g -O2"
3260 else
3261 CFLAGS="-g"
3262 fi
3263else
3264 if test "$GCC" = yes; then
3265 CFLAGS="-O2"
3266 else
3267 CFLAGS=
3268 fi
3269fi
81ecdfbb
RW
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3271$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3272if test "${ac_cv_prog_cc_c89+set}" = set; then :
3273 $as_echo_n "(cached) " >&6
bec39cab 3274else
81ecdfbb 3275 ac_cv_prog_cc_c89=no
bec39cab 3276ac_save_CC=$CC
81ecdfbb 3277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3278/* end confdefs.h. */
3279#include <stdarg.h>
3280#include <stdio.h>
3281#include <sys/types.h>
3282#include <sys/stat.h>
3283/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3284struct buf { int x; };
3285FILE * (*rcsopen) (struct buf *, struct stat *, int);
3286static char *e (p, i)
3287 char **p;
3288 int i;
3289{
3290 return p[i];
3291}
3292static char *f (char * (*g) (char **, int), char **p, ...)
3293{
3294 char *s;
3295 va_list v;
3296 va_start (v,p);
3297 s = g (p, va_arg (v,int));
3298 va_end (v);
3299 return s;
3300}
3301
3302/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3303 function prototypes and stuff, but not '\xHH' hex character constants.
3304 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3305 as 'x'. The following induces an error, until -std is added to get
bec39cab
AC
3306 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3307 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3308 that's true only with -std. */
bec39cab
AC
3309int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3310
81ecdfbb
RW
3311/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3312 inside strings and character constants. */
3313#define FOO(x) 'x'
3314int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3315
bec39cab
AC
3316int test (int i, double x);
3317struct s1 {int (*f) (int a);};
3318struct s2 {int (*f) (double a);};
3319int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3320int argc;
3321char **argv;
3322int
3323main ()
3324{
3325return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3326 ;
3327 return 0;
3328}
3329_ACEOF
81ecdfbb
RW
3330for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3331 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
3332do
3333 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3334 if ac_fn_c_try_compile "$LINENO"; then :
3335 ac_cv_prog_cc_c89=$ac_arg
bec39cab 3336fi
81ecdfbb
RW
3337rm -f core conftest.err conftest.$ac_objext
3338 test "x$ac_cv_prog_cc_c89" != "xno" && break
bec39cab 3339done
81ecdfbb 3340rm -f conftest.$ac_ext
bec39cab
AC
3341CC=$ac_save_CC
3342
3343fi
81ecdfbb
RW
3344# AC_CACHE_VAL
3345case "x$ac_cv_prog_cc_c89" in
3346 x)
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3348$as_echo "none needed" >&6; } ;;
3349 xno)
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3351$as_echo "unsupported" >&6; } ;;
bec39cab 3352 *)
81ecdfbb
RW
3353 CC="$CC $ac_cv_prog_cc_c89"
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3355$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
bec39cab 3356esac
81ecdfbb 3357if test "x$ac_cv_prog_cc_c89" != xno; then :
bec39cab 3358
dae5f5cf
DJ
3359fi
3360
dae5f5cf 3361ac_ext=c
bec39cab
AC
3362ac_cpp='$CPP $CPPFLAGS'
3363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365ac_compiler_gnu=$ac_cv_c_compiler_gnu
84563040 3366
3bc3d82a
PA
3367ac_ext=cpp
3368ac_cpp='$CXXCPP $CPPFLAGS'
3369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3372if test -z "$CXX"; then
3373 if test -n "$CCC"; then
3374 CXX=$CCC
3375 else
3376 if test -n "$ac_tool_prefix"; then
3377 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3378 do
3379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3380set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382$as_echo_n "checking for $ac_word... " >&6; }
3383if test "${ac_cv_prog_CXX+set}" = set; then :
3384 $as_echo_n "(cached) " >&6
3385else
3386 if test -n "$CXX"; then
3387 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3388else
3389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390for as_dir in $PATH
3391do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3396 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 break 2
3399 fi
3400done
3401 done
3402IFS=$as_save_IFS
3403
3404fi
3405fi
3406CXX=$ac_cv_prog_CXX
3407if test -n "$CXX"; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3409$as_echo "$CXX" >&6; }
3410else
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412$as_echo "no" >&6; }
3413fi
3414
3415
3416 test -n "$CXX" && break
3417 done
3418fi
3419if test -z "$CXX"; then
3420 ac_ct_CXX=$CXX
3421 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3422do
3423 # Extract the first word of "$ac_prog", so it can be a program name with args.
3424set dummy $ac_prog; ac_word=$2
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426$as_echo_n "checking for $ac_word... " >&6; }
3427if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3428 $as_echo_n "(cached) " >&6
3429else
3430 if test -n "$ac_ct_CXX"; then
3431 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3432else
3433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434for as_dir in $PATH
3435do
3436 IFS=$as_save_IFS
3437 test -z "$as_dir" && as_dir=.
3438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3440 ac_cv_prog_ac_ct_CXX="$ac_prog"
3441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442 break 2
3443 fi
3444done
3445 done
3446IFS=$as_save_IFS
3447
3448fi
3449fi
3450ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3451if test -n "$ac_ct_CXX"; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3453$as_echo "$ac_ct_CXX" >&6; }
3454else
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456$as_echo "no" >&6; }
3457fi
3458
3459
3460 test -n "$ac_ct_CXX" && break
3461done
3462
3463 if test "x$ac_ct_CXX" = x; then
3464 CXX="g++"
3465 else
3466 case $cross_compiling:$ac_tool_warned in
3467yes:)
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3470ac_tool_warned=yes ;;
3471esac
3472 CXX=$ac_ct_CXX
3473 fi
3474fi
3475
3476 fi
3477fi
3478# Provide some information about the compiler.
3479$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3480set X $ac_compile
3481ac_compiler=$2
3482for ac_option in --version -v -V -qversion; do
3483 { { ac_try="$ac_compiler $ac_option >&5"
3484case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487esac
3488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489$as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3491 ac_status=$?
3492 if test -s conftest.err; then
3493 sed '10a\
3494... rest of stderr output deleted ...
3495 10q' conftest.err >conftest.er1
3496 cat conftest.er1 >&5
3497 rm -f conftest.er1 conftest.err
3498 fi
3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500 test $ac_status = 0; }
3501done
3502
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3504$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3505if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3506 $as_echo_n "(cached) " >&6
3507else
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509/* end confdefs.h. */
3510
3511int
3512main ()
3513{
3514#ifndef __GNUC__
3515 choke me
3516#endif
3517
3518 ;
3519 return 0;
3520}
3521_ACEOF
3522if ac_fn_cxx_try_compile "$LINENO"; then :
3523 ac_compiler_gnu=yes
3524else
3525 ac_compiler_gnu=no
3526fi
3527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3529
3530fi
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3532$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3533if test $ac_compiler_gnu = yes; then
3534 GXX=yes
3535else
3536 GXX=
3537fi
3538ac_test_CXXFLAGS=${CXXFLAGS+set}
3539ac_save_CXXFLAGS=$CXXFLAGS
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3541$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3542if test "${ac_cv_prog_cxx_g+set}" = set; then :
3543 $as_echo_n "(cached) " >&6
3544else
3545 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3546 ac_cxx_werror_flag=yes
3547 ac_cv_prog_cxx_g=no
3548 CXXFLAGS="-g"
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h. */
3551
3552int
3553main ()
3554{
3555
3556 ;
3557 return 0;
3558}
3559_ACEOF
3560if ac_fn_cxx_try_compile "$LINENO"; then :
3561 ac_cv_prog_cxx_g=yes
3562else
3563 CXXFLAGS=""
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565/* end confdefs.h. */
3566
3567int
3568main ()
3569{
3570
3571 ;
3572 return 0;
3573}
3574_ACEOF
3575if ac_fn_cxx_try_compile "$LINENO"; then :
3576
3577else
3578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3579 CXXFLAGS="-g"
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h. */
3582
3583int
3584main ()
3585{
3586
3587 ;
3588 return 0;
3589}
3590_ACEOF
3591if ac_fn_cxx_try_compile "$LINENO"; then :
3592 ac_cv_prog_cxx_g=yes
3593fi
3594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595fi
3596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597fi
3598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3600fi
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3602$as_echo "$ac_cv_prog_cxx_g" >&6; }
3603if test "$ac_test_CXXFLAGS" = set; then
3604 CXXFLAGS=$ac_save_CXXFLAGS
3605elif test $ac_cv_prog_cxx_g = yes; then
3606 if test "$GXX" = yes; then
3607 CXXFLAGS="-g -O2"
3608 else
3609 CXXFLAGS="-g"
3610 fi
3611else
3612 if test "$GXX" = yes; then
3613 CXXFLAGS="-O2"
3614 else
3615 CXXFLAGS=
3616 fi
3617fi
3618ac_ext=c
3619ac_cpp='$CPP $CPPFLAGS'
3620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623
c9a1864a
YQ
3624
3625ac_ext=c
3626ac_cpp='$CPP $CPPFLAGS'
3627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3631$as_echo_n "checking how to run the C preprocessor... " >&6; }
3632# On Suns, sometimes $CPP names a directory.
3633if test -n "$CPP" && test -d "$CPP"; then
3634 CPP=
3635fi
3636if test -z "$CPP"; then
3637 if test "${ac_cv_prog_CPP+set}" = set; then :
3638 $as_echo_n "(cached) " >&6
3639else
3640 # Double quotes because CPP needs to be expanded
3641 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3642 do
3643 ac_preproc_ok=false
3644for ac_c_preproc_warn_flag in '' yes
3645do
3646 # Use a header file that comes with gcc, so configuring glibc
3647 # with a fresh cross-compiler works.
3648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3649 # <limits.h> exists even on freestanding compilers.
3650 # On the NeXT, cc -E runs the code through the compiler's parser,
3651 # not just through cpp. "Syntax error" is here to catch this case.
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653/* end confdefs.h. */
3654#ifdef __STDC__
3655# include <limits.h>
3656#else
3657# include <assert.h>
3658#endif
3659 Syntax error
3660_ACEOF
3661if ac_fn_c_try_cpp "$LINENO"; then :
3662
3663else
3664 # Broken: fails on valid input.
3665continue
3666fi
3667rm -f conftest.err conftest.$ac_ext
3668
3669 # OK, works on sane cases. Now check whether nonexistent headers
3670 # can be detected and how.
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672/* end confdefs.h. */
3673#include <ac_nonexistent.h>
3674_ACEOF
3675if ac_fn_c_try_cpp "$LINENO"; then :
3676 # Broken: success on invalid input.
3677continue
3678else
3679 # Passes both tests.
3680ac_preproc_ok=:
3681break
3682fi
3683rm -f conftest.err conftest.$ac_ext
3684
3685done
3686# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3687rm -f conftest.err conftest.$ac_ext
3688if $ac_preproc_ok; then :
3689 break
3690fi
3691
3692 done
3693 ac_cv_prog_CPP=$CPP
3694
3695fi
3696 CPP=$ac_cv_prog_CPP
3697else
3698 ac_cv_prog_CPP=$CPP
3699fi
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3701$as_echo "$CPP" >&6; }
3702ac_preproc_ok=false
3703for ac_c_preproc_warn_flag in '' yes
3704do
3705 # Use a header file that comes with gcc, so configuring glibc
3706 # with a fresh cross-compiler works.
3707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3708 # <limits.h> exists even on freestanding compilers.
3709 # On the NeXT, cc -E runs the code through the compiler's parser,
3710 # not just through cpp. "Syntax error" is here to catch this case.
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712/* end confdefs.h. */
3713#ifdef __STDC__
3714# include <limits.h>
3715#else
3716# include <assert.h>
3717#endif
3718 Syntax error
3719_ACEOF
3720if ac_fn_c_try_cpp "$LINENO"; then :
3721
3722else
3723 # Broken: fails on valid input.
3724continue
3725fi
3726rm -f conftest.err conftest.$ac_ext
3727
3728 # OK, works on sane cases. Now check whether nonexistent headers
3729 # can be detected and how.
81ecdfbb 3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3731/* end confdefs.h. */
3732#include <ac_nonexistent.h>
3733_ACEOF
81ecdfbb 3734if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab
AC
3735 # Broken: success on invalid input.
3736continue
3737else
bec39cab
AC
3738 # Passes both tests.
3739ac_preproc_ok=:
3740break
3741fi
3742rm -f conftest.err conftest.$ac_ext
3743
3744done
3745# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3746rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
3747if $ac_preproc_ok; then :
3748
3749else
3750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752as_fn_error "C preprocessor \"$CPP\" fails sanity check
3753See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
3754fi
3755
81ecdfbb
RW
3756ac_ext=c
3757ac_cpp='$CPP $CPPFLAGS'
3758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760ac_compiler_gnu=$ac_cv_c_compiler_gnu
bec39cab 3761
81ecdfbb
RW
3762
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3764$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3765if test "${ac_cv_path_GREP+set}" = set; then :
3766 $as_echo_n "(cached) " >&6
bec39cab 3767else
81ecdfbb
RW
3768 if test -z "$GREP"; then
3769 ac_path_GREP_found=false
3770 # Loop through the user's path and test for each of PROGNAME-LIST
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
bec39cab 3773do
81ecdfbb
RW
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_prog in grep ggrep; do
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3779 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3780# Check for GNU ac_path_GREP and select it if it is found.
3781 # Check for GNU $ac_path_GREP
3782case `"$ac_path_GREP" --version 2>&1` in
3783*GNU*)
3784 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3785*)
3786 ac_count=0
3787 $as_echo_n 0123456789 >"conftest.in"
3788 while :
3789 do
3790 cat "conftest.in" "conftest.in" >"conftest.tmp"
3791 mv "conftest.tmp" "conftest.in"
3792 cp "conftest.in" "conftest.nl"
3793 $as_echo 'GREP' >> "conftest.nl"
3794 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3796 as_fn_arith $ac_count + 1 && ac_count=$as_val
3797 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3798 # Best one so far, save it but keep looking for a better one
3799 ac_cv_path_GREP="$ac_path_GREP"
3800 ac_path_GREP_max=$ac_count
3801 fi
3802 # 10*(2^10) chars as input seems more than enough
3803 test $ac_count -gt 10 && break
3804 done
3805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3806esac
3807
3808 $ac_path_GREP_found && break 3
3809 done
3810 done
3811 done
3812IFS=$as_save_IFS
3813 if test -z "$ac_cv_path_GREP"; then
3814 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
bec39cab
AC
3815 fi
3816else
81ecdfbb 3817 ac_cv_path_GREP=$GREP
bec39cab 3818fi
bec39cab 3819
84563040 3820fi
81ecdfbb
RW
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3822$as_echo "$ac_cv_path_GREP" >&6; }
3823 GREP="$ac_cv_path_GREP"
bec39cab 3824
bec39cab 3825
81ecdfbb
RW
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3827$as_echo_n "checking for egrep... " >&6; }
3828if test "${ac_cv_path_EGREP+set}" = set; then :
3829 $as_echo_n "(cached) " >&6
3830else
3831 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3832 then ac_cv_path_EGREP="$GREP -E"
3833 else
3834 if test -z "$EGREP"; then
3835 ac_path_EGREP_found=false
3836 # Loop through the user's path and test for each of PROGNAME-LIST
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3839do
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
3842 for ac_prog in egrep; do
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3845 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3846# Check for GNU ac_path_EGREP and select it if it is found.
3847 # Check for GNU $ac_path_EGREP
3848case `"$ac_path_EGREP" --version 2>&1` in
3849*GNU*)
3850 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3851*)
3852 ac_count=0
3853 $as_echo_n 0123456789 >"conftest.in"
3854 while :
3855 do
3856 cat "conftest.in" "conftest.in" >"conftest.tmp"
3857 mv "conftest.tmp" "conftest.in"
3858 cp "conftest.in" "conftest.nl"
3859 $as_echo 'EGREP' >> "conftest.nl"
3860 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3861 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3862 as_fn_arith $ac_count + 1 && ac_count=$as_val
3863 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3864 # Best one so far, save it but keep looking for a better one
3865 ac_cv_path_EGREP="$ac_path_EGREP"
3866 ac_path_EGREP_max=$ac_count
3867 fi
3868 # 10*(2^10) chars as input seems more than enough
3869 test $ac_count -gt 10 && break
3870 done
3871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3872esac
bec39cab 3873
81ecdfbb
RW
3874 $ac_path_EGREP_found && break 3
3875 done
3876 done
3877 done
3878IFS=$as_save_IFS
3879 if test -z "$ac_cv_path_EGREP"; then
3880 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3881 fi
bec39cab 3882else
81ecdfbb 3883 ac_cv_path_EGREP=$EGREP
84563040 3884fi
bec39cab 3885
81ecdfbb 3886 fi
b80864fb 3887fi
81ecdfbb
RW
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3889$as_echo "$ac_cv_path_EGREP" >&6; }
3890 EGREP="$ac_cv_path_EGREP"
b80864fb
DJ
3891
3892
c971b7fa
PA
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3894$as_echo_n "checking for ANSI C header files... " >&6; }
3895if test "${ac_cv_header_stdc+set}" = set; then :
3896 $as_echo_n "(cached) " >&6
3897else
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899/* end confdefs.h. */
3900#include <stdlib.h>
3901#include <stdarg.h>
3902#include <string.h>
3903#include <float.h>
bec39cab 3904
c971b7fa
PA
3905int
3906main ()
3907{
bec39cab 3908
c971b7fa
PA
3909 ;
3910 return 0;
3911}
3912_ACEOF
3913if ac_fn_c_try_compile "$LINENO"; then :
3914 ac_cv_header_stdc=yes
84563040 3915else
c971b7fa
PA
3916 ac_cv_header_stdc=no
3917fi
3918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84563040 3919
c971b7fa
PA
3920if test $ac_cv_header_stdc = yes; then
3921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3923/* end confdefs.h. */
c971b7fa 3924#include <string.h>
bec39cab
AC
3925
3926_ACEOF
84563040 3927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
c971b7fa
PA
3928 $EGREP "memchr" >/dev/null 2>&1; then :
3929
84563040 3930else
c971b7fa 3931 ac_cv_header_stdc=no
84563040
DJ
3932fi
3933rm -f conftest*
3934
770d76d7 3935fi
81ecdfbb 3936
c971b7fa
PA
3937if test $ac_cv_header_stdc = yes; then
3938 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h. */
3941#include <stdlib.h>
3942
3943_ACEOF
3944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3945 $EGREP "free" >/dev/null 2>&1; then :
3946
770d76d7 3947else
c971b7fa 3948 ac_cv_header_stdc=no
bec39cab 3949fi
c971b7fa 3950rm -f conftest*
bec39cab
AC
3951
3952fi
c971b7fa
PA
3953
3954if test $ac_cv_header_stdc = yes; then
3955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3956 if test "$cross_compiling" = yes; then :
3957 :
770d76d7 3958else
c971b7fa
PA
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960/* end confdefs.h. */
3961#include <ctype.h>
3962#include <stdlib.h>
3963#if ((' ' & 0x0FF) == 0x020)
3964# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3965# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3966#else
3967# define ISLOWER(c) \
3968 (('a' <= (c) && (c) <= 'i') \
3969 || ('j' <= (c) && (c) <= 'r') \
3970 || ('s' <= (c) && (c) <= 'z'))
3971# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3972#endif
3973
3974#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3975int
3976main ()
3977{
3978 int i;
3979 for (i = 0; i < 256; i++)
3980 if (XOR (islower (i), ISLOWER (i))
3981 || toupper (i) != TOUPPER (i))
3982 return 2;
3983 return 0;
3984}
3985_ACEOF
3986if ac_fn_c_try_run "$LINENO"; then :
3987
770d76d7 3988else
c971b7fa
PA
3989 ac_cv_header_stdc=no
3990fi
3991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3992 conftest.$ac_objext conftest.beam conftest.$ac_ext
3993fi
bec39cab 3994
770d76d7
PA
3995fi
3996fi
c971b7fa
PA
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3998$as_echo "$ac_cv_header_stdc" >&6; }
3999if test $ac_cv_header_stdc = yes; then
4000
4001$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4002
770d76d7 4003fi
bec39cab 4004
c971b7fa
PA
4005# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4006for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4007 inttypes.h stdint.h unistd.h
4008do :
4009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4010ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4011"
4012eval as_val=\$$as_ac_Header
4013 if test "x$as_val" = x""yes; then :
4014 cat >>confdefs.h <<_ACEOF
4015#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4016_ACEOF
4017
81ecdfbb 4018fi
bec39cab 4019
c971b7fa 4020done
bec39cab
AC
4021
4022
4023
c971b7fa
PA
4024 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4025if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4026 MINIX=yes
770d76d7 4027else
c971b7fa 4028 MINIX=
770d76d7 4029fi
bec39cab
AC
4030
4031
c971b7fa
PA
4032 if test "$MINIX" = yes; then
4033
4034$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4035
4036
4037$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4038
4039
4040$as_echo "#define _MINIX 1" >>confdefs.h
4041
770d76d7 4042 fi
bec39cab 4043
c971b7fa
PA
4044
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4046$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4047if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4048 $as_echo_n "(cached) " >&6
770d76d7 4049else
c971b7fa
PA
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051/* end confdefs.h. */
bec39cab 4052
c971b7fa
PA
4053# define __EXTENSIONS__ 1
4054 $ac_includes_default
4055int
4056main ()
4057{
4058
4059 ;
4060 return 0;
4061}
4062_ACEOF
4063if ac_fn_c_try_compile "$LINENO"; then :
4064 ac_cv_safe_to_define___extensions__=yes
770d76d7 4065else
c971b7fa
PA
4066 ac_cv_safe_to_define___extensions__=no
4067fi
4068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
770d76d7 4069fi
c971b7fa
PA
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4071$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4072 test $ac_cv_safe_to_define___extensions__ = yes &&
4073 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4074
4075 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4076
4077 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4078
4079 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4080
4081 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4082
bec39cab 4083
c9a1864a 4084
589bc927
TT
4085# Check whether --enable-largefile was given.
4086if test "${enable_largefile+set}" = set; then :
4087 enableval=$enable_largefile;
4088fi
4089
4090if test "$enable_largefile" != no; then
4091
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4093$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4094if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
4096else
4097 ac_cv_sys_largefile_CC=no
4098 if test "$GCC" != yes; then
4099 ac_save_CC=$CC
4100 while :; do
4101 # IRIX 6.2 and later do not support large files by default,
4102 # so use the C compiler's -n32 option if that helps.
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104/* end confdefs.h. */
4105#include <sys/types.h>
4106 /* Check that off_t can represent 2**63 - 1 correctly.
4107 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4108 since some C++ compilers masquerading as C compilers
4109 incorrectly reject 9223372036854775807. */
4110#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4111 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4112 && LARGE_OFF_T % 2147483647 == 1)
4113 ? 1 : -1];
4114int
4115main ()
4116{
4117
4118 ;
4119 return 0;
4120}
4121_ACEOF
4122 if ac_fn_c_try_compile "$LINENO"; then :
4123 break
4124fi
4125rm -f core conftest.err conftest.$ac_objext
4126 CC="$CC -n32"
4127 if ac_fn_c_try_compile "$LINENO"; then :
4128 ac_cv_sys_largefile_CC=' -n32'; break
4129fi
4130rm -f core conftest.err conftest.$ac_objext
4131 break
4132 done
4133 CC=$ac_save_CC
4134 rm -f conftest.$ac_ext
4135 fi
4136fi
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4138$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4139 if test "$ac_cv_sys_largefile_CC" != no; then
4140 CC=$CC$ac_cv_sys_largefile_CC
4141 fi
4142
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4144$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4145if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4147else
4148 while :; do
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150/* end confdefs.h. */
4151#include <sys/types.h>
4152 /* Check that off_t can represent 2**63 - 1 correctly.
4153 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4154 since some C++ compilers masquerading as C compilers
4155 incorrectly reject 9223372036854775807. */
4156#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4157 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4158 && LARGE_OFF_T % 2147483647 == 1)
4159 ? 1 : -1];
4160int
4161main ()
4162{
4163
4164 ;
4165 return 0;
4166}
4167_ACEOF
4168if ac_fn_c_try_compile "$LINENO"; then :
4169 ac_cv_sys_file_offset_bits=no; break
4170fi
4171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173/* end confdefs.h. */
4174#define _FILE_OFFSET_BITS 64
4175#include <sys/types.h>
4176 /* Check that off_t can represent 2**63 - 1 correctly.
4177 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4178 since some C++ compilers masquerading as C compilers
4179 incorrectly reject 9223372036854775807. */
4180#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4181 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4182 && LARGE_OFF_T % 2147483647 == 1)
4183 ? 1 : -1];
4184int
4185main ()
4186{
4187
4188 ;
4189 return 0;
4190}
4191_ACEOF
4192if ac_fn_c_try_compile "$LINENO"; then :
4193 ac_cv_sys_file_offset_bits=64; break
4194fi
4195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 ac_cv_sys_file_offset_bits=unknown
4197 break
4198done
4199fi
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4201$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4202case $ac_cv_sys_file_offset_bits in #(
4203 no | unknown) ;;
4204 *)
4205cat >>confdefs.h <<_ACEOF
4206#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4207_ACEOF
4208;;
4209esac
4210rm -rf conftest*
4211 if test $ac_cv_sys_file_offset_bits = unknown; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4213$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4214if test "${ac_cv_sys_large_files+set}" = set; then :
4215 $as_echo_n "(cached) " >&6
4216else
4217 while :; do
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219/* end confdefs.h. */
4220#include <sys/types.h>
4221 /* Check that off_t can represent 2**63 - 1 correctly.
4222 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4223 since some C++ compilers masquerading as C compilers
4224 incorrectly reject 9223372036854775807. */
4225#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4226 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4227 && LARGE_OFF_T % 2147483647 == 1)
4228 ? 1 : -1];
4229int
4230main ()
4231{
4232
4233 ;
4234 return 0;
4235}
4236_ACEOF
4237if ac_fn_c_try_compile "$LINENO"; then :
4238 ac_cv_sys_large_files=no; break
4239fi
4240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242/* end confdefs.h. */
4243#define _LARGE_FILES 1
4244#include <sys/types.h>
4245 /* Check that off_t can represent 2**63 - 1 correctly.
4246 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4247 since some C++ compilers masquerading as C compilers
4248 incorrectly reject 9223372036854775807. */
4249#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4250 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4251 && LARGE_OFF_T % 2147483647 == 1)
4252 ? 1 : -1];
4253int
4254main ()
4255{
4256
4257 ;
4258 return 0;
4259}
4260_ACEOF
4261if ac_fn_c_try_compile "$LINENO"; then :
4262 ac_cv_sys_large_files=1; break
4263fi
4264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265 ac_cv_sys_large_files=unknown
4266 break
4267done
4268fi
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4270$as_echo "$ac_cv_sys_large_files" >&6; }
4271case $ac_cv_sys_large_files in #(
4272 no | unknown) ;;
4273 *)
4274cat >>confdefs.h <<_ACEOF
4275#define _LARGE_FILES $ac_cv_sys_large_files
4276_ACEOF
4277;;
4278esac
4279rm -rf conftest*
4280 fi
4281fi
4282
c9a1864a 4283
770d76d7
PA
4284ac_aux_dir=
4285for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4286 for ac_t in install-sh install.sh shtool; do
4287 if test -f "$ac_dir/$ac_t"; then
4288 ac_aux_dir=$ac_dir
4289 ac_install_sh="$ac_aux_dir/$ac_t -c"
4290 break 2
4291 fi
4292 done
4293done
4294if test -z "$ac_aux_dir"; then
4295 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4296fi
4297
4298# These three variables are undocumented and unsupported,
4299# and are intended to be withdrawn in a future Autoconf release.
4300# They can cause serious problems if a builder's source tree is in a directory
4301# whose full name contains unusual characters.
4302ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4303ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4304ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
c9a1864a 4305
bec39cab 4306
770d76d7
PA
4307# Make sure we can run config.sub.
4308$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4309 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4310
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4312$as_echo_n "checking build system type... " >&6; }
4313if test "${ac_cv_build+set}" = set; then :
81ecdfbb
RW
4314 $as_echo_n "(cached) " >&6
4315else
770d76d7
PA
4316 ac_build_alias=$build_alias
4317test "x$ac_build_alias" = x &&
4318 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4319test "x$ac_build_alias" = x &&
4320 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4321ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4322 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4323
4324fi
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4326$as_echo "$ac_cv_build" >&6; }
4327case $ac_cv_build in
4328*-*-*) ;;
4329*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4330esac
4331build=$ac_cv_build
4332ac_save_IFS=$IFS; IFS='-'
4333set x $ac_cv_build
4334shift
4335build_cpu=$1
4336build_vendor=$2
4337shift; shift
4338# Remember, the first character of IFS is used to create $*,
4339# except with old shells:
4340build_os=$*
4341IFS=$ac_save_IFS
4342case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4343
4344
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4346$as_echo_n "checking host system type... " >&6; }
4347if test "${ac_cv_host+set}" = set; then :
4348 $as_echo_n "(cached) " >&6
4349else
4350 if test "x$host_alias" = x; then
4351 ac_cv_host=$ac_cv_build
4352else
4353 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4354 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4355fi
4356
4357fi
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4359$as_echo "$ac_cv_host" >&6; }
4360case $ac_cv_host in
4361*-*-*) ;;
4362*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4363esac
4364host=$ac_cv_host
4365ac_save_IFS=$IFS; IFS='-'
4366set x $ac_cv_host
4367shift
4368host_cpu=$1
4369host_vendor=$2
4370shift; shift
4371# Remember, the first character of IFS is used to create $*,
4372# except with old shells:
4373host_os=$*
4374IFS=$ac_save_IFS
4375case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4376
4377
c971b7fa
PA
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4379$as_echo_n "checking target system type... " >&6; }
4380if test "${ac_cv_target+set}" = set; then :
770d76d7
PA
4381 $as_echo_n "(cached) " >&6
4382else
c971b7fa
PA
4383 if test "x$target_alias" = x; then
4384 ac_cv_target=$ac_cv_host
770d76d7 4385else
c971b7fa
PA
4386 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4387 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
770d76d7 4388fi
770d76d7
PA
4389
4390fi
c971b7fa
PA
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4392$as_echo "$ac_cv_target" >&6; }
4393case $ac_cv_target in
4394*-*-*) ;;
4395*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4396esac
4397target=$ac_cv_target
4398ac_save_IFS=$IFS; IFS='-'
4399set x $ac_cv_target
4400shift
4401target_cpu=$1
4402target_vendor=$2
4403shift; shift
4404# Remember, the first character of IFS is used to create $*,
4405# except with old shells:
4406target_os=$*
4407IFS=$ac_save_IFS
4408case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
770d76d7 4409
770d76d7 4410
c971b7fa
PA
4411# The aliases save the names the user supplied, while $host etc.
4412# will get canonicalized.
4413test -n "$target_alias" &&
4414 test "$program_prefix$program_suffix$program_transform_name" = \
4415 NONENONEs,x,x, &&
4416 program_prefix=${target_alias}-
770d76d7 4417
770d76d7 4418
c971b7fa
PA
4419# Find a good install program. We prefer a C program (faster),
4420# so one script is as good as another. But avoid the broken or
4421# incompatible versions:
4422# SysV /etc/install, /usr/sbin/install
4423# SunOS /usr/etc/install
4424# IRIX /sbin/install
4425# AIX /bin/install
4426# AmigaOS /C/install, which installs bootblocks on floppy discs
4427# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4428# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4429# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4430# OS/2's system install, which has a completely different semantic
4431# ./install, which can be erroneously created by make from ./install.sh.
4432# Reject install programs that cannot install multiple files.
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4434$as_echo_n "checking for a BSD-compatible install... " >&6; }
4435if test -z "$INSTALL"; then
4436if test "${ac_cv_path_install+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
81ecdfbb
RW
4438else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440for as_dir in $PATH
fd462a61 4441do
81ecdfbb
RW
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 # Account for people who put trailing slashes in PATH elements.
4445case $as_dir/ in #((
4446 ./ | .// | /[cC]/* | \
4447 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4448 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4449 /usr/ucb/* ) ;;
4450 *)
4451 # OSF1 and SCO ODT 3.0 have their own names for install.
4452 # Don't use installbsd from OSF since it installs stuff as root
4453 # by default.
4454 for ac_prog in ginstall scoinst install; do
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4457 if test $ac_prog = install &&
4458 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4459 # AIX install. It has an incompatible calling convention.
4460 :
4461 elif test $ac_prog = install &&
4462 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4463 # program-specific install script used by HP pwplus--don't use.
4464 :
4465 else
4466 rm -rf conftest.one conftest.two conftest.dir
4467 echo one > conftest.one
4468 echo two > conftest.two
4469 mkdir conftest.dir
4470 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4471 test -s conftest.one && test -s conftest.two &&
4472 test -s conftest.dir/conftest.one &&
4473 test -s conftest.dir/conftest.two
4474 then
4475 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4476 break 3
4477 fi
4478 fi
4479 fi
4480 done
4481 done
4482 ;;
4483esac
fd462a61 4484
81ecdfbb
RW
4485 done
4486IFS=$as_save_IFS
fd462a61 4487
81ecdfbb 4488rm -rf conftest.one conftest.two conftest.dir
fd462a61 4489
fd462a61 4490fi
81ecdfbb
RW
4491 if test "${ac_cv_path_install+set}" = set; then
4492 INSTALL=$ac_cv_path_install
4493 else
4494 # As a last resort, use the slow shell script. Don't cache a
4495 # value for INSTALL within a source directory, because that will
4496 # break other packages using the cache if that directory is
4497 # removed, or if the value is a relative name.
4498 INSTALL=$ac_install_sh
4499 fi
fd462a61 4500fi
81ecdfbb
RW
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4502$as_echo "$INSTALL" >&6; }
fd462a61 4503
81ecdfbb
RW
4504# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4505# It thinks the first close brace ends the variable substitution.
4506test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
fd462a61 4507
81ecdfbb 4508test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fd462a61 4509
81ecdfbb 4510test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
e28b3332 4511
e1d2394b
MS
4512if test -n "$ac_tool_prefix"; then
4513 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4514set dummy ${ac_tool_prefix}ar; ac_word=$2
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516$as_echo_n "checking for $ac_word... " >&6; }
4517if test "${ac_cv_prog_AR+set}" = set; then :
4518 $as_echo_n "(cached) " >&6
4519else
4520 if test -n "$AR"; then
4521 ac_cv_prog_AR="$AR" # Let the user override the test.
4522else
4523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH
4525do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4530 ac_cv_prog_AR="${ac_tool_prefix}ar"
4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4533 fi
4534done
4535 done
4536IFS=$as_save_IFS
4537
4538fi
4539fi
4540AR=$ac_cv_prog_AR
4541if test -n "$AR"; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4543$as_echo "$AR" >&6; }
4544else
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546$as_echo "no" >&6; }
4547fi
4548
4549
4550fi
4551if test -z "$ac_cv_prog_AR"; then
4552 ac_ct_AR=$AR
4553 # Extract the first word of "ar", so it can be a program name with args.
4554set dummy ar; ac_word=$2
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556$as_echo_n "checking for $ac_word... " >&6; }
4557if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559else
4560 if test -n "$ac_ct_AR"; then
4561 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4562else
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_ac_ct_AR="ar"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4573 fi
4574done
4575 done
4576IFS=$as_save_IFS
4577
4578fi
4579fi
4580ac_ct_AR=$ac_cv_prog_ac_ct_AR
4581if test -n "$ac_ct_AR"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4583$as_echo "$ac_ct_AR" >&6; }
4584else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586$as_echo "no" >&6; }
4587fi
4588
4589 if test "x$ac_ct_AR" = x; then
4590 AR=""
4591 else
4592 case $cross_compiling:$ac_tool_warned in
4593yes:)
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4596ac_tool_warned=yes ;;
4597esac
4598 AR=$ac_ct_AR
4599 fi
4600else
4601 AR="$ac_cv_prog_AR"
4602fi
4603
c971b7fa
PA
4604if test -n "$ac_tool_prefix"; then
4605 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4606set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608$as_echo_n "checking for $ac_word... " >&6; }
4609if test "${ac_cv_prog_RANLIB+set}" = set; then :
81ecdfbb
RW
4610 $as_echo_n "(cached) " >&6
4611else
c971b7fa
PA
4612 if test -n "$RANLIB"; then
4613 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
e28b3332 4614else
c971b7fa
PA
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4625 fi
4626done
4627 done
4628IFS=$as_save_IFS
4629
4630fi
4631fi
4632RANLIB=$ac_cv_prog_RANLIB
4633if test -n "$RANLIB"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4635$as_echo "$RANLIB" >&6; }
4636else
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638$as_echo "no" >&6; }
4639fi
4640
4641
4642fi
4643if test -z "$ac_cv_prog_RANLIB"; then
4644 ac_ct_RANLIB=$RANLIB
4645 # Extract the first word of "ranlib", so it can be a program name with args.
4646set dummy ranlib; ac_word=$2
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648$as_echo_n "checking for $ac_word... " >&6; }
4649if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4651else
4652 if test -n "$ac_ct_RANLIB"; then
4653 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4654else
4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_ac_ct_RANLIB="ranlib"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4665 fi
4666done
4667 done
4668IFS=$as_save_IFS
4669
4670fi
4671fi
4672ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4673if test -n "$ac_ct_RANLIB"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4675$as_echo "$ac_ct_RANLIB" >&6; }
4676else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678$as_echo "no" >&6; }
4679fi
4680
4681 if test "x$ac_ct_RANLIB" = x; then
4682 RANLIB=":"
4683 else
4684 case $cross_compiling:$ac_tool_warned in
4685yes:)
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4688ac_tool_warned=yes ;;
4689esac
4690 RANLIB=$ac_ct_RANLIB
4691 fi
4692else
4693 RANLIB="$ac_cv_prog_RANLIB"
4694fi
4695
4696
4697test "$program_prefix" != NONE &&
4698 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4699# Use a double $ so make ignores it.
4700test "$program_suffix" != NONE &&
4701 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4702# Double any \ or $.
4703# By default was `s,x,x', remove it if useless.
4704ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4705program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4706
4707
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4709$as_echo_n "checking for ANSI C header files... " >&6; }
4710if test "${ac_cv_header_stdc+set}" = set; then :
4711 $as_echo_n "(cached) " >&6
4712else
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714/* end confdefs.h. */
4715#include <stdlib.h>
4716#include <stdarg.h>
4717#include <string.h>
4718#include <float.h>
4719
4720int
4721main ()
4722{
4723
4724 ;
4725 return 0;
4726}
4727_ACEOF
4728if ac_fn_c_try_compile "$LINENO"; then :
4729 ac_cv_header_stdc=yes
4730else
4731 ac_cv_header_stdc=no
4732fi
4733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734
4735if test $ac_cv_header_stdc = yes; then
4736 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738/* end confdefs.h. */
4739#include <string.h>
4740
4741_ACEOF
4742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4743 $EGREP "memchr" >/dev/null 2>&1; then :
4744
68070c10 4745else
81ecdfbb
RW
4746 ac_cv_header_stdc=no
4747fi
4748rm -f conftest*
68070c10
PA
4749
4750fi
68070c10 4751
81ecdfbb
RW
4752if test $ac_cv_header_stdc = yes; then
4753 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755/* end confdefs.h. */
4756#include <stdlib.h>
68070c10 4757
68070c10 4758_ACEOF
81ecdfbb
RW
4759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4760 $EGREP "free" >/dev/null 2>&1; then :
68070c10
PA
4761
4762else
81ecdfbb 4763 ac_cv_header_stdc=no
68070c10 4764fi
81ecdfbb
RW
4765rm -f conftest*
4766
68070c10
PA
4767fi
4768
81ecdfbb
RW
4769if test $ac_cv_header_stdc = yes; then
4770 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4771 if test "$cross_compiling" = yes; then :
4772 :
43d5792c 4773else
81ecdfbb 4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 4775/* end confdefs.h. */
81ecdfbb
RW
4776#include <ctype.h>
4777#include <stdlib.h>
4778#if ((' ' & 0x0FF) == 0x020)
4779# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4780# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4781#else
4782# define ISLOWER(c) \
4783 (('a' <= (c) && (c) <= 'i') \
4784 || ('j' <= (c) && (c) <= 'r') \
4785 || ('s' <= (c) && (c) <= 'z'))
4786# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4787#endif
4788
4789#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
bec39cab
AC
4790int
4791main ()
4792{
81ecdfbb
RW
4793 int i;
4794 for (i = 0; i < 256; i++)
4795 if (XOR (islower (i), ISLOWER (i))
4796 || toupper (i) != TOUPPER (i))
4797 return 2;
bec39cab
AC
4798 return 0;
4799}
4800_ACEOF
81ecdfbb 4801if ac_fn_c_try_run "$LINENO"; then :
bec39cab 4802
81ecdfbb
RW
4803else
4804 ac_cv_header_stdc=no
43d5792c 4805fi
81ecdfbb
RW
4806rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4807 conftest.$ac_objext conftest.beam conftest.$ac_ext
43d5792c 4808fi
e122f1f5 4809
68070c10 4810fi
81ecdfbb
RW
4811fi
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4813$as_echo "$ac_cv_header_stdc" >&6; }
4814if test $ac_cv_header_stdc = yes; then
68070c10 4815
81ecdfbb 4816$as_echo "#define STDC_HEADERS 1" >>confdefs.h
68070c10 4817
68070c10 4818fi
68070c10 4819
68070c10 4820
3bc3d82a
PA
4821# See if we are building with C++, and substitute COMPILER.
4822
4823 # Check whether --enable-build-with-cxx was given.
4824if test "${enable_build_with_cxx+set}" = set; then :
4825 enableval=$enable_build_with_cxx; case $enableval in
4826 yes | no)
4827 ;;
4828 *)
4829 as_fn_error "bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
4830 esac
4831else
4832 enable_build_with_cxx=no
4833fi
4834
4835
4836 if test "$enable_build_with_cxx" = "yes"; then
dad44a1f 4837 COMPILER='$(CXX)'
a994041d 4838 COMPILER_CFLAGS='$(CXXFLAGS)'
3bc3d82a
PA
4839 else
4840 COMPILER='$(CC)'
a994041d 4841 COMPILER_CFLAGS='$(CFLAGS)'
3bc3d82a
PA
4842 fi
4843
4844
4845
a994041d 4846
17ef446e 4847# Set the 'development' global.
270c9937 4848. $srcdir/../../bfd/development.sh
17ef446e
PA
4849
4850# Enable -lmcheck by default (it provides cheap-enough memory
4851# mangling), but turn it off for releases.
4852if $development; then
4853 libmcheck_default=yes
4854else
4855 libmcheck_default=no
4856fi
4857
4858 # Check whether --enable-libmcheck was given.
4859if test "${enable_libmcheck+set}" = set; then :
4860 enableval=$enable_libmcheck; case "${enableval}" in
4861 yes | y) ENABLE_LIBMCHECK="yes" ;;
4862 no | n) ENABLE_LIBMCHECK="no" ;;
4863 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
4864 esac
4865fi
4866
4867
4868 if test -z "${ENABLE_LIBMCHECK}"; then
4869 ENABLE_LIBMCHECK=${libmcheck_default}
4870 fi
4871
4872 if test "$ENABLE_LIBMCHECK" = "yes" ; then
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
4874$as_echo_n "checking for main in -lmcheck... " >&6; }
4875if test "${ac_cv_lib_mcheck_main+set}" = set; then :
4876 $as_echo_n "(cached) " >&6
4877else
4878 ac_check_lib_save_LIBS=$LIBS
4879LIBS="-lmcheck $LIBS"
4880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881/* end confdefs.h. */
4882
4883
4884int
4885main ()
4886{
4887return main ();
4888 ;
4889 return 0;
4890}
4891_ACEOF
4892if ac_fn_c_try_link "$LINENO"; then :
4893 ac_cv_lib_mcheck_main=yes
4894else
4895 ac_cv_lib_mcheck_main=no
4896fi
4897rm -f core conftest.err conftest.$ac_objext \
4898 conftest$ac_exeext conftest.$ac_ext
4899LIBS=$ac_check_lib_save_LIBS
4900fi
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
4902$as_echo "$ac_cv_lib_mcheck_main" >&6; }
4903if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
4904 cat >>confdefs.h <<_ACEOF
4905#define HAVE_LIBMCHECK 1
4906_ACEOF
4907
4908 LIBS="-lmcheck $LIBS"
4909
4910fi
4911
4912 fi
4913
4914
bd885420
YQ
4915 case ${build_alias} in
4916 "") build_noncanonical=${build} ;;
4917 *) build_noncanonical=${build_alias} ;;
4918esac
4919
4920 case ${host_alias} in
4921 "") host_noncanonical=${build_noncanonical} ;;
4922 *) host_noncanonical=${host_alias} ;;
4923esac
4924
4925 case ${target_alias} in
4926 "") target_noncanonical=${host_noncanonical} ;;
4927 *) target_noncanonical=${target_alias} ;;
4928esac
4929
4930
4931
4932
4933
4934
61c125b9
TT
4935# Dependency checking.
4936rm -rf .tst 2>/dev/null
4937mkdir .tst 2>/dev/null
4938if test -d .tst; then
4939 am__leading_dot=.
4940else
4941 am__leading_dot=_
4942fi
4943rmdir .tst 2>/dev/null
4944
4945DEPDIR="${am__leading_dot}deps"
4946
4947ac_config_commands="$ac_config_commands depdir"
4948
4949
4950depcc="$CC" am_compiler_list=
4951
4952am_depcomp=$ac_aux_dir/depcomp
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4954$as_echo_n "checking dependency style of $depcc... " >&6; }
4955if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4957else
4958 if test -f "$am_depcomp"; then
4959 # We make a subdir and do the tests there. Otherwise we can end up
4960 # making bogus files that we don't know about and never remove. For
4961 # instance it was reported that on HP-UX the gcc test will end up
4962 # making a dummy file named `D' -- because `-MD' means `put the output
4963 # in D'.
4964 mkdir conftest.dir
4965 # Copy depcomp to subdir because otherwise we won't find it if we're
4966 # using a relative directory.
4967 cp "$am_depcomp" conftest.dir
4968 cd conftest.dir
4969 # We will build objects and dependencies in a subdirectory because
4970 # it helps to detect inapplicable dependency modes. For instance
4971 # both Tru64's cc and ICC support -MD to output dependencies as a
4972 # side effect of compilation, but ICC will put the dependencies in
4973 # the current directory while Tru64 will put them in the object
4974 # directory.
4975 mkdir sub
4976
4977 am_cv_CC_dependencies_compiler_type=none
4978 if test "$am_compiler_list" = ""; then
4979 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4980 fi
4981 for depmode in $am_compiler_list; do
4982 if test $depmode = none; then break; fi
4983
4984 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4985 # Setup a source with many dependencies, because some compilers
4986 # like to wrap large dependency lists on column 80 (with \), and
4987 # we should not choose a depcomp mode which is confused by this.
4988 #
4989 # We need to recreate these files for each test, as the compiler may
4990 # overwrite some of them when testing with obscure command lines.
4991 # This happens at least with the AIX C compiler.
4992 : > sub/conftest.c
4993 for i in 1 2 3 4 5 6; do
4994 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4995 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4996 # Solaris 8's {/usr,}/bin/sh.
4997 touch sub/conftst$i.h
4998 done
4999 echo "include sub/conftest.Po" > confmf
5000
5001 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5002 # mode. It turns out that the SunPro C++ compiler does not properly
5003 # handle `-M -o', and we need to detect this.
5004 depcmd="depmode=$depmode \
5005 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5006 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5007 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5008 echo "| $depcmd" | sed -e 's/ */ /g' >&5
5009 if env $depcmd > conftest.err 2>&1 &&
5010 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5011 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5012 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5013 # icc doesn't choke on unknown options, it will just issue warnings
5014 # or remarks (even with -Werror). So we grep stderr for any message
5015 # that says an option was ignored or not supported.
5016 # When given -MP, icc 7.0 and 7.1 complain thusly:
5017 # icc: Command line warning: ignoring option '-M'; no argument required
5018 # The diagnosis changed in icc 8.0:
5019 # icc: Command line remark: option '-MP' not supported
5020 if (grep 'ignoring option' conftest.err ||
5021 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5022 am_cv_CC_dependencies_compiler_type=$depmode
5023 $as_echo "$as_me:$LINENO: success" >&5
5024 break
5025 fi
5026 fi
5027 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5028 sed -e 's/^/| /' < conftest.err >&5
5029 done
5030
5031 cd ..
5032 rm -rf conftest.dir
5033else
5034 am_cv_CC_dependencies_compiler_type=none
5035fi
5036
5037fi
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5039$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5040if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
5041then as_fn_error "no usable dependency style found" "$LINENO" 5
5042else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5043
5044fi
5045
5046
c9a1864a
YQ
5047# Check for the 'make' the user wants to use.
5048for ac_prog in make
5049do
5050 # Extract the first word of "$ac_prog", so it can be a program name with args.
5051set dummy $ac_prog; ac_word=$2
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053$as_echo_n "checking for $ac_word... " >&6; }
5054if test "${ac_cv_prog_MAKE+set}" = set; then :
5055 $as_echo_n "(cached) " >&6
5056else
5057 if test -n "$MAKE"; then
5058 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5059else
5060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061for as_dir in $PATH
5062do
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067 ac_cv_prog_MAKE="$ac_prog"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5070 fi
5071done
5072 done
5073IFS=$as_save_IFS
5074
5075fi
5076fi
5077MAKE=$ac_cv_prog_MAKE
5078if test -n "$MAKE"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5080$as_echo "$MAKE" >&6; }
5081else
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083$as_echo "no" >&6; }
5084fi
5085
5086
5087 test -n "$MAKE" && break
5088done
5089
61c125b9
TT
5090MAKE_IS_GNU=
5091case "`$MAKE --version 2>&1 | sed 1q`" in
5092 *GNU*)
5093 MAKE_IS_GNU=yes
5094 ;;
5095esac
5096 if test "$MAKE_IS_GNU" = yes; then
5097 GMAKE_TRUE=
5098 GMAKE_FALSE='#'
5099else
5100 GMAKE_TRUE='#'
5101 GMAKE_FALSE=
5102fi
5103
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5105$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5106set x ${MAKE-make}
5107ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5108if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5109 $as_echo_n "(cached) " >&6
5110else
5111 cat >conftest.make <<\_ACEOF
5112SHELL = /bin/sh
5113all:
5114 @echo '@@@%%%=$(MAKE)=@@@%%%'
5115_ACEOF
5116# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5117case `${MAKE-make} -f conftest.make 2>/dev/null` in
5118 *@@@%%%=?*=@@@%%%*)
5119 eval ac_cv_prog_make_${ac_make}_set=yes;;
5120 *)
5121 eval ac_cv_prog_make_${ac_make}_set=no;;
5122esac
5123rm -f conftest.make
5124fi
5125if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5127$as_echo "yes" >&6; }
5128 SET_MAKE=
5129else
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131$as_echo "no" >&6; }
5132 SET_MAKE="MAKE=${MAKE-make}"
5133fi
5134
c9a1864a 5135
648d586d
JB
5136gnulib_extra_configure_args=
5137# If large-file support is disabled, make sure gnulib does the same.
5138if test "$enable_largefile" = no; then
5139gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
5140fi
5141
c971b7fa
PA
5142# Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
5143# to find the the source subdir to be configured directly under
5144# gdbserver/. We need to build gnulib under some other directory not
5145# "gnulib", to avoid the problem of both GDB and GDBserver wanting to
5146# build it in the same directory, when building in the source dir.
5147
5148 in_src="../gnulib"
5149 in_build="build-gnulib-gdbserver"
648d586d 5150 in_extra_args="$gnulib_extra_configure_args"
c971b7fa
PA
5151
5152 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5153 # so they do not pile up.
5154 ac_sub_configure_args=
5155 ac_prev=
5156 eval "set x $ac_configure_args"
5157 shift
5158 for ac_arg
5159 do
5160 if test -n "$ac_prev"; then
5161 ac_prev=
5162 continue
5163 fi
5164 case $ac_arg in
5165 -cache-file | --cache-file | --cache-fil | --cache-fi \
5166 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5167 ac_prev=cache_file ;;
5168 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5169 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
5170 | --c=*)
5171 ;;
5172 --config-cache | -C)
5173 ;;
5174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5175 ac_prev=srcdir ;;
5176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5177 ;;
5178 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5179 ac_prev=prefix ;;
5180 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5181 ;;
5182 --disable-option-checking)
5183 ;;
5184 *)
5185 case $ac_arg in
5186 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5187 esac
5188 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
5189 esac
5190 done
5191
5192 # Always prepend --prefix to ensure using the same prefix
5193 # in subdir configurations.
5194 ac_arg="--prefix=$prefix"
5195 case $ac_arg in
5196 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5197 esac
5198 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
5199
5200 # Pass --silent
5201 if test "$silent" = yes; then
5202 ac_sub_configure_args="--silent $ac_sub_configure_args"
5203 fi
5204
5205 # Always prepend --disable-option-checking to silence warnings, since
5206 # different subdirs can have different --enable and --with options.
5207 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
5208
5209 ac_popdir=`pwd`
5210 ac_dir=$in_build
5211
5212 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5214 $as_echo "$ac_msg" >&6
5215 as_dir="$ac_dir"; as_fn_mkdir_p
5216
38ea300a
PA
5217 case $srcdir in
5218 [\\/]* | ?:[\\/]* )
5219 ac_srcdir=$srcdir/$in_src ;;
5220 *) # Relative name.
5221 ac_srcdir=../$srcdir/$in_src ;;
5222 esac
c971b7fa
PA
5223
5224 cd "$ac_dir"
5225
5226 ac_sub_configure=$ac_srcdir/configure
5227
5228 # Make the cache file name correct relative to the subdirectory.
5229 case $cache_file in
5230 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
5231 *) # Relative name.
5232 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
5233 esac
5234
648d586d
JB
5235 if test -n "$in_extra_args"; then
5236 # Add the extra args at the end.
5237 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
5238 fi
5239
c971b7fa
PA
5240 { $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
5241$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5242 # The eval makes quoting arguments work.
5243 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5244 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5245 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5246
5247 cd "$ac_popdir"
5248
5249
0b04e523
TT
5250
5251 in_src="../../libiberty"
5252 in_build="build-libiberty-gdbserver"
648d586d 5253 in_extra_args=
0b04e523
TT
5254
5255 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5256 # so they do not pile up.
5257 ac_sub_configure_args=
5258 ac_prev=
5259 eval "set x $ac_configure_args"
5260 shift
5261 for ac_arg
5262 do
5263 if test -n "$ac_prev"; then
5264 ac_prev=
5265 continue
5266 fi
5267 case $ac_arg in
5268 -cache-file | --cache-file | --cache-fil | --cache-fi \
5269 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5270 ac_prev=cache_file ;;
5271 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5272 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
5273 | --c=*)
5274 ;;
5275 --config-cache | -C)
5276 ;;
5277 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5278 ac_prev=srcdir ;;
5279 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5280 ;;
5281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5282 ac_prev=prefix ;;
5283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5284 ;;
5285 --disable-option-checking)
5286 ;;
5287 *)
5288 case $ac_arg in
5289 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5290 esac
5291 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
5292 esac
5293 done
5294
5295 # Always prepend --prefix to ensure using the same prefix
5296 # in subdir configurations.
5297 ac_arg="--prefix=$prefix"
5298 case $ac_arg in
5299 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5300 esac
5301 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
5302
5303 # Pass --silent
5304 if test "$silent" = yes; then
5305 ac_sub_configure_args="--silent $ac_sub_configure_args"
5306 fi
5307
5308 # Always prepend --disable-option-checking to silence warnings, since
5309 # different subdirs can have different --enable and --with options.
5310 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
5311
5312 ac_popdir=`pwd`
5313 ac_dir=$in_build
5314
5315 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5316 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5317 $as_echo "$ac_msg" >&6
5318 as_dir="$ac_dir"; as_fn_mkdir_p
5319
5320 case $srcdir in
5321 [\\/]* | ?:[\\/]* )
5322 ac_srcdir=$srcdir/$in_src ;;
5323 *) # Relative name.
5324 ac_srcdir=../$srcdir/$in_src ;;
5325 esac
5326
5327 cd "$ac_dir"
5328
5329 ac_sub_configure=$ac_srcdir/configure
5330
5331 # Make the cache file name correct relative to the subdirectory.
5332 case $cache_file in
5333 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
5334 *) # Relative name.
5335 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
5336 esac
5337
648d586d
JB
5338 if test -n "$in_extra_args"; then
5339 # Add the extra args at the end.
5340 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
5341 fi
5342
0b04e523
TT
5343 { $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
5344$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5345 # The eval makes quoting arguments work.
5346 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5347 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5348 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5349
5350 cd "$ac_popdir"
5351
5352
9c232dda 5353for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h linux/elf.h fcntl.h signal.h sys/file.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h
81ecdfbb
RW
5354do :
5355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5356ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5357eval as_val=\$$as_ac_Header
5358 if test "x$as_val" = x""yes; then :
68070c10 5359 cat >>confdefs.h <<_ACEOF
81ecdfbb 5360#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
68070c10
PA
5361_ACEOF
5362
ec56be1b 5363fi
ec56be1b 5364
81ecdfbb
RW
5365done
5366
eb0edac8
GB
5367ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5368if test "x$ac_cv_type_pid_t" = x""yes; then :
5369
5370else
5371
5372cat >>confdefs.h <<_ACEOF
5373#define pid_t int
5374_ACEOF
5375
5376fi
5377
5378for ac_header in vfork.h
5379do :
5380 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5381if test "x$ac_cv_header_vfork_h" = x""yes; then :
5382 cat >>confdefs.h <<_ACEOF
5383#define HAVE_VFORK_H 1
5384_ACEOF
5385
5386fi
5387
5388done
5389
5390for ac_func in fork vfork
5391do :
5392 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5393ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5394eval as_val=\$$as_ac_var
5395 if test "x$as_val" = x""yes; then :
5396 cat >>confdefs.h <<_ACEOF
5397#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5398_ACEOF
5399
5400fi
5401done
5402
5403if test "x$ac_cv_func_fork" = xyes; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5405$as_echo_n "checking for working fork... " >&6; }
5406if test "${ac_cv_func_fork_works+set}" = set; then :
5407 $as_echo_n "(cached) " >&6
5408else
5409 if test "$cross_compiling" = yes; then :
5410 ac_cv_func_fork_works=cross
5411else
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413/* end confdefs.h. */
5414$ac_includes_default
5415int
5416main ()
5417{
5418
5419 /* By Ruediger Kuhlmann. */
5420 return fork () < 0;
5421
5422 ;
5423 return 0;
5424}
5425_ACEOF
5426if ac_fn_c_try_run "$LINENO"; then :
5427 ac_cv_func_fork_works=yes
5428else
5429 ac_cv_func_fork_works=no
5430fi
5431rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5432 conftest.$ac_objext conftest.beam conftest.$ac_ext
5433fi
5434
5435fi
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5437$as_echo "$ac_cv_func_fork_works" >&6; }
5438
5439else
5440 ac_cv_func_fork_works=$ac_cv_func_fork
5441fi
5442if test "x$ac_cv_func_fork_works" = xcross; then
5443 case $host in
5444 *-*-amigaos* | *-*-msdosdjgpp*)
5445 # Override, as these systems have only a dummy fork() stub
5446 ac_cv_func_fork_works=no
5447 ;;
5448 *)
5449 ac_cv_func_fork_works=yes
5450 ;;
5451 esac
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5453$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5454fi
5455ac_cv_func_vfork_works=$ac_cv_func_vfork
5456if test "x$ac_cv_func_vfork" = xyes; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5458$as_echo_n "checking for working vfork... " >&6; }
5459if test "${ac_cv_func_vfork_works+set}" = set; then :
5460 $as_echo_n "(cached) " >&6
5461else
5462 if test "$cross_compiling" = yes; then :
5463 ac_cv_func_vfork_works=cross
5464else
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466/* end confdefs.h. */
5467/* Thanks to Paul Eggert for this test. */
5468$ac_includes_default
5469#include <sys/wait.h>
5470#ifdef HAVE_VFORK_H
5471# include <vfork.h>
5472#endif
5473/* On some sparc systems, changes by the child to local and incoming
5474 argument registers are propagated back to the parent. The compiler
5475 is told about this with #include <vfork.h>, but some compilers
5476 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5477 static variable whose address is put into a register that is
5478 clobbered by the vfork. */
5479static void
5480#ifdef __cplusplus
5481sparc_address_test (int arg)
5482# else
5483sparc_address_test (arg) int arg;
5484#endif
5485{
5486 static pid_t child;
5487 if (!child) {
5488 child = vfork ();
5489 if (child < 0) {
5490 perror ("vfork");
5491 _exit(2);
5492 }
5493 if (!child) {
5494 arg = getpid();
5495 write(-1, "", 0);
5496 _exit (arg);
5497 }
5498 }
5499}
5500
5501int
5502main ()
5503{
5504 pid_t parent = getpid ();
5505 pid_t child;
5506
5507 sparc_address_test (0);
5508
5509 child = vfork ();
5510
5511 if (child == 0) {
5512 /* Here is another test for sparc vfork register problems. This
5513 test uses lots of local variables, at least as many local
5514 variables as main has allocated so far including compiler
5515 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5516 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5517 reuse the register of parent for one of the local variables,
5518 since it will think that parent can't possibly be used any more
5519 in this routine. Assigning to the local variable will thus
5520 munge parent in the parent process. */
5521 pid_t
5522 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5523 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5524 /* Convince the compiler that p..p7 are live; otherwise, it might
5525 use the same hardware register for all 8 local variables. */
5526 if (p != p1 || p != p2 || p != p3 || p != p4
5527 || p != p5 || p != p6 || p != p7)
5528 _exit(1);
5529
5530 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5531 from child file descriptors. If the child closes a descriptor
5532 before it execs or exits, this munges the parent's descriptor
5533 as well. Test for this by closing stdout in the child. */
5534 _exit(close(fileno(stdout)) != 0);
5535 } else {
5536 int status;
5537 struct stat st;
5538
5539 while (wait(&status) != child)
5540 ;
5541 return (
5542 /* Was there some problem with vforking? */
5543 child < 0
5544
5545 /* Did the child fail? (This shouldn't happen.) */
5546 || status
5547
5548 /* Did the vfork/compiler bug occur? */
5549 || parent != getpid()
5550
5551 /* Did the file descriptor bug occur? */
5552 || fstat(fileno(stdout), &st) != 0
5553 );
5554 }
5555}
5556_ACEOF
5557if ac_fn_c_try_run "$LINENO"; then :
5558 ac_cv_func_vfork_works=yes
5559else
5560 ac_cv_func_vfork_works=no
5561fi
5562rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5563 conftest.$ac_objext conftest.beam conftest.$ac_ext
5564fi
5565
5566fi
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5568$as_echo "$ac_cv_func_vfork_works" >&6; }
5569
5570fi;
5571if test "x$ac_cv_func_fork_works" = xcross; then
5572 ac_cv_func_vfork_works=$ac_cv_func_vfork
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5574$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5575fi
5576
5577if test "x$ac_cv_func_vfork_works" = xyes; then
5578
5579$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5580
5581else
5582
5583$as_echo "#define vfork fork" >>confdefs.h
5584
5585fi
5586if test "x$ac_cv_func_fork_works" = xyes; then
5587
5588$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5589
5590fi
5591
4b8b5e72 5592for ac_func in getauxval pread pwrite pread64 setns
81ecdfbb
RW
5593do :
5594 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5595ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5596eval as_val=\$$as_ac_var
5597 if test "x$as_val" = x""yes; then :
5598 cat >>confdefs.h <<_ACEOF
5599#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ec56be1b
PA
5600_ACEOF
5601
81ecdfbb
RW
5602fi
5603done
ec56be1b 5604
e122f1f5 5605
3266f10b
TT
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5608$as_echo_n "checking for ANSI C header files... " >&6; }
5609if test "${ac_cv_header_stdc+set}" = set; then :
5610 $as_echo_n "(cached) " >&6
5611else
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613/* end confdefs.h. */
5614#include <stdlib.h>
5615#include <stdarg.h>
5616#include <string.h>
5617#include <float.h>
5618
5619int
5620main ()
5621{
5622
5623 ;
5624 return 0;
5625}
5626_ACEOF
5627if ac_fn_c_try_compile "$LINENO"; then :
5628 ac_cv_header_stdc=yes
5629else
5630 ac_cv_header_stdc=no
5631fi
5632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633
5634if test $ac_cv_header_stdc = yes; then
5635 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637/* end confdefs.h. */
5638#include <string.h>
5639
5640_ACEOF
5641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5642 $EGREP "memchr" >/dev/null 2>&1; then :
5643
5644else
5645 ac_cv_header_stdc=no
5646fi
5647rm -f conftest*
5648
5649fi
5650
5651if test $ac_cv_header_stdc = yes; then
5652 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654/* end confdefs.h. */
5655#include <stdlib.h>
5656
5657_ACEOF
5658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5659 $EGREP "free" >/dev/null 2>&1; then :
5660
5661else
5662 ac_cv_header_stdc=no
5663fi
5664rm -f conftest*
5665
5666fi
5667
5668if test $ac_cv_header_stdc = yes; then
5669 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5670 if test "$cross_compiling" = yes; then :
5671 :
5672else
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674/* end confdefs.h. */
5675#include <ctype.h>
5676#include <stdlib.h>
5677#if ((' ' & 0x0FF) == 0x020)
5678# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5679# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5680#else
5681# define ISLOWER(c) \
5682 (('a' <= (c) && (c) <= 'i') \
5683 || ('j' <= (c) && (c) <= 'r') \
5684 || ('s' <= (c) && (c) <= 'z'))
5685# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5686#endif
5687
5688#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5689int
5690main ()
5691{
5692 int i;
5693 for (i = 0; i < 256; i++)
5694 if (XOR (islower (i), ISLOWER (i))
5695 || toupper (i) != TOUPPER (i))
5696 return 2;
5697 return 0;
5698}
5699_ACEOF
5700if ac_fn_c_try_run "$LINENO"; then :
5701
5702else
5703 ac_cv_header_stdc=no
5704fi
5705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5706 conftest.$ac_objext conftest.beam conftest.$ac_ext
5707fi
5708
5709fi
5710fi
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5712$as_echo "$ac_cv_header_stdc" >&6; }
5713if test $ac_cv_header_stdc = yes; then
5714
5715$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5716
3266f10b
TT
5717fi
5718
5719 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5720# for constant arguments. Useless!
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5722$as_echo_n "checking for working alloca.h... " >&6; }
5723if test "${ac_cv_working_alloca_h+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
5725else
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727/* end confdefs.h. */
5728#include <alloca.h>
5729int
5730main ()
5731{
5732char *p = (char *) alloca (2 * sizeof (int));
5733 if (p) return 0;
5734 ;
5735 return 0;
5736}
5737_ACEOF
5738if ac_fn_c_try_link "$LINENO"; then :
5739 ac_cv_working_alloca_h=yes
5740else
5741 ac_cv_working_alloca_h=no
5742fi
5743rm -f core conftest.err conftest.$ac_objext \
5744 conftest$ac_exeext conftest.$ac_ext
5745fi
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5747$as_echo "$ac_cv_working_alloca_h" >&6; }
5748if test $ac_cv_working_alloca_h = yes; then
5749
5750$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5751
5752fi
5753
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5755$as_echo_n "checking for alloca... " >&6; }
5756if test "${ac_cv_func_alloca_works+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5758else
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h. */
5761#ifdef __GNUC__
5762# define alloca __builtin_alloca
5763#else
5764# ifdef _MSC_VER
5765# include <malloc.h>
5766# define alloca _alloca
5767# else
5768# ifdef HAVE_ALLOCA_H
5769# include <alloca.h>
5770# else
5771# ifdef _AIX
5772 #pragma alloca
5773# else
5774# ifndef alloca /* predefined by HP cc +Olibcalls */
5775char *alloca ();
5776# endif
5777# endif
5778# endif
5779# endif
5780#endif
5781
5782int
5783main ()
5784{
5785char *p = (char *) alloca (1);
5786 if (p) return 0;
5787 ;
5788 return 0;
5789}
5790_ACEOF
5791if ac_fn_c_try_link "$LINENO"; then :
5792 ac_cv_func_alloca_works=yes
5793else
5794 ac_cv_func_alloca_works=no
5795fi
5796rm -f core conftest.err conftest.$ac_objext \
5797 conftest$ac_exeext conftest.$ac_ext
5798fi
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5800$as_echo "$ac_cv_func_alloca_works" >&6; }
5801
5802if test $ac_cv_func_alloca_works = yes; then
5803
5804$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5805
5806else
5807 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5808# that cause trouble. Some versions do not even contain alloca or
5809# contain a buggy version. If you still want to use their alloca,
5810# use ar to extract alloca.o from them instead of compiling alloca.c.
5811
5812ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5813
5814$as_echo "#define C_ALLOCA 1" >>confdefs.h
5815
5816
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5818$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5819if test "${ac_cv_os_cray+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821else
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823/* end confdefs.h. */
5824#if defined CRAY && ! defined CRAY2
5825webecray
5826#else
5827wenotbecray
5828#endif
5829
5830_ACEOF
5831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5832 $EGREP "webecray" >/dev/null 2>&1; then :
5833 ac_cv_os_cray=yes
5834else
5835 ac_cv_os_cray=no
5836fi
5837rm -f conftest*
5838
5839fi
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5841$as_echo "$ac_cv_os_cray" >&6; }
5842if test $ac_cv_os_cray = yes; then
5843 for ac_func in _getb67 GETB67 getb67; do
5844 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5845ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5846eval as_val=\$$as_ac_var
5847 if test "x$as_val" = x""yes; then :
5848
5849cat >>confdefs.h <<_ACEOF
5850#define CRAY_STACKSEG_END $ac_func
5851_ACEOF
5852
5853 break
5854fi
5855
5856 done
5857fi
5858
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5860$as_echo_n "checking stack direction for C alloca... " >&6; }
5861if test "${ac_cv_c_stack_direction+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5863else
5864 if test "$cross_compiling" = yes; then :
5865 ac_cv_c_stack_direction=0
5866else
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868/* end confdefs.h. */
5869$ac_includes_default
5870int
5871find_stack_direction ()
5872{
5873 static char *addr = 0;
5874 auto char dummy;
5875 if (addr == 0)
5876 {
5877 addr = &dummy;
5878 return find_stack_direction ();
5879 }
5880 else
5881 return (&dummy > addr) ? 1 : -1;
5882}
5883
5884int
5885main ()
5886{
5887 return find_stack_direction () < 0;
5888}
5889_ACEOF
5890if ac_fn_c_try_run "$LINENO"; then :
5891 ac_cv_c_stack_direction=1
5892else
5893 ac_cv_c_stack_direction=-1
5894fi
5895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5896 conftest.$ac_objext conftest.beam conftest.$ac_ext
5897fi
5898
5899fi
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5901$as_echo "$ac_cv_c_stack_direction" >&6; }
5902cat >>confdefs.h <<_ACEOF
5903#define STACK_DIRECTION $ac_cv_c_stack_direction
5904_ACEOF
5905
5906
5907fi
5908
5909
5910
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5912$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5913if test "${am_cv_langinfo_codeset+set}" = set; then :
5914 $as_echo_n "(cached) " >&6
5915else
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917/* end confdefs.h. */
5918#include <langinfo.h>
5919int
5920main ()
5921{
5922char* cs = nl_langinfo(CODESET);
5923 ;
5924 return 0;
5925}
5926_ACEOF
5927if ac_fn_c_try_link "$LINENO"; then :
5928 am_cv_langinfo_codeset=yes
5929else
5930 am_cv_langinfo_codeset=no
5931fi
5932rm -f core conftest.err conftest.$ac_objext \
5933 conftest$ac_exeext conftest.$ac_ext
5934
5935fi
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5937$as_echo "$am_cv_langinfo_codeset" >&6; }
5938 if test $am_cv_langinfo_codeset = yes; then
5939
5940$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5941
5942 fi
5943
5944
a3d08894 5945 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/syscall.h sys/un.h sys/wait.h thread_db.h wait.h
3266f10b
TT
5946do :
5947 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5948ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5949eval as_val=\$$as_ac_Header
5950 if test "x$as_val" = x""yes; then :
5951 cat >>confdefs.h <<_ACEOF
5952#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5953_ACEOF
5954
5955fi
5956
5957done
5958
5959
5960 for ac_func in fdwalk getrlimit pipe pipe2 socketpair
5961do :
5962 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5963ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5964eval as_val=\$$as_ac_var
5965 if test "x$as_val" = x""yes; then :
5966 cat >>confdefs.h <<_ACEOF
5967#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5968_ACEOF
5969
5970fi
5971done
5972
5973
5974 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
5975if test "x$ac_cv_have_decl_strerror" = x""yes; then :
5976 ac_have_decl=1
5977else
5978 ac_have_decl=0
5979fi
5980
5981cat >>confdefs.h <<_ACEOF
5982#define HAVE_DECL_STRERROR $ac_have_decl
5983_ACEOF
5984ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
5985if test "x$ac_cv_have_decl_strstr" = x""yes; then :
5986 ac_have_decl=1
5987else
5988 ac_have_decl=0
5989fi
5990
5991cat >>confdefs.h <<_ACEOF
5992#define HAVE_DECL_STRSTR $ac_have_decl
5993_ACEOF
5994
5995
e9bcb658
GB
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
5997$as_echo_n "checking for sigsetjmp... " >&6; }
5998if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6000else
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002/* end confdefs.h. */
6003
6004#include <setjmp.h>
6005
6006int
6007main ()
6008{
6009sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6010 ;
6011 return 0;
6012}
6013_ACEOF
6014if ac_fn_c_try_compile "$LINENO"; then :
6015 gdb_cv_func_sigsetjmp=yes
6016else
6017 gdb_cv_func_sigsetjmp=no
6018fi
6019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020fi
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
6022$as_echo "$gdb_cv_func_sigsetjmp" >&6; }
6023if test $gdb_cv_func_sigsetjmp = yes; then
6024
6025$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
6026
6027fi
6028
3266f10b 6029
eb7aa561
PA
6030# Check the return and argument types of ptrace.
6031
6032
54019719 6033
eb7aa561
PA
6034for ac_header in sys/ptrace.h ptrace.h
6035do :
6036 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6037ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6038eval as_val=\$$as_ac_Header
6039 if test "x$as_val" = x""yes; then :
6040 cat >>confdefs.h <<_ACEOF
6041#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6042_ACEOF
6043
6044fi
6045
6046done
6047
6048
54019719
PA
6049# Needs to be tested in C++ mode, to detect whether we need to cast
6050# the first argument to enum __ptrace_request.
6051if test "$enable_build_with_cxx" = "yes"; then
6052 ac_ext=cpp
6053ac_cpp='$CXXCPP $CPPFLAGS'
6054ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6057
6058fi
6059
eb7aa561
PA
6060gdb_ptrace_headers='
6061#include <sys/types.h>
6062#if HAVE_SYS_PTRACE_H
6063# include <sys/ptrace.h>
6064#endif
6065#if HAVE_UNISTD_H
6066# include <unistd.h>
6067#endif
6068'
6069# There is no point in checking if we don't have a prototype.
54019719 6070ac_fn_cxx_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
eb7aa561
PA
6071"
6072if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
6073 ac_have_decl=1
6074else
6075 ac_have_decl=0
6076fi
6077
6078cat >>confdefs.h <<_ACEOF
6079#define HAVE_DECL_PTRACE $ac_have_decl
6080_ACEOF
6081if test $ac_have_decl = 1; then :
6082
6083else
6084
6085 : ${gdb_cv_func_ptrace_ret='int'}
6086 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
6087
6088fi
6089
6090# Check return type. Varargs (used on GNU/Linux) conflict with the
6091# empty argument list, so check for that explicitly.
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
6093$as_echo_n "checking return type of ptrace... " >&6; }
6094if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
6095 $as_echo_n "(cached) " >&6
6096else
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098/* end confdefs.h. */
6099$gdb_ptrace_headers
6100int
6101main ()
6102{
6103extern long ptrace (enum __ptrace_request, ...);
6104 ;
6105 return 0;
6106}
6107_ACEOF
54019719 6108if ac_fn_cxx_try_compile "$LINENO"; then :
eb7aa561
PA
6109 gdb_cv_func_ptrace_ret='long'
6110else
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112/* end confdefs.h. */
6113$gdb_ptrace_headers
6114int
6115main ()
6116{
6117extern int ptrace ();
6118 ;
6119 return 0;
6120}
6121_ACEOF
54019719 6122if ac_fn_cxx_try_compile "$LINENO"; then :
eb7aa561
PA
6123 gdb_cv_func_ptrace_ret='int'
6124else
6125 gdb_cv_func_ptrace_ret='long'
6126fi
6127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128fi
6129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130fi
6131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
6132$as_echo "$gdb_cv_func_ptrace_ret" >&6; }
6133
6134cat >>confdefs.h <<_ACEOF
6135#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
6136_ACEOF
6137
6138# Check argument types.
6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
6140$as_echo_n "checking types of arguments for ptrace... " >&6; }
6141if test "${gdb_cv_func_ptrace_args+set}" = set; then :
6142 $as_echo_n "(cached) " >&6
6143else
6144
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146/* end confdefs.h. */
6147$gdb_ptrace_headers
6148int
6149main ()
6150{
6151extern long ptrace (enum __ptrace_request, ...);
6152 ;
6153 return 0;
6154}
6155_ACEOF
54019719
PA
6156if ac_fn_cxx_try_compile "$LINENO"; then :
6157 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
eb7aa561
PA
6158else
6159
6160for gdb_arg1 in 'int' 'long'; do
6161 for gdb_arg2 in 'pid_t' 'int' 'long'; do
6162 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
6163 for gdb_arg4 in 'int' 'long' 'void *'; do
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165/* end confdefs.h. */
6166$gdb_ptrace_headers
6167int
6168main ()
6169{
6170
6171extern $gdb_cv_func_ptrace_ret
6172 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
6173
6174 ;
6175 return 0;
6176}
6177_ACEOF
54019719 6178if ac_fn_cxx_try_compile "$LINENO"; then :
eb7aa561
PA
6179 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
6180 break 4;
6181fi
6182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 for gdb_arg5 in 'int *' 'int' 'long'; do
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185/* end confdefs.h. */
6186$gdb_ptrace_headers
6187int
6188main ()
6189{
6190
6191extern $gdb_cv_func_ptrace_ret
6192 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
6193
6194 ;
6195 return 0;
6196}
6197_ACEOF
54019719 6198if ac_fn_cxx_try_compile "$LINENO"; then :
eb7aa561
PA
6199
6200gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
6201 break 5;
6202fi
6203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204 done
6205 done
6206 done
6207 done
6208done
6209# Provide a safe default value.
6210: ${gdb_cv_func_ptrace_args='int,int,long,long'}
6211
6212fi
6213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214fi
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
6216$as_echo "$gdb_cv_func_ptrace_args" >&6; }
6217ac_save_IFS=$IFS; IFS=','
6218set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
6219IFS=$ac_save_IFS
6220shift
6221
54019719
PA
6222cat >>confdefs.h <<_ACEOF
6223#define PTRACE_TYPE_ARG1 $1
6224_ACEOF
6225
6226
eb7aa561
PA
6227cat >>confdefs.h <<_ACEOF
6228#define PTRACE_TYPE_ARG3 $3
6229_ACEOF
6230
6231
6232cat >>confdefs.h <<_ACEOF
6233#define PTRACE_TYPE_ARG4 $4
6234_ACEOF
6235
6236if test -n "$5"; then
6237
6238cat >>confdefs.h <<_ACEOF
6239#define PTRACE_TYPE_ARG5 $5
6240_ACEOF
6241
6242fi
6243
54019719
PA
6244if test "$enable_build_with_cxx" = "yes"; then
6245 ac_ext=c
6246ac_cpp='$CPP $CPPFLAGS'
6247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6249ac_compiler_gnu=$ac_cv_c_compiler_gnu
6250
6251fi
6252
eb7aa561 6253
0fb4aa4b
PA
6254# Check for UST
6255ustlibs=""
6256ustinc=""
6257
6258
6259# Check whether --with-ust was given.
6260if test "${with_ust+set}" = set; then :
6261 withval=$with_ust;
6262fi
6263
6264
6265# Check whether --with-ust_include was given.
6266if test "${with_ust_include+set}" = set; then :
6267 withval=$with_ust_include;
6268fi
6269
6270
6271# Check whether --with-ust_lib was given.
6272if test "${with_ust_lib+set}" = set; then :
6273 withval=$with_ust_lib;
6274fi
6275
6276
6277case $with_ust in
6278 no)
6279 ustlibs=
6280 ustinc=
6281 ;;
6282 "" | yes)
6283 ustlibs=" -lust "
6284 ustinc=""
6285 ;;
6286 *)
6287 ustlibs="-L$with_ust/lib -lust"
6288 ustinc="-I$with_ust/include "
6289 ;;
6290esac
6291if test "x$with_ust_include" != x; then
6292 ustinc="-I$with_ust_include "
6293fi
6294if test "x$with_ust_lib" != x; then
6295 ustlibs="-L$with_ust_lib -lust"
6296fi
6297
6298if test "x$with_ust" != "xno"; then
6299 saved_CFLAGS="$CFLAGS"
6300 CFLAGS="$CFLAGS $ustinc"
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
6302$as_echo_n "checking for ust... " >&6; }
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304/* end confdefs.h. */
6305
6306#define CONFIG_UST_GDB_INTEGRATION
6307#include <ust/ust.h>
6308
6309int
6310main ()
6311{
6312
6313 ;
6314 return 0;
6315}
6316_ACEOF
6317if ac_fn_c_try_compile "$LINENO"; then :
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6319$as_echo "yes" >&6; };
6320$as_echo "#define HAVE_UST 1" >>confdefs.h
6321
6322else
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324$as_echo "no" >&6; }; ustlibs= ; ustinc=
6325fi
6326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327 CFLAGS="$saved_CFLAGS"
6328fi
6329
6330# Flags needed for UST
6331
6332
6333
8f13a3ce 6334
d4596a3d
PA
6335# Check whether --enable-werror was given.
6336if test "${enable_werror+set}" = set; then :
6337 enableval=$enable_werror; case "${enableval}" in
6338 yes | y) ERROR_ON_WARNING="yes" ;;
6339 no | n) ERROR_ON_WARNING="no" ;;
6340 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
6341 esac
6342fi
6343
6344
9a084706 6345# Enable -Werror by default when using gcc. Turn it off for releases.
8f13a3ce 6346if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
d4596a3d
PA
6347 ERROR_ON_WARNING=yes
6348fi
6349
6350WERROR_CFLAGS=""
6351if test "${ERROR_ON_WARNING}" = yes ; then
6352 WERROR_CFLAGS="-Werror"
6353fi
6354
8f13a3ce 6355# These options work in either C or C++ modes.
aac331e4 6356build_warnings="-Wall -Wpointer-arith \
8f13a3ce
MF
6357-Wno-unused -Wunused-value -Wunused-function \
6358-Wno-switch -Wno-char-subscripts \
6359-Wempty-body"
d4596a3d 6360
3bc3d82a
PA
6361# Now add in C and C++ specific options, depending on mode.
6362if test "$enable_build_with_cxx" = "yes"; then
6363 build_warnings="$build_warnings -Wno-sign-compare -Wno-write-strings \
6364-Wno-narrowing"
aac331e4 6365else
8f13a3ce
MF
6366 build_warnings="$build_warnings -Wpointer-sign -Wmissing-prototypes \
6367-Wdeclaration-after-statement -Wmissing-parameter-type \
6368-Wold-style-declaration -Wold-style-definition"
6369fi
6370
6371# Enable -Wno-format by default when using gcc on mingw since many
6372# GCC versions complain about %I64.
6373case "${host}" in
6374 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
6375 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
6376esac
6377
6378# Check whether --enable-build-warnings was given.
6379if test "${enable_build_warnings+set}" = set; then :
6380 enableval=$enable_build_warnings; case "${enableval}" in
6381 yes) ;;
6382 no) build_warnings="-w";;
6383 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6384 build_warnings="${build_warnings} ${t}";;
6385 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6386 build_warnings="${t} ${build_warnings}";;
6387 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6388esac
6389if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
6390 echo "Setting compiler warning flags = $build_warnings" 6>&1
6391fi
6392fi
6393# Check whether --enable-gdb-build-warnings was given.
6394if test "${enable_gdb_build_warnings+set}" = set; then :
6395 enableval=$enable_gdb_build_warnings; case "${enableval}" in
6396 yes) ;;
6397 no) build_warnings="-w";;
6398 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6399 build_warnings="${build_warnings} ${t}";;
6400 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6401 build_warnings="${t} ${build_warnings}";;
6402 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6403esac
6404if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
6405 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
6406fi
3bc3d82a
PA
6407fi
6408
6409# The set of warnings supported by a C++ compiler is not the same as
6410# of the C compiler.
6411if test "$enable_build_with_cxx" = "yes"; then
6412 ac_ext=cpp
6413ac_cpp='$CXXCPP $CPPFLAGS'
6414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6417
6418fi
6419
d4596a3d 6420WARN_CFLAGS=""
8f13a3ce 6421if test "x${build_warnings}" != x -a "x$GCC" = xyes
d4596a3d
PA
6422then
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
6424$as_echo_n "checking compiler warning flags... " >&6; }
6425 # Separate out the -Werror flag as some files just cannot be
6426 # compiled with it enabled.
6427 for w in ${build_warnings}; do
7544db95
PA
6428 # GCC does not complain about -Wno-unknown-warning. Invert
6429 # and test -Wunknown-warning instead.
6430 case $w in
6431 -Wno-*)
6432 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
6433 *)
6434 wtest=$w ;;
6435 esac
6436
d4596a3d
PA
6437 case $w in
6438 -Werr*) WERROR_CFLAGS=-Werror ;;
3bc3d82a
PA
6439 *)
6440 # Check whether GCC accepts it.
d4596a3d 6441 saved_CFLAGS="$CFLAGS"
7544db95 6442 CFLAGS="$CFLAGS $wtest"
3bc3d82a 6443 saved_CXXFLAGS="$CXXFLAGS"
7544db95 6444 CXXFLAGS="$CXXFLAGS $wtest"
54019719 6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d4596a3d
PA
6446/* end confdefs.h. */
6447
6448int
6449main ()
6450{
6451
6452 ;
6453 return 0;
6454}
6455_ACEOF
3bc3d82a 6456if ac_fn_cxx_try_compile "$LINENO"; then :
d4596a3d
PA
6457 WARN_CFLAGS="${WARN_CFLAGS} $w"
6458fi
6459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460 CFLAGS="$saved_CFLAGS"
3bc3d82a 6461 CXXFLAGS="$saved_CXXFLAGS"
d4596a3d
PA
6462 esac
6463 done
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
6465$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
6466fi
6467
6468
6469
3bc3d82a
PA
6470if test "$enable_build_with_cxx" = "yes"; then
6471 ac_ext=c
6472ac_cpp='$CPP $CPPFLAGS'
6473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6475ac_compiler_gnu=$ac_cv_c_compiler_gnu
6476
6477fi
6478
8f13a3ce
MF
6479case " $WARN_CFLAGS " in
6480*" -Wmissing-prototypes "*)
6481 WARN_CFLAGS="$WARN_CFLAGS -Wno-missing-prototypes"
6482 ;;
6483esac
6484
10e86dd7
DE
6485old_LIBS="$LIBS"
6486LIBS="$LIBS -ldl"
6487for ac_func in dladdr
6488do :
6489 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
6490if test "x$ac_cv_func_dladdr" = x""yes; then :
6491 cat >>confdefs.h <<_ACEOF
6492#define HAVE_DLADDR 1
6493_ACEOF
6494
6495fi
6496done
6497
6498LIBS="$old_LIBS"
6499
07697489
PA
6500
6501 # Check for presence and size of long long.
6502 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6503if test "x$ac_cv_type_long_long" = x""yes; then :
6504
6505cat >>confdefs.h <<_ACEOF
6506#define HAVE_LONG_LONG 1
6507_ACEOF
6508
6509# The cast to long int works around a bug in the HP C Compiler
6510# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6511# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6512# This bug is HP SR number 8606223364.
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6514$as_echo_n "checking size of long long... " >&6; }
6515if test "${ac_cv_sizeof_long_long+set}" = set; then :
6516 $as_echo_n "(cached) " >&6
6517else
6518 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6519
6520else
6521 if test "$ac_cv_type_long_long" = yes; then
6522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6524{ as_fn_set_status 77
6525as_fn_error "cannot compute sizeof (long long)
6526See \`config.log' for more details." "$LINENO" 5; }; }
6527 else
6528 ac_cv_sizeof_long_long=0
6529 fi
6530fi
6531
6532fi
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6534$as_echo "$ac_cv_sizeof_long_long" >&6; }
6535
6536
6537
6538cat >>confdefs.h <<_ACEOF
6539#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6540_ACEOF
6541
6542
6543fi
6544
6545
6546 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
6547if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
6548 ac_have_decl=1
6549else
6550 ac_have_decl=0
6551fi
6552
6553cat >>confdefs.h <<_ACEOF
6554#define HAVE_DECL_BASENAME $ac_have_decl
6555_ACEOF
6556ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
6557if test "x$ac_cv_have_decl_ffs" = x""yes; then :
6558 ac_have_decl=1
6559else
6560 ac_have_decl=0
6561fi
6562
6563cat >>confdefs.h <<_ACEOF
6564#define HAVE_DECL_FFS $ac_have_decl
6565_ACEOF
6566ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
6567if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
6568 ac_have_decl=1
6569else
6570 ac_have_decl=0
6571fi
6572
6573cat >>confdefs.h <<_ACEOF
6574#define HAVE_DECL_ASPRINTF $ac_have_decl
6575_ACEOF
6576ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6577if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
6578 ac_have_decl=1
6579else
6580 ac_have_decl=0
6581fi
6582
6583cat >>confdefs.h <<_ACEOF
6584#define HAVE_DECL_VASPRINTF $ac_have_decl
6585_ACEOF
6586ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
6587if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
6588 ac_have_decl=1
6589else
6590 ac_have_decl=0
6591fi
6592
6593cat >>confdefs.h <<_ACEOF
6594#define HAVE_DECL_SNPRINTF $ac_have_decl
6595_ACEOF
6596ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
6597if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
6598 ac_have_decl=1
6599else
6600 ac_have_decl=0
6601fi
6602
6603cat >>confdefs.h <<_ACEOF
6604#define HAVE_DECL_VSNPRINTF $ac_have_decl
6605_ACEOF
6606
6607 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
6608if test "x$ac_cv_have_decl_strtol" = x""yes; then :
6609 ac_have_decl=1
6610else
6611 ac_have_decl=0
6612fi
6613
6614cat >>confdefs.h <<_ACEOF
6615#define HAVE_DECL_STRTOL $ac_have_decl
6616_ACEOF
6617ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
6618if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
6619 ac_have_decl=1
6620else
6621 ac_have_decl=0
6622fi
6623
6624cat >>confdefs.h <<_ACEOF
6625#define HAVE_DECL_STRTOUL $ac_have_decl
6626_ACEOF
6627ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
6628if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
6629 ac_have_decl=1
6630else
6631 ac_have_decl=0
6632fi
6633
6634cat >>confdefs.h <<_ACEOF
6635#define HAVE_DECL_STRTOLL $ac_have_decl
6636_ACEOF
6637ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
6638if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
6639 ac_have_decl=1
6640else
6641 ac_have_decl=0
6642fi
6643
6644cat >>confdefs.h <<_ACEOF
6645#define HAVE_DECL_STRTOULL $ac_have_decl
6646_ACEOF
6647
6648 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
6649if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
6650 ac_have_decl=1
6651else
6652 ac_have_decl=0
6653fi
6654
6655cat >>confdefs.h <<_ACEOF
6656#define HAVE_DECL_STRVERSCMP $ac_have_decl
6657_ACEOF
6658
6659
6660
81ecdfbb
RW
6661ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
6662if test "x$ac_cv_have_decl_strerror" = x""yes; then :
6663 ac_have_decl=1
6664else
6665 ac_have_decl=0
6666fi
f450004a 6667
81ecdfbb
RW
6668cat >>confdefs.h <<_ACEOF
6669#define HAVE_DECL_STRERROR $ac_have_decl
6670_ACEOF
6671ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
6672if test "x$ac_cv_have_decl_perror" = x""yes; then :
6673 ac_have_decl=1
6674else
6675 ac_have_decl=0
f450004a 6676fi
81ecdfbb
RW
6677
6678cat >>confdefs.h <<_ACEOF
6679#define HAVE_DECL_PERROR $ac_have_decl
6680_ACEOF
bb0116a4
JB
6681ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6682if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
6683 ac_have_decl=1
6684else
6685 ac_have_decl=0
6686fi
6687
6688cat >>confdefs.h <<_ACEOF
6689#define HAVE_DECL_VASPRINTF $ac_have_decl
6690_ACEOF
6691ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
6692if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
6693 ac_have_decl=1
6694else
6695 ac_have_decl=0
6696fi
6697
6698cat >>confdefs.h <<_ACEOF
6699#define HAVE_DECL_VSNPRINTF $ac_have_decl
6700_ACEOF
81ecdfbb
RW
6701
6702
791c0056
GB
6703ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6704if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6705
6706cat >>confdefs.h <<_ACEOF
6707#define HAVE_STRUCT_STAT_ST_BLOCKS 1
6708_ACEOF
6709
6710
6711fi
6712ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6713if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6714
6715cat >>confdefs.h <<_ACEOF
6716#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6717_ACEOF
6718
6719
6720fi
6721
6722
81ecdfbb
RW
6723ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6724#include <sys/socket.h>
6725
6726"
6727if test "x$ac_cv_type_socklen_t" = x""yes; then :
f450004a 6728
ccbd4912 6729cat >>confdefs.h <<_ACEOF
f450004a
DJ
6730#define HAVE_SOCKLEN_T 1
6731_ACEOF
6732
f450004a 6733
ccbd4912 6734fi
f450004a 6735
fb1e4ffc 6736
64da5dd5
JB
6737case "${target}" in
6738 *-android*)
6739 # Starting with NDK version 9, <elf.h> actually includes definitions
6740 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
6741 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
6742 # leading to conflicts with the defintions from <linux/elf.h>.
6743 # This makes it impossible for us to include both <elf.h> and
6744 # <linux/elf.h>, which means that, in practice, we do not have
6745 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
6746 # Therefore, do not try to auto-detect availability, as it would
6747 # get it wrong on this platform.
6748 ;;
6749 *)
6750 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h>
8365dcf5
TJB
6751
6752"
6753if test "x$ac_cv_type_Elf32_auxv_t" = x""yes; then :
6754
6755cat >>confdefs.h <<_ACEOF
6756#define HAVE_ELF32_AUXV_T 1
6757_ACEOF
6758
6759
6760fi
6761ac_fn_c_check_type "$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h>
6762
6763"
6764if test "x$ac_cv_type_Elf64_auxv_t" = x""yes; then :
6765
6766cat >>confdefs.h <<_ACEOF
6767#define HAVE_ELF64_AUXV_T 1
6768_ACEOF
6769
6770
6771fi
6772
64da5dd5 6773esac
8365dcf5 6774
c16158bc
JM
6775
6776
81ecdfbb
RW
6777# Check whether --with-pkgversion was given.
6778if test "${with_pkgversion+set}" = set; then :
6779 withval=$with_pkgversion; case "$withval" in
6780 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
c16158bc
JM
6781 no) PKGVERSION= ;;
6782 *) PKGVERSION="($withval) " ;;
6783 esac
6784else
6785 PKGVERSION="(GDB) "
6786
81ecdfbb
RW
6787fi
6788
c16158bc
JM
6789
6790
6791
6792
81ecdfbb
RW
6793# Check whether --with-bugurl was given.
6794if test "${with_bugurl+set}" = set; then :
6795 withval=$with_bugurl; case "$withval" in
6796 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
c16158bc
JM
6797 no) BUGURL=
6798 ;;
6799 *) BUGURL="$withval"
6800 ;;
6801 esac
6802else
6803 BUGURL="http://www.gnu.org/software/gdb/bugs/"
6804
81ecdfbb
RW
6805fi
6806
c16158bc
JM
6807 case ${BUGURL} in
6808 "")
6809 REPORT_BUGS_TO=
6810 REPORT_BUGS_TEXI=
6811 ;;
6812 *)
6813 REPORT_BUGS_TO="<$BUGURL>"
6814 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6815 ;;
6816 esac;
6817
6818
6819
6820
6821cat >>confdefs.h <<_ACEOF
6822#define PKGVERSION "$PKGVERSION"
6823_ACEOF
6824
6825
6826cat >>confdefs.h <<_ACEOF
6827#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6828_ACEOF
6829
6830
8838b45e
NS
6831# Check for various supplementary target information (beyond the
6832# triplet) which might affect the choices in configure.srv.
6833case "${target}" in
6834 i[34567]86-*-linux*)
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
6836$as_echo_n "checking if building for x86-64... " >&6; }
6837if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
6838 $as_echo_n "(cached) " >&6
6839else
6840 save_CPPFLAGS="$CPPFLAGS"
6841 CPPFLAGS="$CPPFLAGS $CFLAGS"
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843/* end confdefs.h. */
6844
6845#if __x86_64__
6846got it
6847#endif
6848
6849_ACEOF
6850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6851 $EGREP "got it" >/dev/null 2>&1; then :
6852 gdb_cv_i386_is_x86_64=yes
6853else
6854 gdb_cv_i386_is_x86_64=no
6855fi
6856rm -f conftest*
6857
6858 CPPFLAGS="$save_CPPFLAGS"
6859fi
6860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
6861$as_echo "$gdb_cv_i386_is_x86_64" >&6; }
6862 ;;
9ac544ce
MK
6863 m68k-*-*)
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
6865$as_echo_n "checking if building for Coldfire... " >&6; }
6866if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
6867 $as_echo_n "(cached) " >&6
6868else
6869 save_CPPFLAGS="$CPPFLAGS"
6870 CPPFLAGS="$CPPFLAGS $CFLAGS"
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872/* end confdefs.h. */
6873
6874#ifdef __mcoldfire__
6875got it
6876#endif
6877
6878_ACEOF
6879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6880 $EGREP "got it" >/dev/null 2>&1; then :
6881 gdb_cv_m68k_is_coldfire=yes
6882else
6883 gdb_cv_m68k_is_coldfire=no
6884fi
6885rm -f conftest*
6886
6887 CPPFLAGS="$save_CPPFLAGS"
6888fi
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
6890$as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
6891 ;;
8838b45e
NS
6892esac
6893
7ea81414 6894. ${srcdir}/configure.srv
d6e9fb05 6895
fb23d554
SDJ
6896# Add in the common host objects.
6897. ${srcdir}/../common/common.host
6898srv_host_obs="$common_host_obs"
6899
68070c10
PA
6900if test "${srv_mingwce}" = "yes"; then
6901 LIBS="$LIBS -lws2"
6902elif test "${srv_mingw}" = "yes"; then
12ea4b69 6903 LIBS="$LIBS -lws2_32"
ac8c974e
AR
6904elif test "${srv_qnx}" = "yes"; then
6905 LIBS="$LIBS -lsocket"
8ed54b31
JB
6906elif test "${srv_lynxos}" = "yes"; then
6907 LIBS="$LIBS -lnetinet"
68070c10
PA
6908fi
6909
6910if test "${srv_mingw}" = "yes"; then
b80864fb 6911
81ecdfbb 6912$as_echo "#define USE_WIN32API 1" >>confdefs.h
b80864fb
DJ
6913
6914fi
6915
58caa3dc 6916if test "${srv_linux_usrregs}" = "yes"; then
f450004a 6917
81ecdfbb 6918$as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
58caa3dc
DJ
6919
6920fi
6921
6922if test "${srv_linux_regsets}" = "yes"; then
e9d25b98 6923
81ecdfbb 6924$as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
e9d25b98
DJ
6925
6926
81ecdfbb
RW
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
6928$as_echo_n "checking for PTRACE_GETREGS... " >&6; }
6929 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
6930 $as_echo_n "(cached) " >&6
bec39cab 6931else
81ecdfbb 6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 6933/* end confdefs.h. */
58caa3dc 6934#include <sys/ptrace.h>
bec39cab
AC
6935int
6936main ()
6937{
58caa3dc 6938PTRACE_GETREGS;
bec39cab
AC
6939 ;
6940 return 0;
6941}
6942_ACEOF
81ecdfbb 6943if ac_fn_c_try_compile "$LINENO"; then :
58caa3dc
DJ
6944 gdbsrv_cv_have_ptrace_getregs=yes
6945else
81ecdfbb 6946 gdbsrv_cv_have_ptrace_getregs=no
58caa3dc 6947fi
81ecdfbb 6948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
6949fi
6950
81ecdfbb
RW
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
6952$as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
58caa3dc 6953 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
f450004a 6954
81ecdfbb 6955$as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
58caa3dc
DJ
6956
6957 fi
6958
81ecdfbb
RW
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
6960$as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
6961 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
6962 $as_echo_n "(cached) " >&6
58caa3dc 6963else
81ecdfbb 6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 6965/* end confdefs.h. */
58caa3dc 6966#include <sys/ptrace.h>
bec39cab
AC
6967int
6968main ()
6969{
58caa3dc 6970PTRACE_GETFPXREGS;
bec39cab
AC
6971 ;
6972 return 0;
6973}
6974_ACEOF
81ecdfbb 6975if ac_fn_c_try_compile "$LINENO"; then :
58caa3dc
DJ
6976 gdbsrv_cv_have_ptrace_getfpxregs=yes
6977else
81ecdfbb 6978 gdbsrv_cv_have_ptrace_getfpxregs=no
58caa3dc 6979fi
81ecdfbb 6980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
6981fi
6982
81ecdfbb
RW
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
6984$as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
58caa3dc 6985 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
f450004a 6986
81ecdfbb 6987$as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
58caa3dc
DJ
6988
6989 fi
6990fi
6991
9accd112
MM
6992if test "${srv_linux_btrace}" = "yes"; then
6993
6994$as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
6995
6996fi
6997
0d62e5e8 6998if test "$ac_cv_header_sys_procfs_h" = yes; then
81ecdfbb
RW
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
7000$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
7001 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
7002 $as_echo_n "(cached) " >&6
0d62e5e8 7003else
81ecdfbb 7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 7005/* end confdefs.h. */
0d62e5e8
DJ
7006
7007#define _SYSCALL32
8e642873
PM
7008/* Needed for new procfs interface on sparc-solaris. */
7009#define _STRUCTURED_PROC 1
0d62e5e8 7010#include <sys/procfs.h>
bec39cab
AC
7011int
7012main ()
7013{
0d62e5e8 7014lwpid_t avar
bec39cab
AC
7015 ;
7016 return 0;
7017}
7018_ACEOF
81ecdfbb 7019if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
7020 bfd_cv_have_sys_procfs_type_lwpid_t=yes
7021else
81ecdfbb 7022 bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 7023
0d62e5e8 7024fi
81ecdfbb 7025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
7026fi
7027
7028 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab 7029
81ecdfbb 7030$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
0d62e5e8
DJ
7031
7032 fi
81ecdfbb
RW
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
7034$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
0d62e5e8 7035
81ecdfbb
RW
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
7037$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
7038 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
7039 $as_echo_n "(cached) " >&6
0d62e5e8 7040else
81ecdfbb 7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 7042/* end confdefs.h. */
0d62e5e8
DJ
7043
7044#define _SYSCALL32
8e642873
PM
7045/* Needed for new procfs interface on sparc-solaris. */
7046#define _STRUCTURED_PROC 1
0d62e5e8 7047#include <sys/procfs.h>
bec39cab
AC
7048int
7049main ()
7050{
0d62e5e8 7051psaddr_t avar
bec39cab
AC
7052 ;
7053 return 0;
7054}
7055_ACEOF
81ecdfbb 7056if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
7057 bfd_cv_have_sys_procfs_type_psaddr_t=yes
7058else
81ecdfbb 7059 bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 7060
0d62e5e8 7061fi
81ecdfbb 7062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
7063fi
7064
7065 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab 7066
81ecdfbb 7067$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
0d62e5e8
DJ
7068
7069 fi
81ecdfbb
RW
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
7071$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
0d62e5e8 7072
81ecdfbb
RW
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
7074$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
7075 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
7076 $as_echo_n "(cached) " >&6
0d62e5e8 7077else
81ecdfbb 7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 7079/* end confdefs.h. */
0d62e5e8
DJ
7080
7081#define _SYSCALL32
8e642873
PM
7082/* Needed for new procfs interface on sparc-solaris. */
7083#define _STRUCTURED_PROC 1
0d62e5e8 7084#include <sys/procfs.h>
bec39cab
AC
7085int
7086main ()
7087{
0d62e5e8 7088prgregset_t avar
bec39cab
AC
7089 ;
7090 return 0;
7091}
7092_ACEOF
81ecdfbb 7093if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
7094 bfd_cv_have_sys_procfs_type_prgregset_t=yes
7095else
81ecdfbb 7096 bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 7097
0d62e5e8 7098fi
81ecdfbb 7099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
7100fi
7101
7102 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab 7103
81ecdfbb 7104$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
0d62e5e8
DJ
7105
7106 fi
81ecdfbb
RW
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
7108$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
0d62e5e8 7109
1041a03c
JB
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
7111$as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
7112 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
7113 $as_echo_n "(cached) " >&6
7114else
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116/* end confdefs.h. */
7117
7118#define _SYSCALL32
7119/* Needed for new procfs interface on sparc-solaris. */
7120#define _STRUCTURED_PROC 1
7121#include <sys/procfs.h>
7122int
7123main ()
7124{
7125prfpregset_t avar
7126 ;
7127 return 0;
7128}
7129_ACEOF
7130if ac_fn_c_try_compile "$LINENO"; then :
7131 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
7132else
7133 bfd_cv_have_sys_procfs_type_prfpregset_t=no
7134
7135fi
7136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137fi
7138
7139 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7140
7141$as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
7142
7143 fi
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
7145$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
7146
81ecdfbb
RW
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
7148$as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
7149 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
7150 $as_echo_n "(cached) " >&6
0d62e5e8 7151else
81ecdfbb 7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 7153/* end confdefs.h. */
0d62e5e8
DJ
7154
7155#define _SYSCALL32
8e642873
PM
7156/* Needed for new procfs interface on sparc-solaris. */
7157#define _STRUCTURED_PROC 1
0d62e5e8 7158#include <sys/procfs.h>
bec39cab
AC
7159int
7160main ()
7161{
0d62e5e8 7162elf_fpregset_t avar
bec39cab
AC
7163 ;
7164 return 0;
7165}
7166_ACEOF
81ecdfbb 7167if ac_fn_c_try_compile "$LINENO"; then :
0d62e5e8
DJ
7168 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
7169else
81ecdfbb 7170 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
bec39cab 7171
0d62e5e8 7172fi
81ecdfbb 7173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
7174fi
7175
7176 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
bec39cab 7177
81ecdfbb 7178$as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
0d62e5e8
DJ
7179
7180 fi
81ecdfbb
RW
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
7182$as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
0d62e5e8
DJ
7183
7184fi
7185
18f5fd81
TJB
7186if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
7188$as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
7189 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
7190 $as_echo_n "(cached) " >&6
7191else
7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193/* end confdefs.h. */
7194
7195#include <thread_db.h>
7196int
7197main ()
7198{
7199lwpid_t avar
7200 ;
7201 return 0;
7202}
7203_ACEOF
7204if ac_fn_c_try_compile "$LINENO"; then :
7205 gdbserver_cv_have_thread_db_type_lwpid_t=yes
7206else
7207 gdbserver_cv_have_thread_db_type_lwpid_t=no
7208
7209fi
7210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7211fi
7212
7213 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
7214
7215$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
7216
7217 fi
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
7219$as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
7220
7221fi
7222
7223if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
7225$as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
7226 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
7227 $as_echo_n "(cached) " >&6
7228else
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230/* end confdefs.h. */
7231
7232#include <thread_db.h>
7233int
7234main ()
7235{
7236psaddr_t avar
7237 ;
7238 return 0;
7239}
7240_ACEOF
7241if ac_fn_c_try_compile "$LINENO"; then :
7242 gdbserver_cv_have_thread_db_type_psaddr_t=yes
7243else
7244 gdbserver_cv_have_thread_db_type_psaddr_t=no
7245
7246fi
7247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248fi
7249
7250 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
7251
7252$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
7253
7254 fi
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
7256$as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
7257
7258fi
7259
193f13e6
MK
7260old_LIBS="$LIBS"
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7262$as_echo_n "checking for dlopen in -ldl... " >&6; }
7263if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7265else
7266 ac_check_lib_save_LIBS=$LIBS
7267LIBS="-ldl $LIBS"
7268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269/* end confdefs.h. */
7270
7271/* Override any GCC internal prototype to avoid an error.
7272 Use char because int might match the return type of a GCC
7273 builtin and then its argument prototype would still apply. */
7274#ifdef __cplusplus
7275extern "C"
7276#endif
7277char dlopen ();
7278int
7279main ()
7280{
7281return dlopen ();
7282 ;
7283 return 0;
7284}
7285_ACEOF
7286if ac_fn_c_try_link "$LINENO"; then :
7287 ac_cv_lib_dl_dlopen=yes
7288else
7289 ac_cv_lib_dl_dlopen=no
7290fi
7291rm -f core conftest.err conftest.$ac_objext \
7292 conftest$ac_exeext conftest.$ac_ext
7293LIBS=$ac_check_lib_save_LIBS
7294fi
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7296$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7297if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
7298 cat >>confdefs.h <<_ACEOF
7299#define HAVE_LIBDL 1
7300_ACEOF
7301
7302 LIBS="-ldl $LIBS"
7303
7304fi
7305
7306LIBS="$old_LIBS"
7307
0d62e5e8
DJ
7308srv_thread_depfiles=
7309srv_libs=
0d62e5e8
DJ
7310
7311if test "$srv_linux_thread_db" = "yes"; then
193f13e6
MK
7312 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
7313 srv_libs="-ldl"
f6528abd
JK
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
7315$as_echo_n "checking for the dynamic export flag... " >&6; }
193f13e6 7316 old_LDFLAGS="$LDFLAGS"
f6528abd
JK
7317 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
7318 # supported there.
7319 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
7320 LDFLAGS="$LDFLAGS $RDYNAMIC"
193f13e6 7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
7322/* end confdefs.h. */
7323
7324int
7325main ()
7326{
7327
7328 ;
7329 return 0;
7330}
7331_ACEOF
81ecdfbb 7332if ac_fn_c_try_link "$LINENO"; then :
f6528abd
JK
7333 found="-Wl,--dynamic-list"
7334 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
f6de3c42 7335else
f6528abd
JK
7336 RDYNAMIC="-rdynamic"
7337 LDFLAGS="$old_LDFLAGS $RDYNAMIC"
7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339/* end confdefs.h. */
7340
7341int
7342main ()
7343{
7344
7345 ;
7346 return 0;
7347}
7348_ACEOF
7349if ac_fn_c_try_link "$LINENO"; then :
7350 found="-rdynamic"
7351else
7352 found="no"
7353 RDYNAMIC=""
770d76d7
PA
7354fi
7355rm -f core conftest.err conftest.$ac_objext \
7356 conftest$ac_exeext conftest.$ac_ext
7357fi
7358rm -f core conftest.err conftest.$ac_objext \
7359 conftest$ac_exeext conftest.$ac_ext
7360
7361 LDFLAGS="$old_LDFLAGS"
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
7363$as_echo "$found" >&6; }
7364 else
7365 srv_libs="-lthread_db"
7366 fi
55a8c076 7367
770d76d7 7368 srv_thread_depfiles="thread-db.o proc-service.o"
7d4e5717
PA
7369
7370$as_echo "#define USE_THREAD_DB 1" >>confdefs.h
7371
770d76d7
PA
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
7373$as_echo_n "checking for TD_VERSION... " >&6; }
7374if test "${gdbsrv_cv_have_td_version+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
7376else
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378/* end confdefs.h. */
7379#include <thread_db.h>
55a8c076
YQ
7380int
7381main ()
7382{
770d76d7 7383TD_VERSION;
c9a1864a
YQ
7384 ;
7385 return 0;
7386}
7387_ACEOF
55a8c076 7388if ac_fn_c_try_compile "$LINENO"; then :
770d76d7 7389 gdbsrv_cv_have_td_version=yes
c9a1864a 7390else
770d76d7
PA
7391 gdbsrv_cv_have_td_version=no
7392fi
7393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394fi
7395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
7396$as_echo "$gdbsrv_cv_have_td_version" >&6; }
7397 if test $gdbsrv_cv_have_td_version = yes; then
c9a1864a 7398
770d76d7 7399$as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
55a8c076 7400
770d76d7
PA
7401 fi
7402fi
c9a1864a
YQ
7403
7404
770d76d7
PA
7405# Check whether --with-libthread-db was given.
7406if test "${with_libthread_db+set}" = set; then :
7407 withval=$with_libthread_db; srv_libthread_db_path="${withval}"
7408 srv_libs="$srv_libthread_db_path"
c9a1864a 7409
770d76d7 7410fi
c9a1864a
YQ
7411
7412
770d76d7 7413if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
c9a1864a 7414
770d76d7 7415$as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
c9a1864a 7416
55a8c076 7417fi
c9a1864a 7418
770d76d7
PA
7419if test "$srv_xmlfiles" != ""; then
7420 srv_xmlbuiltin="xml-builtin.o"
c9a1864a 7421
770d76d7 7422$as_echo "#define USE_XML 1" >>confdefs.h
c9a1864a 7423
c9a1864a 7424
770d76d7
PA
7425 tmp_xmlfiles=$srv_xmlfiles
7426 srv_xmlfiles=""
7427 for f in $tmp_xmlfiles; do
7428 srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
7429 done
c9a1864a
YQ
7430fi
7431
fb23d554 7432GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs"
770d76d7 7433GDBSERVER_LIBS="$srv_libs"
c9a1864a 7434
770d76d7
PA
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
7436$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
7437if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
7438 $as_echo_n "(cached) " >&6
7439else
c9a1864a 7440
770d76d7
PA
7441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442/* end confdefs.h. */
c9a1864a 7443
770d76d7
PA
7444int
7445main ()
7446{
7447int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
7448 ;
7449 return 0;
7450}
7451_ACEOF
7452if ac_fn_c_try_link "$LINENO"; then :
7453 gdbsrv_cv_have_sync_builtins=yes
7454else
c971b7fa 7455 gdbsrv_cv_have_sync_builtins=no
c9a1864a 7456fi
c971b7fa
PA
7457rm -f core conftest.err conftest.$ac_objext \
7458 conftest$ac_exeext conftest.$ac_ext
c9a1864a 7459fi
c971b7fa
PA
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
7461$as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
7462if test $gdbsrv_cv_have_sync_builtins = yes; then
7463
7464$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
7465
c9a1864a
YQ
7466fi
7467
c971b7fa
PA
7468saved_cflags="$CFLAGS"
7469CFLAGS="$CFLAGS -fvisibility=hidden"
7470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471/* end confdefs.h. */
c9a1864a 7472
c971b7fa
PA
7473int
7474main ()
7475{
c9a1864a 7476
c971b7fa
PA
7477 ;
7478 return 0;
7479}
c9a1864a 7480_ACEOF
c971b7fa
PA
7481if ac_fn_c_try_compile "$LINENO"; then :
7482 gdbsrv_cv_have_visibility_hidden=yes
7483else
7484 gdbsrv_cv_have_visibility_hidden=no
c9a1864a 7485fi
c971b7fa
PA
7486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7487CFLAGS="$saved_cflags"
7488
7489ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
7490"
7491if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
7492 ac_have_decl=1
c9a1864a 7493else
c971b7fa 7494 ac_have_decl=0
c9a1864a
YQ
7495fi
7496
c971b7fa
PA
7497cat >>confdefs.h <<_ACEOF
7498#define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
7499_ACEOF
c9a1864a 7500
c9a1864a 7501
c971b7fa
PA
7502if test "$cross_compiling" = yes; then :
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504/* end confdefs.h. */
7505#include <sys/personality.h>
7506int
7507main ()
7508{
fb1e4ffc 7509
c971b7fa
PA
7510# if !HAVE_DECL_ADDR_NO_RANDOMIZE
7511# define ADDR_NO_RANDOMIZE 0x0040000
7512# endif
7513 /* Test the flag could be set and stays set. */
7514 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7515 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7516 return 1
7517 ;
7518 return 0;
7519}
7520_ACEOF
7521if ac_fn_c_try_link "$LINENO"; then :
7522 gdbsrv_cv_have_personality=true
fa593d66 7523else
c971b7fa 7524 gdbsrv_cv_have_personality=false
c9a1864a 7525fi
c971b7fa
PA
7526rm -f core conftest.err conftest.$ac_objext \
7527 conftest$ac_exeext conftest.$ac_ext
7528else
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530/* end confdefs.h. */
7531#include <sys/personality.h>
7532int
7533main ()
7534{
fa593d66 7535
c971b7fa
PA
7536# if !HAVE_DECL_ADDR_NO_RANDOMIZE
7537# define ADDR_NO_RANDOMIZE 0x0040000
7538# endif
7539 /* Test the flag could be set and stays set. */
7540 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7541 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7542 return 1
7543 ;
7544 return 0;
7545}
7546_ACEOF
7547if ac_fn_c_try_run "$LINENO"; then :
7548 gdbsrv_cv_have_personality=true
7549else
7550 gdbsrv_cv_have_personality=false
fa593d66 7551fi
c971b7fa
PA
7552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7553 conftest.$ac_objext conftest.beam conftest.$ac_ext
fa593d66 7554fi
fa593d66 7555
c971b7fa
PA
7556if $gdbsrv_cv_have_personality
7557then
fa593d66 7558
c971b7fa 7559$as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
03583c20 7560
c971b7fa 7561fi
03583c20 7562
03583c20 7563
c971b7fa
PA
7564IPA_DEPFILES=""
7565extra_libraries=""
c2a66c29 7566
c971b7fa
PA
7567# check whether to enable the inprocess agent
7568if test "$ipa_obj" != "" \
7569 -a "$gdbsrv_cv_have_sync_builtins" = yes \
7570 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
7571 have_ipa=true
7572else
7573 have_ipa=false
7574fi
fa593d66 7575
c971b7fa
PA
7576# Check whether --enable-inprocess-agent was given.
7577if test "${enable_inprocess_agent+set}" = set; then :
7578 enableval=$enable_inprocess_agent; case "$enableval" in
7579 yes) want_ipa=true ;;
7580 no) want_ipa=false ;;
7581 *) as_fn_error "bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
7582esac
7583else
7584 want_ipa=$have_ipa
7585fi
c2a66c29 7586
c9a1864a 7587
c971b7fa
PA
7588if $want_ipa ; then
7589 if $have_ipa ; then
7590 IPA_DEPFILES="$ipa_obj"
7591 extra_libraries="$extra_libraries libinproctrace.so"
7592 else
7593 as_fn_error "inprocess agent not supported for this target" "$LINENO" 5
7594 fi
7595fi
c9a1864a 7596
c9a1864a 7597
c2a66c29
NS
7598
7599
fa593d66
PA
7600
7601
7602
0d62e5e8 7603
c971b7fa 7604GNULIB=build-gnulib-gdbserver/import
d6e9fb05 7605
c9a1864a
YQ
7606GNULIB_STDINT_H=
7607if test x"$STDINT_H" != x; then
c971b7fa 7608 GNULIB_STDINT_H=$GNULIB/$STDINT_H
c9a1864a 7609fi
d6e9fb05 7610
fb1e4ffc 7611
c971b7fa 7612ac_config_files="$ac_config_files Makefile"
81ecdfbb 7613
81ecdfbb 7614
bec39cab 7615cat >confcache <<\_ACEOF
d6e9fb05
JK
7616# This file is a shell script that caches the results of configure
7617# tests run on this system so they can be shared between configure
bec39cab
AC
7618# scripts and configure runs, see configure's option --config-cache.
7619# It is not useful on other systems. If it contains results you don't
7620# want to keep, you may remove or edit it.
d6e9fb05 7621#
bec39cab
AC
7622# config.status only pays attention to the cache file if you give it
7623# the --recheck option to rerun configure.
d6e9fb05 7624#
bec39cab
AC
7625# `ac_cv_env_foo' variables (set or unset) will be overridden when
7626# loading this file, other *unset* `ac_cv_foo' will be assigned the
7627# following values.
7628
7629_ACEOF
7630
d6e9fb05
JK
7631# The following way of writing the cache mishandles newlines in values,
7632# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 7633# So, we kill variables containing newlines.
d6e9fb05
JK
7634# Ultrix sh set writes to stderr and can't be redirected directly,
7635# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
7636(
7637 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7638 eval ac_val=\$$ac_var
7639 case $ac_val in #(
7640 *${as_nl}*)
7641 case $ac_var in #(
7642 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7643$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7644 esac
7645 case $ac_var in #(
7646 _ | IFS | as_nl) ;; #(
7647 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7648 *) { eval $ac_var=; unset $ac_var;} ;;
7649 esac ;;
7650 esac
7651 done
7652
bec39cab 7653 (set) 2>&1 |
81ecdfbb
RW
7654 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7655 *${as_nl}ac_space=\ *)
7656 # `set' does not quote correctly, so add quotes: double-quote
7657 # substitution turns \\\\ into \\, and sed turns \\ into \.
bec39cab
AC
7658 sed -n \
7659 "s/'/'\\\\''/g;
7660 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 7661 ;; #(
bec39cab
AC
7662 *)
7663 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 7664 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 7665 ;;
81ecdfbb
RW
7666 esac |
7667 sort
7668) |
bec39cab 7669 sed '
81ecdfbb 7670 /^ac_cv_env_/b end
bec39cab 7671 t clear
81ecdfbb 7672 :clear
bec39cab
AC
7673 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7674 t end
81ecdfbb
RW
7675 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7676 :end' >>confcache
7677if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7678 if test -w "$cache_file"; then
7679 test "x$cache_file" != "x/dev/null" &&
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7681$as_echo "$as_me: updating cache $cache_file" >&6;}
bec39cab 7682 cat confcache >$cache_file
d6e9fb05 7683 else
81ecdfbb
RW
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7685$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d6e9fb05
JK
7686 fi
7687fi
7688rm -f confcache
7689
d6e9fb05
JK
7690test "x$prefix" = xNONE && prefix=$ac_default_prefix
7691# Let make expand exec_prefix.
7692test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7693
84563040 7694DEFS=-DHAVE_CONFIG_H
d6e9fb05 7695
bec39cab
AC
7696ac_libobjs=
7697ac_ltlibobjs=
7698for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7699 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
7700 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7701 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7702 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7703 # will be set to the directory where LIBOBJS objects are built.
7704 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7705 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
bec39cab
AC
7706done
7707LIBOBJS=$ac_libobjs
d6e9fb05 7708
bec39cab
AC
7709LTLIBOBJS=$ac_ltlibobjs
7710
7711
c9a1864a
YQ
7712if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7713 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7714Usually this means the macro was only invoked conditionally." "$LINENO" 5
7715fi
61c125b9
TT
7716if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
7717 as_fn_error "conditional \"GMAKE\" was never defined.
7718Usually this means the macro was only invoked conditionally." "$LINENO" 5
7719fi
bec39cab
AC
7720
7721: ${CONFIG_STATUS=./config.status}
81ecdfbb 7722ac_write_fail=0
bec39cab
AC
7723ac_clean_files_save=$ac_clean_files
7724ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7726$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7727as_write_fail=0
7728cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
bec39cab
AC
7729#! $SHELL
7730# Generated by $as_me.
d6e9fb05 7731# Run this file to recreate the current configuration.
d6e9fb05 7732# Compiler output produced by configure, useful for debugging
bec39cab
AC
7733# configure, is in config.log if it exists.
7734
7735debug=false
7736ac_cs_recheck=false
7737ac_cs_silent=false
bec39cab 7738
81ecdfbb
RW
7739SHELL=\${CONFIG_SHELL-$SHELL}
7740export SHELL
7741_ASEOF
7742cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7743## -------------------- ##
7744## M4sh Initialization. ##
7745## -------------------- ##
7746
7747# Be more Bourne compatible
7748DUALCASE=1; export DUALCASE # for MKS sh
7749if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bec39cab
AC
7750 emulate sh
7751 NULLCMD=:
81ecdfbb 7752 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bec39cab
AC
7753 # is contrary to our usage. Disable this feature.
7754 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
7755 setopt NO_GLOB_SUBST
7756else
7757 case `(set -o) 2>/dev/null` in #(
7758 *posix*) :
7759 set -o posix ;; #(
7760 *) :
7761 ;;
7762esac
bec39cab 7763fi
d6e9fb05 7764
81ecdfbb
RW
7765
7766as_nl='
7767'
7768export as_nl
7769# Printing a long string crashes Solaris 7 /usr/bin/printf.
7770as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7771as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7772as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7773# Prefer a ksh shell builtin over an external printf program on Solaris,
7774# but without wasting forks for bash or zsh.
7775if test -z "$BASH_VERSION$ZSH_VERSION" \
7776 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7777 as_echo='print -r --'
7778 as_echo_n='print -rn --'
7779elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7780 as_echo='printf %s\n'
7781 as_echo_n='printf %s'
bec39cab 7782else
81ecdfbb
RW
7783 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7784 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7785 as_echo_n='/usr/ucb/echo -n'
7786 else
7787 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7788 as_echo_n_body='eval
7789 arg=$1;
7790 case $arg in #(
7791 *"$as_nl"*)
7792 expr "X$arg" : "X\\(.*\\)$as_nl";
7793 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7794 esac;
7795 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7796 '
7797 export as_echo_n_body
7798 as_echo_n='sh -c $as_echo_n_body as_echo'
7799 fi
7800 export as_echo_body
7801 as_echo='sh -c $as_echo_body as_echo'
7802fi
7803
7804# The user is always right.
7805if test "${PATH_SEPARATOR+set}" != set; then
7806 PATH_SEPARATOR=:
7807 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7808 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7809 PATH_SEPARATOR=';'
7810 }
bec39cab
AC
7811fi
7812
7813
81ecdfbb
RW
7814# IFS
7815# We need space, tab and new line, in precisely that order. Quoting is
7816# there to prevent editors from complaining about space-tab.
7817# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7818# splitting by setting IFS to empty value.)
7819IFS=" "" $as_nl"
7820
7821# Find who we are. Look in the path if we contain no directory separator.
7822case $0 in #((
7823 *[\\/]* ) as_myself=$0 ;;
7824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825for as_dir in $PATH
7826do
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
7829 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7830 done
7831IFS=$as_save_IFS
7832
7833 ;;
7834esac
7835# We did not find ourselves, most probably we were run as `sh COMMAND'
7836# in which case we are not to be found in the path.
7837if test "x$as_myself" = x; then
7838 as_myself=$0
7839fi
7840if test ! -f "$as_myself"; then
7841 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7842 exit 1
7843fi
7844
7845# Unset variables that we do not need and which cause bugs (e.g. in
7846# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7847# suppresses any "Segmentation fault" message there. '((' could
7848# trigger a bug in pdksh 5.2.14.
7849for as_var in BASH_ENV ENV MAIL MAILPATH
7850do eval test x\${$as_var+set} = xset \
7851 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7852done
bec39cab
AC
7853PS1='$ '
7854PS2='> '
7855PS4='+ '
7856
7857# NLS nuisances.
81ecdfbb
RW
7858LC_ALL=C
7859export LC_ALL
7860LANGUAGE=C
7861export LANGUAGE
7862
7863# CDPATH.
7864(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7865
7866
7867# as_fn_error ERROR [LINENO LOG_FD]
7868# ---------------------------------
7869# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7870# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7871# script with status $?, using 1 if that was 0.
7872as_fn_error ()
7873{
7874 as_status=$?; test $as_status -eq 0 && as_status=1
7875 if test "$3"; then
7876 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7877 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
bec39cab 7878 fi
81ecdfbb
RW
7879 $as_echo "$as_me: error: $1" >&2
7880 as_fn_exit $as_status
7881} # as_fn_error
7882
7883
7884# as_fn_set_status STATUS
7885# -----------------------
7886# Set $? to STATUS, without forking.
7887as_fn_set_status ()
7888{
7889 return $1
7890} # as_fn_set_status
7891
7892# as_fn_exit STATUS
7893# -----------------
7894# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7895as_fn_exit ()
7896{
7897 set +e
7898 as_fn_set_status $1
7899 exit $1
7900} # as_fn_exit
7901
7902# as_fn_unset VAR
7903# ---------------
7904# Portably unset VAR.
7905as_fn_unset ()
7906{
7907 { eval $1=; unset $1;}
7908}
7909as_unset=as_fn_unset
7910# as_fn_append VAR VALUE
7911# ----------------------
7912# Append the text in VALUE to the end of the definition contained in VAR. Take
7913# advantage of any shell optimizations that allow amortized linear growth over
7914# repeated appends, instead of the typical quadratic growth present in naive
7915# implementations.
7916if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7917 eval 'as_fn_append ()
7918 {
7919 eval $1+=\$2
7920 }'
7921else
7922 as_fn_append ()
7923 {
7924 eval $1=\$$1\$2
7925 }
7926fi # as_fn_append
7927
7928# as_fn_arith ARG...
7929# ------------------
7930# Perform arithmetic evaluation on the ARGs, and store the result in the
7931# global $as_val. Take advantage of shells that can avoid forks. The arguments
7932# must be portable across $(()) and expr.
7933if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7934 eval 'as_fn_arith ()
7935 {
7936 as_val=$(( $* ))
7937 }'
7938else
7939 as_fn_arith ()
7940 {
7941 as_val=`expr "$@" || test $? -eq 1`
7942 }
7943fi # as_fn_arith
7944
d6e9fb05 7945
81ecdfbb
RW
7946if expr a : '\(a\)' >/dev/null 2>&1 &&
7947 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
7948 as_expr=expr
7949else
7950 as_expr=false
7951fi
d6e9fb05 7952
81ecdfbb 7953if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
7954 as_basename=basename
7955else
7956 as_basename=false
7957fi
d6e9fb05 7958
81ecdfbb
RW
7959if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7960 as_dirname=dirname
7961else
7962 as_dirname=false
7963fi
d6e9fb05 7964
81ecdfbb 7965as_me=`$as_basename -- "$0" ||
bec39cab
AC
7966$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7967 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
7968 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7969$as_echo X/"$0" |
7970 sed '/^.*\/\([^/][^/]*\)\/*$/{
7971 s//\1/
7972 q
7973 }
7974 /^X\/\(\/\/\)$/{
7975 s//\1/
7976 q
7977 }
7978 /^X\/\(\/\).*/{
7979 s//\1/
7980 q
7981 }
7982 s/.*/./; q'`
bec39cab 7983
dae5f5cf
DJ
7984# Avoid depending upon Character Ranges.
7985as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7986as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7987as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7988as_cr_digits='0123456789'
7989as_cr_alnum=$as_cr_Letters$as_cr_digits
7990
81ecdfbb
RW
7991ECHO_C= ECHO_N= ECHO_T=
7992case `echo -n x` in #(((((
7993-n*)
7994 case `echo 'xy\c'` in
7995 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7996 xy) ECHO_C='\c';;
7997 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7998 ECHO_T=' ';;
7999 esac;;
8000*)
8001 ECHO_N='-n';;
bec39cab
AC
8002esac
8003
81ecdfbb
RW
8004rm -f conf$$ conf$$.exe conf$$.file
8005if test -d conf$$.dir; then
8006 rm -f conf$$.dir/conf$$.file
bec39cab 8007else
81ecdfbb
RW
8008 rm -f conf$$.dir
8009 mkdir conf$$.dir 2>/dev/null
bec39cab 8010fi
81ecdfbb
RW
8011if (echo >conf$$.file) 2>/dev/null; then
8012 if ln -s conf$$.file conf$$ 2>/dev/null; then
dae5f5cf 8013 as_ln_s='ln -s'
81ecdfbb
RW
8014 # ... but there are two gotchas:
8015 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8016 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8017 # In both cases, we have to default to `cp -p'.
8018 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8019 as_ln_s='cp -p'
8020 elif ln conf$$.file conf$$ 2>/dev/null; then
8021 as_ln_s=ln
8022 else
8023 as_ln_s='cp -p'
dae5f5cf 8024 fi
bec39cab
AC
8025else
8026 as_ln_s='cp -p'
8027fi
81ecdfbb
RW
8028rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8029rmdir conf$$.dir 2>/dev/null
8030
8031
8032# as_fn_mkdir_p
8033# -------------
8034# Create "$as_dir" as a directory, including parents if necessary.
8035as_fn_mkdir_p ()
8036{
8037
8038 case $as_dir in #(
8039 -*) as_dir=./$as_dir;;
8040 esac
8041 test -d "$as_dir" || eval $as_mkdir_p || {
8042 as_dirs=
8043 while :; do
8044 case $as_dir in #(
8045 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8046 *) as_qdir=$as_dir;;
8047 esac
8048 as_dirs="'$as_qdir' $as_dirs"
8049 as_dir=`$as_dirname -- "$as_dir" ||
8050$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8051 X"$as_dir" : 'X\(//\)[^/]' \| \
8052 X"$as_dir" : 'X\(//\)$' \| \
8053 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8054$as_echo X"$as_dir" |
8055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8056 s//\1/
8057 q
8058 }
8059 /^X\(\/\/\)[^/].*/{
8060 s//\1/
8061 q
8062 }
8063 /^X\(\/\/\)$/{
8064 s//\1/
8065 q
8066 }
8067 /^X\(\/\).*/{
8068 s//\1/
8069 q
8070 }
8071 s/.*/./; q'`
8072 test -d "$as_dir" && break
8073 done
8074 test -z "$as_dirs" || eval "mkdir $as_dirs"
8075 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
bec39cab 8076
81ecdfbb
RW
8077
8078} # as_fn_mkdir_p
bec39cab 8079if mkdir -p . 2>/dev/null; then
81ecdfbb 8080 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
8081else
8082 test -d ./-p && rmdir ./-p
8083 as_mkdir_p=false
8084fi
8085
81ecdfbb
RW
8086if test -x / >/dev/null 2>&1; then
8087 as_test_x='test -x'
8088else
8089 if ls -dL / >/dev/null 2>&1; then
8090 as_ls_L_option=L
8091 else
8092 as_ls_L_option=
8093 fi
8094 as_test_x='
8095 eval sh -c '\''
8096 if test -d "$1"; then
8097 test -d "$1/.";
8098 else
8099 case $1 in #(
8100 -*)set "./$1";;
8101 esac;
8102 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8103 ???[sx]*):;;*)false;;esac;fi
8104 '\'' sh
8105 '
8106fi
8107as_executable_p=$as_test_x
bec39cab
AC
8108
8109# Sed expression to map a string onto a valid CPP name.
8110as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8111
8112# Sed expression to map a string onto a valid variable name.
8113as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8114
8115
bec39cab 8116exec 6>&1
81ecdfbb
RW
8117## ----------------------------------- ##
8118## Main body of $CONFIG_STATUS script. ##
8119## ----------------------------------- ##
8120_ASEOF
8121test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8122
8123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8124# Save the log message, to keep $0 and so on meaningful, and to
bec39cab 8125# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
8126# values after options handling.
8127ac_log="
bec39cab 8128This file was extended by $as_me, which was
81ecdfbb 8129generated by GNU Autoconf 2.64. Invocation command line was
bec39cab
AC
8130
8131 CONFIG_FILES = $CONFIG_FILES
8132 CONFIG_HEADERS = $CONFIG_HEADERS
8133 CONFIG_LINKS = $CONFIG_LINKS
8134 CONFIG_COMMANDS = $CONFIG_COMMANDS
8135 $ $0 $@
8136
81ecdfbb
RW
8137on `(hostname || uname -n) 2>/dev/null | sed 1q`
8138"
8139
bec39cab
AC
8140_ACEOF
8141
81ecdfbb
RW
8142case $ac_config_files in *"
8143"*) set x $ac_config_files; shift; ac_config_files=$*;;
8144esac
bec39cab 8145
81ecdfbb
RW
8146case $ac_config_headers in *"
8147"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8148esac
dae5f5cf 8149
dae5f5cf 8150
81ecdfbb
RW
8151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8152# Files that config.status was made for.
8153config_files="$ac_config_files"
8154config_headers="$ac_config_headers"
8155config_commands="$ac_config_commands"
bec39cab 8156
81ecdfbb 8157_ACEOF
dae5f5cf 8158
81ecdfbb 8159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab 8160ac_cs_usage="\
81ecdfbb
RW
8161\`$as_me' instantiates files and other configuration actions
8162from templates according to the current configuration. Unless the files
8163and actions are specified as TAGs, all are instantiated by default.
bec39cab 8164
81ecdfbb 8165Usage: $0 [OPTION]... [TAG]...
bec39cab
AC
8166
8167 -h, --help print this help, then exit
81ecdfbb
RW
8168 -V, --version print version number and configuration settings, then exit
8169 -q, --quiet, --silent
8170 do not print progress messages
bec39cab
AC
8171 -d, --debug don't remove temporary files
8172 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
8173 --file=FILE[:TEMPLATE]
8174 instantiate the configuration file FILE
8175 --header=FILE[:TEMPLATE]
8176 instantiate the configuration header FILE
bec39cab
AC
8177
8178Configuration files:
8179$config_files
8180
8181Configuration headers:
8182$config_headers
8183
8184Configuration commands:
8185$config_commands
8186
81ecdfbb 8187Report bugs to the package provider."
dae5f5cf 8188
81ecdfbb
RW
8189_ACEOF
8190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab
AC
8191ac_cs_version="\\
8192config.status
81ecdfbb
RW
8193configured by $0, generated by GNU Autoconf 2.64,
8194 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
bec39cab 8195
81ecdfbb 8196Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
8197This config.status script is free software; the Free Software Foundation
8198gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
8199
8200ac_pwd='$ac_pwd'
8201srcdir='$srcdir'
8202INSTALL='$INSTALL'
8203test -n "\$AWK" || AWK=awk
bec39cab
AC
8204_ACEOF
8205
81ecdfbb
RW
8206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8207# The default lists apply if the user does not specify any file.
bec39cab
AC
8208ac_need_defaults=:
8209while test $# != 0
8210do
8211 case $1 in
8212 --*=*)
81ecdfbb
RW
8213 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8214 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
bec39cab
AC
8215 ac_shift=:
8216 ;;
81ecdfbb 8217 *)
bec39cab
AC
8218 ac_option=$1
8219 ac_optarg=$2
8220 ac_shift=shift
8221 ;;
bec39cab
AC
8222 esac
8223
8224 case $ac_option in
8225 # Handling of the options.
bec39cab
AC
8226 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8227 ac_cs_recheck=: ;;
81ecdfbb
RW
8228 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8229 $as_echo "$ac_cs_version"; exit ;;
8230 --debug | --debu | --deb | --de | --d | -d )
bec39cab
AC
8231 debug=: ;;
8232 --file | --fil | --fi | --f )
8233 $ac_shift
81ecdfbb
RW
8234 case $ac_optarg in
8235 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8236 esac
8237 as_fn_append CONFIG_FILES " '$ac_optarg'"
bec39cab
AC
8238 ac_need_defaults=false;;
8239 --header | --heade | --head | --hea )
8240 $ac_shift
81ecdfbb
RW
8241 case $ac_optarg in
8242 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8243 esac
8244 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
bec39cab 8245 ac_need_defaults=false;;
81ecdfbb
RW
8246 --he | --h)
8247 # Conflict between --help and --header
8248 as_fn_error "ambiguous option: \`$1'
8249Try \`$0 --help' for more information.";;
8250 --help | --hel | -h )
8251 $as_echo "$ac_cs_usage"; exit ;;
bec39cab
AC
8252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8253 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8254 ac_cs_silent=: ;;
8255
8256 # This is an error.
81ecdfbb
RW
8257 -*) as_fn_error "unrecognized option: \`$1'
8258Try \`$0 --help' for more information." ;;
bec39cab 8259
81ecdfbb
RW
8260 *) as_fn_append ac_config_targets " $1"
8261 ac_need_defaults=false ;;
bec39cab
AC
8262
8263 esac
8264 shift
d6e9fb05 8265done
bec39cab
AC
8266
8267ac_configure_extra_args=
8268
8269if $ac_cs_silent; then
8270 exec 6>/dev/null
8271 ac_configure_extra_args="$ac_configure_extra_args --silent"
d6e9fb05 8272fi
d6e9fb05 8273
bec39cab 8274_ACEOF
81ecdfbb 8275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab 8276if \$ac_cs_recheck; then
81ecdfbb
RW
8277 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8278 shift
8279 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8280 CONFIG_SHELL='$SHELL'
8281 export CONFIG_SHELL
8282 exec "\$@"
bec39cab 8283fi
d6e9fb05 8284
bec39cab 8285_ACEOF
81ecdfbb
RW
8286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8287exec 5>>config.log
8288{
8289 echo
8290 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8291## Running $as_me. ##
8292_ASBOX
8293 $as_echo "$ac_log"
8294} >&5
bec39cab 8295
81ecdfbb
RW
8296_ACEOF
8297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61c125b9
TT
8298#
8299# INIT-COMMANDS
8300#
8301ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8302
81ecdfbb 8303_ACEOF
bec39cab 8304
81ecdfbb 8305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b80864fb 8306
81ecdfbb 8307# Handling of arguments.
bec39cab
AC
8308for ac_config_target in $ac_config_targets
8309do
81ecdfbb
RW
8310 case $ac_config_target in
8311 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
61c125b9 8312 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
81ecdfbb 8313 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
81ecdfbb
RW
8314
8315 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
d6e9fb05 8316 esac
bec39cab
AC
8317done
8318
81ecdfbb 8319
bec39cab
AC
8320# If the user did not use the arguments to specify the items to instantiate,
8321# then the envvar interface is used. Set only those that are not.
8322# We use the long form for the default assignment because of an extremely
8323# bizarre bug on SunOS 4.1.3.
8324if $ac_need_defaults; then
8325 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8326 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8327 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8328fi
d6e9fb05 8329
bec39cab 8330# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 8331# simply because there is no reason against having it here, and in addition,
bec39cab 8332# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
8333# Hook for its removal unless debugging.
8334# Note that there is a small window in which the directory will not be cleaned:
8335# after its creation but before its name has been assigned to `$tmp'.
bec39cab
AC
8336$debug ||
8337{
81ecdfbb
RW
8338 tmp=
8339 trap 'exit_status=$?
8340 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8341' 0
8342 trap 'as_fn_exit 1' 1 2 13 15
bec39cab 8343}
bec39cab
AC
8344# Create a (secure) tmp directory for tmp files.
8345
8346{
81ecdfbb 8347 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
bec39cab
AC
8348 test -n "$tmp" && test -d "$tmp"
8349} ||
8350{
81ecdfbb
RW
8351 tmp=./conf$$-$RANDOM
8352 (umask 077 && mkdir "$tmp")
8353} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8354
8355# Set up the scripts for CONFIG_FILES section.
8356# No need to generate them if there are no CONFIG_FILES.
8357# This happens for instance with `./config.status config.h'.
8358if test -n "$CONFIG_FILES"; then
8359
8360
8361ac_cr=`echo X | tr X '\015'`
8362# On cygwin, bash can eat \r inside `` if the user requested igncr.
8363# But we know of no other shell where ac_cr would be empty at this
8364# point, so we can use a bashism as a fallback.
8365if test "x$ac_cr" = x; then
8366 eval ac_cr=\$\'\\r\'
8367fi
8368ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8369if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8370 ac_cs_awk_cr='\r'
8371else
8372 ac_cs_awk_cr=$ac_cr
8373fi
8374
8375echo 'BEGIN {' >"$tmp/subs1.awk" &&
8376_ACEOF
8377
8378
8379{
8380 echo "cat >conf$$subs.awk <<_ACEOF" &&
8381 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8382 echo "_ACEOF"
8383} >conf$$subs.sh ||
8384 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8385ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8386ac_delim='%!_!# '
8387for ac_last_try in false false false false false :; do
8388 . ./conf$$subs.sh ||
8389 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8390
8391 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8392 if test $ac_delim_n = $ac_delim_num; then
8393 break
8394 elif $ac_last_try; then
8395 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8396 else
8397 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8398 fi
8399done
8400rm -f conf$$subs.sh
8401
8402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8403cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8404_ACEOF
8405sed -n '
8406h
8407s/^/S["/; s/!.*/"]=/
8408p
8409g
8410s/^[^!]*!//
8411:repl
8412t repl
8413s/'"$ac_delim"'$//
8414t delim
8415:nl
8416h
8417s/\(.\{148\}\).*/\1/
8418t more1
8419s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8420p
8421n
8422b repl
8423:more1
8424s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8425p
8426g
8427s/.\{148\}//
8428t nl
8429:delim
8430h
8431s/\(.\{148\}\).*/\1/
8432t more2
8433s/["\\]/\\&/g; s/^/"/; s/$/"/
8434p
8435b
8436:more2
8437s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8438p
8439g
8440s/.\{148\}//
8441t delim
8442' <conf$$subs.awk | sed '
8443/^[^""]/{
8444 N
8445 s/\n//
8446}
8447' >>$CONFIG_STATUS || ac_write_fail=1
8448rm -f conf$$subs.awk
8449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8450_ACAWK
8451cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8452 for (key in S) S_is_set[key] = 1
8453 FS = "\a"
8454
8455}
bec39cab 8456{
81ecdfbb
RW
8457 line = $ 0
8458 nfields = split(line, field, "@")
8459 substed = 0
8460 len = length(field[1])
8461 for (i = 2; i < nfields; i++) {
8462 key = field[i]
8463 keylen = length(key)
8464 if (S_is_set[key]) {
8465 value = S[key]
8466 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8467 len += length(value) + length(field[++i])
8468 substed = 1
8469 } else
8470 len += 1 + keylen
8471 }
8472
8473 print line
bec39cab
AC
8474}
8475
81ecdfbb
RW
8476_ACAWK
8477_ACEOF
8478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8479if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8480 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8481else
8482 cat
8483fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8484 || as_fn_error "could not setup config files machinery" "$LINENO" 5
dae5f5cf
DJ
8485_ACEOF
8486
81ecdfbb
RW
8487# VPATH may cause trouble with some makes, so we remove $(srcdir),
8488# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8489# trailing colons and then remove the whole line if VPATH becomes empty
8490# (actually we leave an empty line to preserve line numbers).
8491if test "x$srcdir" = x.; then
8492 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8493s/:*\$(srcdir):*/:/
8494s/:*\${srcdir}:*/:/
8495s/:*@srcdir@:*/:/
8496s/^\([^=]*=[ ]*\):*/\1/
8497s/:*$//
8498s/^[^=]*=[ ]*$//
8499}'
8500fi
bec39cab 8501
81ecdfbb
RW
8502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8503fi # test -n "$CONFIG_FILES"
bec39cab 8504
81ecdfbb
RW
8505# Set up the scripts for CONFIG_HEADERS section.
8506# No need to generate them if there are no CONFIG_HEADERS.
8507# This happens for instance with `./config.status Makefile'.
8508if test -n "$CONFIG_HEADERS"; then
8509cat >"$tmp/defines.awk" <<\_ACAWK ||
8510BEGIN {
b80864fb
DJ
8511_ACEOF
8512
81ecdfbb
RW
8513# Transform confdefs.h into an awk script `defines.awk', embedded as
8514# here-document in config.status, that substitutes the proper values into
8515# config.h.in to produce config.h.
8516
8517# Create a delimiter string that does not exist in confdefs.h, to ease
8518# handling of long lines.
8519ac_delim='%!_!# '
8520for ac_last_try in false false :; do
8521 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8522 if test -z "$ac_t"; then
8523 break
8524 elif $ac_last_try; then
8525 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8526 else
8527 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d6e9fb05 8528 fi
81ecdfbb 8529done
d6e9fb05 8530
81ecdfbb
RW
8531# For the awk script, D is an array of macro values keyed by name,
8532# likewise P contains macro parameters if any. Preserve backslash
8533# newline sequences.
8534
8535ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8536sed -n '
8537s/.\{148\}/&'"$ac_delim"'/g
8538t rset
8539:rset
8540s/^[ ]*#[ ]*define[ ][ ]*/ /
8541t def
8542d
8543:def
8544s/\\$//
8545t bsnl
8546s/["\\]/\\&/g
8547s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8548D["\1"]=" \3"/p
8549s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8550d
8551:bsnl
8552s/["\\]/\\&/g
8553s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8554D["\1"]=" \3\\\\\\n"\\/p
8555t cont
8556s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8557t cont
8558d
8559:cont
8560n
8561s/.\{148\}/&'"$ac_delim"'/g
8562t clear
8563:clear
8564s/\\$//
8565t bsnlc
8566s/["\\]/\\&/g; s/^/"/; s/$/"/p
8567d
8568:bsnlc
8569s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8570b cont
8571' <confdefs.h | sed '
8572s/'"$ac_delim"'/"\\\
8573"/g' >>$CONFIG_STATUS || ac_write_fail=1
8574
8575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8576 for (key in D) D_is_set[key] = 1
8577 FS = "\a"
8578}
8579/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8580 line = \$ 0
8581 split(line, arg, " ")
8582 if (arg[1] == "#") {
8583 defundef = arg[2]
8584 mac1 = arg[3]
8585 } else {
8586 defundef = substr(arg[1], 2)
8587 mac1 = arg[2]
8588 }
8589 split(mac1, mac2, "(") #)
8590 macro = mac2[1]
8591 prefix = substr(line, 1, index(line, defundef) - 1)
8592 if (D_is_set[macro]) {
8593 # Preserve the white space surrounding the "#".
8594 print prefix "define", macro P[macro] D[macro]
8595 next
8596 } else {
8597 # Replace #undef with comments. This is necessary, for example,
8598 # in the case of _POSIX_SOURCE, which is predefined and required
8599 # on some systems where configure will not decide to define it.
8600 if (defundef == "undef") {
8601 print "/*", prefix defundef, macro, "*/"
8602 next
8603 }
8604 }
8605}
8606{ print }
8607_ACAWK
bec39cab 8608_ACEOF
81ecdfbb
RW
8609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8610 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8611fi # test -n "$CONFIG_HEADERS"
8612
8613
8614eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8615shift
8616for ac_tag
8617do
8618 case $ac_tag in
8619 :[FHLC]) ac_mode=$ac_tag; continue;;
8620 esac
8621 case $ac_mode$ac_tag in
8622 :[FHL]*:*);;
8623 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8624 :[FH]-) ac_tag=-:-;;
8625 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8626 esac
8627 ac_save_IFS=$IFS
8628 IFS=:
8629 set x $ac_tag
8630 IFS=$ac_save_IFS
8631 shift
8632 ac_file=$1
8633 shift
8634
8635 case $ac_mode in
8636 :L) ac_source=$1;;
8637 :[FH])
8638 ac_file_inputs=
8639 for ac_f
8640 do
8641 case $ac_f in
8642 -) ac_f="$tmp/stdin";;
8643 *) # Look for the file first in the build tree, then in the source tree
8644 # (if the path is not absolute). The absolute path cannot be DOS-style,
8645 # because $ac_f cannot contain `:'.
8646 test -f "$ac_f" ||
8647 case $ac_f in
8648 [\\/$]*) false;;
8649 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8650 esac ||
8651 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8652 esac
8653 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8654 as_fn_append ac_file_inputs " '$ac_f'"
8655 done
8656
8657 # Let's still pretend it is `configure' which instantiates (i.e., don't
8658 # use $as_me), people would be surprised to read:
8659 # /* config.h. Generated by config.status. */
8660 configure_input='Generated from '`
8661 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8662 `' by configure.'
8663 if test x"$ac_file" != x-; then
8664 configure_input="$ac_file. $configure_input"
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8666$as_echo "$as_me: creating $ac_file" >&6;}
8667 fi
8668 # Neutralize special characters interpreted by sed in replacement strings.
8669 case $configure_input in #(
8670 *\&* | *\|* | *\\* )
8671 ac_sed_conf_input=`$as_echo "$configure_input" |
8672 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8673 *) ac_sed_conf_input=$configure_input;;
8674 esac
8675
8676 case $ac_tag in
8677 *:-:* | *:-) cat >"$tmp/stdin" \
8678 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8679 esac
8680 ;;
d6e9fb05
JK
8681 esac
8682
81ecdfbb 8683 ac_dir=`$as_dirname -- "$ac_file" ||
bec39cab
AC
8684$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8685 X"$ac_file" : 'X\(//\)[^/]' \| \
8686 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
8687 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8688$as_echo X"$ac_file" |
8689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8690 s//\1/
8691 q
8692 }
8693 /^X\(\/\/\)[^/].*/{
8694 s//\1/
8695 q
8696 }
8697 /^X\(\/\/\)$/{
8698 s//\1/
8699 q
8700 }
8701 /^X\(\/\).*/{
8702 s//\1/
8703 q
8704 }
8705 s/.*/./; q'`
8706 as_dir="$ac_dir"; as_fn_mkdir_p
bec39cab
AC
8707 ac_builddir=.
8708
81ecdfbb
RW
8709case "$ac_dir" in
8710.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8711*)
8712 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8713 # A ".." for each directory in $ac_dir_suffix.
8714 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8715 case $ac_top_builddir_sub in
8716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8718 esac ;;
8719esac
8720ac_abs_top_builddir=$ac_pwd
8721ac_abs_builddir=$ac_pwd$ac_dir_suffix
8722# for backward compatibility:
8723ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
8724
8725case $srcdir in
81ecdfbb 8726 .) # We are building in place.
bec39cab 8727 ac_srcdir=.
81ecdfbb
RW
8728 ac_top_srcdir=$ac_top_builddir_sub
8729 ac_abs_top_srcdir=$ac_pwd ;;
8730 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 8731 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
8732 ac_top_srcdir=$srcdir
8733 ac_abs_top_srcdir=$srcdir ;;
8734 *) # Relative name.
8735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8736 ac_top_srcdir=$ac_top_build_prefix$srcdir
8737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 8738esac
81ecdfbb 8739ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab 8740
bec39cab 8741
81ecdfbb
RW
8742 case $ac_mode in
8743 :F)
8744 #
8745 # CONFIG_FILE
8746 #
d6e9fb05 8747
bec39cab
AC
8748 case $INSTALL in
8749 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 8750 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d6e9fb05 8751 esac
81ecdfbb 8752_ACEOF
3db0444b 8753
81ecdfbb
RW
8754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8755# If the template does not know about datarootdir, expand it.
8756# FIXME: This hack should be removed a few years after 2.60.
8757ac_datarootdir_hack=; ac_datarootdir_seen=
8758ac_sed_dataroot='
8759/datarootdir/ {
8760 p
8761 q
8762}
8763/@datadir@/p
8764/@docdir@/p
8765/@infodir@/p
8766/@localedir@/p
8767/@mandir@/p'
8768case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8769*datarootdir*) ac_datarootdir_seen=yes;;
8770*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8772$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8773_ACEOF
8774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8775 ac_datarootdir_hack='
8776 s&@datadir@&$datadir&g
8777 s&@docdir@&$docdir&g
8778 s&@infodir@&$infodir&g
8779 s&@localedir@&$localedir&g
8780 s&@mandir@&$mandir&g
8781 s&\\\${datarootdir}&$datarootdir&g' ;;
8782esac
bec39cab 8783_ACEOF
81ecdfbb
RW
8784
8785# Neutralize VPATH when `$srcdir' = `.'.
8786# Shell code in configure.ac might set extrasub.
8787# FIXME: do we really want to maintain this feature?
8788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8789ac_sed_extra="$ac_vpsub
bec39cab
AC
8790$extrasub
8791_ACEOF
81ecdfbb 8792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab
AC
8793:t
8794/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
8795s|@configure_input@|$ac_sed_conf_input|;t t
8796s&@top_builddir@&$ac_top_builddir_sub&;t t
8797s&@top_build_prefix@&$ac_top_build_prefix&;t t
8798s&@srcdir@&$ac_srcdir&;t t
8799s&@abs_srcdir@&$ac_abs_srcdir&;t t
8800s&@top_srcdir@&$ac_top_srcdir&;t t
8801s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8802s&@builddir@&$ac_builddir&;t t
8803s&@abs_builddir@&$ac_abs_builddir&;t t
8804s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8805s&@INSTALL@&$ac_INSTALL&;t t
8806$ac_datarootdir_hack
8807"
8808eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8809 || as_fn_error "could not create $ac_file" "$LINENO" 5
8810
8811test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8812 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8813 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8815which seems to be undefined. Please make sure it is defined." >&5
8816$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8817which seems to be undefined. Please make sure it is defined." >&2;}
8818
8819 rm -f "$tmp/stdin"
bec39cab 8820 case $ac_file in
81ecdfbb
RW
8821 -) cat "$tmp/out" && rm -f "$tmp/out";;
8822 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8823 esac \
8824 || as_fn_error "could not create $ac_file" "$LINENO" 5
8825 ;;
8826 :H)
8827 #
8828 # CONFIG_HEADER
8829 #
bec39cab 8830 if test x"$ac_file" != x-; then
81ecdfbb
RW
8831 {
8832 $as_echo "/* $configure_input */" \
8833 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8834 } >"$tmp/config.h" \
8835 || as_fn_error "could not create $ac_file" "$LINENO" 5
8836 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8838$as_echo "$as_me: $ac_file is unchanged" >&6;}
bec39cab 8839 else
81ecdfbb
RW
8840 rm -f "$ac_file"
8841 mv "$tmp/config.h" "$ac_file" \
8842 || as_fn_error "could not create $ac_file" "$LINENO" 5
84563040 8843 fi
bec39cab 8844 else
81ecdfbb
RW
8845 $as_echo "/* $configure_input */" \
8846 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8847 || as_fn_error "could not create -" "$LINENO" 5
d6e9fb05 8848 fi
81ecdfbb 8849 ;;
dae5f5cf 8850
81ecdfbb
RW
8851 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8852$as_echo "$as_me: executing $ac_file commands" >&6;}
8853 ;;
8854 esac
dae5f5cf
DJ
8855
8856
81ecdfbb 8857 case $ac_file$ac_mode in
61c125b9 8858 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
1e94266c 8859 "Makefile":F) case x$CONFIG_HEADERS in
c3a3ccc7
DJ
8860xconfig.h:config.in)
8861echo > stamp-h ;;
8862esac
bec39cab 8863 ;;
81ecdfbb 8864
bec39cab 8865 esac
81ecdfbb 8866done # for ac_tag
d6e9fb05 8867
bec39cab 8868
81ecdfbb 8869as_fn_exit 0
bec39cab 8870_ACEOF
bec39cab
AC
8871ac_clean_files=$ac_clean_files_save
8872
81ecdfbb
RW
8873test $ac_write_fail = 0 ||
8874 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8875
bec39cab
AC
8876
8877# configure is writing to config.log, and then calls config.status.
8878# config.status does its own redirection, appending to config.log.
8879# Unfortunately, on DOS this fails, as config.log is still kept open
8880# by configure, so config.status won't be able to write to it; its
8881# output is simply discarded. So we exec the FD to /dev/null,
8882# effectively closing config.log, so it can be properly (re)opened and
8883# appended to by config.status. When coming back to configure, we
8884# need to make the FD available again.
8885if test "$no_create" != yes; then
8886 ac_cs_success=:
8887 ac_config_status_args=
8888 test "$silent" = yes &&
8889 ac_config_status_args="$ac_config_status_args --quiet"
8890 exec 5>/dev/null
8891 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8892 exec 5>>config.log
8893 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8894 # would make configure fail if this is the last instruction.
81ecdfbb
RW
8895 $ac_cs_success || as_fn_exit $?
8896fi
8897if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8899$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
bec39cab 8900fi
d6e9fb05 8901
This page took 1.683142 seconds and 4 git commands to generate.