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