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