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