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