daily update
[deliverable/binutils-gdb.git] / gdb / testsuite / configure
CommitLineData
c906108c
SS
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
b39c905e 15 --with-stabs arrange to use stabs instead of host debug format"
7a292a7a 16ac_help="$ac_help
b39c905e
MK
17 --enable-gtk enable gdbtk graphical user interface (GUI)"
18ac_help="$ac_help
19 --enable-shared build shared libraries [deault=yes]"
c906108c
SS
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=
b39c905e 37sitefile=
c906108c
SS
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
b39c905e 152 --site-file=FILE use FILE as the site file
c906108c
SS
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
b39c905e
MK
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
c906108c
SS
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.
b39c905e
MK
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
c906108c 500 fi
b39c905e
MK
501else
502 CONFIG_SITE="$sitefile"
c906108c
SS
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
dc62bfc2 542
c906108c 543ac_aux_dir=
b39c905e 544for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
c906108c
SS
545 if test -f $ac_dir/install-sh; then
546 ac_aux_dir=$ac_dir
547 ac_install_sh="$ac_aux_dir/install-sh -c"
548 break
549 elif test -f $ac_dir/install.sh; then
550 ac_aux_dir=$ac_dir
551 ac_install_sh="$ac_aux_dir/install.sh -c"
552 break
553 fi
554done
555if test -z "$ac_aux_dir"; then
b39c905e 556 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
c906108c
SS
557fi
558ac_config_guess=$ac_aux_dir/config.guess
559ac_config_sub=$ac_aux_dir/config.sub
560ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
561
b39c905e 562echo $ac_n "checking build system type""... $ac_c" 1>&6
dc62bfc2 563echo "configure:564: checking build system type" >&5
c906108c 564
b39c905e
MK
565build_alias=$build
566case "$build_alias" in
567NONE)
568 case $nonopt in
569 NONE) build_alias=$host_alias ;;
570 *) build_alias=$nonopt ;;
571 esac ;;
c906108c
SS
572esac
573
b39c905e
MK
574build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
575build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
576build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
577build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
578echo "$ac_t""$build" 1>&6
579
c906108c
SS
580
581# Make sure we can run config.sub.
582if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
583else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
584fi
585
586echo $ac_n "checking host system type""... $ac_c" 1>&6
dc62bfc2 587echo "configure:588: checking host system type" >&5
c906108c
SS
588
589host_alias=$host
590case "$host_alias" in
591NONE)
592 case $nonopt in
593 NONE)
594 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
595 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
596 fi ;;
597 *) host_alias=$nonopt ;;
598 esac ;;
599esac
600
601host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
602host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
603host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
604host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
605echo "$ac_t""$host" 1>&6
606
607echo $ac_n "checking target system type""... $ac_c" 1>&6
dc62bfc2 608echo "configure:609: checking target system type" >&5
c906108c
SS
609
610target_alias=$target
611case "$target_alias" in
612NONE)
613 case $nonopt in
614 NONE) target_alias=$host_alias ;;
615 *) target_alias=$nonopt ;;
616 esac ;;
617esac
618
619target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
620target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
621target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
622target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
623echo "$ac_t""$target" 1>&6
624
c906108c 625
dc62bfc2 626# Directories that need to be configured in all configurations.
b39c905e 627configdirs=
c906108c 628
b39c905e
MK
629# Add HP-specific tests when appropriate.
630case $target in
631 hppa*-*-hpux*)
632 configdirs="$configdirs gdb.hp" ;;
c906108c
SS
633esac
634
b39c905e
MK
635# With stabs.
636# Check whether --with-stabs or --without-stabs was given.
637if test "${with_stabs+set}" = set; then
638 withval="$with_stabs"
639 :
640else
641 # We enable stabs tests by default on selected targets.
642case $target in
643 powerpc-*-aix* \
644 | rs6000-*-aix* \
645 | *-*-bsd* \
646 | *-*-go32* \
647 | *-*-linux* \
648 | *-*-lynxos* \
649 | *-sun-* \
650 | hppa*-*-* \
651 | *-*-elf* \
652 )
653 with_stabs=yes ;;
654 *)
655 with_stabs=no ;;
c906108c
SS
656esac
657fi
b39c905e
MK
658
659
660# Add stabs tests when appropriate.
661if test $with_stabs = yes; then
662 configdirs="$configdirs gdb.stabs"
c906108c
SS
663fi
664
b39c905e 665# Enable gdbtk.
3fc11d3e
JM
666# Check whether --enable-gdbtk or --disable-gdbtk was given.
667if test "${enable_gdbtk+set}" = set; then
668 enableval="$enable_gdbtk"
b39c905e 669 :
3fc11d3e 670else
b39c905e
MK
671 if test -d $srcdir/gdb.gdbtk; then
672 enable_gdbtk=yes
673 else
674 enable_gdbtk=no
675 fi
676fi
3fc11d3e 677
b39c905e
MK
678# We unconditionally disable gdbtk tests on selected platforms.
679case $host_os in
680 go32* | windows*)
681 enable_gdbtk=no ;;
682esac
683
684# Add gdbtk tests when appropriate.
685if test $enable_gdbtk = yes; then
686 configdirs="$configdirs gdb.gdbtk"
3fc11d3e
JM
687fi
688
b39c905e
MK
689# Enable shared libraries.
690# Check whether --enable-shared or --disable-shared was given.
691if test "${enable_shared+set}" = set; then
692 enableval="$enable_shared"
693 :
694else
695 enable_shared=yes
696fi
3fc11d3e 697
b39c905e
MK
698
699# If we have shared libraries, try to set RPATH_ENVVAR reasonably,
700# such that we can find the shared libraries in the build tree.
701if test $enable_shared = no; then
702 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
703 # platform.
704 RPATH_ENVVAR=RPATH_ENVVAR
705else
706 # The variable `LD_LIBRARY_PATH' is used on most platforms.
707 RPATH_ENVVAR=LD_LIBRARY_PATH
708 # The following exceptions are taken from Libtool 1.4.3.
709 case $host_os in
710 aix*)
711 if test $host_cpu != ia64; then
712 RPATH_ENVVAR=LIBPATH
713 fi ;;
714 darwin* | rhapsody*)
715 RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
716 hpux*)
717 RPATH_ENVVAR=SHLIB_PATH ;;
718 esac
3fc11d3e 719fi
b39c905e 720
c906108c 721
dc62bfc2
MK
722echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
723echo "configure:724: checking how to run the C preprocessor" >&5
724# On Suns, sometimes $CPP names a directory.
725if test -n "$CPP" && test -d "$CPP"; then
726 CPP=
727fi
728if test -z "$CPP"; then
729if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&6
731else
732 # This must be in double quotes, not single quotes, because CPP may get
733 # substituted into the Makefile and "${CC-cc}" will confuse make.
734 CPP="${CC-cc} -E"
735 # On the NeXT, cc -E runs the code through the compiler's parser,
736 # not just through cpp.
737 cat > conftest.$ac_ext <<EOF
738#line 739 "configure"
739#include "confdefs.h"
740#include <assert.h>
741Syntax Error
742EOF
743ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
744{ (eval echo configure:745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
745ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
746if test -z "$ac_err"; then
747 :
748else
749 echo "$ac_err" >&5
750 echo "configure: failed program was:" >&5
751 cat conftest.$ac_ext >&5
752 rm -rf conftest*
753 CPP="${CC-cc} -E -traditional-cpp"
754 cat > conftest.$ac_ext <<EOF
755#line 756 "configure"
756#include "confdefs.h"
757#include <assert.h>
758Syntax Error
759EOF
760ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
761{ (eval echo configure:762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
762ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
763if test -z "$ac_err"; then
764 :
765else
766 echo "$ac_err" >&5
767 echo "configure: failed program was:" >&5
768 cat conftest.$ac_ext >&5
769 rm -rf conftest*
770 CPP="${CC-cc} -nologo -E"
771 cat > conftest.$ac_ext <<EOF
772#line 773 "configure"
773#include "confdefs.h"
774#include <assert.h>
775Syntax Error
776EOF
777ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
778{ (eval echo configure:779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
779ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
780if test -z "$ac_err"; then
781 :
782else
783 echo "$ac_err" >&5
784 echo "configure: failed program was:" >&5
785 cat conftest.$ac_ext >&5
786 rm -rf conftest*
787 CPP=/lib/cpp
788fi
789rm -f conftest*
790fi
791rm -f conftest*
792fi
793rm -f conftest*
794 ac_cv_prog_CPP="$CPP"
795fi
796 CPP="$ac_cv_prog_CPP"
797else
798 ac_cv_prog_CPP="$CPP"
799fi
800echo "$ac_t""$CPP" 1>&6
801
802for ac_hdr in pthread.h
803do
804ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
805echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
806echo "configure:807: checking for $ac_hdr" >&5
807if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
809else
810 cat > conftest.$ac_ext <<EOF
811#line 812 "configure"
812#include "confdefs.h"
813#include <$ac_hdr>
814EOF
815ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
816{ (eval echo configure:817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
817ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
818if test -z "$ac_err"; then
819 rm -rf conftest*
820 eval "ac_cv_header_$ac_safe=yes"
821else
822 echo "$ac_err" >&5
823 echo "configure: failed program was:" >&5
824 cat conftest.$ac_ext >&5
825 rm -rf conftest*
826 eval "ac_cv_header_$ac_safe=no"
827fi
828rm -f conftest*
829fi
830if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
831 echo "$ac_t""yes" 1>&6
832 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
833 cat >> confdefs.h <<EOF
834#define $ac_tr_hdr 1
835EOF
836
837else
838 echo "$ac_t""no" 1>&6
839fi
840done
841
842
93076499 843echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
dc62bfc2 844echo "configure:845: checking for Cygwin environment" >&5
93076499
ND
845if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
847else
848 cat > conftest.$ac_ext <<EOF
dc62bfc2 849#line 850 "configure"
93076499
ND
850#include "confdefs.h"
851
852int main() {
853
854#ifndef __CYGWIN__
855#define __CYGWIN__ __CYGWIN32__
856#endif
857return __CYGWIN__;
858; return 0; }
859EOF
dc62bfc2 860if { (eval echo configure:861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
93076499
ND
861 rm -rf conftest*
862 ac_cv_cygwin=yes
863else
864 echo "configure: failed program was:" >&5
865 cat conftest.$ac_ext >&5
866 rm -rf conftest*
867 ac_cv_cygwin=no
868fi
869rm -f conftest*
870rm -f conftest*
871fi
872
873echo "$ac_t""$ac_cv_cygwin" 1>&6
874CYGWIN=
875test "$ac_cv_cygwin" = yes && CYGWIN=yes
876echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
dc62bfc2 877echo "configure:878: checking for mingw32 environment" >&5
93076499
ND
878if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
879 echo $ac_n "(cached) $ac_c" 1>&6
880else
881 cat > conftest.$ac_ext <<EOF
dc62bfc2 882#line 883 "configure"
93076499
ND
883#include "confdefs.h"
884
885int main() {
886return __MINGW32__;
887; return 0; }
888EOF
dc62bfc2 889if { (eval echo configure:890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
93076499
ND
890 rm -rf conftest*
891 ac_cv_mingw32=yes
892else
893 echo "configure: failed program was:" >&5
894 cat conftest.$ac_ext >&5
895 rm -rf conftest*
896 ac_cv_mingw32=no
897fi
898rm -f conftest*
899rm -f conftest*
900fi
901
902echo "$ac_t""$ac_cv_mingw32" 1>&6
903MINGW32=
904test "$ac_cv_mingw32" = yes && MINGW32=yes
905
906
907echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
dc62bfc2 908echo "configure:909: checking for executable suffix" >&5
93076499
ND
909if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
911else
912 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
913 ac_cv_exeext=.exe
914else
915 rm -f conftest*
916 echo 'int main () { return 0; }' > conftest.$ac_ext
917 ac_cv_exeext=
dc62bfc2 918 if { (eval echo configure:919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
93076499
ND
919 for file in conftest.*; do
920 case $file in
b39c905e 921 *.c | *.C | *.o | *.obj | *.ilk | *.pdb) ;;
93076499
ND
922 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
923 esac
924 done
925 else
926 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
927 fi
928 rm -f conftest*
929 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
930fi
931fi
932
933EXEEXT=""
934test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
935echo "$ac_t""${ac_cv_exeext}" 1>&6
936ac_exeext=$EXEEXT
937
938
dc62bfc2 939subdirs="$configdirs"
c906108c
SS
940
941trap '' 1 2 15
942cat > confcache <<\EOF
943# This file is a shell script that caches the results of configure
944# tests run on this system so they can be shared between configure
945# scripts and configure runs. It is not useful on other systems.
946# If it contains results you don't want to keep, you may remove or edit it.
947#
948# By default, configure uses ./config.cache as the cache file,
949# creating it if it does not exist already. You can give configure
950# the --cache-file=FILE option to use a different cache file; that is
951# what configure does when it calls configure scripts in
952# subdirectories, so they share the cache.
953# Giving --cache-file=/dev/null disables caching, for debugging configure.
954# config.status only pays attention to the cache file if you give it the
955# --recheck option to rerun configure.
956#
957EOF
958# The following way of writing the cache mishandles newlines in values,
959# but we know of no workaround that is simple, portable, and efficient.
960# So, don't put newlines in cache variables' values.
961# Ultrix sh set writes to stderr and can't be redirected directly,
962# and sets the high bit in the cache file unless we assign to the vars.
963(set) 2>&1 |
964 case `(ac_space=' '; set | grep ac_space) 2>&1` in
965 *ac_space=\ *)
966 # `set' does not quote correctly, so add quotes (double-quote substitution
967 # turns \\\\ into \\, and sed turns \\ into \).
968 sed -n \
969 -e "s/'/'\\\\''/g" \
970 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
971 ;;
972 *)
973 # `set' quotes correctly as required by POSIX, so do not add quotes.
974 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
975 ;;
976 esac >> confcache
977if cmp -s $cache_file confcache; then
978 :
979else
980 if test -w $cache_file; then
981 echo "updating cache $cache_file"
982 cat confcache > $cache_file
983 else
984 echo "not updating unwritable cache $cache_file"
985 fi
986fi
987rm -f confcache
988
989trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
990
991test "x$prefix" = xNONE && prefix=$ac_default_prefix
992# Let make expand exec_prefix.
993test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
994
995# Any assignment to VPATH causes Sun make to only execute
996# the first set of double-colon rules, so remove it if not needed.
997# If there is a colon in the path, we need to keep it.
998if test "x$srcdir" = x.; then
999 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1000fi
1001
1002trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1003
dc62bfc2 1004DEFS=-DHAVE_CONFIG_H
c906108c
SS
1005
1006# Without the "./", some shells look in PATH for config.status.
1007: ${CONFIG_STATUS=./config.status}
1008
1009echo creating $CONFIG_STATUS
1010rm -f $CONFIG_STATUS
1011cat > $CONFIG_STATUS <<EOF
1012#! /bin/sh
1013# Generated automatically by configure.
1014# Run this file to recreate the current configuration.
1015# This directory was configured as follows,
1016# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1017#
1018# $0 $ac_configure_args
1019#
1020# Compiler output produced by configure, useful for debugging
1021# configure, is in ./config.log if it exists.
1022
1023ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1024for ac_option
1025do
1026 case "\$ac_option" in
1027 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1028 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1029 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1030 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1031 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1032 exit 0 ;;
1033 -help | --help | --hel | --he | --h)
1034 echo "\$ac_cs_usage"; exit 0 ;;
1035 *) echo "\$ac_cs_usage"; exit 1 ;;
1036 esac
1037done
1038
1039ac_given_srcdir=$srcdir
1040
dc62bfc2
MK
1041trap 'rm -fr `echo "Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \
1042 gdb.c++/Makefile gdb.disasm/Makefile gdb.java/Makefile gdb.mi/Makefile \
1043 gdb.threads/Makefile gdb.trace/Makefile config.h:config.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
c906108c
SS
1044EOF
1045cat >> $CONFIG_STATUS <<EOF
1046
1047# Protect against being on the right side of a sed subst in config.status.
1048sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1049 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1050$ac_vpsub
1051$extrasub
1052s%@SHELL@%$SHELL%g
1053s%@CFLAGS@%$CFLAGS%g
1054s%@CPPFLAGS@%$CPPFLAGS%g
1055s%@CXXFLAGS@%$CXXFLAGS%g
1056s%@FFLAGS@%$FFLAGS%g
1057s%@DEFS@%$DEFS%g
1058s%@LDFLAGS@%$LDFLAGS%g
1059s%@LIBS@%$LIBS%g
1060s%@exec_prefix@%$exec_prefix%g
1061s%@prefix@%$prefix%g
1062s%@program_transform_name@%$program_transform_name%g
1063s%@bindir@%$bindir%g
1064s%@sbindir@%$sbindir%g
1065s%@libexecdir@%$libexecdir%g
1066s%@datadir@%$datadir%g
1067s%@sysconfdir@%$sysconfdir%g
1068s%@sharedstatedir@%$sharedstatedir%g
1069s%@localstatedir@%$localstatedir%g
1070s%@libdir@%$libdir%g
1071s%@includedir@%$includedir%g
1072s%@oldincludedir@%$oldincludedir%g
1073s%@infodir@%$infodir%g
1074s%@mandir@%$mandir%g
b39c905e
MK
1075s%@build@%$build%g
1076s%@build_alias@%$build_alias%g
1077s%@build_cpu@%$build_cpu%g
1078s%@build_vendor@%$build_vendor%g
1079s%@build_os@%$build_os%g
c906108c
SS
1080s%@host@%$host%g
1081s%@host_alias@%$host_alias%g
1082s%@host_cpu@%$host_cpu%g
1083s%@host_vendor@%$host_vendor%g
1084s%@host_os@%$host_os%g
1085s%@target@%$target%g
1086s%@target_alias@%$target_alias%g
1087s%@target_cpu@%$target_cpu%g
1088s%@target_vendor@%$target_vendor%g
1089s%@target_os@%$target_os%g
c906108c 1090s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
dc62bfc2 1091s%@CPP@%$CPP%g
93076499 1092s%@EXEEXT@%$EXEEXT%g
dc62bfc2 1093s%@subdirs@%$subdirs%g
c906108c
SS
1094
1095CEOF
1096EOF
1097
1098cat >> $CONFIG_STATUS <<\EOF
1099
1100# Split the substitutions into bite-sized pieces for seds with
1101# small command number limits, like on Digital OSF/1 and HP-UX.
1102ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1103ac_file=1 # Number of current file.
1104ac_beg=1 # First line for current file.
1105ac_end=$ac_max_sed_cmds # Line after last line for current file.
1106ac_more_lines=:
1107ac_sed_cmds=""
1108while $ac_more_lines; do
1109 if test $ac_beg -gt 1; then
1110 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1111 else
1112 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1113 fi
1114 if test ! -s conftest.s$ac_file; then
1115 ac_more_lines=false
1116 rm -f conftest.s$ac_file
1117 else
1118 if test -z "$ac_sed_cmds"; then
1119 ac_sed_cmds="sed -f conftest.s$ac_file"
1120 else
1121 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1122 fi
1123 ac_file=`expr $ac_file + 1`
1124 ac_beg=$ac_end
1125 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1126 fi
1127done
1128if test -z "$ac_sed_cmds"; then
1129 ac_sed_cmds=cat
1130fi
1131EOF
1132
1133cat >> $CONFIG_STATUS <<EOF
1134
dc62bfc2
MK
1135CONFIG_FILES=\${CONFIG_FILES-"Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \
1136 gdb.c++/Makefile gdb.disasm/Makefile gdb.java/Makefile gdb.mi/Makefile \
1137 gdb.threads/Makefile gdb.trace/Makefile"}
c906108c
SS
1138EOF
1139cat >> $CONFIG_STATUS <<\EOF
1140for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1141 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1142 case "$ac_file" in
1143 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1144 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1145 *) ac_file_in="${ac_file}.in" ;;
1146 esac
1147
1148 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1149
1150 # Remove last slash and all that follows it. Not all systems have dirname.
1151 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1152 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1153 # The file is in a subdirectory.
1154 test ! -d "$ac_dir" && mkdir "$ac_dir"
1155 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1156 # A "../" for each directory in $ac_dir_suffix.
1157 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1158 else
1159 ac_dir_suffix= ac_dots=
1160 fi
1161
1162 case "$ac_given_srcdir" in
1163 .) srcdir=.
1164 if test -z "$ac_dots"; then top_srcdir=.
1165 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1166 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1167 *) # Relative path.
1168 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1169 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1170 esac
1171
1172
1173 echo creating "$ac_file"
1174 rm -f "$ac_file"
1175 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1176 case "$ac_file" in
1177 *Makefile*) ac_comsub="1i\\
1178# $configure_input" ;;
1179 *) ac_comsub= ;;
1180 esac
1181
1182 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1183 sed -e "$ac_comsub
1184s%@configure_input@%$configure_input%g
1185s%@srcdir@%$srcdir%g
1186s%@top_srcdir@%$top_srcdir%g
1187" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1188fi; done
1189rm -f conftest.s*
1190
dc62bfc2
MK
1191# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1192# NAME is the cpp macro being defined and VALUE is the value it is being given.
1193#
1194# ac_d sets the value in "#define NAME VALUE" lines.
1195ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1196ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1197ac_dC='\3'
1198ac_dD='%g'
1199# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1200ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1201ac_uB='\([ ]\)%\1#\2define\3'
1202ac_uC=' '
1203ac_uD='\4%g'
1204# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1205ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1206ac_eB='$%\1#\2define\3'
1207ac_eC=' '
1208ac_eD='%g'
1209
1210if test "${CONFIG_HEADERS+set}" != set; then
1211EOF
1212cat >> $CONFIG_STATUS <<EOF
1213 CONFIG_HEADERS="config.h:config.hin"
1214EOF
1215cat >> $CONFIG_STATUS <<\EOF
1216fi
1217for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1218 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1219 case "$ac_file" in
1220 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1221 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1222 *) ac_file_in="${ac_file}.in" ;;
1223 esac
1224
1225 echo creating $ac_file
1226
1227 rm -f conftest.frag conftest.in conftest.out
1228 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1229 cat $ac_file_inputs > conftest.in
1230
1231EOF
1232
1233# Transform confdefs.h into a sed script conftest.vals that substitutes
1234# the proper values into config.h.in to produce config.h. And first:
1235# Protect against being on the right side of a sed subst in config.status.
1236# Protect against being in an unquoted here document in config.status.
1237rm -f conftest.vals
1238cat > conftest.hdr <<\EOF
1239s/[\\&%]/\\&/g
1240s%[\\$`]%\\&%g
1241s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1242s%ac_d%ac_u%gp
1243s%ac_u%ac_e%gp
1244EOF
1245sed -n -f conftest.hdr confdefs.h > conftest.vals
1246rm -f conftest.hdr
1247
1248# This sed command replaces #undef with comments. This is necessary, for
1249# example, in the case of _POSIX_SOURCE, which is predefined and required
1250# on some systems where configure will not decide to define it.
1251cat >> conftest.vals <<\EOF
1252s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1253EOF
1254
1255# Break up conftest.vals because some shells have a limit on
1256# the size of here documents, and old seds have small limits too.
1257
1258rm -f conftest.tail
1259while :
1260do
1261 ac_lines=`grep -c . conftest.vals`
1262 # grep -c gives empty output for an empty file on some AIX systems.
1263 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1264 # Write a limited-size here document to conftest.frag.
1265 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1266 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1267 echo 'CEOF
1268 sed -f conftest.frag conftest.in > conftest.out
1269 rm -f conftest.in
1270 mv conftest.out conftest.in
1271' >> $CONFIG_STATUS
1272 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1273 rm -f conftest.vals
1274 mv conftest.tail conftest.vals
1275done
1276rm -f conftest.vals
1277
1278cat >> $CONFIG_STATUS <<\EOF
1279 rm -f conftest.frag conftest.h
1280 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1281 cat conftest.in >> conftest.h
1282 rm -f conftest.in
1283 if cmp -s $ac_file conftest.h 2>/dev/null; then
1284 echo "$ac_file is unchanged"
1285 rm -f conftest.h
1286 else
1287 # Remove last slash and all that follows it. Not all systems have dirname.
1288 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1289 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1290 # The file is in a subdirectory.
1291 test ! -d "$ac_dir" && mkdir "$ac_dir"
1292 fi
1293 rm -f $ac_file
1294 mv conftest.h $ac_file
1295 fi
1296fi; done
1297
c906108c
SS
1298EOF
1299cat >> $CONFIG_STATUS <<EOF
1300
1301EOF
1302cat >> $CONFIG_STATUS <<\EOF
1303
1304exit 0
1305EOF
1306chmod +x $CONFIG_STATUS
1307rm -fr confdefs* $ac_clean_files
1308test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1309
1310if test "$no_recursion" != yes; then
1311
1312 # Remove --cache-file and --srcdir arguments so they do not pile up.
1313 ac_sub_configure_args=
1314 ac_prev=
1315 for ac_arg in $ac_configure_args; do
1316 if test -n "$ac_prev"; then
1317 ac_prev=
1318 continue
1319 fi
1320 case "$ac_arg" in
1321 -cache-file | --cache-file | --cache-fil | --cache-fi \
1322 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1323 ac_prev=cache_file ;;
1324 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1325 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1326 ;;
1327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1328 ac_prev=srcdir ;;
1329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1330 ;;
1331 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1332 esac
1333 done
1334
dc62bfc2 1335 for ac_config_dir in $configdirs; do
c906108c
SS
1336
1337 # Do not complain, so a configure script can configure whichever
1338 # parts of a large source tree are present.
1339 if test ! -d $srcdir/$ac_config_dir; then
1340 continue
1341 fi
1342
1343 echo configuring in $ac_config_dir
1344
1345 case "$srcdir" in
1346 .) ;;
1347 *)
1348 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1349 else
1350 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1351 fi
1352 ;;
1353 esac
1354
1355 ac_popdir=`pwd`
1356 cd $ac_config_dir
1357
1358 # A "../" for each directory in /$ac_config_dir.
1359 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1360
1361 case "$srcdir" in
1362 .) # No --srcdir option. We are building in place.
1363 ac_sub_srcdir=$srcdir ;;
1364 /*) # Absolute path.
1365 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1366 *) # Relative path.
1367 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1368 esac
1369
1370 # Check for guested configure; otherwise get Cygnus style configure.
1371 if test -f $ac_sub_srcdir/configure; then
1372 ac_sub_configure=$ac_sub_srcdir/configure
1373 elif test -f $ac_sub_srcdir/configure.in; then
1374 ac_sub_configure=$ac_configure
1375 else
1376 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1377 ac_sub_configure=
1378 fi
1379
1380 # The recursion is here.
1381 if test -n "$ac_sub_configure"; then
1382
1383 # Make the cache file name correct relative to the subdirectory.
1384 case "$cache_file" in
1385 /*) ac_sub_cache_file=$cache_file ;;
1386 *) # Relative path.
1387 ac_sub_cache_file="$ac_dots$cache_file" ;;
1388 esac
1389
1390 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1391 # The eval makes quoting arguments work.
1392 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1393 then :
1394 else
1395 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1396 fi
1397 fi
1398
1399 cd $ac_popdir
1400 done
1401fi
1402
This page took 0.369466 seconds and 4 git commands to generate.