3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.7
5 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
19 --enable-sim-powerpc "
23 --with-x use the X Window System"
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
29 cache_file
=.
/config.cache
38 program_transform_name
=s
,x
,x
,
46 bindir
='${exec_prefix}/bin'
47 sbindir
='${exec_prefix}/sbin'
48 libexecdir
='${exec_prefix}/libexec'
49 datadir
='${prefix}/share'
50 sysconfdir
='${prefix}/etc'
51 sharedstatedir
='${prefix}/com'
52 localstatedir
='${prefix}/var'
53 libdir
='${exec_prefix}/lib'
54 includedir
='${prefix}/include'
55 oldincludedir
='/usr/include'
56 infodir
='${prefix}/info'
57 mandir
='${prefix}/man'
59 # Initialize some other variables.
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
75 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79 # Accept the important Cygnus configure options, so we can diagnose typos.
83 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
85 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
86 bindir
="$ac_optarg" ;;
88 -build |
--build |
--buil |
--bui |
--bu)
90 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
93 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
94 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
96 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
97 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
98 cache_file
="$ac_optarg" ;;
100 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
102 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
104 datadir
="$ac_optarg" ;;
106 -disable-* |
--disable-*)
107 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
115 -enable-* |
--enable-*)
116 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
128 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
129 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
130 |
--exec |
--exe |
--ex)
131 ac_prev
=exec_prefix
;;
132 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
133 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
134 |
--exec=* |
--exe=* |
--ex=*)
135 exec_prefix
="$ac_optarg" ;;
137 -gas |
--gas |
--ga |
--g)
138 # Obsolete; use --with-gas.
141 -help |
--help |
--hel |
--he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --version print the version of autoconf that created configure
153 Directory and file names:
154 --prefix=PREFIX install architecture-independent files in PREFIX
156 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
158 --bindir=DIR user executables in DIR [EPREFIX/bin]
159 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
160 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
161 --datadir=DIR read-only architecture-independent data in DIR
163 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
164 --sharedstatedir=DIR modifiable architecture-independent data in DIR
166 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
167 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
168 --includedir=DIR C header files in DIR [PREFIX/include]
169 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
170 --infodir=DIR info documentation in DIR [PREFIX/info]
171 --mandir=DIR man documentation in DIR [PREFIX/man]
172 --srcdir=DIR find the sources in DIR [configure dir or ..]
173 --program-prefix=PREFIX prepend PREFIX to installed program names
174 --program-suffix=SUFFIX append SUFFIX to installed program names
175 --program-transform-name=PROGRAM
176 run sed PROGRAM on installed program names
180 --build=BUILD configure for building on BUILD [BUILD=HOST]
181 --host=HOST configure for HOST [guessed]
182 --target=TARGET configure for TARGET [TARGET=HOST]
183 Features and packages:
184 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
185 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
186 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
187 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
188 --x-includes=DIR X include files are in DIR
189 --x-libraries=DIR X library files are in DIR
191 if test -n "$ac_help"; then
192 echo "--enable and --with options recognized:$ac_help"
196 -host |
--host |
--hos |
--ho)
198 -host=* |
--host=* |
--hos=* |
--ho=*)
201 -includedir |
--includedir |
--includedi |
--included |
--include \
202 |
--includ |
--inclu |
--incl |
--inc)
203 ac_prev
=includedir
;;
204 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
205 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
206 includedir
="$ac_optarg" ;;
208 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
210 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
211 infodir
="$ac_optarg" ;;
213 -libdir |
--libdir |
--libdi |
--libd)
215 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
216 libdir
="$ac_optarg" ;;
218 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
219 |
--libexe |
--libex |
--libe)
220 ac_prev
=libexecdir
;;
221 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
222 |
--libexe=* |
--libex=* |
--libe=*)
223 libexecdir
="$ac_optarg" ;;
225 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
226 |
--localstate |
--localstat |
--localsta |
--localst \
227 |
--locals |
--local |
--loca |
--loc |
--lo)
228 ac_prev
=localstatedir
;;
229 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
230 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
231 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
232 localstatedir
="$ac_optarg" ;;
234 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
236 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
237 mandir
="$ac_optarg" ;;
240 # Obsolete; use --without-fp.
243 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
247 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
248 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
251 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
252 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
253 |
--oldin |
--oldi |
--old |
--ol |
--o)
254 ac_prev
=oldincludedir
;;
255 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
256 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
257 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
258 oldincludedir
="$ac_optarg" ;;
260 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
262 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
263 prefix
="$ac_optarg" ;;
265 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
266 |
--program-pre |
--program-pr |
--program-p)
267 ac_prev
=program_prefix
;;
268 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
269 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
270 program_prefix
="$ac_optarg" ;;
272 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
273 |
--program-suf |
--program-su |
--program-s)
274 ac_prev
=program_suffix
;;
275 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
276 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
277 program_suffix
="$ac_optarg" ;;
279 -program-transform-name |
--program-transform-name \
280 |
--program-transform-nam |
--program-transform-na \
281 |
--program-transform-n |
--program-transform- \
282 |
--program-transform |
--program-transfor \
283 |
--program-transfo |
--program-transf \
284 |
--program-trans |
--program-tran \
285 |
--progr-tra |
--program-tr |
--program-t)
286 ac_prev
=program_transform_name
;;
287 -program-transform-name=* |
--program-transform-name=* \
288 |
--program-transform-nam=* |
--program-transform-na=* \
289 |
--program-transform-n=* |
--program-transform-=* \
290 |
--program-transform=* |
--program-transfor=* \
291 |
--program-transfo=* |
--program-transf=* \
292 |
--program-trans=* |
--program-tran=* \
293 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
294 program_transform_name
="$ac_optarg" ;;
296 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
297 |
-silent |
--silent |
--silen |
--sile |
--sil)
300 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
302 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
304 sbindir
="$ac_optarg" ;;
306 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
307 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
308 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
310 ac_prev
=sharedstatedir
;;
311 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
312 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
313 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
315 sharedstatedir
="$ac_optarg" ;;
317 -site |
--site |
--sit)
319 -site=* |
--site=* |
--sit=*)
322 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
324 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
325 srcdir
="$ac_optarg" ;;
327 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
328 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
329 ac_prev
=sysconfdir
;;
330 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
331 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
332 sysconfdir
="$ac_optarg" ;;
334 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
336 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
337 target
="$ac_optarg" ;;
339 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
342 -version |
--version |
--versio |
--versi |
--vers)
343 echo "configure generated by autoconf version 2.7"
347 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352 ac_package
=`echo $ac_package| sed 's/-/_/g'`
357 eval "with_${ac_package}='$ac_optarg'" ;;
359 -without-* |
--without-*)
360 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package
=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
369 # Obsolete; use --with-x.
372 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
373 |
--x-incl |
--x-inc |
--x-in |
--x-i)
374 ac_prev
=x_includes
;;
375 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
376 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
377 x_includes
="$ac_optarg" ;;
379 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
380 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
381 ac_prev
=x_libraries
;;
382 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
383 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
384 x_libraries
="$ac_optarg" ;;
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391 echo "configure: warning: $ac_option: invalid host type" 1>&2
393 if test "x$nonopt" != xNONE
; then
394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
402 if test -n "$ac_prev"; then
403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408 # File descriptor usage:
411 # 2 errors and warnings
412 # 3 some systems may open it to /dev/tty
413 # 4 used on the Kubota Titan
414 # 6 checking for... messages and results
415 # 5 compiler messages saved in config.log
416 if test "$silent" = yes; then
424 This file contains any messages produced by compilers while
425 running configure, to aid debugging if configure makes a mistake.
428 # Strip out --no-create and --no-recursion so they do not pile up.
429 # Also quote any args containing shell metacharacters.
434 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
435 |
--no-cr |
--no-c) ;;
436 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
437 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
438 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
440 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
445 # Only set LANG and LC_ALL to C if already set.
446 # These must not be set unconditionally because not all systems understand
447 # e.g. LANG=C (notably SCO).
448 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
449 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest
* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
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.
458 ac_unique_file
=main.c
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted
=yes
463 # Try the directory containing this script, then its parent.
465 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
468 if test ! -r $srcdir/$ac_unique_file; then
472 ac_srcdir_defaulted
=no
474 if 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; }
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE
; then
486 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
488 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491 for ac_site_file
in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
502 echo "creating cache $cache_file"
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp
='echo $CPP $CPPFLAGS 1>&5;
510 ac_compile
='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
511 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
512 ac_link
='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
513 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
515 if (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
524 ac_n
= ac_c
='\c' ac_t
=
529 # Extract the first word of "gcc", so it can be a program name with args.
530 set dummy gcc
; ac_word
=$2
531 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
532 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
533 echo $ac_n "(cached) $ac_c" 1>&6
535 if test -n "$CC"; then
536 ac_cv_prog_CC
="$CC" # Let the user override the test.
538 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
539 for ac_dir
in $PATH; do
540 test -z "$ac_dir" && ac_dir
=.
541 if test -f $ac_dir/$ac_word; then
547 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="cc"
551 if test -n "$CC"; then
552 echo "$ac_t""$CC" 1>&6
554 echo "$ac_t""no" 1>&6
558 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
559 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
560 echo $ac_n "(cached) $ac_c" 1>&6
562 cat > conftest.c
<<EOF
567 if ${CC-cc} -E conftest.c
2>&5 |
egrep yes >/dev
/null
2>&1; then
574 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
575 if test $ac_cv_prog_gcc = yes; then
577 if test "${CFLAGS+set}" != set; then
578 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
579 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
580 echo $ac_n "(cached) $ac_c" 1>&6
582 echo 'void f(){}' > conftest.c
583 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
592 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
593 if test $ac_cv_prog_gcc_g = yes; then
601 test "${CFLAGS+set}" = set || CFLAGS
="-g"
604 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
605 # On Suns, sometimes $CPP names a directory.
606 if test -n "$CPP" && test -d "$CPP"; then
609 if test -z "$CPP"; then
610 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
611 echo $ac_n "(cached) $ac_c" 1>&6
613 # This must be in double quotes, not single quotes, because CPP may get
614 # substituted into the Makefile and "${CC-cc}" will confuse make.
616 # On the NeXT, cc -E runs the code through the compiler's parser,
617 # not just through cpp.
618 cat > conftest.
$ac_ext <<EOF
619 #line 620 "configure"
620 #include "confdefs.h"
624 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
625 ac_err
=`grep -v '^ *+' conftest.out`
626 if test -z "$ac_err"; then
631 CPP
="${CC-cc} -E -traditional-cpp"
632 cat > conftest.
$ac_ext <<EOF
633 #line 634 "configure"
634 #include "confdefs.h"
638 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
639 ac_err
=`grep -v '^ *+' conftest.out`
640 if test -z "$ac_err"; then
650 ac_cv_prog_CPP
="$CPP"
652 CPP
="$ac_cv_prog_CPP"
654 ac_cv_prog_CPP
="$CPP"
656 echo "$ac_t""$CPP" 1>&6
658 echo $ac_n "checking for AIX""... $ac_c" 1>&6
659 cat > conftest.
$ac_ext <<EOF
660 #line 661 "configure"
661 #include "confdefs.h"
667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
668 egrep "yes" >/dev
/null
2>&1; then
670 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
671 #define _ALL_SOURCE 1
676 echo "$ac_t""no" 1>&6
681 ac_safe
=`echo "minix/config.h" | tr './\055' '___'`
682 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
683 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
684 echo $ac_n "(cached) $ac_c" 1>&6
686 cat > conftest.
$ac_ext <<EOF
687 #line 688 "configure"
688 #include "confdefs.h"
689 #include <minix/config.h>
691 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
692 ac_err
=`grep -v '^ *+' conftest.out`
693 if test -z "$ac_err"; then
695 eval "ac_cv_header_$ac_safe=yes"
699 eval "ac_cv_header_$ac_safe=no"
703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
704 echo "$ac_t""yes" 1>&6
707 echo "$ac_t""no" 1>&6
711 if test "$MINIX" = yes; then
712 cat >> confdefs.h
<<\EOF
713 #define _POSIX_SOURCE 1
716 cat >> confdefs.h
<<\EOF
717 #define _POSIX_1_SOURCE 2
720 cat >> confdefs.h
<<\EOF
726 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
727 if test -d /etc
/conf
/kconfig.d
&&
728 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
730 echo "$ac_t""yes" 1>&6
731 ISC
=yes # If later tests want to check for ISC.
732 cat >> confdefs.h
<<\EOF
733 #define _POSIX_SOURCE 1
736 if test "$GCC" = yes; then
742 echo "$ac_t""no" 1>&6
748 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
749 if test -f $ac_dir/install-sh
; then
751 ac_install_sh
="$ac_aux_dir/install-sh -c"
753 elif test -f $ac_dir/install.sh
; then
755 ac_install_sh
="$ac_aux_dir/install.sh -c"
759 if test -z "$ac_aux_dir"; then
760 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
762 ac_config_guess
=$ac_aux_dir/config.guess
763 ac_config_sub
=$ac_aux_dir/config.sub
764 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
766 # Find a good install program. We prefer a C program (faster),
767 # so one script is as good as another. But avoid the broken or
768 # incompatible versions:
769 # SysV /etc/install, /usr/sbin/install
770 # SunOS /usr/etc/install
773 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
774 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
775 # ./install, which can be erroneously created by make from ./install.sh.
776 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
777 if test -z "$INSTALL"; then
778 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
781 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
782 for ac_dir
in $PATH; do
783 # Account for people who put trailing slashes in PATH elements.
785 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
787 # OSF1 and SCO ODT 3.0 have their own names for install.
788 for ac_prog
in ginstall installbsd scoinst
install; do
789 if test -f $ac_dir/$ac_prog; then
790 if test $ac_prog = install &&
791 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
792 # AIX install. It has an incompatible calling convention.
793 # OSF/1 installbsd also uses dspmsg, but is usable.
796 ac_cv_path_install
="$ac_dir/$ac_prog -c"
807 if test "${ac_cv_path_install+set}" = set; then
808 INSTALL
="$ac_cv_path_install"
810 # As a last resort, use the slow shell script. We don't cache a
811 # path for INSTALL within a source directory, because that will
812 # break other packages using the cache if that directory is
813 # removed, or if the path is relative.
814 INSTALL
="$ac_install_sh"
817 echo "$ac_t""$INSTALL" 1>&6
819 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
820 # It thinks the first close brace ends the variable substitution.
821 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
823 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
825 # Extract the first word of "ranlib", so it can be a program name with args.
826 set dummy ranlib
; ac_word
=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
831 if test -n "$RANLIB"; then
832 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
834 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
835 for ac_dir
in $PATH; do
836 test -z "$ac_dir" && ac_dir
=.
837 if test -f $ac_dir/$ac_word; then
838 ac_cv_prog_RANLIB
="ranlib"
843 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
846 RANLIB
="$ac_cv_prog_RANLIB"
847 if test -n "$RANLIB"; then
848 echo "$ac_t""$RANLIB" 1>&6
850 echo "$ac_t""no" 1>&6
853 for ac_prog
in 'bison -y' byacc
855 # Extract the first word of "$ac_prog", so it can be a program name with args.
856 set dummy
$ac_prog; ac_word
=$2
857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
858 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
861 if test -n "$YACC"; then
862 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
864 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
865 for ac_dir
in $PATH; do
866 test -z "$ac_dir" && ac_dir
=.
867 if test -f $ac_dir/$ac_word; then
868 ac_cv_prog_YACC
="$ac_prog"
875 YACC
="$ac_cv_prog_YACC"
876 if test -n "$YACC"; then
877 echo "$ac_t""$YACC" 1>&6
879 echo "$ac_t""no" 1>&6
882 test -n "$YACC" && break
884 test -n "$YACC" || YACC
="yacc"
888 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
889 if test -f $ac_dir/install-sh
; then
891 ac_install_sh
="$ac_aux_dir/install-sh -c"
893 elif test -f $ac_dir/install.sh
; then
895 ac_install_sh
="$ac_aux_dir/install.sh -c"
899 if test -z "$ac_aux_dir"; then
900 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
902 ac_config_guess
=$ac_aux_dir/config.guess
903 ac_config_sub
=$ac_aux_dir/config.sub
904 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
907 # Do some error checking and defaulting for the host and target type.
909 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
912 # 1. You are not allowed to specify --host, --target, and nonopt at the
914 # 2. Host defaults to nonopt.
915 # 3. If nonopt is not specified, then host defaults to the current host,
916 # as determined by config.guess.
917 # 4. Target and build default to nonopt.
918 # 5. If nonopt is not specified, then target and build default to host.
920 # The aliases save the names the user supplied, while $host etc.
921 # will get canonicalized.
922 case $host---$target---$nonopt in
923 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
924 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
928 # Make sure we can run config.sub.
929 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
930 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
933 echo $ac_n "checking host system type""... $ac_c" 1>&6
936 case "$host_alias" in
940 if host_alias
=`$ac_config_guess`; then :
941 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
943 *) host_alias
=$nonopt ;;
947 host=`$ac_config_sub $host_alias`
948 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
949 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
950 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
951 echo "$ac_t""$host" 1>&6
953 echo $ac_n "checking target system type""... $ac_c" 1>&6
956 case "$target_alias" in
959 NONE
) target_alias
=$host_alias ;;
960 *) target_alias
=$nonopt ;;
964 target
=`$ac_config_sub $target_alias`
965 target_cpu
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
966 target_vendor
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
967 target_os
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
968 echo "$ac_t""$target" 1>&6
970 echo $ac_n "checking build system type""... $ac_c" 1>&6
973 case "$build_alias" in
976 NONE
) build_alias
=$host_alias ;;
977 *) build_alias
=$nonopt ;;
981 build
=`$ac_config_sub $build_alias`
982 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
983 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
984 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
985 echo "$ac_t""$build" 1>&6
987 test "$host_alias" != "$target_alias" &&
988 test "$program_prefix$program_suffix$program_transform_name" = \
990 program_prefix
=${target_alias}-
992 if test "$program_transform_name" = s
,x
,x
,; then
993 program_transform_name
=
995 # Double any \ or $. echo might interpret backslashes.
996 cat <<\EOF_SED
> conftestsed
997 s
,\\,\\\\,g
; s
,\$
,$$
,g
999 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1002 test "$program_prefix" != NONE
&&
1003 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1004 # Use a double $ so make ignores it.
1005 test "$program_suffix" != NONE
&&
1006 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1008 # sed with no file args requires a program.
1009 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1012 # If we cannot run a trivial program, we must be cross compiling.
1013 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1014 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1017 if test "$cross_compiling" = yes; then
1020 cat > conftest.
$ac_ext <<EOF
1021 #line 1022 "configure"
1022 #include "confdefs.h"
1026 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1035 echo "$ac_t""$ac_cv_c_cross" 1>&6
1036 cross_compiling
=$ac_cv_c_cross
1038 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1039 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1042 cat > conftest.
$ac_ext <<EOF
1043 #line 1044 "configure"
1044 #include "confdefs.h"
1050 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1051 ac_err
=`grep -v '^ *+' conftest.out`
1052 if test -z "$ac_err"; then
1054 ac_cv_header_stdc
=yes
1058 ac_cv_header_stdc
=no
1062 if test $ac_cv_header_stdc = yes; then
1063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1064 cat > conftest.
$ac_ext <<EOF
1065 #line 1066 "configure"
1066 #include "confdefs.h"
1069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1070 egrep "memchr" >/dev
/null
2>&1; then
1074 ac_cv_header_stdc
=no
1080 if test $ac_cv_header_stdc = yes; then
1081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1082 cat > conftest.
$ac_ext <<EOF
1083 #line 1084 "configure"
1084 #include "confdefs.h"
1087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1088 egrep "free" >/dev
/null
2>&1; then
1092 ac_cv_header_stdc
=no
1098 if test $ac_cv_header_stdc = yes; then
1099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1100 if test "$cross_compiling" = yes; then
1103 cat > conftest.
$ac_ext <<EOF
1104 #line 1105 "configure"
1105 #include "confdefs.h"
1107 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1108 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1109 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1110 int main () { int i; for (i = 0; i < 256; i++)
1111 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1116 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1119 ac_cv_header_stdc
=no
1126 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1127 if test $ac_cv_header_stdc = yes; then
1128 cat >> confdefs.h
<<\EOF
1129 #define STDC_HEADERS 1
1134 for ac_hdr
in memory.h string.h
strings.h unistd.h termios.h termio.h sgtty.h stddef.h
1136 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 cat > conftest.
$ac_ext <<EOF
1142 #line 1143 "configure"
1143 #include "confdefs.h"
1146 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1147 ac_err
=`grep -v '^ *+' conftest.out`
1148 if test -z "$ac_err"; then
1150 eval "ac_cv_header_$ac_safe=yes"
1154 eval "ac_cv_header_$ac_safe=no"
1158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1159 echo "$ac_t""yes" 1>&6
1160 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1161 cat >> confdefs.h
<<EOF
1162 #define $ac_tr_hdr 1
1166 echo "$ac_t""no" 1>&6
1170 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1171 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 cat > conftest.
$ac_ext <<EOF
1175 #line 1176 "configure"
1176 #include "confdefs.h"
1177 #include <sys/types.h>
1178 #include <sys/stat.h>
1180 #if defined(S_ISBLK) && defined(S_IFDIR)
1181 # if S_ISBLK (S_IFDIR)
1186 #if defined(S_ISBLK) && defined(S_IFCHR)
1187 # if S_ISBLK (S_IFCHR)
1192 #if defined(S_ISLNK) && defined(S_IFREG)
1193 # if S_ISLNK (S_IFREG)
1198 #if defined(S_ISSOCK) && defined(S_IFREG)
1199 # if S_ISSOCK (S_IFREG)
1205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1206 egrep "You lose" >/dev
/null
2>&1; then
1208 ac_cv_header_stat_broken
=yes
1211 ac_cv_header_stat_broken
=no
1217 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1218 if test $ac_cv_header_stat_broken = yes; then
1219 cat >> confdefs.h
<<\EOF
1220 #define STAT_MACROS_BROKEN 1
1226 for ac_func
in valloc getpagesize
1228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1232 cat > conftest.
$ac_ext <<EOF
1233 #line 1234 "configure"
1234 #include "confdefs.h"
1235 /* System header to define __stub macros and hopefully few prototypes,
1236 which can conflict with char $ac_func(); below. */
1238 /* Override any gcc2 internal prototype to avoid an error. */
1241 int main() { return 0; }
1244 /* The GNU C library defines this for functions which it implements
1245 to always fail with ENOSYS. Some functions are actually named
1246 something starting with __ and the normal name is an alias. */
1247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1255 if eval $ac_link; then
1257 eval "ac_cv_func_$ac_func=yes"
1260 eval "ac_cv_func_$ac_func=no"
1265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1266 echo "$ac_t""yes" 1>&6
1267 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1268 cat >> confdefs.h
<<EOF
1269 #define $ac_tr_func 1
1273 echo "$ac_t""no" 1>&6
1277 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1278 if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1281 if test "$cross_compiling" = yes; then
1284 cat > conftest.
$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1288 /* Thanks to Mike Haertel and Jim Avera for this test. */
1289 #include <sys/types.h>
1291 #include <sys/mman.h>
1293 #ifndef HAVE_GETPAGESIZE
1294 # include <sys/param.h>
1295 # ifdef EXEC_PAGESIZE
1296 # define getpagesize() EXEC_PAGESIZE
1299 # define getpagesize() NBPG * CLSIZE
1305 # define getpagesize() NBPC
1307 # define getpagesize() PAGESIZE /* SVR4 */
1314 # define valloc malloc
1318 extern "C" { void *valloc(unsigned), *malloc(unsigned); }
1320 char *valloc(), *malloc();
1326 char *buf1, *buf2, *buf3;
1327 int i = getpagesize(), j;
1331 buf1 = (char *)valloc(i2);
1332 buf2 = (char *)valloc(i);
1333 buf3 = (char *)malloc(i2);
1334 for (j = 0; j < i2; ++j)
1335 *(buf1 + j) = rand();
1336 fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
1337 write(fd, buf1, i2);
1338 mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
1339 for (j = 0; j < i; ++j)
1340 if (*(buf1 + j) != *(buf2 + j))
1342 lseek(fd, (long)i, 0);
1343 read(fd, buf2, i); /* read into mapped memory -- file should not change */
1344 /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
1345 lseek(fd, (long)0, 0);
1347 for (j = 0; j < i2; ++j)
1348 if (*(buf1 + j) != *(buf3 + j))
1355 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1364 echo "$ac_t""$ac_cv_func_mmap" 1>&6
1365 if test $ac_cv_func_mmap = yes; then
1366 cat >> confdefs.h
<<\EOF
1377 # Check whether --enable-netrom or --disable-netrom was given.
1378 if test "${enable_netrom+set}" = set; then
1379 enableval
="$enable_netrom"
1380 case "${enableval}" in
1381 yes) enable_netrom
=yes ;;
1382 no
) enable_netrom
=no
;;
1383 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
1388 if test "${enable_netrom}" = "yes"; then
1389 ENABLE_OBS
="${ENABLE_OBS} remote-nrom.o"
1395 # Check whether --enable-gm or --disable-gm was given.
1396 if test "${enable_gm+set}" = set; then
1397 enableval
="$enable_gm"
1398 case "${enableval}" in
1399 yes) ENABLE_OBS
="${ENABLE_OBS} magic.o"
1400 ENABLE_CFLAGS
=-DGENERAL_MAGIC
1403 *) { echo "configure: error: bad value ${enableval} given for gm option" 1>&2; exit 1; } ;;
1410 # Check whether --enable-sim-powerpc or --disable-sim-powerpc was given.
1411 if test "${enable_sim_powerpc+set}" = set; then
1412 enableval
="$enable_sim_powerpc"
1413 case "${enableval}" in
1414 yes) powerpc_sim
=yes ;;
1415 no
) powerpc_sim
=no
;;
1416 *) { echo "configure: error: bad value ${enableval} given for sim-powerpc option" 1>&2; exit 1; } ;;
1419 if test x
"$GCC" != x
""; then powerpc_sim
=yes; else powerpc_sim
=no
; fi
1423 # start-sanitize-gdbtk
1426 # Check whether --enable-gdbtk or --disable-gdbtk was given.
1427 if test "${enable_gdbtk+set}" = set; then
1428 enableval
="$enable_gdbtk"
1429 case "${enableval}" in
1430 yes) enable_gdbtk
=yes ;;
1431 no
) enable_gdbtk
=no
;;
1432 *) { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
1437 if test "${enable_gdbtk}" = "yes"; then
1438 # If we find X, set shell vars x_includes and x_libraries to the
1439 # paths, otherwise set no_x=yes.
1440 # Uses ac_ vars as temps to allow command line to override cache and checks.
1441 # --without-x overrides everything else, but does not touch the cache.
1442 echo $ac_n "checking for X""... $ac_c" 1>&6
1444 # Check whether --with-x or --without-x was given.
1445 if test "${with_x+set}" = set; then
1450 if test "x$with_x" = xno
; then
1453 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1456 if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 # One or both of the vars are not set, and there is no cached value.
1462 if mkdir conftestdir
; then
1464 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1465 cat > Imakefile
<<'EOF'
1467 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1469 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1471 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1472 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1473 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1474 for ac_extension
in a so sl
; do
1475 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1476 test -f $ac_im_libdir/libX11.
$ac_extension; then
1477 ac_im_usrlibdir
=$ac_im_libdir; break
1480 # Screen out bogus values from the imake configuration.
1481 case "$ac_im_incroot" in
1483 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1485 case "$ac_im_usrlibdir" in
1487 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1494 if test "$no_x" = yes; then
1495 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1496 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1497 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1498 cat > conftest.
$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1501 #include <$x_direct_test_include>
1503 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1504 ac_err
=`grep -v '^ *+' conftest.out`
1505 if test -z "$ac_err"; then
1507 no_x
= ac_x_includes
=
1512 /usr
/X11R
6/include \
1513 /usr
/X11R
5/include \
1514 /usr
/X11R
4/include \
1516 /usr
/include
/X11R6 \
1517 /usr
/include
/X11R5 \
1518 /usr
/include
/X11R4 \
1520 /usr
/local
/X11R
6/include \
1521 /usr
/local
/X11R
5/include \
1522 /usr
/local
/X11R
4/include \
1524 /usr
/local
/include
/X11R6 \
1525 /usr
/local
/include
/X11R5 \
1526 /usr
/local
/include
/X11R4 \
1530 /usr
/local
/X11
/include \
1531 /usr
/local
/include
/X11 \
1535 /usr
/XFree86
/include
/X11 \
1538 /usr
/local
/include \
1539 /usr
/unsupported
/include \
1540 /usr
/athena
/include \
1541 /usr
/local
/x11r
5/include \
1542 /usr
/lpp
/Xamples
/include \
1544 /usr
/openwin
/include \
1545 /usr
/openwin
/share
/include \
1548 if test -r "$ac_dir/$x_direct_test_include"; then
1549 no_x
= ac_x_includes
=$ac_dir
1556 # Check for the libraries.
1557 # See if we find them without any special options.
1558 # Don't add to $LIBS permanently.
1559 ac_save_LIBS
="$LIBS"
1560 LIBS
="-l$x_direct_test_library $LIBS"
1561 cat > conftest.
$ac_ext <<EOF
1562 #line 1563 "configure"
1563 #include "confdefs.h"
1565 int main() { return 0; }
1567 ${x_direct_test_function}()
1570 if eval $ac_link; then
1572 LIBS
="$ac_save_LIBS" no_x
= ac_x_libraries
=
1575 LIBS
="$ac_save_LIBS"
1576 # First see if replacing the include by lib works.
1577 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1586 /usr
/local
/X11R
6/lib \
1587 /usr
/local
/X11R
5/lib \
1588 /usr
/local
/X11R
4/lib \
1590 /usr
/local
/lib
/X11R6 \
1591 /usr
/local
/lib
/X11R5 \
1592 /usr
/local
/lib
/X11R4 \
1596 /usr
/local
/X11
/lib \
1597 /usr
/local
/lib
/X11 \
1601 /usr
/XFree86
/lib
/X11 \
1605 /usr
/unsupported
/lib \
1607 /usr
/local
/x11r
5/lib \
1608 /usr
/lpp
/Xamples
/lib \
1611 /usr
/openwin
/share
/lib \
1614 for ac_extension
in a so sl
; do
1615 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1616 no_x
= ac_x_libraries
=$ac_dir
1625 if test "$no_x" = yes; then
1626 ac_cv_path_x
="no_x=yes"
1628 ac_cv_path_x
="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1632 eval "$ac_cv_path_x"
1635 if test "$no_x" = yes; then
1636 echo "$ac_t""no" 1>&6
1638 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1639 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1640 ac_cv_path_x
="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1641 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1644 if test "$no_x" = yes; then
1645 # Not all programs may use this symbol, but it does not hurt to define it.
1646 X_CFLAGS
="$X_CFLAGS -DX_DISPLAY_MISSING"
1648 if test -n "$x_includes"; then
1649 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1652 # It would be nice to have a more robust check for the -R ld option than
1653 # just checking for Solaris.
1654 # It would also be nice to do this for all -L options, not just this one.
1655 if test -n "$x_libraries"; then
1656 X_LIBS
="$X_LIBS -L$x_libraries"
1657 if test "`(uname) 2>/dev/null`" = SunOS
&&
1658 uname
-r |
grep '^5' >/dev
/null
; then
1659 X_LIBS
="$X_LIBS -R $x_libraries"
1663 # Check for libraries that X11R6 Xt/Xaw programs need.
1665 ac_save_LDFLAGS
="$LDFLAGS"
1666 LDFLAGS
="$LDFLAGS -L$x_libraries"
1667 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1668 # check for ICE first), but we must link in the order -lSM -lICE or
1669 # we get undefined symbols. So assume we have SM if we have ICE.
1670 # These have to be linked with before -lX11, unlike the other
1671 # libraries we check for below, so use a different variable.
1672 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1673 echo $ac_n "checking for -lICE""... $ac_c" 1>&6
1674 ac_lib_var
=`echo ICE | tr '.-/+' '___p'`
1675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1678 ac_save_LIBS
="$LIBS"
1680 cat > conftest.
$ac_ext <<EOF
1681 #line 1682 "configure"
1682 #include "confdefs.h"
1684 int main() { return 0; }
1686 IceConnectionNumber()
1689 if eval $ac_link; then
1691 eval "ac_cv_lib_$ac_lib_var=yes"
1694 eval "ac_cv_lib_$ac_lib_var=no"
1697 LIBS
="$ac_save_LIBS"
1700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1701 echo "$ac_t""yes" 1>&6
1702 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1704 echo "$ac_t""no" 1>&6
1707 LDFLAGS
="$ac_save_LDFLAGS"
1709 # Check for system-dependent libraries X programs must link with.
1711 if test "$ISC" = yes; then
1712 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1714 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1715 # libraries were built with DECnet support. And karl@cs.umb.edu says
1716 # the Alpha needs dnet_stub (dnet does not exist).
1717 echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
1718 ac_lib_var
=`echo dnet | tr '.-/+' '___p'`
1719 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 ac_save_LIBS
="$LIBS"
1724 cat > conftest.
$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1728 int main() { return 0; }
1733 if eval $ac_link; then
1735 eval "ac_cv_lib_$ac_lib_var=yes"
1738 eval "ac_cv_lib_$ac_lib_var=no"
1741 LIBS
="$ac_save_LIBS"
1744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1745 echo "$ac_t""yes" 1>&6
1746 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1748 echo "$ac_t""no" 1>&6
1751 if test $ac_cv_lib_dnet = no
; then
1752 echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
1753 ac_lib_var
=`echo dnet_stub | tr '.-/+' '___p'`
1754 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 ac_save_LIBS
="$LIBS"
1758 LIBS
="-ldnet_stub $LIBS"
1759 cat > conftest.
$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1763 int main() { return 0; }
1768 if eval $ac_link; then
1770 eval "ac_cv_lib_$ac_lib_var=yes"
1773 eval "ac_cv_lib_$ac_lib_var=no"
1776 LIBS
="$ac_save_LIBS"
1779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1780 echo "$ac_t""yes" 1>&6
1781 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1783 echo "$ac_t""no" 1>&6
1788 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1789 # to get the SysV transport functions.
1790 # Not sure which flavor of 386 UNIX this is, but it seems harmless to
1792 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
1793 ac_lib_var
=`echo nsl | tr '.-/+' '___p'`
1794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1797 ac_save_LIBS
="$LIBS"
1799 cat > conftest.
$ac_ext <<EOF
1800 #line 1801 "configure"
1801 #include "confdefs.h"
1803 int main() { return 0; }
1808 if eval $ac_link; then
1810 eval "ac_cv_lib_$ac_lib_var=yes"
1813 eval "ac_cv_lib_$ac_lib_var=no"
1816 LIBS
="$ac_save_LIBS"
1819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1820 echo "$ac_t""yes" 1>&6
1821 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1823 echo "$ac_t""no" 1>&6
1827 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1828 # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
1829 # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
1830 if test "`(uname) 2>/dev/null`" != IRIX
; then
1831 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
1832 ac_lib_var
=`echo socket | tr '.-/+' '___p'`
1833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1834 echo $ac_n "(cached) $ac_c" 1>&6
1836 ac_save_LIBS
="$LIBS"
1837 LIBS
="-lsocket $LIBS"
1838 cat > conftest.
$ac_ext <<EOF
1839 #line 1840 "configure"
1840 #include "confdefs.h"
1842 int main() { return 0; }
1847 if eval $ac_link; then
1849 eval "ac_cv_lib_$ac_lib_var=yes"
1852 eval "ac_cv_lib_$ac_lib_var=no"
1855 LIBS
="$ac_save_LIBS"
1858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1859 echo "$ac_t""yes" 1>&6
1860 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lsocket"
1862 echo "$ac_t""no" 1>&6
1872 # Ok, lets find the tk source trees so we can use the headers
1873 # If the directory (presumably symlink) named "tk" exists, use that one
1874 # in preference to any others. Same logic is used when choosing library
1875 # and again with Tcl.
1877 echo "checking for Tk source directory" 1>&6
1879 for i
in `ls -d ${srcdir}/../tk* 2>/dev/null` ${srcdir}/..
/tk
; do
1880 if test -f $i/tk.h
; then
1884 # if we can't find it, see if one is installed
1885 if test x
"$TKHDIR" = x
; then
1887 if test -f $prefix/include
/tk.h
; then
1888 installed
=1 TKHDIR
="-I$prefix/include"
1890 ac_safe
=`echo "tk.h" | tr './\055' '___'`
1891 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
1892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1895 cat > conftest.
$ac_ext <<EOF
1896 #line 1897 "configure"
1897 #include "confdefs.h"
1900 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1901 ac_err
=`grep -v '^ *+' conftest.out`
1902 if test -z "$ac_err"; then
1904 eval "ac_cv_header_$ac_safe=yes"
1908 eval "ac_cv_header_$ac_safe=no"
1912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1913 echo "$ac_t""yes" 1>&6
1916 echo "$ac_t""no" 1>&6
1920 if test $installed -eq 0 ; then
1921 TKHDIR
="# no Tk directory found"
1922 echo "configure: warning: Can't find Tk directory" 1>&2
1925 if test x
"$TKHDIR" != x
; then
1926 echo "$ac_t""Setting TKHDIR to be $i" 1>&6
1930 # Ok, lets find the tk library
1931 # First, look for one uninstalled.
1934 echo "checking for Tk library" 1>&6
1935 for i
in `ls -d ../tk* 2>/dev/null` ..
/tk
; do
1936 if test -f "$i/Makefile" ; then
1940 # If not found, look for installed version
1941 if test x
"$TKLIB" = x
; then
1942 if test -f $prefix/lib
/libtk.a
; then
1947 if test $installed -eq 1 ; then
1952 # If still not found, assume Tk simply hasn't been built yet
1953 if test x
"$TKLIB" = x
; then
1954 for i
in `ls -d ../tk* 2>/dev/null` ..
/tk
; do
1955 if test -f "$i/tk.h" ; then
1961 if test x
"$TKLIB" = x
; then
1962 TKLIB
="# no Tk library found"
1963 echo "configure: warning: Can't find Tk library" 1>&2
1965 echo "$ac_t""setting TKLIB to be $TKLIB" 1>&6
1974 # Ok, lets find the tcl source trees so we can use the headers
1976 # Warning: transition of version 9 to 10 will break this algorithm
1977 # because 10 sorts before 9.
1979 echo "checking for Tcl source directory" 1>&6
1981 for i
in `ls -d ${srcdir}/../tcl* 2>/dev/null` ${srcdir}/..
/tcl
; do
1982 if test -f $i/tclInt.h
; then
1986 # if we can't find it, see if one is installed
1987 if test x
"$TCLHDIR" = x
; then
1989 if test -f $prefix/include
/tclInt.h
; then
1990 installed
=1 TCLHDIR
="-I$prefix/include"
1992 ac_safe
=`echo "tclInt.h" | tr './\055' '___'`
1993 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
1994 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1997 cat > conftest.
$ac_ext <<EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2002 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2003 ac_err
=`grep -v '^ *+' conftest.out`
2004 if test -z "$ac_err"; then
2006 eval "ac_cv_header_$ac_safe=yes"
2010 eval "ac_cv_header_$ac_safe=no"
2014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2015 echo "$ac_t""yes" 1>&6
2018 echo "$ac_t""no" 1>&6
2022 if test $installed -eq 0 ; then
2023 TCLHDIR
="# no Tcl directory found"
2024 echo "configure: warning: Can't find Tcl directory" 1>&2
2027 echo "$ac_t""setting TCLHDIR to be $i" 1>&6
2031 # Ok, lets find the tcl library
2032 # First, look for the latest uninstalled
2035 echo "checking for Tcl library" 1>&6
2036 for i
in `ls -d ../tcl* 2>/dev/null` ..
/tcl
; do
2037 if test -f "$i/Makefile" ; then
2041 # If not found, look for installed version
2042 if test x
"$TCLLIB" = x
; then
2043 if test -f $prefix/lib
/libtcl.a
; then installed
=1; else installed
=0; fi
2044 if test $installed -eq 1 ; then
2048 # If still not found, assume Tcl simply hasn't been built yet
2049 if test x
"$TCLLIB" = x
; then
2050 for i
in `ls -d ../tcl* 2>/dev/null` ..
/tcl
; do
2051 if test -f "$i/tcl.h" ; then
2057 if test x
"$TCLLIB" = x
; then
2058 TCLLIB
="# no Tcl library found"
2059 echo "configure: warning: Can't find Tcl library" 1>&2
2061 echo "$ac_t""setting TCLLIB to be $TCLLIB" 1>&6
2070 if test "x$no_x" != "xyes"; then
2071 if test "x$x_includes" != "x" ;
2073 X_CFLAGS
="-I$x_includes"
2078 if test "x$x_libraries" != "x" ;
2080 X_LDFLAGS
="-L$x_libraries"
2087 # gdb linked statically w/ Solaris iff GCC is used, otherwise dynamic
2089 sparc-sun-solaris2
*)
2090 if test "x$GCC" = "xyes";
2092 X_LIBS
="-Wl,-Bstatic -lX11 -lXext -lX11 -Wl,-Bdynamic"
2094 if test "x$x_libraries" != "x" ;
2096 X_LDFLAGS
="$X_LDFLAGS -R$x_libraries"
2098 X_LIBS
="-lX11 -lXext -lX11"
2101 # gdb linked statically w/ SunOS or HPUX
2103 m68k-hp-hpux
*|hppa
*-hp-hpux*|sparc-sun-sunos
*)
2104 if test "x$x_libraries" != "x" ;
2106 X_LIBS
="$x_libraries/libX11.a"
2108 X_LIBS
="/usr/lib/libX11.a"
2111 # default is to link dynamically
2120 echo "configure: warning: No X based programs will be built" 1>&2
2123 TCL_LIBS
='$(TCL) $(TK) $(X11_LDFLAGS) $(X11_LIBS)'
2124 ENABLE_CLIBS
="${ENABLE_CLIBS} ${TCL_LIBS} -lm"
2125 ENABLE_OBS
="${ENABLE_OBS} gdbtk.o"
2132 # end-sanitize-gdbtk
2138 # target_subdir is used by the testsuite to find the target libraries.
2140 if test "${host}" != "${target}"; then
2141 target_subdir
="${target_alias}/"
2145 configdirs
="doc testsuite"
2148 # Map host cpu into the config cpu subdirectory name.
2149 # The default is $host_cpu.
2151 case "${host_cpu}" in
2153 c
[12]) gdb_host_cpu
=convex
;;
2154 hppa
*) gdb_host_cpu
=pa
;;
2155 i
[3456]86) gdb_host_cpu
=i386
;;
2156 m68
*) gdb_host_cpu
=m68k
;;
2157 m88
*) gdb_host_cpu
=m88k
;;
2158 np1
) gdb_host_cpu
=gould
;;
2159 pyramid
) gdb_host_cpu
=pyr
;;
2160 powerpc
*) gdb_host_cpu
=powerpc
;;
2161 *) gdb_host_cpu
=$host_cpu ;;
2165 # map host info into gdb names.
2169 a29k-
*-*) gdb_host
=ultra3
;;
2171 alpha-
*-osf1*) gdb_host
=alpha-osf1
;;
2172 alpha-
*-osf2*) gdb_host
=alpha-osf2
;;
2173 alpha-
*-osf[3456789]*) gdb_host
=alpha-osf3
;;
2175 arm-
*-*) gdb_host
=arm
;;
2177 c
[12]-*-*) gdb_host
=convex
;;
2179 hppa
*-*-bsd*) gdb_host
=hppabsd
;;
2180 hppa
*-*-hiux*) gdb_host
=hppahpux
;;
2181 hppa
*-*-hpux*) gdb_host
=hppahpux
;;
2182 hppa
*-*-osf*) gdb_host
=hppaosf
;;
2184 i
[3456]86-ncr-*) gdb_host
=ncr3000
;;
2185 i
[3456]86-sequent-bsd*) gdb_host
=symmetry
;; # dynix
2186 i
[3456]86-sequent-sysv4*) gdb_host
=ptx4
;;
2187 i
[3456]86-sequent-sysv*) gdb_host
=ptx ;;
2188 i
[3456]86-*-aix*) gdb_host
=i386aix
;;
2189 i
[3456]86-*-bsd*) gdb_host
=i386bsd
;;
2190 i
[3456]86-*-dgux*) gdb_host
=i386dgux
;;
2191 i
[3456]86-*-freebsd*) gdb_host
=fbsd
;;
2192 i
[3456]86-*-netbsd*) gdb_host
=nbsd
;;
2193 i
[3456]86-*-go32*) gdb_host
=go32
;;
2194 i
[3456]86-*-linux*) gdb_host
=linux
;;
2195 i
[3456]86-*-lynxos*) gdb_host
=i386lynx
;;
2196 i
[3456]86-*-mach3*) gdb_host
=i386m3
;;
2197 i
[3456]86-*-mach*) gdb_host
=i386mach
;;
2198 i
[3456]86-*-osf1mk*) gdb_host
=osf1mk
;;
2199 i
[3456]86-*-sco3.2v4
*) gdb_host
=i386sco4
;;
2200 i
[3456]86-*-sco*) gdb_host
=i386sco
;;
2201 i
[3456]86-*-solaris*) gdb_host
=i386sol2
;;
2202 i
[3456]86-*-sunos*) gdb_host
=sun386
;;
2203 i
[3456]86-*-sysv3.2
*) gdb_host
=i386v32
;;
2204 i
[3456]86-*-sysv32*) gdb_host
=i386v32
;;
2205 i
[3456]86-*-sysv4*) gdb_host
=i386v4
;;
2206 i
[3456]86-*-unixware) gdb_host
=i386v4
;;
2207 i
[3456]86-*-sysv*) gdb_host
=i386v
;;
2208 i
[3456]86-*-isc*) gdb_host
=i386v32
;;
2209 i
[3456]86-*-os9k) gdb_host
=i386os9k
;;
2210 i
[3456]86-*-win32*) gdb_host
=win32
;;
2211 m680
[01]0-sun-sunos3*) gdb_host
=sun2os3
;;
2212 m680
[01]0-sun-sunos4*) gdb_host
=sun2os4
;;
2213 m68030-sony-
*) gdb_host
=news1000
;;
2215 m68
*-altos-*) gdb_host
=altos
;;
2216 m68
*-apollo*-sysv*) gdb_host
=apollo68v
;;
2217 m68
*-apollo*-bsd*) gdb_host
=apollo68b
;;
2218 m68
*-att-*) gdb_host
=3b1
;;
2219 m68
*-bull*-sysv*) gdb_host
=dpx2
;;
2220 m68
*-hp-bsd*) gdb_host
=hp300bsd
;;
2221 m68
*-hp-hpux*) gdb_host
=hp300hpux
;;
2222 m68
*-isi-*) gdb_host
=isi
;;
2223 m68
*-*-lynxos*) gdb_host
=m68klynx
;;
2224 m68
*-*-sysv4*) gdb_host
=m68kv4
;;
2225 m68
*-motorola-*) gdb_host
=delta68
;;
2226 m68
*-sony-*) gdb_host
=news
;;
2227 m68
*-sun-sunos3*) gdb_host
=sun3os3
;;
2228 m68
*-sun-sunos4*) gdb_host
=sun3os4
;;
2229 m68
*-sun-*) gdb_host
=sun3os4
;;
2231 m88
*-harris-cxux*) gdb_host
=cxux
;;
2232 m88
*-motorola-sysv4*) gdb_host
=delta88v4
;;
2233 m88
*-motorola-sysv*) gdb_host
=delta88
;;
2234 m88
*-*-mach3*) gdb_host
=mach3
;;
2235 m88
*-*-*) gdb_host
=m88k
;;
2237 mips-dec-mach3
*) gdb_host
=mach3
;;
2238 mips-dec-
*) gdb_host
=decstation
;;
2239 mips-little-
*) gdb_host
=littlemips
;;
2240 mips-sgi-irix3
*) gdb_host
=irix3
;;
2241 mips-sgi-irix4
*) gdb_host
=irix4
;;
2242 mips-sgi-irix5
*) gdb_host
=irix5
;;
2243 mips-sony-
*) gdb_host
=news-mips
;;
2244 mips-
*-mach3*) gdb_host
=mach3
;;
2245 mips-
*-sysv4*) gdb_host
=mipsv4
;;
2246 mips-
*-sysv*) gdb_host
=riscos
;;
2247 mips-
*-riscos*) gdb_host
=riscos
;;
2249 none-
*-*) gdb_host
=none
;;
2251 np1-
*-*) gdb_host
=np1
;;
2253 ns32k-
*-mach3*) gdb_host
=mach3
;;
2254 ns32k-
*-netbsd*) gdb_host
=nbsd
;;
2255 ns32k-umax-
*) gdb_host
=umax
;;
2256 ns32k-utek-sysv
*) gdb_host
=merlin
;;
2258 powerpc-
*-aix*) gdb_host
=aix
;;
2260 pn-
*-*) gdb_host
=pn
;;
2262 pyramid-
*-*) gdb_host
=pyramid
;;
2264 romp-
*-*) gdb_host
=rtbsd
;;
2266 rs6000-
*-lynxos*) gdb_host
=rs6000lynx
;;
2267 rs6000-
*-*) gdb_host
=rs6000
;;
2269 sparc-
*-lynxos*) gdb_host
=sparclynx
;;
2270 sparc-
*-netbsd*) gdb_host
=nbsd
;;
2271 sparc-
*-solaris2*) gdb_host
=sun4sol2
;;
2272 sparc-
*-sunos4*) gdb_host
=sun4os4
;;
2273 sparc-
*-sunos5*) gdb_host
=sun4sol2
;;
2274 sparc-
*-*) gdb_host
=sun4os4
;;
2276 tahoe-
*-*) gdb_host
=tahoe
;;
2278 vax-
*-bsd*) gdb_host
=vaxbsd
;;
2279 vax-
*-ultrix2*) gdb_host
=vaxult2
;;
2280 vax-
*-ultrix*) gdb_host
=vaxult
;;
2282 w65-
*-*) gdb_host
=w65
;;
2287 # Map target cpu into the config cpu subdirectory name.
2288 # The default is $target_cpu.
2290 case "${target_cpu}" in
2292 alpha
) gdb_target_cpu
=alpha
;;
2293 c
[12]) gdb_target_cpu
=convex
;;
2294 hppa
*) gdb_target_cpu
=pa
;;
2295 i
[3456]86) gdb_target_cpu
=i386
;;
2296 m68
*) gdb_target_cpu
=m68k
;;
2297 m88
*) gdb_target_cpu
=m88k
;;
2298 mips
*) gdb_target_cpu
=mips
;;
2299 np1
) gdb_target_cpu
=gould
;;
2300 powerpc
*) gdb_target_cpu
=powerpc
;;
2301 pn
) gdb_target_cpu
=gould
;;
2302 pyramid
) gdb_target_cpu
=pyr
;;
2303 sparc
*) gdb_target_cpu
=sparc
;;
2304 *) gdb_target_cpu
=$target_cpu ;;
2308 # map target info into gdb names.
2312 a29k-
*-aout*) gdb_target
=a29k
;;
2313 a29k-
*-coff*) gdb_target
=a29k
;;
2314 a29k-
*-elf*) gdb_target
=a29k
;;
2315 a29k-
*-ebmon*) gdb_target
=a29k
;;
2316 a29k-
*-kern*) gdb_target
=a29k-kern
;;
2317 a29k-
*-none*) gdb_target
=a29k
;;
2318 a29k-
*-sym1*) gdb_target
=ultra3
;;
2319 a29k-
*-udi*) gdb_target
=a29k-udi
;;
2320 a29k-
*-vxworks*) gdb_target
=vx29k
;;
2322 alpha-
*-osf*) gdb_target
=alpha-osf1
;;
2324 # start-sanitize-arc
2325 arc-
*-*) gdb_target
=arc
;;
2328 arm-
*-*) gdb_target
=arm
;;
2330 c1-
*-*) gdb_target
=convex
;;
2331 c2-
*-*) gdb_target
=convex
;;
2333 h8300-
*-*) gdb_target
=h8300
;;
2334 h8500-
*-*) gdb_target
=h8500
;;
2336 sh-
*-*) gdb_target
=sh
;;
2338 # start-sanitize-r16
2339 r16-
*-*) gdb_target
=r16
;;
2342 hppa
*-*-bsd*) gdb_target
=hppabsd
;;
2343 hppa
*-*-pro*) gdb_target
=hppapro
;;
2344 hppa
*-*-hpux*) gdb_target
=hppahpux
;;
2345 hppa
*-*-hiux*) gdb_target
=hppahpux
;;
2346 hppa
*-*-osf*) gdb_target
=hppaosf
;;
2348 i
[3456]86-sequent-bsd*) gdb_target
=symmetry
;;
2349 i
[3456]86-sequent-sysv4*) gdb_target
=ptx4
;;
2350 i
[3456]86-sequent-sysv*) gdb_target
=ptx ;;
2351 i
[3456]86-ncr-*) gdb_target
=ncr3000
;;
2352 i
[3456]86-*-aout*) gdb_target
=i386aout
;;
2353 i
[3456]86-*-coff*) gdb_target
=i386v
;;
2354 i
[3456]86-*-elf*) gdb_target
=i386v
;;
2355 i
[3456]86-*-aix*) gdb_target
=i386aix
;;
2356 i
[3456]86-*-bsd*) gdb_target
=i386bsd
;;
2357 i
[3456]86-*-freebsd*) gdb_target
=fbsd
;;
2358 i
[3456]86-*-netbsd*) gdb_target
=nbsd
;;
2359 i
[3456]86-*-os9k) gdb_target
=i386os9k
;;
2360 i
[3456]86-*-go32*) gdb_target
=i386aout
;;
2361 i
[3456]86-*-lynxos*) gdb_target
=i386lynx
2362 configdirs
="${configdirs} gdbserver" ;;
2363 i
[3456]86-*-solaris*) gdb_target
=i386sol2
;;
2364 i
[3456]86-*-sunos*) gdb_target
=sun386
;;
2365 i
[3456]86-*-sysv4*) gdb_target
=i386v4
;;
2366 i
[3456]86-*-sco*) gdb_target
=i386v
;;
2367 i
[3456]86-*-sysv*) gdb_target
=i386v
;;
2368 i
[3456]86-*-linux*) gdb_target
=linux
;;
2369 i
[3456]86-*-isc*) gdb_target
=i386v
;;
2370 i
[3456]86-*-mach3*) gdb_target
=i386m3
;;
2371 i
[3456]86-*-mach*) gdb_target
=i386mach
;;
2372 i
[3456]86-*-netware*) gdb_target
=i386nw
2373 configdirs
="${configdirs} nlm" ;;
2374 i
[3456]86-*-osf1mk*) gdb_target
=i386mk
;;
2375 i
[3456]86-*-win32) gdb_target
=win32
;;
2377 i960-
*-bout*) gdb_target
=vxworks960
;;
2378 i960-
*-coff*) gdb_target
=nindy960
;;
2379 i960-
*-elf*) gdb_target
=nindy960
;;
2381 i960-
*-nindy*) gdb_target
=nindy960
;;
2382 i960-
*-vxworks*) gdb_target
=vxworks960
;;
2384 m68000-
*-sunos3*) gdb_target
=sun2os3
;;
2385 m68000-
*-sunos4*) gdb_target
=sun2os4
;;
2387 m68
*-apollo*-bsd*) gdb_target
=apollo68b
;;
2388 m68
*-bull-sysv*) gdb_target
=dpx2
;;
2389 m68
*-hp-bsd*) gdb_target
=hp300bsd
;;
2390 m68
*-hp-hpux*) gdb_target
=hp300hpux
;;
2391 m68
*-altos-*) gdb_target
=altos
;;
2392 m68
*-att-*) gdb_target
=3b1
;;
2393 m68
*-cisco*-*) gdb_target
=cisco
;;
2394 m68
*-ericsson-*) gdb_target
=es1800
;;
2395 m68
*-isi-*) gdb_target
=isi
;;
2396 m68
*-motorola-*) gdb_target
=delta68
;;
2397 m68
*-netx-*) gdb_target
=vxworks68
;;
2398 m68
*-sony-*) gdb_target
=news
;;
2399 m68
*-tandem-*) gdb_target
=st2000
;;
2400 m68
*-rom68k-*) gdb_target
=monitor
;;
2401 m68
*-*bug-
*) gdb_target
=monitor
;;
2402 m68
*-monitor-*) gdb_target
=monitor
;;
2403 m68
*-est-*) gdb_target
=monitor
;;
2404 m68
*-*-aout*) gdb_target
=monitor
;;
2405 m68
*-*-coff*) gdb_target
=monitor
;;
2406 m68
*-*-elf*) gdb_target
=monitor
;;
2407 m68
*-*-lynxos*) gdb_target
=m68klynx
2408 configdirs
="${configdirs} gdbserver" ;;
2409 m68
*-*-os68k*) gdb_target
=os68k
;;
2410 m68
*-*-sunos3*) gdb_target
=sun3os3
;;
2411 m68
*-*-sunos4*) gdb_target
=sun3os4
;;
2412 m68
*-*-sysv4*) gdb_target
=m68kv4
;;
2413 m68
*-*-vxworks*) gdb_target
=vxworks68
;;
2415 m88
*-harris-cxux*) gdb_target
=cxux
;;
2416 m88
*-motorola-sysv4*) gdb_target
=delta88v4
;;
2417 m88
*-*-mach3*) gdb_target
=mach3
;;
2418 m88
*-motorola-*) gdb_target
=delta88
;;
2419 m88
*-*-*) gdb_target
=m88k
;;
2421 mips64
*-big-*) gdb_target
=bigmips64
;;
2422 mips
*-big-*) gdb_target
=bigmips
;;
2423 mips
*-dec-mach3*) gdb_target
=mach3
;;
2424 mips
*-dec-*) gdb_target
=decstation
;;
2425 mips64
*el-
*-ecoff*) gdb_target
=embedl64
;;
2426 mips64
*-*-ecoff*) gdb_target
=embed64
;;
2427 mips64
*vr4300
*el-
*-elf*) gdb_target
=vr4300el
;;
2428 mips64
*vr4300
*-*-elf*) gdb_target
=vr4300
;;
2429 mips64
*el-
*-elf*) gdb_target
=embedl64
;;
2430 mips64
*-*-elf*) gdb_target
=embed64
;;
2431 mips
*el-
*-ecoff*) gdb_target
=embedl
;;
2432 mips
*-*-ecoff*) gdb_target
=embed
;;
2434 mips
*-*-magic*) gdb_target
=embed
;;
2436 mips
*el-
*-elf*) gdb_target
=embedl
;;
2437 mips
*-*-elf*) gdb_target
=embed
;;
2438 mips
*-little-*) gdb_target
=littlemips
;;
2439 mips
*-sgi-irix5*) gdb_target
=irix5
;;
2440 mips
*-sgi-*) gdb_target
=irix3
;;
2441 mips
*-sony-*) gdb_target
=bigmips
;;
2442 mips
*-*-mach3*) gdb_target
=mach3
;;
2443 mips
*-*-sysv4*) gdb_target
=mipsv4
;;
2444 mips
*-*-sysv*) gdb_target
=bigmips
;;
2445 mips
*-*-riscos*) gdb_target
=bigmips
;;
2447 none-
*-*) gdb_target
=none
;;
2449 np1-
*-*) gdb_target
=np1
;;
2451 ns32k-
*-mach3*) gdb_target
=mach3
;;
2452 ns32k-
*-netbsd*) gdb_target
=nbsd
;;
2453 ns32k-utek-sysv
*) gdb_target
=merlin
;;
2454 ns32k-utek-
*) gdb_target
=umax
;;
2456 pn-
*-*) gdb_target
=pn
;;
2457 powerpc-
*-macos*) gdb_target
=macos
;;
2458 powerpc-
*-netware*) gdb_target
=ppc-nw
2459 configdirs
="${configdirs} nlm" ;;
2461 powerpc-
*-aix4*) gdb_target
=aix4
;;
2462 powerpc-
*-aix*) gdb_target
=aix
;;
2463 powerpc-
*-eabi*) if test x
"$powerpc_sim" = x
"yes"; then
2468 powerpcle-
*-eabi*) if test x
"$powerpc_sim" = x
"yes"; then
2469 gdb_target
=ppcle-sim
2471 gdb_target
=ppcle-eabi
2474 pyramid-
*-*) gdb_target
=pyramid
;;
2476 rs6000-
*-lynxos*) gdb_target
=rs6000lynx
;;
2477 rs6000-
*-aix4*) gdb_target
=aix4
;;
2478 rs6000-
*-*) gdb_target
=rs6000
;;
2480 sparc-
*-aout*) gdb_target
=sparc-em
;;
2481 sparc-
*-coff*) gdb_target
=sparc-em
;;
2482 sparc-
*-elf*) gdb_target
=sparc-em
;;
2483 sparc-
*-lynxos*) gdb_target
=sparclynx
2484 configdirs
="${configdirs} gdbserver" ;;
2485 sparc-
*-netbsd*) gdb_target
=nbsd
;;
2486 sparc-
*-solaris2*) gdb_target
=sun4sol2
;;
2487 sparc-
*-sunos4*) gdb_target
=sun4os4
;;
2488 sparc-
*-sunos5*) gdb_target
=sun4sol2
;;
2489 sparc-
*-vxworks*) gdb_target
=vxsparc
;;
2490 sparc-
*-*) gdb_target
=sun4os4
;;
2491 sparclite
*-*-*) gdb_target
=sparclite
;;
2492 sparc64-
*-*) gdb_target
=sp64
;;
2494 tahoe-
*-*) gdb_target
=tahoe
;;
2496 vax-
*-*) gdb_target
=vax
;;
2498 w65-
*-*) gdb_target
=w65
;;
2500 z8k-
*-coff*) gdb_target
=z8k
;;
2506 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
2507 if test ! -f ${host_makefile_frag}; then
2508 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
2510 frags
="$frags $host_makefile_frag"
2512 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
2513 if test ! -f ${target_makefile_frag}; then
2514 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
2516 frags
="$frags $target_makefile_frag"
2523 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
2524 ' ${host_makefile_frag}`
2526 targetfile
=`sed -n '
2527 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
2528 ' ${target_makefile_frag}`
2530 # these really aren't orthogonal true/false values of the same condition,
2531 # but shells are slow enough that I like to reuse the test conditions
2533 if test "${target}" = "${host}"; then
2534 nativefile
=`sed -n '
2535 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
2536 ' ${host_makefile_frag}`
2538 # GDBserver is only useful in a "native" enviroment
2539 configdirs
=`echo $configdirs | sed 's/gdbserver//'`
2543 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
2544 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
2545 # corresponding links. But we have to remove the xm.h files and tm.h
2546 # files anyway, e.g. when switching from "configure host" to
2552 if test "${hostfile}" != ""; then
2553 files
="${files} config/${gdb_host_cpu}/${hostfile}"
2554 links
="${links} xm.h"
2557 if test "${targetfile}" != ""; then
2558 files
="${files} config/${gdb_target_cpu}/${targetfile}"
2559 links
="${links} tm.h"
2562 if test "${nativefile}" != ""; then
2563 files
="${files} config/${gdb_host_cpu}/${nativefile}"
2564 links
="${links} nm.h"
2566 # A cross-only configuration.
2567 files
="${files} config/nm-empty.h"
2568 links
="${links} nm.h"
2570 # start-sanitize-gdbtk
2572 # Make it possible to use the GUI without doing a full install
2573 if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl
; then
2574 files
="${files} gdbtk.tcl"
2575 links
="${links} gdbtk.tcl"
2577 # end-sanitize-gdbtk
2581 subdirs
="$configdirs"
2584 cat > confcache
<<\EOF
2585 # This file is a shell script that caches the results of configure
2586 # tests run on this system so they can be shared between configure
2587 # scripts and configure runs. It is not useful on other systems.
2588 # If it contains results you don't want to keep, you may remove or edit it.
2590 # By default, configure uses ./config.cache as the cache file,
2591 # creating it if it does not exist already. You can give configure
2592 # the --cache-file=FILE option to use a different cache file; that is
2593 # what configure does when it calls configure scripts in
2594 # subdirectories, so they share the cache.
2595 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2596 # config.status only pays attention to the cache file if you give it the
2597 # --recheck option to rerun configure.
2600 # Ultrix sh set writes to stderr and can't be redirected directly,
2601 # and sets the high bit in the cache file unless we assign to the vars.
2603 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2605 if cmp -s $cache_file confcache
; then
2608 if test -w $cache_file; then
2609 echo "updating cache $cache_file"
2610 cat confcache
> $cache_file
2612 echo "not updating unwritable cache $cache_file"
2617 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2619 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2620 # Let make expand exec_prefix.
2621 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2623 # Any assignment to VPATH causes Sun make to only execute
2624 # the first set of double-colon rules, so remove it if not needed.
2625 # If there is a colon in the path, we need to keep it.
2626 if test "x$srcdir" = x.
; then
2627 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2630 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2632 # Transform confdefs.h into DEFS.
2633 # Protect against shell expansion while executing Makefile rules.
2634 # Protect against Makefile macro expansion.
2635 cat > conftest.defs
<<\EOF
2636 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
2637 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2642 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
2646 # Without the "./", some shells look in PATH for config.status.
2647 : ${CONFIG_STATUS=./config.status}
2649 echo creating $CONFIG_STATUS
2650 rm -f $CONFIG_STATUS
2651 cat > $CONFIG_STATUS <<EOF
2653 # Generated automatically by configure.
2654 # Run this file to recreate the current configuration.
2655 # This directory was configured as follows,
2656 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
2658 # $0 $ac_configure_args
2660 # Compiler output produced by configure, useful for debugging
2661 # configure, is in ./config.log if it exists.
2663 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2666 case "\$ac_option" in
2667 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2668 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2669 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2670 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2671 echo "$CONFIG_STATUS generated by autoconf version 2.7"
2673 -help | --help | --hel | --he | --h)
2674 echo "\$ac_cs_usage"; exit 0 ;;
2675 *) echo "\$ac_cs_usage"; exit 1 ;;
2679 ac_given_srcdir=$srcdir
2680 ac_given_INSTALL="$INSTALL"
2682 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2684 cat >> $CONFIG_STATUS <<EOF
2686 # Protect against being on the right side of a sed subst in config.status.
2687 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2688 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2691 s%@CFLAGS@%$CFLAGS%g
2692 s%@CPPFLAGS@%$CPPFLAGS%g
2693 s%@CXXFLAGS@%$CXXFLAGS%g
2695 s%@LDFLAGS@%$LDFLAGS%g
2697 s%@exec_prefix@%$exec_prefix%g
2698 s%@prefix@%$prefix%g
2699 s%@program_transform_name@%$program_transform_name%g
2700 s%@bindir@%$bindir%g
2701 s%@sbindir@%$sbindir%g
2702 s%@libexecdir@%$libexecdir%g
2703 s%@datadir@%$datadir%g
2704 s%@sysconfdir@%$sysconfdir%g
2705 s%@sharedstatedir@%$sharedstatedir%g
2706 s%@localstatedir@%$localstatedir%g
2707 s%@libdir@%$libdir%g
2708 s%@includedir@%$includedir%g
2709 s%@oldincludedir@%$oldincludedir%g
2710 s%@infodir@%$infodir%g
2711 s%@mandir@%$mandir%g
2714 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2715 s%@INSTALL_DATA@%$INSTALL_DATA%g
2716 s%@RANLIB@%$RANLIB%g
2719 s%@host_alias@%$host_alias%g
2720 s%@host_cpu@%$host_cpu%g
2721 s%@host_vendor@%$host_vendor%g
2722 s%@host_os@%$host_os%g
2723 s%@target@%$target%g
2724 s%@target_alias@%$target_alias%g
2725 s%@target_cpu@%$target_cpu%g
2726 s%@target_vendor@%$target_vendor%g
2727 s%@target_os@%$target_os%g
2729 s%@build_alias@%$build_alias%g
2730 s%@build_cpu@%$build_cpu%g
2731 s%@build_vendor@%$build_vendor%g
2732 s%@build_os@%$build_os%g
2733 s%@X_CFLAGS@%$X_CFLAGS%g
2734 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2735 s%@X_LIBS@%$X_LIBS%g
2736 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2737 s%@TKHDIR@%$TKHDIR%g
2739 s%@TCLHDIR@%$TCLHDIR%g
2740 s%@TCLLIB@%$TCLLIB%g
2741 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
2742 s%@X_LDFLAGS@%$X_LDFLAGS%g
2743 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
2744 s%@ENABLE_CLIBS@%$ENABLE_CLIBS%g
2745 s%@ENABLE_OBS@%$ENABLE_OBS%g
2746 s%@target_subdir@%$target_subdir%g
2747 /@host_makefile_frag@/r $host_makefile_frag
2748 s%@host_makefile_frag@%%g
2749 /@target_makefile_frag@/r $target_makefile_frag
2750 s%@target_makefile_frag@%%g
2752 s%@subdirs@%$subdirs%g
2756 cat >> $CONFIG_STATUS <<EOF
2758 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2760 cat >> $CONFIG_STATUS <<\EOF
2761 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2762 # Support "outfile[:infile]", defaulting infile="outfile.in".
2764 *:*) ac_file_in=`echo "$ac_file"|
sed 's%.*:%%'`
2765 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
2766 *) ac_file_in="${ac_file}.in" ;;
2769 # Adjust relative srcdir, etc. for subdirectories.
2771 # Remove last slash and all that follows it. Not all systems have dirname.
2772 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2773 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2774 # The file is in a subdirectory.
2775 test ! -d "$ac_dir" && mkdir "$ac_dir"
2776 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
2777 # A "../" for each directory in $ac_dir_suffix.
2778 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
2780 ac_dir_suffix= ac_dots=
2783 case "$ac_given_srcdir" in
2785 if test -z "$ac_dots"; then top_srcdir=.
2786 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
2787 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2789 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2790 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2793 case "$ac_given_INSTALL" in
2794 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2795 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2797 echo creating "$ac_file"
2799 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2801 *Makefile*) ac_comsub="1i\\
2802 # $configure_input" ;;
2806 s%@configure_input@%$configure_input%g
2807 s%@srcdir@%$srcdir%g
2808 s%@top_srcdir@%$top_srcdir%g
2809 s%@INSTALL@%$INSTALL%g
2810 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2816 cat >> $CONFIG_STATUS <<EOF
2821 cat >> $CONFIG_STATUS <<\EOF
2822 srcdir=$ac_given_srcdir
2823 while test -n "$ac_sources"; do
2824 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2825 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2827 echo "linking $srcdir/$ac_source to $ac_dest"
2829 if test ! -r $srcdir/$ac_source; then
2830 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2834 # Make relative symlinks.
2835 # Remove last slash and all that follows it. Not all systems have dirname.
2836 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
2837 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2838 # The dest file is in a subdirectory.
2839 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2840 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2841 # A "../" for each directory in $ac_dest_dir_suffix.
2842 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2844 ac_dest_dir_suffix= ac_dots=
2848 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2849 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2852 # Make a symlink if possible; otherwise try a hard link.
2853 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2854 ln $srcdir/$ac_source $ac_dest; then :
2856 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2860 cat >> $CONFIG_STATUS <<EOF
2862 gdb_host_cpu=$gdb_host_cpu
2863 gdb_target_cpu=$gdb_target_cpu
2864 nativefile=$nativefile
2867 cat >> $CONFIG_STATUS <<\EOF
2869 if test "${nativefile}" = ""; then
2870 sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
2871 < Makefile > Makefile.tem
2872 mv -f Makefile.tem Makefile
2875 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
2876 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
2877 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
2878 mv -f Makefile.tmp Makefile
2884 grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
2885 echo "source ${srcdir}/.gdbinit" >> .gdbinit
2890 chmod +x $CONFIG_STATUS
2891 rm -fr confdefs* $ac_clean_files
2892 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2894 if test "$no_recursion" != yes; then
2896 # Remove --cache-file and --srcdir arguments so they do not pile up.
2897 ac_sub_configure_args=
2899 for ac_arg in $ac_configure_args; do
2900 if test -n "$ac_prev"; then
2905 -cache-file | --cache-file | --cache-fil | --cache-fi \
2906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2907 ac_prev=cache_file ;;
2908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2911 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2913 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2915 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2919 for ac_config_dir in $configdirs; do
2921 # Do not complain, so a configure script can configure whichever
2922 # parts of a large source tree are present.
2923 if test ! -d $srcdir/$ac_config_dir; then
2927 echo configuring in $ac_config_dir
2932 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2934 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2943 .) # No --srcdir option. We are building in place.
2944 ac_sub_srcdir=$srcdir ;;
2945 /*) # Absolute path.
2946 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2948 ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
2951 # Check for guested configure; otherwise get Cygnus style configure.
2952 if test -f $ac_sub_srcdir/configure; then
2953 ac_sub_configure=$ac_sub_srcdir/configure
2954 elif test -f $ac_sub_srcdir/configure.in; then
2955 ac_sub_configure=$ac_configure
2957 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2961 # The recursion is here.
2962 if test -n "$ac_sub_configure"; then
2964 # Make the cache file name correct relative to the subdirectory.
2965 # A "../" for each directory in /$ac_config_dir.
2966 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2967 case "$cache_file" in
2968 /*) ac_sub_cache_file=$cache_file ;;
2970 ac_sub_cache_file="$ac_dots$cache_file" ;;
2972 case "$ac_given_INSTALL" in
2973 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2974 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2977 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2978 # The eval makes quoting arguments work.
2979 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2982 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }