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