3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --disable-nls do not use Native Language Support"
20 --with-included-gettext use the GNU gettext library included here"
22 --enable-multi-ice Build the multi-ice-gdb-server"
24 --enable-gdbcli Enable GDB-CLI interface"
26 --enable-gdbmi Enable GDB-MI interface"
28 --with-uiout Use new uiout functions instead of *printf's"
30 --enable-tui Enable full-screen terminal user interface"
32 --enable-netrom Enable NetROM support"
34 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
36 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
38 --with-mmalloc Use memory mapped malloc package"
40 --with-included-regex Use included regex"
42 --with-cpu=CPU Set the default CPU variant to debug"
44 --enable-gdbtk Enable GDBTK GUI front end"
46 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
48 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
50 --with-tclinclude=DIR Directory where tcl private headers are"
52 --with-tkinclude=DIR Directory where tk private headers are"
54 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
56 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
58 --with-tixconfig Directory containing tix configuration (tixConfig.sh)"
60 --with-x use the X Window System"
62 --enable-sim Link gdb with simulator"
64 --enable-shared Use shared libraries"
66 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
68 # Initialize some variables set by options.
69 # The variables have the same names as the options, with
70 # dashes changed to underlines.
72 cache_file=./config.cache
81 program_transform_name=s,x,x,
90 bindir='${exec_prefix}/bin'
91 sbindir='${exec_prefix}/sbin'
92 libexecdir='${exec_prefix}/libexec'
93 datadir='${prefix}/share'
94 sysconfdir='${prefix}/etc'
95 sharedstatedir='${prefix}/com'
96 localstatedir='${prefix}/var'
97 libdir='${exec_prefix}/lib'
98 includedir='${prefix}/include'
99 oldincludedir='/usr/include'
100 infodir='${prefix}/info'
101 mandir='${prefix}/man'
103 # Initialize some other variables.
106 SHELL=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 # Accept the important Cygnus configure options, so we can diagnose typos.
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
135 -build | --build | --buil | --bui | --bu)
137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138 build="$ac_optarg" ;;
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
151 datadir="$ac_optarg" ;;
153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --site-file=FILE use FILE as the site file
200 --version print the version of autoconf that created configure
201 Directory and file names:
202 --prefix=PREFIX install architecture-independent files in PREFIX
204 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
206 --bindir=DIR user executables in DIR [EPREFIX/bin]
207 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
208 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
209 --datadir=DIR read-only architecture-independent data in DIR
211 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
212 --sharedstatedir=DIR modifiable architecture-independent data in DIR
214 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
215 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
216 --includedir=DIR C header files in DIR [PREFIX/include]
217 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
218 --infodir=DIR info documentation in DIR [PREFIX/info]
219 --mandir=DIR man documentation in DIR [PREFIX/man]
220 --srcdir=DIR find the sources in DIR [configure dir or ..]
221 --program-prefix=PREFIX prepend PREFIX to installed program names
222 --program-suffix=SUFFIX append SUFFIX to installed program names
223 --program-transform-name=PROGRAM
224 run sed PROGRAM on installed program names
228 --build=BUILD configure for building on BUILD [BUILD=HOST]
229 --host=HOST configure for HOST [guessed]
230 --target=TARGET configure for TARGET [TARGET=HOST]
231 Features and packages:
232 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
233 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
234 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
235 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
236 --x-includes=DIR X include files are in DIR
237 --x-libraries=DIR X library files are in DIR
239 if test -n "$ac_help"; then
240 echo "--enable and --with options recognized:$ac_help"
244 -host | --host | --hos | --ho)
246 -host=* | --host=* | --hos=* | --ho=*)
249 -includedir | --includedir | --includedi | --included | --include \
250 | --includ | --inclu | --incl | --inc)
251 ac_prev=includedir ;;
252 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
253 | --includ=* | --inclu=* | --incl=* | --inc=*)
254 includedir="$ac_optarg" ;;
256 -infodir | --infodir | --infodi | --infod | --info | --inf)
258 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
259 infodir="$ac_optarg" ;;
261 -libdir | --libdir | --libdi | --libd)
263 -libdir=* | --libdir=* | --libdi=* | --libd=*)
264 libdir="$ac_optarg" ;;
266 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
267 | --libexe | --libex | --libe)
268 ac_prev=libexecdir ;;
269 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
270 | --libexe=* | --libex=* | --libe=*)
271 libexecdir="$ac_optarg" ;;
273 -localstatedir | --localstatedir | --localstatedi | --localstated \
274 | --localstate | --localstat | --localsta | --localst \
275 | --locals | --local | --loca | --loc | --lo)
276 ac_prev=localstatedir ;;
277 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
278 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
279 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
280 localstatedir="$ac_optarg" ;;
282 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
284 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
285 mandir="$ac_optarg" ;;
288 # Obsolete; use --without-fp.
291 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
295 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
296 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
300 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
301 | --oldin | --oldi | --old | --ol | --o)
302 ac_prev=oldincludedir ;;
303 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
304 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
305 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
306 oldincludedir="$ac_optarg" ;;
308 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
310 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
311 prefix="$ac_optarg" ;;
313 -program-prefix | --program-prefix | --program-prefi | --program-pref \
314 | --program-pre | --program-pr | --program-p)
315 ac_prev=program_prefix ;;
316 -program-prefix=* | --program-prefix=* | --program-prefi=* \
317 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
318 program_prefix="$ac_optarg" ;;
320 -program-suffix | --program-suffix | --program-suffi | --program-suff \
321 | --program-suf | --program-su | --program-s)
322 ac_prev=program_suffix ;;
323 -program-suffix=* | --program-suffix=* | --program-suffi=* \
324 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
325 program_suffix="$ac_optarg" ;;
327 -program-transform-name | --program-transform-name \
328 | --program-transform-nam | --program-transform-na \
329 | --program-transform-n | --program-transform- \
330 | --program-transform | --program-transfor \
331 | --program-transfo | --program-transf \
332 | --program-trans | --program-tran \
333 | --progr-tra | --program-tr | --program-t)
334 ac_prev=program_transform_name ;;
335 -program-transform-name=* | --program-transform-name=* \
336 | --program-transform-nam=* | --program-transform-na=* \
337 | --program-transform-n=* | --program-transform-=* \
338 | --program-transform=* | --program-transfor=* \
339 | --program-transfo=* | --program-transf=* \
340 | --program-trans=* | --program-tran=* \
341 | --progr-tra=* | --program-tr=* | --program-t=*)
342 program_transform_name="$ac_optarg" ;;
344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
345 | -silent | --silent | --silen | --sile | --sil)
348 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
350 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
352 sbindir="$ac_optarg" ;;
354 -sharedstatedir | --sharedstatedir | --sharedstatedi \
355 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
356 | --sharedst | --shareds | --shared | --share | --shar \
358 ac_prev=sharedstatedir ;;
359 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
360 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
361 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
363 sharedstatedir="$ac_optarg" ;;
365 -site | --site | --sit)
367 -site=* | --site=* | --sit=*)
370 -site-file | --site-file | --site-fil | --site-fi | --site-f)
372 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
373 sitefile="$ac_optarg" ;;
375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378 srcdir="$ac_optarg" ;;
380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
381 | --syscon | --sysco | --sysc | --sys | --sy)
382 ac_prev=sysconfdir ;;
383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
385 sysconfdir="$ac_optarg" ;;
387 -target | --target | --targe | --targ | --tar | --ta | --t)
389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
390 target="$ac_optarg" ;;
392 -v | -verbose | --verbose | --verbos | --verbo | --verb)
395 -version | --version | --versio | --versi | --vers)
396 echo "configure generated by autoconf version 2.13"
400 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* | --without-*)
413 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
422 # Obsolete; use --with-x.
425 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
426 | --x-incl | --x-inc | --x-in | --x-i)
427 ac_prev=x_includes ;;
428 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
429 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
430 x_includes="$ac_optarg" ;;
432 -x-libraries | --x-libraries | --x-librarie | --x-librari \
433 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
434 ac_prev=x_libraries ;;
435 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
436 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
437 x_libraries="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c) ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file=main.c
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted=yes
519 # Try the directory containing this script, then its parent.
521 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
524 if test ! -r $srcdir/$ac_unique_file; then
528 ac_srcdir_defaulted=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$sitefile"; then
541 if test -z "$CONFIG_SITE"; then
542 if test "x$prefix" != xNONE; then
543 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 CONFIG_SITE="$sitefile"
551 for ac_site_file in $CONFIG_SITE; do
552 if test -r "$ac_site_file"; then
553 echo "loading site script $ac_site_file"
558 if test -r "$cache_file"; then
559 echo "loading cache $cache_file"
562 echo "creating cache $cache_file"
567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
568 ac_cpp='$CPP $CPPFLAGS'
569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
571 cross_compiling=$ac_cv_prog_cc_cross
575 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
577 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
584 ac_n= ac_c='\c' ac_t=
589 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
590 echo "configure:591: checking whether to enable maintainer-specific portions of Makefiles" >&5
591 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
592 if test "${enable_maintainer_mode+set}" = set; then
593 enableval="$enable_maintainer_mode"
594 USE_MAINTAINER_MODE=$enableval
596 USE_MAINTAINER_MODE=no
599 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
602 if test $USE_MAINTAINER_MODE = yes; then
603 MAINTAINER_MODE_TRUE=
604 MAINTAINER_MODE_FALSE='#'
606 MAINTAINER_MODE_TRUE='#'
607 MAINTAINER_MODE_FALSE=
609 MAINT=$MAINTAINER_MODE_TRUE
613 # Extract the first word of "gcc", so it can be a program name with args.
614 set dummy gcc; ac_word=$2
615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
616 echo "configure:617: checking for $ac_word" >&5
617 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
620 if test -n "$CC"; then
621 ac_cv_prog_CC="$CC" # Let the user override the test.
623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
625 for ac_dir in $ac_dummy; do
626 test -z "$ac_dir" && ac_dir=.
627 if test -f $ac_dir/$ac_word; then
636 if test -n "$CC"; then
637 echo "$ac_t""$CC" 1>&6
639 echo "$ac_t""no" 1>&6
642 if test -z "$CC"; then
643 # Extract the first word of "cc", so it can be a program name with args.
644 set dummy cc; ac_word=$2
645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
646 echo "configure:647: checking for $ac_word" >&5
647 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
648 echo $ac_n "(cached) $ac_c" 1>&6
650 if test -n "$CC"; then
651 ac_cv_prog_CC="$CC" # Let the user override the test.
653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
656 for ac_dir in $ac_dummy; do
657 test -z "$ac_dir" && ac_dir=.
658 if test -f $ac_dir/$ac_word; then
659 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
668 if test $ac_prog_rejected = yes; then
669 # We found a bogon in the path, so make sure we never use it.
670 set dummy $ac_cv_prog_CC
672 if test $# -gt 0; then
673 # We chose a different compiler from the bogus one.
674 # However, it has the same basename, so the bogon will be chosen
675 # first if we set CC to just the basename; use the full file name.
677 set dummy "$ac_dir/$ac_word" "$@"
685 if test -n "$CC"; then
686 echo "$ac_t""$CC" 1>&6
688 echo "$ac_t""no" 1>&6
691 if test -z "$CC"; then
694 # Extract the first word of "cl", so it can be a program name with args.
695 set dummy cl; ac_word=$2
696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
697 echo "configure:698: checking for $ac_word" >&5
698 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
701 if test -n "$CC"; then
702 ac_cv_prog_CC="$CC" # Let the user override the test.
704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
706 for ac_dir in $ac_dummy; do
707 test -z "$ac_dir" && ac_dir=.
708 if test -f $ac_dir/$ac_word; then
717 if test -n "$CC"; then
718 echo "$ac_t""$CC" 1>&6
720 echo "$ac_t""no" 1>&6
725 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
729 echo "configure:730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
733 ac_cpp='$CPP $CPPFLAGS'
734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
736 cross_compiling=$ac_cv_prog_cc_cross
738 cat > conftest.$ac_ext << EOF
740 #line 741 "configure"
741 #include "confdefs.h"
745 if { (eval echo configure:746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
746 ac_cv_prog_cc_works=yes
747 # If we can't run a trivial program, we are probably using a cross compiler.
748 if (./conftest; exit) 2>/dev/null; then
749 ac_cv_prog_cc_cross=no
751 ac_cv_prog_cc_cross=yes
754 echo "configure: failed program was:" >&5
755 cat conftest.$ac_ext >&5
756 ac_cv_prog_cc_works=no
760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
761 ac_cpp='$CPP $CPPFLAGS'
762 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
763 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
764 cross_compiling=$ac_cv_prog_cc_cross
766 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
767 if test $ac_cv_prog_cc_works = no; then
768 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
770 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
771 echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
772 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
773 cross_compiling=$ac_cv_prog_cc_cross
775 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
776 echo "configure:777: checking whether we are using GNU C" >&5
777 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
780 cat > conftest.c <<EOF
785 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
792 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
794 if test $ac_cv_prog_gcc = yes; then
800 ac_test_CFLAGS="${CFLAGS+set}"
801 ac_save_CFLAGS="$CFLAGS"
803 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
804 echo "configure:805: checking whether ${CC-cc} accepts -g" >&5
805 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
808 echo 'void f(){}' > conftest.c
809 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
818 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
819 if test "$ac_test_CFLAGS" = set; then
820 CFLAGS="$ac_save_CFLAGS"
821 elif test $ac_cv_prog_cc_g = yes; then
822 if test "$GCC" = yes; then
828 if test "$GCC" = yes; then
835 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
836 echo "configure:837: checking how to run the C preprocessor" >&5
837 # On Suns, sometimes $CPP names a directory.
838 if test -n "$CPP" && test -d "$CPP"; then
841 if test -z "$CPP"; then
842 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
845 # This must be in double quotes, not single quotes, because CPP may get
846 # substituted into the Makefile and "${CC-cc}" will confuse make.
848 # On the NeXT, cc -E runs the code through the compiler's parser,
849 # not just through cpp.
850 cat > conftest.$ac_ext <<EOF
851 #line 852 "configure"
852 #include "confdefs.h"
856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
857 { (eval echo configure:858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
859 if test -z "$ac_err"; then
863 echo "configure: failed program was:" >&5
864 cat conftest.$ac_ext >&5
866 CPP="${CC-cc} -E -traditional-cpp"
867 cat > conftest.$ac_ext <<EOF
868 #line 869 "configure"
869 #include "confdefs.h"
873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
874 { (eval echo configure:875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
876 if test -z "$ac_err"; then
880 echo "configure: failed program was:" >&5
881 cat conftest.$ac_ext >&5
883 CPP="${CC-cc} -nologo -E"
884 cat > conftest.$ac_ext <<EOF
885 #line 886 "configure"
886 #include "confdefs.h"
890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
891 { (eval echo configure:892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
893 if test -z "$ac_err"; then
897 echo "configure: failed program was:" >&5
898 cat conftest.$ac_ext >&5
907 ac_cv_prog_CPP="$CPP"
909 CPP="$ac_cv_prog_CPP"
911 ac_cv_prog_CPP="$CPP"
913 echo "$ac_t""$CPP" 1>&6
915 echo $ac_n "checking for AIX""... $ac_c" 1>&6
916 echo "configure:917: checking for AIX" >&5
917 cat > conftest.$ac_ext <<EOF
918 #line 919 "configure"
919 #include "confdefs.h"
925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
926 egrep "yes" >/dev/null 2>&1; then
928 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
929 #define _ALL_SOURCE 1
934 echo "$ac_t""no" 1>&6
939 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
940 echo "configure:941: checking for POSIXized ISC" >&5
941 if test -d /etc/conf/kconfig.d &&
942 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
944 echo "$ac_t""yes" 1>&6
945 ISC=yes # If later tests want to check for ISC.
946 cat >> confdefs.h <<\EOF
947 #define _POSIX_SOURCE 1
950 if test "$GCC" = yes; then
956 echo "$ac_t""no" 1>&6
963 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
964 echo "configure:965: checking for ${CC-cc} option to accept ANSI C" >&5
965 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
968 am_cv_prog_cc_stdc=no
970 # Don't try gcc -ansi; that turns off useful extensions and
971 # breaks some systems' header files.
973 # Ultrix and OSF/1 -std1
974 # HP-UX 10.20 and later -Ae
975 # HP-UX older versions -Aa -D_HPUX_SOURCE
976 # SVR4 -Xc -D__EXTENSIONS__
977 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
979 CC="$ac_save_CC $ac_arg"
980 cat > conftest.$ac_ext <<EOF
981 #line 982 "configure"
982 #include "confdefs.h"
985 #include <sys/types.h>
986 #include <sys/stat.h>
987 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
988 struct buf { int x; };
989 FILE * (*rcsopen) (struct buf *, struct stat *, int);
990 static char *e (p, i)
996 static char *f (char * (*g) (char **, int), char **p, ...)
1001 s = g (p, va_arg (v,int));
1005 int test (int i, double x);
1006 struct s1 {int (*f) (int a);};
1007 struct s2 {int (*f) (double a);};
1008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1014 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1018 if { (eval echo configure:1019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1020 am_cv_prog_cc_stdc="$ac_arg"; break
1022 echo "configure: failed program was:" >&5
1023 cat conftest.$ac_ext >&5
1031 if test -z "$am_cv_prog_cc_stdc"; then
1032 echo "$ac_t""none needed" 1>&6
1034 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1036 case "x$am_cv_prog_cc_stdc" in
1038 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1043 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
1044 if test -f $ac_dir/install-sh; then
1046 ac_install_sh="$ac_aux_dir/install-sh -c"
1048 elif test -f $ac_dir/install.sh; then
1050 ac_install_sh="$ac_aux_dir/install.sh -c"
1054 if test -z "$ac_aux_dir"; then
1055 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1057 ac_config_guess=$ac_aux_dir/config.guess
1058 ac_config_sub=$ac_aux_dir/config.sub
1059 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1062 # Do some error checking and defaulting for the host and target type.
1064 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1067 # 1. You are not allowed to specify --host, --target, and nonopt at the
1069 # 2. Host defaults to nonopt.
1070 # 3. If nonopt is not specified, then host defaults to the current host,
1071 # as determined by config.guess.
1072 # 4. Target and build default to nonopt.
1073 # 5. If nonopt is not specified, then target and build default to host.
1075 # The aliases save the names the user supplied, while $host etc.
1076 # will get canonicalized.
1077 case $host---$target---$nonopt in
1078 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1079 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1083 # Make sure we can run config.sub.
1084 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1085 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1088 echo $ac_n "checking host system type""... $ac_c" 1>&6
1089 echo "configure:1090: checking host system type" >&5
1092 case "$host_alias" in
1096 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1097 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1099 *) host_alias=$nonopt ;;
1103 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1104 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1105 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1106 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1107 echo "$ac_t""$host" 1>&6
1109 echo $ac_n "checking target system type""... $ac_c" 1>&6
1110 echo "configure:1111: checking target system type" >&5
1112 target_alias=$target
1113 case "$target_alias" in
1116 NONE) target_alias=$host_alias ;;
1117 *) target_alias=$nonopt ;;
1121 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1122 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1123 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1124 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1125 echo "$ac_t""$target" 1>&6
1127 echo $ac_n "checking build system type""... $ac_c" 1>&6
1128 echo "configure:1129: checking build system type" >&5
1131 case "$build_alias" in
1134 NONE) build_alias=$host_alias ;;
1135 *) build_alias=$nonopt ;;
1139 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1140 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1141 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1142 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1143 echo "$ac_t""$build" 1>&6
1145 test "$host_alias" != "$target_alias" &&
1146 test "$program_prefix$program_suffix$program_transform_name" = \
1148 program_prefix=${target_alias}-
1152 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1153 echo "configure:1154: checking whether ${MAKE-make} sets \${MAKE}" >&5
1154 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1155 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1158 cat > conftestmake <<\EOF
1160 @echo 'ac_maketemp="${MAKE}"'
1162 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1163 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1164 if test -n "$ac_maketemp"; then
1165 eval ac_cv_prog_make_${ac_make}_set=yes
1167 eval ac_cv_prog_make_${ac_make}_set=no
1171 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1172 echo "$ac_t""yes" 1>&6
1175 echo "$ac_t""no" 1>&6
1176 SET_MAKE="MAKE=${MAKE-make}"
1179 # Extract the first word of "ranlib", so it can be a program name with args.
1180 set dummy ranlib; ac_word=$2
1181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1182 echo "configure:1183: checking for $ac_word" >&5
1183 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1186 if test -n "$RANLIB"; then
1187 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1191 for ac_dir in $ac_dummy; do
1192 test -z "$ac_dir" && ac_dir=.
1193 if test -f $ac_dir/$ac_word; then
1194 ac_cv_prog_RANLIB="ranlib"
1199 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1202 RANLIB="$ac_cv_prog_RANLIB"
1203 if test -n "$RANLIB"; then
1204 echo "$ac_t""$RANLIB" 1>&6
1206 echo "$ac_t""no" 1>&6
1209 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1210 echo "configure:1211: checking for ANSI C header files" >&5
1211 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1214 cat > conftest.$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1223 { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1225 if test -z "$ac_err"; then
1227 ac_cv_header_stdc=yes
1230 echo "configure: failed program was:" >&5
1231 cat conftest.$ac_ext >&5
1233 ac_cv_header_stdc=no
1237 if test $ac_cv_header_stdc = yes; then
1238 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1239 cat > conftest.$ac_ext <<EOF
1240 #line 1241 "configure"
1241 #include "confdefs.h"
1244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1245 egrep "memchr" >/dev/null 2>&1; then
1249 ac_cv_header_stdc=no
1255 if test $ac_cv_header_stdc = yes; then
1256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1257 cat > conftest.$ac_ext <<EOF
1258 #line 1259 "configure"
1259 #include "confdefs.h"
1262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1263 egrep "free" >/dev/null 2>&1; then
1267 ac_cv_header_stdc=no
1273 if test $ac_cv_header_stdc = yes; then
1274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1275 if test "$cross_compiling" = yes; then
1278 cat > conftest.$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1282 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1283 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1284 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1285 int main () { int i; for (i = 0; i < 256; i++)
1286 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1290 if { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1294 echo "configure: failed program was:" >&5
1295 cat conftest.$ac_ext >&5
1297 ac_cv_header_stdc=no
1305 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1306 if test $ac_cv_header_stdc = yes; then
1307 cat >> confdefs.h <<\EOF
1308 #define STDC_HEADERS 1
1313 echo $ac_n "checking for working const""... $ac_c" 1>&6
1314 echo "configure:1315: checking for working const" >&5
1315 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1318 cat > conftest.$ac_ext <<EOF
1319 #line 1320 "configure"
1320 #include "confdefs.h"
1324 /* Ultrix mips cc rejects this. */
1325 typedef int charset[2]; const charset x;
1326 /* SunOS 4.1.1 cc rejects this. */
1327 char const *const *ccp;
1329 /* NEC SVR4.0.2 mips cc rejects this. */
1330 struct point {int x, y;};
1331 static struct point const zero = {0,0};
1332 /* AIX XL C 1.02.0.0 rejects this.
1333 It does not let you subtract one const X* pointer from another in an arm
1334 of an if-expression whose if-part is not a constant expression */
1335 const char *g = "string";
1336 ccp = &g + (g ? g-g : 0);
1337 /* HPUX 7.0 cc rejects these. */
1340 ccp = (char const *const *) p;
1341 { /* SCO 3.2v4 cc rejects this. */
1343 char const *s = 0 ? (char *) 0 : (char const *) 0;
1347 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1349 const int *foo = &x[0];
1352 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1353 typedef const int *iptr;
1357 { /* AIX XL C 1.02.0.0 rejects this saying
1358 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1359 struct s { int j; const int *ap[3]; };
1360 struct s *b; b->j = 5;
1362 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1368 if { (eval echo configure:1369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1372 echo "configure: failed program was:" >&5
1373 cat conftest.$ac_ext >&5
1380 echo "$ac_t""$ac_cv_c_const" 1>&6
1381 if test $ac_cv_c_const = no; then
1382 cat >> confdefs.h <<\EOF
1388 echo $ac_n "checking for inline""... $ac_c" 1>&6
1389 echo "configure:1390: checking for inline" >&5
1390 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1394 for ac_kw in inline __inline__ __inline; do
1395 cat > conftest.$ac_ext <<EOF
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1403 if { (eval echo configure:1404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1405 ac_cv_c_inline=$ac_kw; break
1407 echo "configure: failed program was:" >&5
1408 cat conftest.$ac_ext >&5
1415 echo "$ac_t""$ac_cv_c_inline" 1>&6
1416 case "$ac_cv_c_inline" in
1418 no) cat >> confdefs.h <<\EOF
1422 *) cat >> confdefs.h <<EOF
1423 #define inline $ac_cv_c_inline
1428 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1429 echo "configure:1430: checking for off_t" >&5
1430 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 cat > conftest.$ac_ext <<EOF
1434 #line 1435 "configure"
1435 #include "confdefs.h"
1436 #include <sys/types.h>
1442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1443 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1445 ac_cv_type_off_t=yes
1453 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1454 if test $ac_cv_type_off_t = no; then
1455 cat >> confdefs.h <<\EOF
1461 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1462 echo "configure:1463: checking for size_t" >&5
1463 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1466 cat > conftest.$ac_ext <<EOF
1467 #line 1468 "configure"
1468 #include "confdefs.h"
1469 #include <sys/types.h>
1475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1476 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1478 ac_cv_type_size_t=yes
1481 ac_cv_type_size_t=no
1486 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1487 if test $ac_cv_type_size_t = no; then
1488 cat >> confdefs.h <<\EOF
1489 #define size_t unsigned
1494 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1495 # for constant arguments. Useless!
1496 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1497 echo "configure:1498: checking for working alloca.h" >&5
1498 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1506 char *p = alloca(2 * sizeof(int));
1509 if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1511 ac_cv_header_alloca_h=yes
1513 echo "configure: failed program was:" >&5
1514 cat conftest.$ac_ext >&5
1516 ac_cv_header_alloca_h=no
1521 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1522 if test $ac_cv_header_alloca_h = yes; then
1523 cat >> confdefs.h <<\EOF
1524 #define HAVE_ALLOCA_H 1
1529 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1530 echo "configure:1531: checking for alloca" >&5
1531 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1534 cat > conftest.$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1539 # define alloca __builtin_alloca
1542 # include <malloc.h>
1543 # define alloca _alloca
1546 # include <alloca.h>
1551 # ifndef alloca /* predefined by HP cc +Olibcalls */
1560 char *p = (char *) alloca(1);
1563 if { (eval echo configure:1564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1565 ac_cv_func_alloca_works=yes
1567 echo "configure: failed program was:" >&5
1568 cat conftest.$ac_ext >&5
1570 ac_cv_func_alloca_works=no
1575 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1576 if test $ac_cv_func_alloca_works = yes; then
1577 cat >> confdefs.h <<\EOF
1578 #define HAVE_ALLOCA 1
1583 if test $ac_cv_func_alloca_works = no; then
1584 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1585 # that cause trouble. Some versions do not even contain alloca or
1586 # contain a buggy version. If you still want to use their alloca,
1587 # use ar to extract alloca.o from them instead of compiling alloca.c.
1588 ALLOCA=alloca.${ac_objext}
1589 cat >> confdefs.h <<\EOF
1594 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1595 echo "configure:1596: checking whether alloca needs Cray hooks" >&5
1596 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1597 echo $ac_n "(cached) $ac_c" 1>&6
1599 cat > conftest.$ac_ext <<EOF
1600 #line 1601 "configure"
1601 #include "confdefs.h"
1602 #if defined(CRAY) && ! defined(CRAY2)
1609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1610 egrep "webecray" >/dev/null 2>&1; then
1621 echo "$ac_t""$ac_cv_os_cray" 1>&6
1622 if test $ac_cv_os_cray = yes; then
1623 for ac_func in _getb67 GETB67 getb67; do
1624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1625 echo "configure:1626: checking for $ac_func" >&5
1626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1629 cat > conftest.$ac_ext <<EOF
1630 #line 1631 "configure"
1631 #include "confdefs.h"
1632 /* System header to define __stub macros and hopefully few prototypes,
1633 which can conflict with char $ac_func(); below. */
1635 /* Override any gcc2 internal prototype to avoid an error. */
1636 /* We use char because int might match the return type of a gcc2
1637 builtin and then its argument prototype would still apply. */
1642 /* The GNU C library defines this for functions which it implements
1643 to always fail with ENOSYS. Some functions are actually named
1644 something starting with __ and the normal name is an alias. */
1645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1653 if { (eval echo configure:1654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1655 eval "ac_cv_func_$ac_func=yes"
1657 echo "configure: failed program was:" >&5
1658 cat conftest.$ac_ext >&5
1660 eval "ac_cv_func_$ac_func=no"
1665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1666 echo "$ac_t""yes" 1>&6
1667 cat >> confdefs.h <<EOF
1668 #define CRAY_STACKSEG_END $ac_func
1673 echo "$ac_t""no" 1>&6
1679 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1680 echo "configure:1681: checking stack direction for C alloca" >&5
1681 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 if test "$cross_compiling" = yes; then
1685 ac_cv_c_stack_direction=0
1687 cat > conftest.$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1690 find_stack_direction ()
1692 static char *addr = 0;
1697 return find_stack_direction ();
1700 return (&dummy > addr) ? 1 : -1;
1704 exit (find_stack_direction() < 0);
1707 if { (eval echo configure:1708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1709 ac_cv_c_stack_direction=1
1711 echo "configure: failed program was:" >&5
1712 cat conftest.$ac_ext >&5
1714 ac_cv_c_stack_direction=-1
1721 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1722 cat >> confdefs.h <<EOF
1723 #define STACK_DIRECTION $ac_cv_c_stack_direction
1728 for ac_hdr in unistd.h
1730 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1731 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1732 echo "configure:1733: checking for $ac_hdr" >&5
1733 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1736 cat > conftest.$ac_ext <<EOF
1737 #line 1738 "configure"
1738 #include "confdefs.h"
1741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1742 { (eval echo configure:1743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1744 if test -z "$ac_err"; then
1746 eval "ac_cv_header_$ac_safe=yes"
1749 echo "configure: failed program was:" >&5
1750 cat conftest.$ac_ext >&5
1752 eval "ac_cv_header_$ac_safe=no"
1756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1757 echo "$ac_t""yes" 1>&6
1758 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1759 cat >> confdefs.h <<EOF
1760 #define $ac_tr_hdr 1
1764 echo "$ac_t""no" 1>&6
1768 for ac_func in getpagesize
1770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1771 echo "configure:1772: checking for $ac_func" >&5
1772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1773 echo $ac_n "(cached) $ac_c" 1>&6
1775 cat > conftest.$ac_ext <<EOF
1776 #line 1777 "configure"
1777 #include "confdefs.h"
1778 /* System header to define __stub macros and hopefully few prototypes,
1779 which can conflict with char $ac_func(); below. */
1781 /* Override any gcc2 internal prototype to avoid an error. */
1782 /* We use char because int might match the return type of a gcc2
1783 builtin and then its argument prototype would still apply. */
1788 /* The GNU C library defines this for functions which it implements
1789 to always fail with ENOSYS. Some functions are actually named
1790 something starting with __ and the normal name is an alias. */
1791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1799 if { (eval echo configure:1800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1801 eval "ac_cv_func_$ac_func=yes"
1803 echo "configure: failed program was:" >&5
1804 cat conftest.$ac_ext >&5
1806 eval "ac_cv_func_$ac_func=no"
1811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1812 echo "$ac_t""yes" 1>&6
1813 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1814 cat >> confdefs.h <<EOF
1815 #define $ac_tr_func 1
1819 echo "$ac_t""no" 1>&6
1823 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1824 echo "configure:1825: checking for working mmap" >&5
1825 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1828 if test "$cross_compiling" = yes; then
1829 ac_cv_func_mmap_fixed_mapped=no
1831 cat > conftest.$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1835 /* Thanks to Mike Haertel and Jim Avera for this test.
1836 Here is a matrix of mmap possibilities:
1837 mmap private not fixed
1838 mmap private fixed at somewhere currently unmapped
1839 mmap private fixed at somewhere already mapped
1840 mmap shared not fixed
1841 mmap shared fixed at somewhere currently unmapped
1842 mmap shared fixed at somewhere already mapped
1843 For private mappings, we should verify that changes cannot be read()
1844 back from the file, nor mmap's back from the file at a different
1845 address. (There have been systems where private was not correctly
1846 implemented like the infamous i386 svr4.0, and systems where the
1847 VM page cache was not coherent with the filesystem buffer cache
1848 like early versions of FreeBSD and possibly contemporary NetBSD.)
1849 For shared mappings, we should conversely verify that changes get
1850 propogated back to all the places they're supposed to be.
1852 Grep wants private fixed already mapped.
1853 The main things grep needs to know about mmap are:
1854 * does it exist and is it safe to write into the mmap'd area
1855 * how to use it (BSD variants) */
1856 #include <sys/types.h>
1858 #include <sys/mman.h>
1860 /* This mess was copied from the GNU getpagesize.h. */
1861 #ifndef HAVE_GETPAGESIZE
1862 # ifdef HAVE_UNISTD_H
1863 # include <unistd.h>
1866 /* Assume that all systems that can run configure have sys/param.h. */
1867 # ifndef HAVE_SYS_PARAM_H
1868 # define HAVE_SYS_PARAM_H 1
1871 # ifdef _SC_PAGESIZE
1872 # define getpagesize() sysconf(_SC_PAGESIZE)
1873 # else /* no _SC_PAGESIZE */
1874 # ifdef HAVE_SYS_PARAM_H
1875 # include <sys/param.h>
1876 # ifdef EXEC_PAGESIZE
1877 # define getpagesize() EXEC_PAGESIZE
1878 # else /* no EXEC_PAGESIZE */
1880 # define getpagesize() NBPG * CLSIZE
1883 # endif /* no CLSIZE */
1884 # else /* no NBPG */
1886 # define getpagesize() NBPC
1887 # else /* no NBPC */
1889 # define getpagesize() PAGESIZE
1890 # endif /* PAGESIZE */
1891 # endif /* no NBPC */
1892 # endif /* no NBPG */
1893 # endif /* no EXEC_PAGESIZE */
1894 # else /* no HAVE_SYS_PARAM_H */
1895 # define getpagesize() 8192 /* punt totally */
1896 # endif /* no HAVE_SYS_PARAM_H */
1897 # endif /* no _SC_PAGESIZE */
1899 #endif /* no HAVE_GETPAGESIZE */
1902 extern "C" { void *malloc(unsigned); }
1910 char *data, *data2, *data3;
1914 pagesize = getpagesize();
1917 * First, make a file with some known garbage in it.
1919 data = malloc(pagesize);
1922 for (i = 0; i < pagesize; ++i)
1923 *(data + i) = rand();
1925 fd = creat("conftestmmap", 0600);
1928 if (write(fd, data, pagesize) != pagesize)
1933 * Next, try to mmap the file at a fixed address which
1934 * already has something else allocated at it. If we can,
1935 * also make sure that we see the same garbage.
1937 fd = open("conftestmmap", O_RDWR);
1940 data2 = malloc(2 * pagesize);
1943 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1944 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1945 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1947 for (i = 0; i < pagesize; ++i)
1948 if (*(data + i) != *(data2 + i))
1952 * Finally, make sure that changes to the mapped area
1953 * do not percolate back to the file as seen by read().
1954 * (This is a bug on some variants of i386 svr4.0.)
1956 for (i = 0; i < pagesize; ++i)
1957 *(data2 + i) = *(data2 + i) + 1;
1958 data3 = malloc(pagesize);
1961 if (read(fd, data3, pagesize) != pagesize)
1963 for (i = 0; i < pagesize; ++i)
1964 if (*(data + i) != *(data3 + i))
1967 unlink("conftestmmap");
1972 if { (eval echo configure:1973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1974 ac_cv_func_mmap_fixed_mapped=yes
1976 echo "configure: failed program was:" >&5
1977 cat conftest.$ac_ext >&5
1979 ac_cv_func_mmap_fixed_mapped=no
1986 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1987 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1988 cat >> confdefs.h <<\EOF
1995 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1996 unistd.h values.h sys/param.h
1998 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1999 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2000 echo "configure:2001: checking for $ac_hdr" >&5
2001 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2004 cat > conftest.$ac_ext <<EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2010 { (eval echo configure:2011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2012 if test -z "$ac_err"; then
2014 eval "ac_cv_header_$ac_safe=yes"
2017 echo "configure: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2020 eval "ac_cv_header_$ac_safe=no"
2024 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2025 echo "$ac_t""yes" 1>&6
2026 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2027 cat >> confdefs.h <<EOF
2028 #define $ac_tr_hdr 1
2032 echo "$ac_t""no" 1>&6
2036 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2037 __argz_count __argz_stringify __argz_next
2039 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2040 echo "configure:2041: checking for $ac_func" >&5
2041 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2042 echo $ac_n "(cached) $ac_c" 1>&6
2044 cat > conftest.$ac_ext <<EOF
2045 #line 2046 "configure"
2046 #include "confdefs.h"
2047 /* System header to define __stub macros and hopefully few prototypes,
2048 which can conflict with char $ac_func(); below. */
2050 /* Override any gcc2 internal prototype to avoid an error. */
2051 /* We use char because int might match the return type of a gcc2
2052 builtin and then its argument prototype would still apply. */
2057 /* The GNU C library defines this for functions which it implements
2058 to always fail with ENOSYS. Some functions are actually named
2059 something starting with __ and the normal name is an alias. */
2060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2068 if { (eval echo configure:2069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2070 eval "ac_cv_func_$ac_func=yes"
2072 echo "configure: failed program was:" >&5
2073 cat conftest.$ac_ext >&5
2075 eval "ac_cv_func_$ac_func=no"
2080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2081 echo "$ac_t""yes" 1>&6
2082 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2083 cat >> confdefs.h <<EOF
2084 #define $ac_tr_func 1
2088 echo "$ac_t""no" 1>&6
2093 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2094 for ac_func in stpcpy
2096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2097 echo "configure:2098: checking for $ac_func" >&5
2098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 cat > conftest.$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2104 /* System header to define __stub macros and hopefully few prototypes,
2105 which can conflict with char $ac_func(); below. */
2107 /* Override any gcc2 internal prototype to avoid an error. */
2108 /* We use char because int might match the return type of a gcc2
2109 builtin and then its argument prototype would still apply. */
2114 /* The GNU C library defines this for functions which it implements
2115 to always fail with ENOSYS. Some functions are actually named
2116 something starting with __ and the normal name is an alias. */
2117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2125 if { (eval echo configure:2126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2127 eval "ac_cv_func_$ac_func=yes"
2129 echo "configure: failed program was:" >&5
2130 cat conftest.$ac_ext >&5
2132 eval "ac_cv_func_$ac_func=no"
2137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2138 echo "$ac_t""yes" 1>&6
2139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2140 cat >> confdefs.h <<EOF
2141 #define $ac_tr_func 1
2145 echo "$ac_t""no" 1>&6
2150 if test "${ac_cv_func_stpcpy}" = "yes"; then
2151 cat >> confdefs.h <<\EOF
2152 #define HAVE_STPCPY 1
2157 if test $ac_cv_header_locale_h = yes; then
2158 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2159 echo "configure:2160: checking for LC_MESSAGES" >&5
2160 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2163 cat > conftest.$ac_ext <<EOF
2164 #line 2165 "configure"
2165 #include "confdefs.h"
2171 if { (eval echo configure:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2173 am_cv_val_LC_MESSAGES=yes
2175 echo "configure: failed program was:" >&5
2176 cat conftest.$ac_ext >&5
2178 am_cv_val_LC_MESSAGES=no
2183 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2184 if test $am_cv_val_LC_MESSAGES = yes; then
2185 cat >> confdefs.h <<\EOF
2186 #define HAVE_LC_MESSAGES 1
2191 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2192 echo "configure:2193: checking whether NLS is requested" >&5
2193 # Check whether --enable-nls or --disable-nls was given.
2194 if test "${enable_nls+set}" = set; then
2195 enableval="$enable_nls"
2201 echo "$ac_t""$USE_NLS" 1>&6
2204 USE_INCLUDED_LIBINTL=no
2206 if test "$USE_NLS" = "yes"; then
2207 cat >> confdefs.h <<\EOF
2208 #define ENABLE_NLS 1
2211 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2212 echo "configure:2213: checking whether included gettext is requested" >&5
2213 # Check whether --with-included-gettext or --without-included-gettext was given.
2214 if test "${with_included_gettext+set}" = set; then
2215 withval="$with_included_gettext"
2216 nls_cv_force_use_gnu_gettext=$withval
2218 nls_cv_force_use_gnu_gettext=no
2221 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2223 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2224 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2226 nls_cv_header_libgt=
2229 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2230 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2231 echo "configure:2232: checking for libintl.h" >&5
2232 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2235 cat > conftest.$ac_ext <<EOF
2236 #line 2237 "configure"
2237 #include "confdefs.h"
2238 #include <libintl.h>
2240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2241 { (eval echo configure:2242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2243 if test -z "$ac_err"; then
2245 eval "ac_cv_header_$ac_safe=yes"
2248 echo "configure: failed program was:" >&5
2249 cat conftest.$ac_ext >&5
2251 eval "ac_cv_header_$ac_safe=no"
2255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2256 echo "$ac_t""yes" 1>&6
2257 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2258 echo "configure:2259: checking for gettext in libc" >&5
2259 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2260 echo $ac_n "(cached) $ac_c" 1>&6
2262 cat > conftest.$ac_ext <<EOF
2263 #line 2264 "configure"
2264 #include "confdefs.h"
2265 #include <libintl.h>
2267 return (int) gettext ("")
2270 if { (eval echo configure:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2272 gt_cv_func_gettext_libc=yes
2274 echo "configure: failed program was:" >&5
2275 cat conftest.$ac_ext >&5
2277 gt_cv_func_gettext_libc=no
2282 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2284 if test "$gt_cv_func_gettext_libc" != "yes"; then
2285 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2286 echo "configure:2287: checking for bindtextdomain in -lintl" >&5
2287 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2289 echo $ac_n "(cached) $ac_c" 1>&6
2291 ac_save_LIBS="$LIBS"
2293 cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2296 /* Override any gcc2 internal prototype to avoid an error. */
2297 /* We use char because int might match the return type of a gcc2
2298 builtin and then its argument prototype would still apply. */
2299 char bindtextdomain();
2305 if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2307 eval "ac_cv_lib_$ac_lib_var=yes"
2309 echo "configure: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2312 eval "ac_cv_lib_$ac_lib_var=no"
2315 LIBS="$ac_save_LIBS"
2318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2319 echo "$ac_t""yes" 1>&6
2320 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2321 echo "configure:2322: checking for gettext in libintl" >&5
2322 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2325 cat > conftest.$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2330 return (int) gettext ("")
2333 if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2335 gt_cv_func_gettext_libintl=yes
2337 echo "configure: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2340 gt_cv_func_gettext_libintl=no
2345 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2347 echo "$ac_t""no" 1>&6
2352 if test "$gt_cv_func_gettext_libc" = "yes" \
2353 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2354 cat >> confdefs.h <<\EOF
2355 #define HAVE_GETTEXT 1
2358 # Extract the first word of "msgfmt", so it can be a program name with args.
2359 set dummy msgfmt; ac_word=$2
2360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2361 echo "configure:2362: checking for $ac_word" >&5
2362 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2367 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2371 for ac_dir in $PATH; do
2372 test -z "$ac_dir" && ac_dir=.
2373 if test -f $ac_dir/$ac_word; then
2374 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2375 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2381 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2385 MSGFMT="$ac_cv_path_MSGFMT"
2386 if test -n "$MSGFMT"; then
2387 echo "$ac_t""$MSGFMT" 1>&6
2389 echo "$ac_t""no" 1>&6
2391 if test "$MSGFMT" != "no"; then
2392 for ac_func in dcgettext
2394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2395 echo "configure:2396: checking for $ac_func" >&5
2396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2402 /* System header to define __stub macros and hopefully few prototypes,
2403 which can conflict with char $ac_func(); below. */
2405 /* Override any gcc2 internal prototype to avoid an error. */
2406 /* We use char because int might match the return type of a gcc2
2407 builtin and then its argument prototype would still apply. */
2412 /* The GNU C library defines this for functions which it implements
2413 to always fail with ENOSYS. Some functions are actually named
2414 something starting with __ and the normal name is an alias. */
2415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2423 if { (eval echo configure:2424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2425 eval "ac_cv_func_$ac_func=yes"
2427 echo "configure: failed program was:" >&5
2428 cat conftest.$ac_ext >&5
2430 eval "ac_cv_func_$ac_func=no"
2435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2436 echo "$ac_t""yes" 1>&6
2437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2438 cat >> confdefs.h <<EOF
2439 #define $ac_tr_func 1
2443 echo "$ac_t""no" 1>&6
2447 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2448 set dummy gmsgfmt; ac_word=$2
2449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2450 echo "configure:2451: checking for $ac_word" >&5
2451 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2456 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2459 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2464 for ac_dir in $ac_dummy; do
2465 test -z "$ac_dir" && ac_dir=.
2466 if test -f $ac_dir/$ac_word; then
2467 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2472 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2476 GMSGFMT="$ac_cv_path_GMSGFMT"
2477 if test -n "$GMSGFMT"; then
2478 echo "$ac_t""$GMSGFMT" 1>&6
2480 echo "$ac_t""no" 1>&6
2483 # Extract the first word of "xgettext", so it can be a program name with args.
2484 set dummy xgettext; ac_word=$2
2485 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2486 echo "configure:2487: checking for $ac_word" >&5
2487 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2488 echo $ac_n "(cached) $ac_c" 1>&6
2492 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2496 for ac_dir in $PATH; do
2497 test -z "$ac_dir" && ac_dir=.
2498 if test -f $ac_dir/$ac_word; then
2499 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2500 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2506 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2510 XGETTEXT="$ac_cv_path_XGETTEXT"
2511 if test -n "$XGETTEXT"; then
2512 echo "$ac_t""$XGETTEXT" 1>&6
2514 echo "$ac_t""no" 1>&6
2517 cat > conftest.$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2522 extern int _nl_msg_cat_cntr;
2523 return _nl_msg_cat_cntr
2526 if { (eval echo configure:2527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2531 echo "configure: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2543 echo "$ac_t""no" 1>&6
2548 if test "$CATOBJEXT" = "NONE"; then
2549 nls_cv_use_gnu_gettext=yes
2553 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2554 INTLOBJS="\$(GETTOBJS)"
2555 # Extract the first word of "msgfmt", so it can be a program name with args.
2556 set dummy msgfmt; ac_word=$2
2557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2558 echo "configure:2559: checking for $ac_word" >&5
2559 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2560 echo $ac_n "(cached) $ac_c" 1>&6
2564 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2568 for ac_dir in $PATH; do
2569 test -z "$ac_dir" && ac_dir=.
2570 if test -f $ac_dir/$ac_word; then
2571 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2572 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2578 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2582 MSGFMT="$ac_cv_path_MSGFMT"
2583 if test -n "$MSGFMT"; then
2584 echo "$ac_t""$MSGFMT" 1>&6
2586 echo "$ac_t""no" 1>&6
2589 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2590 set dummy gmsgfmt; ac_word=$2
2591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2592 echo "configure:2593: checking for $ac_word" >&5
2593 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2598 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2601 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2606 for ac_dir in $ac_dummy; do
2607 test -z "$ac_dir" && ac_dir=.
2608 if test -f $ac_dir/$ac_word; then
2609 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2614 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2618 GMSGFMT="$ac_cv_path_GMSGFMT"
2619 if test -n "$GMSGFMT"; then
2620 echo "$ac_t""$GMSGFMT" 1>&6
2622 echo "$ac_t""no" 1>&6
2625 # Extract the first word of "xgettext", so it can be a program name with args.
2626 set dummy xgettext; ac_word=$2
2627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2628 echo "configure:2629: checking for $ac_word" >&5
2629 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2634 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2638 for ac_dir in $PATH; do
2639 test -z "$ac_dir" && ac_dir=.
2640 if test -f $ac_dir/$ac_word; then
2641 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2642 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2648 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2652 XGETTEXT="$ac_cv_path_XGETTEXT"
2653 if test -n "$XGETTEXT"; then
2654 echo "$ac_t""$XGETTEXT" 1>&6
2656 echo "$ac_t""no" 1>&6
2660 USE_INCLUDED_LIBINTL=yes
2664 INTLDEPS='$(top_builddir)/../intl/libintl.a'
2666 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
2667 nls_cv_header_intl=libintl.h
2668 nls_cv_header_libgt=libgettext.h
2671 if test "$XGETTEXT" != ":"; then
2672 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
2675 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2680 # We need to process the po/ directory.
2684 nls_cv_header_intl=libintl.h
2685 nls_cv_header_libgt=libgettext.h
2688 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2689 # because some of the sources are only built for this goal.
2690 if test "$PACKAGE" = gettext; then
2692 USE_INCLUDED_LIBINTL=yes
2695 for lang in $ALL_LINGUAS; do
2696 GMOFILES="$GMOFILES $lang.gmo"
2697 POFILES="$POFILES $lang.po"
2713 if test "x$CATOBJEXT" != "x"; then
2714 if test "x$ALL_LINGUAS" = "x"; then
2717 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2718 echo "configure:2719: checking for catalogs to be installed" >&5
2720 for lang in ${LINGUAS=$ALL_LINGUAS}; do
2721 case "$ALL_LINGUAS" in
2722 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
2725 LINGUAS=$NEW_LINGUAS
2726 echo "$ac_t""$LINGUAS" 1>&6
2729 if test -n "$LINGUAS"; then
2730 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2734 if test $ac_cv_header_locale_h = yes; then
2735 INCLUDE_LOCALE_H="#include <locale.h>"
2738 /* The system does not provide the header <locale.h>. Take care yourself. */"
2742 if test -f $srcdir/po2tbl.sed.in; then
2743 if test "$CATOBJEXT" = ".cat"; then
2744 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2745 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2746 echo "configure:2747: checking for linux/version.h" >&5
2747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2750 cat > conftest.$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2753 #include <linux/version.h>
2755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2756 { (eval echo configure:2757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2758 if test -z "$ac_err"; then
2760 eval "ac_cv_header_$ac_safe=yes"
2763 echo "configure: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2766 eval "ac_cv_header_$ac_safe=no"
2770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2771 echo "$ac_t""yes" 1>&6
2774 echo "$ac_t""no" 1>&6
2779 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
2781 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2782 $srcdir/po2tbl.sed.in > po2tbl.sed
2785 if test "$PACKAGE" = "gettext"; then
2795 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
2801 if test -f $srcdir/po/POTFILES.in; then
2802 test -d po || mkdir po
2803 if test "x$srcdir" != "x."; then
2804 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2805 posrcprefix="$srcdir/"
2807 posrcprefix="../$srcdir/"
2813 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2814 < $srcdir/po/POTFILES.in > po/POTFILES
2817 cat >> confdefs.h <<\EOF
2818 #define PACKAGE "gdb"
2835 SUBDIRS="doc testsuite nlm"
2836 configdirs="doc testsuite"
2838 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2839 if test "${enable_multi_ice+set}" = set; then
2840 enableval="$enable_multi_ice"
2841 case "${enableval}" in
2842 yes ) enable_multi_ice="yes" ;;
2843 no) enable_multi_ice="no" ;;
2844 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2850 if test "${enable_multi_ice}" = "yes"; then
2851 configdirs="${configdirs} multi-ice"
2855 . ${srcdir}/configure.host
2857 . ${srcdir}/configure.tgt
2859 targ=${target} ; . ${srcdir}/../bfd/config.bfd
2863 . ${srcdir}/../bfd/config.bfd
2865 targ_archs=`echo ${targ_archs} | sed -e 's/ .*//;'`
2867 if test x"${targ_archs}" != x ; then
2868 cat >> confdefs.h <<EOF
2869 #define DEFAULT_BFD_ARCH ${targ_archs}
2873 if test x"${targ_defvec}" != x ; then
2874 cat >> confdefs.h <<EOF
2875 #define DEFAULT_BFD_VEC ${targ_defvec}
2880 for ac_prog in mawk gawk nawk awk
2882 # Extract the first word of "$ac_prog", so it can be a program name with args.
2883 set dummy $ac_prog; ac_word=$2
2884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2885 echo "configure:2886: checking for $ac_word" >&5
2886 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2887 echo $ac_n "(cached) $ac_c" 1>&6
2889 if test -n "$AWK"; then
2890 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2894 for ac_dir in $ac_dummy; do
2895 test -z "$ac_dir" && ac_dir=.
2896 if test -f $ac_dir/$ac_word; then
2897 ac_cv_prog_AWK="$ac_prog"
2904 AWK="$ac_cv_prog_AWK"
2905 if test -n "$AWK"; then
2906 echo "$ac_t""$AWK" 1>&6
2908 echo "$ac_t""no" 1>&6
2911 test -n "$AWK" && break
2914 # Find a good install program. We prefer a C program (faster),
2915 # so one script is as good as another. But avoid the broken or
2916 # incompatible versions:
2917 # SysV /etc/install, /usr/sbin/install
2918 # SunOS /usr/etc/install
2919 # IRIX /sbin/install
2921 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2922 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2923 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2924 # ./install, which can be erroneously created by make from ./install.sh.
2925 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2926 echo "configure:2927: checking for a BSD compatible install" >&5
2927 if test -z "$INSTALL"; then
2928 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2931 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2932 for ac_dir in $PATH; do
2933 # Account for people who put trailing slashes in PATH elements.
2935 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2937 # OSF1 and SCO ODT 3.0 have their own names for install.
2938 # Don't use installbsd from OSF since it installs stuff as root
2940 for ac_prog in ginstall scoinst install; do
2941 if test -f $ac_dir/$ac_prog; then
2942 if test $ac_prog = install &&
2943 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2944 # AIX install. It has an incompatible calling convention.
2947 ac_cv_path_install="$ac_dir/$ac_prog -c"
2958 if test "${ac_cv_path_install+set}" = set; then
2959 INSTALL="$ac_cv_path_install"
2961 # As a last resort, use the slow shell script. We don't cache a
2962 # path for INSTALL within a source directory, because that will
2963 # break other packages using the cache if that directory is
2964 # removed, or if the path is relative.
2965 INSTALL="$ac_install_sh"
2968 echo "$ac_t""$INSTALL" 1>&6
2970 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2971 # It thinks the first close brace ends the variable substitution.
2972 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2974 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2976 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2978 if test $host != $build; then
2979 ac_tool_prefix=${host_alias}-
2984 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2985 set dummy ${ac_tool_prefix}ar; ac_word=$2
2986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2987 echo "configure:2988: checking for $ac_word" >&5
2988 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 if test -n "$AR"; then
2992 ac_cv_prog_AR="$AR" # Let the user override the test.
2994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2996 for ac_dir in $ac_dummy; do
2997 test -z "$ac_dir" && ac_dir=.
2998 if test -f $ac_dir/$ac_word; then
2999 ac_cv_prog_AR="${ac_tool_prefix}ar"
3004 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3008 if test -n "$AR"; then
3009 echo "$ac_t""$AR" 1>&6
3011 echo "$ac_t""no" 1>&6
3016 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3017 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3019 echo "configure:3020: checking for $ac_word" >&5
3020 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3023 if test -n "$RANLIB"; then
3024 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3026 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3028 for ac_dir in $ac_dummy; do
3029 test -z "$ac_dir" && ac_dir=.
3030 if test -f $ac_dir/$ac_word; then
3031 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3038 RANLIB="$ac_cv_prog_RANLIB"
3039 if test -n "$RANLIB"; then
3040 echo "$ac_t""$RANLIB" 1>&6
3042 echo "$ac_t""no" 1>&6
3046 if test -z "$ac_cv_prog_RANLIB"; then
3047 if test -n "$ac_tool_prefix"; then
3048 # Extract the first word of "ranlib", so it can be a program name with args.
3049 set dummy ranlib; ac_word=$2
3050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3051 echo "configure:3052: checking for $ac_word" >&5
3052 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3055 if test -n "$RANLIB"; then
3056 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3060 for ac_dir in $ac_dummy; do
3061 test -z "$ac_dir" && ac_dir=.
3062 if test -f $ac_dir/$ac_word; then
3063 ac_cv_prog_RANLIB="ranlib"
3068 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3071 RANLIB="$ac_cv_prog_RANLIB"
3072 if test -n "$RANLIB"; then
3073 echo "$ac_t""$RANLIB" 1>&6
3075 echo "$ac_t""no" 1>&6
3083 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3084 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3086 echo "configure:3087: checking for $ac_word" >&5
3087 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 if test -n "$DLLTOOL"; then
3091 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3095 for ac_dir in $ac_dummy; do
3096 test -z "$ac_dir" && ac_dir=.
3097 if test -f $ac_dir/$ac_word; then
3098 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3103 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="dlltool"
3106 DLLTOOL="$ac_cv_prog_DLLTOOL"
3107 if test -n "$DLLTOOL"; then
3108 echo "$ac_t""$DLLTOOL" 1>&6
3110 echo "$ac_t""no" 1>&6
3115 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3116 set dummy ${ac_tool_prefix}windres; ac_word=$2
3117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3118 echo "configure:3119: checking for $ac_word" >&5
3119 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3122 if test -n "$WINDRES"; then
3123 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3127 for ac_dir in $ac_dummy; do
3128 test -z "$ac_dir" && ac_dir=.
3129 if test -f $ac_dir/$ac_word; then
3130 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3135 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES="windres"
3138 WINDRES="$ac_cv_prog_WINDRES"
3139 if test -n "$WINDRES"; then
3140 echo "$ac_t""$WINDRES" 1>&6
3142 echo "$ac_t""no" 1>&6
3147 for ac_prog in 'bison -y' byacc
3149 # Extract the first word of "$ac_prog", so it can be a program name with args.
3150 set dummy $ac_prog; ac_word=$2
3151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3152 echo "configure:3153: checking for $ac_word" >&5
3153 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3154 echo $ac_n "(cached) $ac_c" 1>&6
3156 if test -n "$YACC"; then
3157 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3161 for ac_dir in $ac_dummy; do
3162 test -z "$ac_dir" && ac_dir=.
3163 if test -f $ac_dir/$ac_word; then
3164 ac_cv_prog_YACC="$ac_prog"
3171 YACC="$ac_cv_prog_YACC"
3172 if test -n "$YACC"; then
3173 echo "$ac_t""$YACC" 1>&6
3175 echo "$ac_t""no" 1>&6
3178 test -n "$YACC" && break
3180 test -n "$YACC" || YACC="yacc"
3183 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3184 set dummy ${ac_tool_prefix}mig; ac_word=$2
3185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3186 echo "configure:3187: checking for $ac_word" >&5
3187 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3190 if test -n "$MIG"; then
3191 ac_cv_prog_MIG="$MIG" # Let the user override the test.
3193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3195 for ac_dir in $ac_dummy; do
3196 test -z "$ac_dir" && ac_dir=.
3197 if test -f $ac_dir/$ac_word; then
3198 ac_cv_prog_MIG="${ac_tool_prefix}mig"
3203 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
3206 MIG="$ac_cv_prog_MIG"
3207 if test -n "$MIG"; then
3208 echo "$ac_t""$MIG" 1>&6
3210 echo "$ac_t""no" 1>&6
3216 if test "$program_transform_name" = s,x,x,; then
3217 program_transform_name=
3219 # Double any \ or $. echo might interpret backslashes.
3220 cat <<\EOF_SED > conftestsed
3221 s,\\,\\\\,g; s,\$,$$,g
3223 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
3226 test "$program_prefix" != NONE &&
3227 program_transform_name="s,^,${program_prefix},; $program_transform_name"
3228 # Use a double $ so make ignores it.
3229 test "$program_suffix" != NONE &&
3230 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
3232 # sed with no file args requires a program.
3233 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
3236 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3237 echo "configure:3238: checking return type of signal handlers" >&5
3238 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3239 echo $ac_n "(cached) $ac_c" 1>&6
3241 cat > conftest.$ac_ext <<EOF
3242 #line 3243 "configure"
3243 #include "confdefs.h"
3244 #include <sys/types.h>
3250 extern "C" void (*signal (int, void (*)(int)))(int);
3252 void (*signal ()) ();
3259 if { (eval echo configure:3260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3261 ac_cv_type_signal=void
3263 echo "configure: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3266 ac_cv_type_signal=int
3271 echo "$ac_t""$ac_cv_type_signal" 1>&6
3272 cat >> confdefs.h <<EOF
3273 #define RETSIGTYPE $ac_cv_type_signal
3278 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3279 echo "configure:3280: checking for ANSI C header files" >&5
3280 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3281 echo $ac_n "(cached) $ac_c" 1>&6
3283 cat > conftest.$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3292 { (eval echo configure:3293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3294 if test -z "$ac_err"; then
3296 ac_cv_header_stdc=yes
3299 echo "configure: failed program was:" >&5
3300 cat conftest.$ac_ext >&5
3302 ac_cv_header_stdc=no
3306 if test $ac_cv_header_stdc = yes; then
3307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3314 egrep "memchr" >/dev/null 2>&1; then
3318 ac_cv_header_stdc=no
3324 if test $ac_cv_header_stdc = yes; then
3325 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3326 cat > conftest.$ac_ext <<EOF
3327 #line 3328 "configure"
3328 #include "confdefs.h"
3331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3332 egrep "free" >/dev/null 2>&1; then
3336 ac_cv_header_stdc=no
3342 if test $ac_cv_header_stdc = yes; then
3343 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3344 if test "$cross_compiling" = yes; then
3347 cat > conftest.$ac_ext <<EOF
3348 #line 3349 "configure"
3349 #include "confdefs.h"
3351 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3352 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3354 int main () { int i; for (i = 0; i < 256; i++)
3355 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3359 if { (eval echo configure:3360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3363 echo "configure: failed program was:" >&5
3364 cat conftest.$ac_ext >&5
3366 ac_cv_header_stdc=no
3374 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3375 if test $ac_cv_header_stdc = yes; then
3376 cat >> confdefs.h <<\EOF
3377 #define STDC_HEADERS 1
3384 case $host_os in solaris2.7 | solaris2.8) case "$GCC" in yes)
3385 cat >> confdefs.h <<\EOF
3386 #define _MSE_INT_H 1
3391 for ac_hdr in ctype.h nlist.h link.h thread_db.h proc_service.h \
3392 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3393 string.h sys/procfs.h sys/proc.h sys/ptrace.h sys/reg.h stdint.h \
3394 term.h termio.h termios.h unistd.h wait.h sys/wait.h \
3395 wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
3396 time.h sys/file.h sys/ioctl.h sys/user.h sys/fault.h sys/syscall.h \
3397 dirent.h sys/ndir.h sys/dir.h ndir.h sys/filio.h \
3398 curses.h ncurses.h \
3401 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3402 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3403 echo "configure:3404: checking for $ac_hdr" >&5
3404 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3405 echo $ac_n "(cached) $ac_c" 1>&6
3407 cat > conftest.$ac_ext <<EOF
3408 #line 3409 "configure"
3409 #include "confdefs.h"
3412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3413 { (eval echo configure:3414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3415 if test -z "$ac_err"; then
3417 eval "ac_cv_header_$ac_safe=yes"
3420 echo "configure: failed program was:" >&5
3421 cat conftest.$ac_ext >&5
3423 eval "ac_cv_header_$ac_safe=no"
3427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3428 echo "$ac_t""yes" 1>&6
3429 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3430 cat >> confdefs.h <<EOF
3431 #define $ac_tr_hdr 1
3435 echo "$ac_t""no" 1>&6
3439 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3440 echo "configure:3441: checking whether stat file-mode macros are broken" >&5
3441 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3442 echo $ac_n "(cached) $ac_c" 1>&6
3444 cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3447 #include <sys/types.h>
3448 #include <sys/stat.h>
3450 #if defined(S_ISBLK) && defined(S_IFDIR)
3451 # if S_ISBLK (S_IFDIR)
3456 #if defined(S_ISBLK) && defined(S_IFCHR)
3457 # if S_ISBLK (S_IFCHR)
3462 #if defined(S_ISLNK) && defined(S_IFREG)
3463 # if S_ISLNK (S_IFREG)
3468 #if defined(S_ISSOCK) && defined(S_IFREG)
3469 # if S_ISSOCK (S_IFREG)
3475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3476 egrep "You lose" >/dev/null 2>&1; then
3478 ac_cv_header_stat_broken=yes
3481 ac_cv_header_stat_broken=no
3487 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3488 if test $ac_cv_header_stat_broken = yes; then
3489 cat >> confdefs.h <<\EOF
3490 #define STAT_MACROS_BROKEN 1
3496 echo $ac_n "checking for working const""... $ac_c" 1>&6
3497 echo "configure:3498: checking for working const" >&5
3498 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3501 cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3507 /* Ultrix mips cc rejects this. */
3508 typedef int charset[2]; const charset x;
3509 /* SunOS 4.1.1 cc rejects this. */
3510 char const *const *ccp;
3512 /* NEC SVR4.0.2 mips cc rejects this. */
3513 struct point {int x, y;};
3514 static struct point const zero = {0,0};
3515 /* AIX XL C 1.02.0.0 rejects this.
3516 It does not let you subtract one const X* pointer from another in an arm
3517 of an if-expression whose if-part is not a constant expression */
3518 const char *g = "string";
3519 ccp = &g + (g ? g-g : 0);
3520 /* HPUX 7.0 cc rejects these. */
3523 ccp = (char const *const *) p;
3524 { /* SCO 3.2v4 cc rejects this. */
3526 char const *s = 0 ? (char *) 0 : (char const *) 0;
3530 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3532 const int *foo = &x[0];
3535 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3536 typedef const int *iptr;
3540 { /* AIX XL C 1.02.0.0 rejects this saying
3541 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3542 struct s { int j; const int *ap[3]; };
3543 struct s *b; b->j = 5;
3545 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3551 if { (eval echo configure:3552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3555 echo "configure: failed program was:" >&5
3556 cat conftest.$ac_ext >&5
3563 echo "$ac_t""$ac_cv_c_const" 1>&6
3564 if test $ac_cv_c_const = no; then
3565 cat >> confdefs.h <<\EOF
3571 echo $ac_n "checking for inline""... $ac_c" 1>&6
3572 echo "configure:3573: checking for inline" >&5
3573 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3574 echo $ac_n "(cached) $ac_c" 1>&6
3577 for ac_kw in inline __inline__ __inline; do
3578 cat > conftest.$ac_ext <<EOF
3579 #line 3580 "configure"
3580 #include "confdefs.h"
3586 if { (eval echo configure:3587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3588 ac_cv_c_inline=$ac_kw; break
3590 echo "configure: failed program was:" >&5
3591 cat conftest.$ac_ext >&5
3598 echo "$ac_t""$ac_cv_c_inline" 1>&6
3599 case "$ac_cv_c_inline" in
3601 no) cat >> confdefs.h <<\EOF
3605 *) cat >> confdefs.h <<EOF
3606 #define inline $ac_cv_c_inline
3612 for ac_func in bcopy btowc bzero canonicalize_file_name isascii poll \
3613 realpath sbrk setpgid setpgrp sigaction sigprocmask sigsetmask
3615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3616 echo "configure:3617: checking for $ac_func" >&5
3617 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3618 echo $ac_n "(cached) $ac_c" 1>&6
3620 cat > conftest.$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3623 /* System header to define __stub macros and hopefully few prototypes,
3624 which can conflict with char $ac_func(); below. */
3626 /* Override any gcc2 internal prototype to avoid an error. */
3627 /* We use char because int might match the return type of a gcc2
3628 builtin and then its argument prototype would still apply. */
3633 /* The GNU C library defines this for functions which it implements
3634 to always fail with ENOSYS. Some functions are actually named
3635 something starting with __ and the normal name is an alias. */
3636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3644 if { (eval echo configure:3645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3646 eval "ac_cv_func_$ac_func=yes"
3648 echo "configure: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3651 eval "ac_cv_func_$ac_func=no"
3656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3657 echo "$ac_t""yes" 1>&6
3658 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3659 cat >> confdefs.h <<EOF
3660 #define $ac_tr_func 1
3664 echo "$ac_t""no" 1>&6
3668 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3669 # for constant arguments. Useless!
3670 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3671 echo "configure:3672: checking for working alloca.h" >&5
3672 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3675 cat > conftest.$ac_ext <<EOF
3676 #line 3677 "configure"
3677 #include "confdefs.h"
3680 char *p = alloca(2 * sizeof(int));
3683 if { (eval echo configure:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3685 ac_cv_header_alloca_h=yes
3687 echo "configure: failed program was:" >&5
3688 cat conftest.$ac_ext >&5
3690 ac_cv_header_alloca_h=no
3695 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3696 if test $ac_cv_header_alloca_h = yes; then
3697 cat >> confdefs.h <<\EOF
3698 #define HAVE_ALLOCA_H 1
3703 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3704 echo "configure:3705: checking for alloca" >&5
3705 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3708 cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3713 # define alloca __builtin_alloca
3716 # include <malloc.h>
3717 # define alloca _alloca
3720 # include <alloca.h>
3725 # ifndef alloca /* predefined by HP cc +Olibcalls */
3734 char *p = (char *) alloca(1);
3737 if { (eval echo configure:3738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3739 ac_cv_func_alloca_works=yes
3741 echo "configure: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3744 ac_cv_func_alloca_works=no
3749 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3750 if test $ac_cv_func_alloca_works = yes; then
3751 cat >> confdefs.h <<\EOF
3752 #define HAVE_ALLOCA 1
3757 if test $ac_cv_func_alloca_works = no; then
3758 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3759 # that cause trouble. Some versions do not even contain alloca or
3760 # contain a buggy version. If you still want to use their alloca,
3761 # use ar to extract alloca.o from them instead of compiling alloca.c.
3762 ALLOCA=alloca.${ac_objext}
3763 cat >> confdefs.h <<\EOF
3768 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3769 echo "configure:3770: checking whether alloca needs Cray hooks" >&5
3770 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6
3773 cat > conftest.$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3776 #if defined(CRAY) && ! defined(CRAY2)
3783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3784 egrep "webecray" >/dev/null 2>&1; then
3795 echo "$ac_t""$ac_cv_os_cray" 1>&6
3796 if test $ac_cv_os_cray = yes; then
3797 for ac_func in _getb67 GETB67 getb67; do
3798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3799 echo "configure:3800: checking for $ac_func" >&5
3800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3803 cat > conftest.$ac_ext <<EOF
3804 #line 3805 "configure"
3805 #include "confdefs.h"
3806 /* System header to define __stub macros and hopefully few prototypes,
3807 which can conflict with char $ac_func(); below. */
3809 /* Override any gcc2 internal prototype to avoid an error. */
3810 /* We use char because int might match the return type of a gcc2
3811 builtin and then its argument prototype would still apply. */
3816 /* The GNU C library defines this for functions which it implements
3817 to always fail with ENOSYS. Some functions are actually named
3818 something starting with __ and the normal name is an alias. */
3819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3829 eval "ac_cv_func_$ac_func=yes"
3831 echo "configure: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3834 eval "ac_cv_func_$ac_func=no"
3839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3840 echo "$ac_t""yes" 1>&6
3841 cat >> confdefs.h <<EOF
3842 #define CRAY_STACKSEG_END $ac_func
3847 echo "$ac_t""no" 1>&6
3853 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3854 echo "configure:3855: checking stack direction for C alloca" >&5
3855 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3858 if test "$cross_compiling" = yes; then
3859 ac_cv_c_stack_direction=0
3861 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure"
3863 #include "confdefs.h"
3864 find_stack_direction ()
3866 static char *addr = 0;
3871 return find_stack_direction ();
3874 return (&dummy > addr) ? 1 : -1;
3878 exit (find_stack_direction() < 0);
3881 if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3883 ac_cv_c_stack_direction=1
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3888 ac_cv_c_stack_direction=-1
3895 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3896 cat >> confdefs.h <<EOF
3897 #define STACK_DIRECTION $ac_cv_c_stack_direction
3902 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3903 echo "configure:3904: checking for pid_t" >&5
3904 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3907 cat > conftest.$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3910 #include <sys/types.h>
3916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3917 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3919 ac_cv_type_pid_t=yes
3927 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3928 if test $ac_cv_type_pid_t = no; then
3929 cat >> confdefs.h <<\EOF
3935 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3936 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3937 echo "configure:3938: checking for vfork.h" >&5
3938 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3939 echo $ac_n "(cached) $ac_c" 1>&6
3941 cat > conftest.$ac_ext <<EOF
3942 #line 3943 "configure"
3943 #include "confdefs.h"
3946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3947 { (eval echo configure:3948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3949 if test -z "$ac_err"; then
3951 eval "ac_cv_header_$ac_safe=yes"
3954 echo "configure: failed program was:" >&5
3955 cat conftest.$ac_ext >&5
3957 eval "ac_cv_header_$ac_safe=no"
3961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3962 echo "$ac_t""yes" 1>&6
3963 cat >> confdefs.h <<\EOF
3964 #define HAVE_VFORK_H 1
3968 echo "$ac_t""no" 1>&6
3971 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3972 echo "configure:3973: checking for working vfork" >&5
3973 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3976 if test "$cross_compiling" = yes; then
3977 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3978 echo "configure:3979: checking for vfork" >&5
3979 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3982 cat > conftest.$ac_ext <<EOF
3983 #line 3984 "configure"
3984 #include "confdefs.h"
3985 /* System header to define __stub macros and hopefully few prototypes,
3986 which can conflict with char vfork(); below. */
3988 /* Override any gcc2 internal prototype to avoid an error. */
3989 /* We use char because int might match the return type of a gcc2
3990 builtin and then its argument prototype would still apply. */
3995 /* The GNU C library defines this for functions which it implements
3996 to always fail with ENOSYS. Some functions are actually named
3997 something starting with __ and the normal name is an alias. */
3998 #if defined (__stub_vfork) || defined (__stub___vfork)
4006 if { (eval echo configure:4007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4008 eval "ac_cv_func_vfork=yes"
4010 echo "configure: failed program was:" >&5
4011 cat conftest.$ac_ext >&5
4013 eval "ac_cv_func_vfork=no"
4018 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
4019 echo "$ac_t""yes" 1>&6
4022 echo "$ac_t""no" 1>&6
4025 ac_cv_func_vfork_works=$ac_cv_func_vfork
4027 cat > conftest.$ac_ext <<EOF
4028 #line 4029 "configure"
4029 #include "confdefs.h"
4030 /* Thanks to Paul Eggert for this test. */
4032 #include <sys/types.h>
4033 #include <sys/stat.h>
4034 #ifdef HAVE_UNISTD_H
4040 /* On some sparc systems, changes by the child to local and incoming
4041 argument registers are propagated back to the parent.
4042 The compiler is told about this with #include <vfork.h>,
4043 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
4044 Test for this by using a static variable whose address
4045 is put into a register that is clobbered by the vfork. */
4048 sparc_address_test (int arg)
4050 sparc_address_test (arg) int arg;
4068 pid_t parent = getpid ();
4071 sparc_address_test ();
4076 /* Here is another test for sparc vfork register problems.
4077 This test uses lots of local variables, at least
4078 as many local variables as main has allocated so far
4079 including compiler temporaries. 4 locals are enough for
4080 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
4081 A buggy compiler should reuse the register of parent
4082 for one of the local variables, since it will think that
4083 parent can't possibly be used any more in this routine.
4084 Assigning to the local variable will thus munge parent
4085 in the parent process. */
4087 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4088 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4089 /* Convince the compiler that p..p7 are live; otherwise, it might
4090 use the same hardware register for all 8 local variables. */
4091 if (p != p1 || p != p2 || p != p3 || p != p4
4092 || p != p5 || p != p6 || p != p7)
4095 /* On some systems (e.g. IRIX 3.3),
4096 vfork doesn't separate parent from child file descriptors.
4097 If the child closes a descriptor before it execs or exits,
4098 this munges the parent's descriptor as well.
4099 Test for this by closing stdout in the child. */
4100 _exit(close(fileno(stdout)) != 0);
4105 while (wait(&status) != child)
4108 /* Was there some problem with vforking? */
4111 /* Did the child fail? (This shouldn't happen.) */
4114 /* Did the vfork/compiler bug occur? */
4115 || parent != getpid()
4117 /* Did the file descriptor bug occur? */
4118 || fstat(fileno(stdout), &st) != 0
4123 if { (eval echo configure:4124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4125 ac_cv_func_vfork_works=yes
4127 echo "configure: failed program was:" >&5
4128 cat conftest.$ac_ext >&5
4130 ac_cv_func_vfork_works=no
4137 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
4138 if test $ac_cv_func_vfork_works = no; then
4139 cat >> confdefs.h <<\EOF
4145 if test "$cross_compiling" = no; then
4146 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4147 echo "configure:4148: checking whether setpgrp takes no argument" >&5
4148 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4149 echo $ac_n "(cached) $ac_c" 1>&6
4151 if test "$cross_compiling" = yes; then
4152 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
4154 cat > conftest.$ac_ext <<EOF
4155 #line 4156 "configure"
4156 #include "confdefs.h"
4158 #ifdef HAVE_UNISTD_H
4163 * If this system has a BSD-style setpgrp, which takes arguments, exit
4168 if (setpgrp(1,1) == -1)
4175 if { (eval echo configure:4176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4177 ac_cv_func_setpgrp_void=no
4179 echo "configure: failed program was:" >&5
4180 cat conftest.$ac_ext >&5
4182 ac_cv_func_setpgrp_void=yes
4190 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
4191 if test $ac_cv_func_setpgrp_void = yes; then
4192 cat >> confdefs.h <<\EOF
4193 #define SETPGRP_VOID 1
4199 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4200 echo "configure:4201: checking whether setpgrp takes no argument" >&5
4201 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4202 echo $ac_n "(cached) $ac_c" 1>&6
4204 cat > conftest.$ac_ext <<EOF
4205 #line 4206 "configure"
4206 #include "confdefs.h"
4212 if (setpgrp(1,1) == -1)
4219 if { (eval echo configure:4220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4221 ac_cv_func_setpgrp_void=no
4223 echo "configure: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4226 ac_cv_func_setpgrp_void=yes
4231 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
4232 if test $ac_cv_func_setpgrp_void = yes; then
4233 cat >> confdefs.h <<\EOF
4234 #define SETPGRP_VOID 1
4240 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
4241 # since sigsetjmp might only be defined as a macro.
4242 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
4243 echo "configure:4244: checking for sigsetjmp" >&5
4244 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
4245 echo $ac_n "(cached) $ac_c" 1>&6
4247 cat > conftest.$ac_ext <<EOF
4248 #line 4249 "configure"
4249 #include "confdefs.h"
4254 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
4257 if { (eval echo configure:4258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4259 gdb_cv_func_sigsetjmp=yes
4261 echo "configure: failed program was:" >&5
4262 cat conftest.$ac_ext >&5
4264 gdb_cv_func_sigsetjmp=no
4269 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
4270 if test $gdb_cv_func_sigsetjmp = yes; then
4271 cat >> confdefs.h <<\EOF
4272 #define HAVE_SIGSETJMP 1
4277 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
4278 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
4279 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
4280 echo "configure:4281: checking for r_fs in struct reg" >&5
4281 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
4282 echo $ac_n "(cached) $ac_c" 1>&6
4284 cat > conftest.$ac_ext <<EOF
4285 #line 4286 "configure"
4286 #include "confdefs.h"
4287 #include <machine/reg.h>
4289 struct reg r; r.r_fs;
4292 if { (eval echo configure:4293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4294 gdb_cv_struct_reg_r_fs=yes
4296 echo "configure: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4299 gdb_cv_struct_reg_r_fs=no
4304 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
4305 if test $gdb_cv_struct_reg_r_fs = yes; then
4306 cat >> confdefs.h <<\EOF
4307 #define HAVE_STRUCT_REG_R_FS 1
4311 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
4312 echo "configure:4313: checking for r_gs in struct reg" >&5
4313 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4316 cat > conftest.$ac_ext <<EOF
4317 #line 4318 "configure"
4318 #include "confdefs.h"
4319 #include <machine/reg.h>
4321 struct reg r; r.r_gs;
4324 if { (eval echo configure:4325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4326 gdb_cv_struct_reg_r_gs=yes
4328 echo "configure: failed program was:" >&5
4329 cat conftest.$ac_ext >&5
4331 gdb_cv_struct_reg_r_gs=no
4336 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
4337 if test $gdb_cv_struct_reg_r_gs = yes; then
4338 cat >> confdefs.h <<\EOF
4339 #define HAVE_STRUCT_REG_R_GS 1
4344 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
4345 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
4346 echo "configure:4347: checking for PTRACE_GETREGS" >&5
4347 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4350 cat > conftest.$ac_ext <<EOF
4351 #line 4352 "configure"
4352 #include "confdefs.h"
4353 #include <sys/ptrace.h>
4358 if { (eval echo configure:4359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4360 gdb_cv_have_ptrace_getregs=yes
4362 echo "configure: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4365 gdb_cv_have_ptrace_getregs=no
4370 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
4371 if test $gdb_cv_have_ptrace_getregs = yes; then
4372 cat >> confdefs.h <<\EOF
4373 #define HAVE_PTRACE_GETREGS 1
4378 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
4379 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
4380 echo "configure:4381: checking for PTRACE_GETFPXREGS" >&5
4381 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4384 cat > conftest.$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4387 #include <sys/ptrace.h>
4392 if { (eval echo configure:4393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4394 gdb_cv_have_ptrace_getfpxregs=yes
4396 echo "configure: failed program was:" >&5
4397 cat conftest.$ac_ext >&5
4399 gdb_cv_have_ptrace_getfpxregs=no
4404 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
4405 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
4406 cat >> confdefs.h <<\EOF
4407 #define HAVE_PTRACE_GETFPXREGS 1
4412 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
4413 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
4414 echo "configure:4415: checking for PT_GETDBREGS" >&5
4415 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
4416 echo $ac_n "(cached) $ac_c" 1>&6
4418 cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure"
4420 #include "confdefs.h"
4421 #include <sys/types.h>
4422 #include <sys/ptrace.h>
4427 if { (eval echo configure:4428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4429 gdb_cv_have_pt_getdbregs=yes
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4434 gdb_cv_have_pt_getdbregs=no
4439 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
4440 if test $gdb_cv_have_pt_getdbregs = yes; then
4441 cat >> confdefs.h <<\EOF
4442 #define HAVE_PT_GETDBREGS 1
4447 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
4448 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
4449 echo "configure:4450: checking for PT_GETXMMREGS" >&5
4450 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 cat > conftest.$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4456 #include <sys/types.h>
4457 #include <sys/ptrace.h>
4462 if { (eval echo configure:4463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4464 gdb_cv_have_pt_getxmmregs=yes
4466 echo "configure: failed program was:" >&5
4467 cat conftest.$ac_ext >&5
4469 gdb_cv_have_pt_getxmmregs=no
4474 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
4475 if test $gdb_cv_have_pt_getxmmregs = yes; then
4476 cat >> confdefs.h <<\EOF
4477 #define HAVE_PT_GETXMMREGS 1
4483 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
4484 echo "configure:4485: checking for socketpair in -lsocket" >&5
4485 ac_lib_var=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
4486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4489 ac_save_LIBS="$LIBS"
4490 LIBS="-lsocket $LIBS"
4491 cat > conftest.$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4494 /* Override any gcc2 internal prototype to avoid an error. */
4495 /* We use char because int might match the return type of a gcc2
4496 builtin and then its argument prototype would still apply. */
4503 if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4505 eval "ac_cv_lib_$ac_lib_var=yes"
4507 echo "configure: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4510 eval "ac_cv_lib_$ac_lib_var=no"
4513 LIBS="$ac_save_LIBS"
4516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4517 echo "$ac_t""yes" 1>&6
4518 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4519 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4520 cat >> confdefs.h <<EOF
4521 #define $ac_tr_lib 1
4524 LIBS="-lsocket $LIBS"
4527 echo "$ac_t""no" 1>&6
4530 for ac_func in socketpair
4532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4533 echo "configure:4534: checking for $ac_func" >&5
4534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4535 echo $ac_n "(cached) $ac_c" 1>&6
4537 cat > conftest.$ac_ext <<EOF
4538 #line 4539 "configure"
4539 #include "confdefs.h"
4540 /* System header to define __stub macros and hopefully few prototypes,
4541 which can conflict with char $ac_func(); below. */
4543 /* Override any gcc2 internal prototype to avoid an error. */
4544 /* We use char because int might match the return type of a gcc2
4545 builtin and then its argument prototype would still apply. */
4550 /* The GNU C library defines this for functions which it implements
4551 to always fail with ENOSYS. Some functions are actually named
4552 something starting with __ and the normal name is an alias. */
4553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4561 if { (eval echo configure:4562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4563 eval "ac_cv_func_$ac_func=yes"
4565 echo "configure: failed program was:" >&5
4566 cat conftest.$ac_ext >&5
4568 eval "ac_cv_func_$ac_func=no"
4573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4574 echo "$ac_t""yes" 1>&6
4575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4576 cat >> confdefs.h <<EOF
4577 #define $ac_tr_func 1
4581 echo "$ac_t""no" 1>&6
4587 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4588 echo "configure:4589: checking whether malloc must be declared" >&5
4589 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4590 echo $ac_n "(cached) $ac_c" 1>&6
4592 cat > conftest.$ac_ext <<EOF
4593 #line 4594 "configure"
4594 #include "confdefs.h"
4597 #ifdef HAVE_STRING_H
4600 #ifdef HAVE_STRINGS_H
4601 #include <strings.h>
4604 #ifdef HAVE_STDLIB_H
4607 #ifdef HAVE_UNISTD_H
4611 char *(*pfn) = (char *(*)) malloc
4614 if { (eval echo configure:4615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4616 bfd_cv_decl_needed_malloc=no
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4621 bfd_cv_decl_needed_malloc=yes
4626 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4627 if test $bfd_cv_decl_needed_malloc = yes; then
4628 cat >> confdefs.h <<\EOF
4629 #define NEED_DECLARATION_MALLOC 1
4634 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4635 echo "configure:4636: checking whether realloc must be declared" >&5
4636 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4637 echo $ac_n "(cached) $ac_c" 1>&6
4639 cat > conftest.$ac_ext <<EOF
4640 #line 4641 "configure"
4641 #include "confdefs.h"
4644 #ifdef HAVE_STRING_H
4647 #ifdef HAVE_STRINGS_H
4648 #include <strings.h>
4651 #ifdef HAVE_STDLIB_H
4654 #ifdef HAVE_UNISTD_H
4658 char *(*pfn) = (char *(*)) realloc
4661 if { (eval echo configure:4662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4663 bfd_cv_decl_needed_realloc=no
4665 echo "configure: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4668 bfd_cv_decl_needed_realloc=yes
4673 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4674 if test $bfd_cv_decl_needed_realloc = yes; then
4675 cat >> confdefs.h <<\EOF
4676 #define NEED_DECLARATION_REALLOC 1
4681 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4682 echo "configure:4683: checking whether free must be declared" >&5
4683 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4686 cat > conftest.$ac_ext <<EOF
4687 #line 4688 "configure"
4688 #include "confdefs.h"
4691 #ifdef HAVE_STRING_H
4694 #ifdef HAVE_STRINGS_H
4695 #include <strings.h>
4698 #ifdef HAVE_STDLIB_H
4701 #ifdef HAVE_UNISTD_H
4705 char *(*pfn) = (char *(*)) free
4708 if { (eval echo configure:4709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4710 bfd_cv_decl_needed_free=no
4712 echo "configure: failed program was:" >&5
4713 cat conftest.$ac_ext >&5
4715 bfd_cv_decl_needed_free=yes
4720 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4721 if test $bfd_cv_decl_needed_free = yes; then
4722 cat >> confdefs.h <<\EOF
4723 #define NEED_DECLARATION_FREE 1
4728 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4729 echo "configure:4730: checking whether strerror must be declared" >&5
4730 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6
4733 cat > conftest.$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4738 #ifdef HAVE_STRING_H
4741 #ifdef HAVE_STRINGS_H
4742 #include <strings.h>
4745 #ifdef HAVE_STDLIB_H
4748 #ifdef HAVE_UNISTD_H
4752 char *(*pfn) = (char *(*)) strerror
4755 if { (eval echo configure:4756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4757 bfd_cv_decl_needed_strerror=no
4759 echo "configure: failed program was:" >&5
4760 cat conftest.$ac_ext >&5
4762 bfd_cv_decl_needed_strerror=yes
4767 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4768 if test $bfd_cv_decl_needed_strerror = yes; then
4769 cat >> confdefs.h <<\EOF
4770 #define NEED_DECLARATION_STRERROR 1
4775 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4776 echo "configure:4777: checking whether strdup must be declared" >&5
4777 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4778 echo $ac_n "(cached) $ac_c" 1>&6
4780 cat > conftest.$ac_ext <<EOF
4781 #line 4782 "configure"
4782 #include "confdefs.h"
4785 #ifdef HAVE_STRING_H
4788 #ifdef HAVE_STRINGS_H
4789 #include <strings.h>
4792 #ifdef HAVE_STDLIB_H
4795 #ifdef HAVE_UNISTD_H
4799 char *(*pfn) = (char *(*)) strdup
4802 if { (eval echo configure:4803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4804 bfd_cv_decl_needed_strdup=no
4806 echo "configure: failed program was:" >&5
4807 cat conftest.$ac_ext >&5
4809 bfd_cv_decl_needed_strdup=yes
4814 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4815 if test $bfd_cv_decl_needed_strdup = yes; then
4816 cat >> confdefs.h <<\EOF
4817 #define NEED_DECLARATION_STRDUP 1
4822 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4823 echo "configure:4824: checking whether strstr must be declared" >&5
4824 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6
4827 cat > conftest.$ac_ext <<EOF
4828 #line 4829 "configure"
4829 #include "confdefs.h"
4832 #ifdef HAVE_STRING_H
4835 #ifdef HAVE_STRINGS_H
4836 #include <strings.h>
4839 #ifdef HAVE_STDLIB_H
4842 #ifdef HAVE_UNISTD_H
4846 char *(*pfn) = (char *(*)) strstr
4849 if { (eval echo configure:4850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4851 bfd_cv_decl_needed_strstr=no
4853 echo "configure: failed program was:" >&5
4854 cat conftest.$ac_ext >&5
4856 bfd_cv_decl_needed_strstr=yes
4861 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4862 if test $bfd_cv_decl_needed_strstr = yes; then
4863 cat >> confdefs.h <<\EOF
4864 #define NEED_DECLARATION_STRSTR 1
4869 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
4870 echo "configure:4871: checking whether canonicalize_file_name must be declared" >&5
4871 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4874 cat > conftest.$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4879 #ifdef HAVE_STRING_H
4882 #ifdef HAVE_STRINGS_H
4883 #include <strings.h>
4886 #ifdef HAVE_STDLIB_H
4889 #ifdef HAVE_UNISTD_H
4893 char *(*pfn) = (char *(*)) canonicalize_file_name
4896 if { (eval echo configure:4897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4898 bfd_cv_decl_needed_canonicalize_file_name=no
4900 echo "configure: failed program was:" >&5
4901 cat conftest.$ac_ext >&5
4903 bfd_cv_decl_needed_canonicalize_file_name=yes
4908 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
4909 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
4910 cat >> confdefs.h <<\EOF
4911 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
4917 # The following save_state_t checkery is only necessary for HPUX
4918 # versions earlier than 10.20. When those fade from memory, this
4919 # could be expunged. --jsm 1999-03-22
4921 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4922 echo "configure:4923: checking for HPUX save_state structure" >&5
4923 cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4926 #include <machine/save_state.h>
4928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929 egrep "save_state_t" >/dev/null 2>&1; then
4931 gdb_cv_hpux_savestate=yes
4934 gdb_cv_hpux_savestate=no
4938 cat > conftest.$ac_ext <<EOF
4939 #line 4940 "configure"
4940 #include "confdefs.h"
4941 #include <machine/save_state.h>
4943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4944 egrep "ss_wide" >/dev/null 2>&1; then
4946 gdb_cv_hpux_sswide=yes
4949 gdb_cv_hpux_sswide=no
4953 if test $gdb_cv_hpux_savestate = yes
4955 cat >> confdefs.h <<\EOF
4956 #define HAVE_STRUCT_SAVE_STATE_T 1
4960 if test $gdb_cv_hpux_sswide = yes
4962 cat >> confdefs.h <<\EOF
4963 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4967 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4970 # If we are configured native on GNU/Linux, work around problems with
4972 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4974 if test "${target}" = "${host}"; then
4977 cat >> confdefs.h <<\EOF
4978 #define START_INFERIOR_TRAPS_EXPECTED 2
4981 cat >> confdefs.h <<\EOF
4982 #define sys_quotactl 1
4987 cat >> confdefs.h <<\EOF
4988 #define NEW_PROC_API 1
4992 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
4993 cat >> confdefs.h <<\EOF
4994 #define NEW_PROC_API 1
4999 cat >> confdefs.h <<\EOF
5000 #define NEW_PROC_API 1
5007 if test "$ac_cv_header_sys_procfs_h" = yes; then
5008 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5009 echo "configure:5010: checking for pstatus_t in sys/procfs.h" >&5
5010 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5011 echo $ac_n "(cached) $ac_c" 1>&6
5013 cat > conftest.$ac_ext <<EOF
5014 #line 5015 "configure"
5015 #include "confdefs.h"
5018 #include <sys/procfs.h>
5023 if { (eval echo configure:5024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5025 bfd_cv_have_sys_procfs_type_pstatus_t=yes
5027 echo "configure: failed program was:" >&5
5028 cat conftest.$ac_ext >&5
5030 bfd_cv_have_sys_procfs_type_pstatus_t=no
5036 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5037 cat >> confdefs.h <<\EOF
5038 #define HAVE_PSTATUS_T 1
5042 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5044 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
5045 echo "configure:5046: checking for prrun_t in sys/procfs.h" >&5
5046 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
5047 echo $ac_n "(cached) $ac_c" 1>&6
5049 cat > conftest.$ac_ext <<EOF
5050 #line 5051 "configure"
5051 #include "confdefs.h"
5054 #include <sys/procfs.h>
5059 if { (eval echo configure:5060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5061 bfd_cv_have_sys_procfs_type_prrun_t=yes
5063 echo "configure: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5066 bfd_cv_have_sys_procfs_type_prrun_t=no
5072 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
5073 cat >> confdefs.h <<\EOF
5074 #define HAVE_PRRUN_T 1
5078 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
5080 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
5081 echo "configure:5082: checking for gregset_t in sys/procfs.h" >&5
5082 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
5083 echo $ac_n "(cached) $ac_c" 1>&6
5085 cat > conftest.$ac_ext <<EOF
5086 #line 5087 "configure"
5087 #include "confdefs.h"
5090 #include <sys/procfs.h>
5095 if { (eval echo configure:5096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5097 bfd_cv_have_sys_procfs_type_gregset_t=yes
5099 echo "configure: failed program was:" >&5
5100 cat conftest.$ac_ext >&5
5102 bfd_cv_have_sys_procfs_type_gregset_t=no
5108 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
5109 cat >> confdefs.h <<\EOF
5110 #define HAVE_GREGSET_T 1
5114 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
5116 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
5117 echo "configure:5118: checking for fpregset_t in sys/procfs.h" >&5
5118 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
5119 echo $ac_n "(cached) $ac_c" 1>&6
5121 cat > conftest.$ac_ext <<EOF
5122 #line 5123 "configure"
5123 #include "confdefs.h"
5126 #include <sys/procfs.h>
5131 if { (eval echo configure:5132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5133 bfd_cv_have_sys_procfs_type_fpregset_t=yes
5135 echo "configure: failed program was:" >&5
5136 cat conftest.$ac_ext >&5
5138 bfd_cv_have_sys_procfs_type_fpregset_t=no
5144 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
5145 cat >> confdefs.h <<\EOF
5146 #define HAVE_FPREGSET_T 1
5150 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
5152 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
5153 echo "configure:5154: checking for prgregset_t in sys/procfs.h" >&5
5154 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
5155 echo $ac_n "(cached) $ac_c" 1>&6
5157 cat > conftest.$ac_ext <<EOF
5158 #line 5159 "configure"
5159 #include "confdefs.h"
5162 #include <sys/procfs.h>
5167 if { (eval echo configure:5168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5169 bfd_cv_have_sys_procfs_type_prgregset_t=yes
5171 echo "configure: failed program was:" >&5
5172 cat conftest.$ac_ext >&5
5174 bfd_cv_have_sys_procfs_type_prgregset_t=no
5180 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
5181 cat >> confdefs.h <<\EOF
5182 #define HAVE_PRGREGSET_T 1
5186 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
5188 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
5189 echo "configure:5190: checking for prfpregset_t in sys/procfs.h" >&5
5190 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
5191 echo $ac_n "(cached) $ac_c" 1>&6
5193 cat > conftest.$ac_ext <<EOF
5194 #line 5195 "configure"
5195 #include "confdefs.h"
5198 #include <sys/procfs.h>
5203 if { (eval echo configure:5204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5205 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
5207 echo "configure: failed program was:" >&5
5208 cat conftest.$ac_ext >&5
5210 bfd_cv_have_sys_procfs_type_prfpregset_t=no
5216 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
5217 cat >> confdefs.h <<\EOF
5218 #define HAVE_PRFPREGSET_T 1
5222 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
5224 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
5225 echo "configure:5226: checking for prgregset32_t in sys/procfs.h" >&5
5226 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5229 cat > conftest.$ac_ext <<EOF
5230 #line 5231 "configure"
5231 #include "confdefs.h"
5234 #include <sys/procfs.h>
5239 if { (eval echo configure:5240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5241 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
5243 echo "configure: failed program was:" >&5
5244 cat conftest.$ac_ext >&5
5246 bfd_cv_have_sys_procfs_type_prgregset32_t=no
5252 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
5253 cat >> confdefs.h <<\EOF
5254 #define HAVE_PRGREGSET32_T 1
5258 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
5260 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
5261 echo "configure:5262: checking for prfpregset32_t in sys/procfs.h" >&5
5262 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
5263 echo $ac_n "(cached) $ac_c" 1>&6
5265 cat > conftest.$ac_ext <<EOF
5266 #line 5267 "configure"
5267 #include "confdefs.h"
5270 #include <sys/procfs.h>
5275 if { (eval echo configure:5276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5277 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5282 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
5288 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
5289 cat >> confdefs.h <<\EOF
5290 #define HAVE_PRFPREGSET32_T 1
5294 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
5296 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
5297 echo "configure:5298: checking for lwpid_t in sys/procfs.h" >&5
5298 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
5299 echo $ac_n "(cached) $ac_c" 1>&6
5301 cat > conftest.$ac_ext <<EOF
5302 #line 5303 "configure"
5303 #include "confdefs.h"
5306 #include <sys/procfs.h>
5311 if { (eval echo configure:5312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5313 bfd_cv_have_sys_procfs_type_lwpid_t=yes
5315 echo "configure: failed program was:" >&5
5316 cat conftest.$ac_ext >&5
5318 bfd_cv_have_sys_procfs_type_lwpid_t=no
5324 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
5325 cat >> confdefs.h <<\EOF
5326 #define HAVE_LWPID_T 1
5330 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
5332 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
5333 echo "configure:5334: checking for psaddr_t in sys/procfs.h" >&5
5334 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
5335 echo $ac_n "(cached) $ac_c" 1>&6
5337 cat > conftest.$ac_ext <<EOF
5338 #line 5339 "configure"
5339 #include "confdefs.h"
5342 #include <sys/procfs.h>
5347 if { (eval echo configure:5348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5349 bfd_cv_have_sys_procfs_type_psaddr_t=yes
5351 echo "configure: failed program was:" >&5
5352 cat conftest.$ac_ext >&5
5354 bfd_cv_have_sys_procfs_type_psaddr_t=no
5360 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
5361 cat >> confdefs.h <<\EOF
5362 #define HAVE_PSADDR_T 1
5366 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
5368 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
5369 echo "configure:5370: checking for prsysent_t in sys/procfs.h" >&5
5370 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5373 cat > conftest.$ac_ext <<EOF
5374 #line 5375 "configure"
5375 #include "confdefs.h"
5378 #include <sys/procfs.h>
5383 if { (eval echo configure:5384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5385 bfd_cv_have_sys_procfs_type_prsysent_t=yes
5387 echo "configure: failed program was:" >&5
5388 cat conftest.$ac_ext >&5
5390 bfd_cv_have_sys_procfs_type_prsysent_t=no
5396 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
5397 cat >> confdefs.h <<\EOF
5398 #define HAVE_PRSYSENT_T 1
5402 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
5404 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
5405 echo "configure:5406: checking for pr_sigset_t in sys/procfs.h" >&5
5406 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
5407 echo $ac_n "(cached) $ac_c" 1>&6
5409 cat > conftest.$ac_ext <<EOF
5410 #line 5411 "configure"
5411 #include "confdefs.h"
5414 #include <sys/procfs.h>
5419 if { (eval echo configure:5420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5421 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
5423 echo "configure: failed program was:" >&5
5424 cat conftest.$ac_ext >&5
5426 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
5432 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
5433 cat >> confdefs.h <<\EOF
5434 #define HAVE_PR_SIGSET_T 1
5438 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
5440 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
5441 echo "configure:5442: checking for pr_sigaction64_t in sys/procfs.h" >&5
5442 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
5443 echo $ac_n "(cached) $ac_c" 1>&6
5445 cat > conftest.$ac_ext <<EOF
5446 #line 5447 "configure"
5447 #include "confdefs.h"
5450 #include <sys/procfs.h>
5452 pr_sigaction64_t avar
5455 if { (eval echo configure:5456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5457 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
5459 echo "configure: failed program was:" >&5
5460 cat conftest.$ac_ext >&5
5462 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
5468 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
5469 cat >> confdefs.h <<\EOF
5470 #define HAVE_PR_SIGACTION64_T 1
5474 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
5476 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
5477 echo "configure:5478: checking for pr_siginfo64_t in sys/procfs.h" >&5
5478 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
5479 echo $ac_n "(cached) $ac_c" 1>&6
5481 cat > conftest.$ac_ext <<EOF
5482 #line 5483 "configure"
5483 #include "confdefs.h"
5486 #include <sys/procfs.h>
5491 if { (eval echo configure:5492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5493 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
5495 echo "configure: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5498 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
5504 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
5505 cat >> confdefs.h <<\EOF
5506 #define HAVE_PR_SIGINFO64_T 1
5510 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
5516 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
5517 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
5518 echo "configure:5519: checking whether prfpregset_t type is broken" >&5
5519 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
5520 echo $ac_n "(cached) $ac_c" 1>&6
5522 if test "$cross_compiling" = yes; then
5523 gdb_cv_prfpregset_t_broken=yes
5525 cat > conftest.$ac_ext <<EOF
5526 #line 5527 "configure"
5527 #include "confdefs.h"
5528 #include <sys/procfs.h>
5531 if (sizeof (prfpregset_t) == sizeof (void *))
5536 if { (eval echo configure:5537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5538 gdb_cv_prfpregset_t_broken=no
5540 echo "configure: failed program was:" >&5
5541 cat conftest.$ac_ext >&5
5543 gdb_cv_prfpregset_t_broken=yes
5550 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
5551 if test $gdb_cv_prfpregset_t_broken = yes; then
5552 cat >> confdefs.h <<\EOF
5553 #define PRFPREGSET_T_BROKEN 1
5560 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
5561 echo "configure:5562: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
5562 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
5563 echo $ac_n "(cached) $ac_c" 1>&6
5565 cat > conftest.$ac_ext <<EOF
5566 #line 5567 "configure"
5567 #include "confdefs.h"
5569 #include <sys/types.h>
5570 #include <sys/procfs.h>
5575 dummy = ioctl(0, PIOCSET, &dummy);
5579 if { (eval echo configure:5580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5581 gdb_cv_have_procfs_piocset=yes
5583 echo "configure: failed program was:" >&5
5584 cat conftest.$ac_ext >&5
5586 gdb_cv_have_procfs_piocset=no
5591 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
5592 if test $gdb_cv_have_procfs_piocset = yes; then
5593 cat >> confdefs.h <<\EOF
5594 #define HAVE_PROCFS_PIOCSET 1
5600 if test ${host} = ${target} ; then
5602 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
5603 echo "configure:5604: checking for member l_addr in struct link_map" >&5
5604 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
5605 echo $ac_n "(cached) $ac_c" 1>&6
5607 cat > conftest.$ac_ext <<EOF
5608 #line 5609 "configure"
5609 #include "confdefs.h"
5612 struct link_map lm; (void) lm.l_addr;
5615 if { (eval echo configure:5616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5617 gdb_cv_have_struct_link_map_with_l_members=yes
5619 echo "configure: failed program was:" >&5
5620 cat conftest.$ac_ext >&5
5622 gdb_cv_have_struct_link_map_with_l_members=no
5627 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
5628 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
5629 cat >> confdefs.h <<\EOF
5630 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
5636 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
5637 echo "configure:5638: checking for member lm_addr in struct link_map" >&5
5638 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5641 cat > conftest.$ac_ext <<EOF
5642 #line 5643 "configure"
5643 #include "confdefs.h"
5644 #include <sys/types.h>
5647 struct link_map lm; (void) lm.lm_addr;
5650 if { (eval echo configure:5651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5652 gdb_cv_have_struct_link_map_with_lm_members=yes
5654 echo "configure: failed program was:" >&5
5655 cat conftest.$ac_ext >&5
5657 gdb_cv_have_struct_link_map_with_lm_members=no
5662 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
5663 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
5664 cat >> confdefs.h <<\EOF
5665 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
5671 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
5672 echo "configure:5673: checking for member som_addr in struct so_map" >&5
5673 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
5674 echo $ac_n "(cached) $ac_c" 1>&6
5676 cat > conftest.$ac_ext <<EOF
5677 #line 5678 "configure"
5678 #include "confdefs.h"
5679 #include <sys/types.h>
5685 struct so_map lm; (void) lm.som_addr;
5688 if { (eval echo configure:5689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5690 gdb_cv_have_struct_so_map_with_som_members=yes
5692 echo "configure: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5695 gdb_cv_have_struct_so_map_with_som_members=no
5700 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
5701 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
5702 cat >> confdefs.h <<\EOF
5703 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
5709 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
5710 echo "configure:5711: checking for struct link_map32 in sys/link.h" >&5
5711 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
5712 echo $ac_n "(cached) $ac_c" 1>&6
5714 cat > conftest.$ac_ext <<EOF
5715 #line 5716 "configure"
5716 #include "confdefs.h"
5718 #include <sys/link.h>
5720 struct link_map32 l;
5723 if { (eval echo configure:5724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5725 gdb_cv_have_struct_link_map32=yes
5727 echo "configure: failed program was:" >&5
5728 cat conftest.$ac_ext >&5
5730 gdb_cv_have_struct_link_map32=no
5735 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
5736 if test $gdb_cv_have_struct_link_map32 = yes; then
5737 cat >> confdefs.h <<\EOF
5738 #define HAVE_STRUCT_LINK_MAP32 1
5741 cat >> confdefs.h <<\EOF
5742 #define _SYSCALL32 1
5748 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5749 echo "configure:5750: checking for main in -lm" >&5
5750 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5752 echo $ac_n "(cached) $ac_c" 1>&6
5754 ac_save_LIBS="$LIBS"
5756 cat > conftest.$ac_ext <<EOF
5757 #line 5758 "configure"
5758 #include "confdefs.h"
5764 if { (eval echo configure:5765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5766 eval "ac_cv_lib_$ac_lib_var=yes"
5768 echo "configure: failed program was:" >&5
5769 cat conftest.$ac_ext >&5
5771 eval "ac_cv_lib_$ac_lib_var=no"
5774 LIBS="$ac_save_LIBS"
5777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5778 echo "$ac_t""yes" 1>&6
5779 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5780 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5781 cat >> confdefs.h <<EOF
5782 #define $ac_tr_lib 1
5788 echo "$ac_t""no" 1>&6
5792 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
5793 echo "configure:5794: checking for wctype in -lc" >&5
5794 ac_lib_var=`echo c'_'wctype | sed 'y%./+-%__p_%'`
5795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5796 echo $ac_n "(cached) $ac_c" 1>&6
5798 ac_save_LIBS="$LIBS"
5800 cat > conftest.$ac_ext <<EOF
5801 #line 5802 "configure"
5802 #include "confdefs.h"
5803 /* Override any gcc2 internal prototype to avoid an error. */
5804 /* We use char because int might match the return type of a gcc2
5805 builtin and then its argument prototype would still apply. */
5812 if { (eval echo configure:5813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5814 eval "ac_cv_lib_$ac_lib_var=yes"
5816 echo "configure: failed program was:" >&5
5817 cat conftest.$ac_ext >&5
5819 eval "ac_cv_lib_$ac_lib_var=no"
5822 LIBS="$ac_save_LIBS"
5825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5826 echo "$ac_t""yes" 1>&6
5829 echo "$ac_t""no" 1>&6
5830 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
5831 echo "configure:5832: checking for wctype in -lw" >&5
5832 ac_lib_var=`echo w'_'wctype | sed 'y%./+-%__p_%'`
5833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5834 echo $ac_n "(cached) $ac_c" 1>&6
5836 ac_save_LIBS="$LIBS"
5838 cat > conftest.$ac_ext <<EOF
5839 #line 5840 "configure"
5840 #include "confdefs.h"
5841 /* Override any gcc2 internal prototype to avoid an error. */
5842 /* We use char because int might match the return type of a gcc2
5843 builtin and then its argument prototype would still apply. */
5850 if { (eval echo configure:5851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5852 eval "ac_cv_lib_$ac_lib_var=yes"
5854 echo "configure: failed program was:" >&5
5855 cat conftest.$ac_ext >&5
5857 eval "ac_cv_lib_$ac_lib_var=no"
5860 LIBS="$ac_save_LIBS"
5863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5864 echo "$ac_t""yes" 1>&6
5865 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
5866 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5867 cat >> confdefs.h <<EOF
5868 #define $ac_tr_lib 1
5874 echo "$ac_t""no" 1>&6
5881 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
5882 echo "configure:5883: checking for long long support in compiler" >&5
5883 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
5884 echo $ac_n "(cached) $ac_c" 1>&6
5886 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure"
5888 #include "confdefs.h"
5892 extern long long foo;
5893 switch (foo & 2) { case 0: return 1; }
5897 if { (eval echo configure:5898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5899 gdb_cv_c_long_long=yes
5901 echo "configure: failed program was:" >&5
5902 cat conftest.$ac_ext >&5
5904 gdb_cv_c_long_long=no
5909 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
5910 if test $gdb_cv_c_long_long = yes; then
5911 cat >> confdefs.h <<\EOF
5912 #define CC_HAS_LONG_LONG 1
5918 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
5919 echo "configure:5920: checking for long long support in printf" >&5
5920 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
5921 echo $ac_n "(cached) $ac_c" 1>&6
5923 if test "$cross_compiling" = yes; then
5924 gdb_cv_printf_has_long_long=no
5926 cat > conftest.$ac_ext <<EOF
5927 #line 5928 "configure"
5928 #include "confdefs.h"
5933 l = (l << 16) + 0x0123;
5934 l = (l << 16) + 0x4567;
5935 l = (l << 16) + 0x89ab;
5936 l = (l << 16) + 0xcdef;
5937 sprintf (buf, "0x%016llx", l);
5938 return (strcmp ("0x0123456789abcdef", buf));
5941 if { (eval echo configure:5942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5943 gdb_cv_printf_has_long_long=yes
5945 echo "configure: failed program was:" >&5
5946 cat conftest.$ac_ext >&5
5948 gdb_cv_printf_has_long_long=no
5955 if test $gdb_cv_printf_has_long_long = yes; then
5956 cat >> confdefs.h <<\EOF
5957 #define PRINTF_HAS_LONG_LONG 1
5961 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
5964 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
5965 echo "configure:5966: checking for long double support in compiler" >&5
5966 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
5967 echo $ac_n "(cached) $ac_c" 1>&6
5969 cat > conftest.$ac_ext <<EOF
5970 #line 5971 "configure"
5971 #include "confdefs.h"
5977 if { (eval echo configure:5978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5979 ac_cv_c_long_double=yes
5981 echo "configure: failed program was:" >&5
5982 cat conftest.$ac_ext >&5
5984 ac_cv_c_long_double=no
5989 echo "$ac_t""$ac_cv_c_long_double" 1>&6
5990 if test $ac_cv_c_long_double = yes; then
5991 cat >> confdefs.h <<\EOF
5992 #define HAVE_LONG_DOUBLE 1
5998 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
5999 echo "configure:6000: checking for long double support in printf" >&5
6000 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
6001 echo $ac_n "(cached) $ac_c" 1>&6
6003 if test "$cross_compiling" = yes; then
6004 gdb_cv_printf_has_long_double=no
6006 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6012 long double f = 3.141592653;
6013 sprintf (buf, "%Lg", f);
6014 return (strncmp ("3.14159", buf, 7));
6017 if { (eval echo configure:6018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6019 gdb_cv_printf_has_long_double=yes
6021 echo "configure: failed program was:" >&5
6022 cat conftest.$ac_ext >&5
6024 gdb_cv_printf_has_long_double=no
6031 if test $gdb_cv_printf_has_long_double = yes; then
6032 cat >> confdefs.h <<\EOF
6033 #define PRINTF_HAS_LONG_DOUBLE 1
6037 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
6040 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
6041 echo "configure:6042: checking for long double support in scanf" >&5
6042 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
6043 echo $ac_n "(cached) $ac_c" 1>&6
6045 if test "$cross_compiling" = yes; then
6046 gdb_cv_scanf_has_long_double=no
6048 cat > conftest.$ac_ext <<EOF
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6053 char *buf = "3.141592653";
6055 sscanf (buf, "%Lg", &f);
6056 return !(f > 3.14159 && f < 3.14160);
6059 if { (eval echo configure:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6061 gdb_cv_scanf_has_long_double=yes
6063 echo "configure: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6066 gdb_cv_scanf_has_long_double=no
6073 if test $gdb_cv_scanf_has_long_double = yes; then
6074 cat >> confdefs.h <<\EOF
6075 #define SCANF_HAS_LONG_DOUBLE 1
6079 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
6081 for ac_hdr in unistd.h
6083 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6084 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6085 echo "configure:6086: checking for $ac_hdr" >&5
6086 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6087 echo $ac_n "(cached) $ac_c" 1>&6
6089 cat > conftest.$ac_ext <<EOF
6090 #line 6091 "configure"
6091 #include "confdefs.h"
6094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6095 { (eval echo configure:6096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6097 if test -z "$ac_err"; then
6099 eval "ac_cv_header_$ac_safe=yes"
6102 echo "configure: failed program was:" >&5
6103 cat conftest.$ac_ext >&5
6105 eval "ac_cv_header_$ac_safe=no"
6109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6110 echo "$ac_t""yes" 1>&6
6111 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6112 cat >> confdefs.h <<EOF
6113 #define $ac_tr_hdr 1
6117 echo "$ac_t""no" 1>&6
6121 for ac_func in getpagesize
6123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6124 echo "configure:6125: checking for $ac_func" >&5
6125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6126 echo $ac_n "(cached) $ac_c" 1>&6
6128 cat > conftest.$ac_ext <<EOF
6129 #line 6130 "configure"
6130 #include "confdefs.h"
6131 /* System header to define __stub macros and hopefully few prototypes,
6132 which can conflict with char $ac_func(); below. */
6134 /* Override any gcc2 internal prototype to avoid an error. */
6135 /* We use char because int might match the return type of a gcc2
6136 builtin and then its argument prototype would still apply. */
6141 /* The GNU C library defines this for functions which it implements
6142 to always fail with ENOSYS. Some functions are actually named
6143 something starting with __ and the normal name is an alias. */
6144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6152 if { (eval echo configure:6153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6154 eval "ac_cv_func_$ac_func=yes"
6156 echo "configure: failed program was:" >&5
6157 cat conftest.$ac_ext >&5
6159 eval "ac_cv_func_$ac_func=no"
6164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6165 echo "$ac_t""yes" 1>&6
6166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6167 cat >> confdefs.h <<EOF
6168 #define $ac_tr_func 1
6172 echo "$ac_t""no" 1>&6
6176 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6177 echo "configure:6178: checking for working mmap" >&5
6178 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6179 echo $ac_n "(cached) $ac_c" 1>&6
6181 if test "$cross_compiling" = yes; then
6182 ac_cv_func_mmap_fixed_mapped=no
6184 cat > conftest.$ac_ext <<EOF
6185 #line 6186 "configure"
6186 #include "confdefs.h"
6188 /* Thanks to Mike Haertel and Jim Avera for this test.
6189 Here is a matrix of mmap possibilities:
6190 mmap private not fixed
6191 mmap private fixed at somewhere currently unmapped
6192 mmap private fixed at somewhere already mapped
6193 mmap shared not fixed
6194 mmap shared fixed at somewhere currently unmapped
6195 mmap shared fixed at somewhere already mapped
6196 For private mappings, we should verify that changes cannot be read()
6197 back from the file, nor mmap's back from the file at a different
6198 address. (There have been systems where private was not correctly
6199 implemented like the infamous i386 svr4.0, and systems where the
6200 VM page cache was not coherent with the filesystem buffer cache
6201 like early versions of FreeBSD and possibly contemporary NetBSD.)
6202 For shared mappings, we should conversely verify that changes get
6203 propogated back to all the places they're supposed to be.
6205 Grep wants private fixed already mapped.
6206 The main things grep needs to know about mmap are:
6207 * does it exist and is it safe to write into the mmap'd area
6208 * how to use it (BSD variants) */
6209 #include <sys/types.h>
6211 #include <sys/mman.h>
6213 /* This mess was copied from the GNU getpagesize.h. */
6214 #ifndef HAVE_GETPAGESIZE
6215 # ifdef HAVE_UNISTD_H
6216 # include <unistd.h>
6219 /* Assume that all systems that can run configure have sys/param.h. */
6220 # ifndef HAVE_SYS_PARAM_H
6221 # define HAVE_SYS_PARAM_H 1
6224 # ifdef _SC_PAGESIZE
6225 # define getpagesize() sysconf(_SC_PAGESIZE)
6226 # else /* no _SC_PAGESIZE */
6227 # ifdef HAVE_SYS_PARAM_H
6228 # include <sys/param.h>
6229 # ifdef EXEC_PAGESIZE
6230 # define getpagesize() EXEC_PAGESIZE
6231 # else /* no EXEC_PAGESIZE */
6233 # define getpagesize() NBPG * CLSIZE
6236 # endif /* no CLSIZE */
6237 # else /* no NBPG */
6239 # define getpagesize() NBPC
6240 # else /* no NBPC */
6242 # define getpagesize() PAGESIZE
6243 # endif /* PAGESIZE */
6244 # endif /* no NBPC */
6245 # endif /* no NBPG */
6246 # endif /* no EXEC_PAGESIZE */
6247 # else /* no HAVE_SYS_PARAM_H */
6248 # define getpagesize() 8192 /* punt totally */
6249 # endif /* no HAVE_SYS_PARAM_H */
6250 # endif /* no _SC_PAGESIZE */
6252 #endif /* no HAVE_GETPAGESIZE */
6255 extern "C" { void *malloc(unsigned); }
6263 char *data, *data2, *data3;
6267 pagesize = getpagesize();
6270 * First, make a file with some known garbage in it.
6272 data = malloc(pagesize);
6275 for (i = 0; i < pagesize; ++i)
6276 *(data + i) = rand();
6278 fd = creat("conftestmmap", 0600);
6281 if (write(fd, data, pagesize) != pagesize)
6286 * Next, try to mmap the file at a fixed address which
6287 * already has something else allocated at it. If we can,
6288 * also make sure that we see the same garbage.
6290 fd = open("conftestmmap", O_RDWR);
6293 data2 = malloc(2 * pagesize);
6296 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6297 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6298 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6300 for (i = 0; i < pagesize; ++i)
6301 if (*(data + i) != *(data2 + i))
6305 * Finally, make sure that changes to the mapped area
6306 * do not percolate back to the file as seen by read().
6307 * (This is a bug on some variants of i386 svr4.0.)
6309 for (i = 0; i < pagesize; ++i)
6310 *(data2 + i) = *(data2 + i) + 1;
6311 data3 = malloc(pagesize);
6314 if (read(fd, data3, pagesize) != pagesize)
6316 for (i = 0; i < pagesize; ++i)
6317 if (*(data + i) != *(data3 + i))
6320 unlink("conftestmmap");
6325 if { (eval echo configure:6326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6327 ac_cv_func_mmap_fixed_mapped=yes
6329 echo "configure: failed program was:" >&5
6330 cat conftest.$ac_ext >&5
6332 ac_cv_func_mmap_fixed_mapped=no
6339 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6340 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6341 cat >> confdefs.h <<\EOF
6350 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
6351 echo "configure:6352: checking for -bbigtoc option" >&5
6352 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
6353 echo $ac_n "(cached) $ac_c" 1>&6
6356 SAVE_LDFLAGS=$LDFLAGS
6359 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
6360 *) gdb_cv_bigtoc=-bbigtoc ;;
6363 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
6364 cat > conftest.$ac_ext <<EOF
6365 #line 6366 "configure"
6366 #include "confdefs.h"
6372 if { (eval echo configure:6373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6375 echo "configure: failed program was:" >&5
6376 cat conftest.$ac_ext >&5
6384 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
6385 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
6391 if test ${build} = ${host} -a ${host} = ${target} ; then
6394 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
6395 echo "configure:6396: checking for HPUX/OSF thread support" >&5
6396 if test -f /usr/include/dce/cma_config.h ; then
6397 if test "$GCC" = "yes" ; then
6398 echo "$ac_t""yes" 1>&6
6399 cat >> confdefs.h <<\EOF
6400 #define HAVE_HPUX_THREAD_SUPPORT 1
6403 CONFIG_LIB_OBS="${CONFIG_LIB_OBS} hpux-thread.o"
6404 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
6406 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
6409 echo "$ac_t""no" 1>&6
6413 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
6414 echo "configure:6415: checking for Solaris thread debugging library" >&5
6415 if test -f /usr/lib/libthread_db.so.1 ; then
6416 echo "$ac_t""yes" 1>&6
6417 cat >> confdefs.h <<\EOF
6418 #define HAVE_THREAD_DB_LIB 1
6421 CONFIG_LIB_OBS="${CONFIG_LIB_OBS} sol-thread.o"
6422 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
6423 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6424 echo "configure:6425: checking for dlopen in -ldl" >&5
6425 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6426 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6427 echo $ac_n "(cached) $ac_c" 1>&6
6429 ac_save_LIBS="$LIBS"
6431 cat > conftest.$ac_ext <<EOF
6432 #line 6433 "configure"
6433 #include "confdefs.h"
6434 /* Override any gcc2 internal prototype to avoid an error. */
6435 /* We use char because int might match the return type of a gcc2
6436 builtin and then its argument prototype would still apply. */
6443 if { (eval echo configure:6444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6445 eval "ac_cv_lib_$ac_lib_var=yes"
6447 echo "configure: failed program was:" >&5
6448 cat conftest.$ac_ext >&5
6450 eval "ac_cv_lib_$ac_lib_var=no"
6453 LIBS="$ac_save_LIBS"
6456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6457 echo "$ac_t""yes" 1>&6
6458 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6459 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6460 cat >> confdefs.h <<EOF
6461 #define $ac_tr_lib 1
6467 echo "$ac_t""no" 1>&6
6470 if test "$GCC" = "yes" ; then
6471 # The GNU linker requires the -export-dynamic option to make
6472 # all symbols visible in the dynamic symbol table.
6473 hold_ldflags=$LDFLAGS
6474 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
6475 echo "configure:6476: checking for the ld -export-dynamic flag" >&5
6476 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
6477 cat > conftest.$ac_ext <<EOF
6478 #line 6479 "configure"
6479 #include "confdefs.h"
6485 if { (eval echo configure:6486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6489 echo "configure: failed program was:" >&5
6490 cat conftest.$ac_ext >&5
6495 LDFLAGS=$hold_ldflags
6496 echo "$ac_t""$found" 1>&6
6497 if test $found = yes; then
6498 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
6501 # Sun randomly tweaked the prototypes in <proc_service.h>
6503 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
6504 echo "configure:6505: checking if <proc_service.h> is old" >&5
6505 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
6506 echo $ac_n "(cached) $ac_c" 1>&6
6509 cat > conftest.$ac_ext <<EOF
6510 #line 6511 "configure"
6511 #include "confdefs.h"
6513 #include <proc_service.h>
6515 (struct ps_prochandle*, psaddr_t, const void*, size_t);
6521 if { (eval echo configure:6522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6523 gdb_cv_proc_service_is_old=no
6525 echo "configure: failed program was:" >&5
6526 cat conftest.$ac_ext >&5
6528 gdb_cv_proc_service_is_old=yes
6534 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
6535 if test $gdb_cv_proc_service_is_old = yes; then
6536 cat >> confdefs.h <<\EOF
6537 #define PROC_SERVICE_IS_OLD 1
6542 echo "$ac_t""no" 1>&6
6549 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
6550 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
6551 echo "configure:6552: checking whether <thread_db.h> has TD_NOTALLOC" >&5
6552 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
6553 echo $ac_n "(cached) $ac_c" 1>&6
6555 cat > conftest.$ac_ext <<EOF
6556 #line 6557 "configure"
6557 #include "confdefs.h"
6558 #include <thread_db.h>
6560 int i = TD_NOTALLOC;
6563 if { (eval echo configure:6564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6565 gdb_cv_thread_db_h_has_td_notalloc=yes
6567 echo "configure: failed program was:" >&5
6568 cat conftest.$ac_ext >&5
6570 gdb_cv_thread_db_h_has_td_notalloc=no
6577 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
6579 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
6580 cat >> confdefs.h <<\EOF
6581 #define THREAD_DB_HAS_TD_NOTALLOC 1
6587 # Check whether --enable-gdbcli or --disable-gdbcli was given.
6588 if test "${enable_gdbcli+set}" = set; then
6589 enableval="$enable_gdbcli"
6591 case "${enableval}" in
6592 yes) enable_gdbcli=yes ;;
6593 "") enable_gdbcli=yes ;;
6595 { echo "configure: error: The CLI cannot be disabled yet" 1>&2; exit 1; }
6598 { echo "configure: error: Bad value for --enable-gdbcli: ${enableval}" 1>&2; exit 1; }
6606 case ${enable_gdbcli} in
6608 if test -d "${srcdir}/cli" ; then
6609 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_CLI_OBS)"
6610 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_CLI_DEPS)"
6611 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_CLI_SRCS)"
6612 CONFIG_INITS="${CONFIG_INITS} \$(SUBDIR_CLI_INITS)"
6613 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_CLI_CFLAGS)"
6614 CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_CLI_ALL)"
6615 CONFIG_CLEAN="${CONFIG_CLEAN} \$(SUBDIR_CLI_CLEAN)"
6616 CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_CLI_INSTALL)"
6617 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_CLI_UNINSTALL)"
6623 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6624 if test "${enable_gdbmi+set}" = set; then
6625 enableval="$enable_gdbmi"
6627 case "${enable_gdbmi}" in
6629 "") enable_gdbmi=yes ;;
6631 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
6639 case ${enable_gdbmi} in
6641 if test -d "${srcdir}/mi" ; then
6642 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
6643 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
6644 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_MI_SRCS)"
6645 CONFIG_INITS="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
6646 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
6647 CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
6648 CONFIG_CLEAN="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
6649 CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
6650 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
6655 # Configure UI_OUT by default (before 5.2 it can be disabled)
6656 # It must be configured if gdbmi is configured
6661 # Check whether --with-uiout or --without-uiout was given.
6662 if test "${with_uiout+set}" = set; then
6663 withval="$with_uiout"
6664 case "${withval}" in
6665 yes) want_uiout=true ;;
6666 no) if test $enable_gdbmi = yes; then
6667 { echo "configure: error: uiout is needed for MI and cannot be disabled" 1>&2; exit 1; }
6671 *) { echo "configure: error: bad value ${withval} for GDB with-uiout option" 1>&2; exit 1; } ;;
6677 if test $want_uiout = true; then
6678 UIOUT_CFLAGS="-DUI_OUT=1"
6681 # Check whether --enable-tui or --disable-tui was given.
6682 if test "${enable_tui+set}" = set; then
6683 enableval="$enable_tui"
6685 case "${enable_tui}" in
6687 "") enable_tui=yes ;;
6689 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
6695 case ${enable_tui} in
6697 if test -d "${srcdir}/tui" ; then
6698 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_TUI_OBS)"
6699 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_TUI_DEPS)"
6700 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_TUI_SRCS)"
6701 CONFIG_INITS="${CONFIG_INITS} \$(SUBDIR_TUI_INITS)"
6702 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_TUI_CFLAGS)"
6703 CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_TUI_ALL)"
6704 CONFIG_CLEAN="${CONFIG_CLEAN} \$(SUBDIR_TUI_CLEAN)"
6705 CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_TUI_INSTALL)"
6706 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_TUI_UNINSTALL)"
6711 # Check whether --enable-netrom or --disable-netrom was given.
6712 if test "${enable_netrom+set}" = set; then
6713 enableval="$enable_netrom"
6714 case "${enableval}" in
6715 yes) enable_netrom=yes ;;
6716 no) enable_netrom=no ;;
6717 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
6722 if test "${enable_netrom}" = "yes"; then
6723 CONFIG_LIB_OBS="${CONFIG_LIB_OBS} remote-nrom.o"
6724 CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
6728 # NOTE: Don't add -Wall or -Wunused, they both include
6729 # -Wunused-parameter which reports bogus warnings.
6730 # NOTE: If you add to this list, remember to update
6731 # gdb/doc/gdbint.texinfo.
6732 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
6733 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
6734 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
6735 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
6736 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
6737 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
6738 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
6739 # -Woverloaded-virtual -Winline -Werror"
6740 # Check whether --enable-build-warnings or --disable-build-warnings was given.
6741 if test "${enable_build_warnings+set}" = set; then
6742 enableval="$enable_build_warnings"
6743 case "${enableval}" in
6745 no) build_warnings="-w";;
6746 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6747 build_warnings="${build_warnings} ${t}";;
6748 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6749 build_warnings="${t} ${build_warnings}";;
6750 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6752 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
6753 echo "Setting compiler warning flags = $build_warnings" 6>&1
6756 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
6757 if test "${enable_gdb_build_warnings+set}" = set; then
6758 enableval="$enable_gdb_build_warnings"
6759 case "${enableval}" in
6761 no) build_warnings="-w";;
6762 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6763 build_warnings="${build_warnings} ${t}";;
6764 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6765 build_warnings="${t} ${build_warnings}";;
6766 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6768 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
6769 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
6774 if test "x${build_warnings}" != x -a "x$GCC" = xyes
6776 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
6777 echo "configure:6778: checking compiler warning flags" >&5
6778 # Separate out the -Werror flag as some files just cannot be
6779 # compiled with it enabled.
6780 for w in ${build_warnings}; do
6782 -Werr*) WERROR_CFLAGS=-Werror ;;
6783 *) # Check that GCC accepts it
6784 saved_CFLAGS="$CFLAGS"
6786 cat > conftest.$ac_ext <<EOF
6787 #line 6788 "configure"
6788 #include "confdefs.h"
6794 if { (eval echo configure:6795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6796 WARN_CFLAGS="${WARN_CFLAGS} $w"
6798 echo "configure: failed program was:" >&5
6799 cat conftest.$ac_ext >&5
6802 CFLAGS="$saved_CFLAGS"
6805 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
6815 # Check whether --with-mmalloc or --without-mmalloc was given.
6816 if test "${with_mmalloc+set}" = set; then
6817 withval="$with_mmalloc"
6818 case "${withval}" in
6819 yes) want_mmalloc=true ;;
6820 no) want_mmalloc=false;;
6821 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
6827 if test x$want_mmalloc = xtrue; then
6828 cat >> confdefs.h <<\EOF
6829 #define USE_MMALLOC 1
6832 cat >> confdefs.h <<\EOF
6833 #define MMCHECK_FORCE 1
6836 MMALLOC_CFLAGS="-I$srcdir/../mmalloc"
6837 MMALLOC='../mmalloc/libmmalloc.a'
6840 # Check whether --with-included-regex or --without-included-regex was given.
6841 if test "${with_included_regex+set}" = set; then
6842 withval="$with_included_regex"
6843 case "${withval}" in
6844 yes) want_included_regex=true ;;
6845 no) want_included_regex=false;;
6846 *) { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
6849 want_included_regex=true
6852 if test $want_included_regex = false; then
6853 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
6854 echo "configure:6855: checking for GNU regex" >&5
6855 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
6856 echo $ac_n "(cached) $ac_c" 1>&6
6858 cat > conftest.$ac_ext <<EOF
6859 #line 6860 "configure"
6860 #include "confdefs.h"
6861 #include <gnu-versions.h>
6862 #include <sys/types.h>
6865 #if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
6866 #error No valid GNU regex.
6871 if { (eval echo configure:6872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6873 gdb_cv_have_gnu_regex=yes
6875 echo "configure: failed program was:" >&5
6876 cat conftest.$ac_ext >&5
6878 gdb_cv_have_gnu_regex=no
6883 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
6884 if test $gdb_cv_have_gnu_regex = no; then
6885 want_included_regex=true
6889 if test x${want_included_regex} = xtrue; then
6891 cat >> confdefs.h <<\EOF
6892 #define USE_INCLUDED_REGEX 1
6898 # In the Cygwin environment, we need some additional flags.
6899 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
6900 echo "configure:6901: checking for cygwin" >&5
6901 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
6902 echo $ac_n "(cached) $ac_c" 1>&6
6904 cat > conftest.$ac_ext <<EOF
6905 #line 6906 "configure"
6906 #include "confdefs.h"
6908 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
6912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6913 egrep "lose" >/dev/null 2>&1; then
6915 gdb_cv_os_cygwin=yes
6924 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
6927 SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
6929 *go32* ) SER_HARDWIRE=ser-go32.o ;;
6930 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
6935 if test x$gdb_host = xgo32; then
6938 if test x$gdb_cv_os_cygwin = xyes; then
6939 TERM_LIB='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
6942 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
6943 echo "configure:6944: checking for tgetent in -lncurses" >&5
6944 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
6945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6946 echo $ac_n "(cached) $ac_c" 1>&6
6948 ac_save_LIBS="$LIBS"
6949 LIBS="-lncurses $LIBS"
6950 cat > conftest.$ac_ext <<EOF
6951 #line 6952 "configure"
6952 #include "confdefs.h"
6953 /* Override any gcc2 internal prototype to avoid an error. */
6954 /* We use char because int might match the return type of a gcc2
6955 builtin and then its argument prototype would still apply. */
6962 if { (eval echo configure:6963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6964 eval "ac_cv_lib_$ac_lib_var=yes"
6966 echo "configure: failed program was:" >&5
6967 cat conftest.$ac_ext >&5
6969 eval "ac_cv_lib_$ac_lib_var=no"
6972 LIBS="$ac_save_LIBS"
6975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6976 echo "$ac_t""yes" 1>&6
6979 echo "$ac_t""no" 1>&6
6980 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
6981 echo "configure:6982: checking for tgetent in -lHcurses" >&5
6982 ac_lib_var=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
6983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6984 echo $ac_n "(cached) $ac_c" 1>&6
6986 ac_save_LIBS="$LIBS"
6987 LIBS="-lHcurses $LIBS"
6988 cat > conftest.$ac_ext <<EOF
6989 #line 6990 "configure"
6990 #include "confdefs.h"
6991 /* Override any gcc2 internal prototype to avoid an error. */
6992 /* We use char because int might match the return type of a gcc2
6993 builtin and then its argument prototype would still apply. */
7000 if { (eval echo configure:7001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7002 eval "ac_cv_lib_$ac_lib_var=yes"
7004 echo "configure: failed program was:" >&5
7005 cat conftest.$ac_ext >&5
7007 eval "ac_cv_lib_$ac_lib_var=no"
7010 LIBS="$ac_save_LIBS"
7013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7014 echo "$ac_t""yes" 1>&6
7017 echo "$ac_t""no" 1>&6
7018 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
7019 echo "configure:7020: checking for tgetent in -ltermlib" >&5
7020 ac_lib_var=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
7021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7022 echo $ac_n "(cached) $ac_c" 1>&6
7024 ac_save_LIBS="$LIBS"
7025 LIBS="-ltermlib $LIBS"
7026 cat > conftest.$ac_ext <<EOF
7027 #line 7028 "configure"
7028 #include "confdefs.h"
7029 /* Override any gcc2 internal prototype to avoid an error. */
7030 /* We use char because int might match the return type of a gcc2
7031 builtin and then its argument prototype would still apply. */
7038 if { (eval echo configure:7039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7040 eval "ac_cv_lib_$ac_lib_var=yes"
7042 echo "configure: failed program was:" >&5
7043 cat conftest.$ac_ext >&5
7045 eval "ac_cv_lib_$ac_lib_var=no"
7048 LIBS="$ac_save_LIBS"
7051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7052 echo "$ac_t""yes" 1>&6
7055 echo "$ac_t""no" 1>&6
7056 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
7057 echo "configure:7058: checking for tgetent in -ltermcap" >&5
7058 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
7059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7060 echo $ac_n "(cached) $ac_c" 1>&6
7062 ac_save_LIBS="$LIBS"
7063 LIBS="-ltermcap $LIBS"
7064 cat > conftest.$ac_ext <<EOF
7065 #line 7066 "configure"
7066 #include "confdefs.h"
7067 /* Override any gcc2 internal prototype to avoid an error. */
7068 /* We use char because int might match the return type of a gcc2
7069 builtin and then its argument prototype would still apply. */
7076 if { (eval echo configure:7077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7078 eval "ac_cv_lib_$ac_lib_var=yes"
7080 echo "configure: failed program was:" >&5
7081 cat conftest.$ac_ext >&5
7083 eval "ac_cv_lib_$ac_lib_var=no"
7086 LIBS="$ac_save_LIBS"
7089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7090 echo "$ac_t""yes" 1>&6
7093 echo "$ac_t""no" 1>&6
7094 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
7095 echo "configure:7096: checking for tgetent in -lcurses" >&5
7096 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
7097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7098 echo $ac_n "(cached) $ac_c" 1>&6
7100 ac_save_LIBS="$LIBS"
7101 LIBS="-lcurses $LIBS"
7102 cat > conftest.$ac_ext <<EOF
7103 #line 7104 "configure"
7104 #include "confdefs.h"
7105 /* Override any gcc2 internal prototype to avoid an error. */
7106 /* We use char because int might match the return type of a gcc2
7107 builtin and then its argument prototype would still apply. */
7114 if { (eval echo configure:7115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7116 eval "ac_cv_lib_$ac_lib_var=yes"
7118 echo "configure: failed program was:" >&5
7119 cat conftest.$ac_ext >&5
7121 eval "ac_cv_lib_$ac_lib_var=no"
7124 LIBS="$ac_save_LIBS"
7127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7128 echo "$ac_t""yes" 1>&6
7131 echo "$ac_t""no" 1>&6
7132 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
7133 echo "configure:7134: checking for tgetent in -lterminfo" >&5
7134 ac_lib_var=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
7135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7136 echo $ac_n "(cached) $ac_c" 1>&6
7138 ac_save_LIBS="$LIBS"
7139 LIBS="-lterminfo $LIBS"
7140 cat > conftest.$ac_ext <<EOF
7141 #line 7142 "configure"
7142 #include "confdefs.h"
7143 /* Override any gcc2 internal prototype to avoid an error. */
7144 /* We use char because int might match the return type of a gcc2
7145 builtin and then its argument prototype would still apply. */
7152 if { (eval echo configure:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7154 eval "ac_cv_lib_$ac_lib_var=yes"
7156 echo "configure: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7159 eval "ac_cv_lib_$ac_lib_var=no"
7162 LIBS="$ac_save_LIBS"
7165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7166 echo "$ac_t""yes" 1>&6
7169 echo "$ac_t""no" 1>&6
7183 if test "x$TERM_LIB" = x
7185 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
7191 # libreadline needs libuser32.a in a cygwin environment
7193 if test x$gdb_cv_os_cygwin = xyes; then
7194 WIN32LIBS="-luser32"
7196 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
7202 LIBGUI="../libgui/src/libgui.a"
7203 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
7207 # Check whether --with-cpu or --without-cpu was given.
7208 if test "${with_cpu+set}" = set; then
7211 powerpc-* | powerpcle-* )
7212 ## It would be nice to keep this table in sync with the one in
7214 case "${with_cpu}" in
7215 ppc-uisa | rs6000 | 403 | 403GC | 505 | 860 | 601 | 602 | 603 \
7217 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
7219 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1 )
7220 ## These are all RS6000 variants, as far as GDB is concerned.
7230 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
7236 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
7239 cat >> confdefs.h <<EOF
7240 #define TARGET_CPU_DEFAULT "${with_cpu}"
7248 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7249 if test "${enable_gdbtk+set}" = set; then
7250 enableval="$enable_gdbtk"
7251 case "${enableval}" in
7255 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
7258 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
7266 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
7270 # Default is on for everything but go32 and Cygwin
7275 if test -d "${srcdir}/gdbtk" ; then
7291 if test "${enable_gdbtk}" = "yes"; then
7293 # Gdbtk must have an absolute path to srcdir in order to run
7294 # properly when not installed.
7302 # Ok, lets find the tcl configuration
7303 # First, look for one uninstalled.
7304 # the alternative search directory is invoked by --with-tclconfig
7307 if test x"${no_tcl}" = x ; then
7308 # we reset no_tcl in case something fails here
7310 # Check whether --with-tclconfig or --without-tclconfig was given.
7311 if test "${with_tclconfig+set}" = set; then
7312 withval="$with_tclconfig"
7313 with_tclconfig=${withval}
7316 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
7317 echo "configure:7318: checking for Tcl configuration" >&5
7318 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
7319 echo $ac_n "(cached) $ac_c" 1>&6
7323 # First check to see if --with-tclconfig was specified.
7324 if test x"${with_tclconfig}" != x ; then
7325 if test -f "${with_tclconfig}/tclConfig.sh" ; then
7326 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
7328 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
7332 # then check for a private Tcl installation
7333 if test x"${ac_cv_c_tclconfig}" = x ; then
7336 `ls -dr ../tcl[7-9]* 2>/dev/null` \
7338 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
7340 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
7341 if test -f "$i/${configdir}/tclConfig.sh" ; then
7342 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
7347 # check in a few common install locations
7348 if test x"${ac_cv_c_tclconfig}" = x ; then
7349 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7350 if test -f "$i/tclConfig.sh" ; then
7351 ac_cv_c_tclconfig=`(cd $i; pwd)`
7356 # check in a few other private locations
7357 if test x"${ac_cv_c_tclconfig}" = x ; then
7360 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
7361 if test -f "$i/${configdir}/tclConfig.sh" ; then
7362 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
7370 if test x"${ac_cv_c_tclconfig}" = x ; then
7371 TCLCONFIG="# no Tcl configs found"
7372 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
7375 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
7376 echo "$ac_t""found $TCLCONFIG" 1>&6
7380 if test -z "${no_tcl}"; then
7410 # Ok, lets find the tk configuration
7411 # First, look for one uninstalled.
7412 # the alternative search directory is invoked by --with-tkconfig
7415 if test x"${no_tk}" = x ; then
7416 # we reset no_tk in case something fails here
7418 # Check whether --with-tkconfig or --without-tkconfig was given.
7419 if test "${with_tkconfig+set}" = set; then
7420 withval="$with_tkconfig"
7421 with_tkconfig=${withval}
7424 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
7425 echo "configure:7426: checking for Tk configuration" >&5
7426 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
7427 echo $ac_n "(cached) $ac_c" 1>&6
7431 # First check to see if --with-tkconfig was specified.
7432 if test x"${with_tkconfig}" != x ; then
7433 if test -f "${with_tkconfig}/tkConfig.sh" ; then
7434 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
7436 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
7440 # then check for a private Tk library
7441 if test x"${ac_cv_c_tkconfig}" = x ; then
7444 `ls -dr ../tk[4-9]* 2>/dev/null` \
7446 `ls -dr ../../tk[4-9]* 2>/dev/null` \
7448 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
7449 if test -f "$i/${configdir}/tkConfig.sh" ; then
7450 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
7455 # check in a few common install locations
7456 if test x"${ac_cv_c_tkconfig}" = x ; then
7457 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7458 if test -f "$i/tkConfig.sh" ; then
7459 ac_cv_c_tkconfig=`(cd $i; pwd)`
7464 # check in a few other private locations
7465 if test x"${ac_cv_c_tkconfig}" = x ; then
7468 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
7469 if test -f "$i/${configdir}/tkConfig.sh" ; then
7470 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
7478 if test x"${ac_cv_c_tkconfig}" = x ; then
7479 TKCONFIG="# no Tk configs found"
7480 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
7483 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
7484 echo "$ac_t""found $TKCONFIG" 1>&6
7490 # now look for Tcl library stuff
7501 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
7503 # If $no_tk is nonempty, then we can't do Tk, and there is no
7504 # point to doing Tcl.
7505 if test -z "${no_tk}"; then
7507 if test -f "$TKCONFIG" ; then
7525 # Ok, lets find the tcl source trees so we can use the headers
7526 # Warning: transition of version 9 to 10 will break this algorithm
7527 # because 10 sorts before 9. We also look for just tcl. We have to
7528 # be careful that we don't match stuff like tclX by accident.
7529 # the alternative search directory is involked by --with-tclinclude
7533 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
7534 echo "configure:7535: checking for Tcl private headers. dir=${configdir}" >&5
7535 # Check whether --with-tclinclude or --without-tclinclude was given.
7536 if test "${with_tclinclude+set}" = set; then
7537 withval="$with_tclinclude"
7538 with_tclinclude=${withval}
7541 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
7542 echo $ac_n "(cached) $ac_c" 1>&6
7545 # first check to see if --with-tclinclude was specified
7546 if test x"${with_tclinclude}" != x ; then
7547 if test -f ${with_tclinclude}/tclInt.h ; then
7548 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
7549 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
7550 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
7552 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
7556 # next check if it came with Tcl configuration file
7557 if test x"${ac_cv_c_tclconfig}" = x ; then
7558 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
7559 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
7563 # next check in private source directory
7565 # since ls returns lowest version numbers first, reverse its output
7566 if test x"${ac_cv_c_tclh}" = x ; then
7569 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
7570 ${srcdir}/../../tcl \
7571 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
7572 ${srcdir}/../../../tcl \
7573 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
7574 if test -f $i/generic/tclInt.h ; then
7575 ac_cv_c_tclh=`(cd $i/generic; pwd)`
7580 # finally check in a few common install locations
7582 # since ls returns lowest version numbers first, reverse its output
7583 if test x"${ac_cv_c_tclh}" = x ; then
7585 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
7586 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
7587 /usr/local/src/tcl \
7588 /usr/local/lib/tcl \
7589 ${prefix}/include ; do
7590 if test -f $i/generic/tclInt.h ; then
7591 ac_cv_c_tclh=`(cd $i/generic; pwd)`
7596 # see if one is installed
7597 if test x"${ac_cv_c_tclh}" = x ; then
7598 ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
7599 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
7600 echo "configure:7601: checking for tclInt.h" >&5
7601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7602 echo $ac_n "(cached) $ac_c" 1>&6
7604 cat > conftest.$ac_ext <<EOF
7605 #line 7606 "configure"
7606 #include "confdefs.h"
7609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7610 { (eval echo configure:7611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7612 if test -z "$ac_err"; then
7614 eval "ac_cv_header_$ac_safe=yes"
7617 echo "configure: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7620 eval "ac_cv_header_$ac_safe=no"
7624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7625 echo "$ac_t""yes" 1>&6
7626 ac_cv_c_tclh=installed
7628 echo "$ac_t""no" 1>&6
7636 if test x"${ac_cv_c_tclh}" = x ; then
7637 TCLHDIR="# no Tcl private headers found"
7638 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
7640 if test x"${ac_cv_c_tclh}" != x ; then
7642 if test x"${ac_cv_c_tclh}" = x"installed" ; then
7643 echo "$ac_t""is installed" 1>&6
7646 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
7647 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
7648 TCLHDIR="-I${ac_cv_c_tclh}"
7656 # Ok, lets find the tk source trees so we can use the headers
7657 # If the directory (presumably symlink) named "tk" exists, use that one
7658 # in preference to any others. Same logic is used when choosing library
7659 # and again with Tcl. The search order is the best place to look first, then in
7660 # decreasing significance. The loop breaks if the trigger file is found.
7661 # Note the gross little conversion here of srcdir by cd'ing to the found
7662 # directory. This converts the path from a relative to an absolute, so
7663 # recursive cache variables for the path will work right. We check all
7664 # the possible paths in one loop rather than many seperate loops to speed
7666 # the alternative search directory is involked by --with-tkinclude
7669 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
7670 echo "configure:7671: checking for Tk private headers" >&5
7671 # Check whether --with-tkinclude or --without-tkinclude was given.
7672 if test "${with_tkinclude+set}" = set; then
7673 withval="$with_tkinclude"
7674 with_tkinclude=${withval}
7677 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
7678 echo $ac_n "(cached) $ac_c" 1>&6
7681 # first check to see if --with-tkinclude was specified
7682 if test x"${with_tkinclude}" != x ; then
7683 if test -f ${with_tkinclude}/tk.h ; then
7684 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
7685 elif test -f ${with_tkinclude}/generic/tk.h ; then
7686 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
7688 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
7692 # next check if it came with Tk configuration file
7693 if test x"${ac_cv_c_tkconfig}" = x ; then
7694 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
7695 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
7699 # next check in private source directory
7701 # since ls returns lowest version numbers first, reverse its output
7702 if test x"${ac_cv_c_tkh}" = x ; then
7705 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
7706 ${srcdir}/../../tk \
7707 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
7708 ${srcdir}/../../../tk \
7709 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
7710 if test -f $i/generic/tk.h ; then
7711 ac_cv_c_tkh=`(cd $i/generic; pwd)`
7716 # finally check in a few common install locations
7718 # since ls returns lowest version numbers first, reverse its output
7719 if test x"${ac_cv_c_tkh}" = x ; then
7721 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
7722 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
7725 ${prefix}/include ; do
7726 if test -f $i/generic/tk.h ; then
7727 ac_cv_c_tkh=`(cd $i/generic; pwd)`
7732 # see if one is installed
7733 if test x"${ac_cv_c_tkh}" = x ; then
7734 ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
7735 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
7736 echo "configure:7737: checking for tk.h" >&5
7737 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7738 echo $ac_n "(cached) $ac_c" 1>&6
7740 cat > conftest.$ac_ext <<EOF
7741 #line 7742 "configure"
7742 #include "confdefs.h"
7745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7746 { (eval echo configure:7747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7748 if test -z "$ac_err"; then
7750 eval "ac_cv_header_$ac_safe=yes"
7753 echo "configure: failed program was:" >&5
7754 cat conftest.$ac_ext >&5
7756 eval "ac_cv_header_$ac_safe=no"
7760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7761 echo "$ac_t""yes" 1>&6
7762 ac_cv_c_tkh=installed
7764 echo "$ac_t""no" 1>&6
7772 if test x"${ac_cv_c_tkh}" != x ; then
7774 if test x"${ac_cv_c_tkh}" = x"installed" ; then
7775 echo "$ac_t""is installed" 1>&6
7778 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
7779 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
7780 TKHDIR="-I${ac_cv_c_tkh}"
7783 TKHDIR="# no Tk directory found"
7784 echo "configure: warning: Can't find Tk private headers" 1>&2
7791 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7792 echo "configure:7793: checking for Itcl private headers. srcdir=${srcdir}" >&5
7793 if test x"${ac_cv_c_itclh}" = x ; then
7794 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
7795 if test -f $i/generic/itcl.h ; then
7796 ac_cv_c_itclh=`(cd $i/generic; pwd)`
7801 if test x"${ac_cv_c_itclh}" = x ; then
7802 ITCLHDIR="# no Itcl private headers found"
7803 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
7805 if test x"${ac_cv_c_itclh}" != x ; then
7806 ITCLHDIR="-I${ac_cv_c_itclh}"
7808 # should always be here
7809 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
7814 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7815 echo "configure:7816: checking for Itk private headers. srcdir=${srcdir}" >&5
7816 if test x"${ac_cv_c_itkh}" = x ; then
7817 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
7818 if test -f $i/generic/itk.h ; then
7819 ac_cv_c_itkh=`(cd $i/generic; pwd)`
7824 if test x"${ac_cv_c_itkh}" = x ; then
7825 ITKHDIR="# no Itk private headers found"
7826 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
7828 if test x"${ac_cv_c_itkh}" != x ; then
7829 ITKHDIR="-I${ac_cv_c_itkh}"
7831 # should always be here
7832 # ITKLIB="../itcl/itk/unix/libitk.a"
7837 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7838 echo "configure:7839: checking for Tix private headers. srcdir=${srcdir}" >&5
7839 if test x"${ac_cv_c_tixh}" = x ; then
7840 for i in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/../../../tix ; do
7841 if test -f $i/generic/tix.h ; then
7842 ac_cv_c_tixh=`(cd $i/generic; pwd)`
7847 if test x"${ac_cv_c_tixh}" = x ; then
7848 TIXHDIR="# no Tix private headers found"
7849 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
7851 if test x"${ac_cv_c_tixh}" != x ; then
7852 TIXHDIR="-I${ac_cv_c_tixh}"
7858 # now look for Tk library stuff
7869 TK_DEPS="${tkdir}${TK_LIB_FILE}"
7871 # now look for Itcl library stuff
7875 # Ok, lets find the itcl configuration
7876 # First, look for one uninstalled.
7877 # the alternative search directory is invoked by --with-itclconfig
7880 if test x"${no_itcl}" = x ; then
7881 # we reset no_itcl in case something fails here
7883 # Check whether --with-itclconfig or --without-itclconfig was given.
7884 if test "${with_itclconfig+set}" = set; then
7885 withval="$with_itclconfig"
7886 with_itclconfig=${withval}
7889 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
7890 echo "configure:7891: checking for Itcl configuration" >&5
7891 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
7892 echo $ac_n "(cached) $ac_c" 1>&6
7896 # First check to see if --with-itclconfig was specified.
7897 if test x"${with_itclconfig}" != x ; then
7898 if test -f "${with_itclconfig}/itclConfig.sh" ; then
7899 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
7901 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
7905 # then check for a private Itcl library
7906 if test x"${ac_cv_c_itclconfig}" = x ; then
7909 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
7911 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
7913 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
7914 if test -f "$i/itclConfig.sh" ; then
7915 ac_cv_c_itclconfig=`(cd $i; pwd)`
7920 # check in a few common install locations
7921 if test x"${ac_cv_c_itclconfig}" = x ; then
7922 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7923 if test -f "$i/itclConfig.sh" ; then
7924 ac_cv_c_itclconfig=`(cd $i; pwd)`
7929 # check in a few other private locations
7930 if test x"${ac_cv_c_itclconfig}" = x ; then
7932 ${srcdir}/../itcl/itcl \
7933 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
7934 if test -f "$i/itclConfig.sh" ; then
7935 ac_cv_c_itclconfig=`(cd $i; pwd)`
7943 if test x"${ac_cv_c_itclconfig}" = x ; then
7944 ITCLCONFIG="# no Itcl configs found"
7945 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
7948 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
7949 echo "$ac_t""found $ITCLCONFIG" 1>&6
7953 if test -z "${no_itcl}"; then
7955 if test -f "$ITCLCONFIG" ; then
7970 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
7971 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
7975 # now look for Itk library stuff
7978 # Ok, lets find the itk configuration
7979 # First, look for one uninstalled.
7980 # the alternative search directory is invoked by --with-itkconfig
7983 if test x"${no_itk}" = x ; then
7984 # we reset no_itk in case something fails here
7986 # Check whether --with-itkconfig or --without-itkconfig was given.
7987 if test "${with_itkconfig+set}" = set; then
7988 withval="$with_itkconfig"
7989 with_itkconfig=${withval}
7992 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
7993 echo "configure:7994: checking for Itk configuration" >&5
7994 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
7995 echo $ac_n "(cached) $ac_c" 1>&6
7999 # First check to see if --with-itkconfig was specified.
8000 if test x"${with_itkconfig}" != x ; then
8001 if test -f "${with_itkconfig}/itkConfig.sh" ; then
8002 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
8004 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
8008 # then check for a private Itk library
8009 if test x"${ac_cv_c_itkconfig}" = x ; then
8012 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
8014 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
8016 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
8017 if test -f "$i/itkConfig.sh" ; then
8018 ac_cv_c_itkconfig=`(cd $i; pwd)`
8023 # check in a few common install locations
8024 if test x"${ac_cv_c_itkconfig}" = x ; then
8025 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8026 if test -f "$i/itkConfig.sh" ; then
8027 ac_cv_c_itkconfig=`(cd $i; pwd)`
8032 # check in a few other private locations
8033 if test x"${ac_cv_c_itkconfig}" = x ; then
8035 ${srcdir}/../itcl/itk \
8036 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
8037 if test -f "$i/itkConfig.sh" ; then
8038 ac_cv_c_itkconfig=`(cd $i; pwd)`
8046 if test x"${ac_cv_c_itkconfig}" = x ; then
8047 ITKCONFIG="# no Itk configs found"
8048 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
8051 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
8052 echo "$ac_t""found $ITKCONFIG" 1>&6
8057 if test -z "${no_itcl}"; then
8059 if test -f "$ITKCONFIG" ; then
8074 ITKLIB="${ITK_BUILD_LIB_SPEC}"
8075 ITK_DEPS="${ITK_LIB_FULL_PATH}"
8078 # now look for Tix library stuff
8081 # Ok, lets find the tix configuration
8082 # First, look for one uninstalled.
8083 # the alternative search directory is invoked by --with-itkconfig
8086 if test x"${no_tix}" = x ; then
8087 # we reset no_tix in case something fails here
8089 # Check whether --with-tixconfig or --without-tixconfig was given.
8090 if test "${with_tixconfig+set}" = set; then
8091 withval="$with_tixconfig"
8092 with_tixconfig=${withval}
8095 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
8096 echo "configure:8097: checking for Tix configuration" >&5
8097 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
8098 echo $ac_n "(cached) $ac_c" 1>&6
8102 # First check to see if --with-tixconfig was specified.
8103 if test x"${with_tixconfig}" != x ; then
8104 if test -f "${with_tixconfig}/tixConfig.sh" ; then
8105 ac_cv_c_tixconfig=`(cd ${with_tixconfig}; pwd)`
8107 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
8111 # then check for a private Tix library
8112 if test x"${ac_cv_c_tixconfig}" = x ; then
8115 `ls -dr ../tix 2>/dev/null` \
8117 `ls -dr ../../tix 2>/dev/null` \
8119 `ls -dr ../../../tix 2>/dev/null` ; do
8120 echo "**** Looking at $i - with ${configdir}"
8121 if test -f "$i/tixConfig.sh" ; then
8122 ac_cv_c_tixconfig=`(cd $i; pwd)`
8127 # check in a few common install locations
8128 if test x"${ac_cv_c_tixconfig}" = x ; then
8129 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8130 echo "**** Looking at $i"
8131 if test -f "$i/tixConfig.sh" ; then
8132 ac_cv_c_tixconfig=`(cd $i; pwd)`
8137 # check in a few other private locations
8138 echo "**** Other private locations"
8139 if test x"${ac_cv_c_tixconfig}" = x ; then
8142 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
8143 echo "**** Looking at $i - with ${configdir}"
8144 if test -f "$i/${configdir}/tixConfig.sh" ; then
8145 ac_cv_c_tixconfig=`(cd $i/${configdir}; pwd)`
8153 if test x"${ac_cv_c_tixconfig}" = x ; then
8154 TIXCONFIG="# no Tix configs found"
8155 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
8158 TIXCONFIG=${ac_cv_c_tixconfig}/tixConfig.sh
8159 echo "$ac_t""found $TIXCONFIG" 1>&6
8164 if test -z "${no_tix}"; then
8166 if test -f "$TIXCONFIG" ; then
8177 TIXLIB="${TIX_BUILD_LIB_SPEC}"
8178 TIX_DEPS="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
8181 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
8182 # Tcl/Tk 8.1 require -fwritable strings. I don't
8183 # know whether 8.2 will or not, but I bet it will.
8184 # I don't have to worry about 7.x since we don't support it.
8186 if test "$GCC" = "yes"; then
8187 if test "$TCL_VERSION" != "8.0" ; then
8188 GDBTK_CFLAGS="-fwritable-strings"
8192 # Include some libraries that Tcl and Tk want.
8193 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
8194 # Yes, the ordering seems wrong here. But it isn't.
8195 # TK_LIBS is the list of libraries that need to be linked
8196 # after Tcl/Tk. Note that this isn't put into LIBS. If it
8197 # were in LIBS then any link tests after this point would
8198 # try to include things like `$(LIBGUI)', which wouldn't work.
8199 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
8201 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
8202 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
8203 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
8204 CONFIG_INITS="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
8205 CONFIG_ALL="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
8206 CONFIG_CLEAN="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
8207 CONFIG_INSTALL="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
8208 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
8210 if test x$gdb_cv_os_cygwin = xyes; then
8211 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
8212 WIN32LDAPP="-Wl,--subsystem,console"
8213 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
8218 SUBDIRS="${SUBDIRS} gdbtk"
8219 configdirs="${configdirs} gdbtk"
8237 # If we find X, set shell vars x_includes and x_libraries to the
8238 # paths, otherwise set no_x=yes.
8239 # Uses ac_ vars as temps to allow command line to override cache and checks.
8240 # --without-x overrides everything else, but does not touch the cache.
8241 echo $ac_n "checking for X""... $ac_c" 1>&6
8242 echo "configure:8243: checking for X" >&5
8244 # Check whether --with-x or --without-x was given.
8245 if test "${with_x+set}" = set; then
8250 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8251 if test "x$with_x" = xno; then
8252 # The user explicitly disabled X.
8255 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8256 # Both variables are already set.
8259 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
8260 echo $ac_n "(cached) $ac_c" 1>&6
8262 # One or both of the vars are not set, and there is no cached value.
8263 ac_x_includes=NO ac_x_libraries=NO
8265 if mkdir conftestdir; then
8267 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8268 cat > Imakefile <<'EOF'
8270 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8272 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8273 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8274 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8275 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8276 for ac_extension in a so sl; do
8277 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8278 test -f $ac_im_libdir/libX11.$ac_extension; then
8279 ac_im_usrlibdir=$ac_im_libdir; break
8282 # Screen out bogus values from the imake configuration. They are
8283 # bogus both because they are the default anyway, and because
8284 # using them would break gcc on systems where it needs fixed includes.
8285 case "$ac_im_incroot" in
8287 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
8289 case "$ac_im_usrlibdir" in
8291 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
8298 if test "$ac_x_includes" = NO; then
8299 # Guess where to find include files, by looking for this one X11 .h file.
8300 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
8302 # First, try using that file with no special directory specified.
8303 cat > conftest.$ac_ext <<EOF
8304 #line 8305 "configure"
8305 #include "confdefs.h"
8306 #include <$x_direct_test_include>
8308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8309 { (eval echo configure:8310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8311 if test -z "$ac_err"; then
8313 # We can compile using X headers with no special include directory.
8317 echo "configure: failed program was:" >&5
8318 cat conftest.$ac_ext >&5
8320 # Look for the header file in a standard set of common directories.
8321 # Check X11 before X11Rn because it is often a symlink to the current release.
8324 /usr/X11R6/include \
8325 /usr/X11R5/include \
8326 /usr/X11R4/include \
8329 /usr/include/X11R6 \
8330 /usr/include/X11R5 \
8331 /usr/include/X11R4 \
8333 /usr/local/X11/include \
8334 /usr/local/X11R6/include \
8335 /usr/local/X11R5/include \
8336 /usr/local/X11R4/include \
8338 /usr/local/include/X11 \
8339 /usr/local/include/X11R6 \
8340 /usr/local/include/X11R5 \
8341 /usr/local/include/X11R4 \
8345 /usr/XFree86/include/X11 \
8348 /usr/local/include \
8349 /usr/unsupported/include \
8350 /usr/athena/include \
8351 /usr/local/x11r5/include \
8352 /usr/lpp/Xamples/include \
8354 /usr/openwin/include \
8355 /usr/openwin/share/include \
8358 if test -r "$ac_dir/$x_direct_test_include"; then
8359 ac_x_includes=$ac_dir
8365 fi # $ac_x_includes = NO
8367 if test "$ac_x_libraries" = NO; then
8368 # Check for the libraries.
8370 test -z "$x_direct_test_library" && x_direct_test_library=Xt
8371 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
8373 # See if we find them without any special options.
8374 # Don't add to $LIBS permanently.
8375 ac_save_LIBS="$LIBS"
8376 LIBS="-l$x_direct_test_library $LIBS"
8377 cat > conftest.$ac_ext <<EOF
8378 #line 8379 "configure"
8379 #include "confdefs.h"
8382 ${x_direct_test_function}()
8385 if { (eval echo configure:8386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8387 LIBS="$ac_save_LIBS"
8388 # We can link X programs with no special library path.
8391 echo "configure: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8394 LIBS="$ac_save_LIBS"
8395 # First see if replacing the include by lib works.
8396 # Check X11 before X11Rn because it is often a symlink to the current release.
8397 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
8408 /usr/local/X11/lib \
8409 /usr/local/X11R6/lib \
8410 /usr/local/X11R5/lib \
8411 /usr/local/X11R4/lib \
8413 /usr/local/lib/X11 \
8414 /usr/local/lib/X11R6 \
8415 /usr/local/lib/X11R5 \
8416 /usr/local/lib/X11R4 \
8420 /usr/XFree86/lib/X11 \
8424 /usr/unsupported/lib \
8426 /usr/local/x11r5/lib \
8427 /usr/lpp/Xamples/lib \
8431 /usr/openwin/share/lib \
8434 for ac_extension in a so sl; do
8435 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
8436 ac_x_libraries=$ac_dir
8443 fi # $ac_x_libraries = NO
8445 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
8446 # Didn't find X anywhere. Cache the known absence of X.
8447 ac_cv_have_x="have_x=no"
8449 # Record where we found X for the cache.
8450 ac_cv_have_x="have_x=yes \
8451 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8455 eval "$ac_cv_have_x"
8458 if test "$have_x" != yes; then
8459 echo "$ac_t""$have_x" 1>&6
8462 # If each of the values was on the command line, it overrides each guess.
8463 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8464 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8465 # Update the cache value to reflect the command line values.
8466 ac_cv_have_x="have_x=yes \
8467 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8468 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8473 # Unlike the sim directory, whether a simulator is linked is controlled by
8474 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
8475 # This code just checks for a few cases where we'd like to ignore those
8476 # definitions, even when they're present in the '.mt' file. These cases
8477 # are when --disable-sim is specified, or if the simulator directory is
8478 # not part of the source tree.
8480 # Check whether --enable-sim or --disable-sim was given.
8481 if test "${enable_sim+set}" = set; then
8482 enableval="$enable_sim"
8483 echo "enable_sim = $enable_sim";
8484 echo "enableval = ${enableval}";
8485 case "${enableval}" in
8486 yes) ignore_sim=false ;;
8487 no) ignore_sim=true ;;
8488 *) ignore_sim=false ;;
8495 if test ! -d "${srcdir}/../sim"; then
8499 if test "${ignore_sim}" = "true"; then
8501 IGNORE_SIM_OBS="SIM_OBS="
8505 cat >> confdefs.h <<\EOF
8525 # Begin stuff to support --enable-shared
8526 # Check whether --enable-shared or --disable-shared was given.
8527 if test "${enable_shared+set}" = set; then
8528 enableval="$enable_shared"
8529 case "${enableval}" in
8538 # If we have shared libraries, try to set rpath reasonably.
8539 if test "${shared}" = "true"; then
8542 HLDFLAGS='-Wl,+s,+b,$(libdir)'
8544 *-*-irix5* | *-*-irix6*)
8545 HLDFLAGS='-Wl,-rpath,$(libdir)'
8549 *-*-linux* | *-pc-linux-gnu*)
8550 HLDFLAGS='-Wl,-rpath,$(libdir)'
8553 HLDFLAGS='-R $(libdir)'
8556 HLDENV='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
8561 # On SunOS, if the linker supports the -rpath option, use it to
8562 # prevent ../bfd and ../opcodes from being included in the run time
8566 echo 'main () { }' > conftest.c
8567 ${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t
8568 if grep 'unrecognized' conftest.t >/dev/null 2>&1; then
8570 elif grep 'No such file' conftest.t >/dev/null 2>&1; then
8572 elif grep 'do not mix' conftest.t >/dev/null 2>&1; then
8574 elif grep 'some text already loaded' conftest.t >/dev/null 2>&1; then
8576 elif test "${shared}" = "true"; then
8577 HLDFLAGS='-Wl,-rpath=$(libdir)'
8579 HLDFLAGS='-Wl,-rpath='
8581 rm -f conftest.t conftest.c conftest
8586 # End stuff to support --enable-shared
8588 # target_subdir is used by the testsuite to find the target libraries.
8590 if test "${host}" != "${target}"; then
8591 target_subdir="${target_alias}/"
8596 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
8597 if test ! -f ${host_makefile_frag}; then
8598 # When building a native debuger the .mh file containing things
8599 # like NATDEPFILES is needed. Cross debuggers don't need .mh
8600 # since it no longer contains anything useful.
8601 if test "${target}" = "${host}"; then
8602 { echo "configure: error: "*** Gdb does not support native target ${host}"" 1>&2; exit 1; }
8604 host_makefile_frag=/dev/null
8607 frags="$frags $host_makefile_frag"
8609 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
8610 if test ! -f ${target_makefile_frag}; then
8611 { echo "configure: error: "*** Gdb does not support target ${target}"" 1>&2; exit 1; }
8613 frags="$frags $target_makefile_frag"
8620 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8621 ' ${host_makefile_frag}`
8623 targetfile=`sed -n '
8624 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8625 ' ${target_makefile_frag}`
8627 GDB_MULTI_ARCH=`sed -n '
8628 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
8629 ' ${target_makefile_frag}`
8631 if test "${target}" = "${host}"; then
8632 # We pick this up from the host configuration file (.mh) because we
8633 # do not have a native configuration Makefile fragment.
8634 nativefile=`sed -n '
8635 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8636 ' ${host_makefile_frag}`
8640 # New targets should just set gdb_multi_arch=yes in configure.tgt.
8641 # Old targets being converted can either do that or set GDB_MULTI_ARCH
8642 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
8643 # will be the default.
8644 if test x"${GDB_MULTI_ARCH}" = x ; then
8645 case "${gdb_multi_arch}" in
8646 yes ) GDB_MULTI_ARCH=GDB_MULTI_ARCH_PURE ;;
8647 no ) GDB_MULTI_ARCH=0 ;;
8648 0|1|2 ) GDB_MULTI_ARCH=${gdb_multi_arch} ;;
8651 if test x"${GDB_MULTI_ARCH}" != x ; then
8652 cat >> confdefs.h <<EOF
8653 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
8657 # Warn the user when they use an old practice
8658 case "${GDB_MULTI_ARCH}" in
8660 0 | GDB_MULTI_ARCH_PARTIAL | 1 | GDB_MULTI_ARCH_TM | 2 )
8661 echo "configure: warning: "GDB: Target is not pure multi-arch"" 1>&2 ;;
8662 GDB_MULTI_ARCH_PURE )
8663 if test x"${targetfile}" != x ; then
8664 echo "configure: warning: "GDB: Ignoring TM_FILE in ${target_makefile_frag}"" 1>&2
8667 *) { echo "configure: error: "GDB: Unknown GDB_MULTI_ARCH value ${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
8670 if test "${enable_multi_ice}" = "yes"; then
8671 SUBDIRS="${SUBDIRS} multi-ice"
8674 # ``gdbserver'' can only be built in a native configuration.
8675 if test x"${target}" = x"${host}"; then
8676 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
8677 echo "configure:8678: checking whether gdbserver is supported on this host" >&5
8678 if test x"${build_gdbserver}" = xyes ; then
8679 configdirs="${configdirs} gdbserver"
8680 SUBDIRS="${SUBDIRS} gdbserver"
8681 echo "$ac_t""yes" 1>&6
8683 echo "$ac_t""no" 1>&6
8689 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
8690 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
8698 if test "${hostfile}" != ""; then
8700 GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}"
8701 files="${files} ${GDB_XM_FILE}"
8702 links="${links} xm.h"
8703 cat >> confdefs.h <<EOF
8704 #define GDB_XM_FILE ${GDB_XM_FILE}
8712 if test "${targetfile}" != ""; then
8714 GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}"
8715 files="${files} ${GDB_TM_FILE}"
8716 links="${links} tm.h"
8717 cat >> confdefs.h <<EOF
8718 #define GDB_TM_FILE ${GDB_TM_FILE}
8726 if test "${nativefile}" != ""; then
8728 GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}"
8729 files="${files} ${GDB_NM_FILE}"
8730 links="${links} nm.h"
8731 cat >> confdefs.h <<EOF
8732 #define GDB_NM_FILE ${GDB_NM_FILE}
8738 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8739 echo "configure:8740: checking whether ln -s works" >&5
8740 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8741 echo $ac_n "(cached) $ac_c" 1>&6
8744 if ln -s X conftestdata 2>/dev/null
8747 ac_cv_prog_LN_S="ln -s"
8752 LN_S="$ac_cv_prog_LN_S"
8753 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8754 echo "$ac_t""yes" 1>&6
8756 echo "$ac_t""no" 1>&6
8762 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8763 echo "configure:8764: checking for Cygwin environment" >&5
8764 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
8765 echo $ac_n "(cached) $ac_c" 1>&6
8767 cat > conftest.$ac_ext <<EOF
8768 #line 8769 "configure"
8769 #include "confdefs.h"
8774 #define __CYGWIN__ __CYGWIN32__
8779 if { (eval echo configure:8780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8783 echo "configure: failed program was:" >&5
8784 cat conftest.$ac_ext >&5
8792 echo "$ac_t""$ac_cv_cygwin" 1>&6
8794 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8795 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8796 echo "configure:8797: checking for mingw32 environment" >&5
8797 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
8798 echo $ac_n "(cached) $ac_c" 1>&6
8800 cat > conftest.$ac_ext <<EOF
8801 #line 8802 "configure"
8802 #include "confdefs.h"
8808 if { (eval echo configure:8809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8812 echo "configure: failed program was:" >&5
8813 cat conftest.$ac_ext >&5
8821 echo "$ac_t""$ac_cv_mingw32" 1>&6
8823 test "$ac_cv_mingw32" = yes && MINGW32=yes
8826 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8827 echo "configure:8828: checking for executable suffix" >&5
8828 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
8829 echo $ac_n "(cached) $ac_c" 1>&6
8831 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
8835 echo 'int main () { return 0; }' > conftest.$ac_ext
8837 if { (eval echo configure:8838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8838 for file in conftest.*; do
8840 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8841 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8845 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8848 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8853 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8854 echo "$ac_t""${ac_cv_exeext}" 1>&6
8859 cat >> confdefs.h <<\EOF
8860 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
8866 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8867 if test "${with_libiconv_prefix+set}" = set; then
8868 withval="$with_libiconv_prefix"
8870 for dir in `echo "$withval" | tr : ' '`; do
8871 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
8872 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
8878 echo $ac_n "checking for iconv""... $ac_c" 1>&6
8879 echo "configure:8880: checking for iconv" >&5
8880 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
8881 echo $ac_n "(cached) $ac_c" 1>&6
8884 am_cv_func_iconv="no, consider installing GNU libiconv"
8886 cat > conftest.$ac_ext <<EOF
8887 #line 8888 "configure"
8888 #include "confdefs.h"
8892 iconv_t cd = iconv_open("","");
8893 iconv(cd,NULL,NULL,NULL,NULL);
8897 if { (eval echo configure:8898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8899 am_cv_func_iconv=yes
8901 echo "configure: failed program was:" >&5
8902 cat conftest.$ac_ext >&5
8905 if test "$am_cv_func_iconv" != yes; then
8906 am_save_LIBS="$LIBS"
8907 LIBS="$LIBS -liconv"
8908 cat > conftest.$ac_ext <<EOF
8909 #line 8910 "configure"
8910 #include "confdefs.h"
8914 iconv_t cd = iconv_open("","");
8915 iconv(cd,NULL,NULL,NULL,NULL);
8919 if { (eval echo configure:8920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8922 am_cv_func_iconv=yes
8924 echo "configure: failed program was:" >&5
8925 cat conftest.$ac_ext >&5
8928 LIBS="$am_save_LIBS"
8933 echo "$ac_t""$am_cv_func_iconv" 1>&6
8934 if test "$am_cv_func_iconv" = yes; then
8935 cat >> confdefs.h <<\EOF
8936 #define HAVE_ICONV 1
8939 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
8940 echo "configure:8941: checking for iconv declaration" >&5
8941 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
8942 echo $ac_n "(cached) $ac_c" 1>&6
8945 cat > conftest.$ac_ext <<EOF
8946 #line 8947 "configure"
8947 #include "confdefs.h"
8955 #if defined(__STDC__) || defined(__cplusplus)
8956 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8965 if { (eval echo configure:8966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8967 am_cv_proto_iconv_arg1=""
8969 echo "configure: failed program was:" >&5
8970 cat conftest.$ac_ext >&5
8972 am_cv_proto_iconv_arg1="const"
8975 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8978 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8979 echo "$ac_t""${ac_t:-
8980 }$am_cv_proto_iconv" 1>&6
8981 cat >> confdefs.h <<EOF
8982 #define ICONV_CONST $am_cv_proto_iconv_arg1
8987 if test "$am_cv_lib_iconv" = yes; then
8993 subdirs="$configdirs"
8996 cat > confcache <<\EOF
8997 # This file is a shell script that caches the results of configure
8998 # tests run on this system so they can be shared between configure
8999 # scripts and configure runs. It is not useful on other systems.
9000 # If it contains results you don't want to keep, you may remove or edit it.
9002 # By default, configure uses ./config.cache as the cache file,
9003 # creating it if it does not exist already. You can give configure
9004 # the --cache-file=FILE option to use a different cache file; that is
9005 # what configure does when it calls configure scripts in
9006 # subdirectories, so they share the cache.
9007 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9008 # config.status only pays attention to the cache file if you give it the
9009 # --recheck option to rerun configure.
9012 # The following way of writing the cache mishandles newlines in values,
9013 # but we know of no workaround that is simple, portable, and efficient.
9014 # So, don't put newlines in cache variables' values.
9015 # Ultrix sh set writes to stderr and can't be redirected directly,
9016 # and sets the high bit in the cache file unless we assign to the vars.
9018 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9020 # `set' does not quote correctly, so add quotes (double-quote substitution
9021 # turns \\\\ into \\, and sed turns \\ into \).
9023 -e "s/'/'\\\\''/g" \
9024 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9027 # `set' quotes correctly as required by POSIX, so do not add quotes.
9028 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9031 if cmp -s $cache_file confcache; then
9034 if test -w $cache_file; then
9035 echo "updating cache $cache_file"
9036 cat confcache > $cache_file
9038 echo "not updating unwritable cache $cache_file"
9043 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9045 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9046 # Let make expand exec_prefix.
9047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9049 # Any assignment to VPATH causes Sun make to only execute
9050 # the first set of double-colon rules, so remove it if not needed.
9051 # If there is a colon in the path, we need to keep it.
9052 if test "x$srcdir" = x.; then
9053 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9056 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9058 DEFS=-DHAVE_CONFIG_H
9060 # Without the "./", some shells look in PATH for config.status.
9061 : ${CONFIG_STATUS=./config.status}
9063 echo creating $CONFIG_STATUS
9064 rm -f $CONFIG_STATUS
9065 cat > $CONFIG_STATUS <<EOF
9067 # Generated automatically by configure.
9068 # Run this file to recreate the current configuration.
9069 # This directory was configured as follows,
9070 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9072 # $0 $ac_configure_args
9074 # Compiler output produced by configure, useful for debugging
9075 # configure, is in ./config.log if it exists.
9077 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9080 case "\$ac_option" in
9081 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9082 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9083 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9084 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9085 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9087 -help | --help | --hel | --he | --h)
9088 echo "\$ac_cs_usage"; exit 0 ;;
9089 *) echo "\$ac_cs_usage"; exit 1 ;;
9093 ac_given_srcdir=$srcdir
9094 ac_given_INSTALL="$INSTALL"
9096 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9098 cat >> $CONFIG_STATUS <<EOF
9100 # Protect against being on the right side of a sed subst in config.status.
9101 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9102 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9106 s%@CFLAGS@%$CFLAGS%g
9107 s%@CPPFLAGS@%$CPPFLAGS%g
9108 s%@CXXFLAGS@%$CXXFLAGS%g
9109 s%@FFLAGS@%$FFLAGS%g
9111 s%@LDFLAGS@%$LDFLAGS%g
9113 s%@exec_prefix@%$exec_prefix%g
9114 s%@prefix@%$prefix%g
9115 s%@program_transform_name@%$program_transform_name%g
9116 s%@bindir@%$bindir%g
9117 s%@sbindir@%$sbindir%g
9118 s%@libexecdir@%$libexecdir%g
9119 s%@datadir@%$datadir%g
9120 s%@sysconfdir@%$sysconfdir%g
9121 s%@sharedstatedir@%$sharedstatedir%g
9122 s%@localstatedir@%$localstatedir%g
9123 s%@libdir@%$libdir%g
9124 s%@includedir@%$includedir%g
9125 s%@oldincludedir@%$oldincludedir%g
9126 s%@infodir@%$infodir%g
9127 s%@mandir@%$mandir%g
9128 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
9129 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
9134 s%@host_alias@%$host_alias%g
9135 s%@host_cpu@%$host_cpu%g
9136 s%@host_vendor@%$host_vendor%g
9137 s%@host_os@%$host_os%g
9138 s%@target@%$target%g
9139 s%@target_alias@%$target_alias%g
9140 s%@target_cpu@%$target_cpu%g
9141 s%@target_vendor@%$target_vendor%g
9142 s%@target_os@%$target_os%g
9144 s%@build_alias@%$build_alias%g
9145 s%@build_cpu@%$build_cpu%g
9146 s%@build_vendor@%$build_vendor%g
9147 s%@build_os@%$build_os%g
9148 s%@SET_MAKE@%$SET_MAKE%g
9149 s%@RANLIB@%$RANLIB%g
9150 s%@ALLOCA@%$ALLOCA%g
9151 s%@USE_NLS@%$USE_NLS%g
9152 s%@MSGFMT@%$MSGFMT%g
9153 s%@GMSGFMT@%$GMSGFMT%g
9154 s%@XGETTEXT@%$XGETTEXT%g
9155 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9156 s%@CATALOGS@%$CATALOGS%g
9157 s%@CATOBJEXT@%$CATOBJEXT%g
9158 s%@DATADIRNAME@%$DATADIRNAME%g
9159 s%@GMOFILES@%$GMOFILES%g
9160 s%@INSTOBJEXT@%$INSTOBJEXT%g
9161 s%@INTLDEPS@%$INTLDEPS%g
9162 s%@INTLLIBS@%$INTLLIBS%g
9163 s%@INTLOBJS@%$INTLOBJS%g
9164 s%@POFILES@%$POFILES%g
9166 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9168 s%@GT_YES@%$GT_YES%g
9169 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9172 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9173 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9174 s%@INSTALL_DATA@%$INSTALL_DATA%g
9176 s%@DLLTOOL@%$DLLTOOL%g
9177 s%@WINDRES@%$WINDRES%g
9180 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
9181 s%@UIOUT_CFLAGS@%$UIOUT_CFLAGS%g
9182 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
9183 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
9184 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
9185 s%@MMALLOC@%$MMALLOC%g
9187 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
9188 s%@TERM_LIB@%$TERM_LIB%g
9189 s%@WIN32LIBS@%$WIN32LIBS%g
9190 s%@LIBGUI@%$LIBGUI%g
9191 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
9192 s%@WIN32LDAPP@%$WIN32LDAPP%g
9193 s%@TCL_VERSION@%$TCL_VERSION%g
9194 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
9195 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
9196 s%@TCL_CC@%$TCL_CC%g
9197 s%@TCL_DEFS@%$TCL_DEFS%g
9198 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
9199 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
9200 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
9201 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
9202 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
9203 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
9204 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
9205 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
9206 s%@TCL_RANLIB@%$TCL_RANLIB%g
9207 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
9208 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
9209 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
9210 s%@TK_VERSION@%$TK_VERSION%g
9211 s%@TK_DEFS@%$TK_DEFS%g
9212 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
9213 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
9214 s%@TK_XLIBSW@%$TK_XLIBSW%g
9215 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
9216 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
9217 s%@TCLHDIR@%$TCLHDIR%g
9218 s%@TKHDIR@%$TKHDIR%g
9219 s%@ITCLHDIR@%$ITCLHDIR%g
9220 s%@ITKHDIR@%$ITKHDIR%g
9221 s%@TIXHDIR@%$TIXHDIR%g
9222 s%@ITCL_VERSION@%$ITCL_VERSION%g
9223 s%@ITCL_DEFS@%$ITCL_DEFS%g
9224 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
9225 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
9226 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
9227 s%@ITK_VERSION@%$ITK_VERSION%g
9228 s%@ITK_DEFS@%$ITK_DEFS%g
9229 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
9230 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
9231 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
9232 s%@TIX_VERSION@%$TIX_VERSION%g
9233 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
9234 s%@X_CFLAGS@%$X_CFLAGS%g
9235 s%@X_LDFLAGS@%$X_LDFLAGS%g
9236 s%@X_LIBS@%$X_LIBS%g
9237 s%@TCL_DEPS@%$TCL_DEPS%g
9238 s%@TK_DEPS@%$TK_DEPS%g
9239 s%@ITCLLIB@%$ITCLLIB%g
9240 s%@ITCL_DEPS@%$ITCL_DEPS%g
9241 s%@ITKLIB@%$ITKLIB%g
9242 s%@ITK_DEPS@%$ITK_DEPS%g
9243 s%@TIXLIB@%$TIXLIB%g
9244 s%@TIX_DEPS@%$TIX_DEPS%g
9245 s%@GDBTKLIBS@%$GDBTKLIBS%g
9246 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
9247 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
9248 s%@IGNORE_SIM@%$IGNORE_SIM%g
9249 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
9250 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
9251 s%@CONFIG_OBS@%$CONFIG_OBS%g
9252 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
9253 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
9254 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
9255 s%@CONFIG_INITS@%$CONFIG_INITS%g
9256 s%@CONFIG_ALL@%$CONFIG_ALL%g
9257 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
9258 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
9259 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
9260 s%@HLDFLAGS@%$HLDFLAGS%g
9261 s%@HLDENV@%$HLDENV%g
9262 s%@target_subdir@%$target_subdir%g
9263 /@host_makefile_frag@/r $host_makefile_frag
9264 s%@host_makefile_frag@%%g
9265 /@target_makefile_frag@/r $target_makefile_frag
9266 s%@target_makefile_frag@%%g
9268 s%@SUBDIRS@%$SUBDIRS%g
9273 s%@EXEEXT@%$EXEEXT%g
9274 s%@LIBICONV@%$LIBICONV%g
9275 s%@subdirs@%$subdirs%g
9280 cat >> $CONFIG_STATUS <<\EOF
9282 # Split the substitutions into bite-sized pieces for seds with
9283 # small command number limits, like on Digital OSF/1 and HP-UX.
9284 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9285 ac_file=1 # Number of current file.
9286 ac_beg=1 # First line for current file.
9287 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9290 while $ac_more_lines; do
9291 if test $ac_beg -gt 1; then
9292 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9294 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9296 if test ! -s conftest.s$ac_file; then
9298 rm -f conftest.s$ac_file
9300 if test -z "$ac_sed_cmds"; then
9301 ac_sed_cmds="sed -f conftest.s$ac_file"
9303 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9305 ac_file=`expr $ac_file + 1`
9307 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9310 if test -z "$ac_sed_cmds"; then
9315 cat >> $CONFIG_STATUS <<EOF
9317 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
9319 cat >> $CONFIG_STATUS <<\EOF
9320 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9321 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9323 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9324 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9325 *) ac_file_in="${ac_file}.in" ;;
9328 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9330 # Remove last slash and all that follows it. Not all systems have dirname.
9331 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9332 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9333 # The file is in a subdirectory.
9334 test ! -d "$ac_dir" && mkdir "$ac_dir"
9335 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9336 # A "../" for each directory in $ac_dir_suffix.
9337 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9339 ac_dir_suffix= ac_dots=
9342 case "$ac_given_srcdir" in
9344 if test -z "$ac_dots"; then top_srcdir=.
9345 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9346 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9348 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9349 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9352 case "$ac_given_INSTALL" in
9353 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9354 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9357 echo creating "$ac_file"
9359 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9361 *Makefile*) ac_comsub="1i\\
9362 # $configure_input" ;;
9366 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9368 s%@configure_input@%$configure_input%g
9369 s%@srcdir@%$srcdir%g
9370 s%@top_srcdir@%$top_srcdir%g
9371 s%@INSTALL@%$INSTALL%g
9372 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9376 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9377 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9379 # ac_d sets the value in "#define NAME VALUE" lines.
9380 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9381 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9384 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9385 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9386 ac_uB='\([ ]\)%\1#\2define\3'
9389 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9390 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9391 ac_eB='$%\1#\2define\3'
9395 if test "${CONFIG_HEADERS+set}" != set; then
9397 cat >> $CONFIG_STATUS <<EOF
9398 CONFIG_HEADERS="config.h:config.in"
9400 cat >> $CONFIG_STATUS <<\EOF
9402 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9403 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9405 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9406 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9407 *) ac_file_in="${ac_file}.in" ;;
9410 echo creating $ac_file
9412 rm -f conftest.frag conftest.in conftest.out
9413 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9414 cat $ac_file_inputs > conftest.in
9418 # Transform confdefs.h into a sed script conftest.vals that substitutes
9419 # the proper values into config.h.in to produce config.h. And first:
9420 # Protect against being on the right side of a sed subst in config.status.
9421 # Protect against being in an unquoted here document in config.status.
9423 cat > conftest.hdr <<\EOF
9426 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9430 sed -n -f conftest.hdr confdefs.h > conftest.vals
9433 # This sed command replaces #undef with comments. This is necessary, for
9434 # example, in the case of _POSIX_SOURCE, which is predefined and required
9435 # on some systems where configure will not decide to define it.
9436 cat >> conftest.vals <<\EOF
9437 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9440 # Break up conftest.vals because some shells have a limit on
9441 # the size of here documents, and old seds have small limits too.
9446 ac_lines=`grep -c . conftest.vals`
9447 # grep -c gives empty output for an empty file on some AIX systems.
9448 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9449 # Write a limited-size here document to conftest.frag.
9450 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9451 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9453 sed -f conftest.frag conftest.in > conftest.out
9455 mv conftest.out conftest.in
9457 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9459 mv conftest.tail conftest.vals
9463 cat >> $CONFIG_STATUS <<\EOF
9464 rm -f conftest.frag conftest.h
9465 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9466 cat conftest.in >> conftest.h
9468 if cmp -s $ac_file conftest.h 2>/dev/null; then
9469 echo "$ac_file is unchanged"
9472 # Remove last slash and all that follows it. Not all systems have dirname.
9473 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9474 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9475 # The file is in a subdirectory.
9476 test ! -d "$ac_dir" && mkdir "$ac_dir"
9479 mv conftest.h $ac_file
9485 cat >> $CONFIG_STATUS <<EOF
9490 cat >> $CONFIG_STATUS <<\EOF
9491 srcdir=$ac_given_srcdir
9492 while test -n "$ac_sources"; do
9493 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9494 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9496 echo "linking $srcdir/$ac_source to $ac_dest"
9498 if test ! -r $srcdir/$ac_source; then
9499 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9503 # Make relative symlinks.
9504 # Remove last slash and all that follows it. Not all systems have dirname.
9505 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9506 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9507 # The dest file is in a subdirectory.
9508 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9509 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9510 # A "../" for each directory in $ac_dest_dir_suffix.
9511 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9513 ac_dest_dir_suffix= ac_dots=
9517 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9518 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9521 # Make a symlink if possible; otherwise try a hard link.
9522 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9523 ln $srcdir/$ac_source $ac_dest; then :
9525 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9529 cat >> $CONFIG_STATUS <<EOF
9531 gdb_host_cpu=$gdb_host_cpu
9532 gdb_target_cpu=$gdb_target_cpu
9533 nativefile=$nativefile
9536 cat >> $CONFIG_STATUS <<\EOF
9538 if test "${nativefile}" = ""; then
9540 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
9541 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
9542 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
9544 mv -f Makefile.tem Makefile
9547 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
9548 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
9549 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
9550 mv -f Makefile.tmp Makefile
9553 case x$CONFIG_HEADERS in
9554 xconfig.h:config.in)
9560 chmod +x $CONFIG_STATUS
9561 rm -fr confdefs* $ac_clean_files
9562 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9564 if test "$no_recursion" != yes; then
9566 # Remove --cache-file and --srcdir arguments so they do not pile up.
9567 ac_sub_configure_args=
9569 for ac_arg in $ac_configure_args; do
9570 if test -n "$ac_prev"; then
9575 -cache-file | --cache-file | --cache-fil | --cache-fi \
9576 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9577 ac_prev=cache_file ;;
9578 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9579 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9581 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9583 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9585 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9589 for ac_config_dir in $configdirs; do
9591 # Do not complain, so a configure script can configure whichever
9592 # parts of a large source tree are present.
9593 if test ! -d $srcdir/$ac_config_dir; then
9597 echo configuring in $ac_config_dir
9602 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9604 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9612 # A "../" for each directory in /$ac_config_dir.
9613 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
9616 .) # No --srcdir option. We are building in place.
9617 ac_sub_srcdir=$srcdir ;;
9618 /*) # Absolute path.
9619 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9621 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9624 # Check for guested configure; otherwise get Cygnus style configure.
9625 if test -f $ac_sub_srcdir/configure; then
9626 ac_sub_configure=$ac_sub_srcdir/configure
9627 elif test -f $ac_sub_srcdir/configure.in; then
9628 ac_sub_configure=$ac_configure
9630 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9634 # The recursion is here.
9635 if test -n "$ac_sub_configure"; then
9637 # Make the cache file name correct relative to the subdirectory.
9638 case "$cache_file" in
9639 /*) ac_sub_cache_file=$cache_file ;;
9641 ac_sub_cache_file="$ac_dots$cache_file" ;;
9643 case "$ac_given_INSTALL" in
9644 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9645 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9648 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9649 # The eval makes quoting arguments work.
9650 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9653 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }