OSDN Git Service

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