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