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