* configure.in: Call AC_CONFIG_HEADER. Don't call
[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 sitefile=
38 srcdir=
39 target=NONE
40 verbose=
41 x_includes=NONE
42 x_libraries=NONE
43 bindir='${exec_prefix}/bin'
44 sbindir='${exec_prefix}/sbin'
45 libexecdir='${exec_prefix}/libexec'
46 datadir='${prefix}/share'
47 sysconfdir='${prefix}/etc'
48 sharedstatedir='${prefix}/com'
49 localstatedir='${prefix}/var'
50 libdir='${exec_prefix}/lib'
51 includedir='${prefix}/include'
52 oldincludedir='/usr/include'
53 infodir='${prefix}/info'
54 mandir='${prefix}/man'
55
56 # Initialize some other variables.
57 subdirs=
58 MFLAGS= MAKEFLAGS=
59 SHELL=${CONFIG_SHELL-/bin/sh}
60 # Maximum number of lines to put in a shell here document.
61 ac_max_here_lines=12
62
63 ac_prev=
64 for ac_option
65 do
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
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
147 Configuration:
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --site-file=FILE use FILE as the site file
153 --version print the version of autoconf that created configure
154 Directory 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
178 EOF
179 cat << EOF
180 Host 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]
184 Features 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
191 EOF
192 if test -n "$ac_help"; then
193 echo "--enable and --with options recognized:$ac_help"
194 fi
195 exit 0 ;;
196
197 -host | --host | --hos | --ho)
198 ac_prev=host ;;
199 -host=* | --host=* | --hos=* | --ho=*)
200 host="$ac_optarg" ;;
201
202 -includedir | --includedir | --includedi | --included | --include \
203 | --includ | --inclu | --incl | --inc)
204 ac_prev=includedir ;;
205 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206 | --includ=* | --inclu=* | --incl=* | --inc=*)
207 includedir="$ac_optarg" ;;
208
209 -infodir | --infodir | --infodi | --infod | --info | --inf)
210 ac_prev=infodir ;;
211 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212 infodir="$ac_optarg" ;;
213
214 -libdir | --libdir | --libdi | --libd)
215 ac_prev=libdir ;;
216 -libdir=* | --libdir=* | --libdi=* | --libd=*)
217 libdir="$ac_optarg" ;;
218
219 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220 | --libexe | --libex | --libe)
221 ac_prev=libexecdir ;;
222 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223 | --libexe=* | --libex=* | --libe=*)
224 libexecdir="$ac_optarg" ;;
225
226 -localstatedir | --localstatedir | --localstatedi | --localstated \
227 | --localstate | --localstat | --localsta | --localst \
228 | --locals | --local | --loca | --loc | --lo)
229 ac_prev=localstatedir ;;
230 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233 localstatedir="$ac_optarg" ;;
234
235 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236 ac_prev=mandir ;;
237 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238 mandir="$ac_optarg" ;;
239
240 -nfp | --nfp | --nf)
241 # Obsolete; use --without-fp.
242 with_fp=no ;;
243
244 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245 | --no-cr | --no-c)
246 no_create=yes ;;
247
248 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
249 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250 no_recursion=yes ;;
251
252 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254 | --oldin | --oldi | --old | --ol | --o)
255 ac_prev=oldincludedir ;;
256 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259 oldincludedir="$ac_optarg" ;;
260
261 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262 ac_prev=prefix ;;
263 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264 prefix="$ac_optarg" ;;
265
266 -program-prefix | --program-prefix | --program-prefi | --program-pref \
267 | --program-pre | --program-pr | --program-p)
268 ac_prev=program_prefix ;;
269 -program-prefix=* | --program-prefix=* | --program-prefi=* \
270 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271 program_prefix="$ac_optarg" ;;
272
273 -program-suffix | --program-suffix | --program-suffi | --program-suff \
274 | --program-suf | --program-su | --program-s)
275 ac_prev=program_suffix ;;
276 -program-suffix=* | --program-suffix=* | --program-suffi=* \
277 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278 program_suffix="$ac_optarg" ;;
279
280 -program-transform-name | --program-transform-name \
281 | --program-transform-nam | --program-transform-na \
282 | --program-transform-n | --program-transform- \
283 | --program-transform | --program-transfor \
284 | --program-transfo | --program-transf \
285 | --program-trans | --program-tran \
286 | --progr-tra | --program-tr | --program-t)
287 ac_prev=program_transform_name ;;
288 -program-transform-name=* | --program-transform-name=* \
289 | --program-transform-nam=* | --program-transform-na=* \
290 | --program-transform-n=* | --program-transform-=* \
291 | --program-transform=* | --program-transfor=* \
292 | --program-transfo=* | --program-transf=* \
293 | --program-trans=* | --program-tran=* \
294 | --progr-tra=* | --program-tr=* | --program-t=*)
295 program_transform_name="$ac_optarg" ;;
296
297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298 | -silent | --silent | --silen | --sile | --sil)
299 silent=yes ;;
300
301 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
302 ac_prev=sbindir ;;
303 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304 | --sbi=* | --sb=*)
305 sbindir="$ac_optarg" ;;
306
307 -sharedstatedir | --sharedstatedir | --sharedstatedi \
308 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309 | --sharedst | --shareds | --shared | --share | --shar \
310 | --sha | --sh)
311 ac_prev=sharedstatedir ;;
312 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315 | --sha=* | --sh=*)
316 sharedstatedir="$ac_optarg" ;;
317
318 -site | --site | --sit)
319 ac_prev=site ;;
320 -site=* | --site=* | --sit=*)
321 site="$ac_optarg" ;;
322
323 -site-file | --site-file | --site-fil | --site-fi | --site-f)
324 ac_prev=sitefile ;;
325 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
326 sitefile="$ac_optarg" ;;
327
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 ac_prev=srcdir ;;
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
332
333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
339
340 -target | --target | --targe | --targ | --tar | --ta | --t)
341 ac_prev=target ;;
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
344
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
346 verbose=yes ;;
347
348 -version | --version | --versio | --versi | --vers)
349 echo "configure generated by autoconf version 2.13"
350 exit 0 ;;
351
352 -with-* | --with-*)
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 fi
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 case "$ac_option" in
360 *=*) ;;
361 *) ac_optarg=yes ;;
362 esac
363 eval "with_${ac_package}='$ac_optarg'" ;;
364
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 fi
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
373
374 --x)
375 # Obsolete; use --with-x.
376 with_x=yes ;;
377
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
384
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
391
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 ;;
394
395 *)
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 fi
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401 fi
402 nonopt="$ac_option"
403 ;;
404
405 esac
406 done
407
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410 fi
411
412 trap '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
422 if test "$silent" = yes; then
423 exec 6>/dev/null
424 else
425 exec 6>&1
426 fi
427 exec 5>./config.log
428
429 echo "\
430 This file contains any messages produced by compilers while
431 running 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.
436 ac_configure_args=
437 for ac_arg
438 do
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
448 done
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.
455 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458 if 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.
461 rm -rf conftest* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
463 echo > 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.
467 ac_unique_file=gdb.base
468
469 # Find the source files, if location was not specified.
470 if 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
480 else
481 ac_srcdir_defaulted=no
482 fi
483 if 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
489 fi
490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$sitefile"; then
494 if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE; then
496 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497 else
498 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499 fi
500 fi
501 else
502 CONFIG_SITE="$sitefile"
503 fi
504 for 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
509 done
510
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
513 . $cache_file
514 else
515 echo "creating cache $cache_file"
516 > $cache_file
517 fi
518
519 ac_ext=c
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
525
526 ac_exeext=
527 ac_objext=o
528 if (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
536 else
537 ac_n= ac_c='\c' ac_t=
538 fi
539
540
541
542
543 ac_aux_dir=
544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
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
554 done
555 if test -z "$ac_aux_dir"; then
556 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
557 fi
558 ac_config_guess=$ac_aux_dir/config.guess
559 ac_config_sub=$ac_aux_dir/config.sub
560 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
561
562 echo $ac_n "checking build system type""... $ac_c" 1>&6
563 echo "configure:564: checking build system type" >&5
564
565 build_alias=$build
566 case "$build_alias" in
567 NONE)
568 case $nonopt in
569 NONE) build_alias=$host_alias ;;
570 *) build_alias=$nonopt ;;
571 esac ;;
572 esac
573
574 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
575 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
576 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
577 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
578 echo "$ac_t""$build" 1>&6
579
580
581 # Make sure we can run config.sub.
582 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
583 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
584 fi
585
586 echo $ac_n "checking host system type""... $ac_c" 1>&6
587 echo "configure:588: checking host system type" >&5
588
589 host_alias=$host
590 case "$host_alias" in
591 NONE)
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 ;;
599 esac
600
601 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
602 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
603 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
604 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
605 echo "$ac_t""$host" 1>&6
606
607 echo $ac_n "checking target system type""... $ac_c" 1>&6
608 echo "configure:609: checking target system type" >&5
609
610 target_alias=$target
611 case "$target_alias" in
612 NONE)
613 case $nonopt in
614 NONE) target_alias=$host_alias ;;
615 *) target_alias=$nonopt ;;
616 esac ;;
617 esac
618
619 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
620 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
621 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
622 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
623 echo "$ac_t""$target" 1>&6
624
625
626 # Directories that need to be configured in all configurations.
627 configdirs=
628
629 # Add HP-specific tests when appropriate.
630 case $target in
631 hppa*-*-hpux*)
632 configdirs="$configdirs gdb.hp" ;;
633 esac
634
635 # With stabs.
636 # Check whether --with-stabs or --without-stabs was given.
637 if test "${with_stabs+set}" = set; then
638 withval="$with_stabs"
639 :
640 else
641 # We enable stabs tests by default on selected targets.
642 case $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 ;;
656 esac
657 fi
658
659
660 # Add stabs tests when appropriate.
661 if test $with_stabs = yes; then
662 configdirs="$configdirs gdb.stabs"
663 fi
664
665 # Enable gdbtk.
666 # Check whether --enable-gdbtk or --disable-gdbtk was given.
667 if test "${enable_gdbtk+set}" = set; then
668 enableval="$enable_gdbtk"
669 :
670 else
671 if test -d $srcdir/gdb.gdbtk; then
672 enable_gdbtk=yes
673 else
674 enable_gdbtk=no
675 fi
676 fi
677
678 # We unconditionally disable gdbtk tests on selected platforms.
679 case $host_os in
680 go32* | windows*)
681 enable_gdbtk=no ;;
682 esac
683
684 # Add gdbtk tests when appropriate.
685 if test $enable_gdbtk = yes; then
686 configdirs="$configdirs gdb.gdbtk"
687 fi
688
689 # Enable shared libraries.
690 # Check whether --enable-shared or --disable-shared was given.
691 if test "${enable_shared+set}" = set; then
692 enableval="$enable_shared"
693 :
694 else
695 enable_shared=yes
696 fi
697
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.
701 if 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
705 else
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
719 fi
720
721
722 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
723 echo "configure:724: checking how to run the C preprocessor" >&5
724 # On Suns, sometimes $CPP names a directory.
725 if test -n "$CPP" && test -d "$CPP"; then
726 CPP=
727 fi
728 if test -z "$CPP"; then
729 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&6
731 else
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>
741 Syntax Error
742 EOF
743 ac_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; }
745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
746 if test -z "$ac_err"; then
747 :
748 else
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>
758 Syntax Error
759 EOF
760 ac_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; }
762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
763 if test -z "$ac_err"; then
764 :
765 else
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>
775 Syntax Error
776 EOF
777 ac_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; }
779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
780 if test -z "$ac_err"; then
781 :
782 else
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
788 fi
789 rm -f conftest*
790 fi
791 rm -f conftest*
792 fi
793 rm -f conftest*
794 ac_cv_prog_CPP="$CPP"
795 fi
796 CPP="$ac_cv_prog_CPP"
797 else
798 ac_cv_prog_CPP="$CPP"
799 fi
800 echo "$ac_t""$CPP" 1>&6
801
802 for ac_hdr in pthread.h
803 do
804 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
805 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
806 echo "configure:807: checking for $ac_hdr" >&5
807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
809 else
810 cat > conftest.$ac_ext <<EOF
811 #line 812 "configure"
812 #include "confdefs.h"
813 #include <$ac_hdr>
814 EOF
815 ac_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; }
817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
818 if test -z "$ac_err"; then
819 rm -rf conftest*
820 eval "ac_cv_header_$ac_safe=yes"
821 else
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"
827 fi
828 rm -f conftest*
829 fi
830 if 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
835 EOF
836
837 else
838 echo "$ac_t""no" 1>&6
839 fi
840 done
841
842
843 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
844 echo "configure:845: checking for Cygwin environment" >&5
845 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
847 else
848 cat > conftest.$ac_ext <<EOF
849 #line 850 "configure"
850 #include "confdefs.h"
851
852 int main() {
853
854 #ifndef __CYGWIN__
855 #define __CYGWIN__ __CYGWIN32__
856 #endif
857 return __CYGWIN__;
858 ; return 0; }
859 EOF
860 if { (eval echo configure:861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
861 rm -rf conftest*
862 ac_cv_cygwin=yes
863 else
864 echo "configure: failed program was:" >&5
865 cat conftest.$ac_ext >&5
866 rm -rf conftest*
867 ac_cv_cygwin=no
868 fi
869 rm -f conftest*
870 rm -f conftest*
871 fi
872
873 echo "$ac_t""$ac_cv_cygwin" 1>&6
874 CYGWIN=
875 test "$ac_cv_cygwin" = yes && CYGWIN=yes
876 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
877 echo "configure:878: checking for mingw32 environment" >&5
878 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
879 echo $ac_n "(cached) $ac_c" 1>&6
880 else
881 cat > conftest.$ac_ext <<EOF
882 #line 883 "configure"
883 #include "confdefs.h"
884
885 int main() {
886 return __MINGW32__;
887 ; return 0; }
888 EOF
889 if { (eval echo configure:890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
890 rm -rf conftest*
891 ac_cv_mingw32=yes
892 else
893 echo "configure: failed program was:" >&5
894 cat conftest.$ac_ext >&5
895 rm -rf conftest*
896 ac_cv_mingw32=no
897 fi
898 rm -f conftest*
899 rm -f conftest*
900 fi
901
902 echo "$ac_t""$ac_cv_mingw32" 1>&6
903 MINGW32=
904 test "$ac_cv_mingw32" = yes && MINGW32=yes
905
906
907 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
908 echo "configure:909: checking for executable suffix" >&5
909 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
911 else
912 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
913 ac_cv_exeext=.exe
914 else
915 rm -f conftest*
916 echo 'int main () { return 0; }' > conftest.$ac_ext
917 ac_cv_exeext=
918 if { (eval echo configure:919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
919 for file in conftest.*; do
920 case $file in
921 *.c | *.C | *.o | *.obj | *.ilk | *.pdb) ;;
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
930 fi
931 fi
932
933 EXEEXT=""
934 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
935 echo "$ac_t""${ac_cv_exeext}" 1>&6
936 ac_exeext=$EXEEXT
937
938
939 subdirs="$configdirs"
940
941 trap '' 1 2 15
942 cat > 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 #
957 EOF
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
977 if cmp -s $cache_file confcache; then
978 :
979 else
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
986 fi
987 rm -f confcache
988
989 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
990
991 test "x$prefix" = xNONE && prefix=$ac_default_prefix
992 # Let make expand exec_prefix.
993 test "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.
998 if test "x$srcdir" = x.; then
999 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1000 fi
1001
1002 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1003
1004 DEFS=-DHAVE_CONFIG_H
1005
1006 # Without the "./", some shells look in PATH for config.status.
1007 : ${CONFIG_STATUS=./config.status}
1008
1009 echo creating $CONFIG_STATUS
1010 rm -f $CONFIG_STATUS
1011 cat > $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
1023 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1024 for ac_option
1025 do
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
1037 done
1038
1039 ac_given_srcdir=$srcdir
1040
1041 trap '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
1044 EOF
1045 cat >> $CONFIG_STATUS <<EOF
1046
1047 # Protect against being on the right side of a sed subst in config.status.
1048 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1049 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1050 $ac_vpsub
1051 $extrasub
1052 s%@SHELL@%$SHELL%g
1053 s%@CFLAGS@%$CFLAGS%g
1054 s%@CPPFLAGS@%$CPPFLAGS%g
1055 s%@CXXFLAGS@%$CXXFLAGS%g
1056 s%@FFLAGS@%$FFLAGS%g
1057 s%@DEFS@%$DEFS%g
1058 s%@LDFLAGS@%$LDFLAGS%g
1059 s%@LIBS@%$LIBS%g
1060 s%@exec_prefix@%$exec_prefix%g
1061 s%@prefix@%$prefix%g
1062 s%@program_transform_name@%$program_transform_name%g
1063 s%@bindir@%$bindir%g
1064 s%@sbindir@%$sbindir%g
1065 s%@libexecdir@%$libexecdir%g
1066 s%@datadir@%$datadir%g
1067 s%@sysconfdir@%$sysconfdir%g
1068 s%@sharedstatedir@%$sharedstatedir%g
1069 s%@localstatedir@%$localstatedir%g
1070 s%@libdir@%$libdir%g
1071 s%@includedir@%$includedir%g
1072 s%@oldincludedir@%$oldincludedir%g
1073 s%@infodir@%$infodir%g
1074 s%@mandir@%$mandir%g
1075 s%@build@%$build%g
1076 s%@build_alias@%$build_alias%g
1077 s%@build_cpu@%$build_cpu%g
1078 s%@build_vendor@%$build_vendor%g
1079 s%@build_os@%$build_os%g
1080 s%@host@%$host%g
1081 s%@host_alias@%$host_alias%g
1082 s%@host_cpu@%$host_cpu%g
1083 s%@host_vendor@%$host_vendor%g
1084 s%@host_os@%$host_os%g
1085 s%@target@%$target%g
1086 s%@target_alias@%$target_alias%g
1087 s%@target_cpu@%$target_cpu%g
1088 s%@target_vendor@%$target_vendor%g
1089 s%@target_os@%$target_os%g
1090 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
1091 s%@CPP@%$CPP%g
1092 s%@EXEEXT@%$EXEEXT%g
1093 s%@subdirs@%$subdirs%g
1094
1095 CEOF
1096 EOF
1097
1098 cat >> $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.
1102 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1103 ac_file=1 # Number of current file.
1104 ac_beg=1 # First line for current file.
1105 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1106 ac_more_lines=:
1107 ac_sed_cmds=""
1108 while $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
1127 done
1128 if test -z "$ac_sed_cmds"; then
1129 ac_sed_cmds=cat
1130 fi
1131 EOF
1132
1133 cat >> $CONFIG_STATUS <<EOF
1134
1135 CONFIG_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"}
1138 EOF
1139 cat >> $CONFIG_STATUS <<\EOF
1140 for 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
1184 s%@configure_input@%$configure_input%g
1185 s%@srcdir@%$srcdir%g
1186 s%@top_srcdir@%$top_srcdir%g
1187 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1188 fi; done
1189 rm -f conftest.s*
1190
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.
1195 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1196 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1197 ac_dC='\3'
1198 ac_dD='%g'
1199 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1200 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1201 ac_uB='\([ ]\)%\1#\2define\3'
1202 ac_uC=' '
1203 ac_uD='\4%g'
1204 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1205 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1206 ac_eB='$%\1#\2define\3'
1207 ac_eC=' '
1208 ac_eD='%g'
1209
1210 if test "${CONFIG_HEADERS+set}" != set; then
1211 EOF
1212 cat >> $CONFIG_STATUS <<EOF
1213 CONFIG_HEADERS="config.h:config.hin"
1214 EOF
1215 cat >> $CONFIG_STATUS <<\EOF
1216 fi
1217 for 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
1231 EOF
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.
1237 rm -f conftest.vals
1238 cat > conftest.hdr <<\EOF
1239 s/[\\&%]/\\&/g
1240 s%[\\$`]%\\&%g
1241 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1242 s%ac_d%ac_u%gp
1243 s%ac_u%ac_e%gp
1244 EOF
1245 sed -n -f conftest.hdr confdefs.h > conftest.vals
1246 rm -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.
1251 cat >> conftest.vals <<\EOF
1252 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1253 EOF
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
1258 rm -f conftest.tail
1259 while :
1260 do
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
1275 done
1276 rm -f conftest.vals
1277
1278 cat >> $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
1296 fi; done
1297
1298 EOF
1299 cat >> $CONFIG_STATUS <<EOF
1300
1301 EOF
1302 cat >> $CONFIG_STATUS <<\EOF
1303
1304 exit 0
1305 EOF
1306 chmod +x $CONFIG_STATUS
1307 rm -fr confdefs* $ac_clean_files
1308 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1309
1310 if 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
1335 for ac_config_dir in $configdirs; do
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
1401 fi
1402
This page took 0.099066 seconds and 4 git commands to generate.