3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.4
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 --with-x use the X Window System"
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
25 cache_file
=.
/config.cache
34 program_transform_name
=s
,x
,x
,
43 # Initialize some other variables.
50 # If the previous option needs an argument, assign it.
51 if test -n "$ac_prev"; then
52 eval "$ac_prev=\$ac_option"
58 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
62 # Accept the important Cygnus configure options, so we can diagnose typos.
66 -build |
--build |
--buil |
--bui |
--bu |
--b)
68 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=* |
--b=*)
71 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
72 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
74 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
75 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
76 cache_file
="$ac_optarg" ;;
78 -disable-* |
--disable-*)
79 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
80 # Reject names that are not valid shell variable names.
81 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
82 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
84 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
85 eval "enable_${ac_feature}=no" ;;
87 -enable-* |
--enable-*)
88 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
89 # Reject names that are not valid shell variable names.
90 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
91 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
93 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
98 eval "enable_${ac_feature}='$ac_optarg'" ;;
100 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
101 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
102 |
--exec |
--exe |
--ex)
103 ac_prev
=exec_prefix
;;
104 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
105 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
106 |
--exec=* |
--exe=* |
--ex=*)
107 exec_prefix
="$ac_optarg" ;;
109 -gas |
--gas |
--ga |
--g)
110 # Obsolete; use --with-gas.
113 -help |
--help |
--hel |
--he)
114 # Omit some internal or obsolete options to make the list less imposing.
115 # This message is too long to be a string in the A/UX 3.1 sh.
117 Usage: configure [options] [host]
118 Options: [defaults in brackets after descriptions]
120 --cache-file=FILE cache test results in FILE
121 --help print this message
122 --no-create do not create output files
123 --quiet, --silent do not print \`checking...' messages
124 --version print the version of autoconf that created configure
125 Directory and file names:
126 --prefix=PREFIX install architecture-independent files in PREFIX
128 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
130 --srcdir=DIR find the sources in DIR [configure dir or ..]
131 --program-prefix=PREFIX prepend PREFIX to installed program names
132 --program-suffix=SUFFIX append SUFFIX to installed program names
133 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
135 --build=BUILD configure for building on BUILD [BUILD=HOST]
136 --host=HOST configure for HOST [guessed]
137 --target=TARGET configure for TARGET [TARGET=HOST]
138 Features and packages:
139 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
140 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
141 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
142 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
143 --x-includes=DIR X include files are in DIR
144 --x-libraries=DIR X library files are in DIR
145 --enable and --with options recognized:$ac_help
149 -host |
--host |
--hos |
--ho)
151 -host=* |
--host=* |
--hos=* |
--ho=*)
155 # Obsolete; use --without-fp.
158 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
162 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
163 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
166 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
168 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
169 prefix
="$ac_optarg" ;;
171 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
172 |
--program-pre |
--program-pr |
--program-p)
173 ac_prev
=program_prefix
;;
174 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
175 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
176 program_prefix
="$ac_optarg" ;;
178 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
179 |
--program-suf |
--program-su |
--program-s)
180 ac_prev
=program_suffix
;;
181 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
182 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
183 program_suffix
="$ac_optarg" ;;
185 -program-transform-name |
--program-transform-name \
186 |
--program-transform-nam |
--program-transform-na \
187 |
--program-transform-n |
--program-transform- \
188 |
--program-transform |
--program-transfor \
189 |
--program-transfo |
--program-transf \
190 |
--program-trans |
--program-tran \
191 |
--progr-tra |
--program-tr |
--program-t)
192 ac_prev
=program_transform_name
;;
193 -program-transform-name=* |
--program-transform-name=* \
194 |
--program-transform-nam=* |
--program-transform-na=* \
195 |
--program-transform-n=* |
--program-transform-=* \
196 |
--program-transform=* |
--program-transfor=* \
197 |
--program-transfo=* |
--program-transf=* \
198 |
--program-trans=* |
--program-tran=* \
199 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
200 program_transform_name
="$ac_optarg" ;;
202 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
203 |
-silent |
--silent |
--silen |
--sile |
--sil)
206 -site |
--site |
--sit)
208 -site=* |
--site=* |
--sit=*)
211 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
213 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
214 srcdir
="$ac_optarg" ;;
216 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
218 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
219 target
="$ac_optarg" ;;
221 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
224 -version |
--version |
--versio |
--versi |
--vers)
225 echo "configure generated by autoconf version 2.4"
229 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
230 # Reject names that are not valid shell variable names.
231 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
232 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
234 ac_package
=`echo $ac_package| sed 's/-/_/g'`
239 eval "with_${ac_package}='$ac_optarg'" ;;
241 -without-* |
--without-*)
242 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
243 # Reject names that are not valid shell variable names.
244 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
245 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
247 ac_package
=`echo $ac_package| sed 's/-/_/g'`
248 eval "with_${ac_package}=no" ;;
251 # Obsolete; use --with-x.
254 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
255 |
--x-incl |
--x-inc |
--x-in |
--x-i)
256 ac_prev
=x_includes
;;
257 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
258 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
259 x_includes
="$ac_optarg" ;;
261 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
262 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
263 ac_prev
=x_libraries
;;
264 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
265 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
266 x_libraries
="$ac_optarg" ;;
268 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
272 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
273 echo "configure: warning: $ac_option: invalid host type" 1>&2
275 if test "x$nonopt" != xNONE
; then
276 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
284 if test -n "$ac_prev"; then
285 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
288 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
290 # File descriptor usage:
293 # 2 errors and warnings
294 # 3 some systems may open it to /dev/tty
295 # 4 used on the Kubota Titan
296 # 6 checking for... messages and results
297 # 5 compiler messages saved in config.log
298 if test "$silent" = yes; then
306 This file contains any messages produced by compilers while
307 running configure, to aid debugging if configure makes a mistake.
310 # Strip out --no-create and --no-recursion so they do not pile up.
311 # Also quote any args containing shell metacharacters.
316 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
317 |
--no-cr |
--no-c) ;;
318 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
319 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
320 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
321 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
322 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
327 # Only set LANG and LC_ALL to C if already set.
328 # These must not be set unconditionally because not all systems understand
329 # e.g. LANG=C (notably SCO).
330 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
331 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
334 rm -rf conftest
* confdefs.h
335 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
338 # A filename unique to this package, relative to the directory that
339 # configure is in, which we can look for to find out if srcdir is correct.
340 ac_unique_file
=main.c
342 # Find the source files, if location was not specified.
343 if test -z "$srcdir"; then
344 ac_srcdir_defaulted
=yes
345 # Try the directory containing this script, then its parent.
347 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
348 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
350 if test ! -r $srcdir/$ac_unique_file; then
354 ac_srcdir_defaulted
=no
356 if test ! -r $srcdir/$ac_unique_file; then
357 if test "$ac_srcdir_defaulted" = yes; then
358 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
360 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
363 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
365 # Prefer explicitly selected file to automatically selected ones.
366 if test -z "$CONFIG_SITE"; then
367 if test "x$prefix" != xNONE
; then
368 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
370 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
373 for ac_site_file
in $CONFIG_SITE; do
374 if test -r "$ac_site_file"; then
375 echo "loading site script $ac_site_file"
380 if test -r "$cache_file"; then
381 echo "loading cache $cache_file"
384 echo "creating cache $cache_file"
389 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
390 ac_cpp
='$CPP $CPPFLAGS'
391 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
392 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
394 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
395 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
396 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
403 ac_n
= ac_c
='\c' ac_t
=
409 # Extract the first word of "gcc", so it can be a program name with args.
410 set dummy gcc
; ac_word
=$2
411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
412 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
413 echo $ac_n "(cached) $ac_c" 1>&6
415 if test -n "$CC"; then
416 ac_cv_prog_CC
="$CC" # Let the user override the test.
418 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
419 for ac_dir
in $PATH; do
420 test -z "$ac_dir" && ac_dir
=.
421 if test -f $ac_dir/$ac_word; then
427 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="cc"
431 if test -n "$CC"; then
432 echo "$ac_t""$CC" 1>&6
434 echo "$ac_t""no" 1>&6
438 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
439 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
440 echo $ac_n "(cached) $ac_c" 1>&6
442 cat > conftest.c
<<EOF
447 if ${CC-cc} -E conftest.c
2>&5 |
egrep yes >/dev
/null
2>&1; then
453 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
454 if test $ac_cv_prog_gcc = yes; then
456 if test "${CFLAGS+set}" != set; then
457 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
458 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
459 echo $ac_n "(cached) $ac_c" 1>&6
461 echo 'void f(){}' > conftest.c
462 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
470 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
471 if test $ac_cv_prog_gcc_g = yes; then
479 test "${CFLAGS+set}" = set || CFLAGS
="-g"
482 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
483 # On Suns, sometimes $CPP names a directory.
484 if test -n "$CPP" && test -d "$CPP"; then
487 if test -z "$CPP"; then
488 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
489 echo $ac_n "(cached) $ac_c" 1>&6
491 # This must be in double quotes, not single quotes, because CPP may get
492 # substituted into the Makefile and "${CC-cc}" will confuse make.
494 # On the NeXT, cc -E runs the code through the compiler's parser,
495 # not just through cpp.
496 cat > conftest.
$ac_ext <<EOF
497 #line 498 "configure"
498 #include "confdefs.h"
502 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
503 ac_err
=`grep -v '^ *+' conftest.out`
504 if test -z "$ac_err"; then
509 CPP
="${CC-cc} -E -traditional-cpp"
510 cat > conftest.
$ac_ext <<EOF
511 #line 512 "configure"
512 #include "confdefs.h"
516 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
517 ac_err
=`grep -v '^ *+' conftest.out`
518 if test -z "$ac_err"; then
528 ac_cv_prog_CPP
="$CPP"
530 CPP
="$ac_cv_prog_CPP"
532 ac_cv_prog_CPP
="$CPP"
534 echo "$ac_t""$CPP" 1>&6
536 echo $ac_n "checking for AIX""... $ac_c" 1>&6
537 cat > conftest.
$ac_ext <<EOF
538 #line 539 "configure"
539 #include "confdefs.h"
545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
546 egrep "yes" >/dev
/null
2>&1; then
548 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
549 #define _ALL_SOURCE 1
554 echo "$ac_t""no" 1>&6
559 ac_safe
=`echo "minix/config.h" | tr './\055' '___'`
560 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
561 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
562 echo $ac_n "(cached) $ac_c" 1>&6
564 cat > conftest.
$ac_ext <<EOF
565 #line 566 "configure"
566 #include "confdefs.h"
567 #include <minix/config.h>
569 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
570 ac_err
=`grep -v '^ *+' conftest.out`
571 if test -z "$ac_err"; then
573 eval "ac_cv_header_$ac_safe=yes"
577 eval "ac_cv_header_$ac_safe=no"
581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
582 echo "$ac_t""yes" 1>&6
585 echo "$ac_t""no" 1>&6
589 if test "$MINIX" = yes; then
590 cat >> confdefs.h
<<\EOF
591 #define _POSIX_SOURCE 1
594 cat >> confdefs.h
<<\EOF
595 #define _POSIX_1_SOURCE 2
598 cat >> confdefs.h
<<\EOF
604 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
605 if test -d /etc
/conf
/kconfig.d
&&
606 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
608 echo "$ac_t""yes" 1>&6
609 ISC
=yes # If later tests want to check for ISC.
610 cat >> confdefs.h
<<\EOF
611 #define _POSIX_SOURCE 1
614 if test "$GCC" = yes; then
620 echo "$ac_t""no" 1>&6
626 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
627 ac_dir
=`cd $ac_dir; pwd`
628 if test -f $ac_dir/install-sh
; then
630 ac_install_sh
="$ac_aux_dir/install-sh -c"
632 elif test -f $ac_dir/install.sh
; then
634 ac_install_sh
="$ac_aux_dir/install.sh -c"
638 if test -z "$ac_aux_dir"; then
639 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
641 ac_config_guess
=$ac_aux_dir/config.guess
642 ac_config_sub
=$ac_aux_dir/config.sub
643 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
645 # Find a good install program. We prefer a C program (faster),
646 # so one script is as good as another. But avoid the broken or
647 # incompatible versions:
648 # SysV /etc/install, /usr/sbin/install
649 # SunOS /usr/etc/install
652 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
653 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
654 # ./install, which can be erroneously created by make from ./install.sh.
655 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
656 if test -z "$INSTALL"; then
657 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
658 echo $ac_n "(cached) $ac_c" 1>&6
660 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
661 for ac_dir
in $PATH; do
662 # Account for people who put trailing slashes in PATH elements.
664 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
666 # OSF1 and SCO ODT 3.0 have their own names for install.
667 for ac_prog
in ginstall installbsd scoinst
install; do
668 if test -f $ac_dir/$ac_prog; then
669 if test $ac_prog = install &&
670 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
671 # AIX install. It has an incompatible calling convention.
672 # OSF/1 installbsd also uses dspmsg, but is usable.
675 ac_cv_path_install
="$ac_dir/$ac_prog -c"
684 # As a last resort, use the slow shell script.
685 test -z "$ac_cv_path_install" && ac_cv_path_install
="$ac_install_sh"
687 INSTALL
="$ac_cv_path_install"
689 echo "$ac_t""$INSTALL" 1>&6
691 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
692 # It thinks the first close brace ends the variable substitution.
693 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
695 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
697 # Extract the first word of "ranlib", so it can be a program name with args.
698 set dummy ranlib
; ac_word
=$2
699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
700 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
703 if test -n "$RANLIB"; then
704 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
706 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
707 for ac_dir
in $PATH; do
708 test -z "$ac_dir" && ac_dir
=.
709 if test -f $ac_dir/$ac_word; then
710 ac_cv_prog_RANLIB
="ranlib"
715 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
718 RANLIB
="$ac_cv_prog_RANLIB"
719 if test -n "$RANLIB"; then
720 echo "$ac_t""$RANLIB" 1>&6
722 echo "$ac_t""no" 1>&6
727 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
728 ac_dir
=`cd $ac_dir; pwd`
729 if test -f $ac_dir/install-sh
; then
731 ac_install_sh
="$ac_aux_dir/install-sh -c"
733 elif test -f $ac_dir/install.sh
; then
735 ac_install_sh
="$ac_aux_dir/install.sh -c"
739 if test -z "$ac_aux_dir"; then
740 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
742 ac_config_guess
=$ac_aux_dir/config.guess
743 ac_config_sub
=$ac_aux_dir/config.sub
744 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
747 # Do some error checking and defaulting for the host and target type.
749 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
752 # 1. You are not allowed to specify --host, --target, and nonopt at the
754 # 2. Host defaults to nonopt.
755 # 3. If nonopt is not specified, then host defaults to the current host,
756 # as determined by config.guess.
757 # 4. Target and build default to nonopt.
758 # 5. If nonopt is not specified, then target and build default to host.
760 # The aliases save the names the user supplied, while $host etc.
761 # will get canonicalized.
762 case $host---$target---$nonopt in
763 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
764 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
768 # Make sure we can run config.sub.
769 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
770 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
773 echo $ac_n "checking host system type""... $ac_c" 1>&6
776 case "$host_alias" in
780 if host_alias
=`$ac_config_guess`; then :
781 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
783 *) host_alias
=$nonopt ;;
787 host=`$ac_config_sub $host_alias`
788 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
789 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
790 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
791 echo "$ac_t""$host" 1>&6
793 echo $ac_n "checking target system type""... $ac_c" 1>&6
796 case "$target_alias" in
799 NONE
) target_alias
=$host_alias ;;
800 *) target_alias
=$nonopt ;;
804 target
=`$ac_config_sub $target_alias`
805 target_cpu
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
806 target_vendor
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
807 target_os
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
808 echo "$ac_t""$target" 1>&6
810 echo $ac_n "checking build system type""... $ac_c" 1>&6
813 case "$build_alias" in
816 NONE
) build_alias
=$host_alias ;;
817 *) build_alias
=$nonopt ;;
821 build
=`$ac_config_sub $build_alias`
822 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
823 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
824 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
825 echo "$ac_t""$build" 1>&6
827 test "$host_alias" != "$target_alias" &&
828 test "$program_prefix$program_suffix$program_transform_name" = \
830 program_prefix
=${target_alias}-
832 if test "$program_transform_name" = s
,x
,x
,; then
833 program_transform_name
=
836 echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
837 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
840 test "$program_prefix" != NONE
&&
841 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
842 # Use a double $ so make ignores it.
843 test "$program_suffix" != NONE
&&
844 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
846 # sed with no file args requires a program.
847 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
855 # Check whether --enable-netrom or --disable-netrom was given.
856 enableval
="$enable_netrom"
857 if test -n "$enableval"; then
858 case "${enableval}" in
859 yes) enable_netrom
=yes ;;
860 no
) enable_netrom
=no
;;
861 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
866 if test "${enable_netrom}" = "yes"; then
867 ENABLE_OBS
="${ENABLE_OBS} remote-nrom.o"
870 # start-sanitize-gdbtk
873 # Check whether --enable-gdbtk or --disable-gdbtk was given.
874 enableval
="$enable_gdbtk"
875 if test -n "$enableval"; then
876 case "${enableval}" in
877 yes) enable_gdbtk
=yes ;;
878 no
) enable_gdbtk
=no
;;
879 *) { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
884 if test "${enable_gdbtk}" = "yes"; then
885 # If we find X, set shell vars x_includes and x_libraries to the
886 # paths, otherwise set no_x=yes.
887 # Uses ac_ vars as temps to allow command line to override cache and checks.
888 # --without-x overrides everything else, but does not touch the cache.
889 echo $ac_n "checking for X""... $ac_c" 1>&6
891 # Check whether --with-x or --without-x was given.
893 if test -n "$withval"; then
897 if test "x$with_x" = xno
; then
900 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
903 if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
906 # One or both of the vars are not set, and there is no cached value.
909 if mkdir conftestdir
; then
911 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
912 cat > Imakefile
<<'EOF'
914 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
916 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
918 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
919 eval `make acfindx 2>/dev/null | grep -v make`
920 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
921 for ac_extension
in a so sl
; do
922 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
923 test -f $ac_im_libdir/libX11.
$ac_extension; then
924 ac_im_usrlibdir
=$ac_im_libdir; break
927 # Screen out bogus values from the imake configuration.
928 case "$ac_im_incroot" in
930 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
932 case "$ac_im_usrlibdir" in
934 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
941 if test "$no_x" = yes; then
942 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
943 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
944 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
945 cat > conftest.
$ac_ext <<EOF
946 #line 947 "configure"
947 #include "confdefs.h"
948 #include <$x_direct_test_include>
950 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
951 ac_err
=`grep -v '^ *+' conftest.out`
952 if test -z "$ac_err"; then
967 /usr
/local
/X11R
6/include \
968 /usr
/local
/X11R
5/include \
969 /usr
/local
/X11R
4/include \
971 /usr
/local
/include
/X11R6 \
972 /usr
/local
/include
/X11R5 \
973 /usr
/local
/include
/X11R4 \
977 /usr
/local
/X11
/include \
978 /usr
/local
/include
/X11 \
982 /usr
/XFree86
/include
/X11 \
986 /usr
/unsupported
/include \
987 /usr
/athena
/include \
988 /usr
/local
/x11r
5/include \
989 /usr
/lpp
/Xamples
/include \
991 /usr
/openwin
/include \
992 /usr
/openwin
/share
/include \
995 if test -r "$ac_dir/$x_direct_test_include"; then
996 no_x
= ac_x_includes
=$ac_dir
1003 # Check for the libraries.
1004 # See if we find them without any special options.
1005 # Don't add to $LIBS permanently.
1006 ac_save_LIBS
="$LIBS"
1007 LIBS
="-l$x_direct_test_library $LIBS"
1008 cat > conftest.
$ac_ext <<EOF
1009 #line 1010 "configure"
1010 #include "confdefs.h"
1012 int main() { return 0; }
1014 ${x_direct_test_function}()
1017 if eval $ac_link; then
1019 LIBS
="$ac_save_LIBS" no_x
= ac_x_libraries
=
1022 LIBS
="$ac_save_LIBS"
1023 # First see if replacing the include by lib works.
1024 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1033 /usr
/local
/X11R
6/lib \
1034 /usr
/local
/X11R
5/lib \
1035 /usr
/local
/X11R
4/lib \
1037 /usr
/local
/lib
/X11R6 \
1038 /usr
/local
/lib
/X11R5 \
1039 /usr
/local
/lib
/X11R4 \
1043 /usr
/local
/X11
/lib \
1044 /usr
/local
/lib
/X11 \
1048 /usr
/XFree86
/lib
/X11 \
1052 /usr
/unsupported
/lib \
1054 /usr
/local
/x11r
5/lib \
1055 /usr
/lpp
/Xamples
/lib \
1058 /usr
/openwin
/share
/lib \
1061 for ac_extension
in a so sl
; do
1062 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1063 no_x
= ac_x_libraries
=$ac_dir
1072 if test "$no_x" = yes; then
1073 ac_cv_path_x
="no_x=yes"
1075 ac_cv_path_x
="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1079 eval "$ac_cv_path_x"
1082 if test "$no_x" = yes; then
1083 echo "$ac_t""no" 1>&6
1085 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1086 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1087 ac_cv_path_x
="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1088 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1091 if test "$no_x" = yes; then
1092 # Not all programs may use this symbol, but it does not hurt to define it.
1093 X_CFLAGS
="$X_CFLAGS -DX_DISPLAY_MISSING"
1095 if test -n "$x_includes"; then
1096 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1099 # It would be nice to have a more robust check for the -R ld option than
1100 # just checking for Solaris.
1101 # It would also be nice to do this for all -L options, not just this one.
1102 if test -n "$x_libraries"; then
1103 X_LIBS
="$X_LIBS -L$x_libraries"
1104 if test "`(uname) 2>/dev/null`" = SunOS
&&
1105 uname
-r |
grep '^5' >/dev
/null
; then
1106 X_LIBS
="$X_LIBS -R$x_libraries"
1110 # Check for libraries that X11R6 Xt/Xaw programs need.
1112 ac_save_LDFLAGS
="$LDFLAGS"
1113 LDFLAGS
="$LDFLAGS -L$x_libraries"
1114 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1115 # check for ICE first), but we must link in the order -lSM -lICE or
1116 # we get undefined symbols. So assume we have SM if we have ICE.
1117 # These have to be linked with before -lX11, unlike the other
1118 # libraries we check for below, so use a different variable.
1119 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1120 echo $ac_n "checking for -lICE""... $ac_c" 1>&6
1121 if eval "test \"`echo '$''{'ac_cv_lib_ICE'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1124 ac_save_LIBS
="$LIBS"
1126 cat > conftest.
$ac_ext <<EOF
1127 #line 1128 "configure"
1128 #include "confdefs.h"
1130 int main() { return 0; }
1132 IceConnectionNumber()
1135 if eval $ac_link; then
1137 eval "ac_cv_lib_ICE=yes"
1140 eval "ac_cv_lib_ICE=no"
1143 LIBS
="$ac_save_LIBS"
1146 if eval "test \"`echo '$ac_cv_lib_'ICE`\" = yes"; then
1147 echo "$ac_t""yes" 1>&6
1148 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1150 echo "$ac_t""no" 1>&6
1153 LDFLAGS
="$ac_save_LDFLAGS"
1155 # Check for system-dependent libraries X programs must link with.
1157 if test "$ISC" = yes; then
1158 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1160 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1161 # libraries were built with DECnet support. And karl@cs.umb.edu says
1162 # the Alpha needs dnet_stub (dnet does not exist).
1163 echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
1164 if eval "test \"`echo '$''{'ac_cv_lib_dnet'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 ac_save_LIBS
="$LIBS"
1169 cat > conftest.
$ac_ext <<EOF
1170 #line 1171 "configure"
1171 #include "confdefs.h"
1173 int main() { return 0; }
1178 if eval $ac_link; then
1180 eval "ac_cv_lib_dnet=yes"
1183 eval "ac_cv_lib_dnet=no"
1186 LIBS
="$ac_save_LIBS"
1189 if eval "test \"`echo '$ac_cv_lib_'dnet`\" = yes"; then
1190 echo "$ac_t""yes" 1>&6
1191 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1193 echo "$ac_t""no" 1>&6
1196 if test $ac_cv_lib_dnet = no
; then
1197 echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
1198 if eval "test \"`echo '$''{'ac_cv_lib_dnet_stub'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 ac_save_LIBS
="$LIBS"
1202 LIBS
="-ldnet_stub $LIBS"
1203 cat > conftest.
$ac_ext <<EOF
1204 #line 1205 "configure"
1205 #include "confdefs.h"
1207 int main() { return 0; }
1212 if eval $ac_link; then
1214 eval "ac_cv_lib_dnet_stub=yes"
1217 eval "ac_cv_lib_dnet_stub=no"
1220 LIBS
="$ac_save_LIBS"
1223 if eval "test \"`echo '$ac_cv_lib_'dnet_stub`\" = yes"; then
1224 echo "$ac_t""yes" 1>&6
1225 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1227 echo "$ac_t""no" 1>&6
1232 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1233 # to get the SysV transport functions.
1234 # Not sure which flavor of 386 UNIX this is, but it seems harmless to
1236 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
1237 if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 ac_save_LIBS
="$LIBS"
1242 cat > conftest.
$ac_ext <<EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1246 int main() { return 0; }
1251 if eval $ac_link; then
1253 eval "ac_cv_lib_nsl=yes"
1256 eval "ac_cv_lib_nsl=no"
1259 LIBS
="$ac_save_LIBS"
1262 if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
1263 echo "$ac_t""yes" 1>&6
1264 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1266 echo "$ac_t""no" 1>&6
1270 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1271 # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
1272 # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
1273 if test "`(uname) 2>/dev/null`" != IRIX
; then
1274 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
1275 if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1278 ac_save_LIBS
="$LIBS"
1279 LIBS
="-lsocket $LIBS"
1280 cat > conftest.
$ac_ext <<EOF
1281 #line 1282 "configure"
1282 #include "confdefs.h"
1284 int main() { return 0; }
1289 if eval $ac_link; then
1291 eval "ac_cv_lib_socket=yes"
1294 eval "ac_cv_lib_socket=no"
1297 LIBS
="$ac_save_LIBS"
1300 if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
1301 echo "$ac_t""yes" 1>&6
1302 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lsocket"
1304 echo "$ac_t""no" 1>&6
1314 # Ok, lets find the tk source trees so we can use the headers
1315 # If the directory (presumably symlink) named "tk" exists, use that one
1316 # in preference to any others. Same logic is used when choosing library
1317 # and again with Tcl.
1319 echo "checking for Tk source directory" 1>&6
1321 for i
in `ls -d ${srcdir}/../tk* 2>/dev/null` ${srcdir}/..
/tk
; do
1322 if test -f $i/tk.h
; then
1326 # if we can't find it, see if one is installed
1327 if test x
"$TKHDIR" = x
; then
1329 if test -f $prefix/include
/tk.h
; then
1330 installed
=1 TKHDIR
="-I$prefix/include"
1332 ac_safe
=`echo "tk.h" | tr './\055' '___'`
1333 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
1334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1337 cat > conftest.
$ac_ext <<EOF
1338 #line 1339 "configure"
1339 #include "confdefs.h"
1342 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1343 ac_err
=`grep -v '^ *+' conftest.out`
1344 if test -z "$ac_err"; then
1346 eval "ac_cv_header_$ac_safe=yes"
1350 eval "ac_cv_header_$ac_safe=no"
1354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1355 echo "$ac_t""yes" 1>&6
1358 echo "$ac_t""no" 1>&6
1362 if test $installed -eq 0 ; then
1363 TKHDIR
="# no Tk directory found"
1364 echo "configure: warning: Can't find Tk directory" 1>&2
1367 if test x
"$TKHDIR" != x
; then
1368 echo "$ac_t""Setting TKHDIR to be $i" 1>&6
1372 # Ok, lets find the tk library
1373 # First, look for one uninstalled.
1376 echo "checking for Tk library" 1>&6
1377 for i
in `ls -d ../tk* 2>/dev/null` ..
/tk
; do
1378 if test -f "$i/Makefile" ; then
1382 # If not found, look for installed version
1383 if test x
"$TKLIB" = x
; then
1384 if test -f $prefix/lib
/libtk.a
; then
1389 if test $installed -eq 1 ; then
1394 # If still not found, assume Tk simply hasn't been built yet
1395 if test x
"$TKLIB" = x
; then
1396 for i
in `ls -d ../tk* 2>/dev/null` ..
/tk
; do
1397 if test -f "$i/tk.h" ; then
1403 if test x
"$TKLIB" = x
; then
1404 TKLIB
="# no Tk library found"
1405 echo "configure: warning: Can't find Tk library" 1>&2
1407 echo "$ac_t""setting TKLIB to be $TKLIB" 1>&6
1416 # Ok, lets find the tcl source trees so we can use the headers
1418 # Warning: transition of version 9 to 10 will break this algorithm
1419 # because 10 sorts before 9.
1421 echo "checking for Tcl source directory" 1>&6
1423 for i
in `ls -d ${srcdir}/../tcl* 2>/dev/null` ${srcdir}/..
/tcl
; do
1424 if test -f $i/tclInt.h
; then
1428 # if we can't find it, see if one is installed
1429 if test x
"$TCLHDIR" = x
; then
1431 if test -f $prefix/include
/tclInt.h
; then
1432 installed
=1 TCLHDIR
="-I$prefix/include"
1434 ac_safe
=`echo "tclInt.h" | tr './\055' '___'`
1435 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
1436 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1439 cat > conftest.
$ac_ext <<EOF
1440 #line 1441 "configure"
1441 #include "confdefs.h"
1444 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1445 ac_err
=`grep -v '^ *+' conftest.out`
1446 if test -z "$ac_err"; then
1448 eval "ac_cv_header_$ac_safe=yes"
1452 eval "ac_cv_header_$ac_safe=no"
1456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1457 echo "$ac_t""yes" 1>&6
1460 echo "$ac_t""no" 1>&6
1464 if test $installed -eq 0 ; then
1465 TCLHDIR
="# no Tcl directory found"
1466 echo "configure: warning: Can't find Tcl directory" 1>&2
1469 echo "$ac_t""setting TCLHDIR to be $i" 1>&6
1473 # Ok, lets find the tcl library
1474 # First, look for the latest uninstalled
1477 echo "checking for Tcl library" 1>&6
1478 for i
in `ls -d ../tcl* 2>/dev/null` ..
/tcl
; do
1479 if test -f "$i/Makefile" ; then
1483 # If not found, look for installed version
1484 if test x
"$TCLLIB" = x
; then
1485 if test -f $prefix/lib
/libtcl.a
; then installed
=1; else installed
=0; fi
1486 if test $installed -eq 1 ; then
1490 # If still not found, assume Tcl simply hasn't been built yet
1491 if test x
"$TCLLIB" = x
; then
1492 for i
in `ls -d ../tcl* 2>/dev/null` ..
/tcl
; do
1493 if test -f "$i/tcl.h" ; then
1499 if test x
"$TCLLIB" = x
; then
1500 TCLLIB
="# no Tcl library found"
1501 echo "configure: warning: Can't find Tcl library" 1>&2
1503 echo "$ac_t""setting TCLLIB to be $TCLLIB" 1>&6
1511 ENABLE_CLIBS
="${ENABLE_CLIBS} $(TCL) $(TK) $(X11) -lm"
1512 ENABLE_OBS
="${ENABLE_OBS} gdbtk.o"
1515 # end-sanitize-gdbtk
1522 configdirs
="doc testsuite"
1525 # Map host cpu into the config cpu subdirectory name.
1526 # The default is $host_cpu.
1528 case "${host_cpu}" in
1530 c
[12]) gdb_host_cpu
=convex
;;
1531 hppa
*) gdb_host_cpu
=pa
;;
1532 i
[345]86) gdb_host_cpu
=i386
;;
1533 m68
*) gdb_host_cpu
=m68k
;;
1534 m88
*) gdb_host_cpu
=m88k
;;
1535 np1
) gdb_host_cpu
=gould
;;
1536 pyramid
) gdb_host_cpu
=pyr
;;
1537 powerpc
*) gdb_host_cpu
=powerpc
;;
1538 *) gdb_host_cpu
=$host_cpu ;;
1542 # map host info into gdb names.
1546 a29k-
*-*) gdb_host
=ultra3
;;
1548 alpha-
*-osf1*) gdb_host
=alpha-osf1
;;
1549 alpha-
*-osf[23456789]*) gdb_host
=alpha-osf2
;;
1551 arm-
*-*) gdb_host
=arm
;;
1553 c
[12]-*-*) gdb_host
=convex
;;
1555 hppa
*-*-bsd*) gdb_host
=hppabsd
;;
1556 hppa
*-*-hiux*) gdb_host
=hppahpux
;;
1557 hppa
*-*-hpux*) gdb_host
=hppahpux
;;
1558 hppa
*-*-osf*) gdb_host
=hppaosf
;;
1560 i
[345]86-ncr-*) gdb_host
=ncr3000
;;
1561 i
[345]86-sequent-bsd*) gdb_host
=symmetry
;; # dynix
1562 i
[345]86-sequent-sysv4*) gdb_host
=ptx4
;;
1563 i
[345]86-sequent-sysv*) gdb_host
=ptx ;;
1564 i
[345]86-*-aix*) gdb_host
=i386aix
;;
1565 i
[345]86-*-bsd*) gdb_host
=i386bsd
;;
1566 i
[345]86-*-freebsd*) gdb_host
=fbsd
;;
1567 i
[345]86-*-netbsd*) gdb_host
=nbsd
;;
1568 i
[345]86-*-go32*) gdb_host
=go32
;;
1569 i
[345]86-*-linux*) gdb_host
=linux
;;
1570 i
[345]86-*-lynxos*) gdb_host
=i386lynx
;;
1571 i
[345]86-*-mach3*) gdb_host
=i386m3
;;
1572 i
[345]86-*-mach*) gdb_host
=i386mach
;;
1573 i
[345]86-*-osf1mk*) gdb_host
=osf1mk
;;
1574 i
[345]86-*-sco3.2v4
*) gdb_host
=i386sco4
;;
1575 i
[345]86-*-sco*) gdb_host
=i386sco
;;
1576 i
[345]86-*-solaris*) gdb_host
=i386sol2
;;
1577 i
[345]86-*-sunos*) gdb_host
=sun386
;;
1578 i
[345]86-*-sysv3.2
*) gdb_host
=i386v32
;;
1579 i
[345]86-*-sysv32*) gdb_host
=i386v32
;;
1580 i
[345]86-*-sysv4*) gdb_host
=i386v4
;;
1581 i
[345]86-*-unixware) gdb_host
=i386v4
;;
1582 i
[345]86-*-sysv*) gdb_host
=i386v
;;
1583 i
[345]86-*-isc*) gdb_host
=i386v32
;;
1584 i
[345]86-*-os9k) gdb_host
=i386os9k
;;
1586 m680
[01]0-sun-sunos3*) gdb_host
=sun2os3
;;
1587 m680
[01]0-sun-sunos4*) gdb_host
=sun2os4
;;
1588 m68030-sony-
*) gdb_host
=news1000
;;
1590 m68
*-altos-*) gdb_host
=altos
;;
1591 m68
*-apollo*-sysv*) gdb_host
=apollo68v
;;
1592 m68
*-apollo*-bsd*) gdb_host
=apollo68b
;;
1593 m68
*-att-*) gdb_host
=3b1
;;
1594 m68
*-bull*-sysv*) gdb_host
=dpx2
;;
1595 m68
*-hp-bsd*) gdb_host
=hp300bsd
;;
1596 m68
*-hp-hpux*) gdb_host
=hp300hpux
;;
1597 m68
*-isi-*) gdb_host
=isi
;;
1598 m68
*-*-lynxos*) gdb_host
=m68klynx
;;
1599 m68
*-*-sysv4*) gdb_host
=m68kv4
;;
1600 m68
*-motorola-*) gdb_host
=delta68
;;
1601 m68
*-sony-*) gdb_host
=news
;;
1602 m68
*-sun-sunos3*) gdb_host
=sun3os3
;;
1603 m68
*-sun-sunos4*) gdb_host
=sun3os4
;;
1604 m68
*-sun-*) gdb_host
=sun3os4
;;
1606 m88
*-harris-cxux*) gdb_host
=cxux
;;
1607 m88
*-motorola-sysv4*) gdb_host
=delta88v4
;;
1608 m88
*-motorola-sysv*) gdb_host
=delta88
;;
1609 m88
*-*-mach3*) gdb_host
=mach3
;;
1610 m88
*-*-*) gdb_host
=m88k
;;
1612 mips-dec-mach3
*) gdb_host
=mach3
;;
1613 mips-dec-
*) gdb_host
=decstation
;;
1614 mips-little-
*) gdb_host
=littlemips
;;
1615 mips-sgi-irix3
*) gdb_host
=irix3
;;
1616 mips-sgi-irix4
*) gdb_host
=irix4
;;
1617 mips-sgi-irix5
*) gdb_host
=irix5
;;
1618 mips-sony-
*) gdb_host
=news-mips
;;
1619 mips-
*-mach3*) gdb_host
=mach3
;;
1620 mips-
*-sysv4*) gdb_host
=mipsv4
;;
1621 mips-
*-sysv*) gdb_host
=riscos
;;
1622 mips-
*-riscos*) gdb_host
=riscos
;;
1624 none-
*-*) gdb_host
=none
;;
1626 np1-
*-*) gdb_host
=np1
;;
1628 ns32k-
*-mach3*) gdb_host
=mach3
;;
1629 ns32k-
*-netbsd*) gdb_host
=nbsd
;;
1630 ns32k-umax-
*) gdb_host
=umax
;;
1631 ns32k-utek-sysv
*) gdb_host
=merlin
;;
1633 pn-
*-*) gdb_host
=pn
;;
1635 pyramid-
*-*) gdb_host
=pyramid
;;
1637 romp-
*-*) gdb_host
=rtbsd
;;
1639 rs6000-
*-lynxos*) gdb_host
=rs6000lynx
;;
1640 rs6000-
*-*) gdb_host
=rs6000
;;
1642 sparc-
*-lynxos*) gdb_host
=sparclynx
;;
1643 sparc-
*-netbsd*) gdb_host
=nbsd
;;
1644 sparc-
*-solaris2*) gdb_host
=sun4sol2
;;
1645 sparc-
*-sunos4*) gdb_host
=sun4os4
;;
1646 sparc-
*-sunos5*) gdb_host
=sun4sol2
;;
1647 sparc-
*-*) gdb_host
=sun4os4
;;
1649 tahoe-
*-*) gdb_host
=tahoe
;;
1651 vax-
*-bsd*) gdb_host
=vaxbsd
;;
1652 vax-
*-ultrix2*) gdb_host
=vaxult2
;;
1653 vax-
*-ultrix*) gdb_host
=vaxult
;;
1655 w65-
*-*) gdb_host
=w65
;;
1660 # Map target cpu into the config cpu subdirectory name.
1661 # The default is $target_cpu.
1663 case "${target_cpu}" in
1665 alpha
) gdb_target_cpu
=alpha
;;
1666 c
[12]) gdb_target_cpu
=convex
;;
1667 hppa
*) gdb_target_cpu
=pa
;;
1668 i
[345]86) gdb_target_cpu
=i386
;;
1669 m68
*) gdb_target_cpu
=m68k
;;
1670 m88
*) gdb_target_cpu
=m88k
;;
1671 mips
*) gdb_target_cpu
=mips
;;
1672 np1
) gdb_target_cpu
=gould
;;
1673 powerpc
*) gdb_target_cpu
=powerpc
;;
1674 pn
) gdb_target_cpu
=gould
;;
1675 pyramid
) gdb_target_cpu
=pyr
;;
1676 sparclite
*) gdb_target_cpu
=sparc
1677 configdirs
="${configdirs} sparclite" ;;
1678 sparc
*) gdb_target_cpu
=sparc
;;
1679 *) gdb_target_cpu
=$target_cpu ;;
1683 # map target info into gdb names.
1687 a29k-
*-aout*) gdb_target
=a29k
;;
1688 a29k-
*-coff*) gdb_target
=a29k
;;
1689 a29k-
*-elf*) gdb_target
=a29k
;;
1690 a29k-
*-ebmon*) gdb_target
=a29k
;;
1691 a29k-
*-kern*) gdb_target
=a29k-kern
;;
1692 a29k-
*-none*) gdb_target
=a29k
;;
1693 a29k-
*-sym1*) gdb_target
=ultra3
;;
1694 a29k-
*-udi*) gdb_target
=a29k-udi
;;
1695 a29k-
*-vxworks*) gdb_target
=vx29k
;;
1697 alpha-
*-osf*) gdb_target
=alpha-osf1
;;
1699 # start-sanitize-arc
1700 arc-
*-*) gdb_target
=arc
;;
1703 arm-
*-*) gdb_target
=arm
;;
1705 c1-
*-*) gdb_target
=convex
;;
1706 c2-
*-*) gdb_target
=convex
;;
1708 h8300-
*-*) gdb_target
=h8300
;;
1709 h8500-
*-*) gdb_target
=h8500
;;
1711 sh-
*-*) gdb_target
=sh
;;
1713 # start-sanitize-r16
1714 r16-
*-*) gdb_target
=r16
;;
1717 hppa
*-*-bsd*) gdb_target
=hppabsd
;;
1718 hppa
*-*-pro*) gdb_target
=hppapro
;;
1719 hppa
*-*-hpux*) gdb_target
=hppahpux
;;
1720 hppa
*-*-hiux*) gdb_target
=hppahpux
;;
1721 hppa
*-*-osf*) gdb_target
=hppaosf
;;
1723 i
[345]86-sequent-bsd*) gdb_target
=symmetry
;;
1724 i
[345]86-sequent-sysv4*) gdb_target
=ptx4
;;
1725 i
[345]86-sequent-sysv*) gdb_target
=ptx ;;
1726 i
[345]86-ncr-*) gdb_target
=ncr3000
;;
1727 i
[345]86-*-aout*) gdb_target
=i386aout
;;
1728 i
[345]86-*-coff*) gdb_target
=i386v
;;
1729 i
[345]86-*-elf*) gdb_target
=i386v
;;
1730 i
[345]86-*-aix*) gdb_target
=i386aix
;;
1731 i
[345]86-*-bsd*) gdb_target
=i386bsd
;;
1732 i
[345]86-*-freebsd*) gdb_target
=fbsd
;;
1733 i
[345]86-*-netbsd*) gdb_target
=nbsd
;;
1734 i
[345]86-*-os9k) gdb_target
=i386os9k
;;
1735 i
[345]86-*-go32*) gdb_target
=i386aout
;;
1736 i
[345]86-*-lynxos*) gdb_target
=i386lynx
1737 configdirs
="${configdirs} gdbserver" ;;
1738 i
[345]86-*-solaris*) gdb_target
=i386sol2
;;
1739 i
[345]86-*-sunos*) gdb_target
=sun386
;;
1740 i
[345]86-*-sysv4*) gdb_target
=i386v4
;;
1741 i
[345]86-*-sco*) gdb_target
=i386v
;;
1742 i
[345]86-*-sysv*) gdb_target
=i386v
;;
1743 i
[345]86-*-linux*) gdb_target
=linux
;;
1744 i
[345]86-*-isc*) gdb_target
=i386v
;;
1745 i
[345]86-*-mach3*) gdb_target
=i386m3
;;
1746 i
[345]86-*-mach*) gdb_target
=i386mach
;;
1747 i
[345]86-*-netware*) gdb_target
=i386nw
1748 configdirs
="${configdirs} nlm" ;;
1749 i
[345]86-*-osf1mk*) gdb_target
=i386mk
;;
1751 i960-
*-bout*) gdb_target
=vxworks960
;;
1752 i960-
*-coff*) gdb_target
=nindy960
;;
1753 i960-
*-elf*) gdb_target
=nindy960
;;
1755 i960-
*-nindy*) gdb_target
=nindy960
;;
1756 i960-
*-vxworks*) gdb_target
=vxworks960
;;
1758 m68000-
*-sunos3*) gdb_target
=sun2os3
;;
1759 m68000-
*-sunos4*) gdb_target
=sun2os4
;;
1761 m68
*-apollo*-bsd*) gdb_target
=apollo68b
;;
1762 m68
*-bull-sysv*) gdb_target
=dpx2
;;
1763 m68
*-hp-bsd*) gdb_target
=hp300bsd
;;
1764 m68
*-hp-hpux*) gdb_target
=hp300hpux
;;
1765 m68
*-altos-*) gdb_target
=altos
;;
1766 m68
*-att-*) gdb_target
=3b1
;;
1767 m68
*-cisco*-*) gdb_target
=cisco
;;
1768 m68
*-ericsson-*) gdb_target
=es1800
;;
1769 m68
*-isi-*) gdb_target
=isi
;;
1770 m68
*-motorola-*) gdb_target
=delta68
;;
1771 m68
*-netx-*) gdb_target
=vxworks68
;;
1772 m68
*-sony-*) gdb_target
=news
;;
1773 m68
*-tandem-*) gdb_target
=st2000
;;
1774 m68
*-rom68k-*) gdb_target
=monitor
;;
1775 m68
*-*bug-
*) gdb_target
=monitor
;;
1776 m68
*-monitor-*) gdb_target
=monitor
;;
1777 m68
*-est-*) gdb_target
=est
;;
1778 m68
*-*-aout*) gdb_target
=monitor
;;
1779 m68
*-*-coff*) gdb_target
=monitor
;;
1780 m68
*-*-elf*) gdb_target
=monitor
;;
1781 m68
*-*-lynxos*) gdb_target
=m68klynx
1782 configdirs
="${configdirs} gdbserver" ;;
1783 m68
*-*-os68k*) gdb_target
=os68k
;;
1784 m68
*-*-sunos3*) gdb_target
=sun3os3
;;
1785 m68
*-*-sunos4*) gdb_target
=sun3os4
;;
1786 m68
*-*-sysv4*) gdb_target
=m68kv4
;;
1787 m68
*-*-vxworks*) gdb_target
=vxworks68
;;
1789 m88
*-harris-cxux*) gdb_target
=cxux
;;
1790 m88
*-motorola-sysv4*) gdb_target
=delta88v4
;;
1791 m88
*-*-mach3*) gdb_target
=mach3
;;
1792 m88
*-motorola-*) gdb_target
=delta88
;;
1793 m88
*-*-*) gdb_target
=m88k
;;
1795 mips64
*-big-*) gdb_target
=bigmips64
;;
1796 mips
*-big-*) gdb_target
=bigmips
;;
1797 mips
*-dec-mach3*) gdb_target
=mach3
;;
1798 mips
*-dec-*) gdb_target
=decstation
;;
1799 mips64
*el-
*-ecoff*) gdb_target
=idtl64
;;
1800 mips64
*-idt-ecoff*) gdb_target
=idt64
;;
1801 mips64
*el-
*-elf*) gdb_target
=idtl64
;;
1802 mips64
*-*-elf*) gdb_target
=idt64
;;
1803 mips
*el-
*-ecoff*) gdb_target
=idtl
;;
1804 mips
*-*-ecoff*) gdb_target
=idt
;;
1805 mips
*el-
*-elf*) gdb_target
=idtl
;;
1806 mips
*-*-elf*) gdb_target
=idt
;;
1807 mips
*-little-*) gdb_target
=littlemips
;;
1808 mips
*-sgi-irix5*) gdb_target
=irix5
;;
1809 mips
*-sgi-*) gdb_target
=irix3
;;
1810 mips
*-sony-*) gdb_target
=bigmips
;;
1811 mips
*-*-mach3*) gdb_target
=mach3
;;
1812 mips
*-*-sysv4*) gdb_target
=mipsv4
;;
1813 mips
*-*-sysv*) gdb_target
=bigmips
;;
1814 mips
*-*-riscos*) gdb_target
=bigmips
;;
1816 none-
*-*) gdb_target
=none
;;
1818 np1-
*-*) gdb_target
=np1
;;
1820 ns32k-
*-mach3*) gdb_target
=mach3
;;
1821 ns32k-
*-netbsd*) gdb_target
=nbsd
;;
1822 ns32k-utek-sysv
*) gdb_target
=merlin
;;
1823 ns32k-utek-
*) gdb_target
=umax
;;
1825 pn-
*-*) gdb_target
=pn
;;
1826 powerpc-
*-netware*) gdb_target
=ppc-nw
1827 configdirs
="${configdirs} nlm" ;;
1829 powerpc-
*-eabi*) gdb_target
=ppc-eabi
1830 configdirs
="${configdirs}" ;;
1832 powerpcle-
*-eabi*) gdb_target
=ppcle-eabi
1833 configdirs
="${configdirs}" ;;
1835 pyramid-
*-*) gdb_target
=pyramid
;;
1837 rs6000-
*-lynxos*) gdb_target
=rs6000lynx
;;
1838 rs6000-
*-*) gdb_target
=rs6000
;;
1840 sparc-
*-aout*) gdb_target
=sparc-em
;;
1841 sparc-
*-coff*) gdb_target
=sparc-em
;;
1842 sparc-
*-elf*) gdb_target
=sparc-em
;;
1843 sparc-
*-lynxos*) gdb_target
=sparclynx
1844 configdirs
="${configdirs} gdbserver" ;;
1845 sparc-
*-netbsd*) gdb_target
=nbsd
;;
1846 sparc-
*-solaris2*) gdb_target
=sun4sol2
;;
1847 sparc-
*-sunos4*) gdb_target
=sun4os4
;;
1848 sparc-
*-sunos5*) gdb_target
=sun4sol2
;;
1849 sparc-
*-vxworks*) gdb_target
=vxsparc
;;
1850 sparc-
*-*) gdb_target
=sun4os4
;;
1851 sparclite
*-*-*) gdb_target
=sparclite
;;
1852 sparc64-
*-*) gdb_target
=sp64
;;
1854 tahoe-
*-*) gdb_target
=tahoe
;;
1856 vax-
*-*) gdb_target
=vax
;;
1858 w65-
*-*) gdb_target
=w65
;;
1860 z8k-
*-sim*) gdb_target
=z8k
;;
1861 z8k-
*-coff*) gdb_target
=z8k
;;
1867 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
1868 if test ! -f ${host_makefile_frag}; then
1869 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
1871 frags
="$frags $host_makefile_frag"
1873 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
1874 if test ! -f ${target_makefile_frag}; then
1875 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
1877 frags
="$frags $target_makefile_frag"
1884 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
1885 ' ${host_makefile_frag}`
1887 targetfile
=`sed -n '
1888 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
1889 ' ${target_makefile_frag}`
1891 # these really aren't orthogonal true/false values of the same condition,
1892 # but shells are slow enough that I like to reuse the test conditions
1894 if test "${target}" = "${host}"; then
1895 nativefile
=`sed -n '
1896 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
1897 ' ${host_makefile_frag}`
1899 # GDBserver is only useful in a "native" enviroment
1900 configdirs
=`echo $configdirs | sed 's/gdbserver//'`
1904 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
1905 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
1906 # corresponding links. But we have to remove the xm.h files and tm.h
1907 # files anyway, e.g. when switching from "configure host" to
1913 if test "${hostfile}" != ""; then
1914 files
="${files} config/${gdb_host_cpu}/${hostfile}"
1915 links
="${links} xm.h"
1918 if test "${targetfile}" != ""; then
1919 files
="${files} config/${gdb_target_cpu}/${targetfile}"
1920 links
="${links} tm.h"
1923 if test "${nativefile}" != ""; then
1924 files
="${files} config/${gdb_host_cpu}/${nativefile}"
1925 links
="${links} nm.h"
1927 # A cross-only configuration.
1928 files
="${files} config/nm-empty.h"
1929 links
="${links} nm.h"
1931 # start-sanitize-gdbtk
1933 # Make it possible to use the GUI without doing a full install
1934 if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl
; then
1935 files
="${files} gdbtk.tcl"
1936 links
="${links} gdbtk.tcl"
1938 # end-sanitize-gdbtk
1942 subdirs
="$configdirs"
1945 cat > confcache
<<\EOF
1946 # This file is a shell script that caches the results of configure
1947 # tests run on this system so they can be shared between configure
1948 # scripts and configure runs. It is not useful on other systems.
1949 # If it contains results you don't want to keep, you may remove or edit it.
1951 # By default, configure uses ./config.cache as the cache file,
1952 # creating it if it does not exist already. You can give configure
1953 # the --cache-file=FILE option to use a different cache file; that is
1954 # what configure does when it calls configure scripts in
1955 # subdirectories, so they share the cache.
1956 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1957 # config.status only pays attention to the cache file if you give it the
1958 # --recheck option to rerun configure.
1961 # Ultrix sh set writes to stderr and can't be redirected directly,
1962 # and sets the high bit in the cache file unless we assign to the vars.
1964 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1966 if cmp -s $cache_file confcache
; then
1969 if test -w $cache_file; then
1970 echo "updating cache $cache_file"
1971 cat confcache
> $cache_file
1973 echo "not updating unwritable cache $cache_file"
1978 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1980 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1981 # Let make expand exec_prefix.
1982 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1984 # Any assignment to VPATH causes Sun make to only execute
1985 # the first set of double-colon rules, so remove it if not needed.
1986 # If there is a colon in the path, we need to keep it.
1987 if test "x$srcdir" = x.
; then
1988 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1991 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1993 # Transform confdefs.h into DEFS.
1994 # Protect against shell expansion while executing Makefile rules.
1995 # Protect against Makefile macro expansion.
1996 cat > conftest.defs
<<\EOF
1997 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
1998 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2003 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
2007 # Without the "./", some shells look in PATH for config.status.
2008 : ${CONFIG_STATUS=./config.status}
2010 echo creating $CONFIG_STATUS
2011 rm -f $CONFIG_STATUS
2012 cat > $CONFIG_STATUS <<EOF
2014 # Generated automatically by configure.
2015 # Run this file to recreate the current configuration.
2016 # This directory was configured as follows,
2017 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
2019 # $0 $ac_configure_args
2021 # Compiler output produced by configure, useful for debugging
2022 # configure, is in ./config.log if it exists.
2024 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2027 case "\$ac_option" in
2028 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2029 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2030 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2031 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2032 echo "$CONFIG_STATUS generated by autoconf version 2.4"
2034 -help | --help | --hel | --he | --h)
2035 echo "\$ac_cs_usage"; exit 0 ;;
2036 *) echo "\$ac_cs_usage"; exit 1 ;;
2040 ac_given_srcdir=$srcdir
2041 ac_given_INSTALL="$INSTALL"
2043 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2045 # Protect against being on the right side of a sed subst in config.status.
2046 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
2047 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
2050 s%@CFLAGS@%$CFLAGS%g
2051 s%@CPPFLAGS@%$CPPFLAGS%g
2052 s%@CXXFLAGS@%$CXXFLAGS%g
2054 s%@LDFLAGS@%$LDFLAGS%g
2056 s%@exec_prefix@%$exec_prefix%g
2057 s%@prefix@%$prefix%g
2058 s%@program_transform_name@%$program_transform_name%g
2061 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2062 s%@INSTALL_DATA@%$INSTALL_DATA%g
2063 s%@RANLIB@%$RANLIB%g
2065 s%@host_alias@%$host_alias%g
2066 s%@host_cpu@%$host_cpu%g
2067 s%@host_vendor@%$host_vendor%g
2068 s%@host_os@%$host_os%g
2069 s%@target@%$target%g
2070 s%@target_alias@%$target_alias%g
2071 s%@target_cpu@%$target_cpu%g
2072 s%@target_vendor@%$target_vendor%g
2073 s%@target_os@%$target_os%g
2075 s%@build_alias@%$build_alias%g
2076 s%@build_cpu@%$build_cpu%g
2077 s%@build_vendor@%$build_vendor%g
2078 s%@build_os@%$build_os%g
2079 s%@X_CFLAGS@%$X_CFLAGS%g
2080 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2081 s%@X_LIBS@%$X_LIBS%g
2082 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2083 s%@TKHDIR@%$TKHDIR%g
2085 s%@TCLHDIR@%$TCLHDIR%g
2086 s%@TCLLIB@%$TCLLIB%g
2087 s%@ENABLE_GDBTK@%$ENABLE_GDBTK%g
2088 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
2089 s%@ENABLE_CLIBS@%$ENABLE_CLIBS%g
2090 s%@ENABLE_OBS@%$ENABLE_OBS%g
2091 /@host_makefile_frag@/r $host_makefile_frag
2092 s%@host_makefile_frag@%%g
2093 /@target_makefile_frag@/r $target_makefile_frag
2094 s%@target_makefile_frag@%%g
2096 s%@subdirs@%$subdirs%g
2100 cat >> $CONFIG_STATUS <<EOF
2102 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2104 cat >> $CONFIG_STATUS <<\EOF
2105 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2106 # Support "outfile[:infile]", defaulting infile="outfile.in".
2108 *:*) ac_file_in=`echo "$ac_file"|
sed 's%.*:%%'`
2109 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
2110 *) ac_file_in="${ac_file}.in" ;;
2113 # Adjust relative srcdir, etc. for subdirectories.
2115 # Remove last slash and all that follows it. Not all systems have dirname.
2116 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2117 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2118 # The file is in a subdirectory.
2119 test ! -d "$ac_dir" && mkdir "$ac_dir"
2120 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
2121 # A "../" for each directory in $ac_dir_suffix.
2122 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
2124 ac_dir_suffix= ac_dots=
2127 case "$ac_given_srcdir" in
2129 if test -z "$ac_dots"; then top_srcdir=.
2130 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
2131 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2133 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2134 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2137 case "$ac_given_INSTALL" in
2138 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2139 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2141 echo creating "$ac_file"
2143 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2145 *Makefile*) ac_comsub="1i\\
2146 # $configure_input" ;;
2150 s%@configure_input@%$configure_input%g
2151 s%@srcdir@%$srcdir%g
2152 s%@top_srcdir@%$top_srcdir%g
2153 s%@INSTALL@%$INSTALL%g
2154 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2160 cat >> $CONFIG_STATUS <<EOF
2165 cat >> $CONFIG_STATUS <<\EOF
2166 srcdir=$ac_given_srcdir
2167 while test -n "$ac_sources"; do
2168 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2169 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2171 echo "linking $srcdir/$ac_source to $ac_dest"
2173 if test ! -r $srcdir/$ac_source; then
2174 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2178 # Make relative symlinks.
2179 # Remove last slash and all that follows it. Not all systems have dirname.
2180 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
2181 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2182 # The dest file is in a subdirectory.
2183 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2184 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2185 # A "../" for each directory in $ac_dest_dir_suffix.
2186 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2188 ac_dest_dir_suffix= ac_dots=
2192 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2193 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2196 # Make a symlink if possible; otherwise try a hard link.
2197 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2198 ln $srcdir/$ac_source $ac_dest; then :
2200 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2204 cat >> $CONFIG_STATUS <<EOF
2206 gdb_host_cpu=$gdb_host_cpu
2207 gdb_target_cpu=$gdb_target_cpu
2208 nativefile=$nativefile
2211 cat >> $CONFIG_STATUS <<\EOF
2213 if test "${nativefile}" = ""; then
2214 sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
2215 < Makefile > Makefile.tem
2216 mv -f Makefile.tem Makefile
2219 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
2220 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
2221 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
2222 mv -f Makefile.tmp Makefile
2228 grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
2229 echo "source ${srcdir}/.gdbinit" >> .gdbinit
2234 chmod +x $CONFIG_STATUS
2235 rm -fr confdefs* $ac_clean_files
2236 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2238 if test "$no_recursion" != yes; then
2240 # Remove --cache-file and --srcdir arguments so they do not pile up.
2241 ac_sub_configure_args=
2243 for ac_arg in $ac_configure_args; do
2244 if test -n "$ac_prev"; then
2249 -cache-file | --cache-file | --cache-fil | --cache-fi \
2250 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2251 ac_prev=cache_file ;;
2252 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2253 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2259 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2263 for ac_config_dir in $configdirs; do
2265 # Do not complain, so a configure script can configure whichever
2266 # parts of a large source tree are present.
2267 if test ! -d $srcdir/$ac_config_dir; then
2271 echo configuring in $ac_config_dir
2276 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2278 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2287 .) # No --srcdir option. We are building in place.
2288 ac_sub_srcdir=$srcdir ;;
2289 /*) # Absolute path.
2290 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2292 ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
2295 # Check for guested configure; otherwise get Cygnus style configure.
2296 if test -f $ac_sub_srcdir/configure; then
2297 ac_sub_configure=$ac_sub_srcdir/configure
2298 elif test -f $ac_sub_srcdir/configure.in; then
2299 ac_sub_configure=$ac_configure
2301 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2305 # The recursion is here.
2306 if test -n "$ac_sub_configure"; then
2308 # Make the cache file name correct relative to the subdirectory.
2309 # A "../" for each directory in /$ac_config_dir.
2310 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2311 case "$cache_file" in
2312 /*) ac_sub_cache_file=$cache_file ;;
2314 ac_sub_cache_file="$ac_dots$cache_file" ;;
2316 case "$ac_given_INSTALL" in
2317 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2318 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2321 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2322 # The eval makes quoting arguments work.
2323 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2326 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }