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