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