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