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