* coffcode.h (coff_sym_filepos): Remove GNU960 conditional code.
[deliverable/binutils-gdb.git] / gdb / gdbserver / configure
CommitLineData
d6e9fb05 1#! /bin/sh
d6e9fb05 2# Guess values for system-dependent variables and create Makefiles.
bec39cab 3# Generated by GNU Autoconf 2.59.
d6e9fb05 4#
bec39cab 5# Copyright (C) 2003 Free Software Foundation, Inc.
d6e9fb05
JK
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
bec39cab
AC
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
d6e9fb05 224
bec39cab
AC
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
d6e9fb05 254ac_default_prefix=/usr/local
bec39cab
AC
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="server.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP RDYNAMIC GDBSERVER_DEPFILES GDBSERVER_LIBS USE_THREAD_DB LIBOBJS LTLIBOBJS'
313ac_subst_files=''
d6e9fb05
JK
314
315# Initialize some variables set by options.
bec39cab
AC
316ac_init_help=
317ac_init_version=false
d6e9fb05
JK
318# The variables have the same names as the options, with
319# dashes changed to underlines.
bec39cab 320cache_file=/dev/null
d6e9fb05 321exec_prefix=NONE
d6e9fb05 322no_create=
d6e9fb05
JK
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
d6e9fb05
JK
331verbose=
332x_includes=NONE
333x_libraries=NONE
bec39cab
AC
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
d6e9fb05
JK
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
d6e9fb05
JK
353ac_prev=
354for ac_option
355do
d6e9fb05
JK
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
bec39cab 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
d6e9fb05
JK
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
bec39cab 367 case $ac_option in
d6e9fb05
JK
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 372 bindir=$ac_optarg ;;
d6e9fb05
JK
373
374 -build | --build | --buil | --bui | --bu)
bec39cab 375 ac_prev=build_alias ;;
d6e9fb05 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 377 build_alias=$ac_optarg ;;
d6e9fb05
JK
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
d6e9fb05
JK
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
bec39cab 393 datadir=$ac_optarg ;;
d6e9fb05
JK
394
395 -disable-* | --disable-*)
bec39cab 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d6e9fb05 397 # Reject names that are not valid shell variable names.
bec39cab
AC
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
d6e9fb05
JK
403
404 -enable-* | --enable-*)
bec39cab 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d6e9fb05 406 # Reject names that are not valid shell variable names.
bec39cab
AC
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
d6e9fb05
JK
413 *) ac_optarg=yes ;;
414 esac
bec39cab 415 eval "enable_$ac_feature='$ac_optarg'" ;;
d6e9fb05
JK
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
bec39cab 424 exec_prefix=$ac_optarg ;;
d6e9fb05
JK
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
bec39cab
AC
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
d6e9fb05
JK
436
437 -host | --host | --hos | --ho)
bec39cab 438 ac_prev=host_alias ;;
d6e9fb05 439 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 440 host_alias=$ac_optarg ;;
d6e9fb05
JK
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 447 includedir=$ac_optarg ;;
d6e9fb05
JK
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 452 infodir=$ac_optarg ;;
d6e9fb05
JK
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 457 libdir=$ac_optarg ;;
d6e9fb05
JK
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
bec39cab 464 libexecdir=$ac_optarg ;;
d6e9fb05
JK
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 473 localstatedir=$ac_optarg ;;
d6e9fb05
JK
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 478 mandir=$ac_optarg ;;
d6e9fb05
JK
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 485 | --no-cr | --no-c | -n)
d6e9fb05
JK
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 499 oldincludedir=$ac_optarg ;;
d6e9fb05
JK
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 504 prefix=$ac_optarg ;;
d6e9fb05
JK
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 511 program_prefix=$ac_optarg ;;
d6e9fb05
JK
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 518 program_suffix=$ac_optarg ;;
d6e9fb05
JK
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 535 program_transform_name=$ac_optarg ;;
d6e9fb05
JK
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
bec39cab 545 sbindir=$ac_optarg ;;
d6e9fb05
JK
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
bec39cab 556 sharedstatedir=$ac_optarg ;;
d6e9fb05
JK
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
bec39cab 561 site=$ac_optarg ;;
434c4c77 562
d6e9fb05
JK
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 566 srcdir=$ac_optarg ;;
d6e9fb05
JK
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 573 sysconfdir=$ac_optarg ;;
d6e9fb05
JK
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 576 ac_prev=target_alias ;;
d6e9fb05 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 578 target_alias=$ac_optarg ;;
d6e9fb05
JK
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
bec39cab
AC
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
d6e9fb05
JK
585
586 -with-* | --with-*)
bec39cab 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d6e9fb05 588 # Reject names that are not valid shell variable names.
bec39cab
AC
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
d6e9fb05 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
bec39cab
AC
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
d6e9fb05
JK
595 *) ac_optarg=yes ;;
596 esac
bec39cab 597 eval "with_$ac_package='$ac_optarg'" ;;
d6e9fb05
JK
598
599 -without-* | --without-*)
bec39cab 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d6e9fb05 601 # Reject names that are not valid shell variable names.
bec39cab
AC
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
d6e9fb05
JK
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 617 x_includes=$ac_optarg ;;
d6e9fb05
JK
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 624 x_libraries=$ac_optarg ;;
d6e9fb05 625
bec39cab
AC
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
d6e9fb05
JK
629 ;;
630
bec39cab
AC
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
d6e9fb05 641 *)
bec39cab
AC
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
d6e9fb05
JK
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
bec39cab
AC
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
d6e9fb05 656fi
d6e9fb05 657
bec39cab
AC
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
d6e9fb05 668
bec39cab
AC
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
d6e9fb05 672do
bec39cab
AC
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
d6e9fb05
JK
678 esac
679done
680
bec39cab
AC
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
d6e9fb05 698
bec39cab
AC
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
d6e9fb05 703
d6e9fb05
JK
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
bec39cab
AC
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
d6e9fb05
JK
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
bec39cab
AC
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
d6e9fb05 732 else
bec39cab
AC
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
d6e9fb05
JK
735 fi
736fi
bec39cab
AC
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
d6e9fb05 773
bec39cab
AC
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 --target=TARGET configure for building compilers for TARGET [HOST]
838_ACEOF
839fi
840
841if test -n "$ac_init_help"; then
842
843 cat <<\_ACEOF
844
845Some influential environment variables:
846 CC C compiler command
847 CFLAGS C compiler flags
848 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
849 nonstandard directory <lib dir>
850 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
851 headers in a nonstandard directory <include dir>
852 CPP C preprocessor
853
854Use these variables to override the choices made by `configure' or to help
855it to find libraries and programs with nonstandard names/locations.
856
857_ACEOF
858fi
859
860if test "$ac_init_help" = "recursive"; then
861 # If there are subdirs, report their specific --help.
862 ac_popdir=`pwd`
863 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
864 test -d $ac_dir || continue
865 ac_builddir=.
866
867if test "$ac_dir" != .; then
868 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
869 # A "../" for each directory in $ac_dir_suffix.
870 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
871else
872 ac_dir_suffix= ac_top_builddir=
873fi
874
875case $srcdir in
876 .) # No --srcdir option. We are building in place.
877 ac_srcdir=.
878 if test -z "$ac_top_builddir"; then
879 ac_top_srcdir=.
880 else
881 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
882 fi ;;
883 [\\/]* | ?:[\\/]* ) # Absolute path.
884 ac_srcdir=$srcdir$ac_dir_suffix;
885 ac_top_srcdir=$srcdir ;;
886 *) # Relative path.
887 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
888 ac_top_srcdir=$ac_top_builddir$srcdir ;;
889esac
890
891# Do not use `cd foo && pwd` to compute absolute paths, because
892# the directories may not exist.
893case `pwd` in
894.) ac_abs_builddir="$ac_dir";;
895*)
896 case "$ac_dir" in
897 .) ac_abs_builddir=`pwd`;;
898 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
899 *) ac_abs_builddir=`pwd`/"$ac_dir";;
900 esac;;
901esac
902case $ac_abs_builddir in
903.) ac_abs_top_builddir=${ac_top_builddir}.;;
904*)
905 case ${ac_top_builddir}. in
906 .) ac_abs_top_builddir=$ac_abs_builddir;;
907 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
908 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
909 esac;;
910esac
911case $ac_abs_builddir in
912.) ac_abs_srcdir=$ac_srcdir;;
913*)
914 case $ac_srcdir in
915 .) ac_abs_srcdir=$ac_abs_builddir;;
916 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
917 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
918 esac;;
919esac
920case $ac_abs_builddir in
921.) ac_abs_top_srcdir=$ac_top_srcdir;;
922*)
923 case $ac_top_srcdir in
924 .) ac_abs_top_srcdir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
926 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
927 esac;;
928esac
929
930 cd $ac_dir
931 # Check for guested configure; otherwise get Cygnus style configure.
932 if test -f $ac_srcdir/configure.gnu; then
933 echo
934 $SHELL $ac_srcdir/configure.gnu --help=recursive
935 elif test -f $ac_srcdir/configure; then
936 echo
937 $SHELL $ac_srcdir/configure --help=recursive
938 elif test -f $ac_srcdir/configure.ac ||
939 test -f $ac_srcdir/configure.in; then
940 echo
941 $ac_configure --help
434c4c77 942 else
bec39cab
AC
943 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
944 fi
945 cd $ac_popdir
946 done
947fi
948
949test -n "$ac_init_help" && exit 0
950if $ac_init_version; then
951 cat <<\_ACEOF
952
953Copyright (C) 2003 Free Software Foundation, Inc.
954This configure script is free software; the Free Software Foundation
955gives unlimited permission to copy, distribute and modify it.
956_ACEOF
957 exit 0
958fi
959exec 5>config.log
960cat >&5 <<_ACEOF
961This file contains any messages produced by compilers while
962running configure, to aid debugging if configure makes a mistake.
963
964It was created by $as_me, which was
965generated by GNU Autoconf 2.59. Invocation command line was
966
967 $ $0 $@
968
969_ACEOF
970{
971cat <<_ASUNAME
972## --------- ##
973## Platform. ##
974## --------- ##
975
976hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
977uname -m = `(uname -m) 2>/dev/null || echo unknown`
978uname -r = `(uname -r) 2>/dev/null || echo unknown`
979uname -s = `(uname -s) 2>/dev/null || echo unknown`
980uname -v = `(uname -v) 2>/dev/null || echo unknown`
981
982/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
983/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
984
985/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
986/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
987/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
988hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
989/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
990/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
991/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
992
993_ASUNAME
994
995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
996for as_dir in $PATH
997do
998 IFS=$as_save_IFS
999 test -z "$as_dir" && as_dir=.
1000 echo "PATH: $as_dir"
1001done
1002
1003} >&5
1004
1005cat >&5 <<_ACEOF
1006
1007
1008## ----------- ##
1009## Core tests. ##
1010## ----------- ##
1011
1012_ACEOF
1013
1014
1015# Keep a trace of the command line.
1016# Strip out --no-create and --no-recursion so they do not pile up.
1017# Strip out --silent because we don't want to record it for future runs.
1018# Also quote any args containing shell meta-characters.
1019# Make two passes to allow for proper duplicate-argument suppression.
1020ac_configure_args=
1021ac_configure_args0=
1022ac_configure_args1=
1023ac_sep=
1024ac_must_keep_next=false
1025for ac_pass in 1 2
1026do
1027 for ac_arg
1028 do
1029 case $ac_arg in
1030 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032 | -silent | --silent | --silen | --sile | --sil)
1033 continue ;;
1034 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036 esac
1037 case $ac_pass in
1038 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1039 2)
1040 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1041 if test $ac_must_keep_next = true; then
1042 ac_must_keep_next=false # Got value, back to normal.
1043 else
1044 case $ac_arg in
1045 *=* | --config-cache | -C | -disable-* | --disable-* \
1046 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1047 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1048 | -with-* | --with-* | -without-* | --without-* | --x)
1049 case "$ac_configure_args0 " in
1050 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1051 esac
1052 ;;
1053 -* ) ac_must_keep_next=true ;;
1054 esac
1055 fi
1056 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1057 # Get rid of the leading space.
1058 ac_sep=" "
1059 ;;
1060 esac
1061 done
1062done
1063$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1064$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1065
1066# When interrupted or exit'd, cleanup temporary files, and complete
1067# config.log. We remove comments because anyway the quotes in there
1068# would cause problems or look ugly.
1069# WARNING: Be sure not to use single quotes in there, as some shells,
1070# such as our DU 5.0 friend, will then `close' the trap.
1071trap 'exit_status=$?
1072 # Save into config.log some information that might help in debugging.
1073 {
1074 echo
1075
1076 cat <<\_ASBOX
1077## ---------------- ##
1078## Cache variables. ##
1079## ---------------- ##
1080_ASBOX
1081 echo
1082 # The following way of writing the cache mishandles newlines in values,
1083{
1084 (set) 2>&1 |
1085 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1086 *ac_space=\ *)
1087 sed -n \
1088 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1090 ;;
1091 *)
1092 sed -n \
1093 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1094 ;;
1095 esac;
1096}
1097 echo
1098
1099 cat <<\_ASBOX
1100## ----------------- ##
1101## Output variables. ##
1102## ----------------- ##
1103_ASBOX
1104 echo
1105 for ac_var in $ac_subst_vars
1106 do
1107 eval ac_val=$`echo $ac_var`
1108 echo "$ac_var='"'"'$ac_val'"'"'"
1109 done | sort
1110 echo
1111
1112 if test -n "$ac_subst_files"; then
1113 cat <<\_ASBOX
1114## ------------- ##
1115## Output files. ##
1116## ------------- ##
1117_ASBOX
1118 echo
1119 for ac_var in $ac_subst_files
1120 do
1121 eval ac_val=$`echo $ac_var`
1122 echo "$ac_var='"'"'$ac_val'"'"'"
1123 done | sort
1124 echo
434c4c77 1125 fi
bec39cab
AC
1126
1127 if test -s confdefs.h; then
1128 cat <<\_ASBOX
1129## ----------- ##
1130## confdefs.h. ##
1131## ----------- ##
1132_ASBOX
1133 echo
1134 sed "/^$/d" confdefs.h | sort
1135 echo
1136 fi
1137 test "$ac_signal" != 0 &&
1138 echo "$as_me: caught signal $ac_signal"
1139 echo "$as_me: exit $exit_status"
1140 } >&5
1141 rm -f core *.core &&
1142 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1143 exit $exit_status
1144 ' 0
1145for ac_signal in 1 2 13 15; do
1146 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1147done
1148ac_signal=0
1149
1150# confdefs.h avoids OS command line length limits that DEFS can exceed.
1151rm -rf conftest* confdefs.h
1152# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1153echo >confdefs.h
1154
1155# Predefined preprocessor variables.
1156
1157cat >>confdefs.h <<_ACEOF
1158#define PACKAGE_NAME "$PACKAGE_NAME"
1159_ACEOF
1160
1161
1162cat >>confdefs.h <<_ACEOF
1163#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1164_ACEOF
1165
1166
1167cat >>confdefs.h <<_ACEOF
1168#define PACKAGE_VERSION "$PACKAGE_VERSION"
1169_ACEOF
1170
1171
1172cat >>confdefs.h <<_ACEOF
1173#define PACKAGE_STRING "$PACKAGE_STRING"
1174_ACEOF
1175
1176
1177cat >>confdefs.h <<_ACEOF
1178#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1179_ACEOF
1180
1181
1182# Let the site file select an alternate cache file if it wants to.
1183# Prefer explicitly selected file to automatically selected ones.
1184if test -z "$CONFIG_SITE"; then
1185 if test "x$prefix" != xNONE; then
1186 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1187 else
1188 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
d6e9fb05
JK
1189 fi
1190fi
1191for ac_site_file in $CONFIG_SITE; do
1192 if test -r "$ac_site_file"; then
bec39cab
AC
1193 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1194echo "$as_me: loading site script $ac_site_file" >&6;}
1195 sed 's/^/| /' "$ac_site_file" >&5
d6e9fb05
JK
1196 . "$ac_site_file"
1197 fi
1198done
1199
1200if test -r "$cache_file"; then
bec39cab
AC
1201 # Some versions of bash will fail to source /dev/null (special
1202 # files actually), so we avoid doing that.
1203 if test -f "$cache_file"; then
1204 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1205echo "$as_me: loading cache $cache_file" >&6;}
1206 case $cache_file in
1207 [\\/]* | ?:[\\/]* ) . $cache_file;;
1208 *) . ./$cache_file;;
1209 esac
1210 fi
d6e9fb05 1211else
bec39cab
AC
1212 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1213echo "$as_me: creating cache $cache_file" >&6;}
1214 >$cache_file
d6e9fb05
JK
1215fi
1216
bec39cab
AC
1217# Check that the precious variables saved in the cache have kept the same
1218# value.
1219ac_cache_corrupted=false
1220for ac_var in `(set) 2>&1 |
1221 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1222 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1223 eval ac_new_set=\$ac_env_${ac_var}_set
1224 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1225 eval ac_new_val="\$ac_env_${ac_var}_value"
1226 case $ac_old_set,$ac_new_set in
1227 set,)
1228 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1229echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1230 ac_cache_corrupted=: ;;
1231 ,set)
1232 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1233echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1234 ac_cache_corrupted=: ;;
1235 ,);;
1236 *)
1237 if test "x$ac_old_val" != "x$ac_new_val"; then
1238 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1239echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1240 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1241echo "$as_me: former value: $ac_old_val" >&2;}
1242 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1243echo "$as_me: current value: $ac_new_val" >&2;}
1244 ac_cache_corrupted=:
1245 fi;;
1246 esac
1247 # Pass precious variables to config.status.
1248 if test "$ac_new_set" = set; then
1249 case $ac_new_val in
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 *) ac_arg=$ac_var=$ac_new_val ;;
1253 esac
1254 case " $ac_configure_args " in
1255 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1256 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1257 esac
d6e9fb05 1258 fi
bec39cab
AC
1259done
1260if $ac_cache_corrupted; then
1261 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1262echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1263 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1264echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1265 { (exit 1); exit 1; }; }
d6e9fb05
JK
1266fi
1267
bec39cab
AC
1268ac_ext=c
1269ac_cpp='$CPP $CPPFLAGS'
1270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1272ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6e9fb05
JK
1273
1274
84563040 1275
bec39cab
AC
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292 ac_config_headers="$ac_config_headers config.h:config.in"
1293
1294
1295ac_ext=c
1296ac_cpp='$CPP $CPPFLAGS'
1297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1299ac_compiler_gnu=$ac_cv_c_compiler_gnu
1300if test -n "$ac_tool_prefix"; then
1301 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1302set dummy ${ac_tool_prefix}gcc; ac_word=$2
1303echo "$as_me:$LINENO: checking for $ac_word" >&5
1304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1305if test "${ac_cv_prog_CC+set}" = set; then
1306 echo $ECHO_N "(cached) $ECHO_C" >&6
84563040
DJ
1307else
1308 if test -n "$CC"; then
1309 ac_cv_prog_CC="$CC" # Let the user override the test.
1310else
bec39cab
AC
1311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1312for as_dir in $PATH
1313do
1314 IFS=$as_save_IFS
1315 test -z "$as_dir" && as_dir=.
1316 for ac_exec_ext in '' $ac_executable_extensions; do
1317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1318 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1320 break 2
1321 fi
1322done
1323done
1324
84563040
DJ
1325fi
1326fi
bec39cab 1327CC=$ac_cv_prog_CC
84563040 1328if test -n "$CC"; then
bec39cab
AC
1329 echo "$as_me:$LINENO: result: $CC" >&5
1330echo "${ECHO_T}$CC" >&6
84563040 1331else
bec39cab
AC
1332 echo "$as_me:$LINENO: result: no" >&5
1333echo "${ECHO_T}no" >&6
84563040
DJ
1334fi
1335
bec39cab
AC
1336fi
1337if test -z "$ac_cv_prog_CC"; then
1338 ac_ct_CC=$CC
1339 # Extract the first word of "gcc", so it can be a program name with args.
1340set dummy gcc; ac_word=$2
1341echo "$as_me:$LINENO: checking for $ac_word" >&5
1342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1343if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1344 echo $ECHO_N "(cached) $ECHO_C" >&6
84563040 1345else
bec39cab
AC
1346 if test -n "$ac_ct_CC"; then
1347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
84563040 1348else
bec39cab
AC
1349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1350for as_dir in $PATH
1351do
1352 IFS=$as_save_IFS
1353 test -z "$as_dir" && as_dir=.
1354 for ac_exec_ext in '' $ac_executable_extensions; do
1355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1356 ac_cv_prog_ac_ct_CC="gcc"
1357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1358 break 2
1359 fi
1360done
1361done
1362
1363fi
1364fi
1365ac_ct_CC=$ac_cv_prog_ac_ct_CC
1366if test -n "$ac_ct_CC"; then
1367 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1368echo "${ECHO_T}$ac_ct_CC" >&6
1369else
1370 echo "$as_me:$LINENO: result: no" >&5
1371echo "${ECHO_T}no" >&6
1372fi
1373
1374 CC=$ac_ct_CC
1375else
1376 CC="$ac_cv_prog_CC"
1377fi
1378
1379if test -z "$CC"; then
1380 if test -n "$ac_tool_prefix"; then
1381 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1382set dummy ${ac_tool_prefix}cc; ac_word=$2
1383echo "$as_me:$LINENO: checking for $ac_word" >&5
1384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1385if test "${ac_cv_prog_CC+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1387else
1388 if test -n "$CC"; then
1389 ac_cv_prog_CC="$CC" # Let the user override the test.
1390else
1391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1392for as_dir in $PATH
1393do
1394 IFS=$as_save_IFS
1395 test -z "$as_dir" && as_dir=.
1396 for ac_exec_ext in '' $ac_executable_extensions; do
1397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1398 ac_cv_prog_CC="${ac_tool_prefix}cc"
1399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1400 break 2
1401 fi
1402done
1403done
1404
1405fi
1406fi
1407CC=$ac_cv_prog_CC
1408if test -n "$CC"; then
1409 echo "$as_me:$LINENO: result: $CC" >&5
1410echo "${ECHO_T}$CC" >&6
1411else
1412 echo "$as_me:$LINENO: result: no" >&5
1413echo "${ECHO_T}no" >&6
1414fi
1415
1416fi
1417if test -z "$ac_cv_prog_CC"; then
1418 ac_ct_CC=$CC
1419 # Extract the first word of "cc", so it can be a program name with args.
1420set dummy cc; ac_word=$2
1421echo "$as_me:$LINENO: checking for $ac_word" >&5
1422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1425else
1426 if test -n "$ac_ct_CC"; then
1427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1428else
1429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430for as_dir in $PATH
1431do
1432 IFS=$as_save_IFS
1433 test -z "$as_dir" && as_dir=.
1434 for ac_exec_ext in '' $ac_executable_extensions; do
1435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1436 ac_cv_prog_ac_ct_CC="cc"
1437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1438 break 2
1439 fi
1440done
1441done
1442
1443fi
1444fi
1445ac_ct_CC=$ac_cv_prog_ac_ct_CC
1446if test -n "$ac_ct_CC"; then
1447 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1448echo "${ECHO_T}$ac_ct_CC" >&6
1449else
1450 echo "$as_me:$LINENO: result: no" >&5
1451echo "${ECHO_T}no" >&6
1452fi
1453
1454 CC=$ac_ct_CC
1455else
1456 CC="$ac_cv_prog_CC"
1457fi
1458
1459fi
1460if test -z "$CC"; then
1461 # Extract the first word of "cc", so it can be a program name with args.
1462set dummy cc; ac_word=$2
1463echo "$as_me:$LINENO: checking for $ac_word" >&5
1464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1465if test "${ac_cv_prog_CC+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1467else
1468 if test -n "$CC"; then
1469 ac_cv_prog_CC="$CC" # Let the user override the test.
1470else
1471 ac_prog_rejected=no
1472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473for as_dir in $PATH
1474do
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 for ac_exec_ext in '' $ac_executable_extensions; do
1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1480 ac_prog_rejected=yes
1481 continue
1482 fi
1483 ac_cv_prog_CC="cc"
1484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485 break 2
1486 fi
1487done
1488done
1489
84563040
DJ
1490if test $ac_prog_rejected = yes; then
1491 # We found a bogon in the path, so make sure we never use it.
1492 set dummy $ac_cv_prog_CC
1493 shift
bec39cab 1494 if test $# != 0; then
84563040
DJ
1495 # We chose a different compiler from the bogus one.
1496 # However, it has the same basename, so the bogon will be chosen
1497 # first if we set CC to just the basename; use the full file name.
1498 shift
bec39cab 1499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
84563040
DJ
1500 fi
1501fi
1502fi
1503fi
bec39cab 1504CC=$ac_cv_prog_CC
84563040 1505if test -n "$CC"; then
bec39cab
AC
1506 echo "$as_me:$LINENO: result: $CC" >&5
1507echo "${ECHO_T}$CC" >&6
84563040 1508else
bec39cab
AC
1509 echo "$as_me:$LINENO: result: no" >&5
1510echo "${ECHO_T}no" >&6
84563040
DJ
1511fi
1512
bec39cab
AC
1513fi
1514if test -z "$CC"; then
1515 if test -n "$ac_tool_prefix"; then
1516 for ac_prog in cl
1517 do
1518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1519set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1520echo "$as_me:$LINENO: checking for $ac_word" >&5
1521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522if test "${ac_cv_prog_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
84563040
DJ
1524else
1525 if test -n "$CC"; then
1526 ac_cv_prog_CC="$CC" # Let the user override the test.
1527else
bec39cab
AC
1528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529for as_dir in $PATH
1530do
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
1538 fi
1539done
1540done
1541
84563040
DJ
1542fi
1543fi
bec39cab 1544CC=$ac_cv_prog_CC
84563040 1545if test -n "$CC"; then
bec39cab
AC
1546 echo "$as_me:$LINENO: result: $CC" >&5
1547echo "${ECHO_T}$CC" >&6
84563040 1548else
bec39cab
AC
1549 echo "$as_me:$LINENO: result: no" >&5
1550echo "${ECHO_T}no" >&6
84563040 1551fi
bec39cab
AC
1552
1553 test -n "$CC" && break
1554 done
1555fi
1556if test -z "$CC"; then
1557 ac_ct_CC=$CC
1558 for ac_prog in cl
1559do
1560 # Extract the first word of "$ac_prog", so it can be a program name with args.
1561set dummy $ac_prog; ac_word=$2
1562echo "$as_me:$LINENO: checking for $ac_word" >&5
1563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1566else
1567 if test -n "$ac_ct_CC"; then
1568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1569else
1570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571for as_dir in $PATH
1572do
1573 IFS=$as_save_IFS
1574 test -z "$as_dir" && as_dir=.
1575 for ac_exec_ext in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577 ac_cv_prog_ac_ct_CC="$ac_prog"
1578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 break 2
84563040 1580 fi
bec39cab
AC
1581done
1582done
1583
1584fi
1585fi
1586ac_ct_CC=$ac_cv_prog_ac_ct_CC
1587if test -n "$ac_ct_CC"; then
1588 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1589echo "${ECHO_T}$ac_ct_CC" >&6
1590else
1591 echo "$as_me:$LINENO: result: no" >&5
1592echo "${ECHO_T}no" >&6
84563040
DJ
1593fi
1594
bec39cab
AC
1595 test -n "$ac_ct_CC" && break
1596done
84563040 1597
bec39cab
AC
1598 CC=$ac_ct_CC
1599fi
1600
1601fi
1602
1603
1604test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1605See \`config.log' for more details." >&5
1606echo "$as_me: error: no acceptable C compiler found in \$PATH
1607See \`config.log' for more details." >&2;}
1608 { (exit 1); exit 1; }; }
1609
1610# Provide some information about the compiler.
1611echo "$as_me:$LINENO:" \
1612 "checking for C compiler version" >&5
1613ac_compiler=`set X $ac_compile; echo $2`
1614{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1615 (eval $ac_compiler --version </dev/null >&5) 2>&5
1616 ac_status=$?
1617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1618 (exit $ac_status); }
1619{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1620 (eval $ac_compiler -v </dev/null >&5) 2>&5
1621 ac_status=$?
1622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1623 (exit $ac_status); }
1624{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1625 (eval $ac_compiler -V </dev/null >&5) 2>&5
1626 ac_status=$?
1627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1628 (exit $ac_status); }
1629
1630cat >conftest.$ac_ext <<_ACEOF
1631/* confdefs.h. */
1632_ACEOF
1633cat confdefs.h >>conftest.$ac_ext
1634cat >>conftest.$ac_ext <<_ACEOF
1635/* end confdefs.h. */
1636
1637int
1638main ()
1639{
1640
1641 ;
1642 return 0;
1643}
1644_ACEOF
1645ac_clean_files_save=$ac_clean_files
1646ac_clean_files="$ac_clean_files a.out a.exe b.out"
1647# Try to create an executable without -o first, disregard a.out.
1648# It will help us diagnose broken compilers, and finding out an intuition
1649# of exeext.
1650echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1651echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1652ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1653if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1654 (eval $ac_link_default) 2>&5
1655 ac_status=$?
1656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1657 (exit $ac_status); }; then
1658 # Find the output, starting from the most likely. This scheme is
1659# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1660# resort.
1661
1662# Be careful to initialize this variable, since it used to be cached.
1663# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1664ac_cv_exeext=
1665# b.out is created by i960 compilers.
1666for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1667do
1668 test -f "$ac_file" || continue
1669 case $ac_file in
1670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1671 ;;
1672 conftest.$ac_ext )
1673 # This is the source file.
1674 ;;
1675 [ab].out )
1676 # We found the default executable, but exeext='' is most
1677 # certainly right.
1678 break;;
1679 *.* )
1680 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1681 # FIXME: I believe we export ac_cv_exeext for Libtool,
1682 # but it would be cool to find out if it's true. Does anybody
1683 # maintain Libtool? --akim.
1684 export ac_cv_exeext
1685 break;;
1686 * )
1687 break;;
1688 esac
1689done
1690else
1691 echo "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5
1693
1694{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1695See \`config.log' for more details." >&5
1696echo "$as_me: error: C compiler cannot create executables
1697See \`config.log' for more details." >&2;}
1698 { (exit 77); exit 77; }; }
1699fi
1700
1701ac_exeext=$ac_cv_exeext
1702echo "$as_me:$LINENO: result: $ac_file" >&5
1703echo "${ECHO_T}$ac_file" >&6
1704
1705# Check the compiler produces executables we can run. If not, either
1706# the compiler is broken, or we cross compile.
1707echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1708echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1709# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1710# If not cross compiling, check that we can run a simple program.
1711if test "$cross_compiling" != yes; then
1712 if { ac_try='./$ac_file'
1713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1714 (eval $ac_try) 2>&5
1715 ac_status=$?
1716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1717 (exit $ac_status); }; }; then
1718 cross_compiling=no
84563040 1719 else
bec39cab
AC
1720 if test "$cross_compiling" = maybe; then
1721 cross_compiling=yes
1722 else
1723 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1724If you meant to cross compile, use \`--host'.
1725See \`config.log' for more details." >&5
1726echo "$as_me: error: cannot run C compiled programs.
1727If you meant to cross compile, use \`--host'.
1728See \`config.log' for more details." >&2;}
1729 { (exit 1); exit 1; }; }
1730 fi
84563040 1731 fi
84563040 1732fi
bec39cab
AC
1733echo "$as_me:$LINENO: result: yes" >&5
1734echo "${ECHO_T}yes" >&6
1735
1736rm -f a.out a.exe conftest$ac_cv_exeext b.out
1737ac_clean_files=$ac_clean_files_save
1738# Check the compiler produces executables we can run. If not, either
1739# the compiler is broken, or we cross compile.
1740echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1741echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1742echo "$as_me:$LINENO: result: $cross_compiling" >&5
1743echo "${ECHO_T}$cross_compiling" >&6
1744
1745echo "$as_me:$LINENO: checking for suffix of executables" >&5
1746echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1748 (eval $ac_link) 2>&5
1749 ac_status=$?
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }; then
1752 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1753# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1754# work properly (i.e., refer to `conftest.exe'), while it won't with
1755# `rm'.
1756for ac_file in conftest.exe conftest conftest.*; do
1757 test -f "$ac_file" || continue
1758 case $ac_file in
1759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1760 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1761 export ac_cv_exeext
1762 break;;
1763 * ) break;;
1764 esac
1765done
84563040 1766else
bec39cab
AC
1767 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1768See \`config.log' for more details." >&5
1769echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1770See \`config.log' for more details." >&2;}
1771 { (exit 1); exit 1; }; }
84563040 1772fi
bec39cab
AC
1773
1774rm -f conftest$ac_cv_exeext
1775echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1776echo "${ECHO_T}$ac_cv_exeext" >&6
1777
1778rm -f conftest.$ac_ext
1779EXEEXT=$ac_cv_exeext
1780ac_exeext=$EXEEXT
1781echo "$as_me:$LINENO: checking for suffix of object files" >&5
1782echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1783if test "${ac_cv_objext+set}" = set; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1785else
1786 cat >conftest.$ac_ext <<_ACEOF
1787/* confdefs.h. */
1788_ACEOF
1789cat confdefs.h >>conftest.$ac_ext
1790cat >>conftest.$ac_ext <<_ACEOF
1791/* end confdefs.h. */
1792
1793int
1794main ()
1795{
1796
1797 ;
1798 return 0;
1799}
1800_ACEOF
1801rm -f conftest.o conftest.obj
1802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1803 (eval $ac_compile) 2>&5
1804 ac_status=$?
1805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806 (exit $ac_status); }; then
1807 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1808 case $ac_file in
1809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1810 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1811 break;;
1812 esac
1813done
1814else
1815 echo "$as_me: failed program was:" >&5
1816sed 's/^/| /' conftest.$ac_ext >&5
1817
1818{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1819See \`config.log' for more details." >&5
1820echo "$as_me: error: cannot compute suffix of object files: cannot compile
1821See \`config.log' for more details." >&2;}
1822 { (exit 1); exit 1; }; }
84563040
DJ
1823fi
1824
bec39cab
AC
1825rm -f conftest.$ac_cv_objext conftest.$ac_ext
1826fi
1827echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1828echo "${ECHO_T}$ac_cv_objext" >&6
1829OBJEXT=$ac_cv_objext
1830ac_objext=$OBJEXT
1831echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1832echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1833if test "${ac_cv_c_compiler_gnu+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835else
1836 cat >conftest.$ac_ext <<_ACEOF
1837/* confdefs.h. */
1838_ACEOF
1839cat confdefs.h >>conftest.$ac_ext
1840cat >>conftest.$ac_ext <<_ACEOF
1841/* end confdefs.h. */
1842
1843int
1844main ()
1845{
1846#ifndef __GNUC__
1847 choke me
1848#endif
84563040 1849
bec39cab
AC
1850 ;
1851 return 0;
1852}
1853_ACEOF
1854rm -f conftest.$ac_objext
1855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1856 (eval $ac_compile) 2>conftest.er1
1857 ac_status=$?
1858 grep -v '^ *+' conftest.er1 >conftest.err
1859 rm -f conftest.er1
1860 cat conftest.err >&5
1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862 (exit $ac_status); } &&
1863 { ac_try='test -z "$ac_c_werror_flag"
1864 || test ! -s conftest.err'
1865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1866 (eval $ac_try) 2>&5
1867 ac_status=$?
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }; } &&
1870 { ac_try='test -s conftest.$ac_objext'
1871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1872 (eval $ac_try) 2>&5
1873 ac_status=$?
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); }; }; then
1876 ac_compiler_gnu=yes
84563040 1877else
bec39cab
AC
1878 echo "$as_me: failed program was:" >&5
1879sed 's/^/| /' conftest.$ac_ext >&5
1880
1881ac_compiler_gnu=no
84563040 1882fi
bec39cab
AC
1883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1884ac_cv_c_compiler_gnu=$ac_compiler_gnu
84563040 1885
bec39cab
AC
1886fi
1887echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1888echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1889GCC=`test $ac_compiler_gnu = yes && echo yes`
1890ac_test_CFLAGS=${CFLAGS+set}
1891ac_save_CFLAGS=$CFLAGS
1892CFLAGS="-g"
1893echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1894echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1895if test "${ac_cv_prog_cc_g+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
84563040 1897else
bec39cab
AC
1898 cat >conftest.$ac_ext <<_ACEOF
1899/* confdefs.h. */
1900_ACEOF
1901cat confdefs.h >>conftest.$ac_ext
1902cat >>conftest.$ac_ext <<_ACEOF
1903/* end confdefs.h. */
1904
1905int
1906main ()
1907{
1908
1909 ;
1910 return 0;
1911}
1912_ACEOF
1913rm -f conftest.$ac_objext
1914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1915 (eval $ac_compile) 2>conftest.er1
1916 ac_status=$?
1917 grep -v '^ *+' conftest.er1 >conftest.err
1918 rm -f conftest.er1
1919 cat conftest.err >&5
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); } &&
1922 { ac_try='test -z "$ac_c_werror_flag"
1923 || test ! -s conftest.err'
1924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1925 (eval $ac_try) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }; } &&
1929 { ac_try='test -s conftest.$ac_objext'
1930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931 (eval $ac_try) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }; }; then
84563040
DJ
1935 ac_cv_prog_cc_g=yes
1936else
bec39cab
AC
1937 echo "$as_me: failed program was:" >&5
1938sed 's/^/| /' conftest.$ac_ext >&5
84563040 1939
bec39cab 1940ac_cv_prog_cc_g=no
84563040 1941fi
bec39cab
AC
1942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1943fi
1944echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1945echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
84563040 1946if test "$ac_test_CFLAGS" = set; then
bec39cab 1947 CFLAGS=$ac_save_CFLAGS
84563040
DJ
1948elif test $ac_cv_prog_cc_g = yes; then
1949 if test "$GCC" = yes; then
1950 CFLAGS="-g -O2"
1951 else
1952 CFLAGS="-g"
1953 fi
1954else
1955 if test "$GCC" = yes; then
1956 CFLAGS="-O2"
1957 else
1958 CFLAGS=
1959 fi
1960fi
bec39cab
AC
1961echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1962echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1963if test "${ac_cv_prog_cc_stdc+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1965else
1966 ac_cv_prog_cc_stdc=no
1967ac_save_CC=$CC
1968cat >conftest.$ac_ext <<_ACEOF
1969/* confdefs.h. */
1970_ACEOF
1971cat confdefs.h >>conftest.$ac_ext
1972cat >>conftest.$ac_ext <<_ACEOF
1973/* end confdefs.h. */
1974#include <stdarg.h>
1975#include <stdio.h>
1976#include <sys/types.h>
1977#include <sys/stat.h>
1978/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1979struct buf { int x; };
1980FILE * (*rcsopen) (struct buf *, struct stat *, int);
1981static char *e (p, i)
1982 char **p;
1983 int i;
1984{
1985 return p[i];
1986}
1987static char *f (char * (*g) (char **, int), char **p, ...)
1988{
1989 char *s;
1990 va_list v;
1991 va_start (v,p);
1992 s = g (p, va_arg (v,int));
1993 va_end (v);
1994 return s;
1995}
1996
1997/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1998 function prototypes and stuff, but not '\xHH' hex character constants.
1999 These don't provoke an error unfortunately, instead are silently treated
2000 as 'x'. The following induces an error, until -std1 is added to get
2001 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2002 array size at least. It's necessary to write '\x00'==0 to get something
2003 that's true only with -std1. */
2004int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2005
2006int test (int i, double x);
2007struct s1 {int (*f) (int a);};
2008struct s2 {int (*f) (double a);};
2009int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2010int argc;
2011char **argv;
2012int
2013main ()
2014{
2015return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2016 ;
2017 return 0;
2018}
2019_ACEOF
2020# Don't try gcc -ansi; that turns off useful extensions and
2021# breaks some systems' header files.
2022# AIX -qlanglvl=ansi
2023# Ultrix and OSF/1 -std1
2024# HP-UX 10.20 and later -Ae
2025# HP-UX older versions -Aa -D_HPUX_SOURCE
2026# SVR4 -Xc -D__EXTENSIONS__
2027for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2028do
2029 CC="$ac_save_CC $ac_arg"
2030 rm -f conftest.$ac_objext
2031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032 (eval $ac_compile) 2>conftest.er1
2033 ac_status=$?
2034 grep -v '^ *+' conftest.er1 >conftest.err
2035 rm -f conftest.er1
2036 cat conftest.err >&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); } &&
2039 { ac_try='test -z "$ac_c_werror_flag"
2040 || test ! -s conftest.err'
2041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042 (eval $ac_try) 2>&5
2043 ac_status=$?
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; } &&
2046 { ac_try='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048 (eval $ac_try) 2>&5
2049 ac_status=$?
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2052 ac_cv_prog_cc_stdc=$ac_arg
2053break
2054else
2055 echo "$as_me: failed program was:" >&5
2056sed 's/^/| /' conftest.$ac_ext >&5
2057
2058fi
2059rm -f conftest.err conftest.$ac_objext
2060done
2061rm -f conftest.$ac_ext conftest.$ac_objext
2062CC=$ac_save_CC
2063
2064fi
2065
2066case "x$ac_cv_prog_cc_stdc" in
2067 x|xno)
2068 echo "$as_me:$LINENO: result: none needed" >&5
2069echo "${ECHO_T}none needed" >&6 ;;
2070 *)
2071 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2072echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2073 CC="$CC $ac_cv_prog_cc_stdc" ;;
2074esac
2075
2076# Some people use a C++ compiler to compile C. Since we use `exit',
2077# in C++ we need to declare it. In case someone uses the same compiler
2078# for both compiling C and C++ we need to have the C++ compiler decide
2079# the declaration of exit, since it's the most demanding environment.
2080cat >conftest.$ac_ext <<_ACEOF
2081#ifndef __cplusplus
2082 choke me
2083#endif
2084_ACEOF
2085rm -f conftest.$ac_objext
2086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2087 (eval $ac_compile) 2>conftest.er1
2088 ac_status=$?
2089 grep -v '^ *+' conftest.er1 >conftest.err
2090 rm -f conftest.er1
2091 cat conftest.err >&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); } &&
2094 { ac_try='test -z "$ac_c_werror_flag"
2095 || test ! -s conftest.err'
2096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097 (eval $ac_try) 2>&5
2098 ac_status=$?
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }; } &&
2101 { ac_try='test -s conftest.$ac_objext'
2102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 (eval $ac_try) 2>&5
2104 ac_status=$?
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }; }; then
2107 for ac_declaration in \
2108 '' \
2109 'extern "C" void std::exit (int) throw (); using std::exit;' \
2110 'extern "C" void std::exit (int); using std::exit;' \
2111 'extern "C" void exit (int) throw ();' \
2112 'extern "C" void exit (int);' \
2113 'void exit (int);'
2114do
2115 cat >conftest.$ac_ext <<_ACEOF
2116/* confdefs.h. */
2117_ACEOF
2118cat confdefs.h >>conftest.$ac_ext
2119cat >>conftest.$ac_ext <<_ACEOF
2120/* end confdefs.h. */
2121$ac_declaration
2122#include <stdlib.h>
2123int
2124main ()
2125{
2126exit (42);
2127 ;
2128 return 0;
2129}
2130_ACEOF
2131rm -f conftest.$ac_objext
2132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133 (eval $ac_compile) 2>conftest.er1
2134 ac_status=$?
2135 grep -v '^ *+' conftest.er1 >conftest.err
2136 rm -f conftest.er1
2137 cat conftest.err >&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); } &&
2140 { ac_try='test -z "$ac_c_werror_flag"
2141 || test ! -s conftest.err'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 (eval $ac_try) 2>&5
2144 ac_status=$?
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; } &&
2147 { ac_try='test -s conftest.$ac_objext'
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149 (eval $ac_try) 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; }; then
2153 :
2154else
2155 echo "$as_me: failed program was:" >&5
2156sed 's/^/| /' conftest.$ac_ext >&5
2157
2158continue
2159fi
2160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2161 cat >conftest.$ac_ext <<_ACEOF
2162/* confdefs.h. */
2163_ACEOF
2164cat confdefs.h >>conftest.$ac_ext
2165cat >>conftest.$ac_ext <<_ACEOF
2166/* end confdefs.h. */
2167$ac_declaration
2168int
2169main ()
2170{
2171exit (42);
2172 ;
2173 return 0;
2174}
2175_ACEOF
2176rm -f conftest.$ac_objext
2177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2178 (eval $ac_compile) 2>conftest.er1
2179 ac_status=$?
2180 grep -v '^ *+' conftest.er1 >conftest.err
2181 rm -f conftest.er1
2182 cat conftest.err >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); } &&
2185 { ac_try='test -z "$ac_c_werror_flag"
2186 || test ! -s conftest.err'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; } &&
2192 { ac_try='test -s conftest.$ac_objext'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 (eval $ac_try) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2198 break
2199else
2200 echo "$as_me: failed program was:" >&5
2201sed 's/^/| /' conftest.$ac_ext >&5
2202
2203fi
2204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2205done
2206rm -f conftest*
2207if test -n "$ac_declaration"; then
2208 echo '#ifdef __cplusplus' >>confdefs.h
2209 echo $ac_declaration >>confdefs.h
2210 echo '#endif' >>confdefs.h
2211fi
2212
2213else
2214 echo "$as_me: failed program was:" >&5
2215sed 's/^/| /' conftest.$ac_ext >&5
2216
2217fi
2218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2219ac_ext=c
2220ac_cpp='$CPP $CPPFLAGS'
2221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2223ac_compiler_gnu=$ac_cv_c_compiler_gnu
84563040
DJ
2224
2225
d6e9fb05
JK
2226ac_aux_dir=
2227for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2228 if test -f $ac_dir/install-sh; then
2229 ac_aux_dir=$ac_dir
2230 ac_install_sh="$ac_aux_dir/install-sh -c"
2231 break
2232 elif test -f $ac_dir/install.sh; then
2233 ac_aux_dir=$ac_dir
2234 ac_install_sh="$ac_aux_dir/install.sh -c"
2235 break
bec39cab
AC
2236 elif test -f $ac_dir/shtool; then
2237 ac_aux_dir=$ac_dir
2238 ac_install_sh="$ac_aux_dir/shtool install -c"
2239 break
d6e9fb05
JK
2240 fi
2241done
2242if test -z "$ac_aux_dir"; then
bec39cab
AC
2243 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2244echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2245 { (exit 1); exit 1; }; }
d6e9fb05 2246fi
bec39cab
AC
2247ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2248ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2249ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
d6e9fb05
JK
2250
2251# Make sure we can run config.sub.
bec39cab
AC
2252$ac_config_sub sun4 >/dev/null 2>&1 ||
2253 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2254echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2255 { (exit 1); exit 1; }; }
2256
2257echo "$as_me:$LINENO: checking build system type" >&5
2258echo $ECHO_N "checking build system type... $ECHO_C" >&6
2259if test "${ac_cv_build+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261else
2262 ac_cv_build_alias=$build_alias
2263test -z "$ac_cv_build_alias" &&
2264 ac_cv_build_alias=`$ac_config_guess`
2265test -z "$ac_cv_build_alias" &&
2266 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2267echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2268 { (exit 1); exit 1; }; }
2269ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2270 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2271echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2272 { (exit 1); exit 1; }; }
d6e9fb05 2273
bec39cab
AC
2274fi
2275echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2276echo "${ECHO_T}$ac_cv_build" >&6
2277build=$ac_cv_build
2278build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2279build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2280build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2281
2282
2283echo "$as_me:$LINENO: checking host system type" >&5
2284echo $ECHO_N "checking host system type... $ECHO_C" >&6
2285if test "${ac_cv_host+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2287else
2288 ac_cv_host_alias=$host_alias
2289test -z "$ac_cv_host_alias" &&
2290 ac_cv_host_alias=$ac_cv_build_alias
2291ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2292 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2293echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2294 { (exit 1); exit 1; }; }
d6e9fb05 2295
bec39cab
AC
2296fi
2297echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2298echo "${ECHO_T}$ac_cv_host" >&6
2299host=$ac_cv_host
2300host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2301host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2302host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2303
2304
2305echo "$as_me:$LINENO: checking target system type" >&5
2306echo $ECHO_N "checking target system type... $ECHO_C" >&6
2307if test "${ac_cv_target+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309else
2310 ac_cv_target_alias=$target_alias
2311test "x$ac_cv_target_alias" = "x" &&
2312 ac_cv_target_alias=$ac_cv_host_alias
2313ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2314 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2315echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2316 { (exit 1); exit 1; }; }
d6e9fb05 2317
bec39cab
AC
2318fi
2319echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2320echo "${ECHO_T}$ac_cv_target" >&6
2321target=$ac_cv_target
2322target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2323target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2324target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
d6e9fb05 2325
d6e9fb05 2326
bec39cab
AC
2327# The aliases save the names the user supplied, while $host etc.
2328# will get canonicalized.
2329test -n "$target_alias" &&
d6e9fb05
JK
2330 test "$program_prefix$program_suffix$program_transform_name" = \
2331 NONENONEs,x,x, &&
2332 program_prefix=${target_alias}-
2333
2334# Find a good install program. We prefer a C program (faster),
2335# so one script is as good as another. But avoid the broken or
2336# incompatible versions:
2337# SysV /etc/install, /usr/sbin/install
2338# SunOS /usr/etc/install
2339# IRIX /sbin/install
2340# AIX /bin/install
bec39cab 2341# AmigaOS /C/install, which installs bootblocks on floppy discs
e4f78295 2342# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
d6e9fb05
JK
2343# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2344# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
bec39cab 2345# OS/2's system install, which has a completely different semantic
d6e9fb05 2346# ./install, which can be erroneously created by make from ./install.sh.
bec39cab
AC
2347echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2348echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
d6e9fb05 2349if test -z "$INSTALL"; then
bec39cab
AC
2350if test "${ac_cv_path_install+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2352else
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354for as_dir in $PATH
2355do
2356 IFS=$as_save_IFS
2357 test -z "$as_dir" && as_dir=.
2358 # Account for people who put trailing slashes in PATH elements.
2359case $as_dir/ in
2360 ./ | .// | /cC/* | \
2361 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2362 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2363 /usr/ucb/* ) ;;
2364 *)
2365 # OSF1 and SCO ODT 3.0 have their own names for install.
2366 # Don't use installbsd from OSF since it installs stuff as root
2367 # by default.
2368 for ac_prog in ginstall scoinst install; do
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d6e9fb05 2371 if test $ac_prog = install &&
bec39cab 2372 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
d6e9fb05 2373 # AIX install. It has an incompatible calling convention.
d6e9fb05 2374 :
bec39cab
AC
2375 elif test $ac_prog = install &&
2376 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2377 # program-specific install script used by HP pwplus--don't use.
2378 :
d6e9fb05 2379 else
bec39cab
AC
2380 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2381 break 3
d6e9fb05
JK
2382 fi
2383 fi
2384 done
bec39cab
AC
2385 done
2386 ;;
2387esac
2388done
2389
d6e9fb05
JK
2390
2391fi
2392 if test "${ac_cv_path_install+set}" = set; then
bec39cab 2393 INSTALL=$ac_cv_path_install
d6e9fb05
JK
2394 else
2395 # As a last resort, use the slow shell script. We don't cache a
2396 # path for INSTALL within a source directory, because that will
2397 # break other packages using the cache if that directory is
2398 # removed, or if the path is relative.
bec39cab 2399 INSTALL=$ac_install_sh
d6e9fb05
JK
2400 fi
2401fi
bec39cab
AC
2402echo "$as_me:$LINENO: result: $INSTALL" >&5
2403echo "${ECHO_T}$INSTALL" >&6
d6e9fb05
JK
2404
2405# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2406# It thinks the first close brace ends the variable substitution.
2407test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2408
bec39cab 2409test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e4f78295 2410
d6e9fb05
JK
2411test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2412
2413
bec39cab
AC
2414
2415ac_ext=c
2416ac_cpp='$CPP $CPPFLAGS'
2417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2419ac_compiler_gnu=$ac_cv_c_compiler_gnu
2420echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2421echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
84563040
DJ
2422# On Suns, sometimes $CPP names a directory.
2423if test -n "$CPP" && test -d "$CPP"; then
2424 CPP=
2425fi
2426if test -z "$CPP"; then
bec39cab
AC
2427 if test "${ac_cv_prog_CPP+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
84563040 2429else
bec39cab
AC
2430 # Double quotes because CPP needs to be expanded
2431 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2432 do
2433 ac_preproc_ok=false
2434for ac_c_preproc_warn_flag in '' yes
2435do
2436 # Use a header file that comes with gcc, so configuring glibc
2437 # with a fresh cross-compiler works.
2438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2439 # <limits.h> exists even on freestanding compilers.
84563040 2440 # On the NeXT, cc -E runs the code through the compiler's parser,
bec39cab
AC
2441 # not just through cpp. "Syntax error" is here to catch this case.
2442 cat >conftest.$ac_ext <<_ACEOF
2443/* confdefs.h. */
2444_ACEOF
2445cat confdefs.h >>conftest.$ac_ext
2446cat >>conftest.$ac_ext <<_ACEOF
2447/* end confdefs.h. */
2448#ifdef __STDC__
2449# include <limits.h>
2450#else
2451# include <assert.h>
2452#endif
2453 Syntax error
2454_ACEOF
2455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2457 ac_status=$?
2458 grep -v '^ *+' conftest.er1 >conftest.err
2459 rm -f conftest.er1
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } >/dev/null; then
2463 if test -s conftest.err; then
2464 ac_cpp_err=$ac_c_preproc_warn_flag
2465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2466 else
2467 ac_cpp_err=
2468 fi
84563040 2469else
bec39cab
AC
2470 ac_cpp_err=yes
2471fi
2472if test -z "$ac_cpp_err"; then
84563040
DJ
2473 :
2474else
bec39cab
AC
2475 echo "$as_me: failed program was:" >&5
2476sed 's/^/| /' conftest.$ac_ext >&5
2477
2478 # Broken: fails on valid input.
2479continue
2480fi
2481rm -f conftest.err conftest.$ac_ext
2482
2483 # OK, works on sane cases. Now check whether non-existent headers
2484 # can be detected and how.
2485 cat >conftest.$ac_ext <<_ACEOF
2486/* confdefs.h. */
2487_ACEOF
2488cat confdefs.h >>conftest.$ac_ext
2489cat >>conftest.$ac_ext <<_ACEOF
2490/* end confdefs.h. */
2491#include <ac_nonexistent.h>
2492_ACEOF
2493if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2495 ac_status=$?
2496 grep -v '^ *+' conftest.er1 >conftest.err
2497 rm -f conftest.er1
2498 cat conftest.err >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); } >/dev/null; then
2501 if test -s conftest.err; then
2502 ac_cpp_err=$ac_c_preproc_warn_flag
2503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2504 else
2505 ac_cpp_err=
2506 fi
2507else
2508 ac_cpp_err=yes
2509fi
2510if test -z "$ac_cpp_err"; then
2511 # Broken: success on invalid input.
2512continue
2513else
2514 echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
2516
2517 # Passes both tests.
2518ac_preproc_ok=:
2519break
2520fi
2521rm -f conftest.err conftest.$ac_ext
2522
2523done
2524# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2525rm -f conftest.err conftest.$ac_ext
2526if $ac_preproc_ok; then
2527 break
2528fi
2529
2530 done
2531 ac_cv_prog_CPP=$CPP
2532
2533fi
2534 CPP=$ac_cv_prog_CPP
2535else
2536 ac_cv_prog_CPP=$CPP
2537fi
2538echo "$as_me:$LINENO: result: $CPP" >&5
2539echo "${ECHO_T}$CPP" >&6
2540ac_preproc_ok=false
2541for ac_c_preproc_warn_flag in '' yes
2542do
2543 # Use a header file that comes with gcc, so configuring glibc
2544 # with a fresh cross-compiler works.
2545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2546 # <limits.h> exists even on freestanding compilers.
2547 # On the NeXT, cc -E runs the code through the compiler's parser,
2548 # not just through cpp. "Syntax error" is here to catch this case.
2549 cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h. */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h. */
2555#ifdef __STDC__
2556# include <limits.h>
2557#else
2558# include <assert.h>
2559#endif
2560 Syntax error
2561_ACEOF
2562if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2564 ac_status=$?
2565 grep -v '^ *+' conftest.er1 >conftest.err
2566 rm -f conftest.er1
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } >/dev/null; then
2570 if test -s conftest.err; then
2571 ac_cpp_err=$ac_c_preproc_warn_flag
2572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2573 else
2574 ac_cpp_err=
2575 fi
2576else
2577 ac_cpp_err=yes
2578fi
2579if test -z "$ac_cpp_err"; then
84563040
DJ
2580 :
2581else
bec39cab
AC
2582 echo "$as_me: failed program was:" >&5
2583sed 's/^/| /' conftest.$ac_ext >&5
2584
2585 # Broken: fails on valid input.
2586continue
84563040 2587fi
bec39cab
AC
2588rm -f conftest.err conftest.$ac_ext
2589
2590 # OK, works on sane cases. Now check whether non-existent headers
2591 # can be detected and how.
2592 cat >conftest.$ac_ext <<_ACEOF
2593/* confdefs.h. */
2594_ACEOF
2595cat confdefs.h >>conftest.$ac_ext
2596cat >>conftest.$ac_ext <<_ACEOF
2597/* end confdefs.h. */
2598#include <ac_nonexistent.h>
2599_ACEOF
2600if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2602 ac_status=$?
2603 grep -v '^ *+' conftest.er1 >conftest.err
2604 rm -f conftest.er1
2605 cat conftest.err >&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } >/dev/null; then
2608 if test -s conftest.err; then
2609 ac_cpp_err=$ac_c_preproc_warn_flag
2610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2611 else
2612 ac_cpp_err=
2613 fi
2614else
2615 ac_cpp_err=yes
84563040 2616fi
bec39cab
AC
2617if test -z "$ac_cpp_err"; then
2618 # Broken: success on invalid input.
2619continue
2620else
2621 echo "$as_me: failed program was:" >&5
2622sed 's/^/| /' conftest.$ac_ext >&5
2623
2624 # Passes both tests.
2625ac_preproc_ok=:
2626break
84563040 2627fi
bec39cab
AC
2628rm -f conftest.err conftest.$ac_ext
2629
2630done
2631# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2632rm -f conftest.err conftest.$ac_ext
2633if $ac_preproc_ok; then
2634 :
2635else
2636 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2637See \`config.log' for more details." >&5
2638echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2639See \`config.log' for more details." >&2;}
2640 { (exit 1); exit 1; }; }
84563040 2641fi
bec39cab
AC
2642
2643ac_ext=c
2644ac_cpp='$CPP $CPPFLAGS'
2645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648
2649
2650echo "$as_me:$LINENO: checking for egrep" >&5
2651echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2652if test "${ac_cv_prog_egrep+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
84563040 2654else
bec39cab
AC
2655 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2656 then ac_cv_prog_egrep='grep -E'
2657 else ac_cv_prog_egrep='egrep'
2658 fi
84563040 2659fi
bec39cab
AC
2660echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2661echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2662 EGREP=$ac_cv_prog_egrep
84563040 2663
bec39cab
AC
2664
2665echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2666echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2667if test "${ac_cv_header_stdc+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
84563040 2669else
bec39cab
AC
2670 cat >conftest.$ac_ext <<_ACEOF
2671/* confdefs.h. */
2672_ACEOF
2673cat confdefs.h >>conftest.$ac_ext
2674cat >>conftest.$ac_ext <<_ACEOF
2675/* end confdefs.h. */
84563040
DJ
2676#include <stdlib.h>
2677#include <stdarg.h>
2678#include <string.h>
2679#include <float.h>
bec39cab
AC
2680
2681int
2682main ()
2683{
2684
2685 ;
2686 return 0;
2687}
2688_ACEOF
2689rm -f conftest.$ac_objext
2690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691 (eval $ac_compile) 2>conftest.er1
2692 ac_status=$?
2693 grep -v '^ *+' conftest.er1 >conftest.err
2694 rm -f conftest.er1
2695 cat conftest.err >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } &&
2698 { ac_try='test -z "$ac_c_werror_flag"
2699 || test ! -s conftest.err'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 (eval $ac_try) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; } &&
2705 { ac_try='test -s conftest.$ac_objext'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
84563040
DJ
2711 ac_cv_header_stdc=yes
2712else
bec39cab
AC
2713 echo "$as_me: failed program was:" >&5
2714sed 's/^/| /' conftest.$ac_ext >&5
2715
2716ac_cv_header_stdc=no
84563040 2717fi
bec39cab 2718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84563040
DJ
2719
2720if test $ac_cv_header_stdc = yes; then
2721 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
bec39cab
AC
2722 cat >conftest.$ac_ext <<_ACEOF
2723/* confdefs.h. */
2724_ACEOF
2725cat confdefs.h >>conftest.$ac_ext
2726cat >>conftest.$ac_ext <<_ACEOF
2727/* end confdefs.h. */
84563040 2728#include <string.h>
bec39cab
AC
2729
2730_ACEOF
84563040 2731if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2732 $EGREP "memchr" >/dev/null 2>&1; then
84563040
DJ
2733 :
2734else
84563040
DJ
2735 ac_cv_header_stdc=no
2736fi
2737rm -f conftest*
2738
2739fi
2740
2741if test $ac_cv_header_stdc = yes; then
2742 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
bec39cab
AC
2743 cat >conftest.$ac_ext <<_ACEOF
2744/* confdefs.h. */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
2748/* end confdefs.h. */
84563040 2749#include <stdlib.h>
bec39cab
AC
2750
2751_ACEOF
84563040 2752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2753 $EGREP "free" >/dev/null 2>&1; then
84563040
DJ
2754 :
2755else
84563040
DJ
2756 ac_cv_header_stdc=no
2757fi
2758rm -f conftest*
2759
2760fi
bec39cab
AC
2761
2762if test $ac_cv_header_stdc = yes; then
2763 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2764 if test "$cross_compiling" = yes; then
2765 :
2766else
2767 cat >conftest.$ac_ext <<_ACEOF
2768/* confdefs.h. */
2769_ACEOF
2770cat confdefs.h >>conftest.$ac_ext
2771cat >>conftest.$ac_ext <<_ACEOF
2772/* end confdefs.h. */
2773#include <ctype.h>
2774#if ((' ' & 0x0FF) == 0x020)
2775# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2776# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2777#else
2778# define ISLOWER(c) \
2779 (('a' <= (c) && (c) <= 'i') \
2780 || ('j' <= (c) && (c) <= 'r') \
2781 || ('s' <= (c) && (c) <= 'z'))
2782# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2783#endif
2784
2785#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2786int
2787main ()
2788{
2789 int i;
2790 for (i = 0; i < 256; i++)
2791 if (XOR (islower (i), ISLOWER (i))
2792 || toupper (i) != TOUPPER (i))
2793 exit(2);
2794 exit (0);
2795}
2796_ACEOF
2797rm -f conftest$ac_exeext
2798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2799 (eval $ac_link) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 :
2809else
2810 echo "$as_me: program exited with status $ac_status" >&5
2811echo "$as_me: failed program was:" >&5
2812sed 's/^/| /' conftest.$ac_ext >&5
2813
2814( exit $ac_status )
2815ac_cv_header_stdc=no
2816fi
2817rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2818fi
2819fi
2820fi
2821echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2822echo "${ECHO_T}$ac_cv_header_stdc" >&6
2823if test $ac_cv_header_stdc = yes; then
2824
2825cat >>confdefs.h <<\_ACEOF
2826#define STDC_HEADERS 1
2827_ACEOF
2828
2829fi
2830
2831
2832# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2843 inttypes.h stdint.h unistd.h
2844do
2845as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2846echo "$as_me:$LINENO: checking for $ac_header" >&5
2847echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2848if eval "test \"\${$as_ac_Header+set}\" = set"; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2850else
2851 cat >conftest.$ac_ext <<_ACEOF
2852/* confdefs.h. */
2853_ACEOF
2854cat confdefs.h >>conftest.$ac_ext
2855cat >>conftest.$ac_ext <<_ACEOF
2856/* end confdefs.h. */
2857$ac_includes_default
2858
2859#include <$ac_header>
2860_ACEOF
2861rm -f conftest.$ac_objext
2862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>conftest.er1
2864 ac_status=$?
2865 grep -v '^ *+' conftest.er1 >conftest.err
2866 rm -f conftest.er1
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -z "$ac_c_werror_flag"
2871 || test ! -s conftest.err'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 (eval $ac_try) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; } &&
2877 { ac_try='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 (eval $ac_try) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 eval "$as_ac_Header=yes"
2884else
2885 echo "$as_me: failed program was:" >&5
2886sed 's/^/| /' conftest.$ac_ext >&5
2887
2888eval "$as_ac_Header=no"
2889fi
2890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891fi
2892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2894if test `eval echo '${'$as_ac_Header'}'` = yes; then
2895 cat >>confdefs.h <<_ACEOF
2896#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2897_ACEOF
2898
2899fi
2900
2901done
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h thread_db.h linux/elf.h stdlib.h unistd.h
2916do
2917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2918if eval "test \"\${$as_ac_Header+set}\" = set"; then
2919 echo "$as_me:$LINENO: checking for $ac_header" >&5
2920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2921if eval "test \"\${$as_ac_Header+set}\" = set"; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923fi
2924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
84563040 2926else
bec39cab
AC
2927 # Is the header compilable?
2928echo "$as_me:$LINENO: checking $ac_header usability" >&5
2929echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2930cat >conftest.$ac_ext <<_ACEOF
2931/* confdefs.h. */
2932_ACEOF
2933cat confdefs.h >>conftest.$ac_ext
2934cat >>conftest.$ac_ext <<_ACEOF
2935/* end confdefs.h. */
2936$ac_includes_default
2937#include <$ac_header>
2938_ACEOF
2939rm -f conftest.$ac_objext
2940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941 (eval $ac_compile) 2>conftest.er1
2942 ac_status=$?
2943 grep -v '^ *+' conftest.er1 >conftest.err
2944 rm -f conftest.er1
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -z "$ac_c_werror_flag"
2949 || test ! -s conftest.err'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 (eval $ac_try) 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; } &&
2955 { ac_try='test -s conftest.$ac_objext'
2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 (eval $ac_try) 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2961 ac_header_compiler=yes
84563040 2962else
bec39cab
AC
2963 echo "$as_me: failed program was:" >&5
2964sed 's/^/| /' conftest.$ac_ext >&5
2965
2966ac_header_compiler=no
84563040 2967fi
bec39cab
AC
2968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2970echo "${ECHO_T}$ac_header_compiler" >&6
2971
2972# Is the header present?
2973echo "$as_me:$LINENO: checking $ac_header presence" >&5
2974echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2975cat >conftest.$ac_ext <<_ACEOF
2976/* confdefs.h. */
2977_ACEOF
2978cat confdefs.h >>conftest.$ac_ext
2979cat >>conftest.$ac_ext <<_ACEOF
2980/* end confdefs.h. */
2981#include <$ac_header>
2982_ACEOF
2983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2985 ac_status=$?
2986 grep -v '^ *+' conftest.er1 >conftest.err
2987 rm -f conftest.er1
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } >/dev/null; then
2991 if test -s conftest.err; then
2992 ac_cpp_err=$ac_c_preproc_warn_flag
2993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2994 else
2995 ac_cpp_err=
2996 fi
2997else
2998 ac_cpp_err=yes
84563040 2999fi
bec39cab
AC
3000if test -z "$ac_cpp_err"; then
3001 ac_header_preproc=yes
3002else
3003 echo "$as_me: failed program was:" >&5
3004sed 's/^/| /' conftest.$ac_ext >&5
84563040 3005
bec39cab 3006 ac_header_preproc=no
84563040 3007fi
bec39cab
AC
3008rm -f conftest.err conftest.$ac_ext
3009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3010echo "${ECHO_T}$ac_header_preproc" >&6
3011
3012# So? What about this header?
3013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3014 yes:no: )
3015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3019 ac_header_preproc=yes
3020 ;;
3021 no:yes:* )
3022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3025echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3029echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3034 (
3035 cat <<\_ASBOX
3036## ------------------------------------------ ##
3037## Report this to the AC_PACKAGE_NAME lists. ##
3038## ------------------------------------------ ##
3039_ASBOX
3040 ) |
3041 sed "s/^/$as_me: WARNING: /" >&2
3042 ;;
3043esac
3044echo "$as_me:$LINENO: checking for $ac_header" >&5
3045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3046if eval "test \"\${$as_ac_Header+set}\" = set"; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048else
3049 eval "$as_ac_Header=\$ac_header_preproc"
84563040 3050fi
bec39cab
AC
3051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
84563040
DJ
3053
3054fi
bec39cab
AC
3055if test `eval echo '${'$as_ac_Header'}'` = yes; then
3056 cat >>confdefs.h <<_ACEOF
3057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3058_ACEOF
84563040 3059
84563040 3060fi
bec39cab 3061
84563040
DJ
3062done
3063
3064
bec39cab
AC
3065echo "$as_me:$LINENO: checking whether strerror must be declared" >&5
3066echo $ECHO_N "checking whether strerror must be declared... $ECHO_C" >&6
3067if test "${bfd_cv_decl_needed_strerror+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
43d5792c 3069else
bec39cab
AC
3070 cat >conftest.$ac_ext <<_ACEOF
3071/* confdefs.h. */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h. */
43d5792c
DJ
3076
3077#include <stdio.h>
3078#ifdef HAVE_STRING_H
3079#include <string.h>
3080#else
3081#ifdef HAVE_STRINGS_H
3082#include <strings.h>
3083#endif
3084#endif
3085#ifdef HAVE_STDLIB_H
3086#include <stdlib.h>
3087#endif
3088#ifdef HAVE_UNISTD_H
3089#include <unistd.h>
3090#endif
bec39cab
AC
3091int
3092main ()
3093{
43d5792c 3094char *(*pfn) = (char *(*)) strerror
bec39cab
AC
3095 ;
3096 return 0;
3097}
3098_ACEOF
3099rm -f conftest.$ac_objext
3100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>conftest.er1
3102 ac_status=$?
3103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try='test -z "$ac_c_werror_flag"
3109 || test ! -s conftest.err'
3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111 (eval $ac_try) 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; } &&
3115 { ac_try='test -s conftest.$ac_objext'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117 (eval $ac_try) 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
43d5792c
DJ
3121 bfd_cv_decl_needed_strerror=no
3122else
bec39cab
AC
3123 echo "$as_me: failed program was:" >&5
3124sed 's/^/| /' conftest.$ac_ext >&5
3125
3126bfd_cv_decl_needed_strerror=yes
43d5792c 3127fi
bec39cab 3128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43d5792c
DJ
3129fi
3130
bec39cab
AC
3131echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strerror" >&5
3132echo "${ECHO_T}$bfd_cv_decl_needed_strerror" >&6
43d5792c 3133if test $bfd_cv_decl_needed_strerror = yes; then
bec39cab
AC
3134
3135cat >>confdefs.h <<\_ACEOF
43d5792c 3136#define NEED_DECLARATION_STRERROR 1
bec39cab 3137_ACEOF
43d5792c
DJ
3138
3139fi
3140
3141
7ea81414 3142. ${srcdir}/configure.srv
d6e9fb05 3143
58caa3dc 3144if test "${srv_linux_usrregs}" = "yes"; then
bec39cab 3145 cat >>confdefs.h <<\_ACEOF
58caa3dc 3146#define HAVE_LINUX_USRREGS 1
bec39cab 3147_ACEOF
58caa3dc
DJ
3148
3149fi
3150
3151if test "${srv_linux_regsets}" = "yes"; then
bec39cab
AC
3152 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
3153echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
3154 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3156else
3157 cat >conftest.$ac_ext <<_ACEOF
3158/* confdefs.h. */
3159_ACEOF
3160cat confdefs.h >>conftest.$ac_ext
3161cat >>conftest.$ac_ext <<_ACEOF
3162/* end confdefs.h. */
58caa3dc 3163#include <sys/ptrace.h>
bec39cab
AC
3164int
3165main ()
3166{
58caa3dc 3167PTRACE_GETREGS;
bec39cab
AC
3168 ;
3169 return 0;
3170}
3171_ACEOF
3172rm -f conftest.$ac_objext
3173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174 (eval $ac_compile) 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_c_werror_flag"
3182 || test ! -s conftest.err'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 (eval $ac_try) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try='test -s conftest.$ac_objext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
58caa3dc
DJ
3194 gdbsrv_cv_have_ptrace_getregs=yes
3195else
bec39cab
AC
3196 echo "$as_me: failed program was:" >&5
3197sed 's/^/| /' conftest.$ac_ext >&5
3198
3199gdbsrv_cv_have_ptrace_getregs=no
58caa3dc 3200fi
bec39cab 3201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
3202fi
3203
bec39cab
AC
3204 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getregs" >&5
3205echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getregs" >&6
58caa3dc 3206 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
bec39cab 3207 cat >>confdefs.h <<\_ACEOF
58caa3dc 3208#define HAVE_LINUX_REGSETS 1
bec39cab 3209_ACEOF
58caa3dc
DJ
3210
3211 fi
3212
bec39cab
AC
3213 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
3214echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
3215 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
58caa3dc 3217else
bec39cab
AC
3218 cat >conftest.$ac_ext <<_ACEOF
3219/* confdefs.h. */
3220_ACEOF
3221cat confdefs.h >>conftest.$ac_ext
3222cat >>conftest.$ac_ext <<_ACEOF
3223/* end confdefs.h. */
58caa3dc 3224#include <sys/ptrace.h>
bec39cab
AC
3225int
3226main ()
3227{
58caa3dc 3228PTRACE_GETFPXREGS;
bec39cab
AC
3229 ;
3230 return 0;
3231}
3232_ACEOF
3233rm -f conftest.$ac_objext
3234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>conftest.er1
3236 ac_status=$?
3237 grep -v '^ *+' conftest.er1 >conftest.err
3238 rm -f conftest.er1
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag"
3243 || test ! -s conftest.err'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 (eval $ac_try) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 (eval $ac_try) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
58caa3dc
DJ
3255 gdbsrv_cv_have_ptrace_getfpxregs=yes
3256else
bec39cab
AC
3257 echo "$as_me: failed program was:" >&5
3258sed 's/^/| /' conftest.$ac_ext >&5
3259
3260gdbsrv_cv_have_ptrace_getfpxregs=no
58caa3dc 3261fi
bec39cab 3262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
3263fi
3264
bec39cab
AC
3265 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
3266echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getfpxregs" >&6
58caa3dc 3267 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
bec39cab 3268 cat >>confdefs.h <<\_ACEOF
58caa3dc 3269#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 3270_ACEOF
58caa3dc
DJ
3271
3272 fi
3273fi
3274
0d62e5e8 3275if test "$ac_cv_header_sys_procfs_h" = yes; then
bec39cab
AC
3276 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
3277echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
3278 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8 3280else
bec39cab
AC
3281 cat >conftest.$ac_ext <<_ACEOF
3282/* confdefs.h. */
3283_ACEOF
3284cat confdefs.h >>conftest.$ac_ext
3285cat >>conftest.$ac_ext <<_ACEOF
3286/* end confdefs.h. */
0d62e5e8
DJ
3287
3288#define _SYSCALL32
3289#include <sys/procfs.h>
bec39cab
AC
3290int
3291main ()
3292{
0d62e5e8 3293lwpid_t avar
bec39cab
AC
3294 ;
3295 return 0;
3296}
3297_ACEOF
3298rm -f conftest.$ac_objext
3299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3300 (eval $ac_compile) 2>conftest.er1
3301 ac_status=$?
3302 grep -v '^ *+' conftest.er1 >conftest.err
3303 rm -f conftest.er1
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } &&
3307 { ac_try='test -z "$ac_c_werror_flag"
3308 || test ! -s conftest.err'
3309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310 (eval $ac_try) 2>&5
3311 ac_status=$?
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; } &&
3314 { ac_try='test -s conftest.$ac_objext'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316 (eval $ac_try) 2>&5
3317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
0d62e5e8
DJ
3320 bfd_cv_have_sys_procfs_type_lwpid_t=yes
3321else
bec39cab
AC
3322 echo "$as_me: failed program was:" >&5
3323sed 's/^/| /' conftest.$ac_ext >&5
3324
3325bfd_cv_have_sys_procfs_type_lwpid_t=no
3326
0d62e5e8 3327fi
bec39cab 3328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
3329fi
3330
3331 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
3332
3333cat >>confdefs.h <<\_ACEOF
0d62e5e8 3334#define HAVE_LWPID_T 1
bec39cab 3335_ACEOF
0d62e5e8
DJ
3336
3337 fi
bec39cab
AC
3338 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
3339echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
0d62e5e8 3340
bec39cab
AC
3341 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
3342echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
3343 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8 3345else
bec39cab
AC
3346 cat >conftest.$ac_ext <<_ACEOF
3347/* confdefs.h. */
3348_ACEOF
3349cat confdefs.h >>conftest.$ac_ext
3350cat >>conftest.$ac_ext <<_ACEOF
3351/* end confdefs.h. */
0d62e5e8
DJ
3352
3353#define _SYSCALL32
3354#include <sys/procfs.h>
bec39cab
AC
3355int
3356main ()
3357{
0d62e5e8 3358psaddr_t avar
bec39cab
AC
3359 ;
3360 return 0;
3361}
3362_ACEOF
3363rm -f conftest.$ac_objext
3364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365 (eval $ac_compile) 2>conftest.er1
3366 ac_status=$?
3367 grep -v '^ *+' conftest.er1 >conftest.err
3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try='test -z "$ac_c_werror_flag"
3373 || test ! -s conftest.err'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 (eval $ac_try) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try='test -s conftest.$ac_objext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 (eval $ac_try) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
0d62e5e8
DJ
3385 bfd_cv_have_sys_procfs_type_psaddr_t=yes
3386else
bec39cab
AC
3387 echo "$as_me: failed program was:" >&5
3388sed 's/^/| /' conftest.$ac_ext >&5
3389
3390bfd_cv_have_sys_procfs_type_psaddr_t=no
3391
0d62e5e8 3392fi
bec39cab 3393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
3394fi
3395
3396 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
3397
3398cat >>confdefs.h <<\_ACEOF
0d62e5e8 3399#define HAVE_PSADDR_T 1
bec39cab 3400_ACEOF
0d62e5e8
DJ
3401
3402 fi
bec39cab
AC
3403 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
3404echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
0d62e5e8 3405
bec39cab
AC
3406 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
3407echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
3408 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8 3410else
bec39cab
AC
3411 cat >conftest.$ac_ext <<_ACEOF
3412/* confdefs.h. */
3413_ACEOF
3414cat confdefs.h >>conftest.$ac_ext
3415cat >>conftest.$ac_ext <<_ACEOF
3416/* end confdefs.h. */
0d62e5e8
DJ
3417
3418#define _SYSCALL32
3419#include <sys/procfs.h>
bec39cab
AC
3420int
3421main ()
3422{
0d62e5e8 3423prgregset_t avar
bec39cab
AC
3424 ;
3425 return 0;
3426}
3427_ACEOF
3428rm -f conftest.$ac_objext
3429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3430 (eval $ac_compile) 2>conftest.er1
3431 ac_status=$?
3432 grep -v '^ *+' conftest.er1 >conftest.err
3433 rm -f conftest.er1
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
3437 { ac_try='test -z "$ac_c_werror_flag"
3438 || test ! -s conftest.err'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 (eval $ac_try) 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; } &&
3444 { ac_try='test -s conftest.$ac_objext'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 (eval $ac_try) 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; }; then
0d62e5e8
DJ
3450 bfd_cv_have_sys_procfs_type_prgregset_t=yes
3451else
bec39cab
AC
3452 echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
3455bfd_cv_have_sys_procfs_type_prgregset_t=no
3456
0d62e5e8 3457fi
bec39cab 3458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
3459fi
3460
3461 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
3462
3463cat >>confdefs.h <<\_ACEOF
0d62e5e8 3464#define HAVE_PRGREGSET_T 1
bec39cab 3465_ACEOF
0d62e5e8
DJ
3466
3467 fi
bec39cab
AC
3468 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
3469echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
0d62e5e8 3470
bec39cab
AC
3471 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
3472echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
3473 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8 3475else
bec39cab
AC
3476 cat >conftest.$ac_ext <<_ACEOF
3477/* confdefs.h. */
3478_ACEOF
3479cat confdefs.h >>conftest.$ac_ext
3480cat >>conftest.$ac_ext <<_ACEOF
3481/* end confdefs.h. */
0d62e5e8
DJ
3482
3483#define _SYSCALL32
3484#include <sys/procfs.h>
bec39cab
AC
3485int
3486main ()
3487{
0d62e5e8 3488prfpregset_t avar
bec39cab
AC
3489 ;
3490 return 0;
3491}
3492_ACEOF
3493rm -f conftest.$ac_objext
3494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3495 (eval $ac_compile) 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } &&
3502 { ac_try='test -z "$ac_c_werror_flag"
3503 || test ! -s conftest.err'
3504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505 (eval $ac_try) 2>&5
3506 ac_status=$?
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; } &&
3509 { ac_try='test -s conftest.$ac_objext'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 (eval $ac_try) 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; }; then
0d62e5e8
DJ
3515 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
3516else
bec39cab
AC
3517 echo "$as_me: failed program was:" >&5
3518sed 's/^/| /' conftest.$ac_ext >&5
3519
3520bfd_cv_have_sys_procfs_type_prfpregset_t=no
3521
0d62e5e8 3522fi
bec39cab 3523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
3524fi
3525
3526 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
3527
3528cat >>confdefs.h <<\_ACEOF
0d62e5e8 3529#define HAVE_PRFPREGSET_T 1
bec39cab 3530_ACEOF
0d62e5e8
DJ
3531
3532 fi
bec39cab
AC
3533 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
3534echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
3535
3536
0d62e5e8
DJ
3537
3538
0d62e5e8 3539 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
3540 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
3541echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
3542 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8
DJ
3544else
3545 if test "$cross_compiling" = yes; then
3546 gdb_cv_prfpregset_t_broken=yes
3547else
bec39cab
AC
3548 cat >conftest.$ac_ext <<_ACEOF
3549/* confdefs.h. */
3550_ACEOF
3551cat confdefs.h >>conftest.$ac_ext
3552cat >>conftest.$ac_ext <<_ACEOF
3553/* end confdefs.h. */
0d62e5e8
DJ
3554#include <sys/procfs.h>
3555 int main ()
3556 {
3557 if (sizeof (prfpregset_t) == sizeof (void *))
3558 return 1;
3559 return 0;
3560 }
bec39cab
AC
3561_ACEOF
3562rm -f conftest$ac_exeext
3563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3564 (eval $ac_link) 2>&5
3565 ac_status=$?
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 (eval $ac_try) 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; }; then
0d62e5e8
DJ
3573 gdb_cv_prfpregset_t_broken=no
3574else
bec39cab
AC
3575 echo "$as_me: program exited with status $ac_status" >&5
3576echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579( exit $ac_status )
3580gdb_cv_prfpregset_t_broken=yes
0d62e5e8 3581fi
bec39cab 3582rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
0d62e5e8 3583fi
0d62e5e8
DJ
3584fi
3585
bec39cab
AC
3586 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
3587echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
0d62e5e8 3588 if test $gdb_cv_prfpregset_t_broken = yes; then
bec39cab 3589 cat >>confdefs.h <<\_ACEOF
0d62e5e8 3590#define PRFPREGSET_T_BROKEN 1
bec39cab 3591_ACEOF
0d62e5e8
DJ
3592
3593 fi
3594 fi
3595
bec39cab
AC
3596 echo "$as_me:$LINENO: checking for elf_fpregset_t in sys/procfs.h" >&5
3597echo $ECHO_N "checking for elf_fpregset_t in sys/procfs.h... $ECHO_C" >&6
3598 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8 3600else
bec39cab
AC
3601 cat >conftest.$ac_ext <<_ACEOF
3602/* confdefs.h. */
3603_ACEOF
3604cat confdefs.h >>conftest.$ac_ext
3605cat >>conftest.$ac_ext <<_ACEOF
3606/* end confdefs.h. */
0d62e5e8
DJ
3607
3608#define _SYSCALL32
3609#include <sys/procfs.h>
bec39cab
AC
3610int
3611main ()
3612{
0d62e5e8 3613elf_fpregset_t avar
bec39cab
AC
3614 ;
3615 return 0;
3616}
3617_ACEOF
3618rm -f conftest.$ac_objext
3619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3620 (eval $ac_compile) 2>conftest.er1
3621 ac_status=$?
3622 grep -v '^ *+' conftest.er1 >conftest.err
3623 rm -f conftest.er1
3624 cat conftest.err >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } &&
3627 { ac_try='test -z "$ac_c_werror_flag"
3628 || test ! -s conftest.err'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 (eval $ac_try) 2>&5
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; } &&
3634 { ac_try='test -s conftest.$ac_objext'
3635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 (eval $ac_try) 2>&5
3637 ac_status=$?
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; }; then
0d62e5e8
DJ
3640 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
3641else
bec39cab
AC
3642 echo "$as_me: failed program was:" >&5
3643sed 's/^/| /' conftest.$ac_ext >&5
3644
3645bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
3646
0d62e5e8 3647fi
bec39cab 3648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
3649fi
3650
3651 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
bec39cab
AC
3652
3653cat >>confdefs.h <<\_ACEOF
0d62e5e8 3654#define HAVE_ELF_FPREGSET_T 1
bec39cab 3655_ACEOF
0d62e5e8
DJ
3656
3657 fi
bec39cab
AC
3658 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
3659echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6
0d62e5e8
DJ
3660
3661fi
3662
3663srv_thread_depfiles=
3664srv_libs=
3665USE_THREAD_DB=
3666
3667if test "$srv_linux_thread_db" = "yes"; then
bec39cab
AC
3668 echo "$as_me:$LINENO: checking for libthread_db" >&5
3669echo $ECHO_N "checking for libthread_db... $ECHO_C" >&6
3670if test "${srv_cv_thread_db+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8
DJ
3672else
3673 old_LIBS="$LIBS"
3674 LIBS="$LIBS -lthread_db"
bec39cab
AC
3675 cat >conftest.$ac_ext <<_ACEOF
3676/* confdefs.h. */
3677_ACEOF
3678cat confdefs.h >>conftest.$ac_ext
3679cat >>conftest.$ac_ext <<_ACEOF
3680/* end confdefs.h. */
0d62e5e8
DJ
3681void ps_pglobal_lookup() {}
3682 void ps_pdread() {}
3683 void ps_pdwrite() {}
3684 void ps_lgetregs() {}
3685 void ps_lsetregs() {}
3686 void ps_lgetfpregs() {}
3687 void ps_lsetfpregs() {}
434c4c77 3688 void ps_get_thread_area() {}
0d62e5e8 3689 void ps_getpid() {}
bec39cab
AC
3690int
3691main ()
3692{
0d62e5e8 3693td_ta_new();
bec39cab
AC
3694 ;
3695 return 0;
3696}
3697_ACEOF
3698rm -f conftest.$ac_objext conftest$ac_exeext
3699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3700 (eval $ac_link) 2>conftest.er1
3701 ac_status=$?
3702 grep -v '^ *+' conftest.er1 >conftest.err
3703 rm -f conftest.er1
3704 cat conftest.err >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } &&
3707 { ac_try='test -z "$ac_c_werror_flag"
3708 || test ! -s conftest.err'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 (eval $ac_try) 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; } &&
3714 { ac_try='test -s conftest$ac_exeext'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
0d62e5e8
DJ
3720 srv_cv_thread_db="-lthread_db"
3721else
bec39cab
AC
3722 echo "$as_me: failed program was:" >&5
3723sed 's/^/| /' conftest.$ac_ext >&5
3724
3725srv_cv_thread_db=no
0d62e5e8
DJ
3726
3727 if test "$prefix" = "/usr" || test "$prefix" = "NONE"; then
3728 thread_db="/lib/libthread_db.so.1"
3729 else
3730 thread_db='$prefix/lib/libthread_db.so.1'
3731 fi
3732 LIBS="$old_LIBS `eval echo "$thread_db"`"
bec39cab
AC
3733 cat >conftest.$ac_ext <<_ACEOF
3734/* confdefs.h. */
3735_ACEOF
3736cat confdefs.h >>conftest.$ac_ext
3737cat >>conftest.$ac_ext <<_ACEOF
3738/* end confdefs.h. */
0d62e5e8
DJ
3739void ps_pglobal_lookup() {}
3740 void ps_pdread() {}
3741 void ps_pdwrite() {}
3742 void ps_lgetregs() {}
3743 void ps_lsetregs() {}
3744 void ps_lgetfpregs() {}
3745 void ps_lsetfpregs() {}
434c4c77 3746 void ps_get_thread_area() {}
0d62e5e8 3747 void ps_getpid() {}
bec39cab
AC
3748int
3749main ()
3750{
0d62e5e8 3751td_ta_new();
bec39cab
AC
3752 ;
3753 return 0;
3754}
3755_ACEOF
3756rm -f conftest.$ac_objext conftest$ac_exeext
3757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3758 (eval $ac_link) 2>conftest.er1
3759 ac_status=$?
3760 grep -v '^ *+' conftest.er1 >conftest.err
3761 rm -f conftest.er1
3762 cat conftest.err >&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); } &&
3765 { ac_try='test -z "$ac_c_werror_flag"
3766 || test ! -s conftest.err'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 (eval $ac_try) 2>&5
3769 ac_status=$?
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; } &&
3772 { ac_try='test -s conftest$ac_exeext'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 (eval $ac_try) 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; }; then
0d62e5e8
DJ
3778 srv_cv_thread_db="$thread_db"
3779else
bec39cab
AC
3780 echo "$as_me: failed program was:" >&5
3781sed 's/^/| /' conftest.$ac_ext >&5
3782
3783srv_cv_thread_db=no
0d62e5e8 3784fi
bec39cab
AC
3785rm -f conftest.err conftest.$ac_objext \
3786 conftest$ac_exeext conftest.$ac_ext
0d62e5e8 3787
bec39cab
AC
3788fi
3789echo "$as_me:$LINENO: result: $srv_cv_thread_db" >&5
3790echo "${ECHO_T}$srv_cv_thread_db" >&6
434c4c77 3791 LIBS="$old_LIBS"
0d62e5e8
DJ
3792
3793fi
bec39cab
AC
3794rm -f conftest.err conftest.$ac_objext \
3795 conftest$ac_exeext conftest.$ac_ext
0d62e5e8 3796 if test "$srv_cv_thread_db" = no; then
bec39cab
AC
3797 { echo "$as_me:$LINENO: WARNING: Could not find libthread_db." >&5
3798echo "$as_me: WARNING: Could not find libthread_db." >&2;}
3799 { echo "$as_me:$LINENO: WARNING: Disabling thread support in gdbserver." >&5
3800echo "$as_me: WARNING: Disabling thread support in gdbserver." >&2;}
0d62e5e8
DJ
3801 srv_linux_thread_db=no
3802 else
3803 srv_libs="$srv_cv_thread_db"
3804 fi
f6de3c42
DJ
3805 old_LDFLAGS="$LDFLAGS"
3806 LDFLAGS="$LDFLAGS -rdynamic"
bec39cab
AC
3807 cat >conftest.$ac_ext <<_ACEOF
3808/* confdefs.h. */
3809_ACEOF
3810cat confdefs.h >>conftest.$ac_ext
3811cat >>conftest.$ac_ext <<_ACEOF
3812/* end confdefs.h. */
3813
3814int
3815main ()
3816{
3817
3818 ;
3819 return 0;
3820}
3821_ACEOF
3822rm -f conftest.$ac_objext conftest$ac_exeext
3823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3824 (eval $ac_link) 2>conftest.er1
3825 ac_status=$?
3826 grep -v '^ *+' conftest.er1 >conftest.err
3827 rm -f conftest.er1
3828 cat conftest.err >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } &&
3831 { ac_try='test -z "$ac_c_werror_flag"
3832 || test ! -s conftest.err'
3833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834 (eval $ac_try) 2>&5
3835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }; } &&
3838 { ac_try='test -s conftest$ac_exeext'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; }; then
f6de3c42
DJ
3844 RDYNAMIC=-rdynamic
3845else
bec39cab
AC
3846 echo "$as_me: failed program was:" >&5
3847sed 's/^/| /' conftest.$ac_ext >&5
3848
3849RDYNAMIC=
f6de3c42 3850fi
bec39cab
AC
3851rm -f conftest.err conftest.$ac_objext \
3852 conftest$ac_exeext conftest.$ac_ext
3853
f6de3c42 3854 LDFLAGS="$old_LDFLAGS"
0d62e5e8
DJ
3855fi
3856
3857if test "$srv_linux_thread_db" = "yes"; then
3858 srv_thread_depfiles="thread-db.o proc-service.o"
3859 USE_THREAD_DB="-DUSE_THREAD_DB"
3860fi
3861
3862GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_thread_depfiles"
3863GDBSERVER_LIBS="$srv_libs"
3864
3865
d6e9fb05
JK
3866
3867
3868
bec39cab
AC
3869 ac_config_files="$ac_config_files Makefile"
3870 ac_config_commands="$ac_config_commands default"
3871cat >confcache <<\_ACEOF
d6e9fb05
JK
3872# This file is a shell script that caches the results of configure
3873# tests run on this system so they can be shared between configure
bec39cab
AC
3874# scripts and configure runs, see configure's option --config-cache.
3875# It is not useful on other systems. If it contains results you don't
3876# want to keep, you may remove or edit it.
d6e9fb05 3877#
bec39cab
AC
3878# config.status only pays attention to the cache file if you give it
3879# the --recheck option to rerun configure.
d6e9fb05 3880#
bec39cab
AC
3881# `ac_cv_env_foo' variables (set or unset) will be overridden when
3882# loading this file, other *unset* `ac_cv_foo' will be assigned the
3883# following values.
3884
3885_ACEOF
3886
d6e9fb05
JK
3887# The following way of writing the cache mishandles newlines in values,
3888# but we know of no workaround that is simple, portable, and efficient.
3889# So, don't put newlines in cache variables' values.
3890# Ultrix sh set writes to stderr and can't be redirected directly,
3891# and sets the high bit in the cache file unless we assign to the vars.
bec39cab
AC
3892{
3893 (set) 2>&1 |
3894 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3895 *ac_space=\ *)
3896 # `set' does not quote correctly, so add quotes (double-quote
3897 # substitution turns \\\\ into \\, and sed turns \\ into \).
3898 sed -n \
3899 "s/'/'\\\\''/g;
3900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3901 ;;
3902 *)
3903 # `set' quotes correctly as required by POSIX, so do not add quotes.
3904 sed -n \
3905 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3906 ;;
3907 esac;
3908} |
3909 sed '
3910 t clear
3911 : clear
3912 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3913 t end
3914 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3915 : end' >>confcache
3916if diff $cache_file confcache >/dev/null 2>&1; then :; else
d6e9fb05 3917 if test -w $cache_file; then
bec39cab
AC
3918 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3919 cat confcache >$cache_file
d6e9fb05
JK
3920 else
3921 echo "not updating unwritable cache $cache_file"
3922 fi
3923fi
3924rm -f confcache
3925
d6e9fb05
JK
3926test "x$prefix" = xNONE && prefix=$ac_default_prefix
3927# Let make expand exec_prefix.
3928test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3929
bec39cab
AC
3930# VPATH may cause trouble with some makes, so we remove $(srcdir),
3931# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3932# trailing colons and then remove the whole line if VPATH becomes empty
3933# (actually we leave an empty line to preserve line numbers).
d6e9fb05 3934if test "x$srcdir" = x.; then
bec39cab
AC
3935 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3936s/:*\$(srcdir):*/:/;
3937s/:*\${srcdir}:*/:/;
3938s/:*@srcdir@:*/:/;
3939s/^\([^=]*=[ ]*\):*/\1/;
3940s/:*$//;
3941s/^[^=]*=[ ]*$//;
3942}'
d6e9fb05
JK
3943fi
3944
84563040 3945DEFS=-DHAVE_CONFIG_H
d6e9fb05 3946
bec39cab
AC
3947ac_libobjs=
3948ac_ltlibobjs=
3949for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3950 # 1. Remove the extension, and $U if already installed.
3951 ac_i=`echo "$ac_i" |
3952 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3953 # 2. Add them.
3954 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3955 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3956done
3957LIBOBJS=$ac_libobjs
d6e9fb05 3958
bec39cab
AC
3959LTLIBOBJS=$ac_ltlibobjs
3960
3961
3962
3963: ${CONFIG_STATUS=./config.status}
3964ac_clean_files_save=$ac_clean_files
3965ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3966{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3967echo "$as_me: creating $CONFIG_STATUS" >&6;}
3968cat >$CONFIG_STATUS <<_ACEOF
3969#! $SHELL
3970# Generated by $as_me.
d6e9fb05 3971# Run this file to recreate the current configuration.
d6e9fb05 3972# Compiler output produced by configure, useful for debugging
bec39cab
AC
3973# configure, is in config.log if it exists.
3974
3975debug=false
3976ac_cs_recheck=false
3977ac_cs_silent=false
3978SHELL=\${CONFIG_SHELL-$SHELL}
3979_ACEOF
3980
3981cat >>$CONFIG_STATUS <<\_ACEOF
3982## --------------------- ##
3983## M4sh Initialization. ##
3984## --------------------- ##
3985
3986# Be Bourne compatible
3987if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3988 emulate sh
3989 NULLCMD=:
3990 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3991 # is contrary to our usage. Disable this feature.
3992 alias -g '${1+"$@"}'='"$@"'
3993elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3994 set -o posix
3995fi
3996DUALCASE=1; export DUALCASE # for MKS sh
d6e9fb05 3997
bec39cab
AC
3998# Support unset when possible.
3999if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4000 as_unset=unset
4001else
4002 as_unset=false
4003fi
4004
4005
4006# Work around bugs in pre-3.0 UWIN ksh.
4007$as_unset ENV MAIL MAILPATH
4008PS1='$ '
4009PS2='> '
4010PS4='+ '
4011
4012# NLS nuisances.
4013for as_var in \
4014 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4015 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4016 LC_TELEPHONE LC_TIME
d6e9fb05 4017do
bec39cab
AC
4018 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4019 eval $as_var=C; export $as_var
4020 else
4021 $as_unset $as_var
4022 fi
d6e9fb05
JK
4023done
4024
bec39cab
AC
4025# Required to use basename.
4026if expr a : '\(a\)' >/dev/null 2>&1; then
4027 as_expr=expr
4028else
4029 as_expr=false
4030fi
d6e9fb05 4031
bec39cab
AC
4032if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4033 as_basename=basename
4034else
4035 as_basename=false
4036fi
d6e9fb05 4037
d6e9fb05 4038
bec39cab
AC
4039# Name of the executable.
4040as_me=`$as_basename "$0" ||
4041$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4042 X"$0" : 'X\(//\)$' \| \
4043 X"$0" : 'X\(/\)$' \| \
4044 . : '\(.\)' 2>/dev/null ||
4045echo X/"$0" |
4046 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4047 /^X\/\(\/\/\)$/{ s//\1/; q; }
4048 /^X\/\(\/\).*/{ s//\1/; q; }
4049 s/.*/./; q'`
4050
4051
4052# PATH needs CR, and LINENO needs CR and PATH.
4053# Avoid depending upon Character Ranges.
4054as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4055as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4056as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4057as_cr_digits='0123456789'
4058as_cr_alnum=$as_cr_Letters$as_cr_digits
4059
4060# The user is always right.
4061if test "${PATH_SEPARATOR+set}" != set; then
4062 echo "#! /bin/sh" >conf$$.sh
4063 echo "exit 0" >>conf$$.sh
4064 chmod +x conf$$.sh
4065 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4066 PATH_SEPARATOR=';'
d6e9fb05 4067 else
bec39cab 4068 PATH_SEPARATOR=:
d6e9fb05 4069 fi
bec39cab
AC
4070 rm -f conf$$.sh
4071fi
4072
4073
4074 as_lineno_1=$LINENO
4075 as_lineno_2=$LINENO
4076 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4077 test "x$as_lineno_1" != "x$as_lineno_2" &&
4078 test "x$as_lineno_3" = "x$as_lineno_2" || {
4079 # Find who we are. Look in the path if we contain no path at all
4080 # relative or not.
4081 case $0 in
4082 *[\\/]* ) as_myself=$0 ;;
4083 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084for as_dir in $PATH
4085do
4086 IFS=$as_save_IFS
4087 test -z "$as_dir" && as_dir=.
4088 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4089done
4090
4091 ;;
4092 esac
4093 # We did not find ourselves, most probably we were run as `sh COMMAND'
4094 # in which case we are not to be found in the path.
4095 if test "x$as_myself" = x; then
4096 as_myself=$0
4097 fi
4098 if test ! -f "$as_myself"; then
4099 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4100echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4101 { (exit 1); exit 1; }; }
4102 fi
4103 case $CONFIG_SHELL in
4104 '')
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4107do
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for as_base in sh bash ksh sh5; do
4111 case $as_dir in
4112 /*)
4113 if ("$as_dir/$as_base" -c '
4114 as_lineno_1=$LINENO
4115 as_lineno_2=$LINENO
4116 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4117 test "x$as_lineno_1" != "x$as_lineno_2" &&
4118 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4119 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4120 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4121 CONFIG_SHELL=$as_dir/$as_base
4122 export CONFIG_SHELL
4123 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4124 fi;;
4125 esac
4126 done
4127done
4128;;
4129 esac
4130
4131 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4132 # uniformly replaced by the line number. The first 'sed' inserts a
4133 # line-number line before each line; the second 'sed' does the real
4134 # work. The second script uses 'N' to pair each line-number line
4135 # with the numbered line, and appends trailing '-' during
4136 # substitution so that $LINENO is not a special case at line end.
4137 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4138 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4139 sed '=' <$as_myself |
4140 sed '
4141 N
4142 s,$,-,
4143 : loop
4144 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4145 t loop
4146 s,-$,,
4147 s,^['$as_cr_digits']*\n,,
4148 ' >$as_me.lineno &&
4149 chmod +x $as_me.lineno ||
4150 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4151echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4152 { (exit 1); exit 1; }; }
4153
4154 # Don't try to exec as it changes $[0], causing all sort of problems
4155 # (the dirname of $[0] is not the place where we might find the
4156 # original and so on. Autoconf is especially sensible to this).
4157 . ./$as_me.lineno
4158 # Exit status is that of the last command.
4159 exit
4160}
4161
4162
4163case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4164 *c*,-n*) ECHO_N= ECHO_C='
4165' ECHO_T=' ' ;;
4166 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4167 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4168esac
4169
4170if expr a : '\(a\)' >/dev/null 2>&1; then
4171 as_expr=expr
4172else
4173 as_expr=false
4174fi
4175
4176rm -f conf$$ conf$$.exe conf$$.file
4177echo >conf$$.file
4178if ln -s conf$$.file conf$$ 2>/dev/null; then
4179 # We could just check for DJGPP; but this test a) works b) is more generic
4180 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4181 if test -f conf$$.exe; then
4182 # Don't use ln at all; we don't have any links
4183 as_ln_s='cp -p'
d6e9fb05 4184 else
bec39cab 4185 as_ln_s='ln -s'
d6e9fb05 4186 fi
bec39cab
AC
4187elif ln conf$$.file conf$$ 2>/dev/null; then
4188 as_ln_s=ln
4189else
4190 as_ln_s='cp -p'
4191fi
4192rm -f conf$$ conf$$.exe conf$$.file
4193
4194if mkdir -p . 2>/dev/null; then
4195 as_mkdir_p=:
4196else
4197 test -d ./-p && rmdir ./-p
4198 as_mkdir_p=false
4199fi
4200
4201as_executable_p="test -f"
4202
4203# Sed expression to map a string onto a valid CPP name.
4204as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4205
4206# Sed expression to map a string onto a valid variable name.
4207as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4208
4209
4210# IFS
4211# We need space, tab and new line, in precisely that order.
4212as_nl='
4213'
4214IFS=" $as_nl"
4215
4216# CDPATH.
4217$as_unset CDPATH
4218
4219exec 6>&1
4220
4221# Open the log real soon, to keep \$[0] and so on meaningful, and to
4222# report actual input values of CONFIG_FILES etc. instead of their
4223# values after options handling. Logging --version etc. is OK.
4224exec 5>>config.log
4225{
4226 echo
4227 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4228## Running $as_me. ##
4229_ASBOX
4230} >&5
4231cat >&5 <<_CSEOF
4232
4233This file was extended by $as_me, which was
4234generated by GNU Autoconf 2.59. Invocation command line was
4235
4236 CONFIG_FILES = $CONFIG_FILES
4237 CONFIG_HEADERS = $CONFIG_HEADERS
4238 CONFIG_LINKS = $CONFIG_LINKS
4239 CONFIG_COMMANDS = $CONFIG_COMMANDS
4240 $ $0 $@
4241
4242_CSEOF
4243echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4244echo >&5
4245_ACEOF
4246
4247# Files that config.status was made for.
4248if test -n "$ac_config_files"; then
4249 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4250fi
4251
4252if test -n "$ac_config_headers"; then
4253 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4254fi
4255
4256if test -n "$ac_config_links"; then
4257 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4258fi
4259
4260if test -n "$ac_config_commands"; then
4261 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4262fi
4263
4264cat >>$CONFIG_STATUS <<\_ACEOF
4265
4266ac_cs_usage="\
4267\`$as_me' instantiates files from templates according to the
4268current configuration.
4269
4270Usage: $0 [OPTIONS] [FILE]...
4271
4272 -h, --help print this help, then exit
4273 -V, --version print version number, then exit
4274 -q, --quiet do not print progress messages
4275 -d, --debug don't remove temporary files
4276 --recheck update $as_me by reconfiguring in the same conditions
4277 --file=FILE[:TEMPLATE]
4278 instantiate the configuration file FILE
4279 --header=FILE[:TEMPLATE]
4280 instantiate the configuration header FILE
4281
4282Configuration files:
4283$config_files
4284
4285Configuration headers:
4286$config_headers
4287
4288Configuration commands:
4289$config_commands
4290
4291Report bugs to <bug-autoconf@gnu.org>."
4292_ACEOF
4293
4294cat >>$CONFIG_STATUS <<_ACEOF
4295ac_cs_version="\\
4296config.status
4297configured by $0, generated by GNU Autoconf 2.59,
4298 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4299
4300Copyright (C) 2003 Free Software Foundation, Inc.
4301This config.status script is free software; the Free Software Foundation
4302gives unlimited permission to copy, distribute and modify it."
4303srcdir=$srcdir
4304INSTALL="$INSTALL"
4305_ACEOF
4306
4307cat >>$CONFIG_STATUS <<\_ACEOF
4308# If no file are specified by the user, then we need to provide default
4309# value. By we need to know if files were specified by the user.
4310ac_need_defaults=:
4311while test $# != 0
4312do
4313 case $1 in
4314 --*=*)
4315 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4316 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4317 ac_shift=:
4318 ;;
4319 -*)
4320 ac_option=$1
4321 ac_optarg=$2
4322 ac_shift=shift
4323 ;;
4324 *) # This is not an option, so the user has probably given explicit
4325 # arguments.
4326 ac_option=$1
4327 ac_need_defaults=false;;
4328 esac
4329
4330 case $ac_option in
4331 # Handling of the options.
4332_ACEOF
4333cat >>$CONFIG_STATUS <<\_ACEOF
4334 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4335 ac_cs_recheck=: ;;
4336 --version | --vers* | -V )
4337 echo "$ac_cs_version"; exit 0 ;;
4338 --he | --h)
4339 # Conflict between --help and --header
4340 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4341Try \`$0 --help' for more information." >&5
4342echo "$as_me: error: ambiguous option: $1
4343Try \`$0 --help' for more information." >&2;}
4344 { (exit 1); exit 1; }; };;
4345 --help | --hel | -h )
4346 echo "$ac_cs_usage"; exit 0 ;;
4347 --debug | --d* | -d )
4348 debug=: ;;
4349 --file | --fil | --fi | --f )
4350 $ac_shift
4351 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4352 ac_need_defaults=false;;
4353 --header | --heade | --head | --hea )
4354 $ac_shift
4355 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4356 ac_need_defaults=false;;
4357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4358 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4359 ac_cs_silent=: ;;
4360
4361 # This is an error.
4362 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4363Try \`$0 --help' for more information." >&5
4364echo "$as_me: error: unrecognized option: $1
4365Try \`$0 --help' for more information." >&2;}
4366 { (exit 1); exit 1; }; } ;;
4367
4368 *) ac_config_targets="$ac_config_targets $1" ;;
4369
4370 esac
4371 shift
d6e9fb05 4372done
bec39cab
AC
4373
4374ac_configure_extra_args=
4375
4376if $ac_cs_silent; then
4377 exec 6>/dev/null
4378 ac_configure_extra_args="$ac_configure_extra_args --silent"
d6e9fb05 4379fi
d6e9fb05 4380
bec39cab
AC
4381_ACEOF
4382cat >>$CONFIG_STATUS <<_ACEOF
4383if \$ac_cs_recheck; then
4384 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4385 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4386fi
d6e9fb05 4387
bec39cab
AC
4388_ACEOF
4389
4390
4391
4392
4393
4394cat >>$CONFIG_STATUS <<\_ACEOF
4395for ac_config_target in $ac_config_targets
4396do
4397 case "$ac_config_target" in
4398 # Handling of arguments.
4399 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4400 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4401 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
4402 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4403echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4404 { (exit 1); exit 1; }; };;
d6e9fb05 4405 esac
bec39cab
AC
4406done
4407
4408# If the user did not use the arguments to specify the items to instantiate,
4409# then the envvar interface is used. Set only those that are not.
4410# We use the long form for the default assignment because of an extremely
4411# bizarre bug on SunOS 4.1.3.
4412if $ac_need_defaults; then
4413 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4414 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4415 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4416fi
d6e9fb05 4417
bec39cab
AC
4418# Have a temporary directory for convenience. Make it in the build tree
4419# simply because there is no reason to put it here, and in addition,
4420# creating and moving files from /tmp can sometimes cause problems.
4421# Create a temporary directory, and hook for its removal unless debugging.
4422$debug ||
4423{
4424 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4425 trap '{ (exit 1); exit 1; }' 1 2 13 15
4426}
4427
4428# Create a (secure) tmp directory for tmp files.
4429
4430{
4431 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4432 test -n "$tmp" && test -d "$tmp"
4433} ||
4434{
4435 tmp=./confstat$$-$RANDOM
4436 (umask 077 && mkdir $tmp)
4437} ||
4438{
4439 echo "$me: cannot create a temporary directory in ." >&2
4440 { (exit 1); exit 1; }
4441}
4442
4443_ACEOF
4444
4445cat >>$CONFIG_STATUS <<_ACEOF
d6e9fb05 4446
bec39cab
AC
4447#
4448# CONFIG_FILES section.
4449#
4450
4451# No need to generate the scripts if there are no CONFIG_FILES.
4452# This happens for instance when ./config.status config.h
4453if test -n "\$CONFIG_FILES"; then
4454 # Protect against being on the right side of a sed subst in config.status.
4455 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4456 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4457s,@SHELL@,$SHELL,;t t
4458s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4459s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4460s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4461s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4462s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4463s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4464s,@exec_prefix@,$exec_prefix,;t t
4465s,@prefix@,$prefix,;t t
4466s,@program_transform_name@,$program_transform_name,;t t
4467s,@bindir@,$bindir,;t t
4468s,@sbindir@,$sbindir,;t t
4469s,@libexecdir@,$libexecdir,;t t
4470s,@datadir@,$datadir,;t t
4471s,@sysconfdir@,$sysconfdir,;t t
4472s,@sharedstatedir@,$sharedstatedir,;t t
4473s,@localstatedir@,$localstatedir,;t t
4474s,@libdir@,$libdir,;t t
4475s,@includedir@,$includedir,;t t
4476s,@oldincludedir@,$oldincludedir,;t t
4477s,@infodir@,$infodir,;t t
4478s,@mandir@,$mandir,;t t
4479s,@build_alias@,$build_alias,;t t
4480s,@host_alias@,$host_alias,;t t
4481s,@target_alias@,$target_alias,;t t
4482s,@DEFS@,$DEFS,;t t
4483s,@ECHO_C@,$ECHO_C,;t t
4484s,@ECHO_N@,$ECHO_N,;t t
4485s,@ECHO_T@,$ECHO_T,;t t
4486s,@LIBS@,$LIBS,;t t
4487s,@CC@,$CC,;t t
4488s,@CFLAGS@,$CFLAGS,;t t
4489s,@LDFLAGS@,$LDFLAGS,;t t
4490s,@CPPFLAGS@,$CPPFLAGS,;t t
4491s,@ac_ct_CC@,$ac_ct_CC,;t t
4492s,@EXEEXT@,$EXEEXT,;t t
4493s,@OBJEXT@,$OBJEXT,;t t
4494s,@build@,$build,;t t
4495s,@build_cpu@,$build_cpu,;t t
4496s,@build_vendor@,$build_vendor,;t t
4497s,@build_os@,$build_os,;t t
4498s,@host@,$host,;t t
4499s,@host_cpu@,$host_cpu,;t t
4500s,@host_vendor@,$host_vendor,;t t
4501s,@host_os@,$host_os,;t t
4502s,@target@,$target,;t t
4503s,@target_cpu@,$target_cpu,;t t
4504s,@target_vendor@,$target_vendor,;t t
4505s,@target_os@,$target_os,;t t
4506s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4507s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4508s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4509s,@CPP@,$CPP,;t t
4510s,@EGREP@,$EGREP,;t t
4511s,@RDYNAMIC@,$RDYNAMIC,;t t
4512s,@GDBSERVER_DEPFILES@,$GDBSERVER_DEPFILES,;t t
4513s,@GDBSERVER_LIBS@,$GDBSERVER_LIBS,;t t
4514s,@USE_THREAD_DB@,$USE_THREAD_DB,;t t
4515s,@LIBOBJS@,$LIBOBJS,;t t
4516s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4517CEOF
4518
4519_ACEOF
4520
4521 cat >>$CONFIG_STATUS <<\_ACEOF
4522 # Split the substitutions into bite-sized pieces for seds with
4523 # small command number limits, like on Digital OSF/1 and HP-UX.
4524 ac_max_sed_lines=48
4525 ac_sed_frag=1 # Number of current file.
4526 ac_beg=1 # First line for current file.
4527 ac_end=$ac_max_sed_lines # Line after last line for current file.
4528 ac_more_lines=:
4529 ac_sed_cmds=
4530 while $ac_more_lines; do
4531 if test $ac_beg -gt 1; then
4532 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4533 else
4534 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4535 fi
4536 if test ! -s $tmp/subs.frag; then
4537 ac_more_lines=false
4538 else
4539 # The purpose of the label and of the branching condition is to
4540 # speed up the sed processing (if there are no `@' at all, there
4541 # is no need to browse any of the substitutions).
4542 # These are the two extra sed commands mentioned above.
4543 (echo ':t
4544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4545 if test -z "$ac_sed_cmds"; then
4546 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4547 else
4548 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4549 fi
4550 ac_sed_frag=`expr $ac_sed_frag + 1`
4551 ac_beg=$ac_end
4552 ac_end=`expr $ac_end + $ac_max_sed_lines`
4553 fi
4554 done
4555 if test -z "$ac_sed_cmds"; then
4556 ac_sed_cmds=cat
d6e9fb05 4557 fi
bec39cab 4558fi # test -n "$CONFIG_FILES"
d6e9fb05 4559
bec39cab
AC
4560_ACEOF
4561cat >>$CONFIG_STATUS <<\_ACEOF
4562for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4563 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4564 case $ac_file in
4565 - | *:- | *:-:* ) # input from stdin
4566 cat >$tmp/stdin
4567 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4568 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4569 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4570 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4571 * ) ac_file_in=$ac_file.in ;;
d6e9fb05
JK
4572 esac
4573
bec39cab
AC
4574 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4575 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4576$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4577 X"$ac_file" : 'X\(//\)[^/]' \| \
4578 X"$ac_file" : 'X\(//\)$' \| \
4579 X"$ac_file" : 'X\(/\)' \| \
4580 . : '\(.\)' 2>/dev/null ||
4581echo X"$ac_file" |
4582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4584 /^X\(\/\/\)$/{ s//\1/; q; }
4585 /^X\(\/\).*/{ s//\1/; q; }
4586 s/.*/./; q'`
4587 { if $as_mkdir_p; then
4588 mkdir -p "$ac_dir"
4589 else
4590 as_dir="$ac_dir"
4591 as_dirs=
4592 while test ! -d "$as_dir"; do
4593 as_dirs="$as_dir $as_dirs"
4594 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4595$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4596 X"$as_dir" : 'X\(//\)[^/]' \| \
4597 X"$as_dir" : 'X\(//\)$' \| \
4598 X"$as_dir" : 'X\(/\)' \| \
4599 . : '\(.\)' 2>/dev/null ||
4600echo X"$as_dir" |
4601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4603 /^X\(\/\/\)$/{ s//\1/; q; }
4604 /^X\(\/\).*/{ s//\1/; q; }
4605 s/.*/./; q'`
4606 done
4607 test ! -n "$as_dirs" || mkdir $as_dirs
4608 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4609echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4610 { (exit 1); exit 1; }; }; }
4611
4612 ac_builddir=.
4613
4614if test "$ac_dir" != .; then
4615 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4616 # A "../" for each directory in $ac_dir_suffix.
4617 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4618else
4619 ac_dir_suffix= ac_top_builddir=
4620fi
4621
4622case $srcdir in
4623 .) # No --srcdir option. We are building in place.
4624 ac_srcdir=.
4625 if test -z "$ac_top_builddir"; then
4626 ac_top_srcdir=.
4627 else
4628 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4629 fi ;;
4630 [\\/]* | ?:[\\/]* ) # Absolute path.
4631 ac_srcdir=$srcdir$ac_dir_suffix;
4632 ac_top_srcdir=$srcdir ;;
4633 *) # Relative path.
4634 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4635 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4636esac
4637
4638# Do not use `cd foo && pwd` to compute absolute paths, because
4639# the directories may not exist.
4640case `pwd` in
4641.) ac_abs_builddir="$ac_dir";;
4642*)
4643 case "$ac_dir" in
4644 .) ac_abs_builddir=`pwd`;;
4645 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4646 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4647 esac;;
4648esac
4649case $ac_abs_builddir in
4650.) ac_abs_top_builddir=${ac_top_builddir}.;;
4651*)
4652 case ${ac_top_builddir}. in
4653 .) ac_abs_top_builddir=$ac_abs_builddir;;
4654 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4655 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4656 esac;;
4657esac
4658case $ac_abs_builddir in
4659.) ac_abs_srcdir=$ac_srcdir;;
4660*)
4661 case $ac_srcdir in
4662 .) ac_abs_srcdir=$ac_abs_builddir;;
4663 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4664 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4665 esac;;
4666esac
4667case $ac_abs_builddir in
4668.) ac_abs_top_srcdir=$ac_top_srcdir;;
4669*)
4670 case $ac_top_srcdir in
4671 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4672 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4673 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4674 esac;;
4675esac
4676
d6e9fb05 4677
bec39cab
AC
4678 case $INSTALL in
4679 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4680 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d6e9fb05
JK
4681 esac
4682
bec39cab
AC
4683 if test x"$ac_file" != x-; then
4684 { echo "$as_me:$LINENO: creating $ac_file" >&5
4685echo "$as_me: creating $ac_file" >&6;}
4686 rm -f "$ac_file"
4687 fi
4688 # Let's still pretend it is `configure' which instantiates (i.e., don't
4689 # use $as_me), people would be surprised to read:
4690 # /* config.h. Generated by config.status. */
4691 if test x"$ac_file" = x-; then
4692 configure_input=
4693 else
4694 configure_input="$ac_file. "
4695 fi
4696 configure_input=$configure_input"Generated from `echo $ac_file_in |
4697 sed 's,.*/,,'` by configure."
4698
4699 # First look for the input files in the build tree, otherwise in the
4700 # src tree.
4701 ac_file_inputs=`IFS=:
4702 for f in $ac_file_in; do
4703 case $f in
4704 -) echo $tmp/stdin ;;
4705 [\\/$]*)
4706 # Absolute (can't be DOS-style, as IFS=:)
4707 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4708echo "$as_me: error: cannot find input file: $f" >&2;}
4709 { (exit 1); exit 1; }; }
4710 echo "$f";;
4711 *) # Relative
4712 if test -f "$f"; then
4713 # Build tree
4714 echo "$f"
4715 elif test -f "$srcdir/$f"; then
4716 # Source tree
4717 echo "$srcdir/$f"
4718 else
4719 # /dev/null tree
4720 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4721echo "$as_me: error: cannot find input file: $f" >&2;}
4722 { (exit 1); exit 1; }; }
4723 fi;;
4724 esac
4725 done` || { (exit 1); exit 1; }
4726_ACEOF
4727cat >>$CONFIG_STATUS <<_ACEOF
4728 sed "$ac_vpsub
4729$extrasub
4730_ACEOF
4731cat >>$CONFIG_STATUS <<\_ACEOF
4732:t
4733/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4734s,@configure_input@,$configure_input,;t t
4735s,@srcdir@,$ac_srcdir,;t t
4736s,@abs_srcdir@,$ac_abs_srcdir,;t t
4737s,@top_srcdir@,$ac_top_srcdir,;t t
4738s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4739s,@builddir@,$ac_builddir,;t t
4740s,@abs_builddir@,$ac_abs_builddir,;t t
4741s,@top_builddir@,$ac_top_builddir,;t t
4742s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4743s,@INSTALL@,$ac_INSTALL,;t t
4744" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4745 rm -f $tmp/stdin
4746 if test x"$ac_file" != x-; then
4747 mv $tmp/out $ac_file
4748 else
4749 cat $tmp/out
4750 rm -f $tmp/out
4751 fi
4752
4753done
4754_ACEOF
4755cat >>$CONFIG_STATUS <<\_ACEOF
4756
4757#
4758# CONFIG_HEADER section.
4759#
d6e9fb05 4760
84563040
DJ
4761# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4762# NAME is the cpp macro being defined and VALUE is the value it is being given.
4763#
4764# ac_d sets the value in "#define NAME VALUE" lines.
bec39cab
AC
4765ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4766ac_dB='[ ].*$,\1#\2'
4767ac_dC=' '
4768ac_dD=',;t'
4769# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4770ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4771ac_uB='$,\1#\2define\3'
84563040 4772ac_uC=' '
bec39cab
AC
4773ac_uD=',;t'
4774
4775for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
84563040 4776 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
4777 case $ac_file in
4778 - | *:- | *:-:* ) # input from stdin
4779 cat >$tmp/stdin
4780 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4781 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4782 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4783 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4784 * ) ac_file_in=$ac_file.in ;;
84563040 4785 esac
d6e9fb05 4786
bec39cab
AC
4787 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4788echo "$as_me: creating $ac_file" >&6;}
4789
4790 # First look for the input files in the build tree, otherwise in the
4791 # src tree.
4792 ac_file_inputs=`IFS=:
4793 for f in $ac_file_in; do
4794 case $f in
4795 -) echo $tmp/stdin ;;
4796 [\\/$]*)
4797 # Absolute (can't be DOS-style, as IFS=:)
4798 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4799echo "$as_me: error: cannot find input file: $f" >&2;}
4800 { (exit 1); exit 1; }; }
4801 # Do quote $f, to prevent DOS paths from being IFS'd.
4802 echo "$f";;
4803 *) # Relative
4804 if test -f "$f"; then
4805 # Build tree
4806 echo "$f"
4807 elif test -f "$srcdir/$f"; then
4808 # Source tree
4809 echo "$srcdir/$f"
4810 else
4811 # /dev/null tree
4812 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4813echo "$as_me: error: cannot find input file: $f" >&2;}
4814 { (exit 1); exit 1; }; }
4815 fi;;
4816 esac
4817 done` || { (exit 1); exit 1; }
4818 # Remove the trailing spaces.
4819 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4820
4821_ACEOF
4822
4823# Transform confdefs.h into two sed scripts, `conftest.defines' and
4824# `conftest.undefs', that substitutes the proper values into
4825# config.h.in to produce config.h. The first handles `#define'
4826# templates, and the second `#undef' templates.
4827# And first: Protect against being on the right side of a sed subst in
4828# config.status. Protect against being in an unquoted here document
4829# in config.status.
4830rm -f conftest.defines conftest.undefs
4831# Using a here document instead of a string reduces the quoting nightmare.
4832# Putting comments in sed scripts is not portable.
4833#
4834# `end' is used to avoid that the second main sed command (meant for
4835# 0-ary CPP macros) applies to n-ary macro definitions.
4836# See the Autoconf documentation for `clear'.
4837cat >confdef2sed.sed <<\_ACEOF
4838s/[\\&,]/\\&/g
4839s,[\\$`],\\&,g
4840t clear
4841: clear
4842s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4843t end
4844s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4845: end
4846_ACEOF
4847# If some macros were called several times there might be several times
4848# the same #defines, which is useless. Nevertheless, we may not want to
4849# sort them, since we want the *last* AC-DEFINE to be honored.
4850uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4851sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4852rm -f confdef2sed.sed
84563040
DJ
4853
4854# This sed command replaces #undef with comments. This is necessary, for
4855# example, in the case of _POSIX_SOURCE, which is predefined and required
4856# on some systems where configure will not decide to define it.
bec39cab
AC
4857cat >>conftest.undefs <<\_ACEOF
4858s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4859_ACEOF
4860
4861# Break up conftest.defines because some shells have a limit on the size
4862# of here documents, and old seds have small limits too (100 cmds).
4863echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4864echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4865echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4866echo ' :' >>$CONFIG_STATUS
4867rm -f conftest.tail
4868while grep . conftest.defines >/dev/null
4869do
4870 # Write a limited-size here document to $tmp/defines.sed.
4871 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4872 # Speed up: don't consider the non `#define' lines.
4873 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4874 # Work around the forget-to-reset-the-flag bug.
4875 echo 't clr' >>$CONFIG_STATUS
4876 echo ': clr' >>$CONFIG_STATUS
4877 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4878 echo 'CEOF
4879 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4880 rm -f $tmp/in
4881 mv $tmp/out $tmp/in
4882' >>$CONFIG_STATUS
4883 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4884 rm -f conftest.defines
4885 mv conftest.tail conftest.defines
4886done
4887rm -f conftest.defines
4888echo ' fi # grep' >>$CONFIG_STATUS
4889echo >>$CONFIG_STATUS
84563040 4890
bec39cab
AC
4891# Break up conftest.undefs because some shells have a limit on the size
4892# of here documents, and old seds have small limits too (100 cmds).
4893echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
84563040 4894rm -f conftest.tail
bec39cab 4895while grep . conftest.undefs >/dev/null
84563040 4896do
bec39cab
AC
4897 # Write a limited-size here document to $tmp/undefs.sed.
4898 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4899 # Speed up: don't consider the non `#undef'
4900 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4901 # Work around the forget-to-reset-the-flag bug.
4902 echo 't clr' >>$CONFIG_STATUS
4903 echo ': clr' >>$CONFIG_STATUS
4904 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
84563040 4905 echo 'CEOF
bec39cab
AC
4906 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4907 rm -f $tmp/in
4908 mv $tmp/out $tmp/in
4909' >>$CONFIG_STATUS
4910 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4911 rm -f conftest.undefs
4912 mv conftest.tail conftest.undefs
84563040 4913done
bec39cab
AC
4914rm -f conftest.undefs
4915
4916cat >>$CONFIG_STATUS <<\_ACEOF
4917 # Let's still pretend it is `configure' which instantiates (i.e., don't
4918 # use $as_me), people would be surprised to read:
4919 # /* config.h. Generated by config.status. */
4920 if test x"$ac_file" = x-; then
4921 echo "/* Generated by configure. */" >$tmp/config.h
4922 else
4923 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4924 fi
4925 cat $tmp/in >>$tmp/config.h
4926 rm -f $tmp/in
4927 if test x"$ac_file" != x-; then
4928 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4929 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4930echo "$as_me: $ac_file is unchanged" >&6;}
4931 else
4932 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4933$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4934 X"$ac_file" : 'X\(//\)[^/]' \| \
4935 X"$ac_file" : 'X\(//\)$' \| \
4936 X"$ac_file" : 'X\(/\)' \| \
4937 . : '\(.\)' 2>/dev/null ||
4938echo X"$ac_file" |
4939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4941 /^X\(\/\/\)$/{ s//\1/; q; }
4942 /^X\(\/\).*/{ s//\1/; q; }
4943 s/.*/./; q'`
4944 { if $as_mkdir_p; then
4945 mkdir -p "$ac_dir"
d6e9fb05 4946 else
bec39cab
AC
4947 as_dir="$ac_dir"
4948 as_dirs=
4949 while test ! -d "$as_dir"; do
4950 as_dirs="$as_dir $as_dirs"
4951 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4952$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4953 X"$as_dir" : 'X\(//\)[^/]' \| \
4954 X"$as_dir" : 'X\(//\)$' \| \
4955 X"$as_dir" : 'X\(/\)' \| \
4956 . : '\(.\)' 2>/dev/null ||
4957echo X"$as_dir" |
4958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4959 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4960 /^X\(\/\/\)$/{ s//\1/; q; }
4961 /^X\(\/\).*/{ s//\1/; q; }
4962 s/.*/./; q'`
4963 done
4964 test ! -n "$as_dirs" || mkdir $as_dirs
4965 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4966echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4967 { (exit 1); exit 1; }; }; }
4968
4969 rm -f $ac_file
4970 mv $tmp/config.h $ac_file
84563040 4971 fi
bec39cab
AC
4972 else
4973 cat $tmp/config.h
4974 rm -f $tmp/config.h
d6e9fb05 4975 fi
bec39cab
AC
4976done
4977_ACEOF
4978cat >>$CONFIG_STATUS <<\_ACEOF
4979
4980#
4981# CONFIG_COMMANDS section.
4982#
4983for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4984 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4985 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4986 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4987$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4988 X"$ac_dest" : 'X\(//\)[^/]' \| \
4989 X"$ac_dest" : 'X\(//\)$' \| \
4990 X"$ac_dest" : 'X\(/\)' \| \
4991 . : '\(.\)' 2>/dev/null ||
4992echo X"$ac_dest" |
4993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4995 /^X\(\/\/\)$/{ s//\1/; q; }
4996 /^X\(\/\).*/{ s//\1/; q; }
4997 s/.*/./; q'`
4998 { if $as_mkdir_p; then
4999 mkdir -p "$ac_dir"
5000 else
5001 as_dir="$ac_dir"
5002 as_dirs=
5003 while test ! -d "$as_dir"; do
5004 as_dirs="$as_dir $as_dirs"
5005 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5006$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5007 X"$as_dir" : 'X\(//\)[^/]' \| \
5008 X"$as_dir" : 'X\(//\)$' \| \
5009 X"$as_dir" : 'X\(/\)' \| \
5010 . : '\(.\)' 2>/dev/null ||
5011echo X"$as_dir" |
5012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5014 /^X\(\/\/\)$/{ s//\1/; q; }
5015 /^X\(\/\).*/{ s//\1/; q; }
5016 s/.*/./; q'`
5017 done
5018 test ! -n "$as_dirs" || mkdir $as_dirs
5019 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5020echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5021 { (exit 1); exit 1; }; }; }
5022
5023 ac_builddir=.
5024
5025if test "$ac_dir" != .; then
5026 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5027 # A "../" for each directory in $ac_dir_suffix.
5028 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5029else
5030 ac_dir_suffix= ac_top_builddir=
5031fi
5032
5033case $srcdir in
5034 .) # No --srcdir option. We are building in place.
5035 ac_srcdir=.
5036 if test -z "$ac_top_builddir"; then
5037 ac_top_srcdir=.
5038 else
5039 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5040 fi ;;
5041 [\\/]* | ?:[\\/]* ) # Absolute path.
5042 ac_srcdir=$srcdir$ac_dir_suffix;
5043 ac_top_srcdir=$srcdir ;;
5044 *) # Relative path.
5045 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5046 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5047esac
5048
5049# Do not use `cd foo && pwd` to compute absolute paths, because
5050# the directories may not exist.
5051case `pwd` in
5052.) ac_abs_builddir="$ac_dir";;
5053*)
5054 case "$ac_dir" in
5055 .) ac_abs_builddir=`pwd`;;
5056 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5057 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5058 esac;;
5059esac
5060case $ac_abs_builddir in
5061.) ac_abs_top_builddir=${ac_top_builddir}.;;
5062*)
5063 case ${ac_top_builddir}. in
5064 .) ac_abs_top_builddir=$ac_abs_builddir;;
5065 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5066 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5067 esac;;
5068esac
5069case $ac_abs_builddir in
5070.) ac_abs_srcdir=$ac_srcdir;;
5071*)
5072 case $ac_srcdir in
5073 .) ac_abs_srcdir=$ac_abs_builddir;;
5074 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5075 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5076 esac;;
5077esac
5078case $ac_abs_builddir in
5079.) ac_abs_top_srcdir=$ac_top_srcdir;;
5080*)
5081 case $ac_top_srcdir in
5082 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5083 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5084 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5085 esac;;
5086esac
84563040 5087
d6e9fb05 5088
bec39cab
AC
5089 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5090echo "$as_me: executing $ac_dest commands" >&6;}
5091 case $ac_dest in
5092 default ) case x$CONFIG_HEADERS in
c3a3ccc7
DJ
5093xconfig.h:config.in)
5094echo > stamp-h ;;
5095esac
bec39cab
AC
5096 ;;
5097 esac
5098done
5099_ACEOF
d6e9fb05 5100
bec39cab
AC
5101cat >>$CONFIG_STATUS <<\_ACEOF
5102
5103{ (exit 0); exit 0; }
5104_ACEOF
d6e9fb05 5105chmod +x $CONFIG_STATUS
bec39cab
AC
5106ac_clean_files=$ac_clean_files_save
5107
5108
5109# configure is writing to config.log, and then calls config.status.
5110# config.status does its own redirection, appending to config.log.
5111# Unfortunately, on DOS this fails, as config.log is still kept open
5112# by configure, so config.status won't be able to write to it; its
5113# output is simply discarded. So we exec the FD to /dev/null,
5114# effectively closing config.log, so it can be properly (re)opened and
5115# appended to by config.status. When coming back to configure, we
5116# need to make the FD available again.
5117if test "$no_create" != yes; then
5118 ac_cs_success=:
5119 ac_config_status_args=
5120 test "$silent" = yes &&
5121 ac_config_status_args="$ac_config_status_args --quiet"
5122 exec 5>/dev/null
5123 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5124 exec 5>>config.log
5125 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5126 # would make configure fail if this is the last instruction.
5127 $ac_cs_success || { (exit 1); exit 1; }
5128fi
d6e9fb05 5129
This page took 0.644563 seconds and 4 git commands to generate.