1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --with-stabs            arrange to use stabs instead of host debug format"
16ac_help="$ac_help
17  --enable-gtk            enable gdbtk graphical user interface (GUI)"
18ac_help="$ac_help
19  --enable-shared         build shared libraries [deault=yes]"
20
21# Initialize some variables set by options.
22# The variables have the same names as the options, with
23# dashes changed to underlines.
24build=NONE
25cache_file=./config.cache
26exec_prefix=NONE
27host=NONE
28no_create=
29nonopt=NONE
30no_recursion=
31prefix=NONE
32program_prefix=NONE
33program_suffix=NONE
34program_transform_name=s,x,x,
35silent=
36site=
37sitefile=
38srcdir=
39target=NONE
40verbose=
41x_includes=NONE
42x_libraries=NONE
43bindir='${exec_prefix}/bin'
44sbindir='${exec_prefix}/sbin'
45libexecdir='${exec_prefix}/libexec'
46datadir='${prefix}/share'
47sysconfdir='${prefix}/etc'
48sharedstatedir='${prefix}/com'
49localstatedir='${prefix}/var'
50libdir='${exec_prefix}/lib'
51includedir='${prefix}/include'
52oldincludedir='/usr/include'
53infodir='${prefix}/info'
54mandir='${prefix}/man'
55
56# Initialize some other variables.
57subdirs=
58MFLAGS= MAKEFLAGS=
59SHELL=${CONFIG_SHELL-/bin/sh}
60# Maximum number of lines to put in a shell here document.
61ac_max_here_lines=12
62
63ac_prev=
64for ac_option
65do
66
67  # If the previous option needs an argument, assign it.
68  if test -n "$ac_prev"; then
69    eval "$ac_prev=\$ac_option"
70    ac_prev=
71    continue
72  fi
73
74  case "$ac_option" in
75  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76  *) ac_optarg= ;;
77  esac
78
79  # Accept the important Cygnus configure options, so we can diagnose typos.
80
81  case "$ac_option" in
82
83  -bindir | --bindir | --bindi | --bind | --bin | --bi)
84    ac_prev=bindir ;;
85  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86    bindir="$ac_optarg" ;;
87
88  -build | --build | --buil | --bui | --bu)
89    ac_prev=build ;;
90  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
91    build="$ac_optarg" ;;
92
93  -cache-file | --cache-file | --cache-fil | --cache-fi \
94  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95    ac_prev=cache_file ;;
96  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98    cache_file="$ac_optarg" ;;
99
100  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101    ac_prev=datadir ;;
102  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103  | --da=*)
104    datadir="$ac_optarg" ;;
105
106  -disable-* | --disable-*)
107    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
108    # Reject names that are not valid shell variable names.
109    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111    fi
112    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
113    eval "enable_${ac_feature}=no" ;;
114
115  -enable-* | --enable-*)
116    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117    # Reject names that are not valid shell variable names.
118    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120    fi
121    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122    case "$ac_option" in
123      *=*) ;;
124      *) ac_optarg=yes ;;
125    esac
126    eval "enable_${ac_feature}='$ac_optarg'" ;;
127
128  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
129  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
130  | --exec | --exe | --ex)
131    ac_prev=exec_prefix ;;
132  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
133  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
134  | --exec=* | --exe=* | --ex=*)
135    exec_prefix="$ac_optarg" ;;
136
137  -gas | --gas | --ga | --g)
138    # Obsolete; use --with-gas.
139    with_gas=yes ;;
140
141  -help | --help | --hel | --he)
142    # Omit some internal or obsolete options to make the list less imposing.
143    # This message is too long to be a string in the A/UX 3.1 sh.
144    cat << EOF
145Usage: configure [options] [host]
146Options: [defaults in brackets after descriptions]
147Configuration:
148  --cache-file=FILE       cache test results in FILE
149  --help                  print this message
150  --no-create             do not create output files
151  --quiet, --silent       do not print \`checking...' messages
152  --site-file=FILE        use FILE as the site file
153  --version               print the version of autoconf that created configure
154Directory and file names:
155  --prefix=PREFIX         install architecture-independent files in PREFIX
156                          [$ac_default_prefix]
157  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
158                          [same as prefix]
159  --bindir=DIR            user executables in DIR [EPREFIX/bin]
160  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
161  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
162  --datadir=DIR           read-only architecture-independent data in DIR
163                          [PREFIX/share]
164  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
165  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
166                          [PREFIX/com]
167  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
168  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
169  --includedir=DIR        C header files in DIR [PREFIX/include]
170  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
171  --infodir=DIR           info documentation in DIR [PREFIX/info]
172  --mandir=DIR            man documentation in DIR [PREFIX/man]
173  --srcdir=DIR            find the sources in DIR [configure dir or ..]
174  --program-prefix=PREFIX prepend PREFIX to installed program names
175  --program-suffix=SUFFIX append SUFFIX to installed program names
176  --program-transform-name=PROGRAM
177                          run sed PROGRAM on installed program names
178EOF
179    cat << EOF
180Host type:
181  --build=BUILD           configure for building on BUILD [BUILD=HOST]
182  --host=HOST             configure for HOST [guessed]
183  --target=TARGET         configure for TARGET [TARGET=HOST]
184Features and packages:
185  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
186  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
187  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
188  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
189  --x-includes=DIR        X include files are in DIR
190  --x-libraries=DIR       X library files are in DIR
191EOF
192    if test -n "$ac_help"; then
193      echo "--enable and --with options recognized:$ac_help"
194    fi
195    exit 0 ;;
196
197  -host | --host | --hos | --ho)
198    ac_prev=host ;;
199  -host=* | --host=* | --hos=* | --ho=*)
200    host="$ac_optarg" ;;
201
202  -includedir | --includedir | --includedi | --included | --include \
203  | --includ | --inclu | --incl | --inc)
204    ac_prev=includedir ;;
205  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206  | --includ=* | --inclu=* | --incl=* | --inc=*)
207    includedir="$ac_optarg" ;;
208
209  -infodir | --infodir | --infodi | --infod | --info | --inf)
210    ac_prev=infodir ;;
211  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212    infodir="$ac_optarg" ;;
213
214  -libdir | --libdir | --libdi | --libd)
215    ac_prev=libdir ;;
216  -libdir=* | --libdir=* | --libdi=* | --libd=*)
217    libdir="$ac_optarg" ;;
218
219  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220  | --libexe | --libex | --libe)
221    ac_prev=libexecdir ;;
222  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223  | --libexe=* | --libex=* | --libe=*)
224    libexecdir="$ac_optarg" ;;
225
226  -localstatedir | --localstatedir | --localstatedi | --localstated \
227  | --localstate | --localstat | --localsta | --localst \
228  | --locals | --local | --loca | --loc | --lo)
229    ac_prev=localstatedir ;;
230  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233    localstatedir="$ac_optarg" ;;
234
235  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236    ac_prev=mandir ;;
237  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238    mandir="$ac_optarg" ;;
239
240  -nfp | --nfp | --nf)
241    # Obsolete; use --without-fp.
242    with_fp=no ;;
243
244  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245  | --no-cr | --no-c)
246    no_create=yes ;;
247
248  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
249  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250    no_recursion=yes ;;
251
252  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254  | --oldin | --oldi | --old | --ol | --o)
255    ac_prev=oldincludedir ;;
256  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259    oldincludedir="$ac_optarg" ;;
260
261  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262    ac_prev=prefix ;;
263  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264    prefix="$ac_optarg" ;;
265
266  -program-prefix | --program-prefix | --program-prefi | --program-pref \
267  | --program-pre | --program-pr | --program-p)
268    ac_prev=program_prefix ;;
269  -program-prefix=* | --program-prefix=* | --program-prefi=* \
270  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271    program_prefix="$ac_optarg" ;;
272
273  -program-suffix | --program-suffix | --program-suffi | --program-suff \
274  | --program-suf | --program-su | --program-s)
275    ac_prev=program_suffix ;;
276  -program-suffix=* | --program-suffix=* | --program-suffi=* \
277  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278    program_suffix="$ac_optarg" ;;
279
280  -program-transform-name | --program-transform-name \
281  | --program-transform-nam | --program-transform-na \
282  | --program-transform-n | --program-transform- \
283  | --program-transform | --program-transfor \
284  | --program-transfo | --program-transf \
285  | --program-trans | --program-tran \
286  | --progr-tra | --program-tr | --program-t)
287    ac_prev=program_transform_name ;;
288  -program-transform-name=* | --program-transform-name=* \
289  | --program-transform-nam=* | --program-transform-na=* \
290  | --program-transform-n=* | --program-transform-=* \
291  | --program-transform=* | --program-transfor=* \
292  | --program-transfo=* | --program-transf=* \
293  | --program-trans=* | --program-tran=* \
294  | --progr-tra=* | --program-tr=* | --program-t=*)
295    program_transform_name="$ac_optarg" ;;
296
297  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298  | -silent | --silent | --silen | --sile | --sil)
299    silent=yes ;;
300
301  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
302    ac_prev=sbindir ;;
303  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304  | --sbi=* | --sb=*)
305    sbindir="$ac_optarg" ;;
306
307  -sharedstatedir | --sharedstatedir | --sharedstatedi \
308  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309  | --sharedst | --shareds | --shared | --share | --shar \
310  | --sha | --sh)
311    ac_prev=sharedstatedir ;;
312  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315  | --sha=* | --sh=*)
316    sharedstatedir="$ac_optarg" ;;
317
318  -site | --site | --sit)
319    ac_prev=site ;;
320  -site=* | --site=* | --sit=*)
321    site="$ac_optarg" ;;
322
323  -site-file | --site-file | --site-fil | --site-fi | --site-f)
324    ac_prev=sitefile ;;
325  -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
326    sitefile="$ac_optarg" ;;
327
328  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329    ac_prev=srcdir ;;
330  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331    srcdir="$ac_optarg" ;;
332
333  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334  | --syscon | --sysco | --sysc | --sys | --sy)
335    ac_prev=sysconfdir ;;
336  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338    sysconfdir="$ac_optarg" ;;
339
340  -target | --target | --targe | --targ | --tar | --ta | --t)
341    ac_prev=target ;;
342  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343    target="$ac_optarg" ;;
344
345  -v | -verbose | --verbose | --verbos | --verbo | --verb)
346    verbose=yes ;;
347
348  -version | --version | --versio | --versi | --vers)
349    echo "configure generated by autoconf version 2.13"
350    exit 0 ;;
351
352  -with-* | --with-*)
353    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354    # Reject names that are not valid shell variable names.
355    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357    fi
358    ac_package=`echo $ac_package| sed 's/-/_/g'`
359    case "$ac_option" in
360      *=*) ;;
361      *) ac_optarg=yes ;;
362    esac
363    eval "with_${ac_package}='$ac_optarg'" ;;
364
365  -without-* | --without-*)
366    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367    # Reject names that are not valid shell variable names.
368    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370    fi
371    ac_package=`echo $ac_package| sed 's/-/_/g'`
372    eval "with_${ac_package}=no" ;;
373
374  --x)
375    # Obsolete; use --with-x.
376    with_x=yes ;;
377
378  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379  | --x-incl | --x-inc | --x-in | --x-i)
380    ac_prev=x_includes ;;
381  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383    x_includes="$ac_optarg" ;;
384
385  -x-libraries | --x-libraries | --x-librarie | --x-librari \
386  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387    ac_prev=x_libraries ;;
388  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390    x_libraries="$ac_optarg" ;;
391
392  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393    ;;
394
395  *)
396    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397      echo "configure: warning: $ac_option: invalid host type" 1>&2
398    fi
399    if test "x$nonopt" != xNONE; then
400      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401    fi
402    nonopt="$ac_option"
403    ;;
404
405  esac
406done
407
408if test -n "$ac_prev"; then
409  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410fi
411
412trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413
414# File descriptor usage:
415# 0 standard input
416# 1 file creation
417# 2 errors and warnings
418# 3 some systems may open it to /dev/tty
419# 4 used on the Kubota Titan
420# 6 checking for... messages and results
421# 5 compiler messages saved in config.log
422if test "$silent" = yes; then
423  exec 6>/dev/null
424else
425  exec 6>&1
426fi
427exec 5>./config.log
428
429echo "\
430This file contains any messages produced by compilers while
431running configure, to aid debugging if configure makes a mistake.
432" 1>&5
433
434# Strip out --no-create and --no-recursion so they do not pile up.
435# Also quote any args containing shell metacharacters.
436ac_configure_args=
437for ac_arg
438do
439  case "$ac_arg" in
440  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441  | --no-cr | --no-c) ;;
442  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447  esac
448done
449
450# NLS nuisances.
451# Only set these to C if already set.  These must not be set unconditionally
452# because not all systems understand e.g. LANG=C (notably SCO).
453# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454# Non-C LC_CTYPE values break the ctype check.
455if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
456if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
459
460# confdefs.h avoids OS command line length limits that DEFS can exceed.
461rm -rf conftest* confdefs.h
462# AIX cpp loses on an empty file, so make sure it contains at least a newline.
463echo > confdefs.h
464
465# A filename unique to this package, relative to the directory that
466# configure is in, which we can look for to find out if srcdir is correct.
467ac_unique_file=gdb.base
468
469# Find the source files, if location was not specified.
470if test -z "$srcdir"; then
471  ac_srcdir_defaulted=yes
472  # Try the directory containing this script, then its parent.
473  ac_prog=$0
474  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476  srcdir=$ac_confdir
477  if test ! -r $srcdir/$ac_unique_file; then
478    srcdir=..
479  fi
480else
481  ac_srcdir_defaulted=no
482fi
483if test ! -r $srcdir/$ac_unique_file; then
484  if test "$ac_srcdir_defaulted" = yes; then
485    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486  else
487    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488  fi
489fi
490srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
492# Prefer explicitly selected file to automatically selected ones.
493if test -z "$sitefile"; then
494  if test -z "$CONFIG_SITE"; then
495    if test "x$prefix" != xNONE; then
496      CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497    else
498      CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499    fi
500  fi
501else
502  CONFIG_SITE="$sitefile"
503fi
504for ac_site_file in $CONFIG_SITE; do
505  if test -r "$ac_site_file"; then
506    echo "loading site script $ac_site_file"
507    . "$ac_site_file"
508  fi
509done
510
511if test -r "$cache_file"; then
512  echo "loading cache $cache_file"
513  . $cache_file
514else
515  echo "creating cache $cache_file"
516  > $cache_file
517fi
518
519ac_ext=c
520# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521ac_cpp='$CPP $CPPFLAGS'
522ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524cross_compiling=$ac_cv_prog_cc_cross
525
526ac_exeext=
527ac_objext=o
528if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
531    ac_n= ac_c='
532' ac_t='	'
533  else
534    ac_n=-n ac_c= ac_t=
535  fi
536else
537  ac_n= ac_c='\c' ac_t=
538fi
539
540
541
542ac_aux_dir=
543for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
544  if test -f $ac_dir/install-sh; then
545    ac_aux_dir=$ac_dir
546    ac_install_sh="$ac_aux_dir/install-sh -c"
547    break
548  elif test -f $ac_dir/install.sh; then
549    ac_aux_dir=$ac_dir
550    ac_install_sh="$ac_aux_dir/install.sh -c"
551    break
552  fi
553done
554if test -z "$ac_aux_dir"; then
555  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
556fi
557ac_config_guess=$ac_aux_dir/config.guess
558ac_config_sub=$ac_aux_dir/config.sub
559ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
560
561echo $ac_n "checking build system type""... $ac_c" 1>&6
562echo "configure:563: checking build system type" >&5
563
564build_alias=$build
565case "$build_alias" in
566NONE)
567  case $nonopt in
568  NONE) build_alias=$host_alias ;;
569  *) build_alias=$nonopt ;;
570  esac ;;
571esac
572
573build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
574build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
575build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
576build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
577echo "$ac_t""$build" 1>&6
578
579
580# Make sure we can run config.sub.
581if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
582else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
583fi
584
585echo $ac_n "checking host system type""... $ac_c" 1>&6
586echo "configure:587: checking host system type" >&5
587
588host_alias=$host
589case "$host_alias" in
590NONE)
591  case $nonopt in
592  NONE)
593    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
594    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
595    fi ;;
596  *) host_alias=$nonopt ;;
597  esac ;;
598esac
599
600host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
601host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
602host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
603host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
604echo "$ac_t""$host" 1>&6
605
606echo $ac_n "checking target system type""... $ac_c" 1>&6
607echo "configure:608: checking target system type" >&5
608
609target_alias=$target
610case "$target_alias" in
611NONE)
612  case $nonopt in
613  NONE) target_alias=$host_alias ;;
614  *) target_alias=$nonopt ;;
615  esac ;;
616esac
617
618target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
619target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622echo "$ac_t""$target" 1>&6
623
624
625# Directories that need to be configured in all configurations.
626configdirs=
627
628# Add HP-specific tests when appropriate.
629case $target in
630  hppa*-*-hpux*)
631    configdirs="$configdirs gdb.hp" ;;
632esac
633
634# With stabs.
635# Check whether --with-stabs or --without-stabs was given.
636if test "${with_stabs+set}" = set; then
637  withval="$with_stabs"
638  :
639else
640  # We enable stabs tests by default on selected targets.
641case $target in
642   powerpc-*-aix* \
643 | rs6000-*-aix*  \
644 | *-*-*bsd*      \
645 | *-*-go32*      \
646 | *-*-linux*     \
647 | *-*-lynxos*    \
648 | *-sun-*        \
649 | hppa*-*-*      \
650 | *-*-elf*       \
651 )
652    with_stabs=yes ;;
653 *)
654    with_stabs=no ;;
655esac
656fi
657
658
659# Add stabs tests when appropriate.
660if test $with_stabs = yes; then
661  configdirs="$configdirs gdb.stabs"
662fi
663
664# Enable gdbtk.
665# Check whether --enable-gdbtk or --disable-gdbtk was given.
666if test "${enable_gdbtk+set}" = set; then
667  enableval="$enable_gdbtk"
668  :
669else
670  if test -d $srcdir/gdb.gdbtk; then
671    enable_gdbtk=yes
672  else
673    enable_gdbtk=no
674  fi
675fi
676
677# We unconditionally disable gdbtk tests on selected platforms.
678case $host_os in
679  go32* | windows*)
680    enable_gdbtk=no ;;
681esac
682
683# Add gdbtk tests when appropriate.
684if test $enable_gdbtk = yes; then
685  configdirs="$configdirs gdb.gdbtk"
686fi
687
688# Enable shared libraries.
689# Check whether --enable-shared or --disable-shared was given.
690if test "${enable_shared+set}" = set; then
691  enableval="$enable_shared"
692  :
693else
694  enable_shared=yes
695fi
696
697
698# If we have shared libraries, try to set RPATH_ENVVAR reasonably,
699# such that we can find the shared libraries in the build tree.
700if test $enable_shared = no; then
701  # The variable `RPATH_ENVVAR' itself is not likely to be used on any
702  # platform.
703  RPATH_ENVVAR=RPATH_ENVVAR
704else
705  # The variable `LD_LIBRARY_PATH' is used on most platforms.
706  RPATH_ENVVAR=LD_LIBRARY_PATH
707  # The following exceptions are taken from Libtool 1.4.3.
708  case $host_os in
709    aix*)
710      if test $host_cpu != ia64; then
711        RPATH_ENVVAR=LIBPATH
712      fi ;;
713    darwin* | rhapsody*)
714      RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
715    hpux*)
716      RPATH_ENVVAR=SHLIB_PATH ;;
717  esac
718fi
719
720
721echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
722echo "configure:723: checking how to run the C preprocessor" >&5
723# On Suns, sometimes $CPP names a directory.
724if test -n "$CPP" && test -d "$CPP"; then
725  CPP=
726fi
727if test -z "$CPP"; then
728if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
729  echo $ac_n "(cached) $ac_c" 1>&6
730else
731    # This must be in double quotes, not single quotes, because CPP may get
732  # substituted into the Makefile and "${CC-cc}" will confuse make.
733  CPP="${CC-cc} -E"
734  # On the NeXT, cc -E runs the code through the compiler's parser,
735  # not just through cpp.
736  cat > conftest.$ac_ext <<EOF
737#line 738 "configure"
738#include "confdefs.h"
739#include <assert.h>
740Syntax Error
741EOF
742ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
743{ (eval echo configure:744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
744ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
745if test -z "$ac_err"; then
746  :
747else
748  echo "$ac_err" >&5
749  echo "configure: failed program was:" >&5
750  cat conftest.$ac_ext >&5
751  rm -rf conftest*
752  CPP="${CC-cc} -E -traditional-cpp"
753  cat > conftest.$ac_ext <<EOF
754#line 755 "configure"
755#include "confdefs.h"
756#include <assert.h>
757Syntax Error
758EOF
759ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
760{ (eval echo configure:761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
761ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
762if test -z "$ac_err"; then
763  :
764else
765  echo "$ac_err" >&5
766  echo "configure: failed program was:" >&5
767  cat conftest.$ac_ext >&5
768  rm -rf conftest*
769  CPP="${CC-cc} -nologo -E"
770  cat > conftest.$ac_ext <<EOF
771#line 772 "configure"
772#include "confdefs.h"
773#include <assert.h>
774Syntax Error
775EOF
776ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
777{ (eval echo configure:778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
778ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
779if test -z "$ac_err"; then
780  :
781else
782  echo "$ac_err" >&5
783  echo "configure: failed program was:" >&5
784  cat conftest.$ac_ext >&5
785  rm -rf conftest*
786  CPP=/lib/cpp
787fi
788rm -f conftest*
789fi
790rm -f conftest*
791fi
792rm -f conftest*
793  ac_cv_prog_CPP="$CPP"
794fi
795  CPP="$ac_cv_prog_CPP"
796else
797  ac_cv_prog_CPP="$CPP"
798fi
799echo "$ac_t""$CPP" 1>&6
800
801for ac_hdr in pthread.h
802do
803ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
804echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
805echo "configure:806: checking for $ac_hdr" >&5
806if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
807  echo $ac_n "(cached) $ac_c" 1>&6
808else
809  cat > conftest.$ac_ext <<EOF
810#line 811 "configure"
811#include "confdefs.h"
812#include <$ac_hdr>
813EOF
814ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
815{ (eval echo configure:816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
816ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
817if test -z "$ac_err"; then
818  rm -rf conftest*
819  eval "ac_cv_header_$ac_safe=yes"
820else
821  echo "$ac_err" >&5
822  echo "configure: failed program was:" >&5
823  cat conftest.$ac_ext >&5
824  rm -rf conftest*
825  eval "ac_cv_header_$ac_safe=no"
826fi
827rm -f conftest*
828fi
829if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
830  echo "$ac_t""yes" 1>&6
831    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
832  cat >> confdefs.h <<EOF
833#define $ac_tr_hdr 1
834EOF
835
836else
837  echo "$ac_t""no" 1>&6
838fi
839done
840
841
842echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
843echo "configure:844: checking for Cygwin environment" >&5
844if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
845  echo $ac_n "(cached) $ac_c" 1>&6
846else
847  cat > conftest.$ac_ext <<EOF
848#line 849 "configure"
849#include "confdefs.h"
850
851int main() {
852
853#ifndef __CYGWIN__
854#define __CYGWIN__ __CYGWIN32__
855#endif
856return __CYGWIN__;
857; return 0; }
858EOF
859if { (eval echo configure:860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
860  rm -rf conftest*
861  ac_cv_cygwin=yes
862else
863  echo "configure: failed program was:" >&5
864  cat conftest.$ac_ext >&5
865  rm -rf conftest*
866  ac_cv_cygwin=no
867fi
868rm -f conftest*
869rm -f conftest*
870fi
871
872echo "$ac_t""$ac_cv_cygwin" 1>&6
873CYGWIN=
874test "$ac_cv_cygwin" = yes && CYGWIN=yes
875echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
876echo "configure:877: checking for mingw32 environment" >&5
877if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
878  echo $ac_n "(cached) $ac_c" 1>&6
879else
880  cat > conftest.$ac_ext <<EOF
881#line 882 "configure"
882#include "confdefs.h"
883
884int main() {
885return __MINGW32__;
886; return 0; }
887EOF
888if { (eval echo configure:889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
889  rm -rf conftest*
890  ac_cv_mingw32=yes
891else
892  echo "configure: failed program was:" >&5
893  cat conftest.$ac_ext >&5
894  rm -rf conftest*
895  ac_cv_mingw32=no
896fi
897rm -f conftest*
898rm -f conftest*
899fi
900
901echo "$ac_t""$ac_cv_mingw32" 1>&6
902MINGW32=
903test "$ac_cv_mingw32" = yes && MINGW32=yes
904
905
906echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
907echo "configure:908: checking for executable suffix" >&5
908if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
909  echo $ac_n "(cached) $ac_c" 1>&6
910else
911  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
912  ac_cv_exeext=.exe
913else
914  rm -f conftest*
915  echo 'int main () { return 0; }' > conftest.$ac_ext
916  ac_cv_exeext=
917  if { (eval echo configure:918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
918    for file in conftest.*; do
919      case $file in
920      *.c | *.o | *.obj | *.ilk | *.pdb) ;;
921      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
922      esac
923    done
924  else
925    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
926  fi
927  rm -f conftest*
928  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
929fi
930fi
931
932EXEEXT=""
933test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
934echo "$ac_t""${ac_cv_exeext}" 1>&6
935ac_exeext=$EXEEXT
936
937
938subdirs="$configdirs"
939
940trap '' 1 2 15
941cat > confcache <<\EOF
942# This file is a shell script that caches the results of configure
943# tests run on this system so they can be shared between configure
944# scripts and configure runs.  It is not useful on other systems.
945# If it contains results you don't want to keep, you may remove or edit it.
946#
947# By default, configure uses ./config.cache as the cache file,
948# creating it if it does not exist already.  You can give configure
949# the --cache-file=FILE option to use a different cache file; that is
950# what configure does when it calls configure scripts in
951# subdirectories, so they share the cache.
952# Giving --cache-file=/dev/null disables caching, for debugging configure.
953# config.status only pays attention to the cache file if you give it the
954# --recheck option to rerun configure.
955#
956EOF
957# The following way of writing the cache mishandles newlines in values,
958# but we know of no workaround that is simple, portable, and efficient.
959# So, don't put newlines in cache variables' values.
960# Ultrix sh set writes to stderr and can't be redirected directly,
961# and sets the high bit in the cache file unless we assign to the vars.
962(set) 2>&1 |
963  case `(ac_space=' '; set | grep ac_space) 2>&1` in
964  *ac_space=\ *)
965    # `set' does not quote correctly, so add quotes (double-quote substitution
966    # turns \\\\ into \\, and sed turns \\ into \).
967    sed -n \
968      -e "s/'/'\\\\''/g" \
969      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
970    ;;
971  *)
972    # `set' quotes correctly as required by POSIX, so do not add quotes.
973    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
974    ;;
975  esac >> confcache
976if cmp -s $cache_file confcache; then
977  :
978else
979  if test -w $cache_file; then
980    echo "updating cache $cache_file"
981    cat confcache > $cache_file
982  else
983    echo "not updating unwritable cache $cache_file"
984  fi
985fi
986rm -f confcache
987
988trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
989
990test "x$prefix" = xNONE && prefix=$ac_default_prefix
991# Let make expand exec_prefix.
992test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
993
994# Any assignment to VPATH causes Sun make to only execute
995# the first set of double-colon rules, so remove it if not needed.
996# If there is a colon in the path, we need to keep it.
997if test "x$srcdir" = x.; then
998  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
999fi
1000
1001trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1002
1003# Transform confdefs.h into DEFS.
1004# Protect against shell expansion while executing Makefile rules.
1005# Protect against Makefile macro expansion.
1006cat > conftest.defs <<\EOF
1007s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1008s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
1009s%\[%\\&%g
1010s%\]%\\&%g
1011s%\$%$$%g
1012EOF
1013DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1014rm -f conftest.defs
1015
1016
1017# Without the "./", some shells look in PATH for config.status.
1018: ${CONFIG_STATUS=./config.status}
1019
1020echo creating $CONFIG_STATUS
1021rm -f $CONFIG_STATUS
1022cat > $CONFIG_STATUS <<EOF
1023#! /bin/sh
1024# Generated automatically by configure.
1025# Run this file to recreate the current configuration.
1026# This directory was configured as follows,
1027# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1028#
1029# $0 $ac_configure_args
1030#
1031# Compiler output produced by configure, useful for debugging
1032# configure, is in ./config.log if it exists.
1033
1034ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1035for ac_option
1036do
1037  case "\$ac_option" in
1038  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1039    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1040    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1041  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1042    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1043    exit 0 ;;
1044  -help | --help | --hel | --he | --h)
1045    echo "\$ac_cs_usage"; exit 0 ;;
1046  *) echo "\$ac_cs_usage"; exit 1 ;;
1047  esac
1048done
1049
1050ac_given_srcdir=$srcdir
1051
1052trap 'rm -fr `echo "Makefile \
1053  gdb.ada/Makefile gdb.ada/gnat_ada.gpr:gdb.ada/gnat_ada.gin \
1054  gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \
1055  gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile \
1056  gdb.fortran/Makefile gdb.java/Makefile gdb.mi/Makefile \
1057  gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1058EOF
1059cat >> $CONFIG_STATUS <<EOF
1060
1061# Protect against being on the right side of a sed subst in config.status.
1062sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1063 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1064$ac_vpsub
1065$extrasub
1066s%@SHELL@%$SHELL%g
1067s%@CFLAGS@%$CFLAGS%g
1068s%@CPPFLAGS@%$CPPFLAGS%g
1069s%@CXXFLAGS@%$CXXFLAGS%g
1070s%@FFLAGS@%$FFLAGS%g
1071s%@DEFS@%$DEFS%g
1072s%@LDFLAGS@%$LDFLAGS%g
1073s%@LIBS@%$LIBS%g
1074s%@exec_prefix@%$exec_prefix%g
1075s%@prefix@%$prefix%g
1076s%@program_transform_name@%$program_transform_name%g
1077s%@bindir@%$bindir%g
1078s%@sbindir@%$sbindir%g
1079s%@libexecdir@%$libexecdir%g
1080s%@datadir@%$datadir%g
1081s%@sysconfdir@%$sysconfdir%g
1082s%@sharedstatedir@%$sharedstatedir%g
1083s%@localstatedir@%$localstatedir%g
1084s%@libdir@%$libdir%g
1085s%@includedir@%$includedir%g
1086s%@oldincludedir@%$oldincludedir%g
1087s%@infodir@%$infodir%g
1088s%@mandir@%$mandir%g
1089s%@build@%$build%g
1090s%@build_alias@%$build_alias%g
1091s%@build_cpu@%$build_cpu%g
1092s%@build_vendor@%$build_vendor%g
1093s%@build_os@%$build_os%g
1094s%@host@%$host%g
1095s%@host_alias@%$host_alias%g
1096s%@host_cpu@%$host_cpu%g
1097s%@host_vendor@%$host_vendor%g
1098s%@host_os@%$host_os%g
1099s%@target@%$target%g
1100s%@target_alias@%$target_alias%g
1101s%@target_cpu@%$target_cpu%g
1102s%@target_vendor@%$target_vendor%g
1103s%@target_os@%$target_os%g
1104s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
1105s%@CPP@%$CPP%g
1106s%@EXEEXT@%$EXEEXT%g
1107s%@subdirs@%$subdirs%g
1108
1109CEOF
1110EOF
1111
1112cat >> $CONFIG_STATUS <<\EOF
1113
1114# Split the substitutions into bite-sized pieces for seds with
1115# small command number limits, like on Digital OSF/1 and HP-UX.
1116ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1117ac_file=1 # Number of current file.
1118ac_beg=1 # First line for current file.
1119ac_end=$ac_max_sed_cmds # Line after last line for current file.
1120ac_more_lines=:
1121ac_sed_cmds=""
1122while $ac_more_lines; do
1123  if test $ac_beg -gt 1; then
1124    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1125  else
1126    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1127  fi
1128  if test ! -s conftest.s$ac_file; then
1129    ac_more_lines=false
1130    rm -f conftest.s$ac_file
1131  else
1132    if test -z "$ac_sed_cmds"; then
1133      ac_sed_cmds="sed -f conftest.s$ac_file"
1134    else
1135      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1136    fi
1137    ac_file=`expr $ac_file + 1`
1138    ac_beg=$ac_end
1139    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1140  fi
1141done
1142if test -z "$ac_sed_cmds"; then
1143  ac_sed_cmds=cat
1144fi
1145EOF
1146
1147cat >> $CONFIG_STATUS <<EOF
1148
1149CONFIG_FILES=\${CONFIG_FILES-"Makefile \
1150  gdb.ada/Makefile gdb.ada/gnat_ada.gpr:gdb.ada/gnat_ada.gin \
1151  gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \
1152  gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile \
1153  gdb.fortran/Makefile gdb.java/Makefile gdb.mi/Makefile \
1154  gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile"}
1155EOF
1156cat >> $CONFIG_STATUS <<\EOF
1157for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1158  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1159  case "$ac_file" in
1160  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1161       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1162  *) ac_file_in="${ac_file}.in" ;;
1163  esac
1164
1165  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1166
1167  # Remove last slash and all that follows it.  Not all systems have dirname.
1168  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1169  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1170    # The file is in a subdirectory.
1171    test ! -d "$ac_dir" && mkdir "$ac_dir"
1172    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1173    # A "../" for each directory in $ac_dir_suffix.
1174    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1175  else
1176    ac_dir_suffix= ac_dots=
1177  fi
1178
1179  case "$ac_given_srcdir" in
1180  .)  srcdir=.
1181      if test -z "$ac_dots"; then top_srcdir=.
1182      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1183  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1184  *) # Relative path.
1185    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1186    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1187  esac
1188
1189
1190  echo creating "$ac_file"
1191  rm -f "$ac_file"
1192  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1193  case "$ac_file" in
1194  *Makefile*) ac_comsub="1i\\
1195# $configure_input" ;;
1196  *) ac_comsub= ;;
1197  esac
1198
1199  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1200  sed -e "$ac_comsub
1201s%@configure_input@%$configure_input%g
1202s%@srcdir@%$srcdir%g
1203s%@top_srcdir@%$top_srcdir%g
1204" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1205fi; done
1206rm -f conftest.s*
1207
1208EOF
1209cat >> $CONFIG_STATUS <<EOF
1210
1211EOF
1212cat >> $CONFIG_STATUS <<\EOF
1213
1214exit 0
1215EOF
1216chmod +x $CONFIG_STATUS
1217rm -fr confdefs* $ac_clean_files
1218test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1219
1220if test "$no_recursion" != yes; then
1221
1222  # Remove --cache-file and --srcdir arguments so they do not pile up.
1223  ac_sub_configure_args=
1224  ac_prev=
1225  for ac_arg in $ac_configure_args; do
1226    if test -n "$ac_prev"; then
1227      ac_prev=
1228      continue
1229    fi
1230    case "$ac_arg" in
1231    -cache-file | --cache-file | --cache-fil | --cache-fi \
1232    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1233      ac_prev=cache_file ;;
1234    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1235    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1236      ;;
1237    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1238      ac_prev=srcdir ;;
1239    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1240      ;;
1241    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1242    esac
1243  done
1244
1245  for ac_config_dir in $configdirs; do
1246
1247    # Do not complain, so a configure script can configure whichever
1248    # parts of a large source tree are present.
1249    if test ! -d $srcdir/$ac_config_dir; then
1250      continue
1251    fi
1252
1253    echo configuring in $ac_config_dir
1254
1255    case "$srcdir" in
1256    .) ;;
1257    *)
1258      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1259      else
1260        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1261      fi
1262      ;;
1263    esac
1264
1265    ac_popdir=`pwd`
1266    cd $ac_config_dir
1267
1268      # A "../" for each directory in /$ac_config_dir.
1269      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1270
1271    case "$srcdir" in
1272    .) # No --srcdir option.  We are building in place.
1273      ac_sub_srcdir=$srcdir ;;
1274    /*) # Absolute path.
1275      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1276    *) # Relative path.
1277      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1278    esac
1279
1280    # Check for guested configure; otherwise get Cygnus style configure.
1281    if test -f $ac_sub_srcdir/configure; then
1282      ac_sub_configure=$ac_sub_srcdir/configure
1283    elif test -f $ac_sub_srcdir/configure.in; then
1284      ac_sub_configure=$ac_configure
1285    else
1286      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1287      ac_sub_configure=
1288    fi
1289
1290    # The recursion is here.
1291    if test -n "$ac_sub_configure"; then
1292
1293      # Make the cache file name correct relative to the subdirectory.
1294      case "$cache_file" in
1295      /*) ac_sub_cache_file=$cache_file ;;
1296      *) # Relative path.
1297        ac_sub_cache_file="$ac_dots$cache_file" ;;
1298      esac
1299
1300      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1301      # The eval makes quoting arguments work.
1302      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1303      then :
1304      else
1305        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1306      fi
1307    fi
1308
1309    cd $ac_popdir
1310  done
1311fi
1312
1313