3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.10
5 # Copyright (C) 1992, 93, 94, 95, 96 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-tclconfig directory containing tcl configuration (tclConfig.sh)"
25 --with-tkconfig directory containing tk configuration (tkConfig.sh)"
27 --with-tclinclude directory where tcl private headers are"
29 --with-tkinclude directory where tk private headers are"
31 --enable-shared use shared libraries"
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
37 cache_file
=.
/config.cache
46 program_transform_name
=s
,x
,x
,
54 bindir
='${exec_prefix}/bin'
55 sbindir
='${exec_prefix}/sbin'
56 libexecdir
='${exec_prefix}/libexec'
57 datadir
='${prefix}/share'
58 sysconfdir
='${prefix}/etc'
59 sharedstatedir
='${prefix}/com'
60 localstatedir
='${prefix}/var'
61 libdir
='${exec_prefix}/lib'
62 includedir
='${prefix}/include'
63 oldincludedir
='/usr/include'
64 infodir
='${prefix}/info'
65 mandir
='${prefix}/man'
67 # Initialize some other variables.
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
83 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 # Accept the important Cygnus configure options, so we can diagnose typos.
91 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
93 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
94 bindir
="$ac_optarg" ;;
96 -build |
--build |
--buil |
--bui |
--bu)
98 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
101 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
102 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
103 ac_prev
=cache_file
;;
104 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
105 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
106 cache_file
="$ac_optarg" ;;
108 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
110 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
112 datadir
="$ac_optarg" ;;
114 -disable-* |
--disable-*)
115 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
123 -enable-* |
--enable-*)
124 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
136 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
137 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
138 |
--exec |
--exe |
--ex)
139 ac_prev
=exec_prefix
;;
140 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
141 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
142 |
--exec=* |
--exe=* |
--ex=*)
143 exec_prefix
="$ac_optarg" ;;
145 -gas |
--gas |
--ga |
--g)
146 # Obsolete; use --with-gas.
149 -help |
--help |
--hel |
--he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
204 -host |
--host |
--hos |
--ho)
206 -host=* |
--host=* |
--hos=* |
--ho=*)
209 -includedir |
--includedir |
--includedi |
--included |
--include \
210 |
--includ |
--inclu |
--incl |
--inc)
211 ac_prev
=includedir
;;
212 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
213 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
214 includedir
="$ac_optarg" ;;
216 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
218 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
219 infodir
="$ac_optarg" ;;
221 -libdir |
--libdir |
--libdi |
--libd)
223 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
224 libdir
="$ac_optarg" ;;
226 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
227 |
--libexe |
--libex |
--libe)
228 ac_prev
=libexecdir
;;
229 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
230 |
--libexe=* |
--libex=* |
--libe=*)
231 libexecdir
="$ac_optarg" ;;
233 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
234 |
--localstate |
--localstat |
--localsta |
--localst \
235 |
--locals |
--local |
--loca |
--loc |
--lo)
236 ac_prev
=localstatedir
;;
237 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
238 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
239 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
240 localstatedir
="$ac_optarg" ;;
242 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
244 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
245 mandir
="$ac_optarg" ;;
248 # Obsolete; use --without-fp.
251 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
255 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
256 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
259 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
260 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
261 |
--oldin |
--oldi |
--old |
--ol |
--o)
262 ac_prev
=oldincludedir
;;
263 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
264 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
265 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
266 oldincludedir
="$ac_optarg" ;;
268 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
270 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
271 prefix
="$ac_optarg" ;;
273 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
274 |
--program-pre |
--program-pr |
--program-p)
275 ac_prev
=program_prefix
;;
276 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
277 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
278 program_prefix
="$ac_optarg" ;;
280 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
281 |
--program-suf |
--program-su |
--program-s)
282 ac_prev
=program_suffix
;;
283 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
284 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
285 program_suffix
="$ac_optarg" ;;
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 ac_prev
=program_transform_name
;;
295 -program-transform-name=* |
--program-transform-name=* \
296 |
--program-transform-nam=* |
--program-transform-na=* \
297 |
--program-transform-n=* |
--program-transform-=* \
298 |
--program-transform=* |
--program-transfor=* \
299 |
--program-transfo=* |
--program-transf=* \
300 |
--program-trans=* |
--program-tran=* \
301 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
302 program_transform_name
="$ac_optarg" ;;
304 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
305 |
-silent |
--silent |
--silen |
--sile |
--sil)
308 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
310 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
312 sbindir
="$ac_optarg" ;;
314 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
315 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
316 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
318 ac_prev
=sharedstatedir
;;
319 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
320 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
321 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
323 sharedstatedir
="$ac_optarg" ;;
325 -site |
--site |
--sit)
327 -site=* |
--site=* |
--sit=*)
330 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
332 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
333 srcdir
="$ac_optarg" ;;
335 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
336 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
337 ac_prev
=sysconfdir
;;
338 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
339 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
340 sysconfdir
="$ac_optarg" ;;
342 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
344 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
345 target
="$ac_optarg" ;;
347 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
350 -version |
--version |
--versio |
--versi |
--vers)
351 echo "configure generated by autoconf version 2.10"
355 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package
=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* |
--without-*)
368 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package
=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
377 # Obsolete; use --with-x.
380 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
381 |
--x-incl |
--x-inc |
--x-in |
--x-i)
382 ac_prev
=x_includes
;;
383 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
384 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
385 x_includes
="$ac_optarg" ;;
387 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
388 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
389 ac_prev
=x_libraries
;;
390 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
391 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
392 x_libraries
="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE
; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
442 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
443 |
--no-cr |
--no-c) ;;
444 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
445 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
446 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
453 # Only set LANG and LC_ALL to C if already set.
454 # These must not be set unconditionally because not all systems understand
455 # e.g. LANG=C (notably SCO).
456 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
457 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
460 rm -rf conftest
* confdefs.h
461 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464 # A filename unique to this package, relative to the directory that
465 # configure is in, which we can look for to find out if srcdir is correct.
466 ac_unique_file
=main.c
468 # Find the source files, if location was not specified.
469 if test -z "$srcdir"; then
470 ac_srcdir_defaulted
=yes
471 # Try the directory containing this script, then its parent.
473 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
476 if test ! -r $srcdir/$ac_unique_file; then
480 ac_srcdir_defaulted
=no
482 if test ! -r $srcdir/$ac_unique_file; then
483 if test "$ac_srcdir_defaulted" = yes; then
484 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491 # Prefer explicitly selected file to automatically selected ones.
492 if test -z "$CONFIG_SITE"; then
493 if test "x$prefix" != xNONE
; then
494 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
496 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499 for ac_site_file
in $CONFIG_SITE; do
500 if test -r "$ac_site_file"; then
501 echo "loading site script $ac_site_file"
506 if test -r "$cache_file"; then
507 echo "loading cache $cache_file"
510 echo "creating cache $cache_file"
515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516 ac_cpp
='$CPP $CPPFLAGS'
517 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
521 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
522 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
529 ac_n
= ac_c
='\c' ac_t
=
535 # Extract the first word of "gcc", so it can be a program name with args.
536 set dummy gcc
; ac_word
=$2
537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
538 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
539 echo $ac_n "(cached) $ac_c" 1>&6
541 if test -n "$CC"; then
542 ac_cv_prog_CC
="$CC" # Let the user override the test.
544 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
545 for ac_dir
in $PATH; do
546 test -z "$ac_dir" && ac_dir
=.
547 if test -f $ac_dir/$ac_word; then
556 if test -n "$CC"; then
557 echo "$ac_t""$CC" 1>&6
559 echo "$ac_t""no" 1>&6
562 if test -z "$CC"; then
563 # Extract the first word of "cc", so it can be a program name with args.
564 set dummy cc
; ac_word
=$2
565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
566 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
567 echo $ac_n "(cached) $ac_c" 1>&6
569 if test -n "$CC"; then
570 ac_cv_prog_CC
="$CC" # Let the user override the test.
572 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
574 for ac_dir
in $PATH; do
575 test -z "$ac_dir" && ac_dir
=.
576 if test -f $ac_dir/$ac_word; then
577 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
586 if test $ac_prog_rejected = yes; then
587 # We found a bogon in the path, so make sure we never use it.
588 set dummy
$ac_cv_prog_CC
590 if test $# -gt 0; then
591 # We chose a different compiler from the bogus one.
592 # However, it has the same basename, so the bogon will be chosen
593 # first if we set CC to just the basename; use the full file name.
595 set dummy
"$ac_dir/$ac_word" "$@"
603 if test -n "$CC"; then
604 echo "$ac_t""$CC" 1>&6
606 echo "$ac_t""no" 1>&6
609 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
612 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
613 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
614 echo $ac_n "(cached) $ac_c" 1>&6
616 cat > conftest.c
<<EOF
621 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
628 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
629 if test $ac_cv_prog_gcc = yes; then
631 if test "${CFLAGS+set}" != set; then
632 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
633 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
634 echo $ac_n "(cached) $ac_c" 1>&6
636 echo 'void f(){}' > conftest.c
637 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
646 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
647 if test $ac_cv_prog_gcc_g = yes; then
655 test "${CFLAGS+set}" = set || CFLAGS
="-g"
658 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
659 # On Suns, sometimes $CPP names a directory.
660 if test -n "$CPP" && test -d "$CPP"; then
663 if test -z "$CPP"; then
664 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
665 echo $ac_n "(cached) $ac_c" 1>&6
667 # This must be in double quotes, not single quotes, because CPP may get
668 # substituted into the Makefile and "${CC-cc}" will confuse make.
670 # On the NeXT, cc -E runs the code through the compiler's parser,
671 # not just through cpp.
672 cat > conftest.
$ac_ext <<EOF
673 #line 674 "configure"
674 #include "confdefs.h"
678 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
679 { (eval echo configure
:680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
680 ac_err
=`grep -v '^ *+' conftest.out`
681 if test -z "$ac_err"; then
686 CPP
="${CC-cc} -E -traditional-cpp"
687 cat > conftest.
$ac_ext <<EOF
688 #line 689 "configure"
689 #include "confdefs.h"
693 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
694 { (eval echo configure
:695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
695 ac_err
=`grep -v '^ *+' conftest.out`
696 if test -z "$ac_err"; then
706 ac_cv_prog_CPP
="$CPP"
708 CPP
="$ac_cv_prog_CPP"
710 ac_cv_prog_CPP
="$CPP"
712 echo "$ac_t""$CPP" 1>&6
714 echo $ac_n "checking for AIX""... $ac_c" 1>&6
715 cat > conftest.
$ac_ext <<EOF
716 #line 717 "configure"
717 #include "confdefs.h"
723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
724 egrep "yes" >/dev
/null
2>&1; then
726 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
727 #define _ALL_SOURCE 1
732 echo "$ac_t""no" 1>&6
737 ac_safe
=`echo "minix/config.h" | tr './\055' '___'`
738 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
740 echo $ac_n "(cached) $ac_c" 1>&6
742 cat > conftest.
$ac_ext <<EOF
743 #line 744 "configure"
744 #include "confdefs.h"
745 #include <minix/config.h>
747 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
748 { (eval echo configure
:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
749 ac_err
=`grep -v '^ *+' conftest.out`
750 if test -z "$ac_err"; then
752 eval "ac_cv_header_$ac_safe=yes"
756 eval "ac_cv_header_$ac_safe=no"
760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
761 echo "$ac_t""yes" 1>&6
764 echo "$ac_t""no" 1>&6
768 if test "$MINIX" = yes; then
769 cat >> confdefs.h
<<\EOF
770 #define _POSIX_SOURCE 1
773 cat >> confdefs.h
<<\EOF
774 #define _POSIX_1_SOURCE 2
777 cat >> confdefs.h
<<\EOF
783 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
784 if test -d /etc
/conf
/kconfig.d
&&
785 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
787 echo "$ac_t""yes" 1>&6
788 ISC
=yes # If later tests want to check for ISC.
789 cat >> confdefs.h
<<\EOF
790 #define _POSIX_SOURCE 1
793 if test "$GCC" = yes; then
799 echo "$ac_t""no" 1>&6
805 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
806 if test -f $ac_dir/install-sh
; then
808 ac_install_sh
="$ac_aux_dir/install-sh -c"
810 elif test -f $ac_dir/install.sh
; then
812 ac_install_sh
="$ac_aux_dir/install.sh -c"
816 if test -z "$ac_aux_dir"; then
817 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
819 ac_config_guess
=$ac_aux_dir/config.guess
820 ac_config_sub
=$ac_aux_dir/config.sub
821 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
824 # Do some error checking and defaulting for the host and target type.
826 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
829 # 1. You are not allowed to specify --host, --target, and nonopt at the
831 # 2. Host defaults to nonopt.
832 # 3. If nonopt is not specified, then host defaults to the current host,
833 # as determined by config.guess.
834 # 4. Target and build default to nonopt.
835 # 5. If nonopt is not specified, then target and build default to host.
837 # The aliases save the names the user supplied, while $host etc.
838 # will get canonicalized.
839 case $host---$target---$nonopt in
840 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
841 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
845 # Make sure we can run config.sub.
846 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
847 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
850 echo $ac_n "checking host system type""... $ac_c" 1>&6
853 case "$host_alias" in
857 if host_alias
=`$ac_config_guess`; then :
858 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
860 *) host_alias
=$nonopt ;;
864 host=`$ac_config_sub $host_alias`
865 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
866 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
867 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
868 echo "$ac_t""$host" 1>&6
870 echo $ac_n "checking target system type""... $ac_c" 1>&6
873 case "$target_alias" in
876 NONE
) target_alias
=$host_alias ;;
877 *) target_alias
=$nonopt ;;
881 target
=`$ac_config_sub $target_alias`
882 target_cpu
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
883 target_vendor
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
884 target_os
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
885 echo "$ac_t""$target" 1>&6
887 echo $ac_n "checking build system type""... $ac_c" 1>&6
890 case "$build_alias" in
893 NONE
) build_alias
=$host_alias ;;
894 *) build_alias
=$nonopt ;;
898 build
=`$ac_config_sub $build_alias`
899 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
900 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
901 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
902 echo "$ac_t""$build" 1>&6
904 test "$host_alias" != "$target_alias" &&
905 test "$program_prefix$program_suffix$program_transform_name" = \
907 program_prefix
=${target_alias}-
910 # Find a good install program. We prefer a C program (faster),
911 # so one script is as good as another. But avoid the broken or
912 # incompatible versions:
913 # SysV /etc/install, /usr/sbin/install
914 # SunOS /usr/etc/install
917 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
918 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
919 # ./install, which can be erroneously created by make from ./install.sh.
920 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
921 if test -z "$INSTALL"; then
922 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
925 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
926 for ac_dir
in $PATH; do
927 # Account for people who put trailing slashes in PATH elements.
929 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
931 # OSF1 and SCO ODT 3.0 have their own names for install.
932 for ac_prog
in ginstall installbsd scoinst
install; do
933 if test -f $ac_dir/$ac_prog; then
934 if test $ac_prog = install &&
935 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
936 # AIX install. It has an incompatible calling convention.
937 # OSF/1 installbsd also uses dspmsg, but is usable.
940 ac_cv_path_install
="$ac_dir/$ac_prog -c"
951 if test "${ac_cv_path_install+set}" = set; then
952 INSTALL
="$ac_cv_path_install"
954 # As a last resort, use the slow shell script. We don't cache a
955 # path for INSTALL within a source directory, because that will
956 # break other packages using the cache if that directory is
957 # removed, or if the path is relative.
958 INSTALL
="$ac_install_sh"
961 echo "$ac_t""$INSTALL" 1>&6
963 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
964 # It thinks the first close brace ends the variable substitution.
965 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
967 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
969 if test $host != $build; then
970 ac_tool_prefix
=${host_alias}-
975 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
976 set dummy
${ac_tool_prefix}ar; ac_word
=$2
977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
978 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
979 echo $ac_n "(cached) $ac_c" 1>&6
981 if test -n "$AR"; then
982 ac_cv_prog_AR
="$AR" # Let the user override the test.
984 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
985 for ac_dir
in $PATH; do
986 test -z "$ac_dir" && ac_dir
=.
987 if test -f $ac_dir/$ac_word; then
988 ac_cv_prog_AR
="${ac_tool_prefix}ar"
993 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
997 if test -n "$AR"; then
998 echo "$ac_t""$AR" 1>&6
1000 echo "$ac_t""no" 1>&6
1005 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1006 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1007 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1008 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1011 if test -n "$RANLIB"; then
1012 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1014 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1015 for ac_dir
in $PATH; do
1016 test -z "$ac_dir" && ac_dir
=.
1017 if test -f $ac_dir/$ac_word; then
1018 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1025 RANLIB
="$ac_cv_prog_RANLIB"
1026 if test -n "$RANLIB"; then
1027 echo "$ac_t""$RANLIB" 1>&6
1029 echo "$ac_t""no" 1>&6
1033 if test -z "$ac_cv_prog_RANLIB"; then
1034 if test -n "$ac_tool_prefix"; then
1035 # Extract the first word of "ranlib", so it can be a program name with args.
1036 set dummy ranlib
; ac_word
=$2
1037 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1038 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 if test -n "$RANLIB"; then
1042 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1044 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1045 for ac_dir
in $PATH; do
1046 test -z "$ac_dir" && ac_dir
=.
1047 if test -f $ac_dir/$ac_word; then
1048 ac_cv_prog_RANLIB
="ranlib"
1053 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1056 RANLIB
="$ac_cv_prog_RANLIB"
1057 if test -n "$RANLIB"; then
1058 echo "$ac_t""$RANLIB" 1>&6
1060 echo "$ac_t""no" 1>&6
1068 for ac_prog
in 'bison -y' byacc
1070 # Extract the first word of "$ac_prog", so it can be a program name with args.
1071 set dummy
$ac_prog; ac_word
=$2
1072 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1073 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 if test -n "$YACC"; then
1077 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1079 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1080 for ac_dir
in $PATH; do
1081 test -z "$ac_dir" && ac_dir
=.
1082 if test -f $ac_dir/$ac_word; then
1083 ac_cv_prog_YACC
="$ac_prog"
1090 YACC
="$ac_cv_prog_YACC"
1091 if test -n "$YACC"; then
1092 echo "$ac_t""$YACC" 1>&6
1094 echo "$ac_t""no" 1>&6
1097 test -n "$YACC" && break
1099 test -n "$YACC" || YACC
="yacc"
1101 for ac_prog
in mawk gawk nawk
awk
1103 # Extract the first word of "$ac_prog", so it can be a program name with args.
1104 set dummy
$ac_prog; ac_word
=$2
1105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1106 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 if test -n "$AWK"; then
1110 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1112 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1113 for ac_dir
in $PATH; do
1114 test -z "$ac_dir" && ac_dir
=.
1115 if test -f $ac_dir/$ac_word; then
1116 ac_cv_prog_AWK
="$ac_prog"
1123 AWK
="$ac_cv_prog_AWK"
1124 if test -n "$AWK"; then
1125 echo "$ac_t""$AWK" 1>&6
1127 echo "$ac_t""no" 1>&6
1130 test -n "$AWK" && break
1135 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1136 if test -f $ac_dir/install-sh
; then
1138 ac_install_sh
="$ac_aux_dir/install-sh -c"
1140 elif test -f $ac_dir/install.sh
; then
1142 ac_install_sh
="$ac_aux_dir/install.sh -c"
1146 if test -z "$ac_aux_dir"; then
1147 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1149 ac_config_guess
=$ac_aux_dir/config.guess
1150 ac_config_sub
=$ac_aux_dir/config.sub
1151 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1153 if test "$program_transform_name" = s
,x
,x
,; then
1154 program_transform_name
=
1156 # Double any \ or $. echo might interpret backslashes.
1157 cat <<\EOF_SED
> conftestsed
1158 s
,\\,\\\\,g
; s
,\$
,$$
,g
1160 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1163 test "$program_prefix" != NONE
&&
1164 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1165 # Use a double $ so make ignores it.
1166 test "$program_suffix" != NONE
&&
1167 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1169 # sed with no file args requires a program.
1170 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1173 # If we cannot run a trivial program, we must be cross compiling.
1174 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1175 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1178 if test "$cross_compiling" = yes; then
1181 cat > conftest.
$ac_ext <<EOF
1182 #line 1183 "configure"
1183 #include "confdefs.h"
1186 { (eval echo configure
:1187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1187 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1196 echo "$ac_t""$ac_cv_c_cross" 1>&6
1197 cross_compiling
=$ac_cv_c_cross
1199 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1200 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1203 cat > conftest.
$ac_ext <<EOF
1204 #line 1205 "configure"
1205 #include "confdefs.h"
1211 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1212 { (eval echo configure
:1213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1213 ac_err
=`grep -v '^ *+' conftest.out`
1214 if test -z "$ac_err"; then
1216 ac_cv_header_stdc
=yes
1220 ac_cv_header_stdc
=no
1224 if test $ac_cv_header_stdc = yes; then
1225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1226 cat > conftest.
$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1232 egrep "memchr" >/dev
/null
2>&1; then
1236 ac_cv_header_stdc
=no
1242 if test $ac_cv_header_stdc = yes; then
1243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1244 cat > conftest.
$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1250 egrep "free" >/dev
/null
2>&1; then
1254 ac_cv_header_stdc
=no
1260 if test $ac_cv_header_stdc = yes; then
1261 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1262 if test "$cross_compiling" = yes; then
1265 cat > conftest.
$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1269 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1270 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1272 int main () { int i; for (i = 0; i < 256; i++)
1273 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1277 { (eval echo configure
:1278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1278 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1281 ac_cv_header_stdc
=no
1288 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1289 if test $ac_cv_header_stdc = yes; then
1290 cat >> confdefs.h
<<\EOF
1291 #define STDC_HEADERS 1
1296 for ac_hdr
in limits.h memory.h string.h
strings.h unistd.h termios.h termio.h sgtty.h stddef.h stdlib.h sys
/procfs.h link.h endian.h
1298 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6
1303 cat > conftest.
$ac_ext <<EOF
1304 #line 1305 "configure"
1305 #include "confdefs.h"
1308 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1309 { (eval echo configure
:1310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1310 ac_err
=`grep -v '^ *+' conftest.out`
1311 if test -z "$ac_err"; then
1313 eval "ac_cv_header_$ac_safe=yes"
1317 eval "ac_cv_header_$ac_safe=no"
1321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1322 echo "$ac_t""yes" 1>&6
1323 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1324 cat >> confdefs.h
<<EOF
1325 #define $ac_tr_hdr 1
1329 echo "$ac_t""no" 1>&6
1333 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1334 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1337 cat > conftest.
$ac_ext <<EOF
1338 #line 1339 "configure"
1339 #include "confdefs.h"
1340 #include <sys/types.h>
1341 #include <sys/stat.h>
1343 #if defined(S_ISBLK) && defined(S_IFDIR)
1344 # if S_ISBLK (S_IFDIR)
1349 #if defined(S_ISBLK) && defined(S_IFCHR)
1350 # if S_ISBLK (S_IFCHR)
1355 #if defined(S_ISLNK) && defined(S_IFREG)
1356 # if S_ISLNK (S_IFREG)
1361 #if defined(S_ISSOCK) && defined(S_IFREG)
1362 # if S_ISSOCK (S_IFREG)
1368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1369 egrep "You lose" >/dev
/null
2>&1; then
1371 ac_cv_header_stat_broken
=yes
1374 ac_cv_header_stat_broken
=no
1380 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1381 if test $ac_cv_header_stat_broken = yes; then
1382 cat >> confdefs.h
<<\EOF
1383 #define STAT_MACROS_BROKEN 1
1389 echo $ac_n "checking for working const""... $ac_c" 1>&6
1390 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1393 cat > conftest.
$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1397 int main() { return 0; }
1400 /* Ultrix mips cc rejects this. */
1401 typedef int charset[2]; const charset x;
1402 /* SunOS 4.1.1 cc rejects this. */
1403 char const *const *ccp;
1405 /* NEC SVR4.0.2 mips cc rejects this. */
1406 struct point {int x, y;};
1407 static struct point const zero = {0,0};
1408 /* AIX XL C 1.02.0.0 rejects this.
1409 It does not let you subtract one const X* pointer from another in an arm
1410 of an if-expression whose if-part is not a constant expression */
1411 const char *g = "string";
1412 ccp = &g + (g ? g-g : 0);
1413 /* HPUX 7.0 cc rejects these. */
1416 ccp = (char const *const *) p;
1417 { /* SCO 3.2v4 cc rejects this. */
1419 char const *s = 0 ? (char *) 0 : (char const *) 0;
1423 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1425 const int *foo = &x[0];
1428 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1429 typedef const int *iptr;
1433 { /* AIX XL C 1.02.0.0 rejects this saying
1434 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1435 struct s { int j; const int *ap[3]; };
1436 struct s *b; b->j = 5;
1438 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1444 if { (eval echo configure
:1445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1455 echo "$ac_t""$ac_cv_c_const" 1>&6
1456 if test $ac_cv_c_const = no
; then
1457 cat >> confdefs.h
<<\EOF
1464 for ac_func
in setpgid sbrk
1466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1470 cat > conftest.
$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1473 /* System header to define __stub macros and hopefully few prototypes,
1474 which can conflict with char $ac_func(); below. */
1476 /* Override any gcc2 internal prototype to avoid an error. */
1477 /* We use char because int might match the return type of a gcc2
1478 builtin and then its argument prototype would still apply. */
1481 int main() { return 0; }
1484 /* The GNU C library defines this for functions which it implements
1485 to always fail with ENOSYS. Some functions are actually named
1486 something starting with __ and the normal name is an alias. */
1487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1495 if { (eval echo configure
:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1497 eval "ac_cv_func_$ac_func=yes"
1500 eval "ac_cv_func_$ac_func=no"
1505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1506 echo "$ac_t""yes" 1>&6
1507 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1508 cat >> confdefs.h
<<EOF
1509 #define $ac_tr_func 1
1513 echo "$ac_t""no" 1>&6
1518 echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6
1519 if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then
1520 echo $ac_n "(cached) $ac_c" 1>&6
1522 cat > conftest.
$ac_ext <<EOF
1523 #line 1524 "configure"
1524 #include "confdefs.h"
1525 #include <sys/procfs.h>
1526 int main() { return 0; }
1528 gregset_t *gregsetp = 0
1531 if { (eval echo configure
:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1533 gdb_cv_have_gregset_t
=yes
1536 gdb_cv_have_gregset_t
=no
1542 echo "$ac_t""$gdb_cv_have_gregset_t" 1>&6
1543 if test $gdb_cv_have_gregset_t = yes; then
1544 cat >> confdefs.h
<<\EOF
1545 #define HAVE_GREGSET_T 1
1550 echo $ac_n "checking for fpregset_t type""... $ac_c" 1>&6
1551 if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 cat > conftest.
$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1557 #include <sys/procfs.h>
1558 int main() { return 0; }
1560 fpregset_t *fpregsetp = 0
1563 if { (eval echo configure
:1564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1565 gdb_cv_have_fpregset_t
=yes
1568 gdb_cv_have_fpregset_t
=no
1574 echo "$ac_t""$gdb_cv_have_fpregset_t" 1>&6
1575 if test $gdb_cv_have_fpregset_t = yes; then
1576 cat >> confdefs.h
<<\EOF
1577 #define HAVE_FPREGSET_T 1
1583 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
1584 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1587 cat > conftest.
$ac_ext <<EOF
1588 #line 1589 "configure"
1589 #include "confdefs.h"
1591 int main() { return 0; }
1594 extern long long foo;
1595 switch (foo & 2) { case 0: return 1; }
1599 if { (eval echo configure
:1600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1601 gdb_cv_c_long_long
=yes
1604 gdb_cv_c_long_long
=no
1610 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
1611 if test $gdb_cv_c_long_long = yes; then
1612 cat >> confdefs.h
<<\EOF
1613 #define CC_HAS_LONG_LONG 1
1619 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
1620 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1623 if test "$cross_compiling" = yes; then
1624 gdb_cv_printf_has_long_long
=no
1626 cat > conftest.
$ac_ext <<EOF
1627 #line 1628 "configure"
1628 #include "confdefs.h"
1632 long long l = 0x12345;
1633 sprintf (buf, "%llx", l);
1634 return (strcmp ("12345", buf));
1637 { (eval echo configure
:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1638 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1639 gdb_cv_printf_has_long_long
=yes
1641 gdb_cv_printf_has_long_long
=no
1647 if test $gdb_cv_printf_has_long_long = yes; then
1648 cat >> confdefs.h
<<\EOF
1649 #define PRINTF_HAS_LONG_LONG 1
1653 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
1656 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
1657 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
1658 echo $ac_n "(cached) $ac_c" 1>&6
1660 cat > conftest.
$ac_ext <<EOF
1661 #line 1662 "configure"
1662 #include "confdefs.h"
1664 int main() { return 0; }
1669 if { (eval echo configure
:1670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1671 ac_cv_c_long_double
=yes
1674 ac_cv_c_long_double
=no
1680 echo "$ac_t""$ac_cv_c_long_double" 1>&6
1681 if test $ac_cv_c_long_double = yes; then
1682 cat >> confdefs.h
<<\EOF
1683 #define HAVE_LONG_DOUBLE 1
1689 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
1690 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
1691 echo $ac_n "(cached) $ac_c" 1>&6
1693 if test "$cross_compiling" = yes; then
1694 gdb_cv_printf_has_long_double
=no
1696 cat > conftest.
$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1702 long double f = 3.141592653;
1703 sprintf (buf, "%Lg", f);
1704 return (strncmp ("3.14159", buf, 7));
1707 { (eval echo configure
:1708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1708 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1709 gdb_cv_printf_has_long_double
=yes
1711 gdb_cv_printf_has_long_double
=no
1717 if test $gdb_cv_printf_has_long_double = yes; then
1718 cat >> confdefs.h
<<\EOF
1719 #define PRINTF_HAS_LONG_DOUBLE 1
1723 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
1725 for ac_func
in valloc getpagesize
1727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1729 echo $ac_n "(cached) $ac_c" 1>&6
1731 cat > conftest.
$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1734 /* System header to define __stub macros and hopefully few prototypes,
1735 which can conflict with char $ac_func(); below. */
1737 /* Override any gcc2 internal prototype to avoid an error. */
1738 /* We use char because int might match the return type of a gcc2
1739 builtin and then its argument prototype would still apply. */
1742 int main() { return 0; }
1745 /* The GNU C library defines this for functions which it implements
1746 to always fail with ENOSYS. Some functions are actually named
1747 something starting with __ and the normal name is an alias. */
1748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1756 if { (eval echo configure
:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1758 eval "ac_cv_func_$ac_func=yes"
1761 eval "ac_cv_func_$ac_func=no"
1766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1767 echo "$ac_t""yes" 1>&6
1768 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1769 cat >> confdefs.h
<<EOF
1770 #define $ac_tr_func 1
1774 echo "$ac_t""no" 1>&6
1778 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1779 if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1782 if test "$cross_compiling" = yes; then
1785 cat > conftest.
$ac_ext <<EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1789 /* Thanks to Mike Haertel and Jim Avera for this test. */
1790 #include <sys/types.h>
1792 #include <sys/mman.h>
1794 #ifndef HAVE_GETPAGESIZE
1795 # include <sys/param.h>
1796 # ifdef EXEC_PAGESIZE
1797 # define getpagesize() EXEC_PAGESIZE
1800 # define getpagesize() NBPG * CLSIZE
1806 # define getpagesize() NBPC
1808 # define getpagesize() PAGESIZE /* SVR4 */
1815 # define valloc malloc
1819 extern "C" { void *valloc(unsigned), *malloc(unsigned); }
1821 char *valloc(), *malloc();
1827 char *buf1, *buf2, *buf3;
1828 int i = getpagesize(), j;
1832 buf1 = (char *)valloc(i2);
1833 buf2 = (char *)valloc(i);
1834 buf3 = (char *)malloc(i2);
1835 for (j = 0; j < i2; ++j)
1836 *(buf1 + j) = rand();
1837 fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
1838 write(fd, buf1, i2);
1839 mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
1840 for (j = 0; j < i; ++j)
1841 if (*(buf1 + j) != *(buf2 + j))
1843 lseek(fd, (long)i, 0);
1844 read(fd, buf2, i); /* read into mapped memory -- file should not change */
1845 /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
1846 lseek(fd, (long)0, 0);
1848 for (j = 0; j < i2; ++j)
1849 if (*(buf1 + j) != *(buf3 + j))
1855 { (eval echo configure
:1856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1856 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1865 echo "$ac_t""$ac_cv_func_mmap" 1>&6
1866 if test $ac_cv_func_mmap = yes; then
1867 cat >> confdefs.h
<<\EOF
1874 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
1875 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1878 cat > conftest.
$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1883 #ifdef HAVE_STRING_H
1886 #ifdef HAVE_STRINGS_H
1887 #include <strings.h>
1890 #ifdef HAVE_STDLIB_H
1893 #ifdef HAVE_UNISTD_H
1896 int main() { return 0; }
1898 char *(*pfn) = (char *(*)) malloc
1901 if { (eval echo configure
:1902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1903 bfd_cv_decl_needed_malloc
=no
1906 bfd_cv_decl_needed_malloc
=yes
1912 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
1913 if test $bfd_cv_decl_needed_malloc = yes; then
1914 bfd_tr_decl
=NEED_DECLARATION_
`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1915 cat >> confdefs.h
<<EOF
1916 #define $bfd_tr_decl 1
1921 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
1922 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 cat > conftest.
$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1930 #ifdef HAVE_STRING_H
1933 #ifdef HAVE_STRINGS_H
1934 #include <strings.h>
1937 #ifdef HAVE_STDLIB_H
1940 #ifdef HAVE_UNISTD_H
1943 int main() { return 0; }
1945 char *(*pfn) = (char *(*)) realloc
1948 if { (eval echo configure
:1949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1950 bfd_cv_decl_needed_realloc
=no
1953 bfd_cv_decl_needed_realloc
=yes
1959 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
1960 if test $bfd_cv_decl_needed_realloc = yes; then
1961 bfd_tr_decl
=NEED_DECLARATION_
`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1962 cat >> confdefs.h
<<EOF
1963 #define $bfd_tr_decl 1
1968 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
1969 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1972 cat > conftest.
$ac_ext <<EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1977 #ifdef HAVE_STRING_H
1980 #ifdef HAVE_STRINGS_H
1981 #include <strings.h>
1984 #ifdef HAVE_STDLIB_H
1987 #ifdef HAVE_UNISTD_H
1990 int main() { return 0; }
1992 char *(*pfn) = (char *(*)) free
1995 if { (eval echo configure
:1996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1997 bfd_cv_decl_needed_free
=no
2000 bfd_cv_decl_needed_free
=yes
2006 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
2007 if test $bfd_cv_decl_needed_free = yes; then
2008 bfd_tr_decl
=NEED_DECLARATION_
`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2009 cat >> confdefs.h
<<EOF
2010 #define $bfd_tr_decl 1
2018 if test ${build} = ${host} -a ${host} = ${target} ; then
2019 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
2020 if test -f /usr
/lib
/libthread_db.so
.1 ; then
2021 echo "$ac_t""yes" 1>&6
2022 THREAD_DB_OBS
=sol-thread.o
2023 cat >> confdefs.h
<<\EOF
2024 #define HAVE_THREAD_DB_LIB 1
2027 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Xlinker -export-dynamic"
2029 echo "$ac_t""no" 1>&6
2039 # Check whether --enable-netrom or --disable-netrom was given.
2040 if test "${enable_netrom+set}" = set; then
2041 enableval
="$enable_netrom"
2042 case "${enableval}" in
2043 yes) enable_netrom
=yes ;;
2044 no
) enable_netrom
=no
;;
2045 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
2050 if test "${enable_netrom}" = "yes"; then
2051 ENABLE_OBS
="${ENABLE_OBS} remote-nrom.o"
2057 # Check whether --enable-gm or --disable-gm was given.
2058 if test "${enable_gm+set}" = set; then
2059 enableval
="$enable_gm"
2060 case "${enableval}" in
2061 yes) ENABLE_OBS
="${ENABLE_OBS} gmagic.o"
2062 ENABLE_CFLAGS
=-DGENERAL_MAGIC
2065 *) { echo "configure: error: bad value ${enableval} given for gm option" 1>&2; exit 1; } ;;
2072 # Check whether --enable-sim-powerpc or --disable-sim-powerpc was given.
2073 if test "${enable_sim_powerpc+set}" = set; then
2074 enableval
="$enable_sim_powerpc"
2075 case "${enableval}" in
2076 yes) powerpc_sim
=yes ;;
2077 no
) powerpc_sim
=no
;;
2078 *) { echo "configure: error: bad value ${enableval} given for sim-powerpc option" 1>&2; exit 1; } ;;
2081 if test x
"$GCC" != x
""; then powerpc_sim
=yes; else powerpc_sim
=no
; fi
2085 # start-sanitize-gdbtk
2088 # Check whether --enable-gdbtk or --disable-gdbtk was given.
2089 if test "${enable_gdbtk+set}" = set; then
2090 enableval
="$enable_gdbtk"
2091 case "${enableval}" in
2095 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
2097 *cygwin32
* |
*windows
*)
2098 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
2106 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
2110 # Default is on for everything but go32 and cygwin32
2112 *go32
* |
*cygwin32
* |
*windows
*)
2121 if test "${enable_gdbtk}" = "yes"; then
2125 # Ok, lets find the tcl configuration
2126 # First, look for one uninstalled.
2127 # the alternative search directory is invoked by --with-tclconfig
2130 if test x
"${no_tcl}" = x
; then
2131 # we reset no_tcl in case something fails here
2133 # Check whether --with-tclconfig or --without-tclconfig was given.
2134 if test "${with_tclconfig+set}" = set; then
2135 withval
="$with_tclconfig"
2136 with_tclconfig
=${withval}
2139 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
2140 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2145 # First check to see if --with-tclconfig was specified.
2146 if test x
"${with_tclconfig}" != x
; then
2147 if test -f "${with_tclconfig}/tclConfig.sh" ; then
2148 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
2150 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
2154 # then check for a private Tcl installation
2155 if test x
"${ac_cv_c_tclconfig}" = x
; then
2158 `ls -dr ../tcl[7-9]* 2>/dev/null` \
2160 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
2162 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
2163 if test -f "$i/unix/tclConfig.sh" ; then
2164 ac_cv_c_tclconfig
=`(cd $i/unix; pwd)`
2169 # check in a few common install locations
2170 if test x
"${ac_cv_c_tclconfig}" = x
; then
2171 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
2172 if test -f "$i/tclConfig.sh" ; then
2173 ac_cv_c_tclconfig
=`(cd $i; pwd)`
2178 # check in a few other private locations
2179 if test x
"${ac_cv_c_tclconfig}" = x
; then
2182 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
2183 if test -f "$i/unix/tclConfig.sh" ; then
2184 ac_cv_c_tclconfig
=`(cd $i/unix; pwd)`
2192 if test x
"${ac_cv_c_tclconfig}" = x
; then
2193 TCLCONFIG
="# no Tcl configs found"
2194 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
2197 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
2198 echo "$ac_t""found $TCLCONFIG" 1>&6
2202 if test -z "${no_tcl}"; then
2232 # Ok, lets find the tk configuration
2233 # First, look for one uninstalled.
2234 # the alternative search directory is invoked by --with-tkconfig
2237 if test x
"${no_tk}" = x
; then
2238 # we reset no_tk in case something fails here
2240 # Check whether --with-tkconfig or --without-tkconfig was given.
2241 if test "${with_tkconfig+set}" = set; then
2242 withval
="$with_tkconfig"
2243 with_tkconfig
=${withval}
2246 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
2247 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2252 # First check to see if --with-tkconfig was specified.
2253 if test x
"${with_tkconfig}" != x
; then
2254 if test -f "${with_tkconfig}/tkConfig.sh" ; then
2255 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
2257 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
2261 # then check for a private Tk library
2262 if test x
"${ac_cv_c_tkconfig}" = x
; then
2265 `ls -dr ../tk[4-9]* 2>/dev/null` \
2267 `ls -dr ../../tk[4-9]* 2>/dev/null` \
2269 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
2270 if test -f "$i/unix/tkConfig.sh" ; then
2271 ac_cv_c_tkconfig
=`(cd $i/unix; pwd)`
2276 # check in a few common install locations
2277 if test x
"${ac_cv_c_tkconfig}" = x
; then
2278 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
2279 if test -f "$i/tkConfig.sh" ; then
2280 ac_cv_c_tkconfig
=`(cd $i; pwd)`
2285 # check in a few other private locations
2286 if test x
"${ac_cv_c_tkconfig}" = x
; then
2289 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
2290 if test -f "$i/unix/tkConfig.sh" ; then
2291 ac_cv_c_tkconfig
=`(cd $i/unix; pwd)`
2299 if test x
"${ac_cv_c_tkconfig}" = x
; then
2300 TKCONFIG
="# no Tk configs found"
2301 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
2304 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
2305 echo "$ac_t""found $TKCONFIG" 1>&6
2311 # If $no_tk is nonempty, then we can't do Tk, and there is no
2312 # point to doing Tcl.
2313 if test -z "${no_tk}"; then
2315 if test -f "$TKCONFIG" ; then
2332 # Ok, lets find the tcl source trees so we can use the headers
2333 # Warning: transition of version 9 to 10 will break this algorithm
2334 # because 10 sorts before 9. We also look for just tcl. We have to
2335 # be careful that we don't match stuff like tclX by accident.
2336 # the alternative search directory is involked by --with-tclinclude
2339 echo $ac_n "checking for Tcl private headers""... $ac_c" 1>&6
2340 # Check whether --with-tclinclude or --without-tclinclude was given.
2341 if test "${with_tclinclude+set}" = set; then
2342 withval
="$with_tclinclude"
2343 with_tclinclude
=${withval}
2346 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2350 # first check to see if --with-tclinclude was specified
2351 if test x
"${with_tclinclude}" != x
; then
2352 if test -f ${with_tclinclude}/tclInt.h
; then
2353 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
2354 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
2355 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
2357 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
2361 # next check if it came with Tcl configuration file
2362 if test x
"${ac_cv_c_tclconfig}" = x
; then
2363 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
2364 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
2368 # next check in private source directory
2370 # since ls returns lowest version numbers first, reverse its output
2371 if test x
"${ac_cv_c_tclh}" = x
; then
2374 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
2375 ${srcdir}/..
/..
/tcl \
2376 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
2377 ${srcdir}/..
/..
/..
/tcl \
2378 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
2379 if test -f $i/generic
/tclInt.h
; then
2380 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
2385 # finally check in a few common install locations
2387 # since ls returns lowest version numbers first, reverse its output
2388 if test x
"${ac_cv_c_tclh}" = x
; then
2390 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
2391 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
2392 /usr
/local
/src
/tcl \
2393 /usr
/local
/lib
/tcl \
2394 ${prefix}/include
; do
2395 if test -f $i/generic
/tclInt.h
; then
2396 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
2401 # see if one is installed
2402 if test x
"${ac_cv_c_tclh}" = x
; then
2403 ac_safe
=`echo "tclInt.h" | tr './\055' '___'`
2404 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
2405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 cat > conftest.
$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2413 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2414 { (eval echo configure
:2415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2415 ac_err
=`grep -v '^ *+' conftest.out`
2416 if test -z "$ac_err"; then
2418 eval "ac_cv_header_$ac_safe=yes"
2422 eval "ac_cv_header_$ac_safe=no"
2426 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2427 echo "$ac_t""yes" 1>&6
2428 ac_cv_c_tclh
=installed
2430 echo "$ac_t""no" 1>&6
2438 if test x
"${ac_cv_c_tclh}" = x
; then
2439 TCLHDIR
="# no Tcl private headers found"
2440 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
2442 if test x
"${ac_cv_c_tclh}" != x
; then
2444 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
2445 echo "$ac_t""is installed" 1>&6
2448 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
2449 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
2450 TCLHDIR
="-I${ac_cv_c_tclh}"
2458 # Ok, lets find the tk source trees so we can use the headers
2459 # If the directory (presumably symlink) named "tk" exists, use that one
2460 # in preference to any others. Same logic is used when choosing library
2461 # and again with Tcl. The search order is the best place to look first, then in
2462 # decreasing significance. The loop breaks if the trigger file is found.
2463 # Note the gross little conversion here of srcdir by cd'ing to the found
2464 # directory. This converts the path from a relative to an absolute, so
2465 # recursive cache variables for the path will work right. We check all
2466 # the possible paths in one loop rather than many seperate loops to speed
2468 # the alternative search directory is involked by --with-tkinclude
2471 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
2472 # Check whether --with-tkinclude or --without-tkinclude was given.
2473 if test "${with_tkinclude+set}" = set; then
2474 withval
="$with_tkinclude"
2475 with_tkinclude
=${withval}
2478 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2482 # first check to see if --with-tkinclude was specified
2483 if test x
"${with_tkinclude}" != x
; then
2484 if test -f ${with_tkinclude}/tk.h
; then
2485 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
2486 elif test -f ${with_tkinclude}/generic
/tk.h
; then
2487 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
2489 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
2493 # next check if it came with Tk configuration file
2494 if test x
"${ac_cv_c_tkconfig}" = x
; then
2495 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
2496 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
2500 # next check in private source directory
2502 # since ls returns lowest version numbers first, reverse its output
2503 if test x
"${ac_cv_c_tkh}" = x
; then
2506 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
2507 ${srcdir}/..
/..
/tk \
2508 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
2509 ${srcdir}/..
/..
/..
/tk \
2510 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
2511 if test -f $i/generic
/tk.h
; then
2512 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
2517 # finally check in a few common install locations
2519 # since ls returns lowest version numbers first, reverse its output
2520 if test x
"${ac_cv_c_tkh}" = x
; then
2522 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
2523 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
2526 ${prefix}/include
; do
2527 if test -f $i/generic
/tk.h
; then
2528 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
2533 # see if one is installed
2534 if test x
"${ac_cv_c_tkh}" = x
; then
2535 ac_safe
=`echo "tk.h" | tr './\055' '___'`
2536 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
2537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2540 cat > conftest.
$ac_ext <<EOF
2541 #line 2542 "configure"
2542 #include "confdefs.h"
2545 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2546 { (eval echo configure
:2547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2547 ac_err
=`grep -v '^ *+' conftest.out`
2548 if test -z "$ac_err"; then
2550 eval "ac_cv_header_$ac_safe=yes"
2554 eval "ac_cv_header_$ac_safe=no"
2558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2559 echo "$ac_t""yes" 1>&6
2560 ac_cv_c_tkh
=installed
2562 echo "$ac_t""no" 1>&6
2570 if test x
"${ac_cv_c_tkh}" != x
; then
2572 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
2573 echo "$ac_t""is installed" 1>&6
2576 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
2577 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
2578 TKHDIR
="-I${ac_cv_c_tkh}"
2581 TKHDIR
="# no Tk directory found"
2582 echo "configure: warning: Can't find Tk private headers" 1>&2
2589 # Include some libraries that Tcl and Tk want.
2590 LIBS
="$LIBS $TK_LIBS"
2594 TCL_LIBS
='$(TCL) $(TK) $(X11_LDFLAGS) $(X11_LIBS)'
2595 ENABLE_CLIBS
="${ENABLE_CLIBS} ${TCL_LIBS}"
2596 ENABLE_OBS
="${ENABLE_OBS} gdbtk.o"
2605 # end-sanitize-gdbtk
2611 # Begin stuff to support --enable-shared
2612 # Check whether --enable-shared or --disable-shared was given.
2613 if test "${enable_shared+set}" = set; then
2614 enableval
="$enable_shared"
2615 case "${enableval}" in
2624 # If we have shared libraries, try to set rpath reasonably.
2625 if test "${shared}" = "true"; then
2628 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
2630 *-*-irix5* |
*-*-irix6*)
2631 HLDFLAGS
='-Wl,-rpath,$(libdir)'
2636 HLDFLAGS
='-Wl,-rpath,$(libdir)'
2639 HLDFLAGS
='-R $(libdir)'
2642 HLDENV
='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
2647 # On SunOS, if the linker supports the -rpath option, use it to
2648 # prevent ../bfd and ../opcodes from being included in the run time
2652 echo 'main () { }' > conftest.c
2653 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
2654 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
2656 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
2658 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
2660 elif test "${shared}" = "true"; then
2661 HLDFLAGS
='-Wl,-rpath=$(libdir)'
2663 HLDFLAGS
='-Wl,-rpath='
2665 rm -f conftest.t conftest.c conftest
2670 # End stuff to support --enable-shared
2672 # target_subdir is used by the testsuite to find the target libraries.
2674 if test "${host}" != "${target}"; then
2675 target_subdir
="${target_alias}/"
2679 configdirs
="doc testsuite"
2682 # Map host cpu into the config cpu subdirectory name.
2683 # The default is $host_cpu.
2685 case "${host_cpu}" in
2687 c
[12]) gdb_host_cpu
=convex
;;
2688 hppa
*) gdb_host_cpu
=pa
;;
2689 i
[3456]86) gdb_host_cpu
=i386
;;
2690 m68
*) gdb_host_cpu
=m68k
;;
2691 m88
*) gdb_host_cpu
=m88k
;;
2692 np1
) gdb_host_cpu
=gould
;;
2693 pyramid
) gdb_host_cpu
=pyr
;;
2694 powerpc
*) gdb_host_cpu
=powerpc
;;
2695 sparc64
) gdb_host_cpu
=sparc
;;
2696 *) gdb_host_cpu
=$host_cpu ;;
2700 # map host info into gdb names.
2704 a29k-
*-*) gdb_host
=ultra3
;;
2706 alpha-
*-osf1*) gdb_host
=alpha-osf1
;;
2707 alpha-
*-osf2*) gdb_host
=alpha-osf2
;;
2708 alpha-
*-osf[3456789]*) gdb_host
=alpha-osf3
;;
2709 alpha-
*-linux*) gdb_host
=alpha-linux
;;
2711 arm-
*-*) gdb_host
=arm
;;
2713 c
[12]-*-*) gdb_host
=convex
;;
2715 hppa
*-*-bsd*) gdb_host
=hppabsd
;;
2716 hppa
*-*-hiux*) gdb_host
=hppahpux
;;
2717 hppa
*-*-hpux*) gdb_host
=hppahpux
;;
2718 hppa
*-*-osf*) gdb_host
=hppaosf
;;
2720 i
[3456]86-ncr-*) gdb_host
=ncr3000
;;
2721 i
[3456]86-sequent-bsd*) gdb_host
=symmetry
;; # dynix
2722 i
[3456]86-sequent-sysv4*) gdb_host
=ptx4
;;
2723 i
[3456]86-sequent-sysv*) gdb_host
=ptx ;;
2724 i
[3456]86-*-aix*) gdb_host
=i386aix
;;
2725 i
[3456]86-*-bsd*) gdb_host
=i386bsd
;;
2726 i
[3456]86-*-dgux*) gdb_host
=i386dgux
;;
2727 i
[3456]86-*-freebsd*) gdb_host
=fbsd
;;
2728 i
[3456]86-*-netbsd*) gdb_host
=nbsd
;;
2729 i
[3456]86-*-go32*) gdb_host
=go32
;;
2730 i
[3456]86-*-linux*) gdb_host
=linux
;;
2731 i
[3456]86-*-lynxos*) gdb_host
=i386lynx
;;
2732 i
[3456]86-*-mach3*) gdb_host
=i386m3
;;
2733 i
[3456]86-*-mach*) gdb_host
=i386mach
;;
2734 i
[3456]86-*-gnu*) gdb_host
=i386gnu
;;
2735 i
[3456]86-*-osf1mk*) gdb_host
=osf1mk
;;
2736 i
[3456]86-*-sco3.2v5
*) gdb_host
=i386sco5
;;
2737 i
[3456]86-*-sco3.2v4
*) gdb_host
=i386sco4
;;
2738 i
[3456]86-*-sco*) gdb_host
=i386sco
;;
2739 i
[3456]86-*-solaris*) gdb_host
=i386sol2
;;
2740 i
[3456]86-*-sunos*) gdb_host
=sun386
;;
2741 i
[3456]86-*-sysv3.2
*) gdb_host
=i386v32
;;
2742 i
[3456]86-*-sysv32*) gdb_host
=i386v32
;;
2743 i
[3456]86-*-sysv4*) gdb_host
=i386v4
;;
2744 i
[3456]86-*-unixware) gdb_host
=i386v4
;;
2745 i
[3456]86-*-sysv*) gdb_host
=i386v
;;
2746 i
[3456]86-*-isc*) gdb_host
=i386v32
;;
2747 i
[3456]86-*-os9k) gdb_host
=i386os9k
;;
2748 i
[3456]86-*-cygwin32) gdb_host
=cygwin32
;;
2749 i
[3456]86-*-windows) gdb_host
=windows
2750 configdirs
="${configdirs} mswin" ;;
2751 m680
[01]0-sun-sunos3*) gdb_host
=sun2os3
;;
2752 m680
[01]0-sun-sunos4*) gdb_host
=sun2os4
;;
2753 m68030-sony-
*) gdb_host
=news1000
;;
2755 m68
*-altos-*) gdb_host
=altos
;;
2756 m68
*-apollo*-sysv*) gdb_host
=apollo68v
;;
2757 m68
*-apollo*-bsd*) gdb_host
=apollo68b
;;
2758 m68
*-att-*) gdb_host
=3b1
;;
2759 m68
*-bull*-sysv*) gdb_host
=dpx2
;;
2760 m68
*-hp-bsd*) gdb_host
=hp300bsd
;;
2761 m68
*-hp-hpux*) gdb_host
=hp300hpux
;;
2762 m68
*-isi-*) gdb_host
=isi
;;
2763 m68
*-*-lynxos*) gdb_host
=m68klynx
;;
2764 m68
*-*-netbsd*) gdb_host
=nbsd
;;
2765 m68
*-*-sysv4*) gdb_host
=m68kv4
;;
2766 m68
*-motorola-*) gdb_host
=delta68
;;
2767 m68
*-sony-*) gdb_host
=news
;;
2768 m68
*-sun-sunos3*) gdb_host
=sun3os3
;;
2769 m68
*-sun-sunos4*) gdb_host
=sun3os4
;;
2770 m68
*-sun-*) gdb_host
=sun3os4
;;
2772 m88
*-harris-cxux*) gdb_host
=cxux
;;
2773 m88
*-motorola-sysv4*) gdb_host
=delta88v4
;;
2774 m88
*-motorola-sysv*) gdb_host
=delta88
;;
2775 m88
*-*-mach3*) gdb_host
=mach3
;;
2776 m88
*-*-*) gdb_host
=m88k
;;
2778 mips-dec-mach3
*) gdb_host
=mach3
;;
2779 mips-dec-
*) gdb_host
=decstation
;;
2780 mips-little-
*) gdb_host
=littlemips
;;
2781 mips-sgi-irix3
*) gdb_host
=irix3
;;
2782 mips-sgi-irix4
*) gdb_host
=irix4
;;
2783 mips-sgi-irix5
*) gdb_host
=irix5
;;
2784 mips-sony-
*) gdb_host
=news-mips
;;
2785 mips-
*-mach3*) gdb_host
=mach3
;;
2786 mips-
*-sysv4*) gdb_host
=mipsv4
;;
2787 mips-
*-sysv*) gdb_host
=riscos
;;
2788 mips-
*-riscos*) gdb_host
=riscos
;;
2790 none-
*-*) gdb_host
=none
;;
2792 np1-
*-*) gdb_host
=np1
;;
2794 ns32k-
*-mach3*) gdb_host
=mach3
;;
2795 ns32k-
*-netbsd*) gdb_host
=nbsd
;;
2796 ns32k-umax-
*) gdb_host
=umax
;;
2797 ns32k-utek-sysv
*) gdb_host
=merlin
;;
2799 powerpc-
*-aix*) gdb_host
=aix
;;
2800 powerpcle-
*-cygwin32) gdb_host
=cygwin32
;;
2801 powerpcle-
*-solaris*) gdb_host
=solaris
;;
2802 powerpc-
*-linux*) gdb_host
=linux
;;
2803 pn-
*-*) gdb_host
=pn
;;
2805 pyramid-
*-*) gdb_host
=pyramid
;;
2807 romp-
*-*) gdb_host
=rtbsd
;;
2809 rs6000-
*-lynxos*) gdb_host
=rs6000lynx
;;
2810 rs6000-
*-aix4*) gdb_host
=aix4
;;
2811 rs6000-
*-*) gdb_host
=rs6000
;;
2813 sparc-
*-lynxos*) gdb_host
=sparclynx
;;
2814 sparc-
*-netbsd*) gdb_host
=nbsd
;;
2815 sparc-
*-solaris2*) gdb_host
=sun4sol2
;;
2816 sparc-
*-sunos4*) gdb_host
=sun4os4
;;
2817 sparc-
*-sunos5*) gdb_host
=sun4sol2
;;
2818 sparc-
*-*) gdb_host
=sun4os4
;;
2819 sparc64-
*-*) gdb_host
=sun4sol2
;;
2821 tahoe-
*-*) gdb_host
=tahoe
;;
2823 vax-
*-bsd*) gdb_host
=vaxbsd
;;
2824 vax-
*-ultrix2*) gdb_host
=vaxult2
;;
2825 vax-
*-ultrix*) gdb_host
=vaxult
;;
2827 w65-
*-*) gdb_host
=w65
;;
2832 # Map target cpu into the config cpu subdirectory name.
2833 # The default is $target_cpu.
2835 case "${target_cpu}" in
2837 alpha
) gdb_target_cpu
=alpha
;;
2838 c
[12]) gdb_target_cpu
=convex
;;
2839 hppa
*) gdb_target_cpu
=pa
;;
2840 i
[3456]86) gdb_target_cpu
=i386
;;
2841 m68
*) gdb_target_cpu
=m68k
;;
2842 m88
*) gdb_target_cpu
=m88k
;;
2843 mips
*) gdb_target_cpu
=mips
;;
2844 np1
) gdb_target_cpu
=gould
;;
2845 powerpc
*) gdb_target_cpu
=powerpc
;;
2846 pn
) gdb_target_cpu
=gould
;;
2847 pyramid
) gdb_target_cpu
=pyr
;;
2848 sparc
*) gdb_target_cpu
=sparc
;;
2849 *) gdb_target_cpu
=$target_cpu ;;
2853 # map target info into gdb names.
2857 a29k-
*-aout*) gdb_target
=a29k
;;
2858 a29k-
*-coff*) gdb_target
=a29k
;;
2859 a29k-
*-elf*) gdb_target
=a29k
;;
2860 a29k-
*-ebmon*) gdb_target
=a29k
;;
2861 a29k-
*-kern*) gdb_target
=a29k-kern
;;
2862 a29k-
*-none*) gdb_target
=a29k
;;
2863 a29k-
*-sym1*) gdb_target
=ultra3
;;
2864 a29k-
*-udi*) gdb_target
=a29k-udi
;;
2865 a29k-
*-vxworks*) gdb_target
=vx29k
;;
2867 alpha-
*-osf*) gdb_target
=alpha-osf1
;;
2868 alpha-
*-linux*) gdb_target
=alpha-linux
;;
2870 # start-sanitize-arc
2871 arc-
*-*) gdb_target
=arc
;;
2874 arm-
*-*) gdb_target
=arm
;;
2876 c1-
*-*) gdb_target
=convex
;;
2877 c2-
*-*) gdb_target
=convex
;;
2879 # start-sanitize-d10v
2880 d10v-
*-*) gdb_target
=d10v
;;
2883 h8300-
*-*) gdb_target
=h8300
;;
2884 h8500-
*-*) gdb_target
=h8500
;;
2886 sh-
*-*) gdb_target
=sh
;;
2888 hppa
*-*-bsd*) gdb_target
=hppabsd
;;
2889 hppa
*-*-pro*) gdb_target
=hppapro
;;
2890 hppa
*-*-hpux*) gdb_target
=hppahpux
;;
2891 hppa
*-*-hiux*) gdb_target
=hppahpux
;;
2892 hppa
*-*-osf*) gdb_target
=hppaosf
;;
2894 i
[3456]86-sequent-bsd*) gdb_target
=symmetry
;;
2895 i
[3456]86-sequent-sysv4*) gdb_target
=ptx4
;;
2896 i
[3456]86-sequent-sysv*) gdb_target
=ptx ;;
2897 i
[3456]86-ncr-*) gdb_target
=ncr3000
;;
2898 i
[3456]86-*-aout*) gdb_target
=i386aout
;;
2899 i
[3456]86-*-coff*) gdb_target
=i386v
;;
2900 i
[3456]86-*-elf*) gdb_target
=i386v
;;
2901 i
[3456]86-*-aix*) gdb_target
=i386aix
;;
2902 i
[3456]86-*-bsd*) gdb_target
=i386bsd
;;
2903 i
[3456]86-*-freebsd*) gdb_target
=fbsd
;;
2904 i
[3456]86-*-netbsd*) gdb_target
=nbsd
;;
2905 i
[3456]86-*-os9k) gdb_target
=i386os9k
;;
2906 i
[3456]86-*-go32*) gdb_target
=i386aout
;;
2907 i
[3456]86-*-lynxos*) gdb_target
=i386lynx
2908 configdirs
="${configdirs} gdbserver" ;;
2909 i
[3456]86-*-solaris*) gdb_target
=i386sol2
;;
2910 i
[3456]86-*-sunos*) gdb_target
=sun386
;;
2911 i
[3456]86-*-sysv4*) gdb_target
=i386v4
;;
2912 i
[3456]86-*-sco*) gdb_target
=i386v
;;
2913 i
[3456]86-*-sysv*) gdb_target
=i386v
;;
2914 i
[3456]86-*-linux*) gdb_target
=linux
2915 configdirs
="${configdirs} gdbserver" ;;
2916 i
[3456]86-*-isc*) gdb_target
=i386v
;;
2917 i
[3456]86-*-mach3*) gdb_target
=i386m3
;;
2918 i
[3456]86-*-mach*) gdb_target
=i386mach
;;
2919 i
[3456]86-*-gnu*) gdb_target
=i386gnu
;;
2920 i
[3456]86-*-netware*) gdb_target
=i386nw
2921 configdirs
="${configdirs} nlm" ;;
2922 i
[3456]86-*-osf1mk*) gdb_target
=i386mk
;;
2923 i
[3456]86-*-cygwin32) gdb_target
=cygwin32
;;
2924 i960-
*-bout*) gdb_target
=vxworks960
;;
2925 i960-nindy-coff
*) gdb_target
=nindy960
;;
2926 i960-
*-coff*) gdb_target
=mon960
;;
2927 i960-nindy-elf
*) gdb_target
=nindy960
;;
2928 i960-
*-elf*) gdb_target
=mon960
;;
2930 i960-
*-nindy*) gdb_target
=nindy960
;;
2931 i960-
*-vxworks*) gdb_target
=vxworks960
;;
2933 m68000-
*-sunos3*) gdb_target
=sun2os3
;;
2934 m68000-
*-sunos4*) gdb_target
=sun2os4
;;
2936 m68
*-apollo*-bsd*) gdb_target
=apollo68b
;;
2937 m68
*-bull-sysv*) gdb_target
=dpx2
;;
2938 m68
*-hp-bsd*) gdb_target
=hp300bsd
;;
2939 m68
*-hp-hpux*) gdb_target
=hp300hpux
;;
2940 m68
*-altos-*) gdb_target
=altos
;;
2941 m68
*-att-*) gdb_target
=3b1
;;
2942 m68
*-cisco*-*) gdb_target
=cisco
;;
2943 m68
*-ericsson-*) gdb_target
=es1800
;;
2944 m68
*-isi-*) gdb_target
=isi
;;
2945 m68
*-motorola-*) gdb_target
=delta68
;;
2946 m68
*-netx-*) gdb_target
=vxworks68
;;
2947 m68
*-sony-*) gdb_target
=news
;;
2948 m68
*-tandem-*) gdb_target
=st2000
;;
2949 m68
*-rom68k-*) gdb_target
=monitor
;;
2950 m68
*-*bug-
*) gdb_target
=monitor
;;
2951 m68
*-monitor-*) gdb_target
=monitor
;;
2952 m68
*-est-*) gdb_target
=monitor
;;
2953 m68
*-*-aout*) gdb_target
=monitor
;;
2954 m68
*-*-coff*) gdb_target
=monitor
;;
2955 m68
*-*-elf*) gdb_target
=monitor
;;
2956 m68
*-*-lynxos*) gdb_target
=m68klynx
2957 configdirs
="${configdirs} gdbserver" ;;
2958 m68
*-*-netbsd*) gdb_target
=nbsd
;;
2959 m68
*-*-os68k*) gdb_target
=os68k
;;
2960 m68
*-*-sunos3*) gdb_target
=sun3os3
;;
2961 m68
*-*-sunos4*) gdb_target
=sun3os4
;;
2962 m68
*-*-sysv4*) gdb_target
=m68kv4
;;
2963 m68
*-*-vxworks*) gdb_target
=vxworks68
;;
2965 m88
*-harris-cxux*) gdb_target
=cxux
;;
2966 m88
*-motorola-sysv4*) gdb_target
=delta88v4
;;
2967 m88
*-*-mach3*) gdb_target
=mach3
;;
2968 m88
*-motorola-*) gdb_target
=delta88
;;
2969 m88
*-*-*) gdb_target
=m88k
;;
2971 mips64
*-big-*) gdb_target
=bigmips64
;;
2972 mips
*-big-*) gdb_target
=bigmips
;;
2973 mips
*-dec-mach3*) gdb_target
=mach3
;;
2974 mips
*-dec-*) gdb_target
=decstation
;;
2975 mips64
*el-
*-ecoff*) gdb_target
=embedl64
;;
2976 mips64
*-*-ecoff*) gdb_target
=embed64
;;
2977 mips64
*vr4300
*el-
*-elf*) gdb_target
=vr4300el
;;
2978 mips64
*vr4300
*-*-elf*) gdb_target
=vr4300
;;
2979 mips64
*vr4100
*el-
*-elf*) gdb_target
=vr4300el
;;
2980 mips64
*vr4100
*-*-elf*) gdb_target
=vr4300
;;
2981 mips64
*el-
*-elf*) gdb_target
=embedl64
;;
2982 mips64
*-*-elf*) gdb_target
=embed64
;;
2983 mips
*el-
*-ecoff*) gdb_target
=embedl
;;
2984 mips
*-*-ecoff*) gdb_target
=embed
;;
2986 mips
*-*-magic*) gdb_target
=embed
;;
2988 mips
*el-
*-elf*) gdb_target
=embedl
;;
2989 mips
*-*-elf*) gdb_target
=embed
;;
2990 mips
*-little-*) gdb_target
=littlemips
;;
2991 mips
*-sgi-irix5*) gdb_target
=irix5
;;
2992 mips
*-sgi-*) gdb_target
=irix3
;;
2993 mips
*-sony-*) gdb_target
=bigmips
;;
2994 mips
*-*-mach3*) gdb_target
=mach3
;;
2995 mips
*-*-sysv4*) gdb_target
=mipsv4
;;
2996 mips
*-*-sysv*) gdb_target
=bigmips
;;
2997 mips
*-*-riscos*) gdb_target
=bigmips
;;
2998 mips
*-*-vxworks*) gdb_target
=vxmips
;;
3000 none-
*-*) gdb_target
=none
;;
3002 np1-
*-*) gdb_target
=np1
;;
3004 ns32k-
*-mach3*) gdb_target
=mach3
;;
3005 ns32k-
*-netbsd*) gdb_target
=nbsd
;;
3006 ns32k-utek-sysv
*) gdb_target
=merlin
;;
3007 ns32k-utek-
*) gdb_target
=umax
;;
3009 pn-
*-*) gdb_target
=pn
;;
3010 powerpc-
*-macos*) gdb_target
=macos
;;
3011 powerpc-
*-netware*) gdb_target
=ppc-nw
3012 configdirs
="${configdirs} nlm" ;;
3014 powerpc-
*-aix4*) gdb_target
=aix4
;;
3015 powerpc-
*-aix*) gdb_target
=aix
;;
3016 powerpcle-
*-cygwin32) gdb_target
=cygwin32
;;
3017 powerpcle-
*-solaris*) gdb_target
=solaris
;;
3018 powerpc-
*-eabi* | powerpc-
*-linux* | powerpc-
*-sysv* | powerpc-
*-elf*)
3019 if test x
"$powerpc_sim" = x
"yes"; then
3024 powerpcle-
*-eabi* | powerpcle-
*-sysv* | powerpcle-
*-elf*)
3025 if test x
"$powerpc_sim" = x
"yes"; then
3026 gdb_target
=ppcle-sim
3028 gdb_target
=ppcle-eabi
3031 pyramid-
*-*) gdb_target
=pyramid
;;
3033 rs6000-
*-lynxos*) gdb_target
=rs6000lynx
;;
3034 rs6000-
*-aix4*) gdb_target
=aix4
;;
3035 rs6000-
*-*) gdb_target
=rs6000
;;
3037 sparc-
*-aout*) gdb_target
=sparc-em
;;
3038 sparc-
*-coff*) gdb_target
=sparc-em
;;
3039 sparc-
*-elf*) gdb_target
=sparc-em
;;
3040 sparc-
*-lynxos*) gdb_target
=sparclynx
3041 configdirs
="${configdirs} gdbserver" ;;
3042 sparc-
*-netbsd*) gdb_target
=nbsd
;;
3043 sparc-
*-solaris2*) gdb_target
=sun4sol2
;;
3044 sparc-
*-sunos4*) gdb_target
=sun4os4
;;
3045 sparc-
*-sunos5*) gdb_target
=sun4sol2
;;
3046 sparc-
*-vxworks*) gdb_target
=vxsparc
;;
3047 sparc-
*-*) gdb_target
=sun4os4
;;
3048 sparclet-
*-*) gdb_target
=sparclet
;;
3049 sparclite
*-*-*) gdb_target
=sparclite
;;
3050 # It's not clear what the right solution for "v8plus" systems is yet.
3051 # For now, stick with sparc-sun-solaris2 since that's what config.guess
3052 # should return. Work is still needed to get gdb to print the 64 bit
3053 # regs (some of which are usable in v8plus) so sp64sol.mt hasn't been
3054 # deleted though presumably it should be eventually.
3055 #sparc64-*-solaris2*) gdb_target=sp64sol2 ;;
3056 sparc64-
*-*) gdb_target
=sp64
;;
3058 tahoe-
*-*) gdb_target
=tahoe
;;
3060 vax-
*-*) gdb_target
=vax
;;
3062 w65-
*-*) gdb_target
=w65
;;
3064 z8k-
*-coff*) gdb_target
=z8k
;;
3070 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
3071 if test ! -f ${host_makefile_frag}; then
3072 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
3074 frags
="$frags $host_makefile_frag"
3076 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
3077 if test ! -f ${target_makefile_frag}; then
3078 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
3080 frags
="$frags $target_makefile_frag"
3087 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
3088 ' ${host_makefile_frag}`
3090 targetfile
=`sed -n '
3091 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
3092 ' ${target_makefile_frag}`
3094 # these really aren't orthogonal true/false values of the same condition,
3095 # but shells are slow enough that I like to reuse the test conditions
3097 if test "${target}" = "${host}"; then
3098 nativefile
=`sed -n '
3099 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
3100 ' ${host_makefile_frag}`
3102 # GDBserver is only useful in a "native" enviroment
3103 configdirs
=`echo $configdirs | sed 's/gdbserver//'`
3107 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
3108 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
3109 # corresponding links. But we have to remove the xm.h files and tm.h
3110 # files anyway, e.g. when switching from "configure host" to
3116 if test "${hostfile}" != ""; then
3117 files
="${files} config/${gdb_host_cpu}/${hostfile}"
3118 links
="${links} xm.h"
3121 if test "${targetfile}" != ""; then
3122 files
="${files} config/${gdb_target_cpu}/${targetfile}"
3123 links
="${links} tm.h"
3126 if test "${nativefile}" != ""; then
3127 files
="${files} config/${gdb_host_cpu}/${nativefile}"
3128 links
="${links} nm.h"
3130 # A cross-only configuration.
3131 files
="${files} config/nm-empty.h"
3132 links
="${links} nm.h"
3134 # start-sanitize-gdbtk
3136 # Make it possible to use the GUI without doing a full install
3137 if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl
; then
3138 files
="${files} gdbtk.tcl"
3139 links
="${links} gdbtk.tcl"
3141 # end-sanitize-gdbtk
3145 subdirs
="$configdirs"
3148 cat > confcache
<<\EOF
3149 # This file is a shell script that caches the results of configure
3150 # tests run on this system so they can be shared between configure
3151 # scripts and configure runs. It is not useful on other systems.
3152 # If it contains results you don't want to keep, you may remove or edit it.
3154 # By default, configure uses ./config.cache as the cache file,
3155 # creating it if it does not exist already. You can give configure
3156 # the --cache-file=FILE option to use a different cache file; that is
3157 # what configure does when it calls configure scripts in
3158 # subdirectories, so they share the cache.
3159 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3160 # config.status only pays attention to the cache file if you give it the
3161 # --recheck option to rerun configure.
3164 # Ultrix sh set writes to stderr and can't be redirected directly,
3165 # and sets the high bit in the cache file unless we assign to the vars.
3167 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
3169 if cmp -s $cache_file confcache
; then
3172 if test -w $cache_file; then
3173 echo "updating cache $cache_file"
3174 cat confcache
> $cache_file
3176 echo "not updating unwritable cache $cache_file"
3181 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3183 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3184 # Let make expand exec_prefix.
3185 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3187 # Any assignment to VPATH causes Sun make to only execute
3188 # the first set of double-colon rules, so remove it if not needed.
3189 # If there is a colon in the path, we need to keep it.
3190 if test "x$srcdir" = x.
; then
3191 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3194 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3196 DEFS
=-DHAVE_CONFIG_H
3198 # Without the "./", some shells look in PATH for config.status.
3199 : ${CONFIG_STATUS=./config.status}
3201 echo creating
$CONFIG_STATUS
3202 rm -f $CONFIG_STATUS
3203 cat > $CONFIG_STATUS <<EOF
3205 # Generated automatically by configure.
3206 # Run this file to recreate the current configuration.
3207 # This directory was configured as follows,
3208 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3210 # $0 $ac_configure_args
3212 # Compiler output produced by configure, useful for debugging
3213 # configure, is in ./config.log if it exists.
3215 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3218 case "\$ac_option" in
3219 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3220 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3221 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3222 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3223 echo "$CONFIG_STATUS generated by autoconf version 2.10"
3225 -help | --help | --hel | --he | --h)
3226 echo "\$ac_cs_usage"; exit 0 ;;
3227 *) echo "\$ac_cs_usage"; exit 1 ;;
3231 ac_given_srcdir=$srcdir
3232 ac_given_INSTALL="$INSTALL"
3234 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3236 cat >> $CONFIG_STATUS <<EOF
3238 # Protect against being on the right side of a sed subst in config.status.
3239 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3240 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3243 s%@CFLAGS@%$CFLAGS%g
3244 s%@CPPFLAGS@%$CPPFLAGS%g
3245 s%@CXXFLAGS@%$CXXFLAGS%g
3247 s%@LDFLAGS@%$LDFLAGS%g
3249 s%@exec_prefix@%$exec_prefix%g
3250 s%@prefix@%$prefix%g
3251 s%@program_transform_name@%$program_transform_name%g
3252 s%@bindir@%$bindir%g
3253 s%@sbindir@%$sbindir%g
3254 s%@libexecdir@%$libexecdir%g
3255 s%@datadir@%$datadir%g
3256 s%@sysconfdir@%$sysconfdir%g
3257 s%@sharedstatedir@%$sharedstatedir%g
3258 s%@localstatedir@%$localstatedir%g
3259 s%@libdir@%$libdir%g
3260 s%@includedir@%$includedir%g
3261 s%@oldincludedir@%$oldincludedir%g
3262 s%@infodir@%$infodir%g
3263 s%@mandir@%$mandir%g
3267 s%@host_alias@%$host_alias%g
3268 s%@host_cpu@%$host_cpu%g
3269 s%@host_vendor@%$host_vendor%g
3270 s%@host_os@%$host_os%g
3271 s%@target@%$target%g
3272 s%@target_alias@%$target_alias%g
3273 s%@target_cpu@%$target_cpu%g
3274 s%@target_vendor@%$target_vendor%g
3275 s%@target_os@%$target_os%g
3277 s%@build_alias@%$build_alias%g
3278 s%@build_cpu@%$build_cpu%g
3279 s%@build_vendor@%$build_vendor%g
3280 s%@build_os@%$build_os%g
3281 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3282 s%@INSTALL_DATA@%$INSTALL_DATA%g
3284 s%@RANLIB@%$RANLIB%g
3287 s%@THREAD_DB_OBS@%$THREAD_DB_OBS%g
3288 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
3289 s%@TCL_VERSION@%$TCL_VERSION%g
3290 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
3291 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
3292 s%@TCL_CC@%$TCL_CC%g
3293 s%@TCL_DEFS@%$TCL_DEFS%g
3294 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
3295 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
3296 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
3297 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
3298 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
3299 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
3300 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
3301 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
3302 s%@TCL_RANLIB@%$TCL_RANLIB%g
3303 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
3304 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
3305 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
3306 s%@TK_VERSION@%$TK_VERSION%g
3307 s%@TK_DEFS@%$TK_DEFS%g
3308 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
3309 s%@TK_XLIBSW@%$TK_XLIBSW%g
3310 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
3311 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
3312 s%@TCLHDIR@%$TCLHDIR%g
3313 s%@TKHDIR@%$TKHDIR%g
3314 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
3315 s%@X_CFLAGS@%$X_CFLAGS%g
3316 s%@X_LDFLAGS@%$X_LDFLAGS%g
3317 s%@X_LIBS@%$X_LIBS%g
3318 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
3319 s%@ENABLE_CLIBS@%$ENABLE_CLIBS%g
3320 s%@ENABLE_OBS@%$ENABLE_OBS%g
3321 s%@HLDFLAGS@%$HLDFLAGS%g
3322 s%@HLDENV@%$HLDENV%g
3323 s%@target_subdir@%$target_subdir%g
3324 /@host_makefile_frag@/r $host_makefile_frag
3325 s%@host_makefile_frag@%%g
3326 /@target_makefile_frag@/r $target_makefile_frag
3327 s%@target_makefile_frag@%%g
3329 s%@subdirs@%$subdirs%g
3333 cat >> $CONFIG_STATUS <<EOF
3335 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3337 cat >> $CONFIG_STATUS <<\EOF
3338 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3339 # Support "outfile[:infile]", defaulting infile="outfile.in".
3341 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
3342 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3343 *) ac_file_in
="${ac_file}.in" ;;
3346 # Adjust relative srcdir, etc. for subdirectories.
3348 # Remove last slash and all that follows it. Not all systems have dirname.
3349 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3350 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3351 # The file is in a subdirectory.
3352 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3353 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3354 # A "../" for each directory in $ac_dir_suffix.
3355 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3357 ac_dir_suffix
= ac_dots
=
3360 case "$ac_given_srcdir" in
3362 if test -z "$ac_dots"; then top_srcdir
=.
3363 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3364 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3366 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3367 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3370 case "$ac_given_INSTALL" in
3371 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3372 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3374 echo creating
"$ac_file"
3376 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3378 *Makefile
*) ac_comsub
="1i\\
3379 # $configure_input" ;;
3383 s%@configure_input@%$configure_input%g
3384 s%@srcdir@%$srcdir%g
3385 s%@top_srcdir@%$top_srcdir%g
3386 s%@INSTALL@%$INSTALL%g
3387 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
3391 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3392 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3394 # ac_d sets the value in "#define NAME VALUE" lines.
3395 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3396 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3399 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3400 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3401 ac_uB
='\([ ]\)%\1#\2define\3'
3404 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3405 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3406 ac_eB
='$%\1#\2define\3'
3410 CONFIG_HEADERS
=${CONFIG_HEADERS-"config.h:config.in"}
3411 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3412 # Support "outfile[:infile]", defaulting infile="outfile.in".
3414 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
3415 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3416 *) ac_file_in
="${ac_file}.in" ;;
3419 echo creating
$ac_file
3421 rm -f conftest.frag conftest.
in conftest.out
3422 cp $ac_given_srcdir/$ac_file_in conftest.
in
3426 # Transform confdefs.h into a sed script conftest.vals that substitutes
3427 # the proper values into config.h.in to produce config.h. And first:
3428 # Protect against being on the right side of a sed subst in config.status.
3429 # Protect against being in an unquoted here document in config.status.
3431 cat > conftest.hdr
<<\EOF
3434 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3438 sed -n -f conftest.hdr confdefs.h > conftest.vals
3441 # This sed command replaces #undef with comments. This is necessary, for
3442 # example, in the case of _POSIX_SOURCE, which is predefined and required
3443 # on some systems where configure will not decide to define it.
3444 cat >> conftest.vals <<\EOF
3445 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3448 # Break up conftest.vals because some shells have a limit on
3449 # the size of here documents, and old seds have small limits too.
3450 # Maximum number of lines to put in a single here document.
3451 ac_max_here_lines=12
3456 ac_lines=`grep -c . conftest.vals
`
3457 # grep -c gives empty output for an empty file on some AIX systems.
3458 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3459 # Write a limited-size here document to conftest.frag.
3460 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3461 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3463 sed -f conftest.frag conftest.in > conftest.out
3465 mv conftest.out conftest.in
3467 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3469 mv conftest.tail conftest.vals
3473 cat >> $CONFIG_STATUS <<\EOF
3474 rm -f conftest.frag conftest.h
3475 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3476 cat conftest.in >> conftest.h
3478 if cmp -s $ac_file conftest.h 2>/dev/null; then
3479 echo "$ac_file is unchanged"
3482 # Remove last slash and all that follows it. Not all systems have dirname.
3483 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3484 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3485 # The file is in a subdirectory.
3486 test ! -d "$ac_dir" && mkdir "$ac_dir"
3489 mv conftest.h $ac_file
3495 cat >> $CONFIG_STATUS <<EOF
3500 cat >> $CONFIG_STATUS <<\EOF
3501 srcdir=$ac_given_srcdir
3502 while test -n "$ac_sources"; do
3503 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3504 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3506 echo "linking $srcdir/$ac_source to $ac_dest"
3508 if test ! -r $srcdir/$ac_source; then
3509 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3513 # Make relative symlinks.
3514 # Remove last slash and all that follows it. Not all systems have dirname.
3515 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
3516 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3517 # The dest file is in a subdirectory.
3518 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3519 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
3520 # A "../" for each directory in $ac_dest_dir_suffix.
3521 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
3523 ac_dest_dir_suffix= ac_dots=
3527 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3528 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3531 # Make a symlink if possible; otherwise try a hard link.
3532 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3533 ln $srcdir/$ac_source $ac_dest; then :
3535 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3539 cat >> $CONFIG_STATUS <<EOF
3541 gdb_host_cpu=$gdb_host_cpu
3542 gdb_target_cpu=$gdb_target_cpu
3543 nativefile=$nativefile
3546 cat >> $CONFIG_STATUS <<\EOF
3548 if test "${nativefile}" = ""; then
3549 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
3550 < Makefile > Makefile.tem
3551 mv -f Makefile.tem Makefile
3554 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
3555 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
3556 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
3557 mv -f Makefile.tmp Makefile
3563 grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
3564 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3567 case x$CONFIG_HEADERS in
3568 xconfig.h:config.in)
3574 chmod +x $CONFIG_STATUS
3575 rm -fr confdefs* $ac_clean_files
3576 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3578 if test "$no_recursion" != yes; then
3580 # Remove --cache-file and --srcdir arguments so they do not pile up.
3581 ac_sub_configure_args=
3583 for ac_arg in $ac_configure_args; do
3584 if test -n "$ac_prev"; then
3589 -cache-file | --cache-file | --cache-fil | --cache-fi \
3590 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3591 ac_prev=cache_file ;;
3592 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3593 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3595 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3597 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3599 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3603 for ac_config_dir in $configdirs; do
3605 # Do not complain, so a configure script can configure whichever
3606 # parts of a large source tree are present.
3607 if test ! -d $srcdir/$ac_config_dir; then
3611 echo configuring in $ac_config_dir
3616 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3618 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3627 .) # No --srcdir option. We are building in place.
3628 ac_sub_srcdir=$srcdir ;;
3629 /*) # Absolute path.
3630 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3632 ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
3635 # Check for guested configure; otherwise get Cygnus style configure.
3636 if test -f $ac_sub_srcdir/configure; then
3637 ac_sub_configure=$ac_sub_srcdir/configure
3638 elif test -f $ac_sub_srcdir/configure.in; then
3639 ac_sub_configure=$ac_configure
3641 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3645 # The recursion is here.
3646 if test -n "$ac_sub_configure"; then
3648 # Make the cache file name correct relative to the subdirectory.
3649 # A "../" for each directory in /$ac_config_dir.
3650 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3651 case "$cache_file" in
3652 /*) ac_sub_cache_file=$cache_file ;;
3654 ac_sub_cache_file="$ac_dots$cache_file" ;;
3656 case "$ac_given_INSTALL" in
3657 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3658 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3661 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3662 # The eval makes quoting arguments work.
3663 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3666 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }