3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.8
5 # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
19 --enable-sim-powerpc "
23 --with-x use the X Window System"
25 --with-tclinclude directory where tcl private headers are"
27 --with-tcllib directory where the tcl library is"
29 --with-tkinclude directory where the tk private headers are"
31 --with-tklib directory where the tk library is"
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.8"
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
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.
823 # Find a good install program. We prefer a C program (faster),
824 # so one script is as good as another. But avoid the broken or
825 # incompatible versions:
826 # SysV /etc/install, /usr/sbin/install
827 # SunOS /usr/etc/install
830 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
831 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
832 # ./install, which can be erroneously created by make from ./install.sh.
833 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
834 if test -z "$INSTALL"; then
835 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
839 for ac_dir in $PATH; do
840 # Account for people who put trailing slashes in PATH elements.
842 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
844 # OSF1 and SCO ODT 3.0 have their own names for install.
845 for ac_prog in ginstall installbsd scoinst install; do
846 if test -f $ac_dir/$ac_prog; then
847 if test $ac_prog = install &&
848 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
849 # AIX install. It has an incompatible calling convention.
850 # OSF/1 installbsd also uses dspmsg, but is usable.
853 ac_cv_path_install="$ac_dir/$ac_prog -c"
864 if test "${ac_cv_path_install+set}" = set; then
865 INSTALL="$ac_cv_path_install"
867 # As a last resort, use the slow shell script. We don't cache a
868 # path for INSTALL within a source directory, because that will
869 # break other packages using the cache if that directory is
870 # removed, or if the path is relative.
871 INSTALL="$ac_install_sh"
874 echo "$ac_t""$INSTALL" 1>&6
876 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
877 # It thinks the first close brace ends the variable substitution.
878 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
880 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
882 # Extract the first word of "ranlib", so it can be a program name with args.
883 set dummy ranlib; ac_word=$2
884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
885 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
886 echo $ac_n "(cached) $ac_c" 1>&6
888 if test -n "$RANLIB"; then
889 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
892 for ac_dir in $PATH; do
893 test -z "$ac_dir" && ac_dir=.
894 if test -f $ac_dir/$ac_word; then
895 ac_cv_prog_RANLIB="ranlib"
900 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
903 RANLIB="$ac_cv_prog_RANLIB"
904 if test -n "$RANLIB"; then
905 echo "$ac_t""$RANLIB" 1>&6
907 echo "$ac_t""no" 1>&6
910 for ac_prog in 'bison -y' byacc
912 # Extract the first word of "$ac_prog", so it can be a program name with args.
913 set dummy $ac_prog; ac_word=$2
914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
915 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
916 echo $ac_n "(cached) $ac_c" 1>&6
918 if test -n "$YACC"; then
919 ac_cv_prog_YACC="$YACC" # Let the user override the test.
921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
922 for ac_dir in $PATH; do
923 test -z "$ac_dir" && ac_dir=.
924 if test -f $ac_dir/$ac_word; then
925 ac_cv_prog_YACC="$ac_prog"
932 YACC="$ac_cv_prog_YACC"
933 if test -n "$YACC"; then
934 echo "$ac_t""$YACC" 1>&6
936 echo "$ac_t""no" 1>&6
939 test -n "$YACC" && break
941 test -n "$YACC" || YACC="yacc"
945 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
946 if test -f $ac_dir/install-sh; then
948 ac_install_sh="$ac_aux_dir/install-sh -c"
950 elif test -f $ac_dir/install.sh; then
952 ac_install_sh="$ac_aux_dir/install.sh -c"
956 if test -z "$ac_aux_dir"; then
957 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
959 ac_config_guess=$ac_aux_dir/config.guess
960 ac_config_sub=$ac_aux_dir/config.sub
961 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
964 # Do some error checking and defaulting for the host and target type.
966 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
969 # 1. You are not allowed to specify --host, --target, and nonopt at the
971 # 2. Host defaults to nonopt.
972 # 3. If nonopt is not specified, then host defaults to the current host,
973 # as determined by config.guess.
974 # 4. Target and build default to nonopt.
975 # 5. If nonopt is not specified, then target and build default to host.
977 # The aliases save the names the user supplied, while $host etc.
978 # will get canonicalized.
979 case $host---$target---$nonopt in
980 NONE---*---* | *---NONE---* | *---*---NONE) ;;
981 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
985 # Make sure we can run config.sub.
986 if $ac_config_sub sun4 >/dev/null 2>&1; then :
987 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
990 echo $ac_n "checking host system type""... $ac_c" 1>&6
993 case "$host_alias" in
997 if host_alias=`$ac_config_guess`; then :
998 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1000 *) host_alias=$nonopt ;;
1004 host=`$ac_config_sub $host_alias`
1005 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1006 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1007 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1008 echo "$ac_t""$host" 1>&6
1010 echo $ac_n "checking target system type""... $ac_c" 1>&6
1012 target_alias=$target
1013 case "$target_alias" in
1016 NONE) target_alias=$host_alias ;;
1017 *) target_alias=$nonopt ;;
1021 target=`$ac_config_sub $target_alias`
1022 target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1023 target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1024 target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1025 echo "$ac_t""$target" 1>&6
1027 echo $ac_n "checking build system type""... $ac_c" 1>&6
1030 case "$build_alias" in
1033 NONE) build_alias=$host_alias ;;
1034 *) build_alias=$nonopt ;;
1038 build=`$ac_config_sub $build_alias`
1039 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
1040 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
1041 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
1042 echo "$ac_t""$build" 1>&6
1044 test "$host_alias" != "$target_alias" &&
1045 test "$program_prefix$program_suffix$program_transform_name" = \
1047 program_prefix=${target_alias}-
1049 if test "$program_transform_name" = s,x,x,; then
1050 program_transform_name=
1052 # Double any \ or $. echo might interpret backslashes.
1053 cat <<\EOF_SED > conftestsed
1054 s,\\,\\\\,g; s,\$,$$,g
1056 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1059 test "$program_prefix" != NONE &&
1060 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1061 # Use a double $ so make ignores it.
1062 test "$program_suffix" != NONE &&
1063 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1065 # sed with no file args requires a program.
1066 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1069 # If we cannot run a trivial program, we must be cross compiling.
1070 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1071 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 if test "$cross_compiling" = yes; then
1077 cat > conftest.$ac_ext <<EOF
1078 #line 1079 "configure"
1079 #include "confdefs.h"
1082 { (eval echo configure:1083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1083 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1092 echo "$ac_t""$ac_cv_c_cross" 1>&6
1093 cross_compiling=$ac_cv_c_cross
1095 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1096 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1097 echo $ac_n "(cached) $ac_c" 1>&6
1099 cat > conftest.$ac_ext <<EOF
1100 #line 1101 "configure"
1101 #include "confdefs.h"
1107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1108 { (eval echo configure:1109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1109 ac_err=`grep -v '^ *+' conftest.out`
1110 if test -z "$ac_err"; then
1112 ac_cv_header_stdc=yes
1116 ac_cv_header_stdc=no
1120 if test $ac_cv_header_stdc = yes; then
1121 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1122 cat > conftest.$ac_ext <<EOF
1123 #line 1124 "configure"
1124 #include "confdefs.h"
1127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1128 egrep "memchr" >/dev/null 2>&1; then
1132 ac_cv_header_stdc=no
1138 if test $ac_cv_header_stdc = yes; then
1139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1140 cat > conftest.$ac_ext <<EOF
1141 #line 1142 "configure"
1142 #include "confdefs.h"
1145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1146 egrep "free" >/dev/null 2>&1; then
1150 ac_cv_header_stdc=no
1156 if test $ac_cv_header_stdc = yes; then
1157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1158 if test "$cross_compiling" = yes; then
1161 cat > conftest.$ac_ext <<EOF
1162 #line 1163 "configure"
1163 #include "confdefs.h"
1165 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1166 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1167 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1168 int main () { int i; for (i = 0; i < 256; i++)
1169 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1173 { (eval echo configure:1174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1174 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1177 ac_cv_header_stdc=no
1184 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1185 if test $ac_cv_header_stdc = yes; then
1186 cat >> confdefs.h <<\EOF
1187 #define STDC_HEADERS 1
1192 for ac_hdr in limits.h memory.h string.h strings.h unistd.h termios.h termio.h sgtty.h stddef.h sys/procfs.h link.h
1194 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1195 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1196 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1199 cat > conftest.$ac_ext <<EOF
1200 #line 1201 "configure"
1201 #include "confdefs.h"
1204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1205 { (eval echo configure:1206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1206 ac_err=`grep -v '^ *+' conftest.out`
1207 if test -z "$ac_err"; then
1209 eval "ac_cv_header_$ac_safe=yes"
1213 eval "ac_cv_header_$ac_safe=no"
1217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1218 echo "$ac_t""yes" 1>&6
1219 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1220 cat >> confdefs.h <<EOF
1221 #define $ac_tr_hdr 1
1225 echo "$ac_t""no" 1>&6
1229 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1230 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1233 cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1236 #include <sys/types.h>
1237 #include <sys/stat.h>
1239 #if defined(S_ISBLK) && defined(S_IFDIR)
1240 # if S_ISBLK (S_IFDIR)
1245 #if defined(S_ISBLK) && defined(S_IFCHR)
1246 # if S_ISBLK (S_IFCHR)
1251 #if defined(S_ISLNK) && defined(S_IFREG)
1252 # if S_ISLNK (S_IFREG)
1257 #if defined(S_ISSOCK) && defined(S_IFREG)
1258 # if S_ISSOCK (S_IFREG)
1264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1265 egrep "You lose" >/dev/null 2>&1; then
1267 ac_cv_header_stat_broken=yes
1270 ac_cv_header_stat_broken=no
1276 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1277 if test $ac_cv_header_stat_broken = yes; then
1278 cat >> confdefs.h <<\EOF
1279 #define STAT_MACROS_BROKEN 1
1285 echo $ac_n "checking for gregset_t type""... $ac_c" 1>&6
1286 if eval "test \"`echo '$''{'gdb_cv_have_gregset_t'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 cat > conftest.$ac_ext <<EOF
1290 #line 1291 "configure"
1291 #include "confdefs.h"
1292 #include <sys/procfs.h>
1293 int main() { return 0; }
1295 gregset_t *gregsetp = 0
1298 if { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1300 gdb_cv_have_gregset_t=yes
1303 gdb_cv_have_gregset_t=no
1309 echo "$ac_t""$gdb_cv_have_gregset_t" 1>&6
1310 if test $gdb_cv_have_gregset_t = yes; then
1311 cat >> confdefs.h <<\EOF
1312 #define HAVE_GREGSET_T 1
1317 echo $ac_n "checking for fpregset_t type""... $ac_c" 1>&6
1318 if eval "test \"`echo '$''{'gdb_cv_have_fpregset_t'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1321 cat > conftest.$ac_ext <<EOF
1322 #line 1323 "configure"
1323 #include "confdefs.h"
1324 #include <sys/procfs.h>
1325 int main() { return 0; }
1327 fpregset_t *fpregsetp = 0
1330 if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1332 gdb_cv_have_fpregset_t=yes
1335 gdb_cv_have_fpregset_t=no
1341 echo "$ac_t""$gdb_cv_have_fpregset_t" 1>&6
1342 if test $gdb_cv_have_fpregset_t = yes; then
1343 cat >> confdefs.h <<\EOF
1344 #define HAVE_FPREGSET_T 1
1350 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
1351 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 cat > conftest.$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1358 int main() { return 0; }
1363 if { (eval echo configure:1364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1365 ac_cv_c_long_double=yes
1368 ac_cv_c_long_double=no
1374 echo "$ac_t""$ac_cv_c_long_double" 1>&6
1375 if test $ac_cv_c_long_double = yes; then
1376 cat >> confdefs.h <<\EOF
1377 #define HAVE_LONG_DOUBLE 1
1383 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
1384 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
1385 echo $ac_n "(cached) $ac_c" 1>&6
1387 if test "$cross_compiling" = yes; then
1388 gdb_cv_printf_has_long_double=no
1390 cat > conftest.$ac_ext <<EOF
1391 #line 1392 "configure"
1392 #include "confdefs.h"
1396 long double f = 3.141592653;
1397 sprintf (buf, "%Lg", f);
1398 return (strncmp ("3.14159", buf, 7));
1401 { (eval echo configure:1402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1402 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1403 gdb_cv_printf_has_long_double=yes
1405 gdb_cv_printf_has_long_double=no
1411 if test $gdb_cv_printf_has_long_double = yes; then
1412 cat >> confdefs.h <<\EOF
1413 #define PRINTF_HAS_LONG_DOUBLE 1
1417 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
1419 for ac_func in valloc getpagesize
1421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1425 cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1428 /* System header to define __stub macros and hopefully few prototypes,
1429 which can conflict with char $ac_func(); below. */
1431 /* Override any gcc2 internal prototype to avoid an error. */
1434 int main() { return 0; }
1437 /* The GNU C library defines this for functions which it implements
1438 to always fail with ENOSYS. Some functions are actually named
1439 something starting with __ and the normal name is an alias. */
1440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1448 if { (eval echo configure:1449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1450 eval "ac_cv_func_$ac_func=yes"
1453 eval "ac_cv_func_$ac_func=no"
1458 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1459 echo "$ac_t""yes" 1>&6
1460 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1461 cat >> confdefs.h <<EOF
1462 #define $ac_tr_func 1
1466 echo "$ac_t""no" 1>&6
1470 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1471 if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1474 if test "$cross_compiling" = yes; then
1477 cat > conftest.$ac_ext <<EOF
1478 #line 1479 "configure"
1479 #include "confdefs.h"
1481 /* Thanks to Mike Haertel and Jim Avera for this test. */
1482 #include <sys/types.h>
1484 #include <sys/mman.h>
1486 #ifndef HAVE_GETPAGESIZE
1487 # include <sys/param.h>
1488 # ifdef EXEC_PAGESIZE
1489 # define getpagesize() EXEC_PAGESIZE
1492 # define getpagesize() NBPG * CLSIZE
1498 # define getpagesize() NBPC
1500 # define getpagesize() PAGESIZE /* SVR4 */
1507 # define valloc malloc
1511 extern "C" { void *valloc(unsigned), *malloc(unsigned); }
1513 char *valloc(), *malloc();
1519 char *buf1, *buf2, *buf3;
1520 int i = getpagesize(), j;
1524 buf1 = (char *)valloc(i2);
1525 buf2 = (char *)valloc(i);
1526 buf3 = (char *)malloc(i2);
1527 for (j = 0; j < i2; ++j)
1528 *(buf1 + j) = rand();
1529 fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
1530 write(fd, buf1, i2);
1531 mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
1532 for (j = 0; j < i; ++j)
1533 if (*(buf1 + j) != *(buf2 + j))
1535 lseek(fd, (long)i, 0);
1536 read(fd, buf2, i); /* read into mapped memory -- file should not change */
1538 lseek(fd, (long)0, 0);
1540 for (j = 0; j < i2; ++j)
1541 if (*(buf1 + j) != *(buf3 + j))
1547 { (eval echo configure:1548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1548 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1557 echo "$ac_t""$ac_cv_func_mmap" 1>&6
1558 if test $ac_cv_func_mmap = yes; then
1559 cat >> confdefs.h <<\EOF
1570 # Check whether --enable-netrom or --disable-netrom was given.
1571 if test "${enable_netrom+set}" = set; then
1572 enableval="$enable_netrom"
1573 case "${enableval}" in
1574 yes) enable_netrom=yes ;;
1575 no) enable_netrom=no ;;
1576 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
1581 if test "${enable_netrom}" = "yes"; then
1582 ENABLE_OBS="${ENABLE_OBS} remote-nrom.o"
1588 # Check whether --enable-gm or --disable-gm was given.
1589 if test "${enable_gm+set}" = set; then
1590 enableval="$enable_gm"
1591 case "${enableval}" in
1592 yes) ENABLE_OBS="${ENABLE_OBS} gmagic.o"
1593 ENABLE_CFLAGS=-DGENERAL_MAGIC
1596 *) { echo "configure: error: bad value ${enableval} given for gm option" 1>&2; exit 1; } ;;
1603 # Check whether --enable-sim-powerpc or --disable-sim-powerpc was given.
1604 if test "${enable_sim_powerpc+set}" = set; then
1605 enableval="$enable_sim_powerpc"
1606 case "${enableval}" in
1607 yes) powerpc_sim=yes ;;
1608 no) powerpc_sim=no ;;
1609 *) { echo "configure: error: bad value ${enableval} given for sim-powerpc option" 1>&2; exit 1; } ;;
1612 if test x"$GCC" != x""; then powerpc_sim=yes; else powerpc_sim=no; fi
1616 # start-sanitize-gdbtk
1619 # Check whether --enable-gdbtk or --disable-gdbtk was given.
1620 if test "${enable_gdbtk+set}" = set; then
1621 enableval="$enable_gdbtk"
1622 case "${enableval}" in
1626 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
1634 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
1638 # Default is on for everything but go32
1649 if test "${enable_gdbtk}" = "yes"; then
1651 # If we find X, set shell vars x_includes and x_libraries to the
1652 # paths, otherwise set no_x=yes.
1653 # Uses ac_ vars as temps to allow command line to override cache and checks.
1654 # --without-x overrides everything else, but does not touch the cache.
1655 echo $ac_n "checking for X""... $ac_c" 1>&6
1657 # Check whether --with-x or --without-x was given.
1658 if test "${with_x+set}" = set; then
1663 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1664 if test "x$with_x" = xno; then
1665 # The user explicitly disabled X.
1668 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1669 # Both variables are already set.
1672 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1673 echo $ac_n "(cached) $ac_c" 1>&6
1675 # One or both of the vars are not set, and there is no cached value.
1676 ac_x_includes=NO ac_x_libraries=NO
1678 if mkdir conftestdir; then
1680 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1681 cat > Imakefile <<'EOF'
1683 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1685 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1686 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1687 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1688 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1689 for ac_extension in a so sl; do
1690 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1691 test -f $ac_im_libdir/libX11.$ac_extension; then
1692 ac_im_usrlibdir=$ac_im_libdir; break
1695 # Screen out bogus values from the imake configuration.
1696 case "$ac_im_incroot" in
1698 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1700 case "$ac_im_usrlibdir" in
1702 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1709 if test "$ac_x_includes" = NO; then
1710 # Guess where to find include files, by looking for this one X11 .h file.
1711 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1713 # First, try using that file with no special directory specified.
1714 cat > conftest.$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1717 #include <$x_direct_test_include>
1719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1720 { (eval echo configure:1721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1721 ac_err=`grep -v '^ *+' conftest.out`
1722 if test -z "$ac_err"; then
1724 # We can compile using X headers with no special include directory.
1729 # Look for the header file in a standard set of common directories.
1731 /usr/X11R6/include \
1732 /usr/X11R5/include \
1733 /usr/X11R4/include \
1735 /usr/include/X11R6 \
1736 /usr/include/X11R5 \
1737 /usr/include/X11R4 \
1739 /usr/local/X11R6/include \
1740 /usr/local/X11R5/include \
1741 /usr/local/X11R4/include \
1743 /usr/local/include/X11R6 \
1744 /usr/local/include/X11R5 \
1745 /usr/local/include/X11R4 \
1749 /usr/local/X11/include \
1750 /usr/local/include/X11 \
1754 /usr/XFree86/include/X11 \
1757 /usr/local/include \
1758 /usr/unsupported/include \
1759 /usr/athena/include \
1760 /usr/local/x11r5/include \
1761 /usr/lpp/Xamples/include \
1763 /usr/openwin/include \
1764 /usr/openwin/share/include \
1767 if test -r "$ac_dir/$x_direct_test_include"; then
1768 ac_x_includes=$ac_dir
1774 fi # $ac_x_includes = NO
1776 if test "$ac_x_libraries" = NO; then
1777 # Check for the libraries.
1779 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1780 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1782 # See if we find them without any special options.
1783 # Don't add to $LIBS permanently.
1784 ac_save_LIBS="$LIBS"
1785 LIBS="-l$x_direct_test_library $LIBS"
1786 cat > conftest.$ac_ext <<EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1790 int main() { return 0; }
1792 ${x_direct_test_function}()
1795 if { (eval echo configure:1796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1797 LIBS="$ac_save_LIBS"
1798 # We can link X programs with no special library path.
1802 LIBS="$ac_save_LIBS"
1803 # First see if replacing the include by lib works.
1804 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1813 /usr/local/X11R6/lib \
1814 /usr/local/X11R5/lib \
1815 /usr/local/X11R4/lib \
1817 /usr/local/lib/X11R6 \
1818 /usr/local/lib/X11R5 \
1819 /usr/local/lib/X11R4 \
1823 /usr/local/X11/lib \
1824 /usr/local/lib/X11 \
1828 /usr/XFree86/lib/X11 \
1832 /usr/unsupported/lib \
1834 /usr/local/x11r5/lib \
1835 /usr/lpp/Xamples/lib \
1838 /usr/openwin/share/lib \
1841 for ac_extension in a so sl; do
1842 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1843 ac_x_libraries=$ac_dir
1851 fi # $ac_x_libraries = NO
1853 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1854 # Didn't find X anywhere. Cache the known absence of X.
1855 ac_cv_have_x="have_x=no"
1857 # Record where we found X for the cache.
1858 ac_cv_have_x="have_x=yes \
1859 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1863 eval "$ac_cv_have_x"
1866 if test "$have_x" != yes; then
1867 echo "$ac_t""$have_x" 1>&6
1870 # If each of the values was on the command line, it overrides each guess.
1871 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1872 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1873 # Update the cache value to reflect the command line values.
1874 ac_cv_have_x="have_x=yes \
1875 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1876 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1879 if test "$no_x" = yes; then
1880 # Not all programs may use this symbol, but it does not hurt to define it.
1881 X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
1883 if test -n "$x_includes"; then
1884 X_CFLAGS="$X_CFLAGS -I$x_includes"
1887 # It would be nice to have a more robust check for the -R ld option than
1888 # just checking for Solaris.
1889 # It would also be nice to do this for all -L options, not just this one.
1890 if test -n "$x_libraries"; then
1891 X_LIBS="$X_LIBS -L$x_libraries"
1892 if test "`(uname) 2>/dev/null`" = SunOS &&
1893 uname -r | grep '^5' >/dev/null; then
1894 X_LIBS="$X_LIBS -R $x_libraries"
1898 # Check for libraries that X11R6 Xt/Xaw programs need.
1900 ac_save_LDFLAGS="$LDFLAGS"
1901 LDFLAGS="$LDFLAGS -L$x_libraries"
1902 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1903 # check for ICE first), but we must link in the order -lSM -lICE or
1904 # we get undefined symbols. So assume we have SM if we have ICE.
1905 # These have to be linked with before -lX11, unlike the other
1906 # libraries we check for below, so use a different variable.
1908 echo $ac_n "checking for -lICE""... $ac_c" 1>&6
1909 ac_lib_var=`echo ICE_IceConnectionNumber | tr '.-/+' '___p'`
1910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1911 echo $ac_n "(cached) $ac_c" 1>&6
1913 ac_save_LIBS="$LIBS"
1915 cat > conftest.$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1919 int main() { return 0; }
1921 IceConnectionNumber()
1924 if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1926 eval "ac_cv_lib_$ac_lib_var=yes"
1929 eval "ac_cv_lib_$ac_lib_var=no"
1932 LIBS="$ac_save_LIBS"
1935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1936 echo "$ac_t""yes" 1>&6
1937 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1939 echo "$ac_t""no" 1>&6
1942 LDFLAGS="$ac_save_LDFLAGS"
1944 # Check for system-dependent libraries X programs must link with.
1946 if test "$ISC" = yes; then
1947 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1951 # the Alpha needs dnet_stub (dnet does not exist).
1952 echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
1953 ac_lib_var=`echo dnet_dnet_ntoa | tr '.-/+' '___p'`
1954 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 ac_save_LIBS="$LIBS"
1959 cat > conftest.$ac_ext <<EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1963 int main() { return 0; }
1968 if { (eval echo configure:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1970 eval "ac_cv_lib_$ac_lib_var=yes"
1973 eval "ac_cv_lib_$ac_lib_var=no"
1976 LIBS="$ac_save_LIBS"
1979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1980 echo "$ac_t""yes" 1>&6
1981 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1983 echo "$ac_t""no" 1>&6
1986 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1987 echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
1988 ac_lib_var=`echo dnet_stub_dnet_ntoa | tr '.-/+' '___p'`
1989 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1992 ac_save_LIBS="$LIBS"
1993 LIBS="-ldnet_stub $LIBS"
1994 cat > conftest.$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1998 int main() { return 0; }
2003 if { (eval echo configure:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2005 eval "ac_cv_lib_$ac_lib_var=yes"
2008 eval "ac_cv_lib_$ac_lib_var=no"
2011 LIBS="$ac_save_LIBS"
2014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2015 echo "$ac_t""yes" 1>&6
2016 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2018 echo "$ac_t""no" 1>&6
2024 # to get the SysV transport functions.
2025 # Not sure which flavor of 386 UNIX this is, but it seems harmless to
2027 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
2028 ac_lib_var=`echo nsl_t_accept | tr '.-/+' '___p'`
2029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2032 ac_save_LIBS="$LIBS"
2034 cat > conftest.$ac_ext <<EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2038 int main() { return 0; }
2043 if { (eval echo configure:2044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2045 eval "ac_cv_lib_$ac_lib_var=yes"
2048 eval "ac_cv_lib_$ac_lib_var=no"
2051 LIBS="$ac_save_LIBS"
2054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2055 echo "$ac_t""yes" 1>&6
2056 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2058 echo "$ac_t""no" 1>&6
2063 # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
2065 if test "`(uname) 2>/dev/null`" != IRIX; then
2066 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
2067 ac_lib_var=`echo socket_socket | tr '.-/+' '___p'`
2068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2071 ac_save_LIBS="$LIBS"
2072 LIBS="-lsocket $LIBS"
2073 cat > conftest.$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2077 int main() { return 0; }
2082 if { (eval echo configure:2083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2084 eval "ac_cv_lib_$ac_lib_var=yes"
2087 eval "ac_cv_lib_$ac_lib_var=no"
2090 LIBS="$ac_save_LIBS"
2093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2094 echo "$ac_t""yes" 1>&6
2095 X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
2097 echo "$ac_t""no" 1>&6
2108 # Ok, lets find the tcl source trees so we can use the headers
2109 # Warning: transition of version 9 to 10 will break this algorithm
2110 # because 10 sorts before 9. We also look for just tcl. We have to
2111 # be careful that we don't match stuff like tclX by accident.
2112 # the alternative search directory is involked by --with-tclinclude
2115 echo $ac_n "checking for Tcl private headers""... $ac_c" 1>&6
2116 # Check whether --with-tclinclude or --without-tclinclude was given.
2117 if test "${with_tclinclude+set}" = set; then
2118 withval="$with_tclinclude"
2119 with_tclinclude=${withval}
2122 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2126 # first check to see if --with-tclinclude was specified
2127 if test x"${with_tclinclude}" != x ; then
2128 if test -f ${with_tclinclude}/tclInt.h ; then
2129 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
2131 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
2134 # next check in private source directory
2136 # since ls returns lowest version numbers first, reverse its output
2137 if test x"${ac_cv_c_tclh}" = x ; then
2140 `ls -dr ${srcdir}/../tcl[0-9]* 2>/dev/null` \
2141 ${srcdir}/../../tcl \
2142 `ls -dr ${srcdir}/../../tcl[0-9]* 2>/dev/null` \
2143 ${srcdir}/../../../tcl \
2144 `ls -dr ${srcdir}/../../../tcl[0-9]* 2>/dev/null ` ; do
2145 if test -f $i/tclInt.h ; then
2146 ac_cv_c_tclh=`(cd $i; pwd)`
2149 # Tcl 7.5 and greater puts headers in subdirectory.
2150 if test -f $i/generic/tclInt.h ; then
2151 ac_cv_c_tclh=`(cd $i; pwd)`/generic
2155 # finally check in a few common install locations
2157 # since ls returns lowest version numbers first, reverse its output
2158 if test x"${ac_cv_c_tclh}" = x ; then
2160 `ls -dr /usr/local/src/tcl[0-9]* 2>/dev/null` \
2161 `ls -dr /usr/local/lib/tcl[0-9]* 2>/dev/null` \
2162 /usr/local/src/tcl \
2163 /usr/local/lib/tcl \
2164 ${prefix}/include ; do
2165 if test -f $i/tclInt.h ; then
2166 ac_cv_c_tclh=`(cd $i; pwd)`
2171 # see if one is installed
2172 if test x"${ac_cv_c_tclh}" = x ; then
2173 ac_safe=`echo "tclInt.h" | tr './\055' '___'`
2174 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
2175 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2176 echo $ac_n "(cached) $ac_c" 1>&6
2178 cat > conftest.$ac_ext <<EOF
2179 #line 2180 "configure"
2180 #include "confdefs.h"
2183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2184 { (eval echo configure:2185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2185 ac_err=`grep -v '^ *+' conftest.out`
2186 if test -z "$ac_err"; then
2188 eval "ac_cv_header_$ac_safe=yes"
2192 eval "ac_cv_header_$ac_safe=no"
2196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2197 echo "$ac_t""yes" 1>&6
2198 ac_cv_c_tclh=installed
2200 echo "$ac_t""no" 1>&6
2208 if test x"${ac_cv_c_tclh}" = x ; then
2209 TCLHDIR="# no Tcl private headers found"
2210 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
2212 if test x"${ac_cv_c_tclh}" != x ; then
2214 if test x"${ac_cv_c_tkh}" = x"installed" ; then
2215 echo "$ac_t""is installed" 1>&6
2218 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
2219 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
2220 TCLHDIR="-I${ac_cv_c_tclh}"
2224 echo $ac_n "checking Tcl version""... $ac_c" 1>&6
2225 rm -rf tclmajor tclminor
2226 orig_includes="$CPPFLAGS"
2228 if test x"${TCLHDIR}" != x ; then
2229 CPPFLAGS="$CPPFLAGS $TCLHDIR"
2232 if test "$cross_compiling" = yes; then
2233 { echo "configure: error: can't be cross compiled" 1>&2; exit 1; }
2236 cat > conftest.$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2243 FILE *maj = fopen("tclmajor","w");
2244 FILE *min = fopen("tclminor","w");
2245 fprintf(maj,"%d",TCL_MAJOR_VERSION);
2246 fprintf(min,"%d",TCL_MINOR_VERSION);
2252 { (eval echo configure:2253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2253 if test -s conftest && (./conftest; exit) 2>/dev/null; then
2254 tclmajor=`cat tclmajor`
2255 tclminor=`cat tclminor`
2256 tclversion=$tclmajor.$tclminor
2257 echo "$ac_t""$tclversion" 1>&6
2258 rm -f tclmajor tclminor
2261 echo "$ac_t""can't happen" 1>&6
2266 CPPFLAGS="${orig_includes}"
2273 # Ok, lets find the tcl library
2274 # First, look for one uninstalled.
2275 # the alternative search directory is invoked by --with-tcllib
2278 if test $tclmajor -ge 7 -a $tclminor -ge 4 ; then
2279 installedtcllibroot=tcl$tclversion
2281 installedtcllibroot=tcl
2284 if test x"${no_tcl}" = x ; then
2285 # we reset no_tcl incase something fails here
2287 # Check whether --with-tcllib or --without-tcllib was given.
2288 if test "${with_tcllib+set}" = set; then
2289 withval="$with_tcllib"
2290 with_tcllib=${withval}
2293 echo $ac_n "checking for Tcl library""... $ac_c" 1>&6
2294 if eval "test \"`echo '$''{'ac_cv_c_tcllib'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2298 # First check to see if --with-tcllib was specified.
2299 # This requires checking for both the installed and uninstalled name-styles
2300 # since we have no idea if it's installed or not.
2301 if test x"${with_tcllib}" != x ; then
2302 if test -f "${with_tcllib}/lib$installedtcllibroot.so" ; then
2303 ac_cv_c_tcllib=`(cd ${with_tcllib}; pwd)`/lib$installedtcllibroot.so
2304 elif test -f "${with_tcllib}/libtcl.so" ; then
2305 ac_cv_c_tcllib=`(cd ${with_tcllib}; pwd)`/libtcl.so
2306 # then look for a freshly built statically linked library
2307 # if Makefile exists we assume its configured and libtcl will be built first.
2308 elif test -f "${with_tcllib}/lib$installedtcllibroot.a" ; then
2309 ac_cv_c_tcllib=`(cd ${with_tcllib}; pwd)`/lib$installedtcllibroot.a
2310 elif test -f "${with_tcllib}/libtcl.a" ; then
2311 ac_cv_c_tcllib=`(cd ${with_tcllib}; pwd)`/libtcl.a
2313 { echo "configure: error: ${with_tcllib} directory doesn't contain libraries" 1>&2; exit 1; }
2316 # then check for a private Tcl library
2317 # Since these are uninstalled, use the simple lib name root.
2318 if test x"${ac_cv_c_tcllib}" = x ; then
2321 `ls -dr ../tcl[0-9]* 2>/dev/null` \
2323 `ls -dr ../../tcl[0-9]* 2>/dev/null` \
2325 `ls -dr ../../../tcl[0-9]* 2>/dev/null` ; do
2326 # Tcl 7.5 and greater puts library in subdir. Look there first.
2327 if test -f "$i/unix/libtcl.so" ; then
2328 ac_cv_c_tcllib=`(cd $i; pwd)`/unix/libtcl.so
2330 elif test -f "$i/unix/libtcl.a" -o -f "$i/unix/Makefile"; then
2331 ac_cv_c_tcllib=`(cd $i; pwd)`/unix/libtcl.a
2333 # look for a freshly built dynamically linked library
2334 elif test -f "$i/libtcl.so" ; then
2335 ac_cv_c_tcllib=`(cd $i; pwd)`/libtcl.so
2338 # then look for a freshly built statically linked library
2339 # if Makefile exists we assume its configured and libtcl will be
2341 elif test -f "$i/libtcl.a" -o -f "$i/Makefile" ; then
2342 ac_cv_c_tcllib=`(cd $i; pwd)`/libtcl.a
2347 # check in a few common install locations
2348 if test x"${ac_cv_c_tcllib}" = x ; then
2349 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
2350 # first look for a freshly built dynamically linked library
2351 if test -f "$i/lib$installedtcllibroot.so" ; then
2352 ac_cv_c_tcllib=`(cd $i; pwd)`/lib$installedtcllibroot.so
2354 # then look for a freshly built statically linked library
2355 # if Makefile exists we assume its configured and libtcl will be built first.
2356 elif test -f "$i/lib$installedtcllibroot.a" -o -f "$i/Makefile" ; then
2357 ac_cv_c_tcllib=`(cd $i; pwd)`/lib$installedtcllibroot.a
2362 # check in a few other private locations
2363 if test x"${ac_cv_c_tcllib}" = x ; then
2366 `ls -dr ${srcdir}/../tcl[0-9]* 2>/dev/null` ; do
2367 # Tcl 7.5 and greater puts library in subdir. Look there first.
2368 if test -f "$i/unix/libtcl.so" ; then
2369 ac_cv_c_tcllib=`(cd $i; pwd)`/unix/libtcl.so
2371 elif test -f "$i/unix/libtcl.a" -o -f "$i/unix/Makefile"; then
2372 ac_cv_c_tcllib=`(cd $i; pwd)`/unix/libtcl.a
2374 # look for a freshly built dynamically linked library
2375 elif test -f "$i/libtcl.so" ; then
2376 ac_cv_c_tcllib=`(cd $i; pwd)`/libtcl.so
2379 # then look for a freshly built statically linked library
2380 # if Makefile exists we assume its configured and libtcl will be
2382 elif test -f "$i/libtcl.a" -o -f "$i/Makefile" ; then
2383 ac_cv_c_tcllib=`(cd $i; pwd)`/libtcl.a
2389 # see if one is conveniently installed with the compiler
2390 if test x"${ac_cv_c_tcllib}" = x ; then
2392 LIBS="$LIBS -l$installedtcllibroot -lm"
2393 if test "$cross_compiling" = yes; then
2394 ac_cv_c_tclib="-l$installedtcllibroot"
2396 cat > conftest.$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2403 { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2404 if test -s conftest && (./conftest; exit) 2>/dev/null; then
2405 ac_cv_c_tcllib="-l$installedtcllibroot"
2417 if test x"${ac_cv_c_tcllib}" = x ; then
2418 TCLLIB="# no Tcl library found"
2419 echo "configure: warning: Can't find Tcl library" 1>&2
2421 TCLLIB=${ac_cv_c_tcllib}
2422 echo "$ac_t""found $TCLLIB" 1>&6
2434 # Ok, lets find the tk source trees so we can use the headers
2435 # If the directory (presumably symlink) named "tk" exists, use that one
2436 # in preference to any others. Same logic is used when choosing library
2437 # and again with Tcl. The search order is the best place to look first, then in
2438 # decreasing significance. The loop breaks if the trigger file is found.
2439 # Note the gross little conversion here of srcdir by cd'ing to the found
2440 # directory. This converts the path from a relative to an absolute, so
2441 # recursive cache variables for the path will work right. We check all
2442 # the possible paths in one loop rather than many seperate loops to speed
2444 # the alternative search directory is invoked by --with-tkinclude
2446 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
2447 # Check whether --with-tkinclude or --without-tkinclude was given.
2448 if test "${with_tkinclude+set}" = set; then
2449 withval="$with_tkinclude"
2450 with_tkinclude=${withval}
2454 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2458 # first check to see if --with-tkinclude was specified
2459 if test x"${with_tkinclude}" != x ; then
2460 if test -f ${with_tkinclude}/tk.h ; then
2461 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
2463 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
2466 # next check in private source directory
2468 # since ls returns lowest version numbers first, reverse the entire list
2469 # and search for the worst fit, overwriting it with better fits as we find them
2470 if test x"${ac_cv_c_tkh}" = x ; then
2473 `ls -dr ${srcdir}/../tk[0-9]* 2>/dev/null` \
2474 ${srcdir}/../../tk \
2475 `ls -dr ${srcdir}/../../tk[0-9]* 2>/dev/null` \
2476 ${srcdir}/../../../tk \
2477 `ls -dr ${srcdir}/../../../tk[0-9]* 2>/dev/null ` ; do
2478 if test -f $i/tk.h ; then
2479 ac_cv_c_tkh=`(cd $i; pwd)`
2482 # Tk 4.1 and greater puts this in a subdir.
2483 if test -f $i/generic/tk.h; then
2484 ac_cv_c_tkh=`(cd $i; pwd)`/generic
2488 # finally check in a few common install locations
2490 # since ls returns lowest version numbers first, reverse the entire list
2491 # and search for the worst fit, overwriting it with better fits as we find them
2492 if test x"${ac_cv_c_tkh}" = x ; then
2494 `ls -dr /usr/local/src/tk[0-9]* 2>/dev/null` \
2495 `ls -dr /usr/local/lib/tk[0-9]* 2>/dev/null` \
2498 ${prefix}/include ; do
2499 if test -f $i/tk.h ; then
2500 ac_cv_c_tkh=`(cd $i; pwd)`
2505 # see if one is installed
2506 if test x"${ac_cv_c_tkh}" = x ; then
2507 ac_safe=`echo "tk.h" | tr './\055' '___'`
2508 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
2509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2518 { (eval echo configure:2519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2519 ac_err=`grep -v '^ *+' conftest.out`
2520 if test -z "$ac_err"; then
2522 eval "ac_cv_header_$ac_safe=yes"
2526 eval "ac_cv_header_$ac_safe=no"
2530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2531 echo "$ac_t""yes" 1>&6
2532 ac_cv_c_tkh=installed
2534 echo "$ac_t""no" 1>&6
2541 if test x"${ac_cv_c_tkh}" != x ; then
2543 if test x"${ac_cv_c_tkh}" = x"installed" ; then
2544 echo "$ac_t""is installed" 1>&6
2547 echo "$ac_t""found in $ac_cv_c_tkh" 1>&6
2548 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
2549 TKHDIR="-I${ac_cv_c_tkh}"
2552 TKHDIR="# no Tk directory found"
2553 echo "configure: warning: Can't find Tk private headers" 1>&2
2557 # if Tk is installed, extract the major/minor version
2558 if test x"${no_tk}" = x ; then
2559 echo $ac_n "checking Tk version""... $ac_c" 1>&6
2560 rm -rf tkmajor tkminor
2561 orig_includes="$CPPFLAGS"
2563 if test x"${TCLHDIR}" != x ; then
2564 CPPFLAGS="$CPPFLAGS $TCLHDIR"
2566 if test x"${TKHDIR}" != x ; then
2567 CPPFLAGS="$CPPFLAGS $TKHDIR"
2569 if test x"${x_includes}" != x -a x"${x_includes}" != xNONE ; then
2570 CPPFLAGS="$CPPFLAGS -I$x_includes"
2573 if test "$cross_compiling" = yes; then
2574 { echo "configure: error: can't be cross compiled" 1>&2; exit 1; }
2577 cat > conftest.$ac_ext <<EOF
2578 #line 2579 "configure"
2579 #include "confdefs.h"
2584 FILE *maj = fopen("tkmajor","w");
2585 FILE *min = fopen("tkminor","w");
2586 fprintf(maj,"%d",TK_MAJOR_VERSION);
2587 fprintf(min,"%d",TK_MINOR_VERSION);
2593 { (eval echo configure:2594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2594 if test -s conftest && (./conftest; exit) 2>/dev/null; then
2595 tkmajor=`cat tkmajor`
2596 tkminor=`cat tkminor`
2597 tkversion=$tkmajor.$tkminor
2598 echo "$ac_t""$tkversion" 1>&6
2599 rm -f tkmajor tkminor
2602 { echo "configure: error:
2603 cannot compile a simple X program - suspect your xmkmf is
2604 misconfigured and is incorrectly reporting the location of your X
2605 include or libraries - report this to your system admin" 1>&2; exit 1; }
2609 CPPFLAGS="${orig_includes}"
2618 # Ok, lets find the tk library
2619 # First, look for the latest private (uninstalled) copy
2620 # Notice that the destinations in backwards priority since the tests have
2622 # Then we look for either .a, .so, or Makefile. A Makefile is acceptable
2623 # is it indicates the target has been configured and will (probably)
2624 # soon be built. This allows an entire tree of Tcl software to be
2625 # configured at once and then built.
2626 # the alternative search directory is invoked by --with-tklib
2629 if test x"${no_tk}" = x ; then
2630 # reset no_tk incase something fails here
2633 if test $tkmajor -ge 4 ; then
2634 installedtklibroot=tk$tkversion
2636 installedtkllibroot=tk
2639 # Check whether --with-tklib or --without-tklib was given.
2640 if test "${with_tklib+set}" = set; then
2641 withval="$with_tklib"
2642 with_tklib=${withval}
2645 echo $ac_n "checking for Tk library""... $ac_c" 1>&6
2646 if eval "test \"`echo '$''{'ac_cv_c_tklib'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2650 # first check to see if --with-tklib was specified
2651 # This requires checking for both the installed and uninstalled name-styles
2652 # since we have no idea if it's installed or not.
2653 if test x"${with_tklib}" != x ; then
2654 if test -f "${with_tklib}/lib$installedtklibroot.so" ; then
2655 ac_cv_c_tklib=`(cd ${with_tklib}; pwd)`/lib$installedtklibroot.so
2657 elif test -f "${with_tklib}/libtk.so" ; then
2658 ac_cv_c_tklib=`(cd ${with_tklib}; pwd)`/libtk.so
2660 # then look for a freshly built statically linked library
2661 # if Makefile exists we assume its configured and libtk will be built
2662 elif test -f "${with_tklib}/lib$installedtklibroot.a" ; then
2663 ac_cv_c_tklib=`(cd ${with_tklib}; pwd)`/lib$installedtklibroot.a
2665 elif test -f "${with_tklib}/libtk.a" ; then
2666 ac_cv_c_tklib=`(cd ${with_tklib}; pwd)`/libtk.a
2669 { echo "configure: error: ${with_tklib} directory doesn't contain libraries" 1>&2; exit 1; }
2672 # then check for a private Tk library
2673 # Since these are uninstalled, use the simple lib name root.
2674 if test x"${ac_cv_c_tklib}" = x ; then
2677 `ls -dr ../tk[0-9]* 2>/dev/null` \
2679 `ls -dr ../../tk[0-9]* 2>/dev/null` \
2681 `ls -dr ../../../tk[0-9]* 2>/dev/null` ; do
2682 # Tk 4.1 and greater puts things in subdirs. Check these first.
2683 if test -f "$i/unix/libtk.so" ; then
2684 ac_cv_c_tklib=`(cd $i; pwd)`/unix/libtk.so
2687 elif test -f "$i/unix/libtk.a" -o -f "$i/unix/Makefile"; then
2688 ac_cv_c_tklib=`(cd $i; pwd)`/unix/libtk.a
2691 # look for a freshly built dynamically linked library
2692 elif test -f "$i/libtk.so" ; then
2693 ac_cv_c_tklib=`(cd $i; pwd)`/libtk.so
2696 # then look for a freshly built statically linked library
2697 # if Makefile exists we assume its configured and libtk will be built
2698 elif test -f "$i/libtk.a" -o -f "$i/Makefile" ; then
2699 ac_cv_c_tklib=`(cd $i; pwd)`/libtk.a
2705 # finally check in a few common install locations
2706 if test x"${ac_cv_c_tklib}" = x ; then
2707 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
2708 # first look for a freshly built dynamically linked library
2709 if test -f "$i/lib$installedtklibroot.so" ; then
2710 ac_cv_c_tklib=`(cd $i; pwd)`/lib$installedtklibroot.so
2713 # then look for a freshly built statically linked library
2714 # if Makefile exists, we assume it's configured and libtcl will be built
2715 elif test -f "$i/lib$installedtklibroot.a" -o -f "$i/Makefile" ; then
2716 ac_cv_c_tklib=`(cd $i; pwd)`/lib$installedtklibroot.a
2722 # check in a few other private locations
2723 if test x"${ac_cv_c_tklib}" = x ; then
2726 `ls -dr ${srcdir}/../tk[0-9]* 2>/dev/null` ; do
2727 # Tk 4.1 and greater puts things in subdirs. Check these first.
2728 if test -f "$i/unix/libtk.so" ; then
2729 ac_cv_c_tklib=`(cd $i; pwd)`/unix/libtk.so
2732 elif test -f "$i/unix/libtk.a" -o -f "$i/unix/Makefile"; then
2733 ac_cv_c_tcllib=`(cd $i; pwd)`/unix/libtk.a
2736 # look for a freshly built dynamically linked library
2737 elif test -f "$i/libtk.so" ; then
2738 ac_cv_c_tklib=`(cd $i; pwd)`/libtk.so
2741 # then look for a freshly built statically linked library
2742 # if Makefile exists, we assume it's configured and libtcl will be built
2743 elif test -f "$i/libtk.a" -o -f "$i/Makefile" ; then
2744 ac_cv_c_tklib=`(cd $i; pwd)`/libtk.a
2750 # see if one is conveniently installed with the compiler
2751 if test x"${ac_cv_c_tklib}" = x ; then
2754 LIBS="$LIBS -l$installedtklibroot $x_libraries $ac_cv_c_tcllib -lm"
2755 if test "$cross_compiling" = yes; then
2756 ac_cv_c_tklib="-l$installedtklibroot"
2758 cat > conftest.$ac_ext <<EOF
2759 #line 2760 "configure"
2760 #include "confdefs.h"
2765 { (eval echo configure:2766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2766 if test -s conftest && (./conftest; exit) 2>/dev/null; then
2767 ac_cv_c_tklib="-l$installedtklibroot"
2779 if test x"${ac_cv_c_tklib}" = x ; then
2780 TKLIB="# no Tk library found"
2781 echo "configure: warning: Can't find Tk library" 1>&2
2783 TKLIB=$ac_cv_c_tklib
2784 echo "$ac_t""found $TKLIB" 1>&6
2793 # Look for dynamic linking libraries that Tcl might need. This is
2794 # only done for Tcl 7.5 and greater. It would be good to look for and
2795 # use the "configInfo" file that Tcl generates, but for now that is
2797 if test $tclmajor -ge 7 -a $tclminor -ge 5 ; then
2798 echo $ac_n "checking for -ldl""... $ac_c" 1>&6
2799 ac_lib_var=`echo dl_main | tr '.-/+' '___p'`
2800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 ac_save_LIBS="$LIBS"
2805 cat > conftest.$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2809 int main() { return 0; }
2814 if { (eval echo configure:2815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2816 eval "ac_cv_lib_$ac_lib_var=yes"
2819 eval "ac_cv_lib_$ac_lib_var=no"
2822 LIBS="$ac_save_LIBS"
2825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2826 echo "$ac_t""yes" 1>&6
2827 ac_tr_lib=HAVE_LIB`echo dl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2828 cat >> confdefs.h <<EOF
2829 #define $ac_tr_lib 1
2835 echo "$ac_t""no" 1>&6
2836 echo $ac_n "checking for -ldld""... $ac_c" 1>&6
2837 ac_lib_var=`echo dld_main | tr '.-/+' '___p'`
2838 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2839 echo $ac_n "(cached) $ac_c" 1>&6
2841 ac_save_LIBS="$LIBS"
2843 cat > conftest.$ac_ext <<EOF
2844 #line 2845 "configure"
2845 #include "confdefs.h"
2847 int main() { return 0; }
2852 if { (eval echo configure:2853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2854 eval "ac_cv_lib_$ac_lib_var=yes"
2857 eval "ac_cv_lib_$ac_lib_var=no"
2860 LIBS="$ac_save_LIBS"
2863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2864 echo "$ac_t""yes" 1>&6
2865 ac_tr_lib=HAVE_LIB`echo dld | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2866 cat >> confdefs.h <<EOF
2867 #define $ac_tr_lib 1
2873 echo "$ac_t""no" 1>&6
2882 if test "x$no_x" != "xyes"; then
2883 if test "x$x_includes" != "x" ;
2885 X_CFLAGS="-I$x_includes"
2890 if test "x$x_libraries" != "x" ;
2892 X_LDFLAGS="-L$x_libraries"
2899 # gdb linked statically w/ Solaris iff GCC is used, otherwise dynamic
2901 sparc*-sun-solaris2*)
2902 if test "x$GCC" = "xyes";
2904 X_LIBS="-Wl,-Bstatic -lX11 -lXext -lX11 -Wl,-Bdynamic -ldl -lw"
2906 if test "x$x_libraries" != "x" ;
2908 X_LDFLAGS="$X_LDFLAGS -R$x_libraries"
2910 X_LIBS="-lX11 -lXext -lX11"
2913 # gdb linked statically w/ SunOS or HPUX
2915 m68k-hp-hpux*|hppa*-hp-hpux*|sparc-sun-sunos*)
2916 if test "x$x_libraries" != "x" ;
2918 X_LIBS="$x_libraries/libX11.a"
2920 X_LIBS="/usr/lib/libX11.a"
2923 # default is to link dynamically
2932 echo "configure: warning: No X based programs will be built" 1>&2
2935 TCL_LIBS='$(TCL) $(TK) $(X11_LDFLAGS) $(X11_LIBS)'
2936 ENABLE_CLIBS="${ENABLE_CLIBS} ${TCL_LIBS} -lm"
2937 ENABLE_OBS="${ENABLE_OBS} gdbtk.o"
2944 # end-sanitize-gdbtk
2950 # target_subdir is used by the testsuite to find the target libraries.
2952 if test "${host}" != "${target}"; then
2953 target_subdir="${target_alias}/"
2957 configdirs="doc testsuite"
2960 # Map host cpu into the config cpu subdirectory name.
2961 # The default is $host_cpu.
2963 case "${host_cpu}" in
2965 c[12]) gdb_host_cpu=convex ;;
2966 hppa*) gdb_host_cpu=pa ;;
2967 i[3456]86) gdb_host_cpu=i386 ;;
2968 m68*) gdb_host_cpu=m68k ;;
2969 m88*) gdb_host_cpu=m88k ;;
2970 np1) gdb_host_cpu=gould ;;
2971 pyramid) gdb_host_cpu=pyr ;;
2972 powerpc*) gdb_host_cpu=powerpc ;;
2973 sparc64) gdb_host_cpu=sparc ;;
2974 *) gdb_host_cpu=$host_cpu ;;
2978 # map host info into gdb names.
2982 a29k-*-*) gdb_host=ultra3 ;;
2984 alpha-*-osf1*) gdb_host=alpha-osf1 ;;
2985 alpha-*-osf2*) gdb_host=alpha-osf2 ;;
2986 alpha-*-osf[3456789]*) gdb_host=alpha-osf3 ;;
2988 arm-*-*) gdb_host=arm ;;
2990 c[12]-*-*) gdb_host=convex ;;
2992 hppa*-*-bsd*) gdb_host=hppabsd ;;
2993 hppa*-*-hiux*) gdb_host=hppahpux ;;
2994 hppa*-*-hpux*) gdb_host=hppahpux ;;
2995 hppa*-*-osf*) gdb_host=hppaosf ;;
2997 i[3456]86-ncr-*) gdb_host=ncr3000 ;;
2998 i[3456]86-sequent-bsd*) gdb_host=symmetry ;; # dynix
2999 i[3456]86-sequent-sysv4*) gdb_host=ptx4 ;;
3000 i[3456]86-sequent-sysv*) gdb_host=ptx ;;
3001 i[3456]86-*-aix*) gdb_host=i386aix ;;
3002 i[3456]86-*-bsd*) gdb_host=i386bsd ;;
3003 i[3456]86-*-dgux*) gdb_host=i386dgux ;;
3004 i[3456]86-*-freebsd*) gdb_host=fbsd ;;
3005 i[3456]86-*-netbsd*) gdb_host=nbsd ;;
3006 i[3456]86-*-go32*) gdb_host=go32 ;;
3007 i[3456]86-*-linux*) gdb_host=linux ;;
3008 i[3456]86-*-lynxos*) gdb_host=i386lynx ;;
3009 i[3456]86-*-mach3*) gdb_host=i386m3 ;;
3010 i[3456]86-*-mach*) gdb_host=i386mach ;;
3011 i[3456]86-*-osf1mk*) gdb_host=osf1mk ;;
3012 i[3456]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
3013 i[3456]86-*-sco*) gdb_host=i386sco ;;
3014 i[3456]86-*-solaris*) gdb_host=i386sol2 ;;
3015 i[3456]86-*-sunos*) gdb_host=sun386 ;;
3016 i[3456]86-*-sysv3.2*) gdb_host=i386v32 ;;
3017 i[3456]86-*-sysv32*) gdb_host=i386v32 ;;
3018 i[3456]86-*-sysv4*) gdb_host=i386v4 ;;
3019 i[3456]86-*-unixware) gdb_host=i386v4 ;;
3020 i[3456]86-*-sysv*) gdb_host=i386v ;;
3021 i[3456]86-*-isc*) gdb_host=i386v32 ;;
3022 i[3456]86-*-os9k) gdb_host=i386os9k ;;
3023 i[3456]86-*-cygwin32) gdb_host=cygwin32 ;;
3024 m680[01]0-sun-sunos3*) gdb_host=sun2os3 ;;
3025 m680[01]0-sun-sunos4*) gdb_host=sun2os4 ;;
3026 m68030-sony-*) gdb_host=news1000 ;;
3028 m68*-altos-*) gdb_host=altos ;;
3029 m68*-apollo*-sysv*) gdb_host=apollo68v ;;
3030 m68*-apollo*-bsd*) gdb_host=apollo68b ;;
3031 m68*-att-*) gdb_host=3b1 ;;
3032 m68*-bull*-sysv*) gdb_host=dpx2 ;;
3033 m68*-hp-bsd*) gdb_host=hp300bsd ;;
3034 m68*-hp-hpux*) gdb_host=hp300hpux ;;
3035 m68*-isi-*) gdb_host=isi ;;
3036 m68*-*-lynxos*) gdb_host=m68klynx ;;
3037 m68*-*-netbsd*) gdb_host=nbsd ;;
3038 m68*-*-sysv4*) gdb_host=m68kv4 ;;
3039 m68*-motorola-*) gdb_host=delta68 ;;
3040 m68*-sony-*) gdb_host=news ;;
3041 m68*-sun-sunos3*) gdb_host=sun3os3 ;;
3042 m68*-sun-sunos4*) gdb_host=sun3os4 ;;
3043 m68*-sun-*) gdb_host=sun3os4 ;;
3045 m88*-harris-cxux*) gdb_host=cxux ;;
3046 m88*-motorola-sysv4*) gdb_host=delta88v4 ;;
3047 m88*-motorola-sysv*) gdb_host=delta88 ;;
3048 m88*-*-mach3*) gdb_host=mach3 ;;
3049 m88*-*-*) gdb_host=m88k ;;
3051 mips-dec-mach3*) gdb_host=mach3 ;;
3052 mips-dec-*) gdb_host=decstation ;;
3053 mips-little-*) gdb_host=littlemips ;;
3054 mips-sgi-irix3*) gdb_host=irix3 ;;
3055 mips-sgi-irix4*) gdb_host=irix4 ;;
3056 mips-sgi-irix5*) gdb_host=irix5 ;;
3057 mips-sony-*) gdb_host=news-mips ;;
3058 mips-*-mach3*) gdb_host=mach3 ;;
3059 mips-*-sysv4*) gdb_host=mipsv4 ;;
3060 mips-*-sysv*) gdb_host=riscos ;;
3061 mips-*-riscos*) gdb_host=riscos ;;
3063 none-*-*) gdb_host=none ;;
3065 np1-*-*) gdb_host=np1 ;;
3067 ns32k-*-mach3*) gdb_host=mach3 ;;
3068 ns32k-*-netbsd*) gdb_host=nbsd ;;
3069 ns32k-umax-*) gdb_host=umax ;;
3070 ns32k-utek-sysv*) gdb_host=merlin ;;
3072 powerpc-*-aix*) gdb_host=aix ;;
3073 powerpcle-*-cygwin32) gdb_host=cygwin32 ;;
3074 pn-*-*) gdb_host=pn ;;
3076 pyramid-*-*) gdb_host=pyramid ;;
3078 romp-*-*) gdb_host=rtbsd ;;
3080 rs6000-*-lynxos*) gdb_host=rs6000lynx ;;
3081 rs6000-*-aix4*) gdb_host=aix4 ;;
3082 rs6000-*-*) gdb_host=rs6000 ;;
3084 sparc-*-lynxos*) gdb_host=sparclynx ;;
3085 sparc-*-netbsd*) gdb_host=nbsd ;;
3086 sparc-*-solaris2*) gdb_host=sun4sol2 ;;
3087 sparc-*-sunos4*) gdb_host=sun4os4 ;;
3088 sparc-*-sunos5*) gdb_host=sun4sol2 ;;
3089 sparc-*-*) gdb_host=sun4os4 ;;
3090 sparc64-*-*) gdb_host=sun4sol2 ;;
3092 tahoe-*-*) gdb_host=tahoe ;;
3094 vax-*-bsd*) gdb_host=vaxbsd ;;
3095 vax-*-ultrix2*) gdb_host=vaxult2 ;;
3096 vax-*-ultrix*) gdb_host=vaxult ;;
3098 w65-*-*) gdb_host=w65 ;;
3103 # Map target cpu into the config cpu subdirectory name.
3104 # The default is $target_cpu.
3106 case "${target_cpu}" in
3108 alpha) gdb_target_cpu=alpha ;;
3109 c[12]) gdb_target_cpu=convex ;;
3110 hppa*) gdb_target_cpu=pa ;;
3111 i[3456]86) gdb_target_cpu=i386 ;;
3112 m68*) gdb_target_cpu=m68k ;;
3113 m88*) gdb_target_cpu=m88k ;;
3114 mips*) gdb_target_cpu=mips ;;
3115 np1) gdb_target_cpu=gould ;;
3116 powerpc*) gdb_target_cpu=powerpc ;;
3117 pn) gdb_target_cpu=gould ;;
3118 pyramid) gdb_target_cpu=pyr ;;
3119 sparc*) gdb_target_cpu=sparc ;;
3120 *) gdb_target_cpu=$target_cpu ;;
3124 # map target info into gdb names.
3128 a29k-*-aout*) gdb_target=a29k ;;
3129 a29k-*-coff*) gdb_target=a29k ;;
3130 a29k-*-elf*) gdb_target=a29k ;;
3131 a29k-*-ebmon*) gdb_target=a29k ;;
3132 a29k-*-kern*) gdb_target=a29k-kern ;;
3133 a29k-*-none*) gdb_target=a29k ;;
3134 a29k-*-sym1*) gdb_target=ultra3 ;;
3135 a29k-*-udi*) gdb_target=a29k-udi ;;
3136 a29k-*-vxworks*) gdb_target=vx29k ;;
3138 alpha-*-osf*) gdb_target=alpha-osf1 ;;
3140 # start-sanitize-arc
3141 arc-*-*) gdb_target=arc ;;
3144 arm-*-*) gdb_target=arm ;;
3146 c1-*-*) gdb_target=convex ;;
3147 c2-*-*) gdb_target=convex ;;
3149 h8300-*-*) gdb_target=h8300 ;;
3150 h8500-*-*) gdb_target=h8500 ;;
3152 sh-*-*) gdb_target=sh ;;
3154 # start-sanitize-r16
3155 r16-*-*) gdb_target=r16 ;;
3158 hppa*-*-bsd*) gdb_target=hppabsd ;;
3159 hppa*-*-pro*) gdb_target=hppapro ;;
3160 hppa*-*-hpux*) gdb_target=hppahpux ;;
3161 hppa*-*-hiux*) gdb_target=hppahpux ;;
3162 hppa*-*-osf*) gdb_target=hppaosf ;;
3164 i[3456]86-sequent-bsd*) gdb_target=symmetry ;;
3165 i[3456]86-sequent-sysv4*) gdb_target=ptx4 ;;
3166 i[3456]86-sequent-sysv*) gdb_target=ptx ;;
3167 i[3456]86-ncr-*) gdb_target=ncr3000 ;;
3168 i[3456]86-*-aout*) gdb_target=i386aout ;;
3169 i[3456]86-*-coff*) gdb_target=i386v ;;
3170 i[3456]86-*-elf*) gdb_target=i386v ;;
3171 i[3456]86-*-aix*) gdb_target=i386aix ;;
3172 i[3456]86-*-bsd*) gdb_target=i386bsd ;;
3173 i[3456]86-*-freebsd*) gdb_target=fbsd ;;
3174 i[3456]86-*-netbsd*) gdb_target=nbsd ;;
3175 i[3456]86-*-os9k) gdb_target=i386os9k ;;
3176 i[3456]86-*-go32*) gdb_target=i386aout ;;
3177 i[3456]86-*-lynxos*) gdb_target=i386lynx
3178 configdirs="${configdirs} gdbserver" ;;
3179 i[3456]86-*-solaris*) gdb_target=i386sol2 ;;
3180 i[3456]86-*-sunos*) gdb_target=sun386 ;;
3181 i[3456]86-*-sysv4*) gdb_target=i386v4 ;;
3182 i[3456]86-*-sco*) gdb_target=i386v ;;
3183 i[3456]86-*-sysv*) gdb_target=i386v ;;
3184 i[3456]86-*-linux*) gdb_target=linux
3185 configdirs="${configdirs} gdbserver" ;;
3186 i[3456]86-*-isc*) gdb_target=i386v ;;
3187 i[3456]86-*-mach3*) gdb_target=i386m3 ;;
3188 i[3456]86-*-mach*) gdb_target=i386mach ;;
3189 i[3456]86-*-netware*) gdb_target=i386nw
3190 configdirs="${configdirs} nlm" ;;
3191 i[3456]86-*-osf1mk*) gdb_target=i386mk ;;
3192 i[3456]86-*-cygwin32) gdb_target=cygwin32 ;;
3193 i960-*-bout*) gdb_target=vxworks960 ;;
3194 i960-nindy-coff*) gdb_target=nindy960 ;;
3195 i960-*-coff*) gdb_target=mon960 ;;
3196 i960-nindy-elf*) gdb_target=nindy960 ;;
3197 i960-*-elf*) gdb_target=mon960 ;;
3199 i960-*-nindy*) gdb_target=nindy960 ;;
3200 i960-*-vxworks*) gdb_target=vxworks960 ;;
3202 m68000-*-sunos3*) gdb_target=sun2os3 ;;
3203 m68000-*-sunos4*) gdb_target=sun2os4 ;;
3205 m68*-apollo*-bsd*) gdb_target=apollo68b ;;
3206 m68*-bull-sysv*) gdb_target=dpx2 ;;
3207 m68*-hp-bsd*) gdb_target=hp300bsd ;;
3208 m68*-hp-hpux*) gdb_target=hp300hpux ;;
3209 m68*-altos-*) gdb_target=altos ;;
3210 m68*-att-*) gdb_target=3b1 ;;
3211 m68*-cisco*-*) gdb_target=cisco ;;
3212 m68*-ericsson-*) gdb_target=es1800 ;;
3213 m68*-isi-*) gdb_target=isi ;;
3214 m68*-motorola-*) gdb_target=delta68 ;;
3215 m68*-netx-*) gdb_target=vxworks68 ;;
3216 m68*-sony-*) gdb_target=news ;;
3217 m68*-tandem-*) gdb_target=st2000 ;;
3218 m68*-rom68k-*) gdb_target=monitor ;;
3219 m68*-*bug-*) gdb_target=monitor ;;
3220 m68*-monitor-*) gdb_target=monitor ;;
3221 m68*-est-*) gdb_target=monitor ;;
3222 m68*-*-aout*) gdb_target=monitor ;;
3223 m68*-*-coff*) gdb_target=monitor ;;
3224 m68*-*-elf*) gdb_target=monitor ;;
3225 m68*-*-lynxos*) gdb_target=m68klynx
3226 configdirs="${configdirs} gdbserver" ;;
3227 m68*-*-netbsd*) gdb_target=nbsd ;;
3228 m68*-*-os68k*) gdb_target=os68k ;;
3229 m68*-*-sunos3*) gdb_target=sun3os3 ;;
3230 m68*-*-sunos4*) gdb_target=sun3os4 ;;
3231 m68*-*-sysv4*) gdb_target=m68kv4 ;;
3232 m68*-*-vxworks*) gdb_target=vxworks68 ;;
3234 m88*-harris-cxux*) gdb_target=cxux ;;
3235 m88*-motorola-sysv4*) gdb_target=delta88v4 ;;
3236 m88*-*-mach3*) gdb_target=mach3 ;;
3237 m88*-motorola-*) gdb_target=delta88 ;;
3238 m88*-*-*) gdb_target=m88k ;;
3240 mips64*-big-*) gdb_target=bigmips64 ;;
3241 mips*-big-*) gdb_target=bigmips ;;
3242 mips*-dec-mach3*) gdb_target=mach3 ;;
3243 mips*-dec-*) gdb_target=decstation ;;
3244 mips64*el-*-ecoff*) gdb_target=embedl64 ;;
3245 mips64*-*-ecoff*) gdb_target=embed64 ;;
3246 mips64*vr4300*el-*-elf*) gdb_target=vr4300el ;;
3247 mips64*vr4300*-*-elf*) gdb_target=vr4300 ;;
3248 mips64*el-*-elf*) gdb_target=embedl64 ;;
3249 mips64*-*-elf*) gdb_target=embed64 ;;
3250 mips*el-*-ecoff*) gdb_target=embedl ;;
3251 mips*-*-ecoff*) gdb_target=embed ;;
3253 mips*-*-magic*) gdb_target=embed ;;
3255 mips*el-*-elf*) gdb_target=embedl ;;
3256 mips*-*-elf*) gdb_target=embed ;;
3257 mips*-little-*) gdb_target=littlemips ;;
3258 mips*-sgi-irix5*) gdb_target=irix5 ;;
3259 mips*-sgi-*) gdb_target=irix3 ;;
3260 mips*-sony-*) gdb_target=bigmips ;;
3261 mips*-*-mach3*) gdb_target=mach3 ;;
3262 mips*-*-sysv4*) gdb_target=mipsv4 ;;
3263 mips*-*-sysv*) gdb_target=bigmips ;;
3264 mips*-*-riscos*) gdb_target=bigmips ;;
3265 mips*-*-vxworks*) gdb_target=vxmips ;;
3267 none-*-*) gdb_target=none ;;
3269 np1-*-*) gdb_target=np1 ;;
3271 ns32k-*-mach3*) gdb_target=mach3 ;;
3272 ns32k-*-netbsd*) gdb_target=nbsd ;;
3273 ns32k-utek-sysv*) gdb_target=merlin ;;
3274 ns32k-utek-*) gdb_target=umax ;;
3276 pn-*-*) gdb_target=pn ;;
3277 powerpc-*-macos*) gdb_target=macos ;;
3278 powerpc-*-netware*) gdb_target=ppc-nw
3279 configdirs="${configdirs} nlm" ;;
3281 powerpc-*-aix4*) gdb_target=aix4 ;;
3282 powerpc-*-aix*) gdb_target=aix ;;
3283 powerpcle-*-cygwin32) gdb_target=cygwin32 ;;
3284 powerpc-*-eabi*) if test x"$powerpc_sim" = x"yes"; then
3289 powerpcle-*-eabi*) if test x"$powerpc_sim" = x"yes"; then
3290 gdb_target=ppcle-sim
3292 gdb_target=ppcle-eabi
3295 pyramid-*-*) gdb_target=pyramid ;;
3297 rs6000-*-lynxos*) gdb_target=rs6000lynx ;;
3298 rs6000-*-aix4*) gdb_target=aix4 ;;
3299 rs6000-*-*) gdb_target=rs6000 ;;
3301 sparc-*-aout*) gdb_target=sparc-em ;;
3302 sparc-*-coff*) gdb_target=sparc-em ;;
3303 sparc-*-elf*) gdb_target=sparc-em ;;
3304 sparc-*-lynxos*) gdb_target=sparclynx
3305 configdirs="${configdirs} gdbserver" ;;
3306 sparc-*-netbsd*) gdb_target=nbsd ;;
3307 sparc-*-solaris2*) gdb_target=sun4sol2 ;;
3308 sparc-*-sunos4*) gdb_target=sun4os4 ;;
3309 sparc-*-sunos5*) gdb_target=sun4sol2 ;;
3310 sparc-*-vxworks*) gdb_target=vxsparc ;;
3311 sparc-*-*) gdb_target=sun4os4 ;;
3312 # Use sparc-em for sparclet for now.
3313 sparclet-*-*) gdb_target=sparc-em ;;
3314 sparclite*-*-*) gdb_target=sparclite ;;
3315 # It's not clear what the right solution for "v8plus" systems is yet.
3316 # For now, stick with sparc-sun-solaris2 since that's what config.guess
3317 # should return. Work is still needed to get gdb to print the 64 bit
3318 # regs (some of which are usable in v8plus) so sp64sol.mt hasn't been
3319 # deleted though presumably it should be eventually.
3320 #sparc64-*-solaris2*) gdb_target=sp64sol2 ;;
3321 sparc64-*-*) gdb_target=sp64 ;;
3323 tahoe-*-*) gdb_target=tahoe ;;
3325 vax-*-*) gdb_target=vax ;;
3327 w65-*-*) gdb_target=w65 ;;
3329 z8k-*-coff*) gdb_target=z8k ;;
3335 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
3336 if test ! -f ${host_makefile_frag}; then
3337 { echo "configure: error: "*** Gdb does not support host ${host}"" 1>&2; exit 1; }
3339 frags="$frags $host_makefile_frag"
3341 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
3342 if test ! -f ${target_makefile_frag}; then
3343 { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
3345 frags="$frags $target_makefile_frag"
3352 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
3353 ' ${host_makefile_frag}`
3355 targetfile=`sed -n '
3356 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
3357 ' ${target_makefile_frag}`
3359 # these really aren't orthogonal true/false values of the same condition,
3360 # but shells are slow enough that I like to reuse the test conditions
3362 if test "${target}" = "${host}"; then
3363 nativefile=`sed -n '
3364 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
3365 ' ${host_makefile_frag}`
3367 # GDBserver is only useful in a "native" enviroment
3368 configdirs=`echo $configdirs | sed 's/gdbserver//'`
3372 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
3373 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
3374 # corresponding links. But we have to remove the xm.h files and tm.h
3375 # files anyway, e.g. when switching from "configure host" to
3381 if test "${hostfile}" != ""; then
3382 files="${files} config/${gdb_host_cpu}/${hostfile}"
3383 links="${links} xm.h"
3386 if test "${targetfile}" != ""; then
3387 files="${files} config/${gdb_target_cpu}/${targetfile}"
3388 links="${links} tm.h"
3391 if test "${nativefile}" != ""; then
3392 files="${files} config/${gdb_host_cpu}/${nativefile}"
3393 links="${links} nm.h"
3395 # A cross-only configuration.
3396 files="${files} config/nm-empty.h"
3397 links="${links} nm.h"
3399 # start-sanitize-gdbtk
3401 # Make it possible to use the GUI without doing a full install
3402 if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ; then
3403 files="${files} gdbtk.tcl"
3404 links="${links} gdbtk.tcl"
3406 # end-sanitize-gdbtk
3410 subdirs="$configdirs"
3413 cat > confcache <<\EOF
3414 # This file is a shell script that caches the results of configure
3415 # tests run on this system so they can be shared between configure
3416 # scripts and configure runs. It is not useful on other systems.
3417 # If it contains results you don't want to keep, you may remove or edit it.
3419 # By default, configure uses ./config.cache as the cache file,
3420 # creating it if it does not exist already. You can give configure
3421 # the --cache-file=FILE option to use a different cache file; that is
3422 # what configure does when it calls configure scripts in
3423 # subdirectories, so they share the cache.
3424 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3425 # config.status only pays attention to the cache file if you give it the
3426 # --recheck option to rerun configure.
3429 # Ultrix sh set writes to stderr and can't be redirected directly,
3430 # and sets the high bit in the cache file unless we assign to the vars.
3432 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
3434 if cmp -s $cache_file confcache; then
3437 if test -w $cache_file; then
3438 echo "updating cache $cache_file"
3439 cat confcache > $cache_file
3441 echo "not updating unwritable cache $cache_file"
3446 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3448 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3449 # Let make expand exec_prefix.
3450 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3452 # Any assignment to VPATH causes Sun make to only execute
3453 # the first set of double-colon rules, so remove it if not needed.
3454 # If there is a colon in the path, we need to keep it.
3455 if test "x$srcdir" = x.; then
3456 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3459 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3461 DEFS=-DHAVE_CONFIG_H
3463 # Without the "./", some shells look in PATH for config.status.
3464 : ${CONFIG_STATUS=./config.status}
3466 echo creating $CONFIG_STATUS
3467 rm -f $CONFIG_STATUS
3468 cat > $CONFIG_STATUS <<EOF
3470 # Generated automatically by configure.
3471 # Run this file to recreate the current configuration.
3472 # This directory was configured as follows,
3473 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3475 # $0 $ac_configure_args
3477 # Compiler output produced by configure, useful for debugging
3478 # configure, is in ./config.log if it exists.
3480 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3483 case "\$ac_option" in
3484 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3485 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3486 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3487 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3488 echo "$CONFIG_STATUS generated by autoconf version 2.8"
3490 -help | --help | --hel | --he | --h)
3491 echo "\$ac_cs_usage"; exit 0 ;;
3492 *) echo "\$ac_cs_usage"; exit 1 ;;
3496 ac_given_srcdir=$srcdir
3497 ac_given_INSTALL="$INSTALL"
3499 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3501 cat >> $CONFIG_STATUS <<EOF
3503 # Protect against being on the right side of a sed subst in config.status.
3504 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3505 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3508 s%@CFLAGS@%$CFLAGS%g
3509 s%@CPPFLAGS@%$CPPFLAGS%g
3510 s%@CXXFLAGS@%$CXXFLAGS%g
3512 s%@LDFLAGS@%$LDFLAGS%g
3514 s%@exec_prefix@%$exec_prefix%g
3515 s%@prefix@%$prefix%g
3516 s%@program_transform_name@%$program_transform_name%g
3517 s%@bindir@%$bindir%g
3518 s%@sbindir@%$sbindir%g
3519 s%@libexecdir@%$libexecdir%g
3520 s%@datadir@%$datadir%g
3521 s%@sysconfdir@%$sysconfdir%g
3522 s%@sharedstatedir@%$sharedstatedir%g
3523 s%@localstatedir@%$localstatedir%g
3524 s%@libdir@%$libdir%g
3525 s%@includedir@%$includedir%g
3526 s%@oldincludedir@%$oldincludedir%g
3527 s%@infodir@%$infodir%g
3528 s%@mandir@%$mandir%g
3531 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3532 s%@INSTALL_DATA@%$INSTALL_DATA%g
3533 s%@RANLIB@%$RANLIB%g
3536 s%@host_alias@%$host_alias%g
3537 s%@host_cpu@%$host_cpu%g
3538 s%@host_vendor@%$host_vendor%g
3539 s%@host_os@%$host_os%g
3540 s%@target@%$target%g
3541 s%@target_alias@%$target_alias%g
3542 s%@target_cpu@%$target_cpu%g
3543 s%@target_vendor@%$target_vendor%g
3544 s%@target_os@%$target_os%g
3546 s%@build_alias@%$build_alias%g
3547 s%@build_cpu@%$build_cpu%g
3548 s%@build_vendor@%$build_vendor%g
3549 s%@build_os@%$build_os%g
3550 s%@X_CFLAGS@%$X_CFLAGS%g
3551 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3552 s%@X_LIBS@%$X_LIBS%g
3553 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3554 s%@TCLHDIR@%$TCLHDIR%g
3555 s%@TCLLIB@%$TCLLIB%g
3556 s%@TKHDIR@%$TKHDIR%g
3558 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
3559 s%@X_LDFLAGS@%$X_LDFLAGS%g
3560 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
3561 s%@ENABLE_CLIBS@%$ENABLE_CLIBS%g
3562 s%@ENABLE_OBS@%$ENABLE_OBS%g
3563 s%@target_subdir@%$target_subdir%g
3564 /@host_makefile_frag@/r $host_makefile_frag
3565 s%@host_makefile_frag@%%g
3566 /@target_makefile_frag@/r $target_makefile_frag
3567 s%@target_makefile_frag@%%g
3569 s%@subdirs@%$subdirs%g
3573 cat >> $CONFIG_STATUS <<EOF
3575 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3577 cat >> $CONFIG_STATUS <<\EOF
3578 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3579 # Support "outfile[:infile]", defaulting infile="outfile.in".
3581 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
3582 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3583 *) ac_file_in="${ac_file}.in" ;;
3586 # Adjust relative srcdir, etc. for subdirectories.
3588 # Remove last slash and all that follows it. Not all systems have dirname.
3589 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3590 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3591 # The file is in a subdirectory.
3592 test ! -d "$ac_dir" && mkdir "$ac_dir"
3593 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3594 # A "../" for each directory in $ac_dir_suffix.
3595 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3597 ac_dir_suffix= ac_dots=
3600 case "$ac_given_srcdir" in
3602 if test -z "$ac_dots"; then top_srcdir=.
3603 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3604 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3606 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3607 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3610 case "$ac_given_INSTALL" in
3611 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3612 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3614 echo creating "$ac_file"
3616 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3618 *Makefile*) ac_comsub="1i\\
3619 # $configure_input" ;;
3623 s%@configure_input@%$configure_input%g
3624 s%@srcdir@%$srcdir%g
3625 s%@top_srcdir@%$top_srcdir%g
3626 s%@INSTALL@%$INSTALL%g
3627 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
3631 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3632 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3634 # ac_d sets the value in "#define NAME VALUE" lines.
3635 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3636 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3639 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3640 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3641 ac_uB='\([ ]\)%\1#\2define\3'
3644 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3645 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3646 ac_eB='$%\1#\2define\3'
3650 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h:config.in"}
3651 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3652 # Support "outfile[:infile]", defaulting infile="outfile.in".
3654 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
3655 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3656 *) ac_file_in="${ac_file}.in" ;;
3659 echo creating $ac_file
3661 rm -f conftest.frag conftest.in conftest.out
3662 cp $ac_given_srcdir/$ac_file_in conftest.in
3666 # Transform confdefs.h into a sed script conftest.vals that substitutes
3667 # the proper values into config.h.in to produce config.h. And first:
3668 # Protect against being on the right side of a sed subst in config.status.
3669 # Protect against being in an unquoted here document in config.status.
3671 cat > conftest.hdr <<\EOF
3674 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3678 sed -n -f conftest.hdr confdefs.h > conftest.vals
3681 # This sed command replaces #undef with comments. This is necessary, for
3682 # example, in the case of _POSIX_SOURCE, which is predefined and required
3683 # on some systems where configure will not decide to define it.
3684 cat >> conftest.vals <<\EOF
3685 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3688 # Break up conftest.vals because some shells have a limit on
3689 # the size of here documents, and old seds have small limits too.
3690 # Maximum number of lines to put in a single here document.
3691 ac_max_here_lines=12
3696 ac_lines=`grep -c . conftest.vals`
3697 # grep -c gives empty output for an empty file on some AIX systems.
3698 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3699 # Write a limited-size here document to conftest.frag.
3700 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3701 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3703 sed -f conftest.frag conftest.in > conftest.out
3705 mv conftest.out conftest.in
3707 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3709 mv conftest.tail conftest.vals
3713 cat >> $CONFIG_STATUS <<\EOF
3714 rm -f conftest.frag conftest.h
3715 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3716 cat conftest.in >> conftest.h
3718 if cmp -s $ac_file conftest.h 2>/dev/null; then
3719 echo "$ac_file is unchanged"
3723 mv conftest.h $ac_file
3729 cat >> $CONFIG_STATUS <<EOF
3734 cat >> $CONFIG_STATUS <<\EOF
3735 srcdir=$ac_given_srcdir
3736 while test -n "$ac_sources"; do
3737 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3738 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3740 echo "linking $srcdir/$ac_source to $ac_dest"
3742 if test ! -r $srcdir/$ac_source; then
3743 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3747 # Make relative symlinks.
3748 # Remove last slash and all that follows it. Not all systems have dirname.
3749 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3750 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3751 # The dest file is in a subdirectory.
3752 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3753 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3754 # A "../" for each directory in $ac_dest_dir_suffix.
3755 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3757 ac_dest_dir_suffix= ac_dots=
3761 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3762 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3765 # Make a symlink if possible; otherwise try a hard link.
3766 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3767 ln $srcdir/$ac_source $ac_dest; then :
3769 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3773 cat >> $CONFIG_STATUS <<EOF
3775 gdb_host_cpu=$gdb_host_cpu
3776 gdb_target_cpu=$gdb_target_cpu
3777 nativefile=$nativefile
3780 cat >> $CONFIG_STATUS <<\EOF
3782 if test "${nativefile}" = ""; then
3783 sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
3784 < Makefile > Makefile.tem
3785 mv -f Makefile.tem Makefile
3788 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
3789 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
3790 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
3791 mv -f Makefile.tmp Makefile
3797 grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
3798 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3801 case x$CONFIG_HEADERS in
3802 xconfig.h:config.in)
3808 chmod +x $CONFIG_STATUS
3809 rm -fr confdefs* $ac_clean_files
3810 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3812 if test "$no_recursion" != yes; then
3814 # Remove --cache-file and --srcdir arguments so they do not pile up.
3815 ac_sub_configure_args=
3817 for ac_arg in $ac_configure_args; do
3818 if test -n "$ac_prev"; then
3823 -cache-file | --cache-file | --cache-fil | --cache-fi \
3824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3825 ac_prev=cache_file ;;
3826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3829 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3831 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3833 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3837 for ac_config_dir in $configdirs; do
3839 # Do not complain, so a configure script can configure whichever
3840 # parts of a large source tree are present.
3841 if test ! -d $srcdir/$ac_config_dir; then
3845 echo configuring in $ac_config_dir
3850 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3852 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3861 .) # No --srcdir option. We are building in place.
3862 ac_sub_srcdir=$srcdir ;;
3863 /*) # Absolute path.
3864 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3866 ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
3869 # Check for guested configure; otherwise get Cygnus style configure.
3870 if test -f $ac_sub_srcdir/configure; then
3871 ac_sub_configure=$ac_sub_srcdir/configure
3872 elif test -f $ac_sub_srcdir/configure.in; then
3873 ac_sub_configure=$ac_configure
3875 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3879 # The recursion is here.
3880 if test -n "$ac_sub_configure"; then
3882 # Make the cache file name correct relative to the subdirectory.
3883 # A "../" for each directory in /$ac_config_dir.
3884 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3885 case "$cache_file" in
3886 /*) ac_sub_cache_file=$cache_file ;;
3888 ac_sub_cache_file="$ac_dots$cache_file" ;;
3890 case "$ac_given_INSTALL" in
3891 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3892 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3895 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3896 # The eval makes quoting arguments work.
3897 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3900 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }