]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/configure
* Makefile.in: Remove superfluous runtest gasp.
[thirdparty/binutils-gdb.git] / gdb / configure
CommitLineData
5436fc65
C
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
5f107900 4# Generated automatically using autoconf version 2.4
5436fc65
C
5# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-netrom "
16ac_help="$ac_help
17 --enable-gdbtk "
18ac_help="$ac_help
19 --with-x use the X Window System"
20
21# Initialize some variables set by options.
22# The variables have the same names as the options, with
23# dashes changed to underlines.
24build=NONE
25cache_file=./config.cache
26exec_prefix=NONE
27host=NONE
28no_create=
29nonopt=NONE
30no_recursion=
31prefix=NONE
32program_prefix=NONE
33program_suffix=NONE
34program_transform_name=s,x,x,
35silent=
36site=
37srcdir=
38target=NONE
39verbose=
40x_includes=NONE
41x_libraries=NONE
42
43# Initialize some other variables.
44subdirs=
45
46ac_prev=
47for ac_option
48do
49
50 # If the previous option needs an argument, assign it.
51 if test -n "$ac_prev"; then
52 eval "$ac_prev=\$ac_option"
53 ac_prev=
54 continue
55 fi
56
57 case "$ac_option" in
58 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
59 *) ac_optarg= ;;
60 esac
61
62 # Accept the important Cygnus configure options, so we can diagnose typos.
63
64 case "$ac_option" in
65
66 -build | --build | --buil | --bui | --bu | --b)
67 ac_prev=build ;;
68 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
69 build="$ac_optarg" ;;
70
71 -cache-file | --cache-file | --cache-fil | --cache-fi \
72 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
73 ac_prev=cache_file ;;
74 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
75 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
76 cache_file="$ac_optarg" ;;
77
78 -disable-* | --disable-*)
79 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
80 # Reject names that are not valid shell variable names.
81 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
82 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
83 fi
84 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
85 eval "enable_${ac_feature}=no" ;;
86
87 -enable-* | --enable-*)
88 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
89 # Reject names that are not valid shell variable names.
90 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
91 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
92 fi
93 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
94 case "$ac_option" in
95 *=*) ;;
96 *) ac_optarg=yes ;;
97 esac
98 eval "enable_${ac_feature}='$ac_optarg'" ;;
99
100 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
101 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
102 | --exec | --exe | --ex)
103 ac_prev=exec_prefix ;;
104 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
105 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
106 | --exec=* | --exe=* | --ex=*)
107 exec_prefix="$ac_optarg" ;;
108
109 -gas | --gas | --ga | --g)
110 # Obsolete; use --with-gas.
111 with_gas=yes ;;
112
113 -help | --help | --hel | --he)
114 # Omit some internal or obsolete options to make the list less imposing.
115 # This message is too long to be a string in the A/UX 3.1 sh.
116 cat << EOF
117Usage: configure [options] [host]
118Options: [defaults in brackets after descriptions]
119Configuration:
120 --cache-file=FILE cache test results in FILE
121 --help print this message
122 --no-create do not create output files
123 --quiet, --silent do not print \`checking...' messages
124 --version print the version of autoconf that created configure
125Directory and file names:
126 --prefix=PREFIX install architecture-independent files in PREFIX
127 [$ac_default_prefix]
128 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
129 [same as prefix]
130 --srcdir=DIR find the sources in DIR [configure dir or ..]
131 --program-prefix=PREFIX prepend PREFIX to installed program names
132 --program-suffix=SUFFIX append SUFFIX to installed program names
133 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
134Host type:
135 --build=BUILD configure for building on BUILD [BUILD=HOST]
136 --host=HOST configure for HOST [guessed]
137 --target=TARGET configure for TARGET [TARGET=HOST]
138Features and packages:
139 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
140 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
141 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
142 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
143 --x-includes=DIR X include files are in DIR
144 --x-libraries=DIR X library files are in DIR
145--enable and --with options recognized:$ac_help
146EOF
147 exit 0 ;;
148
149 -host | --host | --hos | --ho)
150 ac_prev=host ;;
151 -host=* | --host=* | --hos=* | --ho=*)
152 host="$ac_optarg" ;;
153
154 -nfp | --nfp | --nf)
155 # Obsolete; use --without-fp.
156 with_fp=no ;;
157
158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
159 | --no-cr | --no-c)
160 no_create=yes ;;
161
162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
164 no_recursion=yes ;;
165
166 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
167 ac_prev=prefix ;;
168 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
169 prefix="$ac_optarg" ;;
170
171 -program-prefix | --program-prefix | --program-prefi | --program-pref \
172 | --program-pre | --program-pr | --program-p)
173 ac_prev=program_prefix ;;
174 -program-prefix=* | --program-prefix=* | --program-prefi=* \
175 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
176 program_prefix="$ac_optarg" ;;
177
178 -program-suffix | --program-suffix | --program-suffi | --program-suff \
179 | --program-suf | --program-su | --program-s)
180 ac_prev=program_suffix ;;
181 -program-suffix=* | --program-suffix=* | --program-suffi=* \
182 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
183 program_suffix="$ac_optarg" ;;
184
185 -program-transform-name | --program-transform-name \
186 | --program-transform-nam | --program-transform-na \
187 | --program-transform-n | --program-transform- \
188 | --program-transform | --program-transfor \
189 | --program-transfo | --program-transf \
190 | --program-trans | --program-tran \
191 | --progr-tra | --program-tr | --program-t)
192 ac_prev=program_transform_name ;;
193 -program-transform-name=* | --program-transform-name=* \
194 | --program-transform-nam=* | --program-transform-na=* \
195 | --program-transform-n=* | --program-transform-=* \
196 | --program-transform=* | --program-transfor=* \
197 | --program-transfo=* | --program-transf=* \
198 | --program-trans=* | --program-tran=* \
199 | --progr-tra=* | --program-tr=* | --program-t=*)
200 program_transform_name="$ac_optarg" ;;
201
202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
203 | -silent | --silent | --silen | --sile | --sil)
204 silent=yes ;;
205
206 -site | --site | --sit)
207 ac_prev=site ;;
208 -site=* | --site=* | --sit=*)
209 site="$ac_optarg" ;;
210
211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
212 ac_prev=srcdir ;;
213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
214 srcdir="$ac_optarg" ;;
215
216 -target | --target | --targe | --targ | --tar | --ta | --t)
217 ac_prev=target ;;
218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
219 target="$ac_optarg" ;;
220
221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
222 verbose=yes ;;
223
224 -version | --version | --versio | --versi | --vers)
5f107900 225 echo "configure generated by autoconf version 2.4"
5436fc65
C
226 exit 0 ;;
227
228 -with-* | --with-*)
229 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
230 # Reject names that are not valid shell variable names.
231 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
232 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
233 fi
234 ac_package=`echo $ac_package| sed 's/-/_/g'`
235 case "$ac_option" in
236 *=*) ;;
237 *) ac_optarg=yes ;;
238 esac
239 eval "with_${ac_package}='$ac_optarg'" ;;
240
241 -without-* | --without-*)
242 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
243 # Reject names that are not valid shell variable names.
244 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
245 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
246 fi
247 ac_package=`echo $ac_package| sed 's/-/_/g'`
248 eval "with_${ac_package}=no" ;;
249
250 --x)
251 # Obsolete; use --with-x.
252 with_x=yes ;;
253
254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
255 | --x-incl | --x-inc | --x-in | --x-i)
256 ac_prev=x_includes ;;
257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
259 x_includes="$ac_optarg" ;;
260
261 -x-libraries | --x-libraries | --x-librarie | --x-librari \
262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
263 ac_prev=x_libraries ;;
264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
266 x_libraries="$ac_optarg" ;;
267
268 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
269 ;;
270
271 *)
272 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
273 echo "configure: warning: $ac_option: invalid host type" 1>&2
274 fi
275 if test "x$nonopt" != xNONE; then
276 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
277 fi
278 nonopt="$ac_option"
279 ;;
280
281 esac
282done
283
284if test -n "$ac_prev"; then
285 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
286fi
287
288trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
289
290# File descriptor usage:
291# 0 standard input
292# 1 file creation
293# 2 errors and warnings
294# 3 some systems may open it to /dev/tty
295# 4 used on the Kubota Titan
296# 6 checking for... messages and results
297# 5 compiler messages saved in config.log
298if test "$silent" = yes; then
299 exec 6>/dev/null
300else
301 exec 6>&1
302fi
303exec 5>./config.log
304
305echo "\
306This file contains any messages produced by compilers while
307running configure, to aid debugging if configure makes a mistake.
308" 1>&5
309
310# Strip out --no-create and --no-recursion so they do not pile up.
311# Also quote any args containing shell metacharacters.
312ac_configure_args=
313for ac_arg
314do
315 case "$ac_arg" in
316 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
317 | --no-cr | --no-c) ;;
318 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
319 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
320 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
321 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
322 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
323 esac
324done
325
326# NLS nuisances.
327# Only set LANG and LC_ALL to C if already set.
328# These must not be set unconditionally because not all systems understand
329# e.g. LANG=C (notably SCO).
330if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
331if test "${LANG+set}" = set; then LANG=C; export LANG; fi
332
333# confdefs.h avoids OS command line length limits that DEFS can exceed.
334rm -rf conftest* confdefs.h
335# AIX cpp loses on an empty file, so make sure it contains at least a newline.
336echo > confdefs.h
337
338# A filename unique to this package, relative to the directory that
339# configure is in, which we can look for to find out if srcdir is correct.
340ac_unique_file=main.c
341
342# Find the source files, if location was not specified.
343if test -z "$srcdir"; then
344 ac_srcdir_defaulted=yes
345 # Try the directory containing this script, then its parent.
346 ac_prog=$0
347 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
348 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
349 srcdir=$ac_confdir
350 if test ! -r $srcdir/$ac_unique_file; then
351 srcdir=..
352 fi
353else
354 ac_srcdir_defaulted=no
355fi
356if test ! -r $srcdir/$ac_unique_file; then
357 if test "$ac_srcdir_defaulted" = yes; then
358 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
359 else
360 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
361 fi
362fi
363srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
364
365# Prefer explicitly selected file to automatically selected ones.
366if test -z "$CONFIG_SITE"; then
367 if test "x$prefix" != xNONE; then
368 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
369 else
370 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
371 fi
372fi
373for ac_site_file in $CONFIG_SITE; do
374 if test -r "$ac_site_file"; then
375 echo "loading site script $ac_site_file"
376 . "$ac_site_file"
377 fi
378done
379
380if test -r "$cache_file"; then
381 echo "loading cache $cache_file"
382 . $cache_file
383else
384 echo "creating cache $cache_file"
385 > $cache_file
386fi
387
388ac_ext=c
389# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
390ac_cpp='$CPP $CPPFLAGS'
391ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
392ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
393
394if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
395 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
396 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
397 ac_n= ac_c='
398' ac_t=' '
399 else
400 ac_n=-n ac_c= ac_t=
401 fi
402else
403 ac_n= ac_c='\c' ac_t=
404fi
405
406
407
408CC=${CC-cc}
409# Extract the first word of "gcc", so it can be a program name with args.
410set dummy gcc; ac_word=$2
411echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
412if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
413 echo $ac_n "(cached) $ac_c" 1>&6
414else
415 if test -n "$CC"; then
416 ac_cv_prog_CC="$CC" # Let the user override the test.
417else
418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
419 for ac_dir in $PATH; do
420 test -z "$ac_dir" && ac_dir=.
421 if test -f $ac_dir/$ac_word; then
422 ac_cv_prog_CC="gcc"
423 break
424 fi
425 done
426 IFS="$ac_save_ifs"
427 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
428fi
429fi
430CC="$ac_cv_prog_CC"
431if test -n "$CC"; then
432 echo "$ac_t""$CC" 1>&6
433else
434 echo "$ac_t""no" 1>&6
435fi
436
437
438echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
439if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
440 echo $ac_n "(cached) $ac_c" 1>&6
441else
442 cat > conftest.c <<EOF
443#ifdef __GNUC__
444 yes;
445#endif
446EOF
447if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
448 ac_cv_prog_gcc=yes
449else
450 ac_cv_prog_gcc=no
451fi
452fi
453echo "$ac_t""$ac_cv_prog_gcc" 1>&6
454if test $ac_cv_prog_gcc = yes; then
455 GCC=yes
456 if test "${CFLAGS+set}" != set; then
457 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
458if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
459 echo $ac_n "(cached) $ac_c" 1>&6
460else
461 echo 'void f(){}' > conftest.c
462if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
463 ac_cv_prog_gcc_g=yes
464else
465 ac_cv_prog_gcc_g=no
466fi
467rm -f conftest*
468
469fi
470 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
471 if test $ac_cv_prog_gcc_g = yes; then
472 CFLAGS="-g -O"
473 else
474 CFLAGS="-O"
475 fi
476 fi
477else
478 GCC=
479 test "${CFLAGS+set}" = set || CFLAGS="-g"
480fi
481
482echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
483# On Suns, sometimes $CPP names a directory.
484if test -n "$CPP" && test -d "$CPP"; then
485 CPP=
486fi
487if test -z "$CPP"; then
488if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
489 echo $ac_n "(cached) $ac_c" 1>&6
490else
491 # This must be in double quotes, not single quotes, because CPP may get
492 # substituted into the Makefile and "${CC-cc}" will confuse make.
493 CPP="${CC-cc} -E"
494 # On the NeXT, cc -E runs the code through the compiler's parser,
495 # not just through cpp.
496 cat > conftest.$ac_ext <<EOF
497#line 498 "configure"
498#include "confdefs.h"
499#include <assert.h>
500Syntax Error
501EOF
502eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
503ac_err=`grep -v '^ *+' conftest.out`
504if test -z "$ac_err"; then
505 :
506else
507 echo "$ac_err" >&5
508 rm -rf conftest*
509 CPP="${CC-cc} -E -traditional-cpp"
510 cat > conftest.$ac_ext <<EOF
511#line 512 "configure"
512#include "confdefs.h"
513#include <assert.h>
514Syntax Error
515EOF
516eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
517ac_err=`grep -v '^ *+' conftest.out`
518if test -z "$ac_err"; then
519 :
520else
521 echo "$ac_err" >&5
522 rm -rf conftest*
523 CPP=/lib/cpp
524fi
525rm -f conftest*
526fi
527rm -f conftest*
528 ac_cv_prog_CPP="$CPP"
529fi
5f107900
C
530 CPP="$ac_cv_prog_CPP"
531else
532 ac_cv_prog_CPP="$CPP"
5436fc65 533fi
5436fc65
C
534echo "$ac_t""$CPP" 1>&6
535
536echo $ac_n "checking for AIX""... $ac_c" 1>&6
537cat > conftest.$ac_ext <<EOF
5f107900 538#line 539 "configure"
5436fc65
C
539#include "confdefs.h"
540#ifdef _AIX
541 yes
542#endif
543
544EOF
545if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
546 egrep "yes" >/dev/null 2>&1; then
547 rm -rf conftest*
548 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
549#define _ALL_SOURCE 1
550EOF
551
552else
553 rm -rf conftest*
554 echo "$ac_t""no" 1>&6
555fi
556rm -f conftest*
557
558
559ac_safe=`echo "minix/config.h" | tr './\055' '___'`
560echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
561if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
562 echo $ac_n "(cached) $ac_c" 1>&6
563else
564 cat > conftest.$ac_ext <<EOF
5f107900 565#line 566 "configure"
5436fc65
C
566#include "confdefs.h"
567#include <minix/config.h>
568EOF
569eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
570ac_err=`grep -v '^ *+' conftest.out`
571if test -z "$ac_err"; then
572 rm -rf conftest*
573 eval "ac_cv_header_$ac_safe=yes"
574else
575 echo "$ac_err" >&5
576 rm -rf conftest*
577 eval "ac_cv_header_$ac_safe=no"
578fi
579rm -f conftest*
580fi
581if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
582 echo "$ac_t""yes" 1>&6
583 MINIX=yes
584else
585 echo "$ac_t""no" 1>&6
586MINIX=
587fi
588
589if test "$MINIX" = yes; then
590 cat >> confdefs.h <<\EOF
591#define _POSIX_SOURCE 1
592EOF
593
594 cat >> confdefs.h <<\EOF
595#define _POSIX_1_SOURCE 2
596EOF
597
598 cat >> confdefs.h <<\EOF
599#define _MINIX 1
600EOF
601
602fi
603
604echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
605if test -d /etc/conf/kconfig.d &&
606 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
607then
608 echo "$ac_t""yes" 1>&6
609 ISC=yes # If later tests want to check for ISC.
610 cat >> confdefs.h <<\EOF
611#define _POSIX_SOURCE 1
612EOF
613
614 if test "$GCC" = yes; then
615 CC="$CC -posix"
616 else
617 CC="$CC -Xp"
618 fi
619else
620 echo "$ac_t""no" 1>&6
621 ISC=
622fi
623
624
625ac_aux_dir=
626for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
5f107900 627 ac_dir=`cd $ac_dir; pwd`
5436fc65
C
628 if test -f $ac_dir/install-sh; then
629 ac_aux_dir=$ac_dir
630 ac_install_sh="$ac_aux_dir/install-sh -c"
631 break
632 elif test -f $ac_dir/install.sh; then
633 ac_aux_dir=$ac_dir
634 ac_install_sh="$ac_aux_dir/install.sh -c"
635 break
636 fi
637done
638if test -z "$ac_aux_dir"; then
639 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
640fi
641ac_config_guess=$ac_aux_dir/config.guess
642ac_config_sub=$ac_aux_dir/config.sub
643ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
644
645# Find a good install program. We prefer a C program (faster),
646# so one script is as good as another. But avoid the broken or
647# incompatible versions:
648# SysV /etc/install, /usr/sbin/install
649# SunOS /usr/etc/install
650# IRIX /sbin/install
651# AIX /bin/install
652# AFS /usr/afsws/bin/install, which mishandles nonexistent args
653# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
654# ./install, which can be erroneously created by make from ./install.sh.
655echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
656if test -z "$INSTALL"; then
657if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
658 echo $ac_n "(cached) $ac_c" 1>&6
659else
660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
661 for ac_dir in $PATH; do
662 # Account for people who put trailing slashes in PATH elements.
663 case "$ac_dir/" in
664 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
665 *)
666 # OSF1 and SCO ODT 3.0 have their own names for install.
667 for ac_prog in ginstall installbsd scoinst install; do
668 if test -f $ac_dir/$ac_prog; then
669 if test $ac_prog = install &&
670 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
671 # AIX install. It has an incompatible calling convention.
672 # OSF/1 installbsd also uses dspmsg, but is usable.
673 :
674 else
675 ac_cv_path_install="$ac_dir/$ac_prog -c"
676 break 2
677 fi
678 fi
679 done
680 ;;
681 esac
682 done
683 IFS="$ac_save_ifs"
684 # As a last resort, use the slow shell script.
685 test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
686fi
687 INSTALL="$ac_cv_path_install"
688fi
689echo "$ac_t""$INSTALL" 1>&6
690
691# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
692# It thinks the first close brace ends the variable substitution.
693test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
694
695test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
696
697# Extract the first word of "ranlib", so it can be a program name with args.
698set dummy ranlib; ac_word=$2
699echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
700if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
702else
703 if test -n "$RANLIB"; then
704 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
705else
706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
707 for ac_dir in $PATH; do
708 test -z "$ac_dir" && ac_dir=.
709 if test -f $ac_dir/$ac_word; then
710 ac_cv_prog_RANLIB="ranlib"
711 break
712 fi
713 done
714 IFS="$ac_save_ifs"
715 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
716fi
717fi
718RANLIB="$ac_cv_prog_RANLIB"
719if test -n "$RANLIB"; then
720 echo "$ac_t""$RANLIB" 1>&6
721else
722 echo "$ac_t""no" 1>&6
723fi
724
725
726ac_aux_dir=
727for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
5f107900 728 ac_dir=`cd $ac_dir; pwd`
5436fc65
C
729 if test -f $ac_dir/install-sh; then
730 ac_aux_dir=$ac_dir
731 ac_install_sh="$ac_aux_dir/install-sh -c"
732 break
733 elif test -f $ac_dir/install.sh; then
734 ac_aux_dir=$ac_dir
735 ac_install_sh="$ac_aux_dir/install.sh -c"
736 break
737 fi
738done
739if test -z "$ac_aux_dir"; then
740 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
741fi
742ac_config_guess=$ac_aux_dir/config.guess
743ac_config_sub=$ac_aux_dir/config.sub
744ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
745
746
747# Do some error checking and defaulting for the host and target type.
748# The inputs are:
749# configure --host=HOST --target=TARGET --build=BUILD NONOPT
750#
751# The rules are:
752# 1. You are not allowed to specify --host, --target, and nonopt at the
753# same time.
754# 2. Host defaults to nonopt.
755# 3. If nonopt is not specified, then host defaults to the current host,
756# as determined by config.guess.
757# 4. Target and build default to nonopt.
758# 5. If nonopt is not specified, then target and build default to host.
759
760# The aliases save the names the user supplied, while $host etc.
761# will get canonicalized.
762case $host---$target---$nonopt in
763NONE---*---* | *---NONE---* | *---*---NONE) ;;
764*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
765esac
766
767
768# Make sure we can run config.sub.
769if $ac_config_sub sun4 >/dev/null 2>&1; then :
770else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
771fi
772
773echo $ac_n "checking host system type""... $ac_c" 1>&6
774
775host_alias=$host
776case "$host_alias" in
777NONE)
778 case $nonopt in
779 NONE)
780 if host_alias=`$ac_config_guess`; then :
781 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
782 fi ;;
783 *) host_alias=$nonopt ;;
784 esac ;;
785esac
786
787host=`$ac_config_sub $host_alias`
788host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
789host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
790host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
791echo "$ac_t""$host" 1>&6
792
793echo $ac_n "checking target system type""... $ac_c" 1>&6
794
795target_alias=$target
796case "$target_alias" in
797NONE)
798 case $nonopt in
799 NONE) target_alias=$host_alias ;;
800 *) target_alias=$nonopt ;;
801 esac ;;
802esac
803
804target=`$ac_config_sub $target_alias`
805target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
806target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
807target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
808echo "$ac_t""$target" 1>&6
809
810echo $ac_n "checking build system type""... $ac_c" 1>&6
811
812build_alias=$build
813case "$build_alias" in
814NONE)
815 case $nonopt in
816 NONE) build_alias=$host_alias ;;
817 *) build_alias=$nonopt ;;
818 esac ;;
819esac
820
821build=`$ac_config_sub $build_alias`
822build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
823build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
824build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
825echo "$ac_t""$build" 1>&6
826
827test "$host_alias" != "$target_alias" &&
828 test "$program_prefix$program_suffix$program_transform_name" = \
829 NONENONEs,x,x, &&
830 program_prefix=${target_alias}-
831
832if test "$program_transform_name" = s,x,x,; then
833 program_transform_name=
834else
835 # Double any \ or $.
836 echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
837 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
838 rm -f conftestsed
839fi
840test "$program_prefix" != NONE &&
841 program_transform_name="s,^,${program_prefix},; $program_transform_name"
842# Use a double $ so make ignores it.
843test "$program_suffix" != NONE &&
844 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
845
846# sed with no file args requires a program.
847test "$program_transform_name" = "" && program_transform_name="s,x,x,"
848
849
1a494973
C
850for ac_hdr in unistd.h
851do
852ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
853echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
854if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
855 echo $ac_n "(cached) $ac_c" 1>&6
856else
857 cat > conftest.$ac_ext <<EOF
858#line 859 "configure"
859#include "confdefs.h"
860#include <$ac_hdr>
861EOF
862eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
863ac_err=`grep -v '^ *+' conftest.out`
864if test -z "$ac_err"; then
865 rm -rf conftest*
866 eval "ac_cv_header_$ac_safe=yes"
867else
868 echo "$ac_err" >&5
869 rm -rf conftest*
870 eval "ac_cv_header_$ac_safe=no"
871fi
872rm -f conftest*
873fi
874if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
875 echo "$ac_t""yes" 1>&6
876 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
877 cat >> confdefs.h <<EOF
878#define $ac_tr_hdr 1
879EOF
880
881else
882 echo "$ac_t""no" 1>&6
883fi
884done
885
5436fc65
C
886
887ENABLE_CFLAGS=
888ENABLE_CLIBS=
889ENABLE_OBS=
890
891# Check whether --enable-netrom or --disable-netrom was given.
892enableval="$enable_netrom"
893if test -n "$enableval"; then
894 case "${enableval}" in
895yes) enable_netrom=yes ;;
896no) enable_netrom=no ;;
897*) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
898esac
899fi
900
901
902if test "${enable_netrom}" = "yes"; then
903 ENABLE_OBS="${ENABLE_OBS} remote-nrom.o"
904fi
905
906# start-sanitize-gdbtk
907ENABLE_GDBTK=
908
909# Check whether --enable-gdbtk or --disable-gdbtk was given.
910enableval="$enable_gdbtk"
911if test -n "$enableval"; then
912 case "${enableval}" in
913yes) enable_gdbtk=yes ;;
914no) enable_gdbtk=no ;;
915*) { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
916esac
917fi
918
919
920if test "${enable_gdbtk}" = "yes"; then
921 # If we find X, set shell vars x_includes and x_libraries to the
922# paths, otherwise set no_x=yes.
923# Uses ac_ vars as temps to allow command line to override cache and checks.
924# --without-x overrides everything else, but does not touch the cache.
925echo $ac_n "checking for X""... $ac_c" 1>&6
926
927# Check whether --with-x or --without-x was given.
928withval="$with_x"
929if test -n "$withval"; then
930 :
931fi
932
933if test "x$with_x" = xno; then
934 no_x=yes
935else
936 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
937 no_x=
938 else
939if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
941else
942 # One or both of the vars are not set, and there is no cached value.
943no_x=yes
944rm -fr conftestdir
945if mkdir conftestdir; then
946 cd conftestdir
947 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
948 cat > Imakefile <<'EOF'
949acfindx:
950 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
951EOF
952 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
953 no_x=
954 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
955 eval `make acfindx 2>/dev/null | grep -v make`
956 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5f107900
C
957 for ac_extension in a so sl; do
958 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
959 test -f $ac_im_libdir/libX11.$ac_extension; then
960 ac_im_usrlibdir=$ac_im_libdir; break
961 fi
962 done
5436fc65
C
963 # Screen out bogus values from the imake configuration.
964 case "$ac_im_incroot" in
965 /usr/include) ;;
966 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
967 esac
968 case "$ac_im_usrlibdir" in
969 /usr/lib | /lib) ;;
970 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
971 esac
972 fi
973 cd ..
974 rm -fr conftestdir
975fi
976
977if test "$no_x" = yes; then
978test -z "$x_direct_test_library" && x_direct_test_library=Xt
979test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
980test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
981cat > conftest.$ac_ext <<EOF
1a494973 982#line 983 "configure"
5436fc65
C
983#include "confdefs.h"
984#include <$x_direct_test_include>
985EOF
986eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
987ac_err=`grep -v '^ *+' conftest.out`
988if test -z "$ac_err"; then
989 rm -rf conftest*
990 no_x= ac_x_includes=
991else
992 echo "$ac_err" >&5
993 rm -rf conftest*
994 for ac_dir in \
995 /usr/X11R6/include \
996 /usr/X11R5/include \
997 /usr/X11R4/include \
998 \
999 /usr/include/X11R6 \
1000 /usr/include/X11R5 \
1001 /usr/include/X11R4 \
1002 \
1003 /usr/local/X11R6/include \
1004 /usr/local/X11R5/include \
1005 /usr/local/X11R4/include \
1006 \
1007 /usr/local/include/X11R6 \
1008 /usr/local/include/X11R5 \
1009 /usr/local/include/X11R4 \
1010 \
1011 /usr/X11/include \
1012 /usr/include/X11 \
1013 /usr/local/X11/include \
1014 /usr/local/include/X11 \
1015 \
1016 /usr/X386/include \
1017 /usr/x386/include \
1018 /usr/XFree86/include/X11 \
1019 \
1020 /usr/include \
1021 /usr/local/include \
1022 /usr/unsupported/include \
1023 /usr/athena/include \
1024 /usr/local/x11r5/include \
1025 /usr/lpp/Xamples/include \
1026 \
1027 /usr/openwin/include \
1028 /usr/openwin/share/include \
1029 ; \
1030 do
1031 if test -r "$ac_dir/$x_direct_test_include"; then
1032 no_x= ac_x_includes=$ac_dir
1033 break
1034 fi
1035 done
1036fi
1037rm -f conftest*
1038
1039# Check for the libraries.
1040# See if we find them without any special options.
1041# Don't add to $LIBS permanently.
1042ac_save_LIBS="$LIBS"
1043LIBS="-l$x_direct_test_library $LIBS"
1044cat > conftest.$ac_ext <<EOF
1a494973 1045#line 1046 "configure"
5436fc65
C
1046#include "confdefs.h"
1047
1048int main() { return 0; }
1049int t() {
1050${x_direct_test_function}()
1051; return 0; }
1052EOF
1053if eval $ac_link; then
1054 rm -rf conftest*
1055 LIBS="$ac_save_LIBS" no_x= ac_x_libraries=
1056else
1057 rm -rf conftest*
1058 LIBS="$ac_save_LIBS"
1059# First see if replacing the include by lib works.
1060for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1061 /usr/X11R6/lib \
1062 /usr/X11R5/lib \
1063 /usr/X11R4/lib \
1064 \
1065 /usr/lib/X11R6 \
1066 /usr/lib/X11R5 \
1067 /usr/lib/X11R4 \
1068 \
1069 /usr/local/X11R6/lib \
1070 /usr/local/X11R5/lib \
1071 /usr/local/X11R4/lib \
1072 \
1073 /usr/local/lib/X11R6 \
1074 /usr/local/lib/X11R5 \
1075 /usr/local/lib/X11R4 \
1076 \
1077 /usr/X11/lib \
1078 /usr/lib/X11 \
1079 /usr/local/X11/lib \
1080 /usr/local/lib/X11 \
1081 \
1082 /usr/X386/lib \
1083 /usr/x386/lib \
1084 /usr/XFree86/lib/X11 \
1085 \
1086 /usr/lib \
1087 /usr/local/lib \
1088 /usr/unsupported/lib \
1089 /usr/athena/lib \
1090 /usr/local/x11r5/lib \
1091 /usr/lpp/Xamples/lib \
1092 \
1093 /usr/openwin/lib \
1094 /usr/openwin/share/lib \
1095 ; \
1096do
1097 for ac_extension in a so sl; do
1098 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1099 no_x= ac_x_libraries=$ac_dir
1100 break 2
1101 fi
1102 done
1103done
1104fi
1105rm -f conftest*
1106
1107fi
1108if test "$no_x" = yes; then
1109 ac_cv_path_x="no_x=yes"
1110else
1111 ac_cv_path_x="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1112fi
1113fi
1114 fi
1115 eval "$ac_cv_path_x"
1116fi # $with_x != no
1117
1118if test "$no_x" = yes; then
1119 echo "$ac_t""no" 1>&6
1120else
1121 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1122 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1123 ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1124 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1125fi
1126
1127 if test "$no_x" = yes; then
1128 # Not all programs may use this symbol, but it does not hurt to define it.
1129 X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
1130else
1131 if test -n "$x_includes"; then
1132 X_CFLAGS="$X_CFLAGS -I$x_includes"
1133 fi
1134
1135 # It would be nice to have a more robust check for the -R ld option than
1136 # just checking for Solaris.
1137 # It would also be nice to do this for all -L options, not just this one.
1138 if test -n "$x_libraries"; then
1139 X_LIBS="$X_LIBS -L$x_libraries"
1140 if test "`(uname) 2>/dev/null`" = SunOS &&
1141 uname -r | grep '^5' >/dev/null; then
1142 X_LIBS="$X_LIBS -R$x_libraries"
1143 fi
1144 fi
1145
1146 # Check for libraries that X11R6 Xt/Xaw programs need.
1147
1148 ac_save_LDFLAGS="$LDFLAGS"
1149 LDFLAGS="$LDFLAGS -L$x_libraries"
1150 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1151 # check for ICE first), but we must link in the order -lSM -lICE or
1152 # we get undefined symbols. So assume we have SM if we have ICE.
1153 # These have to be linked with before -lX11, unlike the other
1154 # libraries we check for below, so use a different variable.
1155 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1156 echo $ac_n "checking for -lICE""... $ac_c" 1>&6
1157if eval "test \"`echo '$''{'ac_cv_lib_ICE'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1159else
1160 ac_save_LIBS="$LIBS"
1161LIBS="-lICE $LIBS"
1162cat > conftest.$ac_ext <<EOF
1a494973 1163#line 1164 "configure"
5436fc65
C
1164#include "confdefs.h"
1165
1166int main() { return 0; }
1167int t() {
1168IceConnectionNumber()
1169; return 0; }
1170EOF
1171if eval $ac_link; then
1172 rm -rf conftest*
1173 eval "ac_cv_lib_ICE=yes"
1174else
1175 rm -rf conftest*
1176 eval "ac_cv_lib_ICE=no"
1177fi
1178rm -f conftest*
1179LIBS="$ac_save_LIBS"
1180
1181fi
1182if eval "test \"`echo '$ac_cv_lib_'ICE`\" = yes"; then
1183 echo "$ac_t""yes" 1>&6
1184 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1185else
1186 echo "$ac_t""no" 1>&6
1187fi
1188
1189 LDFLAGS="$ac_save_LDFLAGS"
1190
1191 # Check for system-dependent libraries X programs must link with.
1192
1193 if test "$ISC" = yes; then
1194 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1195 else
1196 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1197 # libraries were built with DECnet support. And karl@cs.umb.edu says
1198 # the Alpha needs dnet_stub (dnet does not exist).
1199 echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
1200if eval "test \"`echo '$''{'ac_cv_lib_dnet'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1202else
1203 ac_save_LIBS="$LIBS"
1204LIBS="-ldnet $LIBS"
1205cat > conftest.$ac_ext <<EOF
1a494973 1206#line 1207 "configure"
5436fc65
C
1207#include "confdefs.h"
1208
1209int main() { return 0; }
1210int t() {
1211dnet_ntoa()
1212; return 0; }
1213EOF
1214if eval $ac_link; then
1215 rm -rf conftest*
1216 eval "ac_cv_lib_dnet=yes"
1217else
1218 rm -rf conftest*
1219 eval "ac_cv_lib_dnet=no"
1220fi
1221rm -f conftest*
1222LIBS="$ac_save_LIBS"
1223
1224fi
1225if eval "test \"`echo '$ac_cv_lib_'dnet`\" = yes"; then
1226 echo "$ac_t""yes" 1>&6
1227 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1228else
1229 echo "$ac_t""no" 1>&6
1230fi
1231
1232 if test $ac_cv_lib_dnet = no; then
1233 echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
1234if eval "test \"`echo '$''{'ac_cv_lib_dnet_stub'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1236else
1237 ac_save_LIBS="$LIBS"
1238LIBS="-ldnet_stub $LIBS"
1239cat > conftest.$ac_ext <<EOF
1a494973 1240#line 1241 "configure"
5436fc65
C
1241#include "confdefs.h"
1242
1243int main() { return 0; }
1244int t() {
1245dnet_ntoa()
1246; return 0; }
1247EOF
1248if eval $ac_link; then
1249 rm -rf conftest*
1250 eval "ac_cv_lib_dnet_stub=yes"
1251else
1252 rm -rf conftest*
1253 eval "ac_cv_lib_dnet_stub=no"
1254fi
1255rm -f conftest*
1256LIBS="$ac_save_LIBS"
1257
1258fi
1259if eval "test \"`echo '$ac_cv_lib_'dnet_stub`\" = yes"; then
1260 echo "$ac_t""yes" 1>&6
1261 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1262else
1263 echo "$ac_t""no" 1>&6
1264fi
1265
1266 fi
1267
1268 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1269 # to get the SysV transport functions.
1270 # Not sure which flavor of 386 UNIX this is, but it seems harmless to
1271 # check for it.
1272 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
1273if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1275else
1276 ac_save_LIBS="$LIBS"
1277LIBS="-lnsl $LIBS"
1278cat > conftest.$ac_ext <<EOF
1a494973 1279#line 1280 "configure"
5436fc65
C
1280#include "confdefs.h"
1281
1282int main() { return 0; }
1283int t() {
1284t_accept()
1285; return 0; }
1286EOF
1287if eval $ac_link; then
1288 rm -rf conftest*
1289 eval "ac_cv_lib_nsl=yes"
1290else
1291 rm -rf conftest*
1292 eval "ac_cv_lib_nsl=no"
1293fi
1294rm -f conftest*
1295LIBS="$ac_save_LIBS"
1296
1297fi
1298if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
1299 echo "$ac_t""yes" 1>&6
1300 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1301else
1302 echo "$ac_t""no" 1>&6
1303fi
1304
1305
1306 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1307 # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
1308 # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
1309 if test "`(uname) 2>/dev/null`" != IRIX; then
1310 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
1311if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then
1312 echo $ac_n "(cached) $ac_c" 1>&6
1313else
1314 ac_save_LIBS="$LIBS"
1315LIBS="-lsocket $LIBS"
1316cat > conftest.$ac_ext <<EOF
1a494973 1317#line 1318 "configure"
5436fc65
C
1318#include "confdefs.h"
1319
1320int main() { return 0; }
1321int t() {
1322socket()
1323; return 0; }
1324EOF
1325if eval $ac_link; then
1326 rm -rf conftest*
1327 eval "ac_cv_lib_socket=yes"
1328else
1329 rm -rf conftest*
1330 eval "ac_cv_lib_socket=no"
1331fi
1332rm -f conftest*
1333LIBS="$ac_save_LIBS"
1334
1335fi
1336if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
1337 echo "$ac_t""yes" 1>&6
1338 X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
1339else
1340 echo "$ac_t""no" 1>&6
1341fi
1342
1343 fi
1344 fi
1345fi
1346
1347
1348
1349#
1350# Ok, lets find the tk source trees so we can use the headers
1351# If the directory (presumably symlink) named "tk" exists, use that one
1352# in preference to any others. Same logic is used when choosing library
1353# and again with Tcl.
1354#
1355echo "checking for Tk source directory" 1>&6
1356TKHDIR=""
1357for i in `ls -d ${srcdir}/../tk* 2>/dev/null` ${srcdir}/../tk ; do
1358 if test -f $i/tk.h ; then
1359 TKHDIR="-I$i"
1360 fi
1361done
1362# if we can't find it, see if one is installed
1363if test x"$TKHDIR" = x ; then
1364 installed=0
1365 if test -f $prefix/include/tk.h; then
1366 installed=1 TKHDIR="-I$prefix/include"
1367 else
1368 ac_safe=`echo "tk.h" | tr './\055' '___'`
1369echo $ac_n "checking for tk.h""... $ac_c" 1>&6
1370if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1371 echo $ac_n "(cached) $ac_c" 1>&6
1372else
1373 cat > conftest.$ac_ext <<EOF
1a494973 1374#line 1375 "configure"
5436fc65
C
1375#include "confdefs.h"
1376#include <tk.h>
1377EOF
1378eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1379ac_err=`grep -v '^ *+' conftest.out`
1380if test -z "$ac_err"; then
1381 rm -rf conftest*
1382 eval "ac_cv_header_$ac_safe=yes"
1383else
1384 echo "$ac_err" >&5
1385 rm -rf conftest*
1386 eval "ac_cv_header_$ac_safe=no"
1387fi
1388rm -f conftest*
1389fi
1390if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1391 echo "$ac_t""yes" 1>&6
1392 installed=1
1393else
1394 echo "$ac_t""no" 1>&6
1395fi
1396
1397 fi
1398 if test $installed -eq 0 ; then
1399 TKHDIR="# no Tk directory found"
1400 echo "configure: warning: Can't find Tk directory" 1>&2
1401 fi
1402fi
1403if test x"$TKHDIR" != x ; then
1404 echo "$ac_t""Setting TKHDIR to be $i" 1>&6
1405fi
1406
1407#
1408# Ok, lets find the tk library
1409# First, look for one uninstalled.
1410#
1411TKLIB=""
1412echo "checking for Tk library" 1>&6
1413for i in `ls -d ../tk* 2>/dev/null` ../tk ; do
1414 if test -f "$i/Makefile" ; then
1415 TKLIB=$i/libtk.a
1416 fi
1417done
1418# If not found, look for installed version
1419if test x"$TKLIB" = x ; then
1420 if test -f $prefix/lib/libtk.a; then
1421 installed=1
1422 else
1423 installed=0
1424 fi
1425 if test $installed -eq 1 ; then
1426 TKLIB="-ltk"
1427 fi
1428fi
1429
1430# If still not found, assume Tk simply hasn't been built yet
1431if test x"$TKLIB" = x ; then
1432 for i in `ls -d ../tk* 2>/dev/null` ../tk ; do
1433 if test -f "$i/tk.h" ; then
1434 TKLIB=$i/libtk.a
1435 fi
1436 done
1437fi
1438
1439if test x"$TKLIB" = x ; then
1440 TKLIB="# no Tk library found"
1441 echo "configure: warning: Can't find Tk library" 1>&2
1442else
1443 echo "$ac_t""setting TKLIB to be $TKLIB" 1>&6
1444 no_tk=
1445fi
1446
1447
1448
1449
1450
1451#
1452# Ok, lets find the tcl source trees so we can use the headers
1453#
1454# Warning: transition of version 9 to 10 will break this algorithm
1455# because 10 sorts before 9.
1456#
1457echo "checking for Tcl source directory" 1>&6
1458TCLHDIR=""
1459for i in `ls -d ${srcdir}/../tcl* 2>/dev/null` ${srcdir}/../tcl ; do
1460 if test -f $i/tclInt.h ; then
1461 TCLHDIR="-I$i"
1462 fi
1463done
1464# if we can't find it, see if one is installed
1465if test x"$TCLHDIR" = x ; then
1466 installed=0
1467 if test -f $prefix/include/tclInt.h; then
1468 installed=1 TCLHDIR="-I$prefix/include"
1469 else
1470 ac_safe=`echo "tclInt.h" | tr './\055' '___'`
1471echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
1472if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1474else
1475 cat > conftest.$ac_ext <<EOF
1a494973 1476#line 1477 "configure"
5436fc65
C
1477#include "confdefs.h"
1478#include <tclInt.h>
1479EOF
1480eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1481ac_err=`grep -v '^ *+' conftest.out`
1482if test -z "$ac_err"; then
1483 rm -rf conftest*
1484 eval "ac_cv_header_$ac_safe=yes"
1485else
1486 echo "$ac_err" >&5
1487 rm -rf conftest*
1488 eval "ac_cv_header_$ac_safe=no"
1489fi
1490rm -f conftest*
1491fi
1492if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1493 echo "$ac_t""yes" 1>&6
1494 installed=1
1495else
1496 echo "$ac_t""no" 1>&6
1497fi
1498
1499 fi
1500 if test $installed -eq 0 ; then
1501 TCLHDIR="# no Tcl directory found"
1502 echo "configure: warning: Can't find Tcl directory" 1>&2
1503 fi
1504else
1505 echo "$ac_t""setting TCLHDIR to be $i" 1>&6
1506fi
1507
1508#
1509# Ok, lets find the tcl library
1510# First, look for the latest uninstalled
1511#
1512TCLLIB=""
1513echo "checking for Tcl library" 1>&6
1514for i in `ls -d ../tcl* 2>/dev/null` ../tcl ; do
1515 if test -f "$i/Makefile" ; then
1516 TCLLIB=$i/libtcl.a
1517 fi
1518done
1519# If not found, look for installed version
1520if test x"$TCLLIB" = x ; then
1521 if test -f $prefix/lib/libtcl.a; then installed=1; else installed=0; fi
1522 if test $installed -eq 1 ; then
1523 TCLLIB="-ltcl"
1524 fi
1525fi
1526# If still not found, assume Tcl simply hasn't been built yet
1527if test x"$TCLLIB" = x ; then
1528 for i in `ls -d ../tcl* 2>/dev/null` ../tcl ; do
1529 if test -f "$i/tcl.h" ; then
1530 TCLLIB=$i/libtcl.a
1531 fi
1532 done
1533fi
1534
1535if test x"$TCLLIB" = x ; then
1536 TCLLIB="# no Tcl library found"
1537 echo "configure: warning: Can't find Tcl library" 1>&2
1538else
1539 echo "$ac_t""setting TCLLIB to be $TCLLIB" 1>&6
1540fi
1541
1542
1543
1544
1545
1546 ENABLE_GDBTK=1
7a13a704
FF
1547 TCL_LIBS='$(TCL) $(TK) $(X11)'
1548 ENABLE_CLIBS="${ENABLE_CLIBS} ${TCL_LIBS} -lm"
5436fc65
C
1549 ENABLE_OBS="${ENABLE_OBS} gdbtk.o"
1550fi
1551
1552# end-sanitize-gdbtk
1553
1554
1555
1556
1557
1558
1559configdirs="doc testsuite"
1560
1561
1562# Map host cpu into the config cpu subdirectory name.
1563# The default is $host_cpu.
1564
1565case "${host_cpu}" in
1566
1567c[12]) gdb_host_cpu=convex ;;
1568hppa*) gdb_host_cpu=pa ;;
1569i[345]86) gdb_host_cpu=i386 ;;
1570m68*) gdb_host_cpu=m68k ;;
1571m88*) gdb_host_cpu=m88k ;;
1572np1) gdb_host_cpu=gould ;;
1573pyramid) gdb_host_cpu=pyr ;;
1574powerpc*) gdb_host_cpu=powerpc ;;
1575*) gdb_host_cpu=$host_cpu ;;
1576
1577esac
1578
1579# map host info into gdb names.
1580
1581case "${host}" in
1582
1583a29k-*-*) gdb_host=ultra3 ;;
1584
1585alpha-*-osf1*) gdb_host=alpha-osf1 ;;
b8ea4fec
PS
1586alpha-*-osf2*) gdb_host=alpha-osf2 ;;
1587alpha-*-osf[3456789]*) gdb_host=alpha-osf3 ;;
5436fc65
C
1588
1589arm-*-*) gdb_host=arm ;;
1590
1591c[12]-*-*) gdb_host=convex ;;
1592
1593hppa*-*-bsd*) gdb_host=hppabsd ;;
1594hppa*-*-hiux*) gdb_host=hppahpux ;;
1595hppa*-*-hpux*) gdb_host=hppahpux ;;
1596hppa*-*-osf*) gdb_host=hppaosf ;;
1597
1598i[345]86-ncr-*) gdb_host=ncr3000 ;;
1599i[345]86-sequent-bsd*) gdb_host=symmetry ;; # dynix
1600i[345]86-sequent-sysv4*) gdb_host=ptx4 ;;
1601i[345]86-sequent-sysv*) gdb_host=ptx ;;
1602i[345]86-*-aix*) gdb_host=i386aix ;;
1603i[345]86-*-bsd*) gdb_host=i386bsd ;;
1604i[345]86-*-freebsd*) gdb_host=fbsd ;;
1605i[345]86-*-netbsd*) gdb_host=nbsd ;;
1606i[345]86-*-go32*) gdb_host=go32 ;;
1607i[345]86-*-linux*) gdb_host=linux ;;
1608i[345]86-*-lynxos*) gdb_host=i386lynx ;;
1609i[345]86-*-mach3*) gdb_host=i386m3 ;;
1610i[345]86-*-mach*) gdb_host=i386mach ;;
1611i[345]86-*-osf1mk*) gdb_host=osf1mk ;;
1612i[345]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
1613i[345]86-*-sco*) gdb_host=i386sco ;;
1614i[345]86-*-solaris*) gdb_host=i386sol2 ;;
1615i[345]86-*-sunos*) gdb_host=sun386 ;;
1616i[345]86-*-sysv3.2*) gdb_host=i386v32 ;;
1617i[345]86-*-sysv32*) gdb_host=i386v32 ;;
1618i[345]86-*-sysv4*) gdb_host=i386v4 ;;
1619i[345]86-*-unixware) gdb_host=i386v4 ;;
1620i[345]86-*-sysv*) gdb_host=i386v ;;
1621i[345]86-*-isc*) gdb_host=i386v32 ;;
1622i[345]86-*-os9k) gdb_host=i386os9k ;;
1623
1624m680[01]0-sun-sunos3*) gdb_host=sun2os3 ;;
1625m680[01]0-sun-sunos4*) gdb_host=sun2os4 ;;
1626m68030-sony-*) gdb_host=news1000 ;;
1627
1628m68*-altos-*) gdb_host=altos ;;
1629m68*-apollo*-sysv*) gdb_host=apollo68v ;;
1630m68*-apollo*-bsd*) gdb_host=apollo68b ;;
1631m68*-att-*) gdb_host=3b1 ;;
1632m68*-bull*-sysv*) gdb_host=dpx2 ;;
1633m68*-hp-bsd*) gdb_host=hp300bsd ;;
1634m68*-hp-hpux*) gdb_host=hp300hpux ;;
1635m68*-isi-*) gdb_host=isi ;;
1636m68*-*-lynxos*) gdb_host=m68klynx ;;
1637m68*-*-sysv4*) gdb_host=m68kv4 ;;
1638m68*-motorola-*) gdb_host=delta68 ;;
1639m68*-sony-*) gdb_host=news ;;
1640m68*-sun-sunos3*) gdb_host=sun3os3 ;;
1641m68*-sun-sunos4*) gdb_host=sun3os4 ;;
1642m68*-sun-*) gdb_host=sun3os4 ;;
1643
1644m88*-harris-cxux*) gdb_host=cxux ;;
1645m88*-motorola-sysv4*) gdb_host=delta88v4 ;;
1646m88*-motorola-sysv*) gdb_host=delta88 ;;
1647m88*-*-mach3*) gdb_host=mach3 ;;
1648m88*-*-*) gdb_host=m88k ;;
1649
1650mips-dec-mach3*) gdb_host=mach3 ;;
1651mips-dec-*) gdb_host=decstation ;;
1652mips-little-*) gdb_host=littlemips ;;
1653mips-sgi-irix3*) gdb_host=irix3 ;;
1654mips-sgi-irix4*) gdb_host=irix4 ;;
1655mips-sgi-irix5*) gdb_host=irix5 ;;
1656mips-sony-*) gdb_host=news-mips ;;
1657mips-*-mach3*) gdb_host=mach3 ;;
1658mips-*-sysv4*) gdb_host=mipsv4 ;;
1659mips-*-sysv*) gdb_host=riscos ;;
1660mips-*-riscos*) gdb_host=riscos ;;
1661
1662none-*-*) gdb_host=none ;;
1663
1664np1-*-*) gdb_host=np1 ;;
1665
1666ns32k-*-mach3*) gdb_host=mach3 ;;
1667ns32k-*-netbsd*) gdb_host=nbsd ;;
1668ns32k-umax-*) gdb_host=umax ;;
1669ns32k-utek-sysv*) gdb_host=merlin ;;
1670
1671pn-*-*) gdb_host=pn ;;
1672
1673pyramid-*-*) gdb_host=pyramid ;;
1674
1675romp-*-*) gdb_host=rtbsd ;;
1676
1677rs6000-*-lynxos*) gdb_host=rs6000lynx ;;
1678rs6000-*-*) gdb_host=rs6000 ;;
1679
1680sparc-*-lynxos*) gdb_host=sparclynx ;;
1681sparc-*-netbsd*) gdb_host=nbsd ;;
1682sparc-*-solaris2*) gdb_host=sun4sol2 ;;
1683sparc-*-sunos4*) gdb_host=sun4os4 ;;
1684sparc-*-sunos5*) gdb_host=sun4sol2 ;;
1685sparc-*-*) gdb_host=sun4os4 ;;
1686
1687tahoe-*-*) gdb_host=tahoe ;;
1688
1689vax-*-bsd*) gdb_host=vaxbsd ;;
1690vax-*-ultrix2*) gdb_host=vaxult2 ;;
1691vax-*-ultrix*) gdb_host=vaxult ;;
1692
1693w65-*-*) gdb_host=w65 ;;
1694
1695esac
1696
1697
1698# Map target cpu into the config cpu subdirectory name.
1699# The default is $target_cpu.
1700
1701case "${target_cpu}" in
1702
1703alpha) gdb_target_cpu=alpha ;;
1704c[12]) gdb_target_cpu=convex ;;
1705hppa*) gdb_target_cpu=pa ;;
1706i[345]86) gdb_target_cpu=i386 ;;
1707m68*) gdb_target_cpu=m68k ;;
1708m88*) gdb_target_cpu=m88k ;;
1709mips*) gdb_target_cpu=mips ;;
1710np1) gdb_target_cpu=gould ;;
1711powerpc*) gdb_target_cpu=powerpc ;;
1712pn) gdb_target_cpu=gould ;;
1713pyramid) gdb_target_cpu=pyr ;;
5436fc65
C
1714sparc*) gdb_target_cpu=sparc ;;
1715*) gdb_target_cpu=$target_cpu ;;
1716
1717esac
1718
1719# map target info into gdb names.
1720
1721case "${target}" in
1722
1723a29k-*-aout*) gdb_target=a29k ;;
1724a29k-*-coff*) gdb_target=a29k ;;
1725a29k-*-elf*) gdb_target=a29k ;;
1726a29k-*-ebmon*) gdb_target=a29k ;;
1727a29k-*-kern*) gdb_target=a29k-kern ;;
1728a29k-*-none*) gdb_target=a29k ;;
1729a29k-*-sym1*) gdb_target=ultra3 ;;
1730a29k-*-udi*) gdb_target=a29k-udi ;;
1731a29k-*-vxworks*) gdb_target=vx29k ;;
1732
1733alpha-*-osf*) gdb_target=alpha-osf1 ;;
1734
1735# start-sanitize-arc
1736arc-*-*) gdb_target=arc ;;
1737# end-sanitize-arc
1738
1739arm-*-*) gdb_target=arm ;;
1740
1741c1-*-*) gdb_target=convex ;;
1742c2-*-*) gdb_target=convex ;;
1743
fb506180
SS
1744h8300-*-*) gdb_target=h8300 ;;
1745h8500-*-*) gdb_target=h8500 ;;
5436fc65
C
1746
1747sh-*-*) gdb_target=sh ;;
1748
1749# start-sanitize-r16
1750r16-*-*) gdb_target=r16 ;;
1751# end-sanitize-r16
1752
1753hppa*-*-bsd*) gdb_target=hppabsd ;;
1754hppa*-*-pro*) gdb_target=hppapro ;;
1755hppa*-*-hpux*) gdb_target=hppahpux ;;
1756hppa*-*-hiux*) gdb_target=hppahpux ;;
1757hppa*-*-osf*) gdb_target=hppaosf ;;
1758
1759i[345]86-sequent-bsd*) gdb_target=symmetry ;;
1760i[345]86-sequent-sysv4*) gdb_target=ptx4 ;;
1761i[345]86-sequent-sysv*) gdb_target=ptx ;;
1762i[345]86-ncr-*) gdb_target=ncr3000 ;;
1763i[345]86-*-aout*) gdb_target=i386aout ;;
1764i[345]86-*-coff*) gdb_target=i386v ;;
1765i[345]86-*-elf*) gdb_target=i386v ;;
1766i[345]86-*-aix*) gdb_target=i386aix ;;
1767i[345]86-*-bsd*) gdb_target=i386bsd ;;
1768i[345]86-*-freebsd*) gdb_target=fbsd ;;
1769i[345]86-*-netbsd*) gdb_target=nbsd ;;
1770i[345]86-*-os9k) gdb_target=i386os9k ;;
1771i[345]86-*-go32*) gdb_target=i386aout ;;
1772i[345]86-*-lynxos*) gdb_target=i386lynx
1773 configdirs="${configdirs} gdbserver" ;;
1774i[345]86-*-solaris*) gdb_target=i386sol2 ;;
1775i[345]86-*-sunos*) gdb_target=sun386 ;;
1776i[345]86-*-sysv4*) gdb_target=i386v4 ;;
1777i[345]86-*-sco*) gdb_target=i386v ;;
1778i[345]86-*-sysv*) gdb_target=i386v ;;
1779i[345]86-*-linux*) gdb_target=linux ;;
1780i[345]86-*-isc*) gdb_target=i386v ;;
1781i[345]86-*-mach3*) gdb_target=i386m3 ;;
1782i[345]86-*-mach*) gdb_target=i386mach ;;
1783i[345]86-*-netware*) gdb_target=i386nw
1784 configdirs="${configdirs} nlm" ;;
1785i[345]86-*-osf1mk*) gdb_target=i386mk ;;
1786
1787i960-*-bout*) gdb_target=vxworks960 ;;
1788i960-*-coff*) gdb_target=nindy960 ;;
1789i960-*-elf*) gdb_target=nindy960 ;;
1790
1791i960-*-nindy*) gdb_target=nindy960 ;;
1792i960-*-vxworks*) gdb_target=vxworks960 ;;
1793
1794m68000-*-sunos3*) gdb_target=sun2os3 ;;
1795m68000-*-sunos4*) gdb_target=sun2os4 ;;
1796
1797m68*-apollo*-bsd*) gdb_target=apollo68b ;;
1798m68*-bull-sysv*) gdb_target=dpx2 ;;
1799m68*-hp-bsd*) gdb_target=hp300bsd ;;
1800m68*-hp-hpux*) gdb_target=hp300hpux ;;
1801m68*-altos-*) gdb_target=altos ;;
1802m68*-att-*) gdb_target=3b1 ;;
1803m68*-cisco*-*) gdb_target=cisco ;;
1804m68*-ericsson-*) gdb_target=es1800 ;;
1805m68*-isi-*) gdb_target=isi ;;
1806m68*-motorola-*) gdb_target=delta68 ;;
1807m68*-netx-*) gdb_target=vxworks68 ;;
1808m68*-sony-*) gdb_target=news ;;
1809m68*-tandem-*) gdb_target=st2000 ;;
1810m68*-rom68k-*) gdb_target=monitor ;;
1811m68*-*bug-*) gdb_target=monitor ;;
1812m68*-monitor-*) gdb_target=monitor ;;
1813m68*-est-*) gdb_target=est ;;
1814m68*-*-aout*) gdb_target=monitor ;;
1815m68*-*-coff*) gdb_target=monitor ;;
1816m68*-*-elf*) gdb_target=monitor ;;
1817m68*-*-lynxos*) gdb_target=m68klynx
1818 configdirs="${configdirs} gdbserver" ;;
1819m68*-*-os68k*) gdb_target=os68k ;;
1820m68*-*-sunos3*) gdb_target=sun3os3 ;;
1821m68*-*-sunos4*) gdb_target=sun3os4 ;;
1822m68*-*-sysv4*) gdb_target=m68kv4 ;;
1823m68*-*-vxworks*) gdb_target=vxworks68 ;;
1824
1825m88*-harris-cxux*) gdb_target=cxux ;;
1826m88*-motorola-sysv4*) gdb_target=delta88v4 ;;
1827m88*-*-mach3*) gdb_target=mach3 ;;
1828m88*-motorola-*) gdb_target=delta88 ;;
1829m88*-*-*) gdb_target=m88k ;;
1830
1831mips64*-big-*) gdb_target=bigmips64 ;;
1832mips*-big-*) gdb_target=bigmips ;;
1833mips*-dec-mach3*) gdb_target=mach3 ;;
1834mips*-dec-*) gdb_target=decstation ;;
1835mips64*el-*-ecoff*) gdb_target=idtl64 ;;
1836mips64*-idt-ecoff*) gdb_target=idt64 ;;
1837mips64*el-*-elf*) gdb_target=idtl64 ;;
1838mips64*-*-elf*) gdb_target=idt64 ;;
1839mips*el-*-ecoff*) gdb_target=idtl ;;
1840mips*-*-ecoff*) gdb_target=idt ;;
1841mips*el-*-elf*) gdb_target=idtl ;;
1842mips*-*-elf*) gdb_target=idt ;;
1843mips*-little-*) gdb_target=littlemips ;;
1844mips*-sgi-irix5*) gdb_target=irix5 ;;
1845mips*-sgi-*) gdb_target=irix3 ;;
1846mips*-sony-*) gdb_target=bigmips ;;
1847mips*-*-mach3*) gdb_target=mach3 ;;
1848mips*-*-sysv4*) gdb_target=mipsv4 ;;
1849mips*-*-sysv*) gdb_target=bigmips ;;
1850mips*-*-riscos*) gdb_target=bigmips ;;
1851
1852none-*-*) gdb_target=none ;;
1853
1854np1-*-*) gdb_target=np1 ;;
1855
1856ns32k-*-mach3*) gdb_target=mach3 ;;
1857ns32k-*-netbsd*) gdb_target=nbsd ;;
1858ns32k-utek-sysv*) gdb_target=merlin ;;
1859ns32k-utek-*) gdb_target=umax ;;
1860
1861pn-*-*) gdb_target=pn ;;
1862powerpc-*-netware*) gdb_target=ppc-nw
1863 configdirs="${configdirs} nlm" ;;
1864
1865powerpc-*-eabi*) gdb_target=ppc-eabi
1866 configdirs="${configdirs}" ;;
1867
1868powerpcle-*-eabi*) gdb_target=ppcle-eabi
1869 configdirs="${configdirs}" ;;
1870
1871pyramid-*-*) gdb_target=pyramid ;;
1872
1873rs6000-*-lynxos*) gdb_target=rs6000lynx ;;
1874rs6000-*-*) gdb_target=rs6000 ;;
1875
1876sparc-*-aout*) gdb_target=sparc-em ;;
1877sparc-*-coff*) gdb_target=sparc-em ;;
1878sparc-*-elf*) gdb_target=sparc-em ;;
1879sparc-*-lynxos*) gdb_target=sparclynx
1880 configdirs="${configdirs} gdbserver" ;;
1881sparc-*-netbsd*) gdb_target=nbsd ;;
1882sparc-*-solaris2*) gdb_target=sun4sol2 ;;
1883sparc-*-sunos4*) gdb_target=sun4os4 ;;
1884sparc-*-sunos5*) gdb_target=sun4sol2 ;;
1885sparc-*-vxworks*) gdb_target=vxsparc ;;
1886sparc-*-*) gdb_target=sun4os4 ;;
1887sparclite*-*-*) gdb_target=sparclite ;;
1888sparc64-*-*) gdb_target=sp64 ;;
1889
1890tahoe-*-*) gdb_target=tahoe ;;
1891
1892vax-*-*) gdb_target=vax ;;
1893
1894w65-*-*) gdb_target=w65 ;;
1895
fb506180 1896z8k-*-coff*) gdb_target=z8k ;;
5436fc65
C
1897
1898esac
1899
1900
5f107900 1901frags=
5436fc65
C
1902host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
1903if test ! -f ${host_makefile_frag}; then
1904{ echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; }
1905fi
5f107900 1906frags="$frags $host_makefile_frag"
5436fc65
C
1907
1908target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
1909if test ! -f ${target_makefile_frag}; then
1910{ echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
1911fi
5f107900 1912frags="$frags $target_makefile_frag"
5436fc65
C
1913
1914
1915
1916
1917
094fd4ae
C
1918hostfile=`sed -n '
1919s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
1920' ${host_makefile_frag}`
5436fc65 1921
094fd4ae
C
1922targetfile=`sed -n '
1923s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
1924' ${target_makefile_frag}`
5436fc65
C
1925
1926# these really aren't orthogonal true/false values of the same condition,
1927# but shells are slow enough that I like to reuse the test conditions
1928# whenever possible
1929if test "${target}" = "${host}"; then
094fd4ae
C
1930nativefile=`sed -n '
1931s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
1932' ${host_makefile_frag}`
5436fc65
C
1933else
1934# GDBserver is only useful in a "native" enviroment
1935configdirs=`echo $configdirs | sed 's/gdbserver//'`
1936fi
1937
094fd4ae 1938
5436fc65
C
1939# If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
1940# (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
1941# corresponding links. But we have to remove the xm.h files and tm.h
1942# files anyway, e.g. when switching from "configure host" to
1943# "configure none".
1944
1945files=
1946links=
1947rm -f xm.h
1948if test "${hostfile}" != ""; then
1949files="${files} config/${gdb_host_cpu}/${hostfile}"
1950links="${links} xm.h"
1951fi
1952rm -f tm.h
1953if test "${targetfile}" != ""; then
1954files="${files} config/${gdb_target_cpu}/${targetfile}"
1955links="${links} tm.h"
1956fi
1957rm -f nm.h
1958if test "${nativefile}" != ""; then
1959files="${files} config/${gdb_host_cpu}/${nativefile}"
1960links="${links} nm.h"
1961else
1962# A cross-only configuration.
1963files="${files} config/nm-empty.h"
1964links="${links} nm.h"
1965fi
1966# start-sanitize-gdbtk
1967
1968# Make it possible to use the GUI without doing a full install
1969if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ; then
1970files="${files} gdbtk.tcl"
1971links="${links} gdbtk.tcl"
1972fi
1973# end-sanitize-gdbtk
1974
1975
1976
1977subdirs="$configdirs"
1978
1979trap '' 1 2 15
1980cat > confcache <<\EOF
1981# This file is a shell script that caches the results of configure
1982# tests run on this system so they can be shared between configure
1983# scripts and configure runs. It is not useful on other systems.
1984# If it contains results you don't want to keep, you may remove or edit it.
1985#
1986# By default, configure uses ./config.cache as the cache file,
1987# creating it if it does not exist already. You can give configure
1988# the --cache-file=FILE option to use a different cache file; that is
1989# what configure does when it calls configure scripts in
1990# subdirectories, so they share the cache.
1991# Giving --cache-file=/dev/null disables caching, for debugging configure.
1992# config.status only pays attention to the cache file if you give it the
1993# --recheck option to rerun configure.
1994#
1995EOF
1996# Ultrix sh set writes to stderr and can't be redirected directly,
1997# and sets the high bit in the cache file unless we assign to the vars.
1998(set) 2>&1 |
1999 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2000 >> confcache
2001if cmp -s $cache_file confcache; then
2002 :
2003else
2004 if test -w $cache_file; then
2005 echo "updating cache $cache_file"
2006 cat confcache > $cache_file
2007 else
2008 echo "not updating unwritable cache $cache_file"
2009 fi
2010fi
2011rm -f confcache
2012
2013trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2014
2015test "x$prefix" = xNONE && prefix=$ac_default_prefix
2016# Let make expand exec_prefix.
2017test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2018
2019# Any assignment to VPATH causes Sun make to only execute
2020# the first set of double-colon rules, so remove it if not needed.
2021# If there is a colon in the path, we need to keep it.
2022if test "x$srcdir" = x.; then
2023 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2024fi
2025
2026trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2027
2028# Transform confdefs.h into DEFS.
2029# Protect against shell expansion while executing Makefile rules.
2030# Protect against Makefile macro expansion.
2031cat > conftest.defs <<\EOF
2032s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
2033s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2034s%\[%\\&%g
2035s%\]%\\&%g
2036s%\$%$$%g
2037EOF
2038DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2039rm -f conftest.defs
2040
2041
2042# Without the "./", some shells look in PATH for config.status.
2043: ${CONFIG_STATUS=./config.status}
2044
2045echo creating $CONFIG_STATUS
2046rm -f $CONFIG_STATUS
2047cat > $CONFIG_STATUS <<EOF
2048#! /bin/sh
2049# Generated automatically by configure.
2050# Run this file to recreate the current configuration.
2051# This directory was configured as follows,
2052# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2053#
2054# $0 $ac_configure_args
2055#
2056# Compiler output produced by configure, useful for debugging
2057# configure, is in ./config.log if it exists.
2058
2059ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2060for ac_option
2061do
2062 case "\$ac_option" in
2063 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2064 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2065 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2066 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5f107900 2067 echo "$CONFIG_STATUS generated by autoconf version 2.4"
5436fc65
C
2068 exit 0 ;;
2069 -help | --help | --hel | --he | --h)
2070 echo "\$ac_cs_usage"; exit 0 ;;
2071 *) echo "\$ac_cs_usage"; exit 1 ;;
2072 esac
2073done
2074
2075ac_given_srcdir=$srcdir
2076ac_given_INSTALL="$INSTALL"
2077
2078trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2079
2080# Protect against being on the right side of a sed subst in config.status.
2081sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
2082 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
2083$ac_vpsub
2084$extrasub
2085s%@CFLAGS@%$CFLAGS%g
2086s%@CPPFLAGS@%$CPPFLAGS%g
2087s%@CXXFLAGS@%$CXXFLAGS%g
2088s%@DEFS@%$DEFS%g
2089s%@LDFLAGS@%$LDFLAGS%g
2090s%@LIBS@%$LIBS%g
2091s%@exec_prefix@%$exec_prefix%g
2092s%@prefix@%$prefix%g
2093s%@program_transform_name@%$program_transform_name%g
2094s%@CC@%$CC%g
2095s%@CPP@%$CPP%g
2096s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2097s%@INSTALL_DATA@%$INSTALL_DATA%g
2098s%@RANLIB@%$RANLIB%g
2099s%@host@%$host%g
2100s%@host_alias@%$host_alias%g
2101s%@host_cpu@%$host_cpu%g
2102s%@host_vendor@%$host_vendor%g
2103s%@host_os@%$host_os%g
2104s%@target@%$target%g
2105s%@target_alias@%$target_alias%g
2106s%@target_cpu@%$target_cpu%g
2107s%@target_vendor@%$target_vendor%g
2108s%@target_os@%$target_os%g
2109s%@build@%$build%g
2110s%@build_alias@%$build_alias%g
2111s%@build_cpu@%$build_cpu%g
2112s%@build_vendor@%$build_vendor%g
2113s%@build_os@%$build_os%g
2114s%@X_CFLAGS@%$X_CFLAGS%g
2115s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2116s%@X_LIBS@%$X_LIBS%g
2117s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2118s%@TKHDIR@%$TKHDIR%g
2119s%@TKLIB@%$TKLIB%g
2120s%@TCLHDIR@%$TCLHDIR%g
2121s%@TCLLIB@%$TCLLIB%g
2122s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
2123s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
2124s%@ENABLE_CLIBS@%$ENABLE_CLIBS%g
2125s%@ENABLE_OBS@%$ENABLE_OBS%g
5436fc65
C
2126/@host_makefile_frag@/r $host_makefile_frag
2127s%@host_makefile_frag@%%g
2128/@target_makefile_frag@/r $target_makefile_frag
2129s%@target_makefile_frag@%%g
5f107900 2130s%@frags@%$frags%g
5436fc65
C
2131s%@subdirs@%$subdirs%g
2132
2133CEOF
2134EOF
2135cat >> $CONFIG_STATUS <<EOF
2136
2137CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2138EOF
2139cat >> $CONFIG_STATUS <<\EOF
2140for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2141 # Support "outfile[:infile]", defaulting infile="outfile.in".
2142 case "$ac_file" in
2143 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2144 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2145 *) ac_file_in="${ac_file}.in" ;;
2146 esac
2147
2148 # Adjust relative srcdir, etc. for subdirectories.
2149
2150 # Remove last slash and all that follows it. Not all systems have dirname.
2151 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2152 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2153 # The file is in a subdirectory.
2154 test ! -d "$ac_dir" && mkdir "$ac_dir"
2155 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2156 # A "../" for each directory in $ac_dir_suffix.
2157 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2158 else
2159 ac_dir_suffix= ac_dots=
2160 fi
2161
2162 case "$ac_given_srcdir" in
2163 .) srcdir=.
2164 if test -z "$ac_dots"; then top_srcdir=.
2165 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2166 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2167 *) # Relative path.
2168 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2169 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2170 esac
2171
2172 case "$ac_given_INSTALL" in
2173 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2174 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2175 esac
2176 echo creating "$ac_file"
2177 rm -f "$ac_file"
2178 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2179 case "$ac_file" in
2180 *Makefile*) ac_comsub="1i\\
2181# $configure_input" ;;
2182 *) ac_comsub= ;;
2183 esac
2184 sed -e "$ac_comsub
2185s%@configure_input@%$configure_input%g
2186s%@srcdir@%$srcdir%g
2187s%@top_srcdir@%$top_srcdir%g
2188s%@INSTALL@%$INSTALL%g
2189" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2190fi; done
2191rm -f conftest.subs
2192
2193EOF
2194
2195cat >> $CONFIG_STATUS <<EOF
2196ac_sources="$files"
2197ac_dests="$links"
2198EOF
2199
2200cat >> $CONFIG_STATUS <<\EOF
2201srcdir=$ac_given_srcdir
2202while test -n "$ac_sources"; do
2203 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2204 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2205
2206 echo "linking $srcdir/$ac_source to $ac_dest"
2207
2208 if test ! -r $srcdir/$ac_source; then
2209 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2210 fi
2211 rm -f $ac_dest
2212
2213 # Make relative symlinks.
2214 # Remove last slash and all that follows it. Not all systems have dirname.
2215 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2216 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2217 # The dest file is in a subdirectory.
2218 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2219 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2220 # A "../" for each directory in $ac_dest_dir_suffix.
2221 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2222 else
2223 ac_dest_dir_suffix= ac_dots=
2224 fi
2225
2226 case "$srcdir" in
2227 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2228 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2229 esac
2230
2231 # Make a symlink if possible; otherwise try a hard link.
2232 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2233 ln $srcdir/$ac_source $ac_dest; then :
2234 else
2235 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2236 fi
2237done
0a5a1821
C
2238EOF
2239cat >> $CONFIG_STATUS <<EOF
5436fc65 2240
0a5a1821
C
2241gdb_host_cpu=$gdb_host_cpu
2242gdb_target_cpu=$gdb_target_cpu
2243nativefile=$nativefile
2244
2245EOF
2246cat >> $CONFIG_STATUS <<\EOF
5436fc65
C
2247
2248if test "${nativefile}" = ""; then
2249sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
2250 < Makefile > Makefile.tem
2251mv -f Makefile.tem Makefile
2252fi
2253
2254sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
2255/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
2256/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
2257mv -f Makefile.tmp Makefile
2258
2259case ${srcdir} in
2260.)
2261;;
2262*)
2263grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
2264echo "source ${srcdir}/.gdbinit" >> .gdbinit
2265esac
2266
2267exit 0
2268EOF
2269chmod +x $CONFIG_STATUS
2270rm -fr confdefs* $ac_clean_files
2271test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2272
2273if test "$no_recursion" != yes; then
2274
2275 # Remove --cache-file and --srcdir arguments so they do not pile up.
2276 ac_sub_configure_args=
2277 ac_prev=
2278 for ac_arg in $ac_configure_args; do
2279 if test -n "$ac_prev"; then
2280 ac_prev=
2281 continue
2282 fi
2283 case "$ac_arg" in
2284 -cache-file | --cache-file | --cache-fil | --cache-fi \
2285 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2286 ac_prev=cache_file ;;
2287 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2288 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2289 ;;
2290 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2291 ac_prev=srcdir ;;
2292 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2293 ;;
2294 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2295 esac
2296 done
2297
2298 for ac_config_dir in $configdirs; do
2299
2300 # Do not complain, so a configure script can configure whichever
2301 # parts of a large source tree are present.
2302 if test ! -d $srcdir/$ac_config_dir; then
2303 continue
2304 fi
2305
2306 echo configuring in $ac_config_dir
2307
2308 case "$srcdir" in
2309 .) ;;
2310 *)
2311 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2312 else
2313 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2314 fi
2315 ;;
2316 esac
2317
2318 ac_popdir=`pwd`
2319 cd $ac_config_dir
2320
2321 case "$srcdir" in
2322 .) # No --srcdir option. We are building in place.
2323 ac_sub_srcdir=$srcdir ;;
2324 /*) # Absolute path.
2325 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2326 *) # Relative path.
2327 ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
2328 esac
2329
2330 # Check for guested configure; otherwise get Cygnus style configure.
2331 if test -f $ac_sub_srcdir/configure; then
2332 ac_sub_configure=$ac_sub_srcdir/configure
2333 elif test -f $ac_sub_srcdir/configure.in; then
2334 ac_sub_configure=$ac_configure
2335 else
2336 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2337 ac_sub_configure=
2338 fi
2339
2340 # The recursion is here.
2341 if test -n "$ac_sub_configure"; then
2342
2343 # Make the cache file name correct relative to the subdirectory.
2344 # A "../" for each directory in /$ac_config_dir.
2345 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2346 case "$cache_file" in
2347 /*) ac_sub_cache_file=$cache_file ;;
2348 *) # Relative path.
2349 ac_sub_cache_file="$ac_dots$cache_file" ;;
2350 esac
2351 case "$ac_given_INSTALL" in
2352 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2353 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2354 esac
2355
2356 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2357 # The eval makes quoting arguments work.
2358 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2359 then :
2360 else
2361 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2362 fi
2363 fi
2364
2365 cd $ac_popdir
2366 done
2367fi
2368