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