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