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