Index: ChangeLog
[deliverable/binutils-gdb.git] / gdb / testsuite / 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="gdb.base"
275 ac_subdirs_all="$ac_subdirs_all gdb.hp"
276 ac_subdirs_all="$ac_subdirs_all gdb.stabs"
277 ac_subdirs_all="$ac_subdirs_all gdb.gdbtk"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os subdirs RPATH_ENVVAR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653 done
654
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675 do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728 else
729 ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776
777 #
778 # Report the --help message.
779 #
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784 \`configure' configures this package to adapt to many kinds of systems.
785
786 Usage: $0 [OPTION]... [VAR=VALUE]...
787
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
790
791 Defaults for the options are specified in brackets.
792
793 Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803
804 _ACEOF
805
806 cat <<_ACEOF
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
812
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
817
818 For better control, use the options below.
819
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833 _ACEOF
834
835 cat <<\_ACEOF
836
837 System types:
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
840 --target=TARGET configure for building compilers for TARGET [HOST]
841 _ACEOF
842 fi
843
844 if test -n "$ac_init_help"; then
845
846 cat <<\_ACEOF
847
848 Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --enable-gtk enable gdbtk graphical user interface (GUI)
852 --enable-shared build shared libraries deault=yes
853
854 Optional Packages:
855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
857 --with-stabs arrange to use stabs instead of host debug format
858
859 Some influential environment variables:
860 CC C compiler command
861 CFLAGS C compiler flags
862 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
863 nonstandard directory <lib dir>
864 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
865 headers in a nonstandard directory <include dir>
866 CPP C preprocessor
867
868 Use these variables to override the choices made by `configure' or to help
869 it to find libraries and programs with nonstandard names/locations.
870
871 _ACEOF
872 fi
873
874 if test "$ac_init_help" = "recursive"; then
875 # If there are subdirs, report their specific --help.
876 ac_popdir=`pwd`
877 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
878 test -d $ac_dir || continue
879 ac_builddir=.
880
881 if test "$ac_dir" != .; then
882 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
883 # A "../" for each directory in $ac_dir_suffix.
884 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
885 else
886 ac_dir_suffix= ac_top_builddir=
887 fi
888
889 case $srcdir in
890 .) # No --srcdir option. We are building in place.
891 ac_srcdir=.
892 if test -z "$ac_top_builddir"; then
893 ac_top_srcdir=.
894 else
895 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
896 fi ;;
897 [\\/]* | ?:[\\/]* ) # Absolute path.
898 ac_srcdir=$srcdir$ac_dir_suffix;
899 ac_top_srcdir=$srcdir ;;
900 *) # Relative path.
901 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
902 ac_top_srcdir=$ac_top_builddir$srcdir ;;
903 esac
904
905 # Do not use `cd foo && pwd` to compute absolute paths, because
906 # the directories may not exist.
907 case `pwd` in
908 .) ac_abs_builddir="$ac_dir";;
909 *)
910 case "$ac_dir" in
911 .) ac_abs_builddir=`pwd`;;
912 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
913 *) ac_abs_builddir=`pwd`/"$ac_dir";;
914 esac;;
915 esac
916 case $ac_abs_builddir in
917 .) ac_abs_top_builddir=${ac_top_builddir}.;;
918 *)
919 case ${ac_top_builddir}. in
920 .) ac_abs_top_builddir=$ac_abs_builddir;;
921 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
922 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
923 esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_srcdir=$ac_srcdir;;
927 *)
928 case $ac_srcdir in
929 .) ac_abs_srcdir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
931 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
932 esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_top_srcdir=$ac_top_srcdir;;
936 *)
937 case $ac_top_srcdir in
938 .) ac_abs_top_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
940 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
941 esac;;
942 esac
943
944 cd $ac_dir
945 # Check for guested configure; otherwise get Cygnus style configure.
946 if test -f $ac_srcdir/configure.gnu; then
947 echo
948 $SHELL $ac_srcdir/configure.gnu --help=recursive
949 elif test -f $ac_srcdir/configure; then
950 echo
951 $SHELL $ac_srcdir/configure --help=recursive
952 elif test -f $ac_srcdir/configure.ac ||
953 test -f $ac_srcdir/configure.in; then
954 echo
955 $ac_configure --help
956 else
957 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
958 fi
959 cd $ac_popdir
960 done
961 fi
962
963 test -n "$ac_init_help" && exit 0
964 if $ac_init_version; then
965 cat <<\_ACEOF
966
967 Copyright (C) 2003 Free Software Foundation, Inc.
968 This configure script is free software; the Free Software Foundation
969 gives unlimited permission to copy, distribute and modify it.
970 _ACEOF
971 exit 0
972 fi
973 exec 5>config.log
974 cat >&5 <<_ACEOF
975 This file contains any messages produced by compilers while
976 running configure, to aid debugging if configure makes a mistake.
977
978 It was created by $as_me, which was
979 generated by GNU Autoconf 2.59. Invocation command line was
980
981 $ $0 $@
982
983 _ACEOF
984 {
985 cat <<_ASUNAME
986 ## --------- ##
987 ## Platform. ##
988 ## --------- ##
989
990 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
991 uname -m = `(uname -m) 2>/dev/null || echo unknown`
992 uname -r = `(uname -r) 2>/dev/null || echo unknown`
993 uname -s = `(uname -s) 2>/dev/null || echo unknown`
994 uname -v = `(uname -v) 2>/dev/null || echo unknown`
995
996 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
997 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
998
999 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1000 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1001 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1002 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1003 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1004 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1005 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1006
1007 _ASUNAME
1008
1009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1010 for as_dir in $PATH
1011 do
1012 IFS=$as_save_IFS
1013 test -z "$as_dir" && as_dir=.
1014 echo "PATH: $as_dir"
1015 done
1016
1017 } >&5
1018
1019 cat >&5 <<_ACEOF
1020
1021
1022 ## ----------- ##
1023 ## Core tests. ##
1024 ## ----------- ##
1025
1026 _ACEOF
1027
1028
1029 # Keep a trace of the command line.
1030 # Strip out --no-create and --no-recursion so they do not pile up.
1031 # Strip out --silent because we don't want to record it for future runs.
1032 # Also quote any args containing shell meta-characters.
1033 # Make two passes to allow for proper duplicate-argument suppression.
1034 ac_configure_args=
1035 ac_configure_args0=
1036 ac_configure_args1=
1037 ac_sep=
1038 ac_must_keep_next=false
1039 for ac_pass in 1 2
1040 do
1041 for ac_arg
1042 do
1043 case $ac_arg in
1044 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046 | -silent | --silent | --silen | --sile | --sil)
1047 continue ;;
1048 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1049 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1050 esac
1051 case $ac_pass in
1052 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1053 2)
1054 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1055 if test $ac_must_keep_next = true; then
1056 ac_must_keep_next=false # Got value, back to normal.
1057 else
1058 case $ac_arg in
1059 *=* | --config-cache | -C | -disable-* | --disable-* \
1060 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1061 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1062 | -with-* | --with-* | -without-* | --without-* | --x)
1063 case "$ac_configure_args0 " in
1064 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1065 esac
1066 ;;
1067 -* ) ac_must_keep_next=true ;;
1068 esac
1069 fi
1070 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1071 # Get rid of the leading space.
1072 ac_sep=" "
1073 ;;
1074 esac
1075 done
1076 done
1077 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1078 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1079
1080 # When interrupted or exit'd, cleanup temporary files, and complete
1081 # config.log. We remove comments because anyway the quotes in there
1082 # would cause problems or look ugly.
1083 # WARNING: Be sure not to use single quotes in there, as some shells,
1084 # such as our DU 5.0 friend, will then `close' the trap.
1085 trap 'exit_status=$?
1086 # Save into config.log some information that might help in debugging.
1087 {
1088 echo
1089
1090 cat <<\_ASBOX
1091 ## ---------------- ##
1092 ## Cache variables. ##
1093 ## ---------------- ##
1094 _ASBOX
1095 echo
1096 # The following way of writing the cache mishandles newlines in values,
1097 {
1098 (set) 2>&1 |
1099 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1100 *ac_space=\ *)
1101 sed -n \
1102 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1104 ;;
1105 *)
1106 sed -n \
1107 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1108 ;;
1109 esac;
1110 }
1111 echo
1112
1113 cat <<\_ASBOX
1114 ## ----------------- ##
1115 ## Output variables. ##
1116 ## ----------------- ##
1117 _ASBOX
1118 echo
1119 for ac_var in $ac_subst_vars
1120 do
1121 eval ac_val=$`echo $ac_var`
1122 echo "$ac_var='"'"'$ac_val'"'"'"
1123 done | sort
1124 echo
1125
1126 if test -n "$ac_subst_files"; then
1127 cat <<\_ASBOX
1128 ## ------------- ##
1129 ## Output files. ##
1130 ## ------------- ##
1131 _ASBOX
1132 echo
1133 for ac_var in $ac_subst_files
1134 do
1135 eval ac_val=$`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1137 done | sort
1138 echo
1139 fi
1140
1141 if test -s confdefs.h; then
1142 cat <<\_ASBOX
1143 ## ----------- ##
1144 ## confdefs.h. ##
1145 ## ----------- ##
1146 _ASBOX
1147 echo
1148 sed "/^$/d" confdefs.h | sort
1149 echo
1150 fi
1151 test "$ac_signal" != 0 &&
1152 echo "$as_me: caught signal $ac_signal"
1153 echo "$as_me: exit $exit_status"
1154 } >&5
1155 rm -f core *.core &&
1156 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1157 exit $exit_status
1158 ' 0
1159 for ac_signal in 1 2 13 15; do
1160 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1161 done
1162 ac_signal=0
1163
1164 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1165 rm -rf conftest* confdefs.h
1166 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1167 echo >confdefs.h
1168
1169 # Predefined preprocessor variables.
1170
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_NAME "$PACKAGE_NAME"
1173 _ACEOF
1174
1175
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1178 _ACEOF
1179
1180
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1183 _ACEOF
1184
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_STRING "$PACKAGE_STRING"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1193 _ACEOF
1194
1195
1196 # Let the site file select an alternate cache file if it wants to.
1197 # Prefer explicitly selected file to automatically selected ones.
1198 if test -z "$CONFIG_SITE"; then
1199 if test "x$prefix" != xNONE; then
1200 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1201 else
1202 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1203 fi
1204 fi
1205 for ac_site_file in $CONFIG_SITE; do
1206 if test -r "$ac_site_file"; then
1207 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1208 echo "$as_me: loading site script $ac_site_file" >&6;}
1209 sed 's/^/| /' "$ac_site_file" >&5
1210 . "$ac_site_file"
1211 fi
1212 done
1213
1214 if test -r "$cache_file"; then
1215 # Some versions of bash will fail to source /dev/null (special
1216 # files actually), so we avoid doing that.
1217 if test -f "$cache_file"; then
1218 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1219 echo "$as_me: loading cache $cache_file" >&6;}
1220 case $cache_file in
1221 [\\/]* | ?:[\\/]* ) . $cache_file;;
1222 *) . ./$cache_file;;
1223 esac
1224 fi
1225 else
1226 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1227 echo "$as_me: creating cache $cache_file" >&6;}
1228 >$cache_file
1229 fi
1230
1231 # Check that the precious variables saved in the cache have kept the same
1232 # value.
1233 ac_cache_corrupted=false
1234 for ac_var in `(set) 2>&1 |
1235 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1236 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1237 eval ac_new_set=\$ac_env_${ac_var}_set
1238 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1239 eval ac_new_val="\$ac_env_${ac_var}_value"
1240 case $ac_old_set,$ac_new_set in
1241 set,)
1242 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1243 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1244 ac_cache_corrupted=: ;;
1245 ,set)
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1249 ,);;
1250 *)
1251 if test "x$ac_old_val" != "x$ac_new_val"; then
1252 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1253 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1254 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1255 echo "$as_me: former value: $ac_old_val" >&2;}
1256 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1257 echo "$as_me: current value: $ac_new_val" >&2;}
1258 ac_cache_corrupted=:
1259 fi;;
1260 esac
1261 # Pass precious variables to config.status.
1262 if test "$ac_new_set" = set; then
1263 case $ac_new_val in
1264 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1266 *) ac_arg=$ac_var=$ac_new_val ;;
1267 esac
1268 case " $ac_configure_args " in
1269 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1270 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1271 esac
1272 fi
1273 done
1274 if $ac_cache_corrupted; then
1275 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1276 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1277 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1278 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1279 { (exit 1); exit 1; }; }
1280 fi
1281
1282 ac_ext=c
1283 ac_cpp='$CPP $CPPFLAGS'
1284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307 ac_aux_dir=
1308 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1309 if test -f $ac_dir/install-sh; then
1310 ac_aux_dir=$ac_dir
1311 ac_install_sh="$ac_aux_dir/install-sh -c"
1312 break
1313 elif test -f $ac_dir/install.sh; then
1314 ac_aux_dir=$ac_dir
1315 ac_install_sh="$ac_aux_dir/install.sh -c"
1316 break
1317 elif test -f $ac_dir/shtool; then
1318 ac_aux_dir=$ac_dir
1319 ac_install_sh="$ac_aux_dir/shtool install -c"
1320 break
1321 fi
1322 done
1323 if test -z "$ac_aux_dir"; then
1324 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1325 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1326 { (exit 1); exit 1; }; }
1327 fi
1328 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1329 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1330 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1331
1332 # Make sure we can run config.sub.
1333 $ac_config_sub sun4 >/dev/null 2>&1 ||
1334 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1335 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1336 { (exit 1); exit 1; }; }
1337
1338 echo "$as_me:$LINENO: checking build system type" >&5
1339 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1340 if test "${ac_cv_build+set}" = set; then
1341 echo $ECHO_N "(cached) $ECHO_C" >&6
1342 else
1343 ac_cv_build_alias=$build_alias
1344 test -z "$ac_cv_build_alias" &&
1345 ac_cv_build_alias=`$ac_config_guess`
1346 test -z "$ac_cv_build_alias" &&
1347 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1348 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1349 { (exit 1); exit 1; }; }
1350 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1351 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1352 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1353 { (exit 1); exit 1; }; }
1354
1355 fi
1356 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1357 echo "${ECHO_T}$ac_cv_build" >&6
1358 build=$ac_cv_build
1359 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1360 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1361 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1362
1363
1364 echo "$as_me:$LINENO: checking host system type" >&5
1365 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1366 if test "${ac_cv_host+set}" = set; then
1367 echo $ECHO_N "(cached) $ECHO_C" >&6
1368 else
1369 ac_cv_host_alias=$host_alias
1370 test -z "$ac_cv_host_alias" &&
1371 ac_cv_host_alias=$ac_cv_build_alias
1372 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1374 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1375 { (exit 1); exit 1; }; }
1376
1377 fi
1378 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1379 echo "${ECHO_T}$ac_cv_host" >&6
1380 host=$ac_cv_host
1381 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1382 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1383 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384
1385
1386 echo "$as_me:$LINENO: checking target system type" >&5
1387 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1388 if test "${ac_cv_target+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 else
1391 ac_cv_target_alias=$target_alias
1392 test "x$ac_cv_target_alias" = "x" &&
1393 ac_cv_target_alias=$ac_cv_host_alias
1394 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
1398
1399 fi
1400 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1401 echo "${ECHO_T}$ac_cv_target" >&6
1402 target=$ac_cv_target
1403 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406
1407
1408 # The aliases save the names the user supplied, while $host etc.
1409 # will get canonicalized.
1410 test -n "$target_alias" &&
1411 test "$program_prefix$program_suffix$program_transform_name" = \
1412 NONENONEs,x,x, &&
1413 program_prefix=${target_alias}-
1414
1415 # Add HP-specific tests when appropriate.
1416 case $target in
1417 hppa*-*-hpux*)
1418
1419
1420 subdirs="$subdirs gdb.hp"
1421 ;;
1422 esac
1423
1424 # With stabs.
1425
1426 # Check whether --with-stabs or --without-stabs was given.
1427 if test "${with_stabs+set}" = set; then
1428 withval="$with_stabs"
1429
1430 else
1431 # We enable stabs tests by default on selected targets.
1432 case $target in
1433 powerpc-*-aix* \
1434 | rs6000-*-aix* \
1435 | *-*-*bsd* \
1436 | *-*-go32* \
1437 | *-*-linux* \
1438 | *-*-lynxos* \
1439 | *-sun-* \
1440 | hppa*-*-* \
1441 | *-*-elf* \
1442 )
1443 with_stabs=yes ;;
1444 *)
1445 with_stabs=no ;;
1446 esac
1447 fi;
1448
1449 # Add stabs tests when appropriate.
1450 if test $with_stabs = yes; then
1451
1452
1453 subdirs="$subdirs gdb.stabs"
1454
1455 fi
1456
1457 # Enable gdbtk.
1458 # Check whether --enable-gdbtk or --disable-gdbtk was given.
1459 if test "${enable_gdbtk+set}" = set; then
1460 enableval="$enable_gdbtk"
1461
1462 else
1463 if test -d $srcdir/gdb.gdbtk; then
1464 enable_gdbtk=yes
1465 else
1466 enable_gdbtk=no
1467 fi
1468 fi;
1469 # We unconditionally disable gdbtk tests on selected platforms.
1470 case $host_os in
1471 go32* | windows*)
1472 enable_gdbtk=no ;;
1473 esac
1474
1475 # Add gdbtk tests when appropriate.
1476 if test $enable_gdbtk = yes; then
1477
1478
1479 subdirs="$subdirs gdb.gdbtk"
1480
1481 fi
1482
1483 # Enable shared libraries.
1484 # Check whether --enable-shared or --disable-shared was given.
1485 if test "${enable_shared+set}" = set; then
1486 enableval="$enable_shared"
1487
1488 else
1489 enable_shared=yes
1490 fi;
1491
1492 # If we have shared libraries, try to set RPATH_ENVVAR reasonably,
1493 # such that we can find the shared libraries in the build tree.
1494 if test $enable_shared = no; then
1495 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
1496 # platform.
1497 RPATH_ENVVAR=RPATH_ENVVAR
1498 else
1499 # The variable `LD_LIBRARY_PATH' is used on most platforms.
1500 RPATH_ENVVAR=LD_LIBRARY_PATH
1501 # The following exceptions are taken from Libtool 1.4.3.
1502 case $host_os in
1503 aix*)
1504 if test $host_cpu != ia64; then
1505 RPATH_ENVVAR=LIBPATH
1506 fi ;;
1507 darwin* | rhapsody*)
1508 RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
1509 hpux*)
1510 RPATH_ENVVAR=SHLIB_PATH ;;
1511 esac
1512 fi
1513
1514
1515 ac_ext=c
1516 ac_cpp='$CPP $CPPFLAGS'
1517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1520 if test -n "$ac_tool_prefix"; then
1521 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1522 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528 if test -n "$CC"; then
1529 ac_cv_prog_CC="$CC" # Let the user override the test.
1530 else
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1533 do
1534 IFS=$as_save_IFS
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 break 2
1541 fi
1542 done
1543 done
1544
1545 fi
1546 fi
1547 CC=$ac_cv_prog_CC
1548 if test -n "$CC"; then
1549 echo "$as_me:$LINENO: result: $CC" >&5
1550 echo "${ECHO_T}$CC" >&6
1551 else
1552 echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1554 fi
1555
1556 fi
1557 if test -z "$ac_cv_prog_CC"; then
1558 ac_ct_CC=$CC
1559 # Extract the first word of "gcc", so it can be a program name with args.
1560 set dummy gcc; ac_word=$2
1561 echo "$as_me:$LINENO: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 else
1566 if test -n "$ac_ct_CC"; then
1567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1568 else
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 for as_dir in $PATH
1571 do
1572 IFS=$as_save_IFS
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 ac_cv_prog_ac_ct_CC="gcc"
1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 break 2
1579 fi
1580 done
1581 done
1582
1583 fi
1584 fi
1585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1586 if test -n "$ac_ct_CC"; then
1587 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1588 echo "${ECHO_T}$ac_ct_CC" >&6
1589 else
1590 echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1592 fi
1593
1594 CC=$ac_ct_CC
1595 else
1596 CC="$ac_cv_prog_CC"
1597 fi
1598
1599 if test -z "$CC"; then
1600 if test -n "$ac_tool_prefix"; then
1601 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1602 set dummy ${ac_tool_prefix}cc; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1610 else
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1613 do
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 ac_cv_prog_CC="${ac_tool_prefix}cc"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1621 fi
1622 done
1623 done
1624
1625 fi
1626 fi
1627 CC=$ac_cv_prog_CC
1628 if test -n "$CC"; then
1629 echo "$as_me:$LINENO: result: $CC" >&5
1630 echo "${ECHO_T}$CC" >&6
1631 else
1632 echo "$as_me:$LINENO: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1634 fi
1635
1636 fi
1637 if test -z "$ac_cv_prog_CC"; then
1638 ac_ct_CC=$CC
1639 # Extract the first word of "cc", so it can be a program name with args.
1640 set dummy cc; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646 if test -n "$ac_ct_CC"; then
1647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1648 else
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1651 do
1652 IFS=$as_save_IFS
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 ac_cv_prog_ac_ct_CC="cc"
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658 break 2
1659 fi
1660 done
1661 done
1662
1663 fi
1664 fi
1665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1666 if test -n "$ac_ct_CC"; then
1667 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1668 echo "${ECHO_T}$ac_ct_CC" >&6
1669 else
1670 echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1672 fi
1673
1674 CC=$ac_ct_CC
1675 else
1676 CC="$ac_cv_prog_CC"
1677 fi
1678
1679 fi
1680 if test -z "$CC"; then
1681 # Extract the first word of "cc", so it can be a program name with args.
1682 set dummy cc; ac_word=$2
1683 echo "$as_me:$LINENO: checking for $ac_word" >&5
1684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685 if test "${ac_cv_prog_CC+set}" = set; then
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687 else
1688 if test -n "$CC"; then
1689 ac_cv_prog_CC="$CC" # Let the user override the test.
1690 else
1691 ac_prog_rejected=no
1692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 for as_dir in $PATH
1694 do
1695 IFS=$as_save_IFS
1696 test -z "$as_dir" && as_dir=.
1697 for ac_exec_ext in '' $ac_executable_extensions; do
1698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1700 ac_prog_rejected=yes
1701 continue
1702 fi
1703 ac_cv_prog_CC="cc"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 break 2
1706 fi
1707 done
1708 done
1709
1710 if test $ac_prog_rejected = yes; then
1711 # We found a bogon in the path, so make sure we never use it.
1712 set dummy $ac_cv_prog_CC
1713 shift
1714 if test $# != 0; then
1715 # We chose a different compiler from the bogus one.
1716 # However, it has the same basename, so the bogon will be chosen
1717 # first if we set CC to just the basename; use the full file name.
1718 shift
1719 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1720 fi
1721 fi
1722 fi
1723 fi
1724 CC=$ac_cv_prog_CC
1725 if test -n "$CC"; then
1726 echo "$as_me:$LINENO: result: $CC" >&5
1727 echo "${ECHO_T}$CC" >&6
1728 else
1729 echo "$as_me:$LINENO: result: no" >&5
1730 echo "${ECHO_T}no" >&6
1731 fi
1732
1733 fi
1734 if test -z "$CC"; then
1735 if test -n "$ac_tool_prefix"; then
1736 for ac_prog in cl
1737 do
1738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1740 echo "$as_me:$LINENO: checking for $ac_word" >&5
1741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742 if test "${ac_cv_prog_CC+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 else
1745 if test -n "$CC"; then
1746 ac_cv_prog_CC="$CC" # Let the user override the test.
1747 else
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 for ac_exec_ext in '' $ac_executable_extensions; do
1754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 break 2
1758 fi
1759 done
1760 done
1761
1762 fi
1763 fi
1764 CC=$ac_cv_prog_CC
1765 if test -n "$CC"; then
1766 echo "$as_me:$LINENO: result: $CC" >&5
1767 echo "${ECHO_T}$CC" >&6
1768 else
1769 echo "$as_me:$LINENO: result: no" >&5
1770 echo "${ECHO_T}no" >&6
1771 fi
1772
1773 test -n "$CC" && break
1774 done
1775 fi
1776 if test -z "$CC"; then
1777 ac_ct_CC=$CC
1778 for ac_prog in cl
1779 do
1780 # Extract the first word of "$ac_prog", so it can be a program name with args.
1781 set dummy $ac_prog; ac_word=$2
1782 echo "$as_me:$LINENO: checking for $ac_word" >&5
1783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1785 echo $ECHO_N "(cached) $ECHO_C" >&6
1786 else
1787 if test -n "$ac_ct_CC"; then
1788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1789 else
1790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791 for as_dir in $PATH
1792 do
1793 IFS=$as_save_IFS
1794 test -z "$as_dir" && as_dir=.
1795 for ac_exec_ext in '' $ac_executable_extensions; do
1796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1797 ac_cv_prog_ac_ct_CC="$ac_prog"
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 break 2
1800 fi
1801 done
1802 done
1803
1804 fi
1805 fi
1806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1807 if test -n "$ac_ct_CC"; then
1808 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1809 echo "${ECHO_T}$ac_ct_CC" >&6
1810 else
1811 echo "$as_me:$LINENO: result: no" >&5
1812 echo "${ECHO_T}no" >&6
1813 fi
1814
1815 test -n "$ac_ct_CC" && break
1816 done
1817
1818 CC=$ac_ct_CC
1819 fi
1820
1821 fi
1822
1823
1824 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1825 See \`config.log' for more details." >&5
1826 echo "$as_me: error: no acceptable C compiler found in \$PATH
1827 See \`config.log' for more details." >&2;}
1828 { (exit 1); exit 1; }; }
1829
1830 # Provide some information about the compiler.
1831 echo "$as_me:$LINENO:" \
1832 "checking for C compiler version" >&5
1833 ac_compiler=`set X $ac_compile; echo $2`
1834 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1835 (eval $ac_compiler --version </dev/null >&5) 2>&5
1836 ac_status=$?
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); }
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1840 (eval $ac_compiler -v </dev/null >&5) 2>&5
1841 ac_status=$?
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }
1844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1845 (eval $ac_compiler -V </dev/null >&5) 2>&5
1846 ac_status=$?
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }
1849
1850 cat >conftest.$ac_ext <<_ACEOF
1851 /* confdefs.h. */
1852 _ACEOF
1853 cat confdefs.h >>conftest.$ac_ext
1854 cat >>conftest.$ac_ext <<_ACEOF
1855 /* end confdefs.h. */
1856
1857 int
1858 main ()
1859 {
1860
1861 ;
1862 return 0;
1863 }
1864 _ACEOF
1865 ac_clean_files_save=$ac_clean_files
1866 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1867 # Try to create an executable without -o first, disregard a.out.
1868 # It will help us diagnose broken compilers, and finding out an intuition
1869 # of exeext.
1870 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1871 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1872 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1873 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1874 (eval $ac_link_default) 2>&5
1875 ac_status=$?
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; then
1878 # Find the output, starting from the most likely. This scheme is
1879 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1880 # resort.
1881
1882 # Be careful to initialize this variable, since it used to be cached.
1883 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1884 ac_cv_exeext=
1885 # b.out is created by i960 compilers.
1886 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1887 do
1888 test -f "$ac_file" || continue
1889 case $ac_file in
1890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1891 ;;
1892 conftest.$ac_ext )
1893 # This is the source file.
1894 ;;
1895 [ab].out )
1896 # We found the default executable, but exeext='' is most
1897 # certainly right.
1898 break;;
1899 *.* )
1900 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1901 # FIXME: I believe we export ac_cv_exeext for Libtool,
1902 # but it would be cool to find out if it's true. Does anybody
1903 # maintain Libtool? --akim.
1904 export ac_cv_exeext
1905 break;;
1906 * )
1907 break;;
1908 esac
1909 done
1910 else
1911 echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1915 See \`config.log' for more details." >&5
1916 echo "$as_me: error: C compiler cannot create executables
1917 See \`config.log' for more details." >&2;}
1918 { (exit 77); exit 77; }; }
1919 fi
1920
1921 ac_exeext=$ac_cv_exeext
1922 echo "$as_me:$LINENO: result: $ac_file" >&5
1923 echo "${ECHO_T}$ac_file" >&6
1924
1925 # Check the compiler produces executables we can run. If not, either
1926 # the compiler is broken, or we cross compile.
1927 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1928 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1929 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1930 # If not cross compiling, check that we can run a simple program.
1931 if test "$cross_compiling" != yes; then
1932 if { ac_try='./$ac_file'
1933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934 (eval $ac_try) 2>&5
1935 ac_status=$?
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }; }; then
1938 cross_compiling=no
1939 else
1940 if test "$cross_compiling" = maybe; then
1941 cross_compiling=yes
1942 else
1943 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1944 If you meant to cross compile, use \`--host'.
1945 See \`config.log' for more details." >&5
1946 echo "$as_me: error: cannot run C compiled programs.
1947 If you meant to cross compile, use \`--host'.
1948 See \`config.log' for more details." >&2;}
1949 { (exit 1); exit 1; }; }
1950 fi
1951 fi
1952 fi
1953 echo "$as_me:$LINENO: result: yes" >&5
1954 echo "${ECHO_T}yes" >&6
1955
1956 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1957 ac_clean_files=$ac_clean_files_save
1958 # Check the compiler produces executables we can run. If not, either
1959 # the compiler is broken, or we cross compile.
1960 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1961 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1962 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1963 echo "${ECHO_T}$cross_compiling" >&6
1964
1965 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1966 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1968 (eval $ac_link) 2>&5
1969 ac_status=$?
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; then
1972 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1973 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1974 # work properly (i.e., refer to `conftest.exe'), while it won't with
1975 # `rm'.
1976 for ac_file in conftest.exe conftest conftest.*; do
1977 test -f "$ac_file" || continue
1978 case $ac_file in
1979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1980 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1981 export ac_cv_exeext
1982 break;;
1983 * ) break;;
1984 esac
1985 done
1986 else
1987 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1988 See \`config.log' for more details." >&5
1989 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1990 See \`config.log' for more details." >&2;}
1991 { (exit 1); exit 1; }; }
1992 fi
1993
1994 rm -f conftest$ac_cv_exeext
1995 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1996 echo "${ECHO_T}$ac_cv_exeext" >&6
1997
1998 rm -f conftest.$ac_ext
1999 EXEEXT=$ac_cv_exeext
2000 ac_exeext=$EXEEXT
2001 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2002 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2003 if test "${ac_cv_objext+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006 cat >conftest.$ac_ext <<_ACEOF
2007 /* confdefs.h. */
2008 _ACEOF
2009 cat confdefs.h >>conftest.$ac_ext
2010 cat >>conftest.$ac_ext <<_ACEOF
2011 /* end confdefs.h. */
2012
2013 int
2014 main ()
2015 {
2016
2017 ;
2018 return 0;
2019 }
2020 _ACEOF
2021 rm -f conftest.o conftest.obj
2022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2023 (eval $ac_compile) 2>&5
2024 ac_status=$?
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }; then
2027 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2028 case $ac_file in
2029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2030 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2031 break;;
2032 esac
2033 done
2034 else
2035 echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2037
2038 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2039 See \`config.log' for more details." >&5
2040 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2041 See \`config.log' for more details." >&2;}
2042 { (exit 1); exit 1; }; }
2043 fi
2044
2045 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2046 fi
2047 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2048 echo "${ECHO_T}$ac_cv_objext" >&6
2049 OBJEXT=$ac_cv_objext
2050 ac_objext=$OBJEXT
2051 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2052 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2053 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056 cat >conftest.$ac_ext <<_ACEOF
2057 /* confdefs.h. */
2058 _ACEOF
2059 cat confdefs.h >>conftest.$ac_ext
2060 cat >>conftest.$ac_ext <<_ACEOF
2061 /* end confdefs.h. */
2062
2063 int
2064 main ()
2065 {
2066 #ifndef __GNUC__
2067 choke me
2068 #endif
2069
2070 ;
2071 return 0;
2072 }
2073 _ACEOF
2074 rm -f conftest.$ac_objext
2075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2076 (eval $ac_compile) 2>conftest.er1
2077 ac_status=$?
2078 grep -v '^ *+' conftest.er1 >conftest.err
2079 rm -f conftest.er1
2080 cat conftest.err >&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); } &&
2083 { ac_try='test -z "$ac_c_werror_flag"
2084 || test ! -s conftest.err'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086 (eval $ac_try) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; } &&
2090 { ac_try='test -s conftest.$ac_objext'
2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 (eval $ac_try) 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; }; then
2096 ac_compiler_gnu=yes
2097 else
2098 echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2100
2101 ac_compiler_gnu=no
2102 fi
2103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2104 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2105
2106 fi
2107 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2108 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2109 GCC=`test $ac_compiler_gnu = yes && echo yes`
2110 ac_test_CFLAGS=${CFLAGS+set}
2111 ac_save_CFLAGS=$CFLAGS
2112 CFLAGS="-g"
2113 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2114 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2115 if test "${ac_cv_prog_cc_g+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118 cat >conftest.$ac_ext <<_ACEOF
2119 /* confdefs.h. */
2120 _ACEOF
2121 cat confdefs.h >>conftest.$ac_ext
2122 cat >>conftest.$ac_ext <<_ACEOF
2123 /* end confdefs.h. */
2124
2125 int
2126 main ()
2127 {
2128
2129 ;
2130 return 0;
2131 }
2132 _ACEOF
2133 rm -f conftest.$ac_objext
2134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135 (eval $ac_compile) 2>conftest.er1
2136 ac_status=$?
2137 grep -v '^ *+' conftest.er1 >conftest.err
2138 rm -f conftest.er1
2139 cat conftest.err >&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); } &&
2142 { ac_try='test -z "$ac_c_werror_flag"
2143 || test ! -s conftest.err'
2144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145 (eval $ac_try) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; } &&
2149 { ac_try='test -s conftest.$ac_objext'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2155 ac_cv_prog_cc_g=yes
2156 else
2157 echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2159
2160 ac_cv_prog_cc_g=no
2161 fi
2162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2163 fi
2164 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2165 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2166 if test "$ac_test_CFLAGS" = set; then
2167 CFLAGS=$ac_save_CFLAGS
2168 elif test $ac_cv_prog_cc_g = yes; then
2169 if test "$GCC" = yes; then
2170 CFLAGS="-g -O2"
2171 else
2172 CFLAGS="-g"
2173 fi
2174 else
2175 if test "$GCC" = yes; then
2176 CFLAGS="-O2"
2177 else
2178 CFLAGS=
2179 fi
2180 fi
2181 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2182 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2183 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186 ac_cv_prog_cc_stdc=no
2187 ac_save_CC=$CC
2188 cat >conftest.$ac_ext <<_ACEOF
2189 /* confdefs.h. */
2190 _ACEOF
2191 cat confdefs.h >>conftest.$ac_ext
2192 cat >>conftest.$ac_ext <<_ACEOF
2193 /* end confdefs.h. */
2194 #include <stdarg.h>
2195 #include <stdio.h>
2196 #include <sys/types.h>
2197 #include <sys/stat.h>
2198 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2199 struct buf { int x; };
2200 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2201 static char *e (p, i)
2202 char **p;
2203 int i;
2204 {
2205 return p[i];
2206 }
2207 static char *f (char * (*g) (char **, int), char **p, ...)
2208 {
2209 char *s;
2210 va_list v;
2211 va_start (v,p);
2212 s = g (p, va_arg (v,int));
2213 va_end (v);
2214 return s;
2215 }
2216
2217 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2218 function prototypes and stuff, but not '\xHH' hex character constants.
2219 These don't provoke an error unfortunately, instead are silently treated
2220 as 'x'. The following induces an error, until -std1 is added to get
2221 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2222 array size at least. It's necessary to write '\x00'==0 to get something
2223 that's true only with -std1. */
2224 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2225
2226 int test (int i, double x);
2227 struct s1 {int (*f) (int a);};
2228 struct s2 {int (*f) (double a);};
2229 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2230 int argc;
2231 char **argv;
2232 int
2233 main ()
2234 {
2235 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2236 ;
2237 return 0;
2238 }
2239 _ACEOF
2240 # Don't try gcc -ansi; that turns off useful extensions and
2241 # breaks some systems' header files.
2242 # AIX -qlanglvl=ansi
2243 # Ultrix and OSF/1 -std1
2244 # HP-UX 10.20 and later -Ae
2245 # HP-UX older versions -Aa -D_HPUX_SOURCE
2246 # SVR4 -Xc -D__EXTENSIONS__
2247 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2248 do
2249 CC="$ac_save_CC $ac_arg"
2250 rm -f conftest.$ac_objext
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>conftest.er1
2253 ac_status=$?
2254 grep -v '^ *+' conftest.er1 >conftest.err
2255 rm -f conftest.er1
2256 cat conftest.err >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try='test -z "$ac_c_werror_flag"
2260 || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 ac_cv_prog_cc_stdc=$ac_arg
2273 break
2274 else
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 fi
2279 rm -f conftest.err conftest.$ac_objext
2280 done
2281 rm -f conftest.$ac_ext conftest.$ac_objext
2282 CC=$ac_save_CC
2283
2284 fi
2285
2286 case "x$ac_cv_prog_cc_stdc" in
2287 x|xno)
2288 echo "$as_me:$LINENO: result: none needed" >&5
2289 echo "${ECHO_T}none needed" >&6 ;;
2290 *)
2291 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2292 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2293 CC="$CC $ac_cv_prog_cc_stdc" ;;
2294 esac
2295
2296 # Some people use a C++ compiler to compile C. Since we use `exit',
2297 # in C++ we need to declare it. In case someone uses the same compiler
2298 # for both compiling C and C++ we need to have the C++ compiler decide
2299 # the declaration of exit, since it's the most demanding environment.
2300 cat >conftest.$ac_ext <<_ACEOF
2301 #ifndef __cplusplus
2302 choke me
2303 #endif
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2308 ac_status=$?
2309 grep -v '^ *+' conftest.er1 >conftest.err
2310 rm -f conftest.er1
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag"
2315 || test ! -s conftest.err'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 (eval $ac_try) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; } &&
2321 { ac_try='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2327 for ac_declaration in \
2328 '' \
2329 'extern "C" void std::exit (int) throw (); using std::exit;' \
2330 'extern "C" void std::exit (int); using std::exit;' \
2331 'extern "C" void exit (int) throw ();' \
2332 'extern "C" void exit (int);' \
2333 'void exit (int);'
2334 do
2335 cat >conftest.$ac_ext <<_ACEOF
2336 /* confdefs.h. */
2337 _ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h. */
2341 $ac_declaration
2342 #include <stdlib.h>
2343 int
2344 main ()
2345 {
2346 exit (42);
2347 ;
2348 return 0;
2349 }
2350 _ACEOF
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353 (eval $ac_compile) 2>conftest.er1
2354 ac_status=$?
2355 grep -v '^ *+' conftest.er1 >conftest.err
2356 rm -f conftest.er1
2357 cat conftest.err >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); } &&
2360 { ac_try='test -z "$ac_c_werror_flag"
2361 || test ! -s conftest.err'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 (eval $ac_try) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; } &&
2367 { ac_try='test -s conftest.$ac_objext'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 (eval $ac_try) 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2373 :
2374 else
2375 echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2377
2378 continue
2379 fi
2380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2381 cat >conftest.$ac_ext <<_ACEOF
2382 /* confdefs.h. */
2383 _ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h. */
2387 $ac_declaration
2388 int
2389 main ()
2390 {
2391 exit (42);
2392 ;
2393 return 0;
2394 }
2395 _ACEOF
2396 rm -f conftest.$ac_objext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398 (eval $ac_compile) 2>conftest.er1
2399 ac_status=$?
2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 break
2419 else
2420 echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2422
2423 fi
2424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2425 done
2426 rm -f conftest*
2427 if test -n "$ac_declaration"; then
2428 echo '#ifdef __cplusplus' >>confdefs.h
2429 echo $ac_declaration >>confdefs.h
2430 echo '#endif' >>confdefs.h
2431 fi
2432
2433 else
2434 echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2436
2437 fi
2438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2439 ac_ext=c
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444
2445
2446 ac_ext=c
2447 ac_cpp='$CPP $CPPFLAGS'
2448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2451 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2452 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2453 # On Suns, sometimes $CPP names a directory.
2454 if test -n "$CPP" && test -d "$CPP"; then
2455 CPP=
2456 fi
2457 if test -z "$CPP"; then
2458 if test "${ac_cv_prog_CPP+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461 # Double quotes because CPP needs to be expanded
2462 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2463 do
2464 ac_preproc_ok=false
2465 for ac_c_preproc_warn_flag in '' yes
2466 do
2467 # Use a header file that comes with gcc, so configuring glibc
2468 # with a fresh cross-compiler works.
2469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2470 # <limits.h> exists even on freestanding compilers.
2471 # On the NeXT, cc -E runs the code through the compiler's parser,
2472 # not just through cpp. "Syntax error" is here to catch this case.
2473 cat >conftest.$ac_ext <<_ACEOF
2474 /* confdefs.h. */
2475 _ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2479 #ifdef __STDC__
2480 # include <limits.h>
2481 #else
2482 # include <assert.h>
2483 #endif
2484 Syntax error
2485 _ACEOF
2486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2488 ac_status=$?
2489 grep -v '^ *+' conftest.er1 >conftest.err
2490 rm -f conftest.er1
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } >/dev/null; then
2494 if test -s conftest.err; then
2495 ac_cpp_err=$ac_c_preproc_warn_flag
2496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2497 else
2498 ac_cpp_err=
2499 fi
2500 else
2501 ac_cpp_err=yes
2502 fi
2503 if test -z "$ac_cpp_err"; then
2504 :
2505 else
2506 echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2508
2509 # Broken: fails on valid input.
2510 continue
2511 fi
2512 rm -f conftest.err conftest.$ac_ext
2513
2514 # OK, works on sane cases. Now check whether non-existent headers
2515 # can be detected and how.
2516 cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h. */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2522 #include <ac_nonexistent.h>
2523 _ACEOF
2524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2526 ac_status=$?
2527 grep -v '^ *+' conftest.er1 >conftest.err
2528 rm -f conftest.er1
2529 cat conftest.err >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } >/dev/null; then
2532 if test -s conftest.err; then
2533 ac_cpp_err=$ac_c_preproc_warn_flag
2534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2535 else
2536 ac_cpp_err=
2537 fi
2538 else
2539 ac_cpp_err=yes
2540 fi
2541 if test -z "$ac_cpp_err"; then
2542 # Broken: success on invalid input.
2543 continue
2544 else
2545 echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2547
2548 # Passes both tests.
2549 ac_preproc_ok=:
2550 break
2551 fi
2552 rm -f conftest.err conftest.$ac_ext
2553
2554 done
2555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2556 rm -f conftest.err conftest.$ac_ext
2557 if $ac_preproc_ok; then
2558 break
2559 fi
2560
2561 done
2562 ac_cv_prog_CPP=$CPP
2563
2564 fi
2565 CPP=$ac_cv_prog_CPP
2566 else
2567 ac_cv_prog_CPP=$CPP
2568 fi
2569 echo "$as_me:$LINENO: result: $CPP" >&5
2570 echo "${ECHO_T}$CPP" >&6
2571 ac_preproc_ok=false
2572 for ac_c_preproc_warn_flag in '' yes
2573 do
2574 # Use a header file that comes with gcc, so configuring glibc
2575 # with a fresh cross-compiler works.
2576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2577 # <limits.h> exists even on freestanding compilers.
2578 # On the NeXT, cc -E runs the code through the compiler's parser,
2579 # not just through cpp. "Syntax error" is here to catch this case.
2580 cat >conftest.$ac_ext <<_ACEOF
2581 /* confdefs.h. */
2582 _ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2586 #ifdef __STDC__
2587 # include <limits.h>
2588 #else
2589 # include <assert.h>
2590 #endif
2591 Syntax error
2592 _ACEOF
2593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2595 ac_status=$?
2596 grep -v '^ *+' conftest.er1 >conftest.err
2597 rm -f conftest.er1
2598 cat conftest.err >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } >/dev/null; then
2601 if test -s conftest.err; then
2602 ac_cpp_err=$ac_c_preproc_warn_flag
2603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2604 else
2605 ac_cpp_err=
2606 fi
2607 else
2608 ac_cpp_err=yes
2609 fi
2610 if test -z "$ac_cpp_err"; then
2611 :
2612 else
2613 echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2615
2616 # Broken: fails on valid input.
2617 continue
2618 fi
2619 rm -f conftest.err conftest.$ac_ext
2620
2621 # OK, works on sane cases. Now check whether non-existent headers
2622 # can be detected and how.
2623 cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h. */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2629 #include <ac_nonexistent.h>
2630 _ACEOF
2631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2633 ac_status=$?
2634 grep -v '^ *+' conftest.er1 >conftest.err
2635 rm -f conftest.er1
2636 cat conftest.err >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); } >/dev/null; then
2639 if test -s conftest.err; then
2640 ac_cpp_err=$ac_c_preproc_warn_flag
2641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2642 else
2643 ac_cpp_err=
2644 fi
2645 else
2646 ac_cpp_err=yes
2647 fi
2648 if test -z "$ac_cpp_err"; then
2649 # Broken: success on invalid input.
2650 continue
2651 else
2652 echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2654
2655 # Passes both tests.
2656 ac_preproc_ok=:
2657 break
2658 fi
2659 rm -f conftest.err conftest.$ac_ext
2660
2661 done
2662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2663 rm -f conftest.err conftest.$ac_ext
2664 if $ac_preproc_ok; then
2665 :
2666 else
2667 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2670 See \`config.log' for more details." >&2;}
2671 { (exit 1); exit 1; }; }
2672 fi
2673
2674 ac_ext=c
2675 ac_cpp='$CPP $CPPFLAGS'
2676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679
2680
2681 echo "$as_me:$LINENO: checking for egrep" >&5
2682 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2683 if test "${ac_cv_prog_egrep+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2687 then ac_cv_prog_egrep='grep -E'
2688 else ac_cv_prog_egrep='egrep'
2689 fi
2690 fi
2691 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2692 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2693 EGREP=$ac_cv_prog_egrep
2694
2695
2696 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2697 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2698 if test "${ac_cv_header_stdc+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 else
2701 cat >conftest.$ac_ext <<_ACEOF
2702 /* confdefs.h. */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2707 #include <stdlib.h>
2708 #include <stdarg.h>
2709 #include <string.h>
2710 #include <float.h>
2711
2712 int
2713 main ()
2714 {
2715
2716 ;
2717 return 0;
2718 }
2719 _ACEOF
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2723 ac_status=$?
2724 grep -v '^ *+' conftest.er1 >conftest.err
2725 rm -f conftest.er1
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_c_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 (eval $ac_try) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 (eval $ac_try) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 ac_cv_header_stdc=yes
2743 else
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2746
2747 ac_cv_header_stdc=no
2748 fi
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750
2751 if test $ac_cv_header_stdc = yes; then
2752 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h. */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2759 #include <string.h>
2760
2761 _ACEOF
2762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2763 $EGREP "memchr" >/dev/null 2>&1; then
2764 :
2765 else
2766 ac_cv_header_stdc=no
2767 fi
2768 rm -f conftest*
2769
2770 fi
2771
2772 if test $ac_cv_header_stdc = yes; then
2773 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2774 cat >conftest.$ac_ext <<_ACEOF
2775 /* confdefs.h. */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h. */
2780 #include <stdlib.h>
2781
2782 _ACEOF
2783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2784 $EGREP "free" >/dev/null 2>&1; then
2785 :
2786 else
2787 ac_cv_header_stdc=no
2788 fi
2789 rm -f conftest*
2790
2791 fi
2792
2793 if test $ac_cv_header_stdc = yes; then
2794 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2795 if test "$cross_compiling" = yes; then
2796 :
2797 else
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h. */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2804 #include <ctype.h>
2805 #if ((' ' & 0x0FF) == 0x020)
2806 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2807 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2808 #else
2809 # define ISLOWER(c) \
2810 (('a' <= (c) && (c) <= 'i') \
2811 || ('j' <= (c) && (c) <= 'r') \
2812 || ('s' <= (c) && (c) <= 'z'))
2813 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2814 #endif
2815
2816 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2817 int
2818 main ()
2819 {
2820 int i;
2821 for (i = 0; i < 256; i++)
2822 if (XOR (islower (i), ISLOWER (i))
2823 || toupper (i) != TOUPPER (i))
2824 exit(2);
2825 exit (0);
2826 }
2827 _ACEOF
2828 rm -f conftest$ac_exeext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2830 (eval $ac_link) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2839 :
2840 else
2841 echo "$as_me: program exited with status $ac_status" >&5
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 ( exit $ac_status )
2846 ac_cv_header_stdc=no
2847 fi
2848 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2849 fi
2850 fi
2851 fi
2852 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2853 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2854 if test $ac_cv_header_stdc = yes; then
2855
2856 cat >>confdefs.h <<\_ACEOF
2857 #define STDC_HEADERS 1
2858 _ACEOF
2859
2860 fi
2861
2862 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2873 inttypes.h stdint.h unistd.h
2874 do
2875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2876 echo "$as_me:$LINENO: checking for $ac_header" >&5
2877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881 cat >conftest.$ac_ext <<_ACEOF
2882 /* confdefs.h. */
2883 _ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h. */
2887 $ac_includes_default
2888
2889 #include <$ac_header>
2890 _ACEOF
2891 rm -f conftest.$ac_objext
2892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2893 (eval $ac_compile) 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } &&
2900 { ac_try='test -z "$ac_c_werror_flag"
2901 || test ! -s conftest.err'
2902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903 (eval $ac_try) 2>&5
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }; } &&
2907 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2913 eval "$as_ac_Header=yes"
2914 else
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2917
2918 eval "$as_ac_Header=no"
2919 fi
2920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2921 fi
2922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2925 cat >>confdefs.h <<_ACEOF
2926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2927 _ACEOF
2928
2929 fi
2930
2931 done
2932
2933
2934
2935 for ac_header in pthread.h
2936 do
2937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2939 echo "$as_me:$LINENO: checking for $ac_header" >&5
2940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 fi
2944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2946 else
2947 # Is the header compilable?
2948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2950 cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h. */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2956 $ac_includes_default
2957 #include <$ac_header>
2958 _ACEOF
2959 rm -f conftest.$ac_objext
2960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2961 (eval $ac_compile) 2>conftest.er1
2962 ac_status=$?
2963 grep -v '^ *+' conftest.er1 >conftest.err
2964 rm -f conftest.er1
2965 cat conftest.err >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); } &&
2968 { ac_try='test -z "$ac_c_werror_flag"
2969 || test ! -s conftest.err'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 (eval $ac_try) 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; } &&
2975 { ac_try='test -s conftest.$ac_objext'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 ac_header_compiler=yes
2982 else
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2985
2986 ac_header_compiler=no
2987 fi
2988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2990 echo "${ECHO_T}$ac_header_compiler" >&6
2991
2992 # Is the header present?
2993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2995 cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h. */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3001 #include <$ac_header>
3002 _ACEOF
3003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3005 ac_status=$?
3006 grep -v '^ *+' conftest.er1 >conftest.err
3007 rm -f conftest.er1
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } >/dev/null; then
3011 if test -s conftest.err; then
3012 ac_cpp_err=$ac_c_preproc_warn_flag
3013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3014 else
3015 ac_cpp_err=
3016 fi
3017 else
3018 ac_cpp_err=yes
3019 fi
3020 if test -z "$ac_cpp_err"; then
3021 ac_header_preproc=yes
3022 else
3023 echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3025
3026 ac_header_preproc=no
3027 fi
3028 rm -f conftest.err conftest.$ac_ext
3029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3030 echo "${ECHO_T}$ac_header_preproc" >&6
3031
3032 # So? What about this header?
3033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3034 yes:no: )
3035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3039 ac_header_preproc=yes
3040 ;;
3041 no:yes:* )
3042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3054 (
3055 cat <<\_ASBOX
3056 ## ------------------------------------------ ##
3057 ## Report this to the AC_PACKAGE_NAME lists. ##
3058 ## ------------------------------------------ ##
3059 _ASBOX
3060 ) |
3061 sed "s/^/$as_me: WARNING: /" >&2
3062 ;;
3063 esac
3064 echo "$as_me:$LINENO: checking for $ac_header" >&5
3065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 else
3069 eval "$as_ac_Header=\$ac_header_preproc"
3070 fi
3071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3073
3074 fi
3075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3076 cat >>confdefs.h <<_ACEOF
3077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3078 _ACEOF
3079
3080 fi
3081
3082 done
3083
3084
3085
3086
3087 ac_config_files="$ac_config_files Makefile gdb.ada/Makefile gdb.ada/gnat_ada.gpr:gdb.ada/gnat_ada.gin gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile gdb.fortran/Makefile gdb.java/Makefile gdb.mi/Makefile gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile"
3088 cat >confcache <<\_ACEOF
3089 # This file is a shell script that caches the results of configure
3090 # tests run on this system so they can be shared between configure
3091 # scripts and configure runs, see configure's option --config-cache.
3092 # It is not useful on other systems. If it contains results you don't
3093 # want to keep, you may remove or edit it.
3094 #
3095 # config.status only pays attention to the cache file if you give it
3096 # the --recheck option to rerun configure.
3097 #
3098 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3099 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3100 # following values.
3101
3102 _ACEOF
3103
3104 # The following way of writing the cache mishandles newlines in values,
3105 # but we know of no workaround that is simple, portable, and efficient.
3106 # So, don't put newlines in cache variables' values.
3107 # Ultrix sh set writes to stderr and can't be redirected directly,
3108 # and sets the high bit in the cache file unless we assign to the vars.
3109 {
3110 (set) 2>&1 |
3111 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3112 *ac_space=\ *)
3113 # `set' does not quote correctly, so add quotes (double-quote
3114 # substitution turns \\\\ into \\, and sed turns \\ into \).
3115 sed -n \
3116 "s/'/'\\\\''/g;
3117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3118 ;;
3119 *)
3120 # `set' quotes correctly as required by POSIX, so do not add quotes.
3121 sed -n \
3122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3123 ;;
3124 esac;
3125 } |
3126 sed '
3127 t clear
3128 : clear
3129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3130 t end
3131 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3132 : end' >>confcache
3133 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3134 if test -w $cache_file; then
3135 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3136 cat confcache >$cache_file
3137 else
3138 echo "not updating unwritable cache $cache_file"
3139 fi
3140 fi
3141 rm -f confcache
3142
3143 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3144 # Let make expand exec_prefix.
3145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3146
3147 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3148 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3149 # trailing colons and then remove the whole line if VPATH becomes empty
3150 # (actually we leave an empty line to preserve line numbers).
3151 if test "x$srcdir" = x.; then
3152 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3153 s/:*\$(srcdir):*/:/;
3154 s/:*\${srcdir}:*/:/;
3155 s/:*@srcdir@:*/:/;
3156 s/^\([^=]*=[ ]*\):*/\1/;
3157 s/:*$//;
3158 s/^[^=]*=[ ]*$//;
3159 }'
3160 fi
3161
3162 # Transform confdefs.h into DEFS.
3163 # Protect against shell expansion while executing Makefile rules.
3164 # Protect against Makefile macro expansion.
3165 #
3166 # If the first sed substitution is executed (which looks for macros that
3167 # take arguments), then we branch to the quote section. Otherwise,
3168 # look for a macro that doesn't take arguments.
3169 cat >confdef2opt.sed <<\_ACEOF
3170 t clear
3171 : clear
3172 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3173 t quote
3174 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3175 t quote
3176 d
3177 : quote
3178 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3179 s,\[,\\&,g
3180 s,\],\\&,g
3181 s,\$,$$,g
3182 p
3183 _ACEOF
3184 # We use echo to avoid assuming a particular line-breaking character.
3185 # The extra dot is to prevent the shell from consuming trailing
3186 # line-breaks from the sub-command output. A line-break within
3187 # single-quotes doesn't work because, if this script is created in a
3188 # platform that uses two characters for line-breaks (e.g., DOS), tr
3189 # would break.
3190 ac_LF_and_DOT=`echo; echo .`
3191 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3192 rm -f confdef2opt.sed
3193
3194
3195 ac_libobjs=
3196 ac_ltlibobjs=
3197 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3198 # 1. Remove the extension, and $U if already installed.
3199 ac_i=`echo "$ac_i" |
3200 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3201 # 2. Add them.
3202 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3203 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3204 done
3205 LIBOBJS=$ac_libobjs
3206
3207 LTLIBOBJS=$ac_ltlibobjs
3208
3209
3210
3211 : ${CONFIG_STATUS=./config.status}
3212 ac_clean_files_save=$ac_clean_files
3213 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3214 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3215 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3216 cat >$CONFIG_STATUS <<_ACEOF
3217 #! $SHELL
3218 # Generated by $as_me.
3219 # Run this file to recreate the current configuration.
3220 # Compiler output produced by configure, useful for debugging
3221 # configure, is in config.log if it exists.
3222
3223 debug=false
3224 ac_cs_recheck=false
3225 ac_cs_silent=false
3226 SHELL=\${CONFIG_SHELL-$SHELL}
3227 _ACEOF
3228
3229 cat >>$CONFIG_STATUS <<\_ACEOF
3230 ## --------------------- ##
3231 ## M4sh Initialization. ##
3232 ## --------------------- ##
3233
3234 # Be Bourne compatible
3235 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3236 emulate sh
3237 NULLCMD=:
3238 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3239 # is contrary to our usage. Disable this feature.
3240 alias -g '${1+"$@"}'='"$@"'
3241 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3242 set -o posix
3243 fi
3244 DUALCASE=1; export DUALCASE # for MKS sh
3245
3246 # Support unset when possible.
3247 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3248 as_unset=unset
3249 else
3250 as_unset=false
3251 fi
3252
3253
3254 # Work around bugs in pre-3.0 UWIN ksh.
3255 $as_unset ENV MAIL MAILPATH
3256 PS1='$ '
3257 PS2='> '
3258 PS4='+ '
3259
3260 # NLS nuisances.
3261 for as_var in \
3262 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3263 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3264 LC_TELEPHONE LC_TIME
3265 do
3266 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3267 eval $as_var=C; export $as_var
3268 else
3269 $as_unset $as_var
3270 fi
3271 done
3272
3273 # Required to use basename.
3274 if expr a : '\(a\)' >/dev/null 2>&1; then
3275 as_expr=expr
3276 else
3277 as_expr=false
3278 fi
3279
3280 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3281 as_basename=basename
3282 else
3283 as_basename=false
3284 fi
3285
3286
3287 # Name of the executable.
3288 as_me=`$as_basename "$0" ||
3289 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3290 X"$0" : 'X\(//\)$' \| \
3291 X"$0" : 'X\(/\)$' \| \
3292 . : '\(.\)' 2>/dev/null ||
3293 echo X/"$0" |
3294 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3295 /^X\/\(\/\/\)$/{ s//\1/; q; }
3296 /^X\/\(\/\).*/{ s//\1/; q; }
3297 s/.*/./; q'`
3298
3299
3300 # PATH needs CR, and LINENO needs CR and PATH.
3301 # Avoid depending upon Character Ranges.
3302 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3303 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3304 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3305 as_cr_digits='0123456789'
3306 as_cr_alnum=$as_cr_Letters$as_cr_digits
3307
3308 # The user is always right.
3309 if test "${PATH_SEPARATOR+set}" != set; then
3310 echo "#! /bin/sh" >conf$$.sh
3311 echo "exit 0" >>conf$$.sh
3312 chmod +x conf$$.sh
3313 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3314 PATH_SEPARATOR=';'
3315 else
3316 PATH_SEPARATOR=:
3317 fi
3318 rm -f conf$$.sh
3319 fi
3320
3321
3322 as_lineno_1=$LINENO
3323 as_lineno_2=$LINENO
3324 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3325 test "x$as_lineno_1" != "x$as_lineno_2" &&
3326 test "x$as_lineno_3" = "x$as_lineno_2" || {
3327 # Find who we are. Look in the path if we contain no path at all
3328 # relative or not.
3329 case $0 in
3330 *[\\/]* ) as_myself=$0 ;;
3331 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3333 do
3334 IFS=$as_save_IFS
3335 test -z "$as_dir" && as_dir=.
3336 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3337 done
3338
3339 ;;
3340 esac
3341 # We did not find ourselves, most probably we were run as `sh COMMAND'
3342 # in which case we are not to be found in the path.
3343 if test "x$as_myself" = x; then
3344 as_myself=$0
3345 fi
3346 if test ! -f "$as_myself"; then
3347 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3348 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3349 { (exit 1); exit 1; }; }
3350 fi
3351 case $CONFIG_SHELL in
3352 '')
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3355 do
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
3358 for as_base in sh bash ksh sh5; do
3359 case $as_dir in
3360 /*)
3361 if ("$as_dir/$as_base" -c '
3362 as_lineno_1=$LINENO
3363 as_lineno_2=$LINENO
3364 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3365 test "x$as_lineno_1" != "x$as_lineno_2" &&
3366 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3367 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3368 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3369 CONFIG_SHELL=$as_dir/$as_base
3370 export CONFIG_SHELL
3371 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3372 fi;;
3373 esac
3374 done
3375 done
3376 ;;
3377 esac
3378
3379 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3380 # uniformly replaced by the line number. The first 'sed' inserts a
3381 # line-number line before each line; the second 'sed' does the real
3382 # work. The second script uses 'N' to pair each line-number line
3383 # with the numbered line, and appends trailing '-' during
3384 # substitution so that $LINENO is not a special case at line end.
3385 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3386 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3387 sed '=' <$as_myself |
3388 sed '
3389 N
3390 s,$,-,
3391 : loop
3392 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3393 t loop
3394 s,-$,,
3395 s,^['$as_cr_digits']*\n,,
3396 ' >$as_me.lineno &&
3397 chmod +x $as_me.lineno ||
3398 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3399 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3400 { (exit 1); exit 1; }; }
3401
3402 # Don't try to exec as it changes $[0], causing all sort of problems
3403 # (the dirname of $[0] is not the place where we might find the
3404 # original and so on. Autoconf is especially sensible to this).
3405 . ./$as_me.lineno
3406 # Exit status is that of the last command.
3407 exit
3408 }
3409
3410
3411 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3412 *c*,-n*) ECHO_N= ECHO_C='
3413 ' ECHO_T=' ' ;;
3414 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3415 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3416 esac
3417
3418 if expr a : '\(a\)' >/dev/null 2>&1; then
3419 as_expr=expr
3420 else
3421 as_expr=false
3422 fi
3423
3424 rm -f conf$$ conf$$.exe conf$$.file
3425 echo >conf$$.file
3426 if ln -s conf$$.file conf$$ 2>/dev/null; then
3427 # We could just check for DJGPP; but this test a) works b) is more generic
3428 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3429 if test -f conf$$.exe; then
3430 # Don't use ln at all; we don't have any links
3431 as_ln_s='cp -p'
3432 else
3433 as_ln_s='ln -s'
3434 fi
3435 elif ln conf$$.file conf$$ 2>/dev/null; then
3436 as_ln_s=ln
3437 else
3438 as_ln_s='cp -p'
3439 fi
3440 rm -f conf$$ conf$$.exe conf$$.file
3441
3442 if mkdir -p . 2>/dev/null; then
3443 as_mkdir_p=:
3444 else
3445 test -d ./-p && rmdir ./-p
3446 as_mkdir_p=false
3447 fi
3448
3449 as_executable_p="test -f"
3450
3451 # Sed expression to map a string onto a valid CPP name.
3452 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3453
3454 # Sed expression to map a string onto a valid variable name.
3455 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3456
3457
3458 # IFS
3459 # We need space, tab and new line, in precisely that order.
3460 as_nl='
3461 '
3462 IFS=" $as_nl"
3463
3464 # CDPATH.
3465 $as_unset CDPATH
3466
3467 exec 6>&1
3468
3469 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3470 # report actual input values of CONFIG_FILES etc. instead of their
3471 # values after options handling. Logging --version etc. is OK.
3472 exec 5>>config.log
3473 {
3474 echo
3475 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3476 ## Running $as_me. ##
3477 _ASBOX
3478 } >&5
3479 cat >&5 <<_CSEOF
3480
3481 This file was extended by $as_me, which was
3482 generated by GNU Autoconf 2.59. Invocation command line was
3483
3484 CONFIG_FILES = $CONFIG_FILES
3485 CONFIG_HEADERS = $CONFIG_HEADERS
3486 CONFIG_LINKS = $CONFIG_LINKS
3487 CONFIG_COMMANDS = $CONFIG_COMMANDS
3488 $ $0 $@
3489
3490 _CSEOF
3491 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3492 echo >&5
3493 _ACEOF
3494
3495 # Files that config.status was made for.
3496 if test -n "$ac_config_files"; then
3497 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3498 fi
3499
3500 if test -n "$ac_config_headers"; then
3501 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3502 fi
3503
3504 if test -n "$ac_config_links"; then
3505 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3506 fi
3507
3508 if test -n "$ac_config_commands"; then
3509 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3510 fi
3511
3512 cat >>$CONFIG_STATUS <<\_ACEOF
3513
3514 ac_cs_usage="\
3515 \`$as_me' instantiates files from templates according to the
3516 current configuration.
3517
3518 Usage: $0 [OPTIONS] [FILE]...
3519
3520 -h, --help print this help, then exit
3521 -V, --version print version number, then exit
3522 -q, --quiet do not print progress messages
3523 -d, --debug don't remove temporary files
3524 --recheck update $as_me by reconfiguring in the same conditions
3525 --file=FILE[:TEMPLATE]
3526 instantiate the configuration file FILE
3527
3528 Configuration files:
3529 $config_files
3530
3531 Report bugs to <bug-autoconf@gnu.org>."
3532 _ACEOF
3533
3534 cat >>$CONFIG_STATUS <<_ACEOF
3535 ac_cs_version="\\
3536 config.status
3537 configured by $0, generated by GNU Autoconf 2.59,
3538 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3539
3540 Copyright (C) 2003 Free Software Foundation, Inc.
3541 This config.status script is free software; the Free Software Foundation
3542 gives unlimited permission to copy, distribute and modify it."
3543 srcdir=$srcdir
3544 _ACEOF
3545
3546 cat >>$CONFIG_STATUS <<\_ACEOF
3547 # If no file are specified by the user, then we need to provide default
3548 # value. By we need to know if files were specified by the user.
3549 ac_need_defaults=:
3550 while test $# != 0
3551 do
3552 case $1 in
3553 --*=*)
3554 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3555 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3556 ac_shift=:
3557 ;;
3558 -*)
3559 ac_option=$1
3560 ac_optarg=$2
3561 ac_shift=shift
3562 ;;
3563 *) # This is not an option, so the user has probably given explicit
3564 # arguments.
3565 ac_option=$1
3566 ac_need_defaults=false;;
3567 esac
3568
3569 case $ac_option in
3570 # Handling of the options.
3571 _ACEOF
3572 cat >>$CONFIG_STATUS <<\_ACEOF
3573 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3574 ac_cs_recheck=: ;;
3575 --version | --vers* | -V )
3576 echo "$ac_cs_version"; exit 0 ;;
3577 --he | --h)
3578 # Conflict between --help and --header
3579 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3580 Try \`$0 --help' for more information." >&5
3581 echo "$as_me: error: ambiguous option: $1
3582 Try \`$0 --help' for more information." >&2;}
3583 { (exit 1); exit 1; }; };;
3584 --help | --hel | -h )
3585 echo "$ac_cs_usage"; exit 0 ;;
3586 --debug | --d* | -d )
3587 debug=: ;;
3588 --file | --fil | --fi | --f )
3589 $ac_shift
3590 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3591 ac_need_defaults=false;;
3592 --header | --heade | --head | --hea )
3593 $ac_shift
3594 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3595 ac_need_defaults=false;;
3596 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3597 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3598 ac_cs_silent=: ;;
3599
3600 # This is an error.
3601 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3602 Try \`$0 --help' for more information." >&5
3603 echo "$as_me: error: unrecognized option: $1
3604 Try \`$0 --help' for more information." >&2;}
3605 { (exit 1); exit 1; }; } ;;
3606
3607 *) ac_config_targets="$ac_config_targets $1" ;;
3608
3609 esac
3610 shift
3611 done
3612
3613 ac_configure_extra_args=
3614
3615 if $ac_cs_silent; then
3616 exec 6>/dev/null
3617 ac_configure_extra_args="$ac_configure_extra_args --silent"
3618 fi
3619
3620 _ACEOF
3621 cat >>$CONFIG_STATUS <<_ACEOF
3622 if \$ac_cs_recheck; then
3623 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3624 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3625 fi
3626
3627 _ACEOF
3628
3629
3630
3631
3632
3633 cat >>$CONFIG_STATUS <<\_ACEOF
3634 for ac_config_target in $ac_config_targets
3635 do
3636 case "$ac_config_target" in
3637 # Handling of arguments.
3638 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3639 "gdb.ada/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.ada/Makefile" ;;
3640 "gdb.ada/gnat_ada.gpr" ) CONFIG_FILES="$CONFIG_FILES gdb.ada/gnat_ada.gpr:gdb.ada/gnat_ada.gin" ;;
3641 "gdb.arch/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.arch/Makefile" ;;
3642 "gdb.asm/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.asm/Makefile" ;;
3643 "gdb.base/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.base/Makefile" ;;
3644 "gdb.cp/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.cp/Makefile" ;;
3645 "gdb.disasm/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.disasm/Makefile" ;;
3646 "gdb.dwarf2/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.dwarf2/Makefile" ;;
3647 "gdb.fortran/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.fortran/Makefile" ;;
3648 "gdb.java/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.java/Makefile" ;;
3649 "gdb.mi/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.mi/Makefile" ;;
3650 "gdb.objc/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.objc/Makefile" ;;
3651 "gdb.threads/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.threads/Makefile" ;;
3652 "gdb.trace/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.trace/Makefile" ;;
3653 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3654 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3655 { (exit 1); exit 1; }; };;
3656 esac
3657 done
3658
3659 # If the user did not use the arguments to specify the items to instantiate,
3660 # then the envvar interface is used. Set only those that are not.
3661 # We use the long form for the default assignment because of an extremely
3662 # bizarre bug on SunOS 4.1.3.
3663 if $ac_need_defaults; then
3664 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3665 fi
3666
3667 # Have a temporary directory for convenience. Make it in the build tree
3668 # simply because there is no reason to put it here, and in addition,
3669 # creating and moving files from /tmp can sometimes cause problems.
3670 # Create a temporary directory, and hook for its removal unless debugging.
3671 $debug ||
3672 {
3673 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3674 trap '{ (exit 1); exit 1; }' 1 2 13 15
3675 }
3676
3677 # Create a (secure) tmp directory for tmp files.
3678
3679 {
3680 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3681 test -n "$tmp" && test -d "$tmp"
3682 } ||
3683 {
3684 tmp=./confstat$$-$RANDOM
3685 (umask 077 && mkdir $tmp)
3686 } ||
3687 {
3688 echo "$me: cannot create a temporary directory in ." >&2
3689 { (exit 1); exit 1; }
3690 }
3691
3692 _ACEOF
3693
3694 cat >>$CONFIG_STATUS <<_ACEOF
3695
3696 #
3697 # CONFIG_FILES section.
3698 #
3699
3700 # No need to generate the scripts if there are no CONFIG_FILES.
3701 # This happens for instance when ./config.status config.h
3702 if test -n "\$CONFIG_FILES"; then
3703 # Protect against being on the right side of a sed subst in config.status.
3704 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3705 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3706 s,@SHELL@,$SHELL,;t t
3707 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3708 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3709 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3710 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3711 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3712 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3713 s,@exec_prefix@,$exec_prefix,;t t
3714 s,@prefix@,$prefix,;t t
3715 s,@program_transform_name@,$program_transform_name,;t t
3716 s,@bindir@,$bindir,;t t
3717 s,@sbindir@,$sbindir,;t t
3718 s,@libexecdir@,$libexecdir,;t t
3719 s,@datadir@,$datadir,;t t
3720 s,@sysconfdir@,$sysconfdir,;t t
3721 s,@sharedstatedir@,$sharedstatedir,;t t
3722 s,@localstatedir@,$localstatedir,;t t
3723 s,@libdir@,$libdir,;t t
3724 s,@includedir@,$includedir,;t t
3725 s,@oldincludedir@,$oldincludedir,;t t
3726 s,@infodir@,$infodir,;t t
3727 s,@mandir@,$mandir,;t t
3728 s,@build_alias@,$build_alias,;t t
3729 s,@host_alias@,$host_alias,;t t
3730 s,@target_alias@,$target_alias,;t t
3731 s,@DEFS@,$DEFS,;t t
3732 s,@ECHO_C@,$ECHO_C,;t t
3733 s,@ECHO_N@,$ECHO_N,;t t
3734 s,@ECHO_T@,$ECHO_T,;t t
3735 s,@LIBS@,$LIBS,;t t
3736 s,@build@,$build,;t t
3737 s,@build_cpu@,$build_cpu,;t t
3738 s,@build_vendor@,$build_vendor,;t t
3739 s,@build_os@,$build_os,;t t
3740 s,@host@,$host,;t t
3741 s,@host_cpu@,$host_cpu,;t t
3742 s,@host_vendor@,$host_vendor,;t t
3743 s,@host_os@,$host_os,;t t
3744 s,@target@,$target,;t t
3745 s,@target_cpu@,$target_cpu,;t t
3746 s,@target_vendor@,$target_vendor,;t t
3747 s,@target_os@,$target_os,;t t
3748 s,@subdirs@,$subdirs,;t t
3749 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
3750 s,@CC@,$CC,;t t
3751 s,@CFLAGS@,$CFLAGS,;t t
3752 s,@LDFLAGS@,$LDFLAGS,;t t
3753 s,@CPPFLAGS@,$CPPFLAGS,;t t
3754 s,@ac_ct_CC@,$ac_ct_CC,;t t
3755 s,@EXEEXT@,$EXEEXT,;t t
3756 s,@OBJEXT@,$OBJEXT,;t t
3757 s,@CPP@,$CPP,;t t
3758 s,@EGREP@,$EGREP,;t t
3759 s,@LIBOBJS@,$LIBOBJS,;t t
3760 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3761 CEOF
3762
3763 _ACEOF
3764
3765 cat >>$CONFIG_STATUS <<\_ACEOF
3766 # Split the substitutions into bite-sized pieces for seds with
3767 # small command number limits, like on Digital OSF/1 and HP-UX.
3768 ac_max_sed_lines=48
3769 ac_sed_frag=1 # Number of current file.
3770 ac_beg=1 # First line for current file.
3771 ac_end=$ac_max_sed_lines # Line after last line for current file.
3772 ac_more_lines=:
3773 ac_sed_cmds=
3774 while $ac_more_lines; do
3775 if test $ac_beg -gt 1; then
3776 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3777 else
3778 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3779 fi
3780 if test ! -s $tmp/subs.frag; then
3781 ac_more_lines=false
3782 else
3783 # The purpose of the label and of the branching condition is to
3784 # speed up the sed processing (if there are no `@' at all, there
3785 # is no need to browse any of the substitutions).
3786 # These are the two extra sed commands mentioned above.
3787 (echo ':t
3788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3789 if test -z "$ac_sed_cmds"; then
3790 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3791 else
3792 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3793 fi
3794 ac_sed_frag=`expr $ac_sed_frag + 1`
3795 ac_beg=$ac_end
3796 ac_end=`expr $ac_end + $ac_max_sed_lines`
3797 fi
3798 done
3799 if test -z "$ac_sed_cmds"; then
3800 ac_sed_cmds=cat
3801 fi
3802 fi # test -n "$CONFIG_FILES"
3803
3804 _ACEOF
3805 cat >>$CONFIG_STATUS <<\_ACEOF
3806 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3807 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3808 case $ac_file in
3809 - | *:- | *:-:* ) # input from stdin
3810 cat >$tmp/stdin
3811 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3812 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3813 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3814 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3815 * ) ac_file_in=$ac_file.in ;;
3816 esac
3817
3818 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3819 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3820 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3821 X"$ac_file" : 'X\(//\)[^/]' \| \
3822 X"$ac_file" : 'X\(//\)$' \| \
3823 X"$ac_file" : 'X\(/\)' \| \
3824 . : '\(.\)' 2>/dev/null ||
3825 echo X"$ac_file" |
3826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3828 /^X\(\/\/\)$/{ s//\1/; q; }
3829 /^X\(\/\).*/{ s//\1/; q; }
3830 s/.*/./; q'`
3831 { if $as_mkdir_p; then
3832 mkdir -p "$ac_dir"
3833 else
3834 as_dir="$ac_dir"
3835 as_dirs=
3836 while test ! -d "$as_dir"; do
3837 as_dirs="$as_dir $as_dirs"
3838 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3840 X"$as_dir" : 'X\(//\)[^/]' \| \
3841 X"$as_dir" : 'X\(//\)$' \| \
3842 X"$as_dir" : 'X\(/\)' \| \
3843 . : '\(.\)' 2>/dev/null ||
3844 echo X"$as_dir" |
3845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3847 /^X\(\/\/\)$/{ s//\1/; q; }
3848 /^X\(\/\).*/{ s//\1/; q; }
3849 s/.*/./; q'`
3850 done
3851 test ! -n "$as_dirs" || mkdir $as_dirs
3852 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3853 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3854 { (exit 1); exit 1; }; }; }
3855
3856 ac_builddir=.
3857
3858 if test "$ac_dir" != .; then
3859 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3860 # A "../" for each directory in $ac_dir_suffix.
3861 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3862 else
3863 ac_dir_suffix= ac_top_builddir=
3864 fi
3865
3866 case $srcdir in
3867 .) # No --srcdir option. We are building in place.
3868 ac_srcdir=.
3869 if test -z "$ac_top_builddir"; then
3870 ac_top_srcdir=.
3871 else
3872 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3873 fi ;;
3874 [\\/]* | ?:[\\/]* ) # Absolute path.
3875 ac_srcdir=$srcdir$ac_dir_suffix;
3876 ac_top_srcdir=$srcdir ;;
3877 *) # Relative path.
3878 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3879 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3880 esac
3881
3882 # Do not use `cd foo && pwd` to compute absolute paths, because
3883 # the directories may not exist.
3884 case `pwd` in
3885 .) ac_abs_builddir="$ac_dir";;
3886 *)
3887 case "$ac_dir" in
3888 .) ac_abs_builddir=`pwd`;;
3889 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3890 *) ac_abs_builddir=`pwd`/"$ac_dir";;
3891 esac;;
3892 esac
3893 case $ac_abs_builddir in
3894 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3895 *)
3896 case ${ac_top_builddir}. in
3897 .) ac_abs_top_builddir=$ac_abs_builddir;;
3898 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3899 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3900 esac;;
3901 esac
3902 case $ac_abs_builddir in
3903 .) ac_abs_srcdir=$ac_srcdir;;
3904 *)
3905 case $ac_srcdir in
3906 .) ac_abs_srcdir=$ac_abs_builddir;;
3907 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3908 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3909 esac;;
3910 esac
3911 case $ac_abs_builddir in
3912 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3913 *)
3914 case $ac_top_srcdir in
3915 .) ac_abs_top_srcdir=$ac_abs_builddir;;
3916 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3917 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3918 esac;;
3919 esac
3920
3921
3922
3923 if test x"$ac_file" != x-; then
3924 { echo "$as_me:$LINENO: creating $ac_file" >&5
3925 echo "$as_me: creating $ac_file" >&6;}
3926 rm -f "$ac_file"
3927 fi
3928 # Let's still pretend it is `configure' which instantiates (i.e., don't
3929 # use $as_me), people would be surprised to read:
3930 # /* config.h. Generated by config.status. */
3931 if test x"$ac_file" = x-; then
3932 configure_input=
3933 else
3934 configure_input="$ac_file. "
3935 fi
3936 configure_input=$configure_input"Generated from `echo $ac_file_in |
3937 sed 's,.*/,,'` by configure."
3938
3939 # First look for the input files in the build tree, otherwise in the
3940 # src tree.
3941 ac_file_inputs=`IFS=:
3942 for f in $ac_file_in; do
3943 case $f in
3944 -) echo $tmp/stdin ;;
3945 [\\/$]*)
3946 # Absolute (can't be DOS-style, as IFS=:)
3947 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3948 echo "$as_me: error: cannot find input file: $f" >&2;}
3949 { (exit 1); exit 1; }; }
3950 echo "$f";;
3951 *) # Relative
3952 if test -f "$f"; then
3953 # Build tree
3954 echo "$f"
3955 elif test -f "$srcdir/$f"; then
3956 # Source tree
3957 echo "$srcdir/$f"
3958 else
3959 # /dev/null tree
3960 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3961 echo "$as_me: error: cannot find input file: $f" >&2;}
3962 { (exit 1); exit 1; }; }
3963 fi;;
3964 esac
3965 done` || { (exit 1); exit 1; }
3966 _ACEOF
3967 cat >>$CONFIG_STATUS <<_ACEOF
3968 sed "$ac_vpsub
3969 $extrasub
3970 _ACEOF
3971 cat >>$CONFIG_STATUS <<\_ACEOF
3972 :t
3973 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3974 s,@configure_input@,$configure_input,;t t
3975 s,@srcdir@,$ac_srcdir,;t t
3976 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3977 s,@top_srcdir@,$ac_top_srcdir,;t t
3978 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3979 s,@builddir@,$ac_builddir,;t t
3980 s,@abs_builddir@,$ac_abs_builddir,;t t
3981 s,@top_builddir@,$ac_top_builddir,;t t
3982 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3983 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3984 rm -f $tmp/stdin
3985 if test x"$ac_file" != x-; then
3986 mv $tmp/out $ac_file
3987 else
3988 cat $tmp/out
3989 rm -f $tmp/out
3990 fi
3991
3992 done
3993 _ACEOF
3994
3995 cat >>$CONFIG_STATUS <<\_ACEOF
3996
3997 { (exit 0); exit 0; }
3998 _ACEOF
3999 chmod +x $CONFIG_STATUS
4000 ac_clean_files=$ac_clean_files_save
4001
4002
4003 # configure is writing to config.log, and then calls config.status.
4004 # config.status does its own redirection, appending to config.log.
4005 # Unfortunately, on DOS this fails, as config.log is still kept open
4006 # by configure, so config.status won't be able to write to it; its
4007 # output is simply discarded. So we exec the FD to /dev/null,
4008 # effectively closing config.log, so it can be properly (re)opened and
4009 # appended to by config.status. When coming back to configure, we
4010 # need to make the FD available again.
4011 if test "$no_create" != yes; then
4012 ac_cs_success=:
4013 ac_config_status_args=
4014 test "$silent" = yes &&
4015 ac_config_status_args="$ac_config_status_args --quiet"
4016 exec 5>/dev/null
4017 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4018 exec 5>>config.log
4019 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4020 # would make configure fail if this is the last instruction.
4021 $ac_cs_success || { (exit 1); exit 1; }
4022 fi
4023
4024 #
4025 # CONFIG_SUBDIRS section.
4026 #
4027 if test "$no_recursion" != yes; then
4028
4029 # Remove --cache-file and --srcdir arguments so they do not pile up.
4030 ac_sub_configure_args=
4031 ac_prev=
4032 for ac_arg in $ac_configure_args; do
4033 if test -n "$ac_prev"; then
4034 ac_prev=
4035 continue
4036 fi
4037 case $ac_arg in
4038 -cache-file | --cache-file | --cache-fil | --cache-fi \
4039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4040 ac_prev=cache_file ;;
4041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4043 | --c=*)
4044 ;;
4045 --config-cache | -C)
4046 ;;
4047 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4048 ac_prev=srcdir ;;
4049 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4050 ;;
4051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4052 ac_prev=prefix ;;
4053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4054 ;;
4055 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4056 esac
4057 done
4058
4059 # Always prepend --prefix to ensure using the same prefix
4060 # in subdir configurations.
4061 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
4062
4063 ac_popdir=`pwd`
4064 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
4065
4066 # Do not complain, so a configure script can configure whichever
4067 # parts of a large source tree are present.
4068 test -d $srcdir/$ac_dir || continue
4069
4070 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
4071 echo "$as_me: configuring in $ac_dir" >&6;}
4072 { if $as_mkdir_p; then
4073 mkdir -p "$ac_dir"
4074 else
4075 as_dir="$ac_dir"
4076 as_dirs=
4077 while test ! -d "$as_dir"; do
4078 as_dirs="$as_dir $as_dirs"
4079 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4080 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4081 X"$as_dir" : 'X\(//\)[^/]' \| \
4082 X"$as_dir" : 'X\(//\)$' \| \
4083 X"$as_dir" : 'X\(/\)' \| \
4084 . : '\(.\)' 2>/dev/null ||
4085 echo X"$as_dir" |
4086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4088 /^X\(\/\/\)$/{ s//\1/; q; }
4089 /^X\(\/\).*/{ s//\1/; q; }
4090 s/.*/./; q'`
4091 done
4092 test ! -n "$as_dirs" || mkdir $as_dirs
4093 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4094 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4095 { (exit 1); exit 1; }; }; }
4096
4097 ac_builddir=.
4098
4099 if test "$ac_dir" != .; then
4100 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4101 # A "../" for each directory in $ac_dir_suffix.
4102 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4103 else
4104 ac_dir_suffix= ac_top_builddir=
4105 fi
4106
4107 case $srcdir in
4108 .) # No --srcdir option. We are building in place.
4109 ac_srcdir=.
4110 if test -z "$ac_top_builddir"; then
4111 ac_top_srcdir=.
4112 else
4113 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4114 fi ;;
4115 [\\/]* | ?:[\\/]* ) # Absolute path.
4116 ac_srcdir=$srcdir$ac_dir_suffix;
4117 ac_top_srcdir=$srcdir ;;
4118 *) # Relative path.
4119 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4120 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4121 esac
4122
4123 # Do not use `cd foo && pwd` to compute absolute paths, because
4124 # the directories may not exist.
4125 case `pwd` in
4126 .) ac_abs_builddir="$ac_dir";;
4127 *)
4128 case "$ac_dir" in
4129 .) ac_abs_builddir=`pwd`;;
4130 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4131 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4132 esac;;
4133 esac
4134 case $ac_abs_builddir in
4135 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4136 *)
4137 case ${ac_top_builddir}. in
4138 .) ac_abs_top_builddir=$ac_abs_builddir;;
4139 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4140 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4141 esac;;
4142 esac
4143 case $ac_abs_builddir in
4144 .) ac_abs_srcdir=$ac_srcdir;;
4145 *)
4146 case $ac_srcdir in
4147 .) ac_abs_srcdir=$ac_abs_builddir;;
4148 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4149 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4150 esac;;
4151 esac
4152 case $ac_abs_builddir in
4153 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4154 *)
4155 case $ac_top_srcdir in
4156 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4157 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4158 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4159 esac;;
4160 esac
4161
4162
4163 cd $ac_dir
4164
4165 # Check for guested configure; otherwise get Cygnus style configure.
4166 if test -f $ac_srcdir/configure.gnu; then
4167 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
4168 elif test -f $ac_srcdir/configure; then
4169 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
4170 elif test -f $ac_srcdir/configure.in; then
4171 ac_sub_configure=$ac_configure
4172 else
4173 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
4174 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
4175 ac_sub_configure=
4176 fi
4177
4178 # The recursion is here.
4179 if test -n "$ac_sub_configure"; then
4180 # Make the cache file name correct relative to the subdirectory.
4181 case $cache_file in
4182 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4183 *) # Relative path.
4184 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
4185 esac
4186
4187 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
4188 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4189 # The eval makes quoting arguments work.
4190 eval $ac_sub_configure $ac_sub_configure_args \
4191 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
4192 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
4193 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
4194 { (exit 1); exit 1; }; }
4195 fi
4196
4197 cd $ac_popdir
4198 done
4199 fi
4200
This page took 0.127177 seconds and 4 git commands to generate.