Fix Python 3 build error on 32-bit hosts
[deliverable/binutils-gdb.git] / gdb / testsuite / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 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.
c906108c
SS
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
bec39cab 356
81ecdfbb
RW
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
372
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
bec39cab
AC
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
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
bec39cab 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'
bec39cab 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
c906108c 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#
c906108c 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
bec39cab 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
bec39cab
AC
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
bec39cab
AC
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
bec39cab
AC
553
554ac_unique_file="gdb.base"
a13c5393 555enable_option_checking=no
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
RW
592ac_subst_vars='LTLIBOBJS
593LIBOBJS
2a31c623 594EXTRA_RULES
81ecdfbb
RW
595EGREP
596GREP
597CPP
598OBJEXT
599EXEEXT
600ac_ct_CC
601CPPFLAGS
602LDFLAGS
603CFLAGS
604CC
605RPATH_ENVVAR
a13c5393 606subdirs
81ecdfbb
RW
607SET_MAKE
608GMAKE_FALSE
609GMAKE_TRUE
610MAKE
611target_noncanonical
612target_os
613target_vendor
614target_cpu
615target
616host_os
617host_vendor
618host_cpu
619host
620build_os
621build_vendor
622build_cpu
623build
624target_alias
625host_alias
626build_alias
627LIBS
628ECHO_T
629ECHO_N
630ECHO_C
631DEFS
632mandir
633localedir
634libdir
635psdir
636pdfdir
637dvidir
638htmldir
639infodir
640docdir
641oldincludedir
642includedir
643localstatedir
644sharedstatedir
645sysconfdir
646datadir
647datarootdir
648libexecdir
649sbindir
650bindir
651program_transform_name
652prefix
653exec_prefix
654PACKAGE_URL
655PACKAGE_BUGREPORT
656PACKAGE_STRING
657PACKAGE_VERSION
658PACKAGE_TARNAME
659PACKAGE_NAME
660PATH_SEPARATOR
661SHELL'
bec39cab 662ac_subst_files=''
81ecdfbb
RW
663ac_user_opts='
664enable_option_checking
a13c5393 665enable_gdbtk
81ecdfbb
RW
666enable_shared
667'
668 ac_precious_vars='build_alias
669host_alias
670target_alias
671CC
672CFLAGS
673LDFLAGS
674LIBS
675CPPFLAGS
676CPP'
a13c5393 677ac_subdirs_all='gdb.gdbtk'
c906108c
SS
678
679# Initialize some variables set by options.
bec39cab
AC
680ac_init_help=
681ac_init_version=false
81ecdfbb
RW
682ac_unrecognized_opts=
683ac_unrecognized_sep=
c906108c
SS
684# The variables have the same names as the options, with
685# dashes changed to underlines.
bec39cab 686cache_file=/dev/null
c906108c 687exec_prefix=NONE
c906108c 688no_create=
c906108c
SS
689no_recursion=
690prefix=NONE
691program_prefix=NONE
692program_suffix=NONE
693program_transform_name=s,x,x,
694silent=
695site=
696srcdir=
c906108c
SS
697verbose=
698x_includes=NONE
699x_libraries=NONE
bec39cab
AC
700
701# Installation directory options.
702# These are left unexpanded so users can "make install exec_prefix=/foo"
703# and all the variables that are supposed to be based on exec_prefix
704# by default will actually change.
705# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 706# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
707bindir='${exec_prefix}/bin'
708sbindir='${exec_prefix}/sbin'
709libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
710datarootdir='${prefix}/share'
711datadir='${datarootdir}'
c906108c
SS
712sysconfdir='${prefix}/etc'
713sharedstatedir='${prefix}/com'
714localstatedir='${prefix}/var'
c906108c
SS
715includedir='${prefix}/include'
716oldincludedir='/usr/include'
81ecdfbb
RW
717docdir='${datarootdir}/doc/${PACKAGE}'
718infodir='${datarootdir}/info'
719htmldir='${docdir}'
720dvidir='${docdir}'
721pdfdir='${docdir}'
722psdir='${docdir}'
723libdir='${exec_prefix}/lib'
724localedir='${datarootdir}/locale'
725mandir='${datarootdir}/man'
c906108c 726
c906108c 727ac_prev=
81ecdfbb 728ac_dashdash=
c906108c
SS
729for ac_option
730do
c906108c
SS
731 # If the previous option needs an argument, assign it.
732 if test -n "$ac_prev"; then
81ecdfbb 733 eval $ac_prev=\$ac_option
c906108c
SS
734 ac_prev=
735 continue
736 fi
737
81ecdfbb
RW
738 case $ac_option in
739 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
740 *) ac_optarg=yes ;;
741 esac
c906108c
SS
742
743 # Accept the important Cygnus configure options, so we can diagnose typos.
744
81ecdfbb
RW
745 case $ac_dashdash$ac_option in
746 --)
747 ac_dashdash=yes ;;
c906108c
SS
748
749 -bindir | --bindir | --bindi | --bind | --bin | --bi)
750 ac_prev=bindir ;;
751 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 752 bindir=$ac_optarg ;;
c906108c
SS
753
754 -build | --build | --buil | --bui | --bu)
bec39cab 755 ac_prev=build_alias ;;
c906108c 756 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 757 build_alias=$ac_optarg ;;
c906108c
SS
758
759 -cache-file | --cache-file | --cache-fil | --cache-fi \
760 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
761 ac_prev=cache_file ;;
762 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
763 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
764 cache_file=$ac_optarg ;;
765
766 --config-cache | -C)
767 cache_file=config.cache ;;
c906108c 768
81ecdfbb 769 -datadir | --datadir | --datadi | --datad)
c906108c 770 ac_prev=datadir ;;
81ecdfbb 771 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bec39cab 772 datadir=$ac_optarg ;;
c906108c 773
81ecdfbb
RW
774 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
775 | --dataroo | --dataro | --datar)
776 ac_prev=datarootdir ;;
777 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
778 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
779 datarootdir=$ac_optarg ;;
780
c906108c 781 -disable-* | --disable-*)
81ecdfbb 782 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 783 # Reject names that are not valid shell variable names.
81ecdfbb
RW
784 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
785 as_fn_error "invalid feature name: $ac_useropt"
786 ac_useropt_orig=$ac_useropt
787 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
788 case $ac_user_opts in
789 *"
790"enable_$ac_useropt"
791"*) ;;
792 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
793 ac_unrecognized_sep=', ';;
794 esac
795 eval enable_$ac_useropt=no ;;
796
797 -docdir | --docdir | --docdi | --doc | --do)
798 ac_prev=docdir ;;
799 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
800 docdir=$ac_optarg ;;
801
802 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
803 ac_prev=dvidir ;;
804 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
805 dvidir=$ac_optarg ;;
c906108c
SS
806
807 -enable-* | --enable-*)
81ecdfbb 808 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 809 # Reject names that are not valid shell variable names.
81ecdfbb
RW
810 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
811 as_fn_error "invalid feature name: $ac_useropt"
812 ac_useropt_orig=$ac_useropt
813 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
814 case $ac_user_opts in
815 *"
816"enable_$ac_useropt"
817"*) ;;
818 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
819 ac_unrecognized_sep=', ';;
c906108c 820 esac
81ecdfbb 821 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
822
823 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
824 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
825 | --exec | --exe | --ex)
826 ac_prev=exec_prefix ;;
827 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
828 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
829 | --exec=* | --exe=* | --ex=*)
bec39cab 830 exec_prefix=$ac_optarg ;;
c906108c
SS
831
832 -gas | --gas | --ga | --g)
833 # Obsolete; use --with-gas.
834 with_gas=yes ;;
835
bec39cab
AC
836 -help | --help | --hel | --he | -h)
837 ac_init_help=long ;;
838 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
839 ac_init_help=recursive ;;
840 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
841 ac_init_help=short ;;
c906108c
SS
842
843 -host | --host | --hos | --ho)
bec39cab 844 ac_prev=host_alias ;;
c906108c 845 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 846 host_alias=$ac_optarg ;;
c906108c 847
81ecdfbb
RW
848 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
849 ac_prev=htmldir ;;
850 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
851 | --ht=*)
852 htmldir=$ac_optarg ;;
853
c906108c
SS
854 -includedir | --includedir | --includedi | --included | --include \
855 | --includ | --inclu | --incl | --inc)
856 ac_prev=includedir ;;
857 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
858 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 859 includedir=$ac_optarg ;;
c906108c
SS
860
861 -infodir | --infodir | --infodi | --infod | --info | --inf)
862 ac_prev=infodir ;;
863 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 864 infodir=$ac_optarg ;;
c906108c
SS
865
866 -libdir | --libdir | --libdi | --libd)
867 ac_prev=libdir ;;
868 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 869 libdir=$ac_optarg ;;
c906108c
SS
870
871 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
872 | --libexe | --libex | --libe)
873 ac_prev=libexecdir ;;
874 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
875 | --libexe=* | --libex=* | --libe=*)
bec39cab 876 libexecdir=$ac_optarg ;;
c906108c 877
81ecdfbb
RW
878 -localedir | --localedir | --localedi | --localed | --locale)
879 ac_prev=localedir ;;
880 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
881 localedir=$ac_optarg ;;
882
c906108c 883 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 884 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
885 ac_prev=localstatedir ;;
886 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 887 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bec39cab 888 localstatedir=$ac_optarg ;;
c906108c
SS
889
890 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
891 ac_prev=mandir ;;
892 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 893 mandir=$ac_optarg ;;
c906108c
SS
894
895 -nfp | --nfp | --nf)
896 # Obsolete; use --without-fp.
897 with_fp=no ;;
898
899 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 900 | --no-cr | --no-c | -n)
c906108c
SS
901 no_create=yes ;;
902
903 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
904 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
905 no_recursion=yes ;;
906
907 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
908 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
909 | --oldin | --oldi | --old | --ol | --o)
910 ac_prev=oldincludedir ;;
911 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
912 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
913 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 914 oldincludedir=$ac_optarg ;;
c906108c
SS
915
916 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
917 ac_prev=prefix ;;
918 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 919 prefix=$ac_optarg ;;
c906108c
SS
920
921 -program-prefix | --program-prefix | --program-prefi | --program-pref \
922 | --program-pre | --program-pr | --program-p)
923 ac_prev=program_prefix ;;
924 -program-prefix=* | --program-prefix=* | --program-prefi=* \
925 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 926 program_prefix=$ac_optarg ;;
c906108c
SS
927
928 -program-suffix | --program-suffix | --program-suffi | --program-suff \
929 | --program-suf | --program-su | --program-s)
930 ac_prev=program_suffix ;;
931 -program-suffix=* | --program-suffix=* | --program-suffi=* \
932 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 933 program_suffix=$ac_optarg ;;
c906108c
SS
934
935 -program-transform-name | --program-transform-name \
936 | --program-transform-nam | --program-transform-na \
937 | --program-transform-n | --program-transform- \
938 | --program-transform | --program-transfor \
939 | --program-transfo | --program-transf \
940 | --program-trans | --program-tran \
941 | --progr-tra | --program-tr | --program-t)
942 ac_prev=program_transform_name ;;
943 -program-transform-name=* | --program-transform-name=* \
944 | --program-transform-nam=* | --program-transform-na=* \
945 | --program-transform-n=* | --program-transform-=* \
946 | --program-transform=* | --program-transfor=* \
947 | --program-transfo=* | --program-transf=* \
948 | --program-trans=* | --program-tran=* \
949 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 950 program_transform_name=$ac_optarg ;;
c906108c 951
81ecdfbb
RW
952 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
953 ac_prev=pdfdir ;;
954 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
955 pdfdir=$ac_optarg ;;
956
957 -psdir | --psdir | --psdi | --psd | --ps)
958 ac_prev=psdir ;;
959 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
960 psdir=$ac_optarg ;;
961
c906108c
SS
962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
963 | -silent | --silent | --silen | --sile | --sil)
964 silent=yes ;;
965
966 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
967 ac_prev=sbindir ;;
968 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
969 | --sbi=* | --sb=*)
bec39cab 970 sbindir=$ac_optarg ;;
c906108c
SS
971
972 -sharedstatedir | --sharedstatedir | --sharedstatedi \
973 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
974 | --sharedst | --shareds | --shared | --share | --shar \
975 | --sha | --sh)
976 ac_prev=sharedstatedir ;;
977 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
978 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
979 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
980 | --sha=* | --sh=*)
bec39cab 981 sharedstatedir=$ac_optarg ;;
c906108c
SS
982
983 -site | --site | --sit)
984 ac_prev=site ;;
985 -site=* | --site=* | --sit=*)
bec39cab 986 site=$ac_optarg ;;
5710a1af 987
c906108c
SS
988 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
989 ac_prev=srcdir ;;
990 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 991 srcdir=$ac_optarg ;;
c906108c
SS
992
993 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
994 | --syscon | --sysco | --sysc | --sys | --sy)
995 ac_prev=sysconfdir ;;
996 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
997 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 998 sysconfdir=$ac_optarg ;;
c906108c
SS
999
1000 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 1001 ac_prev=target_alias ;;
c906108c 1002 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 1003 target_alias=$ac_optarg ;;
c906108c
SS
1004
1005 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1006 verbose=yes ;;
1007
bec39cab
AC
1008 -version | --version | --versio | --versi | --vers | -V)
1009 ac_init_version=: ;;
c906108c
SS
1010
1011 -with-* | --with-*)
81ecdfbb 1012 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1013 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error "invalid package name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020"with_$ac_useropt"
1021"*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
c906108c 1024 esac
81ecdfbb 1025 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1026
1027 -without-* | --without-*)
81ecdfbb 1028 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1029 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031 as_fn_error "invalid package name: $ac_useropt"
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1035 *"
1036"with_$ac_useropt"
1037"*) ;;
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1040 esac
1041 eval with_$ac_useropt=no ;;
c906108c
SS
1042
1043 --x)
1044 # Obsolete; use --with-x.
1045 with_x=yes ;;
1046
1047 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1048 | --x-incl | --x-inc | --x-in | --x-i)
1049 ac_prev=x_includes ;;
1050 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1051 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 1052 x_includes=$ac_optarg ;;
c906108c
SS
1053
1054 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1055 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1056 ac_prev=x_libraries ;;
1057 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1058 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 1059 x_libraries=$ac_optarg ;;
c906108c 1060
81ecdfbb
RW
1061 -*) as_fn_error "unrecognized option: \`$ac_option'
1062Try \`$0 --help' for more information."
c906108c
SS
1063 ;;
1064
bec39cab
AC
1065 *=*)
1066 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1067 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1068 case $ac_envvar in #(
1069 '' | [0-9]* | *[!_$as_cr_alnum]* )
1070 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1071 esac
1072 eval $ac_envvar=\$ac_optarg
bec39cab
AC
1073 export $ac_envvar ;;
1074
c906108c 1075 *)
bec39cab 1076 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1077 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bec39cab 1078 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1079 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
bec39cab 1080 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
1081 ;;
1082
1083 esac
1084done
1085
1086if test -n "$ac_prev"; then
bec39cab 1087 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1088 as_fn_error "missing argument to $ac_option"
c906108c
SS
1089fi
1090
81ecdfbb
RW
1091if test -n "$ac_unrecognized_opts"; then
1092 case $enable_option_checking in
1093 no) ;;
1094 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1095 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
bec39cab 1096 esac
81ecdfbb 1097fi
c906108c 1098
81ecdfbb
RW
1099# Check all directory arguments for consistency.
1100for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1101 datadir sysconfdir sharedstatedir localstatedir includedir \
1102 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1103 libdir localedir mandir
c906108c 1104do
81ecdfbb
RW
1105 eval ac_val=\$$ac_var
1106 # Remove trailing slashes.
bec39cab 1107 case $ac_val in
81ecdfbb
RW
1108 */ )
1109 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1110 eval $ac_var=\$ac_val;;
c906108c 1111 esac
81ecdfbb
RW
1112 # Be sure to have absolute directory names.
1113 case $ac_val in
1114 [\\/$]* | ?:[\\/]* ) continue;;
1115 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1116 esac
1117 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1118done
1119
bec39cab
AC
1120# There might be people who depend on the old broken behavior: `$host'
1121# used to hold the argument of --host etc.
1122# FIXME: To remove some day.
1123build=$build_alias
1124host=$host_alias
1125target=$target_alias
1126
1127# FIXME: To remove some day.
1128if test "x$host_alias" != x; then
1129 if test "x$build_alias" = x; then
1130 cross_compiling=maybe
81ecdfbb 1131 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
bec39cab
AC
1132 If a cross compiler is detected then cross compile mode will be used." >&2
1133 elif test "x$build_alias" != "x$host_alias"; then
1134 cross_compiling=yes
1135 fi
1136fi
c906108c 1137
bec39cab
AC
1138ac_tool_prefix=
1139test -n "$host_alias" && ac_tool_prefix=$host_alias-
1140
1141test "$silent" = yes && exec 6>/dev/null
c906108c 1142
c906108c 1143
81ecdfbb
RW
1144ac_pwd=`pwd` && test -n "$ac_pwd" &&
1145ac_ls_di=`ls -di .` &&
1146ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1147 as_fn_error "working directory cannot be determined"
1148test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1149 as_fn_error "pwd does not report name of working directory"
1150
1151
c906108c
SS
1152# Find the source files, if location was not specified.
1153if test -z "$srcdir"; then
1154 ac_srcdir_defaulted=yes
81ecdfbb
RW
1155 # Try the directory containing this script, then the parent directory.
1156 ac_confdir=`$as_dirname -- "$as_myself" ||
1157$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1158 X"$as_myself" : 'X\(//\)[^/]' \| \
1159 X"$as_myself" : 'X\(//\)$' \| \
1160 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1161$as_echo X"$as_myself" |
1162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1163 s//\1/
1164 q
1165 }
1166 /^X\(\/\/\)[^/].*/{
1167 s//\1/
1168 q
1169 }
1170 /^X\(\/\/\)$/{
1171 s//\1/
1172 q
1173 }
1174 /^X\(\/\).*/{
1175 s//\1/
1176 q
1177 }
1178 s/.*/./; q'`
c906108c 1179 srcdir=$ac_confdir
81ecdfbb 1180 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1181 srcdir=..
1182 fi
1183else
1184 ac_srcdir_defaulted=no
1185fi
81ecdfbb
RW
1186if test ! -r "$srcdir/$ac_unique_file"; then
1187 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1188 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1189fi
1190ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1191ac_abs_confdir=`(
1192 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1193 pwd)`
1194# When building in place, set srcdir=.
1195if test "$ac_abs_confdir" = "$ac_pwd"; then
1196 srcdir=.
1197fi
1198# Remove unnecessary trailing slashes from srcdir.
1199# Double slashes in file names in object file debugging info
1200# mess up M-x gdb in Emacs.
1201case $srcdir in
1202*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1203esac
1204for ac_var in $ac_precious_vars; do
1205 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1206 eval ac_env_${ac_var}_value=\$${ac_var}
1207 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1208 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1209done
c906108c 1210
bec39cab
AC
1211#
1212# Report the --help message.
1213#
1214if test "$ac_init_help" = "long"; then
1215 # Omit some internal or obsolete options to make the list less imposing.
1216 # This message is too long to be a string in the A/UX 3.1 sh.
1217 cat <<_ACEOF
1218\`configure' configures this package to adapt to many kinds of systems.
1219
1220Usage: $0 [OPTION]... [VAR=VALUE]...
1221
1222To assign environment variables (e.g., CC, CFLAGS...), specify them as
1223VAR=VALUE. See below for descriptions of some of the useful variables.
1224
1225Defaults for the options are specified in brackets.
1226
1227Configuration:
1228 -h, --help display this help and exit
1229 --help=short display options specific to this package
1230 --help=recursive display the short help of all the included packages
1231 -V, --version display version information and exit
1232 -q, --quiet, --silent do not print \`checking...' messages
1233 --cache-file=FILE cache test results in FILE [disabled]
1234 -C, --config-cache alias for \`--cache-file=config.cache'
1235 -n, --no-create do not create output files
1236 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1237
bec39cab
AC
1238Installation directories:
1239 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1240 [$ac_default_prefix]
bec39cab 1241 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1242 [PREFIX]
bec39cab
AC
1243
1244By default, \`make install' will install all the files in
1245\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1246an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1247for instance \`--prefix=\$HOME'.
1248
1249For better control, use the options below.
1250
1251Fine tuning of the installation directories:
81ecdfbb
RW
1252 --bindir=DIR user executables [EPREFIX/bin]
1253 --sbindir=DIR system admin executables [EPREFIX/sbin]
1254 --libexecdir=DIR program executables [EPREFIX/libexec]
1255 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1256 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1257 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1258 --libdir=DIR object code libraries [EPREFIX/lib]
1259 --includedir=DIR C header files [PREFIX/include]
1260 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1261 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1262 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1263 --infodir=DIR info documentation [DATAROOTDIR/info]
1264 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1265 --mandir=DIR man documentation [DATAROOTDIR/man]
1266 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1267 --htmldir=DIR html documentation [DOCDIR]
1268 --dvidir=DIR dvi documentation [DOCDIR]
1269 --pdfdir=DIR pdf documentation [DOCDIR]
1270 --psdir=DIR ps documentation [DOCDIR]
bec39cab
AC
1271_ACEOF
1272
1273 cat <<\_ACEOF
1274
1275System types:
1276 --build=BUILD configure for building on BUILD [guessed]
1277 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1278 --target=TARGET configure for building compilers for TARGET [HOST]
1279_ACEOF
1280fi
1281
1282if test -n "$ac_init_help"; then
1283
1284 cat <<\_ACEOF
1285
1286Optional Features:
81ecdfbb 1287 --disable-option-checking ignore unrecognized --enable/--with options
bec39cab
AC
1288 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1289 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
a13c5393 1290 --enable-gtk enable gdbtk graphical user interface (GUI)
bec39cab
AC
1291 --enable-shared build shared libraries deault=yes
1292
bec39cab
AC
1293Some influential environment variables:
1294 CC C compiler command
1295 CFLAGS C compiler flags
1296 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1297 nonstandard directory <lib dir>
81ecdfbb
RW
1298 LIBS libraries to pass to the linker, e.g. -l<library>
1299 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1300 you have headers in a nonstandard directory <include dir>
bec39cab
AC
1301 CPP C preprocessor
1302
1303Use these variables to override the choices made by `configure' or to help
1304it to find libraries and programs with nonstandard names/locations.
1305
81ecdfbb 1306Report bugs to the package provider.
bec39cab 1307_ACEOF
81ecdfbb 1308ac_status=$?
bec39cab
AC
1309fi
1310
1311if test "$ac_init_help" = "recursive"; then
1312 # If there are subdirs, report their specific --help.
bec39cab 1313 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1314 test -d "$ac_dir" ||
1315 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1316 continue
bec39cab
AC
1317 ac_builddir=.
1318
81ecdfbb
RW
1319case "$ac_dir" in
1320.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1321*)
1322 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1323 # A ".." for each directory in $ac_dir_suffix.
1324 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1325 case $ac_top_builddir_sub in
1326 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1327 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1328 esac ;;
1329esac
1330ac_abs_top_builddir=$ac_pwd
1331ac_abs_builddir=$ac_pwd$ac_dir_suffix
1332# for backward compatibility:
1333ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
1334
1335case $srcdir in
81ecdfbb 1336 .) # We are building in place.
bec39cab 1337 ac_srcdir=.
81ecdfbb
RW
1338 ac_top_srcdir=$ac_top_builddir_sub
1339 ac_abs_top_srcdir=$ac_pwd ;;
1340 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 1341 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1342 ac_top_srcdir=$srcdir
1343 ac_abs_top_srcdir=$srcdir ;;
1344 *) # Relative name.
1345 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1346 ac_top_srcdir=$ac_top_build_prefix$srcdir
1347 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 1348esac
81ecdfbb 1349ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab 1350
81ecdfbb
RW
1351 cd "$ac_dir" || { ac_status=$?; continue; }
1352 # Check for guested configure.
1353 if test -f "$ac_srcdir/configure.gnu"; then
1354 echo &&
1355 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1356 elif test -f "$ac_srcdir/configure"; then
1357 echo &&
1358 $SHELL "$ac_srcdir/configure" --help=recursive
bec39cab 1359 else
81ecdfbb
RW
1360 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1361 fi || ac_status=$?
1362 cd "$ac_pwd" || { ac_status=$?; break; }
bec39cab
AC
1363 done
1364fi
1365
81ecdfbb 1366test -n "$ac_init_help" && exit $ac_status
bec39cab
AC
1367if $ac_init_version; then
1368 cat <<\_ACEOF
81ecdfbb
RW
1369configure
1370generated by GNU Autoconf 2.64
bec39cab 1371
81ecdfbb 1372Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
1373This configure script is free software; the Free Software Foundation
1374gives unlimited permission to copy, distribute and modify it.
1375_ACEOF
81ecdfbb 1376 exit
bec39cab 1377fi
bec39cab 1378
81ecdfbb
RW
1379## ------------------------ ##
1380## Autoconf initialization. ##
1381## ------------------------ ##
bec39cab 1382
81ecdfbb
RW
1383# ac_fn_c_try_compile LINENO
1384# --------------------------
1385# Try to compile conftest.$ac_ext, and return whether this succeeded.
1386ac_fn_c_try_compile ()
bec39cab 1387{
81ecdfbb
RW
1388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1389 rm -f conftest.$ac_objext
1390 if { { ac_try="$ac_compile"
1391case "(($ac_try" in
1392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1393 *) ac_try_echo=$ac_try;;
1394esac
1395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1396$as_echo "$ac_try_echo"; } >&5
1397 (eval "$ac_compile") 2>conftest.err
1398 ac_status=$?
1399 if test -s conftest.err; then
1400 grep -v '^ *+' conftest.err >conftest.er1
1401 cat conftest.er1 >&5
1402 mv -f conftest.er1 conftest.err
1403 fi
1404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1405 test $ac_status = 0; } && {
1406 test -z "$ac_c_werror_flag" ||
1407 test ! -s conftest.err
1408 } && test -s conftest.$ac_objext; then :
1409 ac_retval=0
1410else
1411 $as_echo "$as_me: failed program was:" >&5
1412sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1413
81ecdfbb
RW
1414 ac_retval=1
1415fi
1416 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1417 return $ac_retval
bec39cab 1418
81ecdfbb 1419} # ac_fn_c_try_compile
bec39cab 1420
81ecdfbb
RW
1421# ac_fn_c_try_cpp LINENO
1422# ----------------------
1423# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1424ac_fn_c_try_cpp ()
1425{
1426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1427 if { { ac_try="$ac_cpp conftest.$ac_ext"
1428case "(($ac_try" in
1429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1430 *) ac_try_echo=$ac_try;;
1431esac
1432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1433$as_echo "$ac_try_echo"; } >&5
1434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1435 ac_status=$?
1436 if test -s conftest.err; then
1437 grep -v '^ *+' conftest.err >conftest.er1
1438 cat conftest.er1 >&5
1439 mv -f conftest.er1 conftest.err
1440 fi
1441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1442 test $ac_status = 0; } >/dev/null && {
1443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1444 test ! -s conftest.err
1445 }; then :
1446 ac_retval=0
1447else
1448 $as_echo "$as_me: failed program was:" >&5
1449sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1450
81ecdfbb
RW
1451 ac_retval=1
1452fi
1453 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1454 return $ac_retval
bec39cab 1455
81ecdfbb 1456} # ac_fn_c_try_cpp
bec39cab 1457
81ecdfbb
RW
1458# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1459# -------------------------------------------------------
1460# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1461# the include files in INCLUDES and setting the cache variable VAR
1462# accordingly.
1463ac_fn_c_check_header_mongrel ()
1464{
1465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1466 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1468$as_echo_n "checking for $2... " >&6; }
1469if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1470 $as_echo_n "(cached) " >&6
1471fi
1472eval ac_res=\$$3
1473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1474$as_echo "$ac_res" >&6; }
1475else
1476 # Is the header compilable?
1477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1478$as_echo_n "checking $2 usability... " >&6; }
1479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1480/* end confdefs.h. */
1481$4
1482#include <$2>
1483_ACEOF
1484if ac_fn_c_try_compile "$LINENO"; then :
1485 ac_header_compiler=yes
1486else
1487 ac_header_compiler=no
1488fi
1489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1491$as_echo "$ac_header_compiler" >&6; }
1492
1493# Is the header present?
1494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1495$as_echo_n "checking $2 presence... " >&6; }
1496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1497/* end confdefs.h. */
1498#include <$2>
1499_ACEOF
1500if ac_fn_c_try_cpp "$LINENO"; then :
1501 ac_header_preproc=yes
1502else
1503 ac_header_preproc=no
1504fi
1505rm -f conftest.err conftest.$ac_ext
1506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1507$as_echo "$ac_header_preproc" >&6; }
1508
1509# So? What about this header?
1510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1511 yes:no: )
1512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1513$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1515$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1516 ;;
1517 no:yes:* )
1518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1519$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1521$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1523$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1525$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1527$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1528 ;;
1529esac
1530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1531$as_echo_n "checking for $2... " >&6; }
1532if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1533 $as_echo_n "(cached) " >&6
1534else
1535 eval "$3=\$ac_header_compiler"
1536fi
1537eval ac_res=\$$3
1538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1539$as_echo "$ac_res" >&6; }
1540fi
1541 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1542
1543} # ac_fn_c_check_header_mongrel
1544
1545# ac_fn_c_try_run LINENO
1546# ----------------------
1547# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1548# that executables *can* be run.
1549ac_fn_c_try_run ()
1550{
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 if { { ac_try="$ac_link"
1553case "(($ac_try" in
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1556esac
1557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558$as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_link") 2>&5
1560 ac_status=$?
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1563 { { case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566esac
1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568$as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_try") 2>&5
1570 ac_status=$?
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; }; }; then :
1573 ac_retval=0
1574else
1575 $as_echo "$as_me: program exited with status $ac_status" >&5
1576 $as_echo "$as_me: failed program was:" >&5
1577sed 's/^/| /' conftest.$ac_ext >&5
1578
1579 ac_retval=$ac_status
1580fi
1581 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1583 return $ac_retval
1584
1585} # ac_fn_c_try_run
1586
1587# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1588# -------------------------------------------------------
1589# Tests whether HEADER exists and can be compiled using the include files in
1590# INCLUDES, setting the cache variable VAR accordingly.
1591ac_fn_c_check_header_compile ()
1592{
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1595$as_echo_n "checking for $2... " >&6; }
1596if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1597 $as_echo_n "(cached) " >&6
1598else
1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600/* end confdefs.h. */
1601$4
1602#include <$2>
1603_ACEOF
1604if ac_fn_c_try_compile "$LINENO"; then :
1605 eval "$3=yes"
1606else
1607 eval "$3=no"
1608fi
1609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1610fi
1611eval ac_res=\$$3
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613$as_echo "$ac_res" >&6; }
1614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1615
1616} # ac_fn_c_check_header_compile
1617cat >config.log <<_ACEOF
1618This file contains any messages produced by compilers while
1619running configure, to aid debugging if configure makes a mistake.
1620
1621It was created by $as_me, which was
1622generated by GNU Autoconf 2.64. Invocation command line was
1623
1624 $ $0 $@
1625
1626_ACEOF
1627exec 5>>config.log
1628{
1629cat <<_ASUNAME
1630## --------- ##
1631## Platform. ##
1632## --------- ##
1633
1634hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1635uname -m = `(uname -m) 2>/dev/null || echo unknown`
1636uname -r = `(uname -r) 2>/dev/null || echo unknown`
1637uname -s = `(uname -s) 2>/dev/null || echo unknown`
1638uname -v = `(uname -v) 2>/dev/null || echo unknown`
1639
1640/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1641/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1642
1643/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1644/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1645/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1646/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1647/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1648/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1649/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1650
1651_ASUNAME
1652
1653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654for as_dir in $PATH
1655do
1656 IFS=$as_save_IFS
1657 test -z "$as_dir" && as_dir=.
1658 $as_echo "PATH: $as_dir"
1659 done
1660IFS=$as_save_IFS
1661
1662} >&5
1663
1664cat >&5 <<_ACEOF
bec39cab
AC
1665
1666
1667## ----------- ##
1668## Core tests. ##
1669## ----------- ##
1670
1671_ACEOF
1672
1673
1674# Keep a trace of the command line.
1675# Strip out --no-create and --no-recursion so they do not pile up.
1676# Strip out --silent because we don't want to record it for future runs.
1677# Also quote any args containing shell meta-characters.
1678# Make two passes to allow for proper duplicate-argument suppression.
1679ac_configure_args=
1680ac_configure_args0=
1681ac_configure_args1=
bec39cab
AC
1682ac_must_keep_next=false
1683for ac_pass in 1 2
1684do
1685 for ac_arg
1686 do
1687 case $ac_arg in
1688 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1690 | -silent | --silent | --silen | --sile | --sil)
1691 continue ;;
81ecdfbb
RW
1692 *\'*)
1693 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1694 esac
1695 case $ac_pass in
81ecdfbb 1696 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
bec39cab 1697 2)
81ecdfbb 1698 as_fn_append ac_configure_args1 " '$ac_arg'"
bec39cab
AC
1699 if test $ac_must_keep_next = true; then
1700 ac_must_keep_next=false # Got value, back to normal.
1701 else
1702 case $ac_arg in
1703 *=* | --config-cache | -C | -disable-* | --disable-* \
1704 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1705 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1706 | -with-* | --with-* | -without-* | --without-* | --x)
1707 case "$ac_configure_args0 " in
1708 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1709 esac
1710 ;;
1711 -* ) ac_must_keep_next=true ;;
1712 esac
1713 fi
81ecdfbb 1714 as_fn_append ac_configure_args " '$ac_arg'"
bec39cab
AC
1715 ;;
1716 esac
1717 done
1718done
81ecdfbb
RW
1719{ ac_configure_args0=; unset ac_configure_args0;}
1720{ ac_configure_args1=; unset ac_configure_args1;}
bec39cab
AC
1721
1722# When interrupted or exit'd, cleanup temporary files, and complete
1723# config.log. We remove comments because anyway the quotes in there
1724# would cause problems or look ugly.
81ecdfbb
RW
1725# WARNING: Use '\'' to represent an apostrophe within the trap.
1726# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
bec39cab
AC
1727trap 'exit_status=$?
1728 # Save into config.log some information that might help in debugging.
1729 {
1730 echo
1731
1732 cat <<\_ASBOX
1733## ---------------- ##
1734## Cache variables. ##
1735## ---------------- ##
1736_ASBOX
1737 echo
1738 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1739(
1740 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1741 eval ac_val=\$$ac_var
1742 case $ac_val in #(
1743 *${as_nl}*)
1744 case $ac_var in #(
1745 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1746$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1747 esac
1748 case $ac_var in #(
1749 _ | IFS | as_nl) ;; #(
1750 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1751 *) { eval $ac_var=; unset $ac_var;} ;;
1752 esac ;;
1753 esac
1754 done
bec39cab 1755 (set) 2>&1 |
81ecdfbb
RW
1756 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1757 *${as_nl}ac_space=\ *)
bec39cab 1758 sed -n \
81ecdfbb
RW
1759 "s/'\''/'\''\\\\'\'''\''/g;
1760 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1761 ;; #(
bec39cab 1762 *)
81ecdfbb 1763 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 1764 ;;
81ecdfbb
RW
1765 esac |
1766 sort
1767)
bec39cab
AC
1768 echo
1769
1770 cat <<\_ASBOX
1771## ----------------- ##
1772## Output variables. ##
1773## ----------------- ##
1774_ASBOX
1775 echo
1776 for ac_var in $ac_subst_vars
1777 do
81ecdfbb
RW
1778 eval ac_val=\$$ac_var
1779 case $ac_val in
1780 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1781 esac
1782 $as_echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
1783 done | sort
1784 echo
1785
1786 if test -n "$ac_subst_files"; then
1787 cat <<\_ASBOX
81ecdfbb
RW
1788## ------------------- ##
1789## File substitutions. ##
1790## ------------------- ##
bec39cab
AC
1791_ASBOX
1792 echo
1793 for ac_var in $ac_subst_files
1794 do
81ecdfbb
RW
1795 eval ac_val=\$$ac_var
1796 case $ac_val in
1797 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1798 esac
1799 $as_echo "$ac_var='\''$ac_val'\''"
bec39cab
AC
1800 done | sort
1801 echo
1802 fi
1803
1804 if test -s confdefs.h; then
1805 cat <<\_ASBOX
1806## ----------- ##
1807## confdefs.h. ##
1808## ----------- ##
1809_ASBOX
1810 echo
81ecdfbb 1811 cat confdefs.h
bec39cab 1812 echo
5710a1af 1813 fi
bec39cab 1814 test "$ac_signal" != 0 &&
81ecdfbb
RW
1815 $as_echo "$as_me: caught signal $ac_signal"
1816 $as_echo "$as_me: exit $exit_status"
bec39cab 1817 } >&5
81ecdfbb
RW
1818 rm -f core *.core core.conftest.* &&
1819 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1820 exit $exit_status
81ecdfbb 1821' 0
bec39cab 1822for ac_signal in 1 2 13 15; do
81ecdfbb 1823 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
bec39cab
AC
1824done
1825ac_signal=0
1826
1827# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1828rm -f -r conftest* confdefs.h
1829
1830$as_echo "/* confdefs.h */" > confdefs.h
bec39cab
AC
1831
1832# Predefined preprocessor variables.
1833
1834cat >>confdefs.h <<_ACEOF
1835#define PACKAGE_NAME "$PACKAGE_NAME"
1836_ACEOF
1837
bec39cab
AC
1838cat >>confdefs.h <<_ACEOF
1839#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1840_ACEOF
1841
bec39cab
AC
1842cat >>confdefs.h <<_ACEOF
1843#define PACKAGE_VERSION "$PACKAGE_VERSION"
1844_ACEOF
1845
bec39cab
AC
1846cat >>confdefs.h <<_ACEOF
1847#define PACKAGE_STRING "$PACKAGE_STRING"
1848_ACEOF
1849
bec39cab
AC
1850cat >>confdefs.h <<_ACEOF
1851#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1852_ACEOF
1853
81ecdfbb
RW
1854cat >>confdefs.h <<_ACEOF
1855#define PACKAGE_URL "$PACKAGE_URL"
1856_ACEOF
1857
bec39cab
AC
1858
1859# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
1860# Prefer an explicitly selected file to automatically selected ones.
1861ac_site_file1=NONE
1862ac_site_file2=NONE
1863if test -n "$CONFIG_SITE"; then
1864 ac_site_file1=$CONFIG_SITE
1865elif test "x$prefix" != xNONE; then
1866 ac_site_file1=$prefix/share/config.site
1867 ac_site_file2=$prefix/etc/config.site
1868else
1869 ac_site_file1=$ac_default_prefix/share/config.site
1870 ac_site_file2=$ac_default_prefix/etc/config.site
c906108c 1871fi
81ecdfbb
RW
1872for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1873do
1874 test "x$ac_site_file" = xNONE && continue
c906108c 1875 if test -r "$ac_site_file"; then
81ecdfbb
RW
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1877$as_echo "$as_me: loading site script $ac_site_file" >&6;}
bec39cab 1878 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1879 . "$ac_site_file"
1880 fi
1881done
1882
1883if test -r "$cache_file"; then
bec39cab
AC
1884 # Some versions of bash will fail to source /dev/null (special
1885 # files actually), so we avoid doing that.
1886 if test -f "$cache_file"; then
81ecdfbb
RW
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1888$as_echo "$as_me: loading cache $cache_file" >&6;}
bec39cab 1889 case $cache_file in
81ecdfbb
RW
1890 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1891 *) . "./$cache_file";;
bec39cab
AC
1892 esac
1893 fi
c906108c 1894else
81ecdfbb
RW
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1896$as_echo "$as_me: creating cache $cache_file" >&6;}
bec39cab 1897 >$cache_file
c906108c
SS
1898fi
1899
bec39cab
AC
1900# Check that the precious variables saved in the cache have kept the same
1901# value.
1902ac_cache_corrupted=false
81ecdfbb 1903for ac_var in $ac_precious_vars; do
bec39cab
AC
1904 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1905 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
1906 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1907 eval ac_new_val=\$ac_env_${ac_var}_value
bec39cab
AC
1908 case $ac_old_set,$ac_new_set in
1909 set,)
81ecdfbb
RW
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1911$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
bec39cab
AC
1912 ac_cache_corrupted=: ;;
1913 ,set)
81ecdfbb
RW
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1915$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
bec39cab
AC
1916 ac_cache_corrupted=: ;;
1917 ,);;
1918 *)
1919 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
1920 # differences in whitespace do not lead to failure.
1921 ac_old_val_w=`echo x $ac_old_val`
1922 ac_new_val_w=`echo x $ac_new_val`
1923 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1925$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1926 ac_cache_corrupted=:
1927 else
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1929$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1930 eval $ac_var=\$ac_old_val
1931 fi
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1933$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1935$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
bec39cab
AC
1936 fi;;
1937 esac
1938 # Pass precious variables to config.status.
1939 if test "$ac_new_set" = set; then
1940 case $ac_new_val in
81ecdfbb 1941 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1942 *) ac_arg=$ac_var=$ac_new_val ;;
1943 esac
1944 case " $ac_configure_args " in
1945 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 1946 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
bec39cab 1947 esac
c906108c 1948 fi
bec39cab
AC
1949done
1950if $ac_cache_corrupted; then
81ecdfbb
RW
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1954$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1955 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c906108c 1956fi
81ecdfbb
RW
1957## -------------------- ##
1958## Main body of script. ##
1959## -------------------- ##
c906108c 1960
bec39cab
AC
1961ac_ext=c
1962ac_cpp='$CPP $CPPFLAGS'
1963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965ac_compiler_gnu=$ac_cv_c_compiler_gnu
1966
1967
1968
bec39cab 1969
c906108c
SS
1970
1971
c906108c 1972ac_aux_dir=
81ecdfbb
RW
1973for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1974 for ac_t in install-sh install.sh shtool; do
1975 if test -f "$ac_dir/$ac_t"; then
1976 ac_aux_dir=$ac_dir
1977 ac_install_sh="$ac_aux_dir/$ac_t -c"
1978 break 2
1979 fi
1980 done
c906108c
SS
1981done
1982if test -z "$ac_aux_dir"; then
81ecdfbb 1983 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
bec39cab 1984fi
81ecdfbb
RW
1985
1986# These three variables are undocumented and unsupported,
1987# and are intended to be withdrawn in a future Autoconf release.
1988# They can cause serious problems if a builder's source tree is in a directory
1989# whose full name contains unusual characters.
1990ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1991ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1992ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1993
c906108c
SS
1994
1995# Make sure we can run config.sub.
81ecdfbb
RW
1996$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1997 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1998
1999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2000$as_echo_n "checking build system type... " >&6; }
2001if test "${ac_cv_build+set}" = set; then :
2002 $as_echo_n "(cached) " >&6
bec39cab 2003else
81ecdfbb
RW
2004 ac_build_alias=$build_alias
2005test "x$ac_build_alias" = x &&
2006 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2007test "x$ac_build_alias" = x &&
2008 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2009ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2010 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2011
2012fi
2013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2014$as_echo "$ac_cv_build" >&6; }
2015case $ac_cv_build in
2016*-*-*) ;;
2017*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2018esac
bec39cab 2019build=$ac_cv_build
81ecdfbb
RW
2020ac_save_IFS=$IFS; IFS='-'
2021set x $ac_cv_build
2022shift
2023build_cpu=$1
2024build_vendor=$2
2025shift; shift
2026# Remember, the first character of IFS is used to create $*,
2027# except with old shells:
2028build_os=$*
2029IFS=$ac_save_IFS
2030case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2031
2032
2033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2034$as_echo_n "checking host system type... " >&6; }
2035if test "${ac_cv_host+set}" = set; then :
2036 $as_echo_n "(cached) " >&6
2037else
2038 if test "x$host_alias" = x; then
2039 ac_cv_host=$ac_cv_build
bec39cab 2040else
81ecdfbb
RW
2041 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2042 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2043fi
c906108c 2044
bec39cab 2045fi
81ecdfbb
RW
2046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2047$as_echo "$ac_cv_host" >&6; }
2048case $ac_cv_host in
2049*-*-*) ;;
2050*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2051esac
bec39cab 2052host=$ac_cv_host
81ecdfbb
RW
2053ac_save_IFS=$IFS; IFS='-'
2054set x $ac_cv_host
2055shift
2056host_cpu=$1
2057host_vendor=$2
2058shift; shift
2059# Remember, the first character of IFS is used to create $*,
2060# except with old shells:
2061host_os=$*
2062IFS=$ac_save_IFS
2063case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2064
2065
2066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2067$as_echo_n "checking target system type... " >&6; }
2068if test "${ac_cv_target+set}" = set; then :
2069 $as_echo_n "(cached) " >&6
bec39cab 2070else
81ecdfbb
RW
2071 if test "x$target_alias" = x; then
2072 ac_cv_target=$ac_cv_host
2073else
2074 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2075 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2076fi
c906108c 2077
bec39cab 2078fi
81ecdfbb
RW
2079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2080$as_echo "$ac_cv_target" >&6; }
2081case $ac_cv_target in
2082*-*-*) ;;
2083*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2084esac
bec39cab 2085target=$ac_cv_target
81ecdfbb
RW
2086ac_save_IFS=$IFS; IFS='-'
2087set x $ac_cv_target
2088shift
2089target_cpu=$1
2090target_vendor=$2
2091shift; shift
2092# Remember, the first character of IFS is used to create $*,
2093# except with old shells:
2094target_os=$*
2095IFS=$ac_save_IFS
2096case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c906108c 2097
c906108c 2098
bec39cab
AC
2099# The aliases save the names the user supplied, while $host etc.
2100# will get canonicalized.
2101test -n "$target_alias" &&
2102 test "$program_prefix$program_suffix$program_transform_name" = \
2103 NONENONEs,x,x, &&
2104 program_prefix=${target_alias}-
c906108c 2105
be2a5f71
DJ
2106 case ${build_alias} in
2107 "") build_noncanonical=${build} ;;
2108 *) build_noncanonical=${build_alias} ;;
2109esac
2110
2111 case ${host_alias} in
2112 "") host_noncanonical=${build_noncanonical} ;;
2113 *) host_noncanonical=${host_alias} ;;
2114esac
2115
2116 case ${target_alias} in
2117 "") target_noncanonical=${host_noncanonical} ;;
2118 *) target_noncanonical=${target_alias} ;;
2119esac
2120
2121
2122
2123
6bc80edc
TT
2124# Check for the 'make' the user wants to use.
2125for ac_prog in make
2126do
2127 # Extract the first word of "$ac_prog", so it can be a program name with args.
2128set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2130$as_echo_n "checking for $ac_word... " >&6; }
2131if test "${ac_cv_prog_MAKE+set}" = set; then :
2132 $as_echo_n "(cached) " >&6
6bc80edc
TT
2133else
2134 if test -n "$MAKE"; then
2135 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2136else
2137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138for as_dir in $PATH
2139do
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6bc80edc 2144 ac_cv_prog_MAKE="$ac_prog"
81ecdfbb 2145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6bc80edc
TT
2146 break 2
2147 fi
2148done
81ecdfbb
RW
2149 done
2150IFS=$as_save_IFS
6bc80edc
TT
2151
2152fi
2153fi
2154MAKE=$ac_cv_prog_MAKE
2155if test -n "$MAKE"; then
81ecdfbb
RW
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
2157$as_echo "$MAKE" >&6; }
6bc80edc 2158else
81ecdfbb
RW
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2160$as_echo "no" >&6; }
6bc80edc
TT
2161fi
2162
81ecdfbb 2163
6bc80edc
TT
2164 test -n "$MAKE" && break
2165done
2166
2167MAKE_IS_GNU=
2168case "`$MAKE --version 2>&1 | sed 1q`" in
2169 *GNU*)
2170 MAKE_IS_GNU=yes
2171 ;;
2172esac
2173
2174
2175if test "$MAKE_IS_GNU" = yes; then
2176 GMAKE_TRUE=
2177 GMAKE_FALSE='#'
2178else
2179 GMAKE_TRUE='#'
2180 GMAKE_FALSE=
2181fi
2182
81ecdfbb
RW
2183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2184$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2185set x ${MAKE-make}
2186ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2187if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2188 $as_echo_n "(cached) " >&6
6bc80edc
TT
2189else
2190 cat >conftest.make <<\_ACEOF
81ecdfbb 2191SHELL = /bin/sh
6bc80edc 2192all:
81ecdfbb 2193 @echo '@@@%%%=$(MAKE)=@@@%%%'
6bc80edc
TT
2194_ACEOF
2195# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
2196case `${MAKE-make} -f conftest.make 2>/dev/null` in
2197 *@@@%%%=?*=@@@%%%*)
2198 eval ac_cv_prog_make_${ac_make}_set=yes;;
2199 *)
2200 eval ac_cv_prog_make_${ac_make}_set=no;;
2201esac
6bc80edc
TT
2202rm -f conftest.make
2203fi
81ecdfbb
RW
2204if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2206$as_echo "yes" >&6; }
6bc80edc
TT
2207 SET_MAKE=
2208else
81ecdfbb
RW
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2210$as_echo "no" >&6; }
6bc80edc
TT
2211 SET_MAKE="MAKE=${MAKE-make}"
2212fi
2213
2214
a13c5393
YQ
2215# Enable gdbtk.
2216# Check whether --enable-gdbtk was given.
2217if test "${enable_gdbtk+set}" = set; then :
2218 enableval=$enable_gdbtk;
2219else
2220 if test -d $srcdir/../gdbtk && test -d $srcdir/gdb.gdbtk; then
2221 enable_gdbtk=yes
2222 else
2223 enable_gdbtk=no
2224 fi
2225fi
2226
2227# We unconditionally disable gdbtk tests on selected platforms.
2228case $host_os in
2229 go32* | windows*)
2230 enable_gdbtk=no ;;
2231esac
2232
2233# Add gdbtk tests when appropriate.
2234if test $enable_gdbtk = yes; then
2235
2236
2237subdirs="$subdirs gdb.gdbtk"
2238
2239fi
2240
b39c905e 2241# Enable shared libraries.
81ecdfbb
RW
2242# Check whether --enable-shared was given.
2243if test "${enable_shared+set}" = set; then :
2244 enableval=$enable_shared;
b39c905e
MK
2245else
2246 enable_shared=yes
81ecdfbb
RW
2247fi
2248
b39c905e
MK
2249
2250# If we have shared libraries, try to set RPATH_ENVVAR reasonably,
2251# such that we can find the shared libraries in the build tree.
2252if test $enable_shared = no; then
2253 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
2254 # platform.
2255 RPATH_ENVVAR=RPATH_ENVVAR
2256else
2257 # The variable `LD_LIBRARY_PATH' is used on most platforms.
2258 RPATH_ENVVAR=LD_LIBRARY_PATH
2259 # The following exceptions are taken from Libtool 1.4.3.
2260 case $host_os in
2261 aix*)
2262 if test $host_cpu != ia64; then
2263 RPATH_ENVVAR=LIBPATH
2264 fi ;;
2265 darwin* | rhapsody*)
2266 RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
2267 hpux*)
2268 RPATH_ENVVAR=SHLIB_PATH ;;
2269 esac
3fc11d3e 2270fi
b39c905e 2271
c906108c 2272
bec39cab
AC
2273ac_ext=c
2274ac_cpp='$CPP $CPPFLAGS'
2275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277ac_compiler_gnu=$ac_cv_c_compiler_gnu
2278if test -n "$ac_tool_prefix"; then
2279 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2280set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2282$as_echo_n "checking for $ac_word... " >&6; }
2283if test "${ac_cv_prog_CC+set}" = set; then :
2284 $as_echo_n "(cached) " >&6
bec39cab
AC
2285else
2286 if test -n "$CC"; then
2287 ac_cv_prog_CC="$CC" # Let the user override the test.
2288else
2289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290for as_dir in $PATH
2291do
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2296 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2298 break 2
2299 fi
2300done
81ecdfbb
RW
2301 done
2302IFS=$as_save_IFS
bec39cab
AC
2303
2304fi
2305fi
2306CC=$ac_cv_prog_CC
2307if test -n "$CC"; then
81ecdfbb
RW
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2309$as_echo "$CC" >&6; }
bec39cab 2310else
81ecdfbb
RW
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2312$as_echo "no" >&6; }
bec39cab
AC
2313fi
2314
81ecdfbb 2315
bec39cab
AC
2316fi
2317if test -z "$ac_cv_prog_CC"; then
2318 ac_ct_CC=$CC
2319 # Extract the first word of "gcc", so it can be a program name with args.
2320set dummy gcc; ac_word=$2
81ecdfbb
RW
2321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2322$as_echo_n "checking for $ac_word... " >&6; }
2323if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2324 $as_echo_n "(cached) " >&6
bec39cab
AC
2325else
2326 if test -n "$ac_ct_CC"; then
2327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2328else
2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330for as_dir in $PATH
2331do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2336 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2338 break 2
2339 fi
2340done
81ecdfbb
RW
2341 done
2342IFS=$as_save_IFS
bec39cab
AC
2343
2344fi
2345fi
2346ac_ct_CC=$ac_cv_prog_ac_ct_CC
2347if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2349$as_echo "$ac_ct_CC" >&6; }
bec39cab 2350else
81ecdfbb
RW
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2352$as_echo "no" >&6; }
bec39cab
AC
2353fi
2354
81ecdfbb
RW
2355 if test "x$ac_ct_CC" = x; then
2356 CC=""
2357 else
2358 case $cross_compiling:$ac_tool_warned in
2359yes:)
2360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2362ac_tool_warned=yes ;;
2363esac
2364 CC=$ac_ct_CC
2365 fi
bec39cab
AC
2366else
2367 CC="$ac_cv_prog_CC"
2368fi
2369
2370if test -z "$CC"; then
81ecdfbb
RW
2371 if test -n "$ac_tool_prefix"; then
2372 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 2373set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2375$as_echo_n "checking for $ac_word... " >&6; }
2376if test "${ac_cv_prog_CC+set}" = set; then :
2377 $as_echo_n "(cached) " >&6
bec39cab
AC
2378else
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2381else
2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2389 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2391 break 2
2392 fi
2393done
81ecdfbb
RW
2394 done
2395IFS=$as_save_IFS
bec39cab
AC
2396
2397fi
2398fi
2399CC=$ac_cv_prog_CC
2400if test -n "$CC"; then
81ecdfbb
RW
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2402$as_echo "$CC" >&6; }
bec39cab 2403else
81ecdfbb
RW
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2405$as_echo "no" >&6; }
bec39cab
AC
2406fi
2407
bec39cab 2408
81ecdfbb 2409 fi
bec39cab
AC
2410fi
2411if test -z "$CC"; then
2412 # Extract the first word of "cc", so it can be a program name with args.
2413set dummy cc; ac_word=$2
81ecdfbb
RW
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415$as_echo_n "checking for $ac_word... " >&6; }
2416if test "${ac_cv_prog_CC+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
bec39cab
AC
2418else
2419 if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2421else
2422 ac_prog_rejected=no
2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424for as_dir in $PATH
2425do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab
AC
2430 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2431 ac_prog_rejected=yes
2432 continue
2433 fi
2434 ac_cv_prog_CC="cc"
81ecdfbb 2435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2436 break 2
2437 fi
2438done
81ecdfbb
RW
2439 done
2440IFS=$as_save_IFS
bec39cab
AC
2441
2442if test $ac_prog_rejected = yes; then
2443 # We found a bogon in the path, so make sure we never use it.
2444 set dummy $ac_cv_prog_CC
2445 shift
2446 if test $# != 0; then
2447 # We chose a different compiler from the bogus one.
2448 # However, it has the same basename, so the bogon will be chosen
2449 # first if we set CC to just the basename; use the full file name.
2450 shift
2451 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2452 fi
2453fi
2454fi
2455fi
2456CC=$ac_cv_prog_CC
2457if test -n "$CC"; then
81ecdfbb
RW
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2459$as_echo "$CC" >&6; }
bec39cab 2460else
81ecdfbb
RW
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462$as_echo "no" >&6; }
bec39cab
AC
2463fi
2464
81ecdfbb 2465
bec39cab
AC
2466fi
2467if test -z "$CC"; then
2468 if test -n "$ac_tool_prefix"; then
81ecdfbb 2469 for ac_prog in cl.exe
bec39cab
AC
2470 do
2471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2472set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2474$as_echo_n "checking for $ac_word... " >&6; }
2475if test "${ac_cv_prog_CC+set}" = set; then :
2476 $as_echo_n "(cached) " >&6
bec39cab
AC
2477else
2478 if test -n "$CC"; then
2479 ac_cv_prog_CC="$CC" # Let the user override the test.
2480else
2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2488 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2490 break 2
2491 fi
2492done
81ecdfbb
RW
2493 done
2494IFS=$as_save_IFS
bec39cab
AC
2495
2496fi
2497fi
2498CC=$ac_cv_prog_CC
2499if test -n "$CC"; then
81ecdfbb
RW
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2501$as_echo "$CC" >&6; }
bec39cab 2502else
81ecdfbb
RW
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2504$as_echo "no" >&6; }
bec39cab
AC
2505fi
2506
81ecdfbb 2507
bec39cab
AC
2508 test -n "$CC" && break
2509 done
2510fi
2511if test -z "$CC"; then
2512 ac_ct_CC=$CC
81ecdfbb 2513 for ac_prog in cl.exe
bec39cab
AC
2514do
2515 # Extract the first word of "$ac_prog", so it can be a program name with args.
2516set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518$as_echo_n "checking for $ac_word... " >&6; }
2519if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2520 $as_echo_n "(cached) " >&6
bec39cab
AC
2521else
2522 if test -n "$ac_ct_CC"; then
2523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2524else
2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 2532 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2534 break 2
2535 fi
2536done
81ecdfbb
RW
2537 done
2538IFS=$as_save_IFS
bec39cab
AC
2539
2540fi
2541fi
2542ac_ct_CC=$ac_cv_prog_ac_ct_CC
2543if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2545$as_echo "$ac_ct_CC" >&6; }
bec39cab 2546else
81ecdfbb
RW
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548$as_echo "no" >&6; }
bec39cab
AC
2549fi
2550
81ecdfbb 2551
bec39cab
AC
2552 test -n "$ac_ct_CC" && break
2553done
2554
81ecdfbb
RW
2555 if test "x$ac_ct_CC" = x; then
2556 CC=""
2557 else
2558 case $cross_compiling:$ac_tool_warned in
2559yes:)
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2562ac_tool_warned=yes ;;
2563esac
2564 CC=$ac_ct_CC
2565 fi
bec39cab
AC
2566fi
2567
2568fi
2569
2570
81ecdfbb
RW
2571test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573as_fn_error "no acceptable C compiler found in \$PATH
2574See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
2575
2576# Provide some information about the compiler.
81ecdfbb
RW
2577$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2578set X $ac_compile
2579ac_compiler=$2
2580for ac_option in --version -v -V -qversion; do
2581 { { ac_try="$ac_compiler $ac_option >&5"
2582case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2585esac
2586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2587$as_echo "$ac_try_echo"; } >&5
2588 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
bec39cab 2589 ac_status=$?
81ecdfbb
RW
2590 if test -s conftest.err; then
2591 sed '10a\
2592... rest of stderr output deleted ...
2593 10q' conftest.err >conftest.er1
2594 cat conftest.er1 >&5
2595 rm -f conftest.er1 conftest.err
2596 fi
2597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2598 test $ac_status = 0; }
2599done
bec39cab 2600
81ecdfbb 2601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2602/* end confdefs.h. */
2603
2604int
2605main ()
2606{
2607
2608 ;
2609 return 0;
2610}
2611_ACEOF
2612ac_clean_files_save=$ac_clean_files
81ecdfbb 2613ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
bec39cab
AC
2614# Try to create an executable without -o first, disregard a.out.
2615# It will help us diagnose broken compilers, and finding out an intuition
2616# of exeext.
81ecdfbb
RW
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2618$as_echo_n "checking for C compiler default output file name... " >&6; }
2619ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2620
2621# The possible output files:
2622ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2623
2624ac_rmfiles=
2625for ac_file in $ac_files
2626do
2627 case $ac_file in
2628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2629 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2630 esac
2631done
2632rm -f $ac_rmfiles
2633
2634if { { ac_try="$ac_link_default"
2635case "(($ac_try" in
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2638esac
2639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2640$as_echo "$ac_try_echo"; } >&5
2641 (eval "$ac_link_default") 2>&5
bec39cab 2642 ac_status=$?
81ecdfbb
RW
2643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2644 test $ac_status = 0; }; then :
2645 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2646# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2647# in a Makefile. We should not override ac_cv_exeext if it was cached,
2648# so that the user can short-circuit this test for compilers unknown to
2649# Autoconf.
2650for ac_file in $ac_files ''
bec39cab
AC
2651do
2652 test -f "$ac_file" || continue
2653 case $ac_file in
81ecdfbb 2654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
bec39cab
AC
2655 ;;
2656 [ab].out )
2657 # We found the default executable, but exeext='' is most
2658 # certainly right.
2659 break;;
2660 *.* )
81ecdfbb
RW
2661 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2662 then :; else
2663 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2664 fi
2665 # We set ac_cv_exeext here because the later test for it is not
2666 # safe: cross compilers may not add the suffix if given an `-o'
2667 # argument, so we may need to know it at that point already.
2668 # Even if this section looks crufty: it has the advantage of
2669 # actually working.
bec39cab
AC
2670 break;;
2671 * )
2672 break;;
2673 esac
2674done
81ecdfbb
RW
2675test "$ac_cv_exeext" = no && ac_cv_exeext=
2676
bec39cab 2677else
81ecdfbb
RW
2678 ac_file=''
2679fi
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2681$as_echo "$ac_file" >&6; }
2682if test -z "$ac_file"; then :
2683 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
2684sed 's/^/| /' conftest.$ac_ext >&5
2685
81ecdfbb
RW
2686{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2688{ as_fn_set_status 77
2689as_fn_error "C compiler cannot create executables
2690See \`config.log' for more details." "$LINENO" 5; }; }
bec39cab 2691fi
bec39cab 2692ac_exeext=$ac_cv_exeext
bec39cab 2693
81ecdfbb 2694# Check that the compiler produces executables we can run. If not, either
bec39cab 2695# the compiler is broken, or we cross compile.
81ecdfbb
RW
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2697$as_echo_n "checking whether the C compiler works... " >&6; }
bec39cab
AC
2698# If not cross compiling, check that we can run a simple program.
2699if test "$cross_compiling" != yes; then
2700 if { ac_try='./$ac_file'
81ecdfbb
RW
2701 { { case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704esac
2705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2706$as_echo "$ac_try_echo"; } >&5
2707 (eval "$ac_try") 2>&5
bec39cab 2708 ac_status=$?
81ecdfbb
RW
2709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2710 test $ac_status = 0; }; }; then
bec39cab
AC
2711 cross_compiling=no
2712 else
2713 if test "$cross_compiling" = maybe; then
2714 cross_compiling=yes
2715 else
81ecdfbb
RW
2716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2718as_fn_error "cannot run C compiled programs.
bec39cab 2719If you meant to cross compile, use \`--host'.
81ecdfbb 2720See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
2721 fi
2722 fi
2723fi
81ecdfbb
RW
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2725$as_echo "yes" >&6; }
bec39cab 2726
81ecdfbb 2727rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
bec39cab 2728ac_clean_files=$ac_clean_files_save
81ecdfbb 2729# Check that the compiler produces executables we can run. If not, either
bec39cab 2730# the compiler is broken, or we cross compile.
81ecdfbb
RW
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2732$as_echo_n "checking whether we are cross compiling... " >&6; }
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2734$as_echo "$cross_compiling" >&6; }
2735
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2737$as_echo_n "checking for suffix of executables... " >&6; }
2738if { { ac_try="$ac_link"
2739case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742esac
2743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2744$as_echo "$ac_try_echo"; } >&5
2745 (eval "$ac_link") 2>&5
bec39cab 2746 ac_status=$?
81ecdfbb
RW
2747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748 test $ac_status = 0; }; then :
bec39cab
AC
2749 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2750# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2751# work properly (i.e., refer to `conftest.exe'), while it won't with
2752# `rm'.
2753for ac_file in conftest.exe conftest conftest.*; do
2754 test -f "$ac_file" || continue
2755 case $ac_file in
81ecdfbb 2756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
bec39cab 2757 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
bec39cab
AC
2758 break;;
2759 * ) break;;
2760 esac
2761done
2762else
81ecdfbb
RW
2763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765as_fn_error "cannot compute suffix of executables: cannot compile and link
2766See \`config.log' for more details." "$LINENO" 5; }
bec39cab 2767fi
bec39cab 2768rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2770$as_echo "$ac_cv_exeext" >&6; }
bec39cab
AC
2771
2772rm -f conftest.$ac_ext
2773EXEEXT=$ac_cv_exeext
2774ac_exeext=$EXEEXT
81ecdfbb
RW
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2776$as_echo_n "checking for suffix of object files... " >&6; }
2777if test "${ac_cv_objext+set}" = set; then :
2778 $as_echo_n "(cached) " >&6
bec39cab 2779else
81ecdfbb 2780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2781/* end confdefs.h. */
2782
2783int
2784main ()
2785{
2786
2787 ;
2788 return 0;
2789}
2790_ACEOF
2791rm -f conftest.o conftest.obj
81ecdfbb
RW
2792if { { ac_try="$ac_compile"
2793case "(($ac_try" in
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2796esac
2797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2798$as_echo "$ac_try_echo"; } >&5
2799 (eval "$ac_compile") 2>&5
bec39cab 2800 ac_status=$?
81ecdfbb
RW
2801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2802 test $ac_status = 0; }; then :
2803 for ac_file in conftest.o conftest.obj conftest.*; do
2804 test -f "$ac_file" || continue;
bec39cab 2805 case $ac_file in
81ecdfbb 2806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
bec39cab
AC
2807 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2808 break;;
2809 esac
2810done
2811else
81ecdfbb 2812 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
2813sed 's/^/| /' conftest.$ac_ext >&5
2814
81ecdfbb
RW
2815{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2817as_fn_error "cannot compute suffix of object files: cannot compile
2818See \`config.log' for more details." "$LINENO" 5; }
bec39cab 2819fi
bec39cab
AC
2820rm -f conftest.$ac_cv_objext conftest.$ac_ext
2821fi
81ecdfbb
RW
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2823$as_echo "$ac_cv_objext" >&6; }
bec39cab
AC
2824OBJEXT=$ac_cv_objext
2825ac_objext=$OBJEXT
81ecdfbb
RW
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2827$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2828if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2829 $as_echo_n "(cached) " >&6
bec39cab 2830else
81ecdfbb 2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2832/* end confdefs.h. */
2833
2834int
2835main ()
2836{
2837#ifndef __GNUC__
2838 choke me
2839#endif
2840
2841 ;
2842 return 0;
2843}
2844_ACEOF
81ecdfbb 2845if ac_fn_c_try_compile "$LINENO"; then :
bec39cab
AC
2846 ac_compiler_gnu=yes
2847else
81ecdfbb 2848 ac_compiler_gnu=no
bec39cab 2849fi
81ecdfbb 2850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2851ac_cv_c_compiler_gnu=$ac_compiler_gnu
2852
2853fi
81ecdfbb
RW
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2855$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2856if test $ac_compiler_gnu = yes; then
2857 GCC=yes
2858else
2859 GCC=
2860fi
bec39cab
AC
2861ac_test_CFLAGS=${CFLAGS+set}
2862ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2864$as_echo_n "checking whether $CC accepts -g... " >&6; }
2865if test "${ac_cv_prog_cc_g+set}" = set; then :
2866 $as_echo_n "(cached) " >&6
bec39cab 2867else
81ecdfbb
RW
2868 ac_save_c_werror_flag=$ac_c_werror_flag
2869 ac_c_werror_flag=yes
2870 ac_cv_prog_cc_g=no
2871 CFLAGS="-g"
2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2873/* end confdefs.h. */
2874
2875int
2876main ()
2877{
2878
2879 ;
2880 return 0;
2881}
2882_ACEOF
81ecdfbb 2883if ac_fn_c_try_compile "$LINENO"; then :
bec39cab
AC
2884 ac_cv_prog_cc_g=yes
2885else
81ecdfbb
RW
2886 CFLAGS=""
2887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888/* end confdefs.h. */
bec39cab 2889
81ecdfbb
RW
2890int
2891main ()
2892{
2893
2894 ;
2895 return 0;
2896}
2897_ACEOF
2898if ac_fn_c_try_compile "$LINENO"; then :
2899
2900else
2901 ac_c_werror_flag=$ac_save_c_werror_flag
2902 CFLAGS="-g"
2903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904/* end confdefs.h. */
2905
2906int
2907main ()
2908{
2909
2910 ;
2911 return 0;
2912}
2913_ACEOF
2914if ac_fn_c_try_compile "$LINENO"; then :
2915 ac_cv_prog_cc_g=yes
2916fi
2917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 2918fi
81ecdfbb 2919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 2920fi
81ecdfbb
RW
2921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922 ac_c_werror_flag=$ac_save_c_werror_flag
2923fi
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2925$as_echo "$ac_cv_prog_cc_g" >&6; }
bec39cab
AC
2926if test "$ac_test_CFLAGS" = set; then
2927 CFLAGS=$ac_save_CFLAGS
2928elif test $ac_cv_prog_cc_g = yes; then
2929 if test "$GCC" = yes; then
2930 CFLAGS="-g -O2"
2931 else
2932 CFLAGS="-g"
2933 fi
2934else
2935 if test "$GCC" = yes; then
2936 CFLAGS="-O2"
2937 else
2938 CFLAGS=
2939 fi
2940fi
81ecdfbb
RW
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2942$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2943if test "${ac_cv_prog_cc_c89+set}" = set; then :
2944 $as_echo_n "(cached) " >&6
bec39cab 2945else
81ecdfbb 2946 ac_cv_prog_cc_c89=no
bec39cab 2947ac_save_CC=$CC
81ecdfbb 2948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
2949/* end confdefs.h. */
2950#include <stdarg.h>
2951#include <stdio.h>
2952#include <sys/types.h>
2953#include <sys/stat.h>
2954/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2955struct buf { int x; };
2956FILE * (*rcsopen) (struct buf *, struct stat *, int);
2957static char *e (p, i)
2958 char **p;
2959 int i;
2960{
2961 return p[i];
2962}
2963static char *f (char * (*g) (char **, int), char **p, ...)
2964{
2965 char *s;
2966 va_list v;
2967 va_start (v,p);
2968 s = g (p, va_arg (v,int));
2969 va_end (v);
2970 return s;
2971}
2972
2973/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2974 function prototypes and stuff, but not '\xHH' hex character constants.
2975 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 2976 as 'x'. The following induces an error, until -std is added to get
bec39cab
AC
2977 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2978 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 2979 that's true only with -std. */
bec39cab
AC
2980int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2981
81ecdfbb
RW
2982/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2983 inside strings and character constants. */
2984#define FOO(x) 'x'
2985int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2986
bec39cab
AC
2987int test (int i, double x);
2988struct s1 {int (*f) (int a);};
2989struct s2 {int (*f) (double a);};
2990int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2991int argc;
2992char **argv;
2993int
2994main ()
2995{
2996return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2997 ;
2998 return 0;
2999}
3000_ACEOF
81ecdfbb
RW
3001for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3002 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
3003do
3004 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3005 if ac_fn_c_try_compile "$LINENO"; then :
3006 ac_cv_prog_cc_c89=$ac_arg
bec39cab 3007fi
81ecdfbb
RW
3008rm -f core conftest.err conftest.$ac_objext
3009 test "x$ac_cv_prog_cc_c89" != "xno" && break
bec39cab 3010done
81ecdfbb 3011rm -f conftest.$ac_ext
bec39cab
AC
3012CC=$ac_save_CC
3013
3014fi
81ecdfbb
RW
3015# AC_CACHE_VAL
3016case "x$ac_cv_prog_cc_c89" in
3017 x)
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3019$as_echo "none needed" >&6; } ;;
3020 xno)
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3022$as_echo "unsupported" >&6; } ;;
bec39cab 3023 *)
81ecdfbb
RW
3024 CC="$CC $ac_cv_prog_cc_c89"
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3026$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
bec39cab 3027esac
81ecdfbb 3028if test "x$ac_cv_prog_cc_c89" != xno; then :
bec39cab
AC
3029
3030fi
bec39cab 3031
bec39cab
AC
3032ac_ext=c
3033ac_cpp='$CPP $CPPFLAGS'
3034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037
3038
3039ac_ext=c
3040ac_cpp='$CPP $CPPFLAGS'
3041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3043ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3045$as_echo_n "checking how to run the C preprocessor... " >&6; }
dc62bfc2
MK
3046# On Suns, sometimes $CPP names a directory.
3047if test -n "$CPP" && test -d "$CPP"; then
3048 CPP=
3049fi
3050if test -z "$CPP"; then
81ecdfbb
RW
3051 if test "${ac_cv_prog_CPP+set}" = set; then :
3052 $as_echo_n "(cached) " >&6
dc62bfc2 3053else
bec39cab
AC
3054 # Double quotes because CPP needs to be expanded
3055 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3056 do
3057 ac_preproc_ok=false
3058for ac_c_preproc_warn_flag in '' yes
3059do
3060 # Use a header file that comes with gcc, so configuring glibc
3061 # with a fresh cross-compiler works.
3062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3063 # <limits.h> exists even on freestanding compilers.
dc62bfc2 3064 # On the NeXT, cc -E runs the code through the compiler's parser,
bec39cab 3065 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3067/* end confdefs.h. */
3068#ifdef __STDC__
3069# include <limits.h>
3070#else
3071# include <assert.h>
3072#endif
3073 Syntax error
3074_ACEOF
81ecdfbb 3075if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab 3076
81ecdfbb 3077else
bec39cab
AC
3078 # Broken: fails on valid input.
3079continue
3080fi
3081rm -f conftest.err conftest.$ac_ext
3082
81ecdfbb 3083 # OK, works on sane cases. Now check whether nonexistent headers
bec39cab 3084 # can be detected and how.
81ecdfbb 3085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3086/* end confdefs.h. */
3087#include <ac_nonexistent.h>
3088_ACEOF
81ecdfbb 3089if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab
AC
3090 # Broken: success on invalid input.
3091continue
3092else
bec39cab
AC
3093 # Passes both tests.
3094ac_preproc_ok=:
3095break
dc62bfc2 3096fi
bec39cab
AC
3097rm -f conftest.err conftest.$ac_ext
3098
3099done
3100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3101rm -f conftest.err conftest.$ac_ext
81ecdfbb 3102if $ac_preproc_ok; then :
bec39cab 3103 break
dc62bfc2 3104fi
bec39cab
AC
3105
3106 done
3107 ac_cv_prog_CPP=$CPP
3108
dc62bfc2 3109fi
bec39cab 3110 CPP=$ac_cv_prog_CPP
dc62bfc2 3111else
bec39cab 3112 ac_cv_prog_CPP=$CPP
dc62bfc2 3113fi
81ecdfbb
RW
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3115$as_echo "$CPP" >&6; }
bec39cab
AC
3116ac_preproc_ok=false
3117for ac_c_preproc_warn_flag in '' yes
dc62bfc2 3118do
bec39cab
AC
3119 # Use a header file that comes with gcc, so configuring glibc
3120 # with a fresh cross-compiler works.
3121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3122 # <limits.h> exists even on freestanding compilers.
3123 # On the NeXT, cc -E runs the code through the compiler's parser,
3124 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3126/* end confdefs.h. */
3127#ifdef __STDC__
3128# include <limits.h>
3129#else
3130# include <assert.h>
3131#endif
3132 Syntax error
3133_ACEOF
81ecdfbb 3134if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab 3135
81ecdfbb 3136else
bec39cab
AC
3137 # Broken: fails on valid input.
3138continue
3139fi
3140rm -f conftest.err conftest.$ac_ext
3141
81ecdfbb 3142 # OK, works on sane cases. Now check whether nonexistent headers
bec39cab 3143 # can be detected and how.
81ecdfbb 3144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3145/* end confdefs.h. */
3146#include <ac_nonexistent.h>
3147_ACEOF
81ecdfbb 3148if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab
AC
3149 # Broken: success on invalid input.
3150continue
dc62bfc2 3151else
bec39cab
AC
3152 # Passes both tests.
3153ac_preproc_ok=:
3154break
dc62bfc2 3155fi
bec39cab
AC
3156rm -f conftest.err conftest.$ac_ext
3157
dc62bfc2 3158done
bec39cab
AC
3159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
3161if $ac_preproc_ok; then :
3162
bec39cab 3163else
81ecdfbb
RW
3164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166as_fn_error "C preprocessor \"$CPP\" fails sanity check
3167See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
3168fi
3169
3170ac_ext=c
3171ac_cpp='$CPP $CPPFLAGS'
3172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174ac_compiler_gnu=$ac_cv_c_compiler_gnu
dc62bfc2
MK
3175
3176
81ecdfbb
RW
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3178$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3179if test "${ac_cv_path_GREP+set}" = set; then :
3180 $as_echo_n "(cached) " >&6
3181else
3182 if test -z "$GREP"; then
3183 ac_path_GREP_found=false
3184 # Loop through the user's path and test for each of PROGNAME-LIST
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3187do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_prog in grep ggrep; do
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3193 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3194# Check for GNU ac_path_GREP and select it if it is found.
3195 # Check for GNU $ac_path_GREP
3196case `"$ac_path_GREP" --version 2>&1` in
3197*GNU*)
3198 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3199*)
3200 ac_count=0
3201 $as_echo_n 0123456789 >"conftest.in"
3202 while :
3203 do
3204 cat "conftest.in" "conftest.in" >"conftest.tmp"
3205 mv "conftest.tmp" "conftest.in"
3206 cp "conftest.in" "conftest.nl"
3207 $as_echo 'GREP' >> "conftest.nl"
3208 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3210 as_fn_arith $ac_count + 1 && ac_count=$as_val
3211 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3212 # Best one so far, save it but keep looking for a better one
3213 ac_cv_path_GREP="$ac_path_GREP"
3214 ac_path_GREP_max=$ac_count
3215 fi
3216 # 10*(2^10) chars as input seems more than enough
3217 test $ac_count -gt 10 && break
3218 done
3219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3220esac
3221
3222 $ac_path_GREP_found && break 3
3223 done
3224 done
3225 done
3226IFS=$as_save_IFS
3227 if test -z "$ac_cv_path_GREP"; then
3228 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3229 fi
3230else
3231 ac_cv_path_GREP=$GREP
3232fi
3233
3234fi
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3236$as_echo "$ac_cv_path_GREP" >&6; }
3237 GREP="$ac_cv_path_GREP"
3238
3239
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3241$as_echo_n "checking for egrep... " >&6; }
3242if test "${ac_cv_path_EGREP+set}" = set; then :
3243 $as_echo_n "(cached) " >&6
93076499 3244else
81ecdfbb
RW
3245 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3246 then ac_cv_path_EGREP="$GREP -E"
3247 else
3248 if test -z "$EGREP"; then
3249 ac_path_EGREP_found=false
3250 # Loop through the user's path and test for each of PROGNAME-LIST
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3253do
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_prog in egrep; do
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3259 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3260# Check for GNU ac_path_EGREP and select it if it is found.
3261 # Check for GNU $ac_path_EGREP
3262case `"$ac_path_EGREP" --version 2>&1` in
3263*GNU*)
3264 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3265*)
3266 ac_count=0
3267 $as_echo_n 0123456789 >"conftest.in"
3268 while :
3269 do
3270 cat "conftest.in" "conftest.in" >"conftest.tmp"
3271 mv "conftest.tmp" "conftest.in"
3272 cp "conftest.in" "conftest.nl"
3273 $as_echo 'EGREP' >> "conftest.nl"
3274 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3276 as_fn_arith $ac_count + 1 && ac_count=$as_val
3277 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3278 # Best one so far, save it but keep looking for a better one
3279 ac_cv_path_EGREP="$ac_path_EGREP"
3280 ac_path_EGREP_max=$ac_count
bec39cab 3281 fi
81ecdfbb
RW
3282 # 10*(2^10) chars as input seems more than enough
3283 test $ac_count -gt 10 && break
3284 done
3285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3286esac
3287
3288 $ac_path_EGREP_found && break 3
3289 done
3290 done
3291 done
3292IFS=$as_save_IFS
3293 if test -z "$ac_cv_path_EGREP"; then
3294 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3295 fi
3296else
3297 ac_cv_path_EGREP=$EGREP
3298fi
3299
3300 fi
bec39cab 3301fi
81ecdfbb
RW
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3303$as_echo "$ac_cv_path_EGREP" >&6; }
3304 EGREP="$ac_cv_path_EGREP"
93076499 3305
93076499 3306
81ecdfbb
RW
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3308$as_echo_n "checking for ANSI C header files... " >&6; }
3309if test "${ac_cv_header_stdc+set}" = set; then :
3310 $as_echo_n "(cached) " >&6
bec39cab 3311else
81ecdfbb 3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3313/* end confdefs.h. */
3314#include <stdlib.h>
3315#include <stdarg.h>
3316#include <string.h>
3317#include <float.h>
3318
3319int
3320main ()
3321{
3322
3323 ;
3324 return 0;
3325}
3326_ACEOF
81ecdfbb 3327if ac_fn_c_try_compile "$LINENO"; then :
bec39cab
AC
3328 ac_cv_header_stdc=yes
3329else
81ecdfbb 3330 ac_cv_header_stdc=no
bec39cab 3331fi
81ecdfbb 3332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
3333
3334if test $ac_cv_header_stdc = yes; then
3335 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3337/* end confdefs.h. */
3338#include <string.h>
3339
3340_ACEOF
3341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
3342 $EGREP "memchr" >/dev/null 2>&1; then :
3343
bec39cab
AC
3344else
3345 ac_cv_header_stdc=no
93076499
ND
3346fi
3347rm -f conftest*
bec39cab
AC
3348
3349fi
3350
3351if test $ac_cv_header_stdc = yes; then
3352 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3354/* end confdefs.h. */
3355#include <stdlib.h>
3356
3357_ACEOF
3358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
3359 $EGREP "free" >/dev/null 2>&1; then :
3360
bec39cab
AC
3361else
3362 ac_cv_header_stdc=no
3363fi
93076499 3364rm -f conftest*
bec39cab 3365
93076499
ND
3366fi
3367
bec39cab
AC
3368if test $ac_cv_header_stdc = yes; then
3369 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 3370 if test "$cross_compiling" = yes; then :
bec39cab 3371 :
93076499 3372else
81ecdfbb 3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3374/* end confdefs.h. */
3375#include <ctype.h>
81ecdfbb 3376#include <stdlib.h>
bec39cab
AC
3377#if ((' ' & 0x0FF) == 0x020)
3378# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3379# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3380#else
3381# define ISLOWER(c) \
3382 (('a' <= (c) && (c) <= 'i') \
3383 || ('j' <= (c) && (c) <= 'r') \
3384 || ('s' <= (c) && (c) <= 'z'))
3385# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3386#endif
93076499 3387
bec39cab
AC
3388#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3389int
3390main ()
3391{
3392 int i;
3393 for (i = 0; i < 256; i++)
3394 if (XOR (islower (i), ISLOWER (i))
3395 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
3396 return 2;
3397 return 0;
bec39cab
AC
3398}
3399_ACEOF
81ecdfbb 3400if ac_fn_c_try_run "$LINENO"; then :
bec39cab 3401
81ecdfbb
RW
3402else
3403 ac_cv_header_stdc=no
93076499 3404fi
81ecdfbb
RW
3405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3406 conftest.$ac_objext conftest.beam conftest.$ac_ext
bec39cab 3407fi
81ecdfbb 3408
bec39cab
AC
3409fi
3410fi
81ecdfbb
RW
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3412$as_echo "$ac_cv_header_stdc" >&6; }
bec39cab
AC
3413if test $ac_cv_header_stdc = yes; then
3414
81ecdfbb 3415$as_echo "#define STDC_HEADERS 1" >>confdefs.h
bec39cab
AC
3416
3417fi
3418
3419# On IRIX 5.3, sys/types and inttypes.h are conflicting.
bec39cab
AC
3420for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3421 inttypes.h stdint.h unistd.h
81ecdfbb
RW
3422do :
3423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3424ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3425"
3426eval as_val=\$$as_ac_Header
3427 if test "x$as_val" = x""yes; then :
bec39cab 3428 cat >>confdefs.h <<_ACEOF
81ecdfbb 3429#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab
AC
3430_ACEOF
3431
93076499
ND
3432fi
3433
bec39cab
AC
3434done
3435
93076499 3436
bec39cab 3437for ac_header in pthread.h
81ecdfbb
RW
3438do :
3439 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
3440if test "x$ac_cv_header_pthread_h" = x""yes; then :
bec39cab 3441 cat >>confdefs.h <<_ACEOF
81ecdfbb 3442#define HAVE_PTHREAD_H 1
bec39cab 3443_ACEOF
93076499 3444
bec39cab 3445fi
93076499 3446
bec39cab
AC
3447done
3448
3449
3450
3451
2a31c623
PA
3452if test "${build}" = "${host}" -a "${host}" = "${target}"; then
3453 case "${host}" in
3454 *gnu*)
3455 EXTRA_RULES=read1
3456 ;;
3457 esac
3458fi
3459
3460
bb2ec1b3 3461ac_config_files="$ac_config_files Makefile gdb.ada/Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.btrace/Makefile gdb.cell/Makefile gdb.compile/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile gdb.dlang/Makefile gdb.fortran/Makefile gdb.gdb/Makefile gdb.go/Makefile gdb.server/Makefile gdb.java/Makefile gdb.hp/Makefile gdb.hp/gdb.objdbg/Makefile gdb.hp/gdb.base-hp/Makefile gdb.hp/gdb.aCC/Makefile gdb.hp/gdb.compat/Makefile gdb.hp/gdb.defects/Makefile gdb.guile/Makefile gdb.linespec/Makefile gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile gdb.perf/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile"
81ecdfbb 3462
bec39cab 3463cat >confcache <<\_ACEOF
c906108c
SS
3464# This file is a shell script that caches the results of configure
3465# tests run on this system so they can be shared between configure
bec39cab
AC
3466# scripts and configure runs, see configure's option --config-cache.
3467# It is not useful on other systems. If it contains results you don't
3468# want to keep, you may remove or edit it.
c906108c 3469#
bec39cab
AC
3470# config.status only pays attention to the cache file if you give it
3471# the --recheck option to rerun configure.
c906108c 3472#
bec39cab
AC
3473# `ac_cv_env_foo' variables (set or unset) will be overridden when
3474# loading this file, other *unset* `ac_cv_foo' will be assigned the
3475# following values.
3476
3477_ACEOF
3478
c906108c
SS
3479# The following way of writing the cache mishandles newlines in values,
3480# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 3481# So, we kill variables containing newlines.
c906108c
SS
3482# Ultrix sh set writes to stderr and can't be redirected directly,
3483# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
3484(
3485 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3486 eval ac_val=\$$ac_var
3487 case $ac_val in #(
3488 *${as_nl}*)
3489 case $ac_var in #(
3490 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3491$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3492 esac
3493 case $ac_var in #(
3494 _ | IFS | as_nl) ;; #(
3495 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3496 *) { eval $ac_var=; unset $ac_var;} ;;
3497 esac ;;
3498 esac
3499 done
3500
bec39cab 3501 (set) 2>&1 |
81ecdfbb
RW
3502 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3503 *${as_nl}ac_space=\ *)
3504 # `set' does not quote correctly, so add quotes: double-quote
3505 # substitution turns \\\\ into \\, and sed turns \\ into \.
bec39cab
AC
3506 sed -n \
3507 "s/'/'\\\\''/g;
3508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 3509 ;; #(
bec39cab
AC
3510 *)
3511 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 3512 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 3513 ;;
81ecdfbb
RW
3514 esac |
3515 sort
3516) |
bec39cab 3517 sed '
81ecdfbb 3518 /^ac_cv_env_/b end
bec39cab 3519 t clear
81ecdfbb 3520 :clear
bec39cab
AC
3521 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3522 t end
81ecdfbb
RW
3523 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3524 :end' >>confcache
3525if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3526 if test -w "$cache_file"; then
3527 test "x$cache_file" != "x/dev/null" &&
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3529$as_echo "$as_me: updating cache $cache_file" >&6;}
bec39cab 3530 cat confcache >$cache_file
c906108c 3531 else
81ecdfbb
RW
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3533$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
c906108c
SS
3534 fi
3535fi
3536rm -f confcache
3537
c906108c
SS
3538test "x$prefix" = xNONE && prefix=$ac_default_prefix
3539# Let make expand exec_prefix.
3540test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3541
5710a1af
EZ
3542# Transform confdefs.h into DEFS.
3543# Protect against shell expansion while executing Makefile rules.
3544# Protect against Makefile macro expansion.
bec39cab
AC
3545#
3546# If the first sed substitution is executed (which looks for macros that
81ecdfbb 3547# take arguments), then branch to the quote section. Otherwise,
bec39cab 3548# look for a macro that doesn't take arguments.
81ecdfbb
RW
3549ac_script='
3550:mline
3551/\\$/{
3552 N
3553 s,\\\n,,
3554 b mline
3555}
bec39cab 3556t clear
81ecdfbb
RW
3557:clear
3558s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
bec39cab 3559t quote
81ecdfbb 3560s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
bec39cab 3561t quote
81ecdfbb
RW
3562b any
3563:quote
3564s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3565s/\[/\\&/g
3566s/\]/\\&/g
3567s/\$/$$/g
3568H
3569:any
3570${
3571 g
3572 s/^\n//
3573 s/\n/ /g
3574 p
3575}
3576'
3577DEFS=`sed -n "$ac_script" confdefs.h`
bec39cab
AC
3578
3579
3580ac_libobjs=
3581ac_ltlibobjs=
3582for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3583 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
3584 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3585 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3586 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3587 # will be set to the directory where LIBOBJS objects are built.
3588 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3589 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
bec39cab
AC
3590done
3591LIBOBJS=$ac_libobjs
c906108c 3592
bec39cab
AC
3593LTLIBOBJS=$ac_ltlibobjs
3594
3595
6bc80edc 3596if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
81ecdfbb
RW
3597 as_fn_error "conditional \"GMAKE\" was never defined.
3598Usually this means the macro was only invoked conditionally." "$LINENO" 5
6bc80edc 3599fi
bec39cab
AC
3600
3601: ${CONFIG_STATUS=./config.status}
81ecdfbb 3602ac_write_fail=0
bec39cab
AC
3603ac_clean_files_save=$ac_clean_files
3604ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3606$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3607as_write_fail=0
3608cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
bec39cab
AC
3609#! $SHELL
3610# Generated by $as_me.
c906108c 3611# Run this file to recreate the current configuration.
c906108c 3612# Compiler output produced by configure, useful for debugging
bec39cab
AC
3613# configure, is in config.log if it exists.
3614
3615debug=false
3616ac_cs_recheck=false
3617ac_cs_silent=false
bec39cab 3618
81ecdfbb
RW
3619SHELL=\${CONFIG_SHELL-$SHELL}
3620export SHELL
3621_ASEOF
3622cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3623## -------------------- ##
3624## M4sh Initialization. ##
3625## -------------------- ##
3626
3627# Be more Bourne compatible
3628DUALCASE=1; export DUALCASE # for MKS sh
3629if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bec39cab
AC
3630 emulate sh
3631 NULLCMD=:
81ecdfbb 3632 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bec39cab
AC
3633 # is contrary to our usage. Disable this feature.
3634 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
3635 setopt NO_GLOB_SUBST
3636else
3637 case `(set -o) 2>/dev/null` in #(
3638 *posix*) :
3639 set -o posix ;; #(
3640 *) :
3641 ;;
3642esac
bec39cab 3643fi
c906108c 3644
81ecdfbb
RW
3645
3646as_nl='
3647'
3648export as_nl
3649# Printing a long string crashes Solaris 7 /usr/bin/printf.
3650as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3651as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3652as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3653# Prefer a ksh shell builtin over an external printf program on Solaris,
3654# but without wasting forks for bash or zsh.
3655if test -z "$BASH_VERSION$ZSH_VERSION" \
3656 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3657 as_echo='print -r --'
3658 as_echo_n='print -rn --'
3659elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3660 as_echo='printf %s\n'
3661 as_echo_n='printf %s'
bec39cab 3662else
81ecdfbb
RW
3663 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3664 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3665 as_echo_n='/usr/ucb/echo -n'
3666 else
3667 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3668 as_echo_n_body='eval
3669 arg=$1;
3670 case $arg in #(
3671 *"$as_nl"*)
3672 expr "X$arg" : "X\\(.*\\)$as_nl";
3673 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3674 esac;
3675 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3676 '
3677 export as_echo_n_body
3678 as_echo_n='sh -c $as_echo_n_body as_echo'
3679 fi
3680 export as_echo_body
3681 as_echo='sh -c $as_echo_body as_echo'
bec39cab
AC
3682fi
3683
81ecdfbb
RW
3684# The user is always right.
3685if test "${PATH_SEPARATOR+set}" != set; then
3686 PATH_SEPARATOR=:
3687 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3688 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3689 PATH_SEPARATOR=';'
3690 }
3691fi
bec39cab 3692
81ecdfbb
RW
3693
3694# IFS
3695# We need space, tab and new line, in precisely that order. Quoting is
3696# there to prevent editors from complaining about space-tab.
3697# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3698# splitting by setting IFS to empty value.)
3699IFS=" "" $as_nl"
3700
3701# Find who we are. Look in the path if we contain no directory separator.
3702case $0 in #((
3703 *[\\/]* ) as_myself=$0 ;;
3704 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705for as_dir in $PATH
3706do
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
3709 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3710 done
3711IFS=$as_save_IFS
3712
3713 ;;
3714esac
3715# We did not find ourselves, most probably we were run as `sh COMMAND'
3716# in which case we are not to be found in the path.
3717if test "x$as_myself" = x; then
3718 as_myself=$0
3719fi
3720if test ! -f "$as_myself"; then
3721 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3722 exit 1
3723fi
3724
3725# Unset variables that we do not need and which cause bugs (e.g. in
3726# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3727# suppresses any "Segmentation fault" message there. '((' could
3728# trigger a bug in pdksh 5.2.14.
3729for as_var in BASH_ENV ENV MAIL MAILPATH
3730do eval test x\${$as_var+set} = xset \
3731 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3732done
bec39cab
AC
3733PS1='$ '
3734PS2='> '
3735PS4='+ '
3736
3737# NLS nuisances.
81ecdfbb
RW
3738LC_ALL=C
3739export LC_ALL
3740LANGUAGE=C
3741export LANGUAGE
3742
3743# CDPATH.
3744(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3745
3746
3747# as_fn_error ERROR [LINENO LOG_FD]
3748# ---------------------------------
3749# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3750# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3751# script with status $?, using 1 if that was 0.
3752as_fn_error ()
3753{
3754 as_status=$?; test $as_status -eq 0 && as_status=1
3755 if test "$3"; then
3756 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3757 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
bec39cab 3758 fi
81ecdfbb
RW
3759 $as_echo "$as_me: error: $1" >&2
3760 as_fn_exit $as_status
3761} # as_fn_error
3762
c906108c 3763
81ecdfbb
RW
3764# as_fn_set_status STATUS
3765# -----------------------
3766# Set $? to STATUS, without forking.
3767as_fn_set_status ()
3768{
3769 return $1
3770} # as_fn_set_status
3771
3772# as_fn_exit STATUS
3773# -----------------
3774# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3775as_fn_exit ()
3776{
3777 set +e
3778 as_fn_set_status $1
3779 exit $1
3780} # as_fn_exit
3781
3782# as_fn_unset VAR
3783# ---------------
3784# Portably unset VAR.
3785as_fn_unset ()
3786{
3787 { eval $1=; unset $1;}
3788}
3789as_unset=as_fn_unset
3790# as_fn_append VAR VALUE
3791# ----------------------
3792# Append the text in VALUE to the end of the definition contained in VAR. Take
3793# advantage of any shell optimizations that allow amortized linear growth over
3794# repeated appends, instead of the typical quadratic growth present in naive
3795# implementations.
3796if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3797 eval 'as_fn_append ()
3798 {
3799 eval $1+=\$2
3800 }'
3801else
3802 as_fn_append ()
3803 {
3804 eval $1=\$$1\$2
3805 }
3806fi # as_fn_append
3807
3808# as_fn_arith ARG...
3809# ------------------
3810# Perform arithmetic evaluation on the ARGs, and store the result in the
3811# global $as_val. Take advantage of shells that can avoid forks. The arguments
3812# must be portable across $(()) and expr.
3813if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3814 eval 'as_fn_arith ()
3815 {
3816 as_val=$(( $* ))
3817 }'
3818else
3819 as_fn_arith ()
3820 {
3821 as_val=`expr "$@" || test $? -eq 1`
3822 }
3823fi # as_fn_arith
3824
3825
3826if expr a : '\(a\)' >/dev/null 2>&1 &&
3827 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
3828 as_expr=expr
3829else
3830 as_expr=false
3831fi
c906108c 3832
81ecdfbb 3833if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
3834 as_basename=basename
3835else
3836 as_basename=false
3837fi
3838
81ecdfbb
RW
3839if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3840 as_dirname=dirname
3841else
3842 as_dirname=false
3843fi
bec39cab 3844
81ecdfbb 3845as_me=`$as_basename -- "$0" ||
bec39cab
AC
3846$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3847 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
3848 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3849$as_echo X/"$0" |
3850 sed '/^.*\/\([^/][^/]*\)\/*$/{
3851 s//\1/
3852 q
3853 }
3854 /^X\/\(\/\/\)$/{
3855 s//\1/
3856 q
3857 }
3858 /^X\/\(\/\).*/{
3859 s//\1/
3860 q
3861 }
3862 s/.*/./; q'`
bec39cab 3863
bec39cab
AC
3864# Avoid depending upon Character Ranges.
3865as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3866as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3867as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3868as_cr_digits='0123456789'
3869as_cr_alnum=$as_cr_Letters$as_cr_digits
3870
81ecdfbb
RW
3871ECHO_C= ECHO_N= ECHO_T=
3872case `echo -n x` in #(((((
3873-n*)
3874 case `echo 'xy\c'` in
3875 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3876 xy) ECHO_C='\c';;
3877 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3878 ECHO_T=' ';;
3879 esac;;
3880*)
3881 ECHO_N='-n';;
bec39cab
AC
3882esac
3883
81ecdfbb
RW
3884rm -f conf$$ conf$$.exe conf$$.file
3885if test -d conf$$.dir; then
3886 rm -f conf$$.dir/conf$$.file
bec39cab 3887else
81ecdfbb
RW
3888 rm -f conf$$.dir
3889 mkdir conf$$.dir 2>/dev/null
bec39cab 3890fi
81ecdfbb
RW
3891if (echo >conf$$.file) 2>/dev/null; then
3892 if ln -s conf$$.file conf$$ 2>/dev/null; then
bec39cab 3893 as_ln_s='ln -s'
81ecdfbb
RW
3894 # ... but there are two gotchas:
3895 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3896 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3897 # In both cases, we have to default to `cp -p'.
3898 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3899 as_ln_s='cp -p'
3900 elif ln conf$$.file conf$$ 2>/dev/null; then
3901 as_ln_s=ln
3902 else
3903 as_ln_s='cp -p'
c906108c 3904 fi
bec39cab
AC
3905else
3906 as_ln_s='cp -p'
3907fi
81ecdfbb
RW
3908rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3909rmdir conf$$.dir 2>/dev/null
3910
3911
3912# as_fn_mkdir_p
3913# -------------
3914# Create "$as_dir" as a directory, including parents if necessary.
3915as_fn_mkdir_p ()
3916{
3917
3918 case $as_dir in #(
3919 -*) as_dir=./$as_dir;;
3920 esac
3921 test -d "$as_dir" || eval $as_mkdir_p || {
3922 as_dirs=
3923 while :; do
3924 case $as_dir in #(
3925 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3926 *) as_qdir=$as_dir;;
3927 esac
3928 as_dirs="'$as_qdir' $as_dirs"
3929 as_dir=`$as_dirname -- "$as_dir" ||
3930$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3931 X"$as_dir" : 'X\(//\)[^/]' \| \
3932 X"$as_dir" : 'X\(//\)$' \| \
3933 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3934$as_echo X"$as_dir" |
3935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3936 s//\1/
3937 q
3938 }
3939 /^X\(\/\/\)[^/].*/{
3940 s//\1/
3941 q
3942 }
3943 /^X\(\/\/\)$/{
3944 s//\1/
3945 q
3946 }
3947 /^X\(\/\).*/{
3948 s//\1/
3949 q
3950 }
3951 s/.*/./; q'`
3952 test -d "$as_dir" && break
3953 done
3954 test -z "$as_dirs" || eval "mkdir $as_dirs"
3955 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
bec39cab 3956
81ecdfbb
RW
3957
3958} # as_fn_mkdir_p
bec39cab 3959if mkdir -p . 2>/dev/null; then
81ecdfbb 3960 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
3961else
3962 test -d ./-p && rmdir ./-p
3963 as_mkdir_p=false
3964fi
3965
81ecdfbb
RW
3966if test -x / >/dev/null 2>&1; then
3967 as_test_x='test -x'
3968else
3969 if ls -dL / >/dev/null 2>&1; then
3970 as_ls_L_option=L
3971 else
3972 as_ls_L_option=
3973 fi
3974 as_test_x='
3975 eval sh -c '\''
3976 if test -d "$1"; then
3977 test -d "$1/.";
3978 else
3979 case $1 in #(
3980 -*)set "./$1";;
3981 esac;
3982 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3983 ???[sx]*):;;*)false;;esac;fi
3984 '\'' sh
3985 '
3986fi
3987as_executable_p=$as_test_x
bec39cab
AC
3988
3989# Sed expression to map a string onto a valid CPP name.
3990as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3991
3992# Sed expression to map a string onto a valid variable name.
3993as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3994
3995
bec39cab 3996exec 6>&1
81ecdfbb
RW
3997## ----------------------------------- ##
3998## Main body of $CONFIG_STATUS script. ##
3999## ----------------------------------- ##
4000_ASEOF
4001test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4002
4003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4004# Save the log message, to keep $0 and so on meaningful, and to
bec39cab 4005# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
4006# values after options handling.
4007ac_log="
bec39cab 4008This file was extended by $as_me, which was
81ecdfbb 4009generated by GNU Autoconf 2.64. Invocation command line was
bec39cab
AC
4010
4011 CONFIG_FILES = $CONFIG_FILES
4012 CONFIG_HEADERS = $CONFIG_HEADERS
4013 CONFIG_LINKS = $CONFIG_LINKS
4014 CONFIG_COMMANDS = $CONFIG_COMMANDS
4015 $ $0 $@
4016
81ecdfbb
RW
4017on `(hostname || uname -n) 2>/dev/null | sed 1q`
4018"
4019
bec39cab
AC
4020_ACEOF
4021
81ecdfbb
RW
4022case $ac_config_files in *"
4023"*) set x $ac_config_files; shift; ac_config_files=$*;;
4024esac
bec39cab 4025
bec39cab 4026
bec39cab 4027
81ecdfbb
RW
4028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4029# Files that config.status was made for.
4030config_files="$ac_config_files"
bec39cab 4031
81ecdfbb 4032_ACEOF
bec39cab 4033
81ecdfbb 4034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab 4035ac_cs_usage="\
81ecdfbb
RW
4036\`$as_me' instantiates files and other configuration actions
4037from templates according to the current configuration. Unless the files
4038and actions are specified as TAGs, all are instantiated by default.
bec39cab 4039
81ecdfbb 4040Usage: $0 [OPTION]... [TAG]...
bec39cab
AC
4041
4042 -h, --help print this help, then exit
81ecdfbb
RW
4043 -V, --version print version number and configuration settings, then exit
4044 -q, --quiet, --silent
4045 do not print progress messages
bec39cab
AC
4046 -d, --debug don't remove temporary files
4047 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
4048 --file=FILE[:TEMPLATE]
4049 instantiate the configuration file FILE
bec39cab
AC
4050
4051Configuration files:
4052$config_files
4053
81ecdfbb 4054Report bugs to the package provider."
bec39cab 4055
81ecdfbb
RW
4056_ACEOF
4057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab
AC
4058ac_cs_version="\\
4059config.status
81ecdfbb
RW
4060configured by $0, generated by GNU Autoconf 2.64,
4061 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
bec39cab 4062
81ecdfbb 4063Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
4064This config.status script is free software; the Free Software Foundation
4065gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
4066
4067ac_pwd='$ac_pwd'
4068srcdir='$srcdir'
4069test -n "\$AWK" || AWK=awk
bec39cab
AC
4070_ACEOF
4071
81ecdfbb
RW
4072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4073# The default lists apply if the user does not specify any file.
bec39cab
AC
4074ac_need_defaults=:
4075while test $# != 0
4076do
4077 case $1 in
4078 --*=*)
81ecdfbb
RW
4079 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4080 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
bec39cab
AC
4081 ac_shift=:
4082 ;;
81ecdfbb 4083 *)
bec39cab
AC
4084 ac_option=$1
4085 ac_optarg=$2
4086 ac_shift=shift
4087 ;;
bec39cab
AC
4088 esac
4089
4090 case $ac_option in
4091 # Handling of the options.
bec39cab
AC
4092 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4093 ac_cs_recheck=: ;;
81ecdfbb
RW
4094 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4095 $as_echo "$ac_cs_version"; exit ;;
4096 --debug | --debu | --deb | --de | --d | -d )
bec39cab
AC
4097 debug=: ;;
4098 --file | --fil | --fi | --f )
4099 $ac_shift
81ecdfbb
RW
4100 case $ac_optarg in
4101 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4102 esac
4103 as_fn_append CONFIG_FILES " '$ac_optarg'"
bec39cab 4104 ac_need_defaults=false;;
81ecdfbb
RW
4105 --he | --h | --help | --hel | -h )
4106 $as_echo "$ac_cs_usage"; exit ;;
bec39cab
AC
4107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4108 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4109 ac_cs_silent=: ;;
4110
4111 # This is an error.
81ecdfbb
RW
4112 -*) as_fn_error "unrecognized option: \`$1'
4113Try \`$0 --help' for more information." ;;
bec39cab 4114
81ecdfbb
RW
4115 *) as_fn_append ac_config_targets " $1"
4116 ac_need_defaults=false ;;
c906108c 4117
c906108c 4118 esac
bec39cab
AC
4119 shift
4120done
4121
4122ac_configure_extra_args=
4123
4124if $ac_cs_silent; then
4125 exec 6>/dev/null
4126 ac_configure_extra_args="$ac_configure_extra_args --silent"
4127fi
4128
4129_ACEOF
81ecdfbb 4130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab 4131if \$ac_cs_recheck; then
81ecdfbb
RW
4132 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4133 shift
4134 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4135 CONFIG_SHELL='$SHELL'
4136 export CONFIG_SHELL
4137 exec "\$@"
bec39cab
AC
4138fi
4139
4140_ACEOF
81ecdfbb
RW
4141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4142exec 5>>config.log
4143{
4144 echo
4145 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4146## Running $as_me. ##
4147_ASBOX
4148 $as_echo "$ac_log"
4149} >&5
c906108c 4150
81ecdfbb
RW
4151_ACEOF
4152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4153_ACEOF
c906108c 4154
81ecdfbb 4155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab 4156
81ecdfbb 4157# Handling of arguments.
bec39cab
AC
4158for ac_config_target in $ac_config_targets
4159do
81ecdfbb
RW
4160 case $ac_config_target in
4161 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4162 "gdb.ada/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.ada/Makefile" ;;
4163 "gdb.arch/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.arch/Makefile" ;;
4164 "gdb.asm/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.asm/Makefile" ;;
4165 "gdb.base/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.base/Makefile" ;;
2f1d9bdd 4166 "gdb.btrace/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.btrace/Makefile" ;;
30e62689 4167 "gdb.cell/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.cell/Makefile" ;;
bb2ec1b3 4168 "gdb.compile/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.compile/Makefile" ;;
81ecdfbb
RW
4169 "gdb.cp/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.cp/Makefile" ;;
4170 "gdb.disasm/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.disasm/Makefile" ;;
4171 "gdb.dwarf2/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.dwarf2/Makefile" ;;
7f420862 4172 "gdb.dlang/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.dlang/Makefile" ;;
81ecdfbb 4173 "gdb.fortran/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.fortran/Makefile" ;;
7026a7c1 4174 "gdb.gdb/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.gdb/Makefile" ;;
a766d390 4175 "gdb.go/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.go/Makefile" ;;
81ecdfbb
RW
4176 "gdb.server/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.server/Makefile" ;;
4177 "gdb.java/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.java/Makefile" ;;
30e62689
TT
4178 "gdb.hp/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.hp/Makefile" ;;
4179 "gdb.hp/gdb.objdbg/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.hp/gdb.objdbg/Makefile" ;;
4180 "gdb.hp/gdb.base-hp/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.hp/gdb.base-hp/Makefile" ;;
4181 "gdb.hp/gdb.aCC/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.hp/gdb.aCC/Makefile" ;;
4182 "gdb.hp/gdb.compat/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.hp/gdb.compat/Makefile" ;;
4183 "gdb.hp/gdb.defects/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.hp/gdb.defects/Makefile" ;;
ed3ef339 4184 "gdb.guile/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.guile/Makefile" ;;
f8eba3c6 4185 "gdb.linespec/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.linespec/Makefile" ;;
81ecdfbb
RW
4186 "gdb.mi/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.mi/Makefile" ;;
4187 "gdb.modula2/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.modula2/Makefile" ;;
57bb97a4 4188 "gdb.multi/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.multi/Makefile" ;;
81ecdfbb 4189 "gdb.objc/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.objc/Makefile" ;;
fb03cb59 4190 "gdb.opencl/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.opencl/Makefile" ;;
81ecdfbb
RW
4191 "gdb.opt/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.opt/Makefile" ;;
4192 "gdb.pascal/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.pascal/Makefile" ;;
7636ccf9 4193 "gdb.perf/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.perf/Makefile" ;;
81ecdfbb
RW
4194 "gdb.python/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.python/Makefile" ;;
4195 "gdb.reverse/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.reverse/Makefile" ;;
30e62689 4196 "gdb.stabs/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.stabs/Makefile" ;;
81ecdfbb
RW
4197 "gdb.threads/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.threads/Makefile" ;;
4198 "gdb.trace/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.trace/Makefile" ;;
4199 "gdb.xml/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.xml/Makefile" ;;
4200
4201 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c 4202 esac
bec39cab
AC
4203done
4204
81ecdfbb 4205
bec39cab
AC
4206# If the user did not use the arguments to specify the items to instantiate,
4207# then the envvar interface is used. Set only those that are not.
4208# We use the long form for the default assignment because of an extremely
4209# bizarre bug on SunOS 4.1.3.
4210if $ac_need_defaults; then
4211 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4212fi
4213
4214# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 4215# simply because there is no reason against having it here, and in addition,
bec39cab 4216# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
4217# Hook for its removal unless debugging.
4218# Note that there is a small window in which the directory will not be cleaned:
4219# after its creation but before its name has been assigned to `$tmp'.
bec39cab
AC
4220$debug ||
4221{
81ecdfbb
RW
4222 tmp=
4223 trap 'exit_status=$?
4224 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4225' 0
4226 trap 'as_fn_exit 1' 1 2 13 15
bec39cab 4227}
bec39cab
AC
4228# Create a (secure) tmp directory for tmp files.
4229
4230{
81ecdfbb 4231 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
bec39cab
AC
4232 test -n "$tmp" && test -d "$tmp"
4233} ||
4234{
81ecdfbb
RW
4235 tmp=./conf$$-$RANDOM
4236 (umask 077 && mkdir "$tmp")
4237} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
4238
4239# Set up the scripts for CONFIG_FILES section.
4240# No need to generate them if there are no CONFIG_FILES.
4241# This happens for instance with `./config.status config.h'.
4242if test -n "$CONFIG_FILES"; then
4243
4244
4245ac_cr=`echo X | tr X '\015'`
4246# On cygwin, bash can eat \r inside `` if the user requested igncr.
4247# But we know of no other shell where ac_cr would be empty at this
4248# point, so we can use a bashism as a fallback.
4249if test "x$ac_cr" = x; then
4250 eval ac_cr=\$\'\\r\'
4251fi
4252ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4253if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4254 ac_cs_awk_cr='\r'
4255else
4256 ac_cs_awk_cr=$ac_cr
4257fi
4258
4259echo 'BEGIN {' >"$tmp/subs1.awk" &&
4260_ACEOF
4261
4262
bec39cab 4263{
81ecdfbb
RW
4264 echo "cat >conf$$subs.awk <<_ACEOF" &&
4265 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4266 echo "_ACEOF"
4267} >conf$$subs.sh ||
4268 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4269ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
4270ac_delim='%!_!# '
4271for ac_last_try in false false false false false :; do
4272 . ./conf$$subs.sh ||
4273 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4274
4275 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4276 if test $ac_delim_n = $ac_delim_num; then
4277 break
4278 elif $ac_last_try; then
4279 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4280 else
4281 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4282 fi
4283done
4284rm -f conf$$subs.sh
4285
4286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4287cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
4288_ACEOF
4289sed -n '
4290h
4291s/^/S["/; s/!.*/"]=/
4292p
4293g
4294s/^[^!]*!//
4295:repl
4296t repl
4297s/'"$ac_delim"'$//
4298t delim
4299:nl
4300h
4301s/\(.\{148\}\).*/\1/
4302t more1
4303s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4304p
4305n
4306b repl
4307:more1
4308s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4309p
4310g
4311s/.\{148\}//
4312t nl
4313:delim
4314h
4315s/\(.\{148\}\).*/\1/
4316t more2
4317s/["\\]/\\&/g; s/^/"/; s/$/"/
4318p
4319b
4320:more2
4321s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4322p
4323g
4324s/.\{148\}//
4325t delim
4326' <conf$$subs.awk | sed '
4327/^[^""]/{
4328 N
4329 s/\n//
4330}
4331' >>$CONFIG_STATUS || ac_write_fail=1
4332rm -f conf$$subs.awk
4333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4334_ACAWK
4335cat >>"\$tmp/subs1.awk" <<_ACAWK &&
4336 for (key in S) S_is_set[key] = 1
4337 FS = "\a"
4338
4339}
4340{
4341 line = $ 0
4342 nfields = split(line, field, "@")
4343 substed = 0
4344 len = length(field[1])
4345 for (i = 2; i < nfields; i++) {
4346 key = field[i]
4347 keylen = length(key)
4348 if (S_is_set[key]) {
4349 value = S[key]
4350 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4351 len += length(value) + length(field[++i])
4352 substed = 1
4353 } else
4354 len += 1 + keylen
4355 }
4356
4357 print line
bec39cab
AC
4358}
4359
81ecdfbb
RW
4360_ACAWK
4361_ACEOF
4362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4363if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4364 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4365else
4366 cat
4367fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
4368 || as_fn_error "could not setup config files machinery" "$LINENO" 5
bec39cab
AC
4369_ACEOF
4370
81ecdfbb
RW
4371# VPATH may cause trouble with some makes, so we remove $(srcdir),
4372# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4373# trailing colons and then remove the whole line if VPATH becomes empty
4374# (actually we leave an empty line to preserve line numbers).
4375if test "x$srcdir" = x.; then
4376 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4377s/:*\$(srcdir):*/:/
4378s/:*\${srcdir}:*/:/
4379s/:*@srcdir@:*/:/
4380s/^\([^=]*=[ ]*\):*/\1/
4381s/:*$//
4382s/^[^=]*=[ ]*$//
4383}'
4384fi
c906108c 4385
81ecdfbb
RW
4386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4387fi # test -n "$CONFIG_FILES"
c906108c 4388
c906108c 4389
81ecdfbb
RW
4390eval set X " :F $CONFIG_FILES "
4391shift
4392for ac_tag
4393do
4394 case $ac_tag in
4395 :[FHLC]) ac_mode=$ac_tag; continue;;
4396 esac
4397 case $ac_mode$ac_tag in
4398 :[FHL]*:*);;
4399 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
4400 :[FH]-) ac_tag=-:-;;
4401 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4402 esac
4403 ac_save_IFS=$IFS
4404 IFS=:
4405 set x $ac_tag
4406 IFS=$ac_save_IFS
4407 shift
4408 ac_file=$1
4409 shift
bec39cab 4410
81ecdfbb
RW
4411 case $ac_mode in
4412 :L) ac_source=$1;;
4413 :[FH])
4414 ac_file_inputs=
4415 for ac_f
4416 do
4417 case $ac_f in
4418 -) ac_f="$tmp/stdin";;
4419 *) # Look for the file first in the build tree, then in the source tree
4420 # (if the path is not absolute). The absolute path cannot be DOS-style,
4421 # because $ac_f cannot contain `:'.
4422 test -f "$ac_f" ||
4423 case $ac_f in
4424 [\\/$]*) false;;
4425 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4426 esac ||
4427 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4428 esac
4429 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4430 as_fn_append ac_file_inputs " '$ac_f'"
4431 done
4432
4433 # Let's still pretend it is `configure' which instantiates (i.e., don't
4434 # use $as_me), people would be surprised to read:
4435 # /* config.h. Generated by config.status. */
4436 configure_input='Generated from '`
4437 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4438 `' by configure.'
4439 if test x"$ac_file" != x-; then
4440 configure_input="$ac_file. $configure_input"
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4442$as_echo "$as_me: creating $ac_file" >&6;}
bec39cab 4443 fi
81ecdfbb
RW
4444 # Neutralize special characters interpreted by sed in replacement strings.
4445 case $configure_input in #(
4446 *\&* | *\|* | *\\* )
4447 ac_sed_conf_input=`$as_echo "$configure_input" |
4448 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4449 *) ac_sed_conf_input=$configure_input;;
4450 esac
c906108c 4451
81ecdfbb
RW
4452 case $ac_tag in
4453 *:-:* | *:-) cat >"$tmp/stdin" \
4454 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
4455 esac
4456 ;;
bec39cab
AC
4457 esac
4458
81ecdfbb 4459 ac_dir=`$as_dirname -- "$ac_file" ||
bec39cab
AC
4460$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4461 X"$ac_file" : 'X\(//\)[^/]' \| \
4462 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
4463 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4464$as_echo X"$ac_file" |
4465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4466 s//\1/
4467 q
4468 }
4469 /^X\(\/\/\)[^/].*/{
4470 s//\1/
4471 q
4472 }
4473 /^X\(\/\/\)$/{
4474 s//\1/
4475 q
4476 }
4477 /^X\(\/\).*/{
4478 s//\1/
4479 q
4480 }
4481 s/.*/./; q'`
4482 as_dir="$ac_dir"; as_fn_mkdir_p
bec39cab
AC
4483 ac_builddir=.
4484
81ecdfbb
RW
4485case "$ac_dir" in
4486.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4487*)
4488 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4489 # A ".." for each directory in $ac_dir_suffix.
4490 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4491 case $ac_top_builddir_sub in
4492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4494 esac ;;
4495esac
4496ac_abs_top_builddir=$ac_pwd
4497ac_abs_builddir=$ac_pwd$ac_dir_suffix
4498# for backward compatibility:
4499ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
4500
4501case $srcdir in
81ecdfbb 4502 .) # We are building in place.
bec39cab 4503 ac_srcdir=.
81ecdfbb
RW
4504 ac_top_srcdir=$ac_top_builddir_sub
4505 ac_abs_top_srcdir=$ac_pwd ;;
4506 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 4507 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
4508 ac_top_srcdir=$srcdir
4509 ac_abs_top_srcdir=$srcdir ;;
4510 *) # Relative name.
4511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4512 ac_top_srcdir=$ac_top_build_prefix$srcdir
4513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 4514esac
81ecdfbb 4515ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab 4516
bec39cab 4517
81ecdfbb
RW
4518 case $ac_mode in
4519 :F)
4520 #
4521 # CONFIG_FILE
4522 #
bec39cab 4523
81ecdfbb 4524_ACEOF
bec39cab 4525
81ecdfbb
RW
4526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4527# If the template does not know about datarootdir, expand it.
4528# FIXME: This hack should be removed a few years after 2.60.
4529ac_datarootdir_hack=; ac_datarootdir_seen=
4530ac_sed_dataroot='
4531/datarootdir/ {
4532 p
4533 q
4534}
4535/@datadir@/p
4536/@docdir@/p
4537/@infodir@/p
4538/@localedir@/p
4539/@mandir@/p'
4540case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4541*datarootdir*) ac_datarootdir_seen=yes;;
4542*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4544$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
bec39cab 4545_ACEOF
81ecdfbb
RW
4546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4547 ac_datarootdir_hack='
4548 s&@datadir@&$datadir&g
4549 s&@docdir@&$docdir&g
4550 s&@infodir@&$infodir&g
4551 s&@localedir@&$localedir&g
4552 s&@mandir@&$mandir&g
4553 s&\\\${datarootdir}&$datarootdir&g' ;;
4554esac
4555_ACEOF
4556
4557# Neutralize VPATH when `$srcdir' = `.'.
4558# Shell code in configure.ac might set extrasub.
4559# FIXME: do we really want to maintain this feature?
4560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4561ac_sed_extra="$ac_vpsub
bec39cab
AC
4562$extrasub
4563_ACEOF
81ecdfbb 4564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab
AC
4565:t
4566/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
4567s|@configure_input@|$ac_sed_conf_input|;t t
4568s&@top_builddir@&$ac_top_builddir_sub&;t t
4569s&@top_build_prefix@&$ac_top_build_prefix&;t t
4570s&@srcdir@&$ac_srcdir&;t t
4571s&@abs_srcdir@&$ac_abs_srcdir&;t t
4572s&@top_srcdir@&$ac_top_srcdir&;t t
4573s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4574s&@builddir@&$ac_builddir&;t t
4575s&@abs_builddir@&$ac_abs_builddir&;t t
4576s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4577$ac_datarootdir_hack
4578"
4579eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
4580 || as_fn_error "could not create $ac_file" "$LINENO" 5
4581
4582test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4583 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4584 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4586which seems to be undefined. Please make sure it is defined." >&5
4587$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4588which seems to be undefined. Please make sure it is defined." >&2;}
4589
4590 rm -f "$tmp/stdin"
4591 case $ac_file in
4592 -) cat "$tmp/out" && rm -f "$tmp/out";;
4593 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
4594 esac \
4595 || as_fn_error "could not create $ac_file" "$LINENO" 5
4596 ;;
4597
bec39cab 4598
bec39cab 4599
81ecdfbb
RW
4600 esac
4601
4602done # for ac_tag
4603
bec39cab 4604
81ecdfbb 4605as_fn_exit 0
bec39cab 4606_ACEOF
bec39cab
AC
4607ac_clean_files=$ac_clean_files_save
4608
81ecdfbb
RW
4609test $ac_write_fail = 0 ||
4610 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
4611
bec39cab
AC
4612
4613# configure is writing to config.log, and then calls config.status.
4614# config.status does its own redirection, appending to config.log.
4615# Unfortunately, on DOS this fails, as config.log is still kept open
4616# by configure, so config.status won't be able to write to it; its
4617# output is simply discarded. So we exec the FD to /dev/null,
4618# effectively closing config.log, so it can be properly (re)opened and
4619# appended to by config.status. When coming back to configure, we
4620# need to make the FD available again.
4621if test "$no_create" != yes; then
4622 ac_cs_success=:
4623 ac_config_status_args=
4624 test "$silent" = yes &&
4625 ac_config_status_args="$ac_config_status_args --quiet"
4626 exec 5>/dev/null
4627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4628 exec 5>>config.log
4629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4630 # would make configure fail if this is the last instruction.
81ecdfbb 4631 $ac_cs_success || as_fn_exit $?
bec39cab 4632fi
a13c5393
YQ
4633
4634#
4635# CONFIG_SUBDIRS section.
4636#
4637if test "$no_recursion" != yes; then
4638
4639 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4640 # so they do not pile up.
4641 ac_sub_configure_args=
4642 ac_prev=
4643 eval "set x $ac_configure_args"
4644 shift
4645 for ac_arg
4646 do
4647 if test -n "$ac_prev"; then
4648 ac_prev=
4649 continue
4650 fi
4651 case $ac_arg in
4652 -cache-file | --cache-file | --cache-fil | --cache-fi \
4653 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4654 ac_prev=cache_file ;;
4655 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4656 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4657 | --c=*)
4658 ;;
4659 --config-cache | -C)
4660 ;;
4661 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4662 ac_prev=srcdir ;;
4663 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4664 ;;
4665 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4666 ac_prev=prefix ;;
4667 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4668 ;;
4669 --disable-option-checking)
4670 ;;
4671 *)
4672 case $ac_arg in
4673 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4674 esac
4675 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4676 esac
4677 done
4678
4679 # Always prepend --prefix to ensure using the same prefix
4680 # in subdir configurations.
4681 ac_arg="--prefix=$prefix"
4682 case $ac_arg in
4683 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4684 esac
4685 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4686
4687 # Pass --silent
4688 if test "$silent" = yes; then
4689 ac_sub_configure_args="--silent $ac_sub_configure_args"
4690 fi
4691
4692 # Always prepend --disable-option-checking to silence warnings, since
4693 # different subdirs can have different --enable and --with options.
4694 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4695
4696 ac_popdir=`pwd`
4697 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
4698
4699 # Do not complain, so a configure script can configure whichever
4700 # parts of a large source tree are present.
4701 test -d "$srcdir/$ac_dir" || continue
4702
4703 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4705 $as_echo "$ac_msg" >&6
4706 as_dir="$ac_dir"; as_fn_mkdir_p
4707 ac_builddir=.
4708
4709case "$ac_dir" in
4710.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4711*)
4712 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4713 # A ".." for each directory in $ac_dir_suffix.
4714 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4715 case $ac_top_builddir_sub in
4716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4718 esac ;;
4719esac
4720ac_abs_top_builddir=$ac_pwd
4721ac_abs_builddir=$ac_pwd$ac_dir_suffix
4722# for backward compatibility:
4723ac_top_builddir=$ac_top_build_prefix
4724
4725case $srcdir in
4726 .) # We are building in place.
4727 ac_srcdir=.
4728 ac_top_srcdir=$ac_top_builddir_sub
4729 ac_abs_top_srcdir=$ac_pwd ;;
4730 [\\/]* | ?:[\\/]* ) # Absolute name.
4731 ac_srcdir=$srcdir$ac_dir_suffix;
4732 ac_top_srcdir=$srcdir
4733 ac_abs_top_srcdir=$srcdir ;;
4734 *) # Relative name.
4735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4736 ac_top_srcdir=$ac_top_build_prefix$srcdir
4737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4738esac
4739ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4740
4741
4742 cd "$ac_dir"
4743
4744 # Check for guested configure; otherwise get Cygnus style configure.
4745 if test -f "$ac_srcdir/configure.gnu"; then
4746 ac_sub_configure=$ac_srcdir/configure.gnu
4747 elif test -f "$ac_srcdir/configure"; then
4748 ac_sub_configure=$ac_srcdir/configure
4749 elif test -f "$ac_srcdir/configure.in"; then
4750 # This should be Cygnus configure.
4751 ac_sub_configure=$ac_aux_dir/configure
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
4754$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
4755 ac_sub_configure=
4756 fi
4757
4758 # The recursion is here.
4759 if test -n "$ac_sub_configure"; then
4760 # Make the cache file name correct relative to the subdirectory.
4761 case $cache_file in
4762 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4763 *) # Relative name.
4764 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4765 esac
4766
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
4768$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4769 # The eval makes quoting arguments work.
4770 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4771 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4772 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4773 fi
4774
4775 cd "$ac_popdir"
4776 done
4777fi
81ecdfbb
RW
4778if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4780$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4781fi
c906108c 4782
This page took 2.162793 seconds and 4 git commands to generate.