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 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
70 cache_file
=.
/config.cache
79 program_transform_name
=s
,x
,x
,
87 bindir
='${exec_prefix}/bin'
88 sbindir
='${exec_prefix}/sbin'
89 libexecdir
='${exec_prefix}/libexec'
90 datadir
='${prefix}/share'
91 sysconfdir
='${prefix}/etc'
92 sharedstatedir
='${prefix}/com'
93 localstatedir
='${prefix}/var'
94 libdir
='${exec_prefix}/lib'
95 includedir
='${prefix}/include'
96 oldincludedir
='/usr/include'
97 infodir
='${prefix}/info'
98 mandir
='${prefix}/man'
100 # Initialize some other variables.
103 SHELL
=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
111 # If the previous option needs an argument, assign it.
112 if test -n "$ac_prev"; then
113 eval "$ac_prev=\$ac_option"
119 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 # Accept the important Cygnus configure options, so we can diagnose typos.
127 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
129 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
130 bindir
="$ac_optarg" ;;
132 -build |
--build |
--buil |
--bui |
--bu)
134 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
135 build
="$ac_optarg" ;;
137 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
138 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
139 ac_prev
=cache_file
;;
140 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
141 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
142 cache_file
="$ac_optarg" ;;
144 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
146 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
148 datadir
="$ac_optarg" ;;
150 -disable-* |
--disable-*)
151 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
152 # Reject names that are not valid shell variable names.
153 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
154 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}=no" ;;
159 -enable-* |
--enable-*)
160 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
170 eval "enable_${ac_feature}='$ac_optarg'" ;;
172 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
173 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
174 |
--exec |
--exe |
--ex)
175 ac_prev
=exec_prefix
;;
176 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
177 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
178 |
--exec=* |
--exe=* |
--ex=*)
179 exec_prefix
="$ac_optarg" ;;
181 -gas |
--gas |
--ga |
--g)
182 # Obsolete; use --with-gas.
185 -help |
--help |
--hel |
--he)
186 # Omit some internal or obsolete options to make the list less imposing.
187 # This message is too long to be a string in the A/UX 3.1 sh.
189 Usage: configure [options] [host]
190 Options: [defaults in brackets after descriptions]
192 --cache-file=FILE cache test results in FILE
193 --help print this message
194 --no-create do not create output files
195 --quiet, --silent do not print \`checking...' messages
196 --version print the version of autoconf that created configure
197 Directory and file names:
198 --prefix=PREFIX install architecture-independent files in PREFIX
200 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
202 --bindir=DIR user executables in DIR [EPREFIX/bin]
203 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
204 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
205 --datadir=DIR read-only architecture-independent data in DIR
207 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
208 --sharedstatedir=DIR modifiable architecture-independent data in DIR
210 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
211 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
212 --includedir=DIR C header files in DIR [PREFIX/include]
213 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
214 --infodir=DIR info documentation in DIR [PREFIX/info]
215 --mandir=DIR man documentation in DIR [PREFIX/man]
216 --srcdir=DIR find the sources in DIR [configure dir or ..]
217 --program-prefix=PREFIX prepend PREFIX to installed program names
218 --program-suffix=SUFFIX append SUFFIX to installed program names
219 --program-transform-name=PROGRAM
220 run sed PROGRAM on installed program names
224 --build=BUILD configure for building on BUILD [BUILD=HOST]
225 --host=HOST configure for HOST [guessed]
226 --target=TARGET configure for TARGET [TARGET=HOST]
227 Features and packages:
228 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
229 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
230 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
231 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
232 --x-includes=DIR X include files are in DIR
233 --x-libraries=DIR X library files are in DIR
235 if test -n "$ac_help"; then
236 echo "--enable and --with options recognized:$ac_help"
240 -host |
--host |
--hos |
--ho)
242 -host=* |
--host=* |
--hos=* |
--ho=*)
245 -includedir |
--includedir |
--includedi |
--included |
--include \
246 |
--includ |
--inclu |
--incl |
--inc)
247 ac_prev
=includedir
;;
248 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
249 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
250 includedir
="$ac_optarg" ;;
252 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
254 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
255 infodir
="$ac_optarg" ;;
257 -libdir |
--libdir |
--libdi |
--libd)
259 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
260 libdir
="$ac_optarg" ;;
262 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
263 |
--libexe |
--libex |
--libe)
264 ac_prev
=libexecdir
;;
265 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
266 |
--libexe=* |
--libex=* |
--libe=*)
267 libexecdir
="$ac_optarg" ;;
269 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
270 |
--localstate |
--localstat |
--localsta |
--localst \
271 |
--locals |
--local |
--loca |
--loc |
--lo)
272 ac_prev
=localstatedir
;;
273 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
274 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
275 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
276 localstatedir
="$ac_optarg" ;;
278 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
280 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
281 mandir
="$ac_optarg" ;;
284 # Obsolete; use --without-fp.
287 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
291 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
292 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
295 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
296 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
297 |
--oldin |
--oldi |
--old |
--ol |
--o)
298 ac_prev
=oldincludedir
;;
299 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
300 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
301 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
302 oldincludedir
="$ac_optarg" ;;
304 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
306 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
307 prefix
="$ac_optarg" ;;
309 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
310 |
--program-pre |
--program-pr |
--program-p)
311 ac_prev
=program_prefix
;;
312 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
313 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
314 program_prefix
="$ac_optarg" ;;
316 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
317 |
--program-suf |
--program-su |
--program-s)
318 ac_prev
=program_suffix
;;
319 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
320 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
321 program_suffix
="$ac_optarg" ;;
323 -program-transform-name |
--program-transform-name \
324 |
--program-transform-nam |
--program-transform-na \
325 |
--program-transform-n |
--program-transform- \
326 |
--program-transform |
--program-transfor \
327 |
--program-transfo |
--program-transf \
328 |
--program-trans |
--program-tran \
329 |
--progr-tra |
--program-tr |
--program-t)
330 ac_prev
=program_transform_name
;;
331 -program-transform-name=* |
--program-transform-name=* \
332 |
--program-transform-nam=* |
--program-transform-na=* \
333 |
--program-transform-n=* |
--program-transform-=* \
334 |
--program-transform=* |
--program-transfor=* \
335 |
--program-transfo=* |
--program-transf=* \
336 |
--program-trans=* |
--program-tran=* \
337 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
338 program_transform_name
="$ac_optarg" ;;
340 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
341 |
-silent |
--silent |
--silen |
--sile |
--sil)
344 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
346 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
348 sbindir
="$ac_optarg" ;;
350 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
351 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
352 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
354 ac_prev
=sharedstatedir
;;
355 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
356 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
357 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
359 sharedstatedir
="$ac_optarg" ;;
361 -site |
--site |
--sit)
363 -site=* |
--site=* |
--sit=*)
366 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
368 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
369 srcdir
="$ac_optarg" ;;
371 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
372 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
373 ac_prev
=sysconfdir
;;
374 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
375 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
376 sysconfdir
="$ac_optarg" ;;
378 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
380 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
381 target
="$ac_optarg" ;;
383 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
386 -version |
--version |
--versio |
--versi |
--vers)
387 echo "configure generated by autoconf version 2.13"
391 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package
=`echo $ac_package| sed 's/-/_/g'`
401 eval "with_${ac_package}='$ac_optarg'" ;;
403 -without-* |
--without-*)
404 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 ac_package
=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}=no" ;;
413 # Obsolete; use --with-x.
416 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
417 |
--x-incl |
--x-inc |
--x-in |
--x-i)
418 ac_prev
=x_includes
;;
419 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
420 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
421 x_includes
="$ac_optarg" ;;
423 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
424 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
425 ac_prev
=x_libraries
;;
426 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
427 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
428 x_libraries
="$ac_optarg" ;;
430 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
434 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
435 echo "configure: warning: $ac_option: invalid host type" 1>&2
437 if test "x$nonopt" != xNONE
; then
438 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 if test -n "$ac_prev"; then
447 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
450 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
452 # File descriptor usage:
455 # 2 errors and warnings
456 # 3 some systems may open it to /dev/tty
457 # 4 used on the Kubota Titan
458 # 6 checking for... messages and results
459 # 5 compiler messages saved in config.log
460 if test "$silent" = yes; then
468 This file contains any messages produced by compilers while
469 running configure, to aid debugging if configure makes a mistake.
472 # Strip out --no-create and --no-recursion so they do not pile up.
473 # Also quote any args containing shell metacharacters.
478 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
479 |
--no-cr |
--no-c) ;;
480 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
481 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
482 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
483 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
484 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
489 # Only set these to C if already set. These must not be set unconditionally
490 # because not all systems understand e.g. LANG=C (notably SCO).
491 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
492 # Non-C LC_CTYPE values break the ctype check.
493 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
494 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
495 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
496 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
499 rm -rf conftest
* confdefs.h
500 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
503 # A filename unique to this package, relative to the directory that
504 # configure is in, which we can look for to find out if srcdir is correct.
505 ac_unique_file
=main.c
507 # Find the source files, if location was not specified.
508 if test -z "$srcdir"; then
509 ac_srcdir_defaulted
=yes
510 # Try the directory containing this script, then its parent.
512 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
513 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
515 if test ! -r $srcdir/$ac_unique_file; then
519 ac_srcdir_defaulted
=no
521 if test ! -r $srcdir/$ac_unique_file; then
522 if test "$ac_srcdir_defaulted" = yes; then
523 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
525 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
528 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
530 # Prefer explicitly selected file to automatically selected ones.
531 if test -z "$CONFIG_SITE"; then
532 if test "x$prefix" != xNONE
; then
533 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
535 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
538 for ac_site_file
in $CONFIG_SITE; do
539 if test -r "$ac_site_file"; then
540 echo "loading site script $ac_site_file"
545 if test -r "$cache_file"; then
546 echo "loading cache $cache_file"
549 echo "creating cache $cache_file"
554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
555 ac_cpp
='$CPP $CPPFLAGS'
556 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
557 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
558 cross_compiling
=$ac_cv_prog_cc_cross
562 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
563 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
564 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
571 ac_n
= ac_c
='\c' ac_t
=
576 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
577 echo "configure:578: checking whether to enable maintainer-specific portions of Makefiles" >&5
578 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
579 if test "${enable_maintainer_mode+set}" = set; then
580 enableval
="$enable_maintainer_mode"
581 USE_MAINTAINER_MODE
=$enableval
583 USE_MAINTAINER_MODE
=no
586 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
589 if test $USE_MAINTAINER_MODE = yes; then
590 MAINTAINER_MODE_TRUE
=
591 MAINTAINER_MODE_FALSE
='#'
593 MAINTAINER_MODE_TRUE
='#'
594 MAINTAINER_MODE_FALSE
=
596 MAINT
=$MAINTAINER_MODE_TRUE
600 # Extract the first word of "gcc", so it can be a program name with args.
601 set dummy gcc
; ac_word
=$2
602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
603 echo "configure:604: checking for $ac_word" >&5
604 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
605 echo $ac_n "(cached) $ac_c" 1>&6
607 if test -n "$CC"; then
608 ac_cv_prog_CC
="$CC" # Let the user override the test.
610 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
612 for ac_dir
in $ac_dummy; do
613 test -z "$ac_dir" && ac_dir
=.
614 if test -f $ac_dir/$ac_word; then
623 if test -n "$CC"; then
624 echo "$ac_t""$CC" 1>&6
626 echo "$ac_t""no" 1>&6
629 if test -z "$CC"; then
630 # Extract the first word of "cc", so it can be a program name with args.
631 set dummy cc
; ac_word
=$2
632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
633 echo "configure:634: checking for $ac_word" >&5
634 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
635 echo $ac_n "(cached) $ac_c" 1>&6
637 if test -n "$CC"; then
638 ac_cv_prog_CC
="$CC" # Let the user override the test.
640 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
643 for ac_dir
in $ac_dummy; do
644 test -z "$ac_dir" && ac_dir
=.
645 if test -f $ac_dir/$ac_word; then
646 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
655 if test $ac_prog_rejected = yes; then
656 # We found a bogon in the path, so make sure we never use it.
657 set dummy
$ac_cv_prog_CC
659 if test $# -gt 0; then
660 # We chose a different compiler from the bogus one.
661 # However, it has the same basename, so the bogon will be chosen
662 # first if we set CC to just the basename; use the full file name.
664 set dummy
"$ac_dir/$ac_word" "$@"
672 if test -n "$CC"; then
673 echo "$ac_t""$CC" 1>&6
675 echo "$ac_t""no" 1>&6
678 if test -z "$CC"; then
681 # Extract the first word of "cl", so it can be a program name with args.
682 set dummy cl
; ac_word
=$2
683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
684 echo "configure:685: checking for $ac_word" >&5
685 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
686 echo $ac_n "(cached) $ac_c" 1>&6
688 if test -n "$CC"; then
689 ac_cv_prog_CC
="$CC" # Let the user override the test.
691 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
693 for ac_dir
in $ac_dummy; do
694 test -z "$ac_dir" && ac_dir
=.
695 if test -f $ac_dir/$ac_word; then
704 if test -n "$CC"; then
705 echo "$ac_t""$CC" 1>&6
707 echo "$ac_t""no" 1>&6
712 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
715 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
716 echo "configure:717: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
719 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
720 ac_cpp
='$CPP $CPPFLAGS'
721 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
722 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
723 cross_compiling
=$ac_cv_prog_cc_cross
725 cat > conftest.
$ac_ext << EOF
727 #line 728 "configure"
728 #include "confdefs.h"
732 if { (eval echo configure
:733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
733 ac_cv_prog_cc_works
=yes
734 # If we can't run a trivial program, we are probably using a cross compiler.
735 if (.
/conftest
; exit) 2>/dev
/null
; then
736 ac_cv_prog_cc_cross
=no
738 ac_cv_prog_cc_cross
=yes
741 echo "configure: failed program was:" >&5
742 cat conftest.
$ac_ext >&5
743 ac_cv_prog_cc_works
=no
747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
748 ac_cpp
='$CPP $CPPFLAGS'
749 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
750 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
751 cross_compiling
=$ac_cv_prog_cc_cross
753 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
754 if test $ac_cv_prog_cc_works = no
; then
755 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
757 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
758 echo "configure:759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
759 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
760 cross_compiling
=$ac_cv_prog_cc_cross
762 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
763 echo "configure:764: checking whether we are using GNU C" >&5
764 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
765 echo $ac_n "(cached) $ac_c" 1>&6
767 cat > conftest.c
<<EOF
772 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
779 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
781 if test $ac_cv_prog_gcc = yes; then
787 ac_test_CFLAGS
="${CFLAGS+set}"
788 ac_save_CFLAGS
="$CFLAGS"
790 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
791 echo "configure:792: checking whether ${CC-cc} accepts -g" >&5
792 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
795 echo 'void f(){}' > conftest.c
796 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
805 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
806 if test "$ac_test_CFLAGS" = set; then
807 CFLAGS
="$ac_save_CFLAGS"
808 elif test $ac_cv_prog_cc_g = yes; then
809 if test "$GCC" = yes; then
815 if test "$GCC" = yes; then
822 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
823 echo "configure:824: checking how to run the C preprocessor" >&5
824 # On Suns, sometimes $CPP names a directory.
825 if test -n "$CPP" && test -d "$CPP"; then
828 if test -z "$CPP"; then
829 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 # This must be in double quotes, not single quotes, because CPP may get
833 # substituted into the Makefile and "${CC-cc}" will confuse make.
835 # On the NeXT, cc -E runs the code through the compiler's parser,
836 # not just through cpp.
837 cat > conftest.
$ac_ext <<EOF
838 #line 839 "configure"
839 #include "confdefs.h"
843 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
844 { (eval echo configure
:845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
845 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
846 if test -z "$ac_err"; then
850 echo "configure: failed program was:" >&5
851 cat conftest.
$ac_ext >&5
853 CPP
="${CC-cc} -E -traditional-cpp"
854 cat > conftest.
$ac_ext <<EOF
855 #line 856 "configure"
856 #include "confdefs.h"
860 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
861 { (eval echo configure
:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
862 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
863 if test -z "$ac_err"; then
867 echo "configure: failed program was:" >&5
868 cat conftest.
$ac_ext >&5
870 CPP
="${CC-cc} -nologo -E"
871 cat > conftest.
$ac_ext <<EOF
872 #line 873 "configure"
873 #include "confdefs.h"
877 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
878 { (eval echo configure
:879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
879 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
880 if test -z "$ac_err"; then
884 echo "configure: failed program was:" >&5
885 cat conftest.
$ac_ext >&5
894 ac_cv_prog_CPP
="$CPP"
896 CPP
="$ac_cv_prog_CPP"
898 ac_cv_prog_CPP
="$CPP"
900 echo "$ac_t""$CPP" 1>&6
902 echo $ac_n "checking for AIX""... $ac_c" 1>&6
903 echo "configure:904: checking for AIX" >&5
904 cat > conftest.
$ac_ext <<EOF
905 #line 906 "configure"
906 #include "confdefs.h"
912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
913 egrep "yes" >/dev
/null
2>&1; then
915 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
916 #define _ALL_SOURCE 1
921 echo "$ac_t""no" 1>&6
927 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
928 echo "configure:929: checking for strerror in -lcposix" >&5
929 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
934 LIBS
="-lcposix $LIBS"
935 cat > conftest.
$ac_ext <<EOF
936 #line 937 "configure"
937 #include "confdefs.h"
938 /* Override any gcc2 internal prototype to avoid an error. */
939 /* We use char because int might match the return type of a gcc2
940 builtin and then its argument prototype would still apply. */
947 if { (eval echo configure
:948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
949 eval "ac_cv_lib_$ac_lib_var=yes"
951 echo "configure: failed program was:" >&5
952 cat conftest.
$ac_ext >&5
954 eval "ac_cv_lib_$ac_lib_var=no"
960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
961 echo "$ac_t""yes" 1>&6
962 LIBS
="$LIBS -lcposix"
964 echo "$ac_t""no" 1>&6
972 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
973 echo "configure:974: checking for ${CC-cc} option to accept ANSI C" >&5
974 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 am_cv_prog_cc_stdc
=no
979 # Don't try gcc -ansi; that turns off useful extensions and
980 # breaks some systems' header files.
982 # Ultrix and OSF/1 -std1
983 # HP-UX -Aa -D_HPUX_SOURCE
984 # SVR4 -Xc -D__EXTENSIONS__
985 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
987 CC
="$ac_save_CC $ac_arg"
988 cat > conftest.
$ac_ext <<EOF
989 #line 990 "configure"
990 #include "confdefs.h"
993 #include <sys/types.h>
994 #include <sys/stat.h>
995 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
996 struct buf { int x; };
997 FILE * (*rcsopen) (struct buf *, struct stat *, int);
998 static char *e (p, i)
1004 static char *f (char * (*g) (char **, int), char **p, ...)
1009 s = g (p, va_arg (v,int));
1013 int test (int i, double x);
1014 struct s1 {int (*f) (int a);};
1015 struct s2 {int (*f) (double a);};
1016 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1022 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1026 if { (eval echo configure
:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1028 am_cv_prog_cc_stdc
="$ac_arg"; break
1030 echo "configure: failed program was:" >&5
1031 cat conftest.
$ac_ext >&5
1039 if test -z "$am_cv_prog_cc_stdc"; then
1040 echo "$ac_t""none needed" 1>&6
1042 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1044 case "x$am_cv_prog_cc_stdc" in
1046 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1051 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1052 if test -f $ac_dir/install-sh
; then
1054 ac_install_sh
="$ac_aux_dir/install-sh -c"
1056 elif test -f $ac_dir/install.sh
; then
1058 ac_install_sh
="$ac_aux_dir/install.sh -c"
1062 if test -z "$ac_aux_dir"; then
1063 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1065 ac_config_guess
=$ac_aux_dir/config.guess
1066 ac_config_sub
=$ac_aux_dir/config.sub
1067 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1070 # Do some error checking and defaulting for the host and target type.
1072 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1075 # 1. You are not allowed to specify --host, --target, and nonopt at the
1077 # 2. Host defaults to nonopt.
1078 # 3. If nonopt is not specified, then host defaults to the current host,
1079 # as determined by config.guess.
1080 # 4. Target and build default to nonopt.
1081 # 5. If nonopt is not specified, then target and build default to host.
1083 # The aliases save the names the user supplied, while $host etc.
1084 # will get canonicalized.
1085 case $host---$target---$nonopt in
1086 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1087 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1091 # Make sure we can run config.sub.
1092 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1093 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1096 echo $ac_n "checking host system type""... $ac_c" 1>&6
1097 echo "configure:1098: checking host system type" >&5
1100 case "$host_alias" in
1104 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1105 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1107 *) host_alias
=$nonopt ;;
1111 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1112 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1113 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1114 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1115 echo "$ac_t""$host" 1>&6
1117 echo $ac_n "checking target system type""... $ac_c" 1>&6
1118 echo "configure:1119: checking target system type" >&5
1120 target_alias
=$target
1121 case "$target_alias" in
1124 NONE
) target_alias
=$host_alias ;;
1125 *) target_alias
=$nonopt ;;
1129 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1130 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1131 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1132 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1133 echo "$ac_t""$target" 1>&6
1135 echo $ac_n "checking build system type""... $ac_c" 1>&6
1136 echo "configure:1137: checking build system type" >&5
1139 case "$build_alias" in
1142 NONE
) build_alias
=$host_alias ;;
1143 *) build_alias
=$nonopt ;;
1147 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1148 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1149 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1150 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1151 echo "$ac_t""$build" 1>&6
1153 test "$host_alias" != "$target_alias" &&
1154 test "$program_prefix$program_suffix$program_transform_name" = \
1156 program_prefix
=${target_alias}-
1160 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1161 echo "configure:1162: checking whether ${MAKE-make} sets \${MAKE}" >&5
1162 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1163 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 cat > conftestmake
<<\EOF
1168 @
echo 'ac_maketemp="${MAKE}"'
1170 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1171 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1172 if test -n "$ac_maketemp"; then
1173 eval ac_cv_prog_make_
${ac_make}_set
=yes
1175 eval ac_cv_prog_make_
${ac_make}_set
=no
1179 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1180 echo "$ac_t""yes" 1>&6
1183 echo "$ac_t""no" 1>&6
1184 SET_MAKE
="MAKE=${MAKE-make}"
1187 # Extract the first word of "ranlib", so it can be a program name with args.
1188 set dummy ranlib
; ac_word
=$2
1189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190 echo "configure:1191: checking for $ac_word" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 if test -n "$RANLIB"; then
1195 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1197 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1199 for ac_dir
in $ac_dummy; do
1200 test -z "$ac_dir" && ac_dir
=.
1201 if test -f $ac_dir/$ac_word; then
1202 ac_cv_prog_RANLIB
="ranlib"
1207 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1210 RANLIB
="$ac_cv_prog_RANLIB"
1211 if test -n "$RANLIB"; then
1212 echo "$ac_t""$RANLIB" 1>&6
1214 echo "$ac_t""no" 1>&6
1217 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1218 echo "configure:1219: checking for ANSI C header files" >&5
1219 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1222 cat > conftest.
$ac_ext <<EOF
1223 #line 1224 "configure"
1224 #include "confdefs.h"
1230 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1231 { (eval echo configure
:1232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1232 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1233 if test -z "$ac_err"; then
1235 ac_cv_header_stdc
=yes
1238 echo "configure: failed program was:" >&5
1239 cat conftest.
$ac_ext >&5
1241 ac_cv_header_stdc
=no
1245 if test $ac_cv_header_stdc = yes; then
1246 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1247 cat > conftest.
$ac_ext <<EOF
1248 #line 1249 "configure"
1249 #include "confdefs.h"
1252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1253 egrep "memchr" >/dev
/null
2>&1; then
1257 ac_cv_header_stdc
=no
1263 if test $ac_cv_header_stdc = yes; then
1264 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1265 cat > conftest.
$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1271 egrep "free" >/dev
/null
2>&1; then
1275 ac_cv_header_stdc
=no
1281 if test $ac_cv_header_stdc = yes; then
1282 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1283 if test "$cross_compiling" = yes; then
1286 cat > conftest.
$ac_ext <<EOF
1287 #line 1288 "configure"
1288 #include "confdefs.h"
1290 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1291 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1292 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1293 int main () { int i; for (i = 0; i < 256; i++)
1294 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1298 if { (eval echo configure
:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1302 echo "configure: failed program was:" >&5
1303 cat conftest.
$ac_ext >&5
1305 ac_cv_header_stdc
=no
1313 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1314 if test $ac_cv_header_stdc = yes; then
1315 cat >> confdefs.h
<<\EOF
1316 #define STDC_HEADERS 1
1321 echo $ac_n "checking for working const""... $ac_c" 1>&6
1322 echo "configure:1323: checking for working const" >&5
1323 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 cat > conftest.
$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1332 /* Ultrix mips cc rejects this. */
1333 typedef int charset[2]; const charset x;
1334 /* SunOS 4.1.1 cc rejects this. */
1335 char const *const *ccp;
1337 /* NEC SVR4.0.2 mips cc rejects this. */
1338 struct point {int x, y;};
1339 static struct point const zero = {0,0};
1340 /* AIX XL C 1.02.0.0 rejects this.
1341 It does not let you subtract one const X* pointer from another in an arm
1342 of an if-expression whose if-part is not a constant expression */
1343 const char *g = "string";
1344 ccp = &g + (g ? g-g : 0);
1345 /* HPUX 7.0 cc rejects these. */
1348 ccp = (char const *const *) p;
1349 { /* SCO 3.2v4 cc rejects this. */
1351 char const *s = 0 ? (char *) 0 : (char const *) 0;
1355 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1357 const int *foo = &x[0];
1360 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1361 typedef const int *iptr;
1365 { /* AIX XL C 1.02.0.0 rejects this saying
1366 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1367 struct s { int j; const int *ap[3]; };
1368 struct s *b; b->j = 5;
1370 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1376 if { (eval echo configure
:1377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1380 echo "configure: failed program was:" >&5
1381 cat conftest.
$ac_ext >&5
1388 echo "$ac_t""$ac_cv_c_const" 1>&6
1389 if test $ac_cv_c_const = no
; then
1390 cat >> confdefs.h
<<\EOF
1396 echo $ac_n "checking for inline""... $ac_c" 1>&6
1397 echo "configure:1398: checking for inline" >&5
1398 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1402 for ac_kw
in inline __inline__ __inline
; do
1403 cat > conftest.
$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1411 if { (eval echo configure
:1412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1413 ac_cv_c_inline
=$ac_kw; break
1415 echo "configure: failed program was:" >&5
1416 cat conftest.
$ac_ext >&5
1423 echo "$ac_t""$ac_cv_c_inline" 1>&6
1424 case "$ac_cv_c_inline" in
1426 no
) cat >> confdefs.h
<<\EOF
1430 *) cat >> confdefs.h
<<EOF
1431 #define inline $ac_cv_c_inline
1436 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1437 echo "configure:1438: checking for off_t" >&5
1438 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1441 cat > conftest.
$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1444 #include <sys/types.h>
1450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1451 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1453 ac_cv_type_off_t
=yes
1461 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1462 if test $ac_cv_type_off_t = no
; then
1463 cat >> confdefs.h
<<\EOF
1469 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1470 echo "configure:1471: checking for size_t" >&5
1471 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1474 cat > conftest.
$ac_ext <<EOF
1475 #line 1476 "configure"
1476 #include "confdefs.h"
1477 #include <sys/types.h>
1483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1484 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1486 ac_cv_type_size_t
=yes
1489 ac_cv_type_size_t
=no
1494 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1495 if test $ac_cv_type_size_t = no
; then
1496 cat >> confdefs.h
<<\EOF
1497 #define size_t unsigned
1502 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1503 # for constant arguments. Useless!
1504 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1505 echo "configure:1506: checking for working alloca.h" >&5
1506 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 cat > conftest.
$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1514 char *p = alloca(2 * sizeof(int));
1517 if { (eval echo configure
:1518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1519 ac_cv_header_alloca_h
=yes
1521 echo "configure: failed program was:" >&5
1522 cat conftest.
$ac_ext >&5
1524 ac_cv_header_alloca_h
=no
1529 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1530 if test $ac_cv_header_alloca_h = yes; then
1531 cat >> confdefs.h
<<\EOF
1532 #define HAVE_ALLOCA_H 1
1537 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1538 echo "configure:1539: checking for alloca" >&5
1539 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1542 cat > conftest.
$ac_ext <<EOF
1543 #line 1544 "configure"
1544 #include "confdefs.h"
1547 # define alloca __builtin_alloca
1550 # include <malloc.h>
1551 # define alloca _alloca
1554 # include <alloca.h>
1559 # ifndef alloca /* predefined by HP cc +Olibcalls */
1568 char *p = (char *) alloca(1);
1571 if { (eval echo configure
:1572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1573 ac_cv_func_alloca_works
=yes
1575 echo "configure: failed program was:" >&5
1576 cat conftest.
$ac_ext >&5
1578 ac_cv_func_alloca_works
=no
1583 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1584 if test $ac_cv_func_alloca_works = yes; then
1585 cat >> confdefs.h
<<\EOF
1586 #define HAVE_ALLOCA 1
1591 if test $ac_cv_func_alloca_works = no
; then
1592 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1593 # that cause trouble. Some versions do not even contain alloca or
1594 # contain a buggy version. If you still want to use their alloca,
1595 # use ar to extract alloca.o from them instead of compiling alloca.c.
1596 ALLOCA
=alloca.
${ac_objext}
1597 cat >> confdefs.h
<<\EOF
1602 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1603 echo "configure:1604: checking whether alloca needs Cray hooks" >&5
1604 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1607 cat > conftest.
$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1610 #if defined(CRAY) && ! defined(CRAY2)
1617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1618 egrep "webecray" >/dev
/null
2>&1; then
1629 echo "$ac_t""$ac_cv_os_cray" 1>&6
1630 if test $ac_cv_os_cray = yes; then
1631 for ac_func
in _getb67 GETB67 getb67
; do
1632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1633 echo "configure:1634: checking for $ac_func" >&5
1634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1637 cat > conftest.
$ac_ext <<EOF
1638 #line 1639 "configure"
1639 #include "confdefs.h"
1640 /* System header to define __stub macros and hopefully few prototypes,
1641 which can conflict with char $ac_func(); below. */
1643 /* Override any gcc2 internal prototype to avoid an error. */
1644 /* We use char because int might match the return type of a gcc2
1645 builtin and then its argument prototype would still apply. */
1650 /* The GNU C library defines this for functions which it implements
1651 to always fail with ENOSYS. Some functions are actually named
1652 something starting with __ and the normal name is an alias. */
1653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1661 if { (eval echo configure
:1662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1663 eval "ac_cv_func_$ac_func=yes"
1665 echo "configure: failed program was:" >&5
1666 cat conftest.
$ac_ext >&5
1668 eval "ac_cv_func_$ac_func=no"
1673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1674 echo "$ac_t""yes" 1>&6
1675 cat >> confdefs.h
<<EOF
1676 #define CRAY_STACKSEG_END $ac_func
1681 echo "$ac_t""no" 1>&6
1687 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1688 echo "configure:1689: checking stack direction for C alloca" >&5
1689 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1690 echo $ac_n "(cached) $ac_c" 1>&6
1692 if test "$cross_compiling" = yes; then
1693 ac_cv_c_stack_direction
=0
1695 cat > conftest.
$ac_ext <<EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1698 find_stack_direction ()
1700 static char *addr = 0;
1705 return find_stack_direction ();
1708 return (&dummy > addr) ? 1 : -1;
1712 exit (find_stack_direction() < 0);
1715 if { (eval echo configure
:1716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1717 ac_cv_c_stack_direction
=1
1719 echo "configure: failed program was:" >&5
1720 cat conftest.
$ac_ext >&5
1722 ac_cv_c_stack_direction
=-1
1729 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1730 cat >> confdefs.h
<<EOF
1731 #define STACK_DIRECTION $ac_cv_c_stack_direction
1736 for ac_hdr
in unistd.h
1738 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1740 echo "configure:1741: checking for $ac_hdr" >&5
1741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 cat > conftest.
$ac_ext <<EOF
1745 #line 1746 "configure"
1746 #include "confdefs.h"
1749 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1750 { (eval echo configure
:1751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1751 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1752 if test -z "$ac_err"; then
1754 eval "ac_cv_header_$ac_safe=yes"
1757 echo "configure: failed program was:" >&5
1758 cat conftest.
$ac_ext >&5
1760 eval "ac_cv_header_$ac_safe=no"
1764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1765 echo "$ac_t""yes" 1>&6
1766 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1767 cat >> confdefs.h
<<EOF
1768 #define $ac_tr_hdr 1
1772 echo "$ac_t""no" 1>&6
1776 for ac_func
in getpagesize
1778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1779 echo "configure:1780: checking for $ac_func" >&5
1780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1783 cat > conftest.
$ac_ext <<EOF
1784 #line 1785 "configure"
1785 #include "confdefs.h"
1786 /* System header to define __stub macros and hopefully few prototypes,
1787 which can conflict with char $ac_func(); below. */
1789 /* Override any gcc2 internal prototype to avoid an error. */
1790 /* We use char because int might match the return type of a gcc2
1791 builtin and then its argument prototype would still apply. */
1796 /* The GNU C library defines this for functions which it implements
1797 to always fail with ENOSYS. Some functions are actually named
1798 something starting with __ and the normal name is an alias. */
1799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1807 if { (eval echo configure
:1808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1809 eval "ac_cv_func_$ac_func=yes"
1811 echo "configure: failed program was:" >&5
1812 cat conftest.
$ac_ext >&5
1814 eval "ac_cv_func_$ac_func=no"
1819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1820 echo "$ac_t""yes" 1>&6
1821 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1822 cat >> confdefs.h
<<EOF
1823 #define $ac_tr_func 1
1827 echo "$ac_t""no" 1>&6
1831 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1832 echo "configure:1833: checking for working mmap" >&5
1833 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1834 echo $ac_n "(cached) $ac_c" 1>&6
1836 if test "$cross_compiling" = yes; then
1837 ac_cv_func_mmap_fixed_mapped
=no
1839 cat > conftest.
$ac_ext <<EOF
1840 #line 1841 "configure"
1841 #include "confdefs.h"
1843 /* Thanks to Mike Haertel and Jim Avera for this test.
1844 Here is a matrix of mmap possibilities:
1845 mmap private not fixed
1846 mmap private fixed at somewhere currently unmapped
1847 mmap private fixed at somewhere already mapped
1848 mmap shared not fixed
1849 mmap shared fixed at somewhere currently unmapped
1850 mmap shared fixed at somewhere already mapped
1851 For private mappings, we should verify that changes cannot be read()
1852 back from the file, nor mmap's back from the file at a different
1853 address. (There have been systems where private was not correctly
1854 implemented like the infamous i386 svr4.0, and systems where the
1855 VM page cache was not coherent with the filesystem buffer cache
1856 like early versions of FreeBSD and possibly contemporary NetBSD.)
1857 For shared mappings, we should conversely verify that changes get
1858 propogated back to all the places they're supposed to be.
1860 Grep wants private fixed already mapped.
1861 The main things grep needs to know about mmap are:
1862 * does it exist and is it safe to write into the mmap'd area
1863 * how to use it (BSD variants) */
1864 #include <sys/types.h>
1866 #include <sys/mman.h>
1868 /* This mess was copied from the GNU getpagesize.h. */
1869 #ifndef HAVE_GETPAGESIZE
1870 # ifdef HAVE_UNISTD_H
1871 # include <unistd.h>
1874 /* Assume that all systems that can run configure have sys/param.h. */
1875 # ifndef HAVE_SYS_PARAM_H
1876 # define HAVE_SYS_PARAM_H 1
1879 # ifdef _SC_PAGESIZE
1880 # define getpagesize() sysconf(_SC_PAGESIZE)
1881 # else /* no _SC_PAGESIZE */
1882 # ifdef HAVE_SYS_PARAM_H
1883 # include <sys/param.h>
1884 # ifdef EXEC_PAGESIZE
1885 # define getpagesize() EXEC_PAGESIZE
1886 # else /* no EXEC_PAGESIZE */
1888 # define getpagesize() NBPG * CLSIZE
1891 # endif /* no CLSIZE */
1892 # else /* no NBPG */
1894 # define getpagesize() NBPC
1895 # else /* no NBPC */
1897 # define getpagesize() PAGESIZE
1898 # endif /* PAGESIZE */
1899 # endif /* no NBPC */
1900 # endif /* no NBPG */
1901 # endif /* no EXEC_PAGESIZE */
1902 # else /* no HAVE_SYS_PARAM_H */
1903 # define getpagesize() 8192 /* punt totally */
1904 # endif /* no HAVE_SYS_PARAM_H */
1905 # endif /* no _SC_PAGESIZE */
1907 #endif /* no HAVE_GETPAGESIZE */
1910 extern "C" { void *malloc(unsigned); }
1918 char *data, *data2, *data3;
1922 pagesize = getpagesize();
1925 * First, make a file with some known garbage in it.
1927 data = malloc(pagesize);
1930 for (i = 0; i < pagesize; ++i)
1931 *(data + i) = rand();
1933 fd = creat("conftestmmap", 0600);
1936 if (write(fd, data, pagesize) != pagesize)
1941 * Next, try to mmap the file at a fixed address which
1942 * already has something else allocated at it. If we can,
1943 * also make sure that we see the same garbage.
1945 fd = open("conftestmmap", O_RDWR);
1948 data2 = malloc(2 * pagesize);
1951 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1952 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1953 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1955 for (i = 0; i < pagesize; ++i)
1956 if (*(data + i) != *(data2 + i))
1960 * Finally, make sure that changes to the mapped area
1961 * do not percolate back to the file as seen by read().
1962 * (This is a bug on some variants of i386 svr4.0.)
1964 for (i = 0; i < pagesize; ++i)
1965 *(data2 + i) = *(data2 + i) + 1;
1966 data3 = malloc(pagesize);
1969 if (read(fd, data3, pagesize) != pagesize)
1971 for (i = 0; i < pagesize; ++i)
1972 if (*(data + i) != *(data3 + i))
1975 unlink("conftestmmap");
1980 if { (eval echo configure
:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1982 ac_cv_func_mmap_fixed_mapped
=yes
1984 echo "configure: failed program was:" >&5
1985 cat conftest.
$ac_ext >&5
1987 ac_cv_func_mmap_fixed_mapped
=no
1994 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1995 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1996 cat >> confdefs.h
<<\EOF
2003 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2004 unistd.h values.h sys
/param.h
2006 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2007 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2008 echo "configure:2009: checking for $ac_hdr" >&5
2009 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2012 cat > conftest.
$ac_ext <<EOF
2013 #line 2014 "configure"
2014 #include "confdefs.h"
2017 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2018 { (eval echo configure
:2019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2019 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2020 if test -z "$ac_err"; then
2022 eval "ac_cv_header_$ac_safe=yes"
2025 echo "configure: failed program was:" >&5
2026 cat conftest.
$ac_ext >&5
2028 eval "ac_cv_header_$ac_safe=no"
2032 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2033 echo "$ac_t""yes" 1>&6
2034 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2035 cat >> confdefs.h
<<EOF
2036 #define $ac_tr_hdr 1
2040 echo "$ac_t""no" 1>&6
2044 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2045 __argz_count __argz_stringify __argz_next
2047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2048 echo "configure:2049: checking for $ac_func" >&5
2049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2052 cat > conftest.
$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2055 /* System header to define __stub macros and hopefully few prototypes,
2056 which can conflict with char $ac_func(); below. */
2058 /* Override any gcc2 internal prototype to avoid an error. */
2059 /* We use char because int might match the return type of a gcc2
2060 builtin and then its argument prototype would still apply. */
2065 /* The GNU C library defines this for functions which it implements
2066 to always fail with ENOSYS. Some functions are actually named
2067 something starting with __ and the normal name is an alias. */
2068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2076 if { (eval echo configure
:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2078 eval "ac_cv_func_$ac_func=yes"
2080 echo "configure: failed program was:" >&5
2081 cat conftest.
$ac_ext >&5
2083 eval "ac_cv_func_$ac_func=no"
2088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2089 echo "$ac_t""yes" 1>&6
2090 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2091 cat >> confdefs.h
<<EOF
2092 #define $ac_tr_func 1
2096 echo "$ac_t""no" 1>&6
2101 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2102 for ac_func
in stpcpy
2104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2105 echo "configure:2106: checking for $ac_func" >&5
2106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 cat > conftest.
$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2112 /* System header to define __stub macros and hopefully few prototypes,
2113 which can conflict with char $ac_func(); below. */
2115 /* Override any gcc2 internal prototype to avoid an error. */
2116 /* We use char because int might match the return type of a gcc2
2117 builtin and then its argument prototype would still apply. */
2122 /* The GNU C library defines this for functions which it implements
2123 to always fail with ENOSYS. Some functions are actually named
2124 something starting with __ and the normal name is an alias. */
2125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2133 if { (eval echo configure
:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2135 eval "ac_cv_func_$ac_func=yes"
2137 echo "configure: failed program was:" >&5
2138 cat conftest.
$ac_ext >&5
2140 eval "ac_cv_func_$ac_func=no"
2145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2146 echo "$ac_t""yes" 1>&6
2147 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2148 cat >> confdefs.h
<<EOF
2149 #define $ac_tr_func 1
2153 echo "$ac_t""no" 1>&6
2158 if test "${ac_cv_func_stpcpy}" = "yes"; then
2159 cat >> confdefs.h
<<\EOF
2160 #define HAVE_STPCPY 1
2165 if test $ac_cv_header_locale_h = yes; then
2166 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2167 echo "configure:2168: checking for LC_MESSAGES" >&5
2168 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2171 cat > conftest.
$ac_ext <<EOF
2172 #line 2173 "configure"
2173 #include "confdefs.h"
2179 if { (eval echo configure
:2180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2181 am_cv_val_LC_MESSAGES
=yes
2183 echo "configure: failed program was:" >&5
2184 cat conftest.
$ac_ext >&5
2186 am_cv_val_LC_MESSAGES
=no
2191 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2192 if test $am_cv_val_LC_MESSAGES = yes; then
2193 cat >> confdefs.h
<<\EOF
2194 #define HAVE_LC_MESSAGES 1
2199 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2200 echo "configure:2201: checking whether NLS is requested" >&5
2201 # Check whether --enable-nls or --disable-nls was given.
2202 if test "${enable_nls+set}" = set; then
2203 enableval
="$enable_nls"
2209 echo "$ac_t""$USE_NLS" 1>&6
2212 USE_INCLUDED_LIBINTL
=no
2214 if test "$USE_NLS" = "yes"; then
2215 cat >> confdefs.h
<<\EOF
2216 #define ENABLE_NLS 1
2219 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2220 echo "configure:2221: checking whether included gettext is requested" >&5
2221 # Check whether --with-included-gettext or --without-included-gettext was given.
2222 if test "${with_included_gettext+set}" = set; then
2223 withval
="$with_included_gettext"
2224 nls_cv_force_use_gnu_gettext
=$withval
2226 nls_cv_force_use_gnu_gettext
=no
2229 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2231 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2232 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2234 nls_cv_header_libgt
=
2237 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2238 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2239 echo "configure:2240: checking for libintl.h" >&5
2240 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 cat > conftest.
$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 #include <libintl.h>
2248 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2249 { (eval echo configure
:2250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2250 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2251 if test -z "$ac_err"; then
2253 eval "ac_cv_header_$ac_safe=yes"
2256 echo "configure: failed program was:" >&5
2257 cat conftest.
$ac_ext >&5
2259 eval "ac_cv_header_$ac_safe=no"
2263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2264 echo "$ac_t""yes" 1>&6
2265 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2266 echo "configure:2267: checking for gettext in libc" >&5
2267 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2270 cat > conftest.
$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2273 #include <libintl.h>
2275 return (int) gettext ("")
2278 if { (eval echo configure
:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2280 gt_cv_func_gettext_libc
=yes
2282 echo "configure: failed program was:" >&5
2283 cat conftest.
$ac_ext >&5
2285 gt_cv_func_gettext_libc
=no
2290 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2292 if test "$gt_cv_func_gettext_libc" != "yes"; then
2293 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2294 echo "configure:2295: checking for bindtextdomain in -lintl" >&5
2295 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2299 ac_save_LIBS
="$LIBS"
2301 cat > conftest.
$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2304 /* Override any gcc2 internal prototype to avoid an error. */
2305 /* We use char because int might match the return type of a gcc2
2306 builtin and then its argument prototype would still apply. */
2307 char bindtextdomain();
2313 if { (eval echo configure
:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2315 eval "ac_cv_lib_$ac_lib_var=yes"
2317 echo "configure: failed program was:" >&5
2318 cat conftest.
$ac_ext >&5
2320 eval "ac_cv_lib_$ac_lib_var=no"
2323 LIBS
="$ac_save_LIBS"
2326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2327 echo "$ac_t""yes" 1>&6
2328 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2329 echo "configure:2330: checking for gettext in libintl" >&5
2330 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 cat > conftest.
$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2338 return (int) gettext ("")
2341 if { (eval echo configure
:2342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2343 gt_cv_func_gettext_libintl
=yes
2345 echo "configure: failed program was:" >&5
2346 cat conftest.
$ac_ext >&5
2348 gt_cv_func_gettext_libintl
=no
2353 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2355 echo "$ac_t""no" 1>&6
2360 if test "$gt_cv_func_gettext_libc" = "yes" \
2361 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2362 cat >> confdefs.h
<<\EOF
2363 #define HAVE_GETTEXT 1
2366 # Extract the first word of "msgfmt", so it can be a program name with args.
2367 set dummy msgfmt
; ac_word
=$2
2368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2369 echo "configure:2370: checking for $ac_word" >&5
2370 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2375 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2378 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2379 for ac_dir
in $PATH; do
2380 test -z "$ac_dir" && ac_dir
=.
2381 if test -f $ac_dir/$ac_word; then
2382 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2383 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2389 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2393 MSGFMT
="$ac_cv_path_MSGFMT"
2394 if test -n "$MSGFMT"; then
2395 echo "$ac_t""$MSGFMT" 1>&6
2397 echo "$ac_t""no" 1>&6
2399 if test "$MSGFMT" != "no"; then
2400 for ac_func
in dcgettext
2402 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2403 echo "configure:2404: checking for $ac_func" >&5
2404 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2407 cat > conftest.
$ac_ext <<EOF
2408 #line 2409 "configure"
2409 #include "confdefs.h"
2410 /* System header to define __stub macros and hopefully few prototypes,
2411 which can conflict with char $ac_func(); below. */
2413 /* Override any gcc2 internal prototype to avoid an error. */
2414 /* We use char because int might match the return type of a gcc2
2415 builtin and then its argument prototype would still apply. */
2420 /* The GNU C library defines this for functions which it implements
2421 to always fail with ENOSYS. Some functions are actually named
2422 something starting with __ and the normal name is an alias. */
2423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2431 if { (eval echo configure
:2432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2433 eval "ac_cv_func_$ac_func=yes"
2435 echo "configure: failed program was:" >&5
2436 cat conftest.
$ac_ext >&5
2438 eval "ac_cv_func_$ac_func=no"
2443 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2444 echo "$ac_t""yes" 1>&6
2445 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2446 cat >> confdefs.h
<<EOF
2447 #define $ac_tr_func 1
2451 echo "$ac_t""no" 1>&6
2455 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2456 set dummy gmsgfmt
; ac_word
=$2
2457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2458 echo "configure:2459: checking for $ac_word" >&5
2459 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2464 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2467 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2470 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2472 for ac_dir
in $ac_dummy; do
2473 test -z "$ac_dir" && ac_dir
=.
2474 if test -f $ac_dir/$ac_word; then
2475 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2480 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2484 GMSGFMT
="$ac_cv_path_GMSGFMT"
2485 if test -n "$GMSGFMT"; then
2486 echo "$ac_t""$GMSGFMT" 1>&6
2488 echo "$ac_t""no" 1>&6
2491 # Extract the first word of "xgettext", so it can be a program name with args.
2492 set dummy xgettext
; ac_word
=$2
2493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2494 echo "configure:2495: checking for $ac_word" >&5
2495 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2500 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2503 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2504 for ac_dir
in $PATH; do
2505 test -z "$ac_dir" && ac_dir
=.
2506 if test -f $ac_dir/$ac_word; then
2507 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2508 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2514 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2518 XGETTEXT
="$ac_cv_path_XGETTEXT"
2519 if test -n "$XGETTEXT"; then
2520 echo "$ac_t""$XGETTEXT" 1>&6
2522 echo "$ac_t""no" 1>&6
2525 cat > conftest.
$ac_ext <<EOF
2526 #line 2527 "configure"
2527 #include "confdefs.h"
2530 extern int _nl_msg_cat_cntr;
2531 return _nl_msg_cat_cntr
2534 if { (eval echo configure
:2535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2539 echo "configure: failed program was:" >&5
2540 cat conftest.
$ac_ext >&5
2551 echo "$ac_t""no" 1>&6
2556 if test "$CATOBJEXT" = "NONE"; then
2557 nls_cv_use_gnu_gettext
=yes
2561 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2562 INTLOBJS
="\$(GETTOBJS)"
2563 # Extract the first word of "msgfmt", so it can be a program name with args.
2564 set dummy msgfmt
; ac_word
=$2
2565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2566 echo "configure:2567: checking for $ac_word" >&5
2567 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2572 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2575 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2576 for ac_dir
in $PATH; do
2577 test -z "$ac_dir" && ac_dir
=.
2578 if test -f $ac_dir/$ac_word; then
2579 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2580 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2586 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2590 MSGFMT
="$ac_cv_path_MSGFMT"
2591 if test -n "$MSGFMT"; then
2592 echo "$ac_t""$MSGFMT" 1>&6
2594 echo "$ac_t""no" 1>&6
2597 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2598 set dummy gmsgfmt
; ac_word
=$2
2599 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2600 echo "configure:2601: checking for $ac_word" >&5
2601 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2606 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2609 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2612 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2614 for ac_dir
in $ac_dummy; do
2615 test -z "$ac_dir" && ac_dir
=.
2616 if test -f $ac_dir/$ac_word; then
2617 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2622 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2626 GMSGFMT
="$ac_cv_path_GMSGFMT"
2627 if test -n "$GMSGFMT"; then
2628 echo "$ac_t""$GMSGFMT" 1>&6
2630 echo "$ac_t""no" 1>&6
2633 # Extract the first word of "xgettext", so it can be a program name with args.
2634 set dummy xgettext
; ac_word
=$2
2635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2636 echo "configure:2637: checking for $ac_word" >&5
2637 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2642 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2645 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2646 for ac_dir
in $PATH; do
2647 test -z "$ac_dir" && ac_dir
=.
2648 if test -f $ac_dir/$ac_word; then
2649 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2650 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2656 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2660 XGETTEXT
="$ac_cv_path_XGETTEXT"
2661 if test -n "$XGETTEXT"; then
2662 echo "$ac_t""$XGETTEXT" 1>&6
2664 echo "$ac_t""no" 1>&6
2668 USE_INCLUDED_LIBINTL
=yes
2672 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2674 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2675 nls_cv_header_intl
=libintl.h
2676 nls_cv_header_libgt
=libgettext.h
2679 if test "$XGETTEXT" != ":"; then
2680 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2683 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2688 # We need to process the po/ directory.
2692 nls_cv_header_intl
=libintl.h
2693 nls_cv_header_libgt
=libgettext.h
2696 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2697 # because some of the sources are only built for this goal.
2698 if test "$PACKAGE" = gettext; then
2700 USE_INCLUDED_LIBINTL
=yes
2703 for lang
in $ALL_LINGUAS; do
2704 GMOFILES
="$GMOFILES $lang.gmo"
2705 POFILES
="$POFILES $lang.po"
2721 if test "x$CATOBJEXT" != "x"; then
2722 if test "x$ALL_LINGUAS" = "x"; then
2725 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2726 echo "configure:2727: checking for catalogs to be installed" >&5
2728 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2729 case "$ALL_LINGUAS" in
2730 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2733 LINGUAS
=$NEW_LINGUAS
2734 echo "$ac_t""$LINGUAS" 1>&6
2737 if test -n "$LINGUAS"; then
2738 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2742 if test $ac_cv_header_locale_h = yes; then
2743 INCLUDE_LOCALE_H
="#include <locale.h>"
2746 /* The system does not provide the header <locale.h>. Take care yourself. */"
2750 if test -f $srcdir/po2tbl.
sed.
in; then
2751 if test "$CATOBJEXT" = ".cat"; then
2752 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2753 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2754 echo "configure:2755: checking for linux/version.h" >&5
2755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2756 echo $ac_n "(cached) $ac_c" 1>&6
2758 cat > conftest.
$ac_ext <<EOF
2759 #line 2760 "configure"
2760 #include "confdefs.h"
2761 #include <linux/version.h>
2763 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2764 { (eval echo configure
:2765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2765 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2766 if test -z "$ac_err"; then
2768 eval "ac_cv_header_$ac_safe=yes"
2771 echo "configure: failed program was:" >&5
2772 cat conftest.
$ac_ext >&5
2774 eval "ac_cv_header_$ac_safe=no"
2778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2779 echo "$ac_t""yes" 1>&6
2782 echo "$ac_t""no" 1>&6
2787 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2789 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2790 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2793 if test "$PACKAGE" = "gettext"; then
2803 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2809 if test -f $srcdir/po
/POTFILES.
in; then
2810 test -d po || mkdir po
2811 if test "x$srcdir" != "x."; then
2812 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2813 posrcprefix
="$srcdir/"
2815 posrcprefix
="../$srcdir/"
2821 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2822 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2838 configdirs
="doc testsuite"
2840 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2841 if test "${enable_multi_ice+set}" = set; then
2842 enableval
="$enable_multi_ice"
2843 case "${enableval}" in
2844 yes ) enable_multi_ice
="yes" ;;
2845 no
) enable_multi_ice
="no" ;;
2846 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2852 if test "${enable_multi_ice}" = "yes"; then
2853 configdirs
="${configdirs} multi-ice"
2857 .
${srcdir}/configure.
host
2859 .
${srcdir}/configure.tgt
2861 targ
=${target} ; .
${srcdir}/..
/bfd
/config.bfd
2865 .
${srcdir}/..
/bfd
/config.bfd
2867 targ_archs
=`echo ${targ_archs} | sed -e 's/ .*//;'`
2869 if test x
"${targ_archs}" != x
; then
2870 cat >> confdefs.h
<<EOF
2871 #define DEFAULT_BFD_ARCH ${targ_archs}
2875 if test x
"${targ_defvec}" != x
; then
2876 cat >> confdefs.h
<<EOF
2877 #define DEFAULT_BFD_VEC ${targ_defvec}
2882 for ac_prog
in mawk gawk nawk
awk
2884 # Extract the first word of "$ac_prog", so it can be a program name with args.
2885 set dummy
$ac_prog; ac_word
=$2
2886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2887 echo "configure:2888: checking for $ac_word" >&5
2888 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2891 if test -n "$AWK"; then
2892 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2894 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2896 for ac_dir
in $ac_dummy; do
2897 test -z "$ac_dir" && ac_dir
=.
2898 if test -f $ac_dir/$ac_word; then
2899 ac_cv_prog_AWK
="$ac_prog"
2906 AWK
="$ac_cv_prog_AWK"
2907 if test -n "$AWK"; then
2908 echo "$ac_t""$AWK" 1>&6
2910 echo "$ac_t""no" 1>&6
2913 test -n "$AWK" && break
2916 # Find a good install program. We prefer a C program (faster),
2917 # so one script is as good as another. But avoid the broken or
2918 # incompatible versions:
2919 # SysV /etc/install, /usr/sbin/install
2920 # SunOS /usr/etc/install
2921 # IRIX /sbin/install
2923 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2924 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2925 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2926 # ./install, which can be erroneously created by make from ./install.sh.
2927 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2928 echo "configure:2929: checking for a BSD compatible install" >&5
2929 if test -z "$INSTALL"; then
2930 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2933 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2934 for ac_dir
in $PATH; do
2935 # Account for people who put trailing slashes in PATH elements.
2937 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2939 # OSF1 and SCO ODT 3.0 have their own names for install.
2940 # Don't use installbsd from OSF since it installs stuff as root
2942 for ac_prog
in ginstall scoinst
install; do
2943 if test -f $ac_dir/$ac_prog; then
2944 if test $ac_prog = install &&
2945 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2946 # AIX install. It has an incompatible calling convention.
2949 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2960 if test "${ac_cv_path_install+set}" = set; then
2961 INSTALL
="$ac_cv_path_install"
2963 # As a last resort, use the slow shell script. We don't cache a
2964 # path for INSTALL within a source directory, because that will
2965 # break other packages using the cache if that directory is
2966 # removed, or if the path is relative.
2967 INSTALL
="$ac_install_sh"
2970 echo "$ac_t""$INSTALL" 1>&6
2972 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2973 # It thinks the first close brace ends the variable substitution.
2974 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2976 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2978 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2980 if test $host != $build; then
2981 ac_tool_prefix
=${host_alias}-
2986 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2987 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2989 echo "configure:2990: checking for $ac_word" >&5
2990 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2991 echo $ac_n "(cached) $ac_c" 1>&6
2993 if test -n "$AR"; then
2994 ac_cv_prog_AR
="$AR" # Let the user override the test.
2996 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2998 for ac_dir
in $ac_dummy; do
2999 test -z "$ac_dir" && ac_dir
=.
3000 if test -f $ac_dir/$ac_word; then
3001 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3006 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3010 if test -n "$AR"; then
3011 echo "$ac_t""$AR" 1>&6
3013 echo "$ac_t""no" 1>&6
3018 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3019 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3021 echo "configure:3022: checking for $ac_word" >&5
3022 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 if test -n "$RANLIB"; then
3026 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3028 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3030 for ac_dir
in $ac_dummy; do
3031 test -z "$ac_dir" && ac_dir
=.
3032 if test -f $ac_dir/$ac_word; then
3033 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3040 RANLIB
="$ac_cv_prog_RANLIB"
3041 if test -n "$RANLIB"; then
3042 echo "$ac_t""$RANLIB" 1>&6
3044 echo "$ac_t""no" 1>&6
3048 if test -z "$ac_cv_prog_RANLIB"; then
3049 if test -n "$ac_tool_prefix"; then
3050 # Extract the first word of "ranlib", so it can be a program name with args.
3051 set dummy ranlib
; ac_word
=$2
3052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3053 echo "configure:3054: checking for $ac_word" >&5
3054 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 if test -n "$RANLIB"; then
3058 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3060 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3062 for ac_dir
in $ac_dummy; do
3063 test -z "$ac_dir" && ac_dir
=.
3064 if test -f $ac_dir/$ac_word; then
3065 ac_cv_prog_RANLIB
="ranlib"
3070 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3073 RANLIB
="$ac_cv_prog_RANLIB"
3074 if test -n "$RANLIB"; then
3075 echo "$ac_t""$RANLIB" 1>&6
3077 echo "$ac_t""no" 1>&6
3085 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3086 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3088 echo "configure:3089: checking for $ac_word" >&5
3089 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3092 if test -n "$DLLTOOL"; then
3093 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3095 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3097 for ac_dir
in $ac_dummy; do
3098 test -z "$ac_dir" && ac_dir
=.
3099 if test -f $ac_dir/$ac_word; then
3100 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3105 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3108 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3109 if test -n "$DLLTOOL"; then
3110 echo "$ac_t""$DLLTOOL" 1>&6
3112 echo "$ac_t""no" 1>&6
3117 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3118 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3120 echo "configure:3121: checking for $ac_word" >&5
3121 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 if test -n "$WINDRES"; then
3125 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3127 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3129 for ac_dir
in $ac_dummy; do
3130 test -z "$ac_dir" && ac_dir
=.
3131 if test -f $ac_dir/$ac_word; then
3132 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3137 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3140 WINDRES
="$ac_cv_prog_WINDRES"
3141 if test -n "$WINDRES"; then
3142 echo "$ac_t""$WINDRES" 1>&6
3144 echo "$ac_t""no" 1>&6
3149 for ac_prog
in 'bison -y' byacc
3151 # Extract the first word of "$ac_prog", so it can be a program name with args.
3152 set dummy
$ac_prog; ac_word
=$2
3153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3154 echo "configure:3155: checking for $ac_word" >&5
3155 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3158 if test -n "$YACC"; then
3159 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3161 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3163 for ac_dir
in $ac_dummy; do
3164 test -z "$ac_dir" && ac_dir
=.
3165 if test -f $ac_dir/$ac_word; then
3166 ac_cv_prog_YACC
="$ac_prog"
3173 YACC
="$ac_cv_prog_YACC"
3174 if test -n "$YACC"; then
3175 echo "$ac_t""$YACC" 1>&6
3177 echo "$ac_t""no" 1>&6
3180 test -n "$YACC" && break
3182 test -n "$YACC" || YACC
="yacc"
3185 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3186 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3188 echo "configure:3189: checking for $ac_word" >&5
3189 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3192 if test -n "$MIG"; then
3193 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3195 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3197 for ac_dir
in $ac_dummy; do
3198 test -z "$ac_dir" && ac_dir
=.
3199 if test -f $ac_dir/$ac_word; then
3200 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3205 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3208 MIG
="$ac_cv_prog_MIG"
3209 if test -n "$MIG"; then
3210 echo "$ac_t""$MIG" 1>&6
3212 echo "$ac_t""no" 1>&6
3218 if test "$program_transform_name" = s
,x
,x
,; then
3219 program_transform_name
=
3221 # Double any \ or $. echo might interpret backslashes.
3222 cat <<\EOF_SED
> conftestsed
3223 s
,\\,\\\\,g
; s
,\$
,$$
,g
3225 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3228 test "$program_prefix" != NONE
&&
3229 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3230 # Use a double $ so make ignores it.
3231 test "$program_suffix" != NONE
&&
3232 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3234 # sed with no file args requires a program.
3235 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3238 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3239 echo "configure:3240: checking return type of signal handlers" >&5
3240 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3243 cat > conftest.
$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3246 #include <sys/types.h>
3252 extern "C" void (*signal (int, void (*)(int)))(int);
3254 void (*signal ()) ();
3261 if { (eval echo configure
:3262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3263 ac_cv_type_signal
=void
3265 echo "configure: failed program was:" >&5
3266 cat conftest.
$ac_ext >&5
3268 ac_cv_type_signal
=int
3273 echo "$ac_t""$ac_cv_type_signal" 1>&6
3274 cat >> confdefs.h
<<EOF
3275 #define RETSIGTYPE $ac_cv_type_signal
3280 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3281 echo "configure:3282: checking for ANSI C header files" >&5
3282 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3285 cat > conftest.
$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3293 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3294 { (eval echo configure
:3295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3295 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3296 if test -z "$ac_err"; then
3298 ac_cv_header_stdc
=yes
3301 echo "configure: failed program was:" >&5
3302 cat conftest.
$ac_ext >&5
3304 ac_cv_header_stdc
=no
3308 if test $ac_cv_header_stdc = yes; then
3309 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3310 cat > conftest.
$ac_ext <<EOF
3311 #line 3312 "configure"
3312 #include "confdefs.h"
3315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3316 egrep "memchr" >/dev
/null
2>&1; then
3320 ac_cv_header_stdc
=no
3326 if test $ac_cv_header_stdc = yes; then
3327 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3328 cat > conftest.
$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3334 egrep "free" >/dev
/null
2>&1; then
3338 ac_cv_header_stdc
=no
3344 if test $ac_cv_header_stdc = yes; then
3345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3346 if test "$cross_compiling" = yes; then
3349 cat > conftest.
$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3353 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3354 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3356 int main () { int i; for (i = 0; i < 256; i++)
3357 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3361 if { (eval echo configure
:3362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3365 echo "configure: failed program was:" >&5
3366 cat conftest.
$ac_ext >&5
3368 ac_cv_header_stdc
=no
3376 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3377 if test $ac_cv_header_stdc = yes; then
3378 cat >> confdefs.h
<<\EOF
3379 #define STDC_HEADERS 1
3386 case $host_os in solaris2.7 | solaris2.8
) case "$GCC" in yes)
3387 cat >> confdefs.h
<<\EOF
3388 #define _MSE_INT_H 1
3393 for ac_hdr
in ctype.h endian.h nlist.h link.h thread_db.h proc_service.h \
3394 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3395 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h stdint.h \
3396 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3397 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h \
3398 time.h sys
/file.h sys
/ioctl.h sys
/user.h sys
/fault.h sys
/syscall.h \
3399 dirent.h sys
/ndir.h sys
/dir.h ndir.h sys
/filio.h \
3400 curses.h ncurses.h \
3403 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3404 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3405 echo "configure:3406: checking for $ac_hdr" >&5
3406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3409 cat > conftest.
$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3414 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3415 { (eval echo configure
:3416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3416 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3417 if test -z "$ac_err"; then
3419 eval "ac_cv_header_$ac_safe=yes"
3422 echo "configure: failed program was:" >&5
3423 cat conftest.
$ac_ext >&5
3425 eval "ac_cv_header_$ac_safe=no"
3429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3430 echo "$ac_t""yes" 1>&6
3431 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3432 cat >> confdefs.h
<<EOF
3433 #define $ac_tr_hdr 1
3437 echo "$ac_t""no" 1>&6
3441 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3442 echo "configure:3443: checking whether stat file-mode macros are broken" >&5
3443 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3444 echo $ac_n "(cached) $ac_c" 1>&6
3446 cat > conftest.
$ac_ext <<EOF
3447 #line 3448 "configure"
3448 #include "confdefs.h"
3449 #include <sys/types.h>
3450 #include <sys/stat.h>
3452 #if defined(S_ISBLK) && defined(S_IFDIR)
3453 # if S_ISBLK (S_IFDIR)
3458 #if defined(S_ISBLK) && defined(S_IFCHR)
3459 # if S_ISBLK (S_IFCHR)
3464 #if defined(S_ISLNK) && defined(S_IFREG)
3465 # if S_ISLNK (S_IFREG)
3470 #if defined(S_ISSOCK) && defined(S_IFREG)
3471 # if S_ISSOCK (S_IFREG)
3477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3478 egrep "You lose" >/dev
/null
2>&1; then
3480 ac_cv_header_stat_broken
=yes
3483 ac_cv_header_stat_broken
=no
3489 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3490 if test $ac_cv_header_stat_broken = yes; then
3491 cat >> confdefs.h
<<\EOF
3492 #define STAT_MACROS_BROKEN 1
3498 echo $ac_n "checking for working const""... $ac_c" 1>&6
3499 echo "configure:3500: checking for working const" >&5
3500 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6
3503 cat > conftest.
$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3509 /* Ultrix mips cc rejects this. */
3510 typedef int charset[2]; const charset x;
3511 /* SunOS 4.1.1 cc rejects this. */
3512 char const *const *ccp;
3514 /* NEC SVR4.0.2 mips cc rejects this. */
3515 struct point {int x, y;};
3516 static struct point const zero = {0,0};
3517 /* AIX XL C 1.02.0.0 rejects this.
3518 It does not let you subtract one const X* pointer from another in an arm
3519 of an if-expression whose if-part is not a constant expression */
3520 const char *g = "string";
3521 ccp = &g + (g ? g-g : 0);
3522 /* HPUX 7.0 cc rejects these. */
3525 ccp = (char const *const *) p;
3526 { /* SCO 3.2v4 cc rejects this. */
3528 char const *s = 0 ? (char *) 0 : (char const *) 0;
3532 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3534 const int *foo = &x[0];
3537 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3538 typedef const int *iptr;
3542 { /* AIX XL C 1.02.0.0 rejects this saying
3543 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3544 struct s { int j; const int *ap[3]; };
3545 struct s *b; b->j = 5;
3547 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3553 if { (eval echo configure
:3554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3557 echo "configure: failed program was:" >&5
3558 cat conftest.
$ac_ext >&5
3565 echo "$ac_t""$ac_cv_c_const" 1>&6
3566 if test $ac_cv_c_const = no
; then
3567 cat >> confdefs.h
<<\EOF
3574 for ac_func
in bcopy btowc bzero isascii poll realpath sbrk setpgid setpgrp \
3575 sigaction sigprocmask sigsetmask
3577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3578 echo "configure:3579: checking for $ac_func" >&5
3579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3582 cat > conftest.
$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3585 /* System header to define __stub macros and hopefully few prototypes,
3586 which can conflict with char $ac_func(); below. */
3588 /* Override any gcc2 internal prototype to avoid an error. */
3589 /* We use char because int might match the return type of a gcc2
3590 builtin and then its argument prototype would still apply. */
3595 /* The GNU C library defines this for functions which it implements
3596 to always fail with ENOSYS. Some functions are actually named
3597 something starting with __ and the normal name is an alias. */
3598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3606 if { (eval echo configure
:3607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3608 eval "ac_cv_func_$ac_func=yes"
3610 echo "configure: failed program was:" >&5
3611 cat conftest.
$ac_ext >&5
3613 eval "ac_cv_func_$ac_func=no"
3618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3619 echo "$ac_t""yes" 1>&6
3620 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3621 cat >> confdefs.h
<<EOF
3622 #define $ac_tr_func 1
3626 echo "$ac_t""no" 1>&6
3630 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3631 # for constant arguments. Useless!
3632 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3633 echo "configure:3634: checking for working alloca.h" >&5
3634 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3637 cat > conftest.
$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3642 char *p = alloca(2 * sizeof(int));
3645 if { (eval echo configure
:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3647 ac_cv_header_alloca_h
=yes
3649 echo "configure: failed program was:" >&5
3650 cat conftest.
$ac_ext >&5
3652 ac_cv_header_alloca_h
=no
3657 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3658 if test $ac_cv_header_alloca_h = yes; then
3659 cat >> confdefs.h
<<\EOF
3660 #define HAVE_ALLOCA_H 1
3665 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3666 echo "configure:3667: checking for alloca" >&5
3667 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3670 cat > conftest.
$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3675 # define alloca __builtin_alloca
3678 # include <malloc.h>
3679 # define alloca _alloca
3682 # include <alloca.h>
3687 # ifndef alloca /* predefined by HP cc +Olibcalls */
3696 char *p = (char *) alloca(1);
3699 if { (eval echo configure
:3700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3701 ac_cv_func_alloca_works
=yes
3703 echo "configure: failed program was:" >&5
3704 cat conftest.
$ac_ext >&5
3706 ac_cv_func_alloca_works
=no
3711 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3712 if test $ac_cv_func_alloca_works = yes; then
3713 cat >> confdefs.h
<<\EOF
3714 #define HAVE_ALLOCA 1
3719 if test $ac_cv_func_alloca_works = no
; then
3720 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3721 # that cause trouble. Some versions do not even contain alloca or
3722 # contain a buggy version. If you still want to use their alloca,
3723 # use ar to extract alloca.o from them instead of compiling alloca.c.
3724 ALLOCA
=alloca.
${ac_objext}
3725 cat >> confdefs.h
<<\EOF
3730 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3731 echo "configure:3732: checking whether alloca needs Cray hooks" >&5
3732 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3735 cat > conftest.
$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3738 #if defined(CRAY) && ! defined(CRAY2)
3745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3746 egrep "webecray" >/dev
/null
2>&1; then
3757 echo "$ac_t""$ac_cv_os_cray" 1>&6
3758 if test $ac_cv_os_cray = yes; then
3759 for ac_func
in _getb67 GETB67 getb67
; do
3760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3761 echo "configure:3762: checking for $ac_func" >&5
3762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3765 cat > conftest.
$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3768 /* System header to define __stub macros and hopefully few prototypes,
3769 which can conflict with char $ac_func(); below. */
3771 /* Override any gcc2 internal prototype to avoid an error. */
3772 /* We use char because int might match the return type of a gcc2
3773 builtin and then its argument prototype would still apply. */
3778 /* The GNU C library defines this for functions which it implements
3779 to always fail with ENOSYS. Some functions are actually named
3780 something starting with __ and the normal name is an alias. */
3781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3789 if { (eval echo configure
:3790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3791 eval "ac_cv_func_$ac_func=yes"
3793 echo "configure: failed program was:" >&5
3794 cat conftest.
$ac_ext >&5
3796 eval "ac_cv_func_$ac_func=no"
3801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3802 echo "$ac_t""yes" 1>&6
3803 cat >> confdefs.h
<<EOF
3804 #define CRAY_STACKSEG_END $ac_func
3809 echo "$ac_t""no" 1>&6
3815 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3816 echo "configure:3817: checking stack direction for C alloca" >&5
3817 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3820 if test "$cross_compiling" = yes; then
3821 ac_cv_c_stack_direction
=0
3823 cat > conftest.
$ac_ext <<EOF
3824 #line 3825 "configure"
3825 #include "confdefs.h"
3826 find_stack_direction ()
3828 static char *addr = 0;
3833 return find_stack_direction ();
3836 return (&dummy > addr) ? 1 : -1;
3840 exit (find_stack_direction() < 0);
3843 if { (eval echo configure
:3844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3845 ac_cv_c_stack_direction
=1
3847 echo "configure: failed program was:" >&5
3848 cat conftest.
$ac_ext >&5
3850 ac_cv_c_stack_direction
=-1
3857 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3858 cat >> confdefs.h
<<EOF
3859 #define STACK_DIRECTION $ac_cv_c_stack_direction
3864 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3865 echo "configure:3866: checking for pid_t" >&5
3866 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 cat > conftest.
$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3872 #include <sys/types.h>
3878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3879 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3881 ac_cv_type_pid_t
=yes
3889 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3890 if test $ac_cv_type_pid_t = no
; then
3891 cat >> confdefs.h
<<\EOF
3897 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3898 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3899 echo "configure:3900: checking for vfork.h" >&5
3900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3901 echo $ac_n "(cached) $ac_c" 1>&6
3903 cat > conftest.
$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3908 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3909 { (eval echo configure
:3910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3910 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3911 if test -z "$ac_err"; then
3913 eval "ac_cv_header_$ac_safe=yes"
3916 echo "configure: failed program was:" >&5
3917 cat conftest.
$ac_ext >&5
3919 eval "ac_cv_header_$ac_safe=no"
3923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3924 echo "$ac_t""yes" 1>&6
3925 cat >> confdefs.h
<<\EOF
3926 #define HAVE_VFORK_H 1
3930 echo "$ac_t""no" 1>&6
3933 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3934 echo "configure:3935: checking for working vfork" >&5
3935 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3938 if test "$cross_compiling" = yes; then
3939 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3940 echo "configure:3941: checking for vfork" >&5
3941 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3942 echo $ac_n "(cached) $ac_c" 1>&6
3944 cat > conftest.
$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3947 /* System header to define __stub macros and hopefully few prototypes,
3948 which can conflict with char vfork(); below. */
3950 /* Override any gcc2 internal prototype to avoid an error. */
3951 /* We use char because int might match the return type of a gcc2
3952 builtin and then its argument prototype would still apply. */
3957 /* The GNU C library defines this for functions which it implements
3958 to always fail with ENOSYS. Some functions are actually named
3959 something starting with __ and the normal name is an alias. */
3960 #if defined (__stub_vfork) || defined (__stub___vfork)
3968 if { (eval echo configure
:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3970 eval "ac_cv_func_vfork=yes"
3972 echo "configure: failed program was:" >&5
3973 cat conftest.
$ac_ext >&5
3975 eval "ac_cv_func_vfork=no"
3980 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3981 echo "$ac_t""yes" 1>&6
3984 echo "$ac_t""no" 1>&6
3987 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3989 cat > conftest.
$ac_ext <<EOF
3990 #line 3991 "configure"
3991 #include "confdefs.h"
3992 /* Thanks to Paul Eggert for this test. */
3994 #include <sys/types.h>
3995 #include <sys/stat.h>
3996 #ifdef HAVE_UNISTD_H
4002 /* On some sparc systems, changes by the child to local and incoming
4003 argument registers are propagated back to the parent.
4004 The compiler is told about this with #include <vfork.h>,
4005 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
4006 Test for this by using a static variable whose address
4007 is put into a register that is clobbered by the vfork. */
4010 sparc_address_test (int arg)
4012 sparc_address_test (arg) int arg;
4030 pid_t parent = getpid ();
4033 sparc_address_test ();
4038 /* Here is another test for sparc vfork register problems.
4039 This test uses lots of local variables, at least
4040 as many local variables as main has allocated so far
4041 including compiler temporaries. 4 locals are enough for
4042 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
4043 A buggy compiler should reuse the register of parent
4044 for one of the local variables, since it will think that
4045 parent can't possibly be used any more in this routine.
4046 Assigning to the local variable will thus munge parent
4047 in the parent process. */
4049 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4050 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4051 /* Convince the compiler that p..p7 are live; otherwise, it might
4052 use the same hardware register for all 8 local variables. */
4053 if (p != p1 || p != p2 || p != p3 || p != p4
4054 || p != p5 || p != p6 || p != p7)
4057 /* On some systems (e.g. IRIX 3.3),
4058 vfork doesn't separate parent from child file descriptors.
4059 If the child closes a descriptor before it execs or exits,
4060 this munges the parent's descriptor as well.
4061 Test for this by closing stdout in the child. */
4062 _exit(close(fileno(stdout)) != 0);
4067 while (wait(&status) != child)
4070 /* Was there some problem with vforking? */
4073 /* Did the child fail? (This shouldn't happen.) */
4076 /* Did the vfork/compiler bug occur? */
4077 || parent != getpid()
4079 /* Did the file descriptor bug occur? */
4080 || fstat(fileno(stdout), &st) != 0
4085 if { (eval echo configure
:4086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4087 ac_cv_func_vfork_works
=yes
4089 echo "configure: failed program was:" >&5
4090 cat conftest.
$ac_ext >&5
4092 ac_cv_func_vfork_works
=no
4099 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
4100 if test $ac_cv_func_vfork_works = no
; then
4101 cat >> confdefs.h
<<\EOF
4107 if test "$cross_compiling" = no
; then
4108 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4109 echo "configure:4110: checking whether setpgrp takes no argument" >&5
4110 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4111 echo $ac_n "(cached) $ac_c" 1>&6
4113 if test "$cross_compiling" = yes; then
4114 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
4116 cat > conftest.
$ac_ext <<EOF
4117 #line 4118 "configure"
4118 #include "confdefs.h"
4120 #ifdef HAVE_UNISTD_H
4125 * If this system has a BSD-style setpgrp, which takes arguments, exit
4130 if (setpgrp(1,1) == -1)
4137 if { (eval echo configure
:4138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4139 ac_cv_func_setpgrp_void
=no
4141 echo "configure: failed program was:" >&5
4142 cat conftest.
$ac_ext >&5
4144 ac_cv_func_setpgrp_void
=yes
4152 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
4153 if test $ac_cv_func_setpgrp_void = yes; then
4154 cat >> confdefs.h
<<\EOF
4155 #define SETPGRP_VOID 1
4161 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4162 echo "configure:4163: checking whether setpgrp takes no argument" >&5
4163 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4164 echo $ac_n "(cached) $ac_c" 1>&6
4166 cat > conftest.
$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4174 if (setpgrp(1,1) == -1)
4181 if { (eval echo configure
:4182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4183 ac_cv_func_setpgrp_void
=no
4185 echo "configure: failed program was:" >&5
4186 cat conftest.
$ac_ext >&5
4188 ac_cv_func_setpgrp_void
=yes
4193 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
4194 if test $ac_cv_func_setpgrp_void = yes; then
4195 cat >> confdefs.h
<<\EOF
4196 #define SETPGRP_VOID 1
4202 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
4203 # since sigsetjmp might only be defined as a macro.
4204 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
4205 echo "configure:4206: checking for sigsetjmp" >&5
4206 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4209 cat > conftest.
$ac_ext <<EOF
4210 #line 4211 "configure"
4211 #include "confdefs.h"
4216 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
4219 if { (eval echo configure
:4220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4221 gdb_cv_func_sigsetjmp
=yes
4223 echo "configure: failed program was:" >&5
4224 cat conftest.
$ac_ext >&5
4226 gdb_cv_func_sigsetjmp
=no
4231 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
4232 if test $gdb_cv_func_sigsetjmp = yes; then
4233 cat >> confdefs.h
<<\EOF
4234 #define HAVE_SIGSETJMP 1
4239 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
4240 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
4241 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
4242 echo "configure:4243: checking for r_fs in struct reg" >&5
4243 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
4244 echo $ac_n "(cached) $ac_c" 1>&6
4246 cat > conftest.
$ac_ext <<EOF
4247 #line 4248 "configure"
4248 #include "confdefs.h"
4249 #include <machine/reg.h>
4251 struct reg r; r.r_fs;
4254 if { (eval echo configure
:4255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4256 gdb_cv_struct_reg_r_fs
=yes
4258 echo "configure: failed program was:" >&5
4259 cat conftest.
$ac_ext >&5
4261 gdb_cv_struct_reg_r_fs
=no
4266 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
4267 if test $gdb_cv_struct_reg_r_fs = yes; then
4268 cat >> confdefs.h
<<\EOF
4269 #define HAVE_STRUCT_REG_R_FS 1
4273 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
4274 echo "configure:4275: checking for r_gs in struct reg" >&5
4275 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4278 cat > conftest.
$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4281 #include <machine/reg.h>
4283 struct reg r; r.r_gs;
4286 if { (eval echo configure
:4287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4288 gdb_cv_struct_reg_r_gs
=yes
4290 echo "configure: failed program was:" >&5
4291 cat conftest.
$ac_ext >&5
4293 gdb_cv_struct_reg_r_gs
=no
4298 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
4299 if test $gdb_cv_struct_reg_r_gs = yes; then
4300 cat >> confdefs.h
<<\EOF
4301 #define HAVE_STRUCT_REG_R_GS 1
4306 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
4307 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
4308 echo "configure:4309: checking for PTRACE_GETREGS" >&5
4309 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4312 cat > conftest.
$ac_ext <<EOF
4313 #line 4314 "configure"
4314 #include "confdefs.h"
4315 #include <sys/ptrace.h>
4320 if { (eval echo configure
:4321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4322 gdb_cv_have_ptrace_getregs
=yes
4324 echo "configure: failed program was:" >&5
4325 cat conftest.
$ac_ext >&5
4327 gdb_cv_have_ptrace_getregs
=no
4332 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
4333 if test $gdb_cv_have_ptrace_getregs = yes; then
4334 cat >> confdefs.h
<<\EOF
4335 #define HAVE_PTRACE_GETREGS 1
4340 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
4341 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
4342 echo "configure:4343: checking for PTRACE_GETFPXREGS" >&5
4343 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4346 cat > conftest.
$ac_ext <<EOF
4347 #line 4348 "configure"
4348 #include "confdefs.h"
4349 #include <sys/ptrace.h>
4354 if { (eval echo configure
:4355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4356 gdb_cv_have_ptrace_getfpxregs
=yes
4358 echo "configure: failed program was:" >&5
4359 cat conftest.
$ac_ext >&5
4361 gdb_cv_have_ptrace_getfpxregs
=no
4366 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
4367 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
4368 cat >> confdefs.h
<<\EOF
4369 #define HAVE_PTRACE_GETFPXREGS 1
4374 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
4375 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
4376 echo "configure:4377: checking for PT_GETDBREGS" >&5
4377 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
4378 echo $ac_n "(cached) $ac_c" 1>&6
4380 cat > conftest.
$ac_ext <<EOF
4381 #line 4382 "configure"
4382 #include "confdefs.h"
4383 #include <sys/types.h>
4384 #include <sys/ptrace.h>
4389 if { (eval echo configure
:4390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4391 gdb_cv_have_pt_getdbregs
=yes
4393 echo "configure: failed program was:" >&5
4394 cat conftest.
$ac_ext >&5
4396 gdb_cv_have_pt_getdbregs
=no
4401 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
4402 if test $gdb_cv_have_pt_getdbregs = yes; then
4403 cat >> confdefs.h
<<\EOF
4404 #define HAVE_PT_GETDBREGS 1
4409 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
4410 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
4411 echo "configure:4412: checking for PT_GETXMMREGS" >&5
4412 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
4413 echo $ac_n "(cached) $ac_c" 1>&6
4415 cat > conftest.
$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4418 #include <sys/types.h>
4419 #include <sys/ptrace.h>
4424 if { (eval echo configure
:4425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4426 gdb_cv_have_pt_getxmmregs
=yes
4428 echo "configure: failed program was:" >&5
4429 cat conftest.
$ac_ext >&5
4431 gdb_cv_have_pt_getxmmregs
=no
4436 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
4437 if test $gdb_cv_have_pt_getxmmregs = yes; then
4438 cat >> confdefs.h
<<\EOF
4439 #define HAVE_PT_GETXMMREGS 1
4445 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
4446 echo "configure:4447: checking for socketpair in -lsocket" >&5
4447 ac_lib_var
=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
4448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4449 echo $ac_n "(cached) $ac_c" 1>&6
4451 ac_save_LIBS
="$LIBS"
4452 LIBS
="-lsocket $LIBS"
4453 cat > conftest.
$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4456 /* Override any gcc2 internal prototype to avoid an error. */
4457 /* We use char because int might match the return type of a gcc2
4458 builtin and then its argument prototype would still apply. */
4465 if { (eval echo configure
:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4467 eval "ac_cv_lib_$ac_lib_var=yes"
4469 echo "configure: failed program was:" >&5
4470 cat conftest.
$ac_ext >&5
4472 eval "ac_cv_lib_$ac_lib_var=no"
4475 LIBS
="$ac_save_LIBS"
4478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4479 echo "$ac_t""yes" 1>&6
4480 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4481 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4482 cat >> confdefs.h
<<EOF
4483 #define $ac_tr_lib 1
4486 LIBS
="-lsocket $LIBS"
4489 echo "$ac_t""no" 1>&6
4492 for ac_func
in socketpair
4494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4495 echo "configure:4496: checking for $ac_func" >&5
4496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4497 echo $ac_n "(cached) $ac_c" 1>&6
4499 cat > conftest.
$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4502 /* System header to define __stub macros and hopefully few prototypes,
4503 which can conflict with char $ac_func(); below. */
4505 /* Override any gcc2 internal prototype to avoid an error. */
4506 /* We use char because int might match the return type of a gcc2
4507 builtin and then its argument prototype would still apply. */
4512 /* The GNU C library defines this for functions which it implements
4513 to always fail with ENOSYS. Some functions are actually named
4514 something starting with __ and the normal name is an alias. */
4515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4523 if { (eval echo configure
:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4525 eval "ac_cv_func_$ac_func=yes"
4527 echo "configure: failed program was:" >&5
4528 cat conftest.
$ac_ext >&5
4530 eval "ac_cv_func_$ac_func=no"
4535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4536 echo "$ac_t""yes" 1>&6
4537 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4538 cat >> confdefs.h
<<EOF
4539 #define $ac_tr_func 1
4543 echo "$ac_t""no" 1>&6
4549 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4550 echo "configure:4551: checking whether malloc must be declared" >&5
4551 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4554 cat > conftest.
$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4559 #ifdef HAVE_STRING_H
4562 #ifdef HAVE_STRINGS_H
4563 #include <strings.h>
4566 #ifdef HAVE_STDLIB_H
4569 #ifdef HAVE_UNISTD_H
4573 char *(*pfn) = (char *(*)) malloc
4576 if { (eval echo configure
:4577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4578 bfd_cv_decl_needed_malloc
=no
4580 echo "configure: failed program was:" >&5
4581 cat conftest.
$ac_ext >&5
4583 bfd_cv_decl_needed_malloc
=yes
4588 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4589 if test $bfd_cv_decl_needed_malloc = yes; then
4590 cat >> confdefs.h
<<\EOF
4591 #define NEED_DECLARATION_MALLOC 1
4596 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4597 echo "configure:4598: checking whether realloc must be declared" >&5
4598 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4599 echo $ac_n "(cached) $ac_c" 1>&6
4601 cat > conftest.
$ac_ext <<EOF
4602 #line 4603 "configure"
4603 #include "confdefs.h"
4606 #ifdef HAVE_STRING_H
4609 #ifdef HAVE_STRINGS_H
4610 #include <strings.h>
4613 #ifdef HAVE_STDLIB_H
4616 #ifdef HAVE_UNISTD_H
4620 char *(*pfn) = (char *(*)) realloc
4623 if { (eval echo configure
:4624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4625 bfd_cv_decl_needed_realloc
=no
4627 echo "configure: failed program was:" >&5
4628 cat conftest.
$ac_ext >&5
4630 bfd_cv_decl_needed_realloc
=yes
4635 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4636 if test $bfd_cv_decl_needed_realloc = yes; then
4637 cat >> confdefs.h
<<\EOF
4638 #define NEED_DECLARATION_REALLOC 1
4643 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4644 echo "configure:4645: checking whether free must be declared" >&5
4645 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4646 echo $ac_n "(cached) $ac_c" 1>&6
4648 cat > conftest.
$ac_ext <<EOF
4649 #line 4650 "configure"
4650 #include "confdefs.h"
4653 #ifdef HAVE_STRING_H
4656 #ifdef HAVE_STRINGS_H
4657 #include <strings.h>
4660 #ifdef HAVE_STDLIB_H
4663 #ifdef HAVE_UNISTD_H
4667 char *(*pfn) = (char *(*)) free
4670 if { (eval echo configure
:4671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4672 bfd_cv_decl_needed_free
=no
4674 echo "configure: failed program was:" >&5
4675 cat conftest.
$ac_ext >&5
4677 bfd_cv_decl_needed_free
=yes
4682 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4683 if test $bfd_cv_decl_needed_free = yes; then
4684 cat >> confdefs.h
<<\EOF
4685 #define NEED_DECLARATION_FREE 1
4690 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4691 echo "configure:4692: checking whether strerror must be declared" >&5
4692 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4693 echo $ac_n "(cached) $ac_c" 1>&6
4695 cat > conftest.
$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4700 #ifdef HAVE_STRING_H
4703 #ifdef HAVE_STRINGS_H
4704 #include <strings.h>
4707 #ifdef HAVE_STDLIB_H
4710 #ifdef HAVE_UNISTD_H
4714 char *(*pfn) = (char *(*)) strerror
4717 if { (eval echo configure
:4718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4719 bfd_cv_decl_needed_strerror
=no
4721 echo "configure: failed program was:" >&5
4722 cat conftest.
$ac_ext >&5
4724 bfd_cv_decl_needed_strerror
=yes
4729 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4730 if test $bfd_cv_decl_needed_strerror = yes; then
4731 cat >> confdefs.h
<<\EOF
4732 #define NEED_DECLARATION_STRERROR 1
4737 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4738 echo "configure:4739: checking whether strdup must be declared" >&5
4739 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4740 echo $ac_n "(cached) $ac_c" 1>&6
4742 cat > conftest.
$ac_ext <<EOF
4743 #line 4744 "configure"
4744 #include "confdefs.h"
4747 #ifdef HAVE_STRING_H
4750 #ifdef HAVE_STRINGS_H
4751 #include <strings.h>
4754 #ifdef HAVE_STDLIB_H
4757 #ifdef HAVE_UNISTD_H
4761 char *(*pfn) = (char *(*)) strdup
4764 if { (eval echo configure
:4765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4766 bfd_cv_decl_needed_strdup
=no
4768 echo "configure: failed program was:" >&5
4769 cat conftest.
$ac_ext >&5
4771 bfd_cv_decl_needed_strdup
=yes
4776 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4777 if test $bfd_cv_decl_needed_strdup = yes; then
4778 cat >> confdefs.h
<<\EOF
4779 #define NEED_DECLARATION_STRDUP 1
4784 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4785 echo "configure:4786: checking whether strstr must be declared" >&5
4786 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4789 cat > conftest.
$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4794 #ifdef HAVE_STRING_H
4797 #ifdef HAVE_STRINGS_H
4798 #include <strings.h>
4801 #ifdef HAVE_STDLIB_H
4804 #ifdef HAVE_UNISTD_H
4808 char *(*pfn) = (char *(*)) strstr
4811 if { (eval echo configure
:4812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4813 bfd_cv_decl_needed_strstr
=no
4815 echo "configure: failed program was:" >&5
4816 cat conftest.
$ac_ext >&5
4818 bfd_cv_decl_needed_strstr
=yes
4823 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4824 if test $bfd_cv_decl_needed_strstr = yes; then
4825 cat >> confdefs.h
<<\EOF
4826 #define NEED_DECLARATION_STRSTR 1
4833 # The following save_state_t checkery is only necessary for HPUX
4834 # versions earlier than 10.20. When those fade from memory, this
4835 # could be expunged. --jsm 1999-03-22
4837 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4838 echo "configure:4839: checking for HPUX save_state structure" >&5
4839 cat > conftest.
$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4842 #include <machine/save_state.h>
4844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4845 egrep "save_state_t" >/dev
/null
2>&1; then
4847 gdb_cv_hpux_savestate
=yes
4850 gdb_cv_hpux_savestate
=no
4854 cat > conftest.
$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4857 #include <machine/save_state.h>
4859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4860 egrep "ss_wide" >/dev
/null
2>&1; then
4862 gdb_cv_hpux_sswide
=yes
4865 gdb_cv_hpux_sswide
=no
4869 if test $gdb_cv_hpux_savestate = yes
4871 cat >> confdefs.h
<<\EOF
4872 #define HAVE_STRUCT_SAVE_STATE_T 1
4876 if test $gdb_cv_hpux_sswide = yes
4878 cat >> confdefs.h
<<\EOF
4879 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4883 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4886 # If we are configured native on GNU/Linux, work around problems with
4888 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4890 if test "${target}" = "${host}"; then
4893 cat >> confdefs.h
<<\EOF
4894 #define START_INFERIOR_TRAPS_EXPECTED 2
4897 cat >> confdefs.h
<<\EOF
4898 #define sys_quotactl 1
4903 cat >> confdefs.h
<<\EOF
4904 #define NEW_PROC_API 1
4908 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5*)
4909 cat >> confdefs.h
<<\EOF
4910 #define NEW_PROC_API 1
4915 cat >> confdefs.h
<<\EOF
4916 #define NEW_PROC_API 1
4923 if test "$ac_cv_header_sys_procfs_h" = yes; then
4924 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4925 echo "configure:4926: checking for pstatus_t in sys/procfs.h" >&5
4926 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4927 echo $ac_n "(cached) $ac_c" 1>&6
4929 cat > conftest.
$ac_ext <<EOF
4930 #line 4931 "configure"
4931 #include "confdefs.h"
4934 #include <sys/procfs.h>
4939 if { (eval echo configure
:4940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4941 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4943 echo "configure: failed program was:" >&5
4944 cat conftest.
$ac_ext >&5
4946 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4952 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4953 cat >> confdefs.h
<<\EOF
4954 #define HAVE_PSTATUS_T 1
4958 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4960 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4961 echo "configure:4962: checking for prrun_t in sys/procfs.h" >&5
4962 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4963 echo $ac_n "(cached) $ac_c" 1>&6
4965 cat > conftest.
$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4970 #include <sys/procfs.h>
4975 if { (eval echo configure
:4976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4977 bfd_cv_have_sys_procfs_type_prrun_t
=yes
4979 echo "configure: failed program was:" >&5
4980 cat conftest.
$ac_ext >&5
4982 bfd_cv_have_sys_procfs_type_prrun_t
=no
4988 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
4989 cat >> confdefs.h
<<\EOF
4990 #define HAVE_PRRUN_T 1
4994 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
4996 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
4997 echo "configure:4998: checking for gregset_t in sys/procfs.h" >&5
4998 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
4999 echo $ac_n "(cached) $ac_c" 1>&6
5001 cat > conftest.
$ac_ext <<EOF
5002 #line 5003 "configure"
5003 #include "confdefs.h"
5006 #include <sys/procfs.h>
5011 if { (eval echo configure
:5012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5013 bfd_cv_have_sys_procfs_type_gregset_t
=yes
5015 echo "configure: failed program was:" >&5
5016 cat conftest.
$ac_ext >&5
5018 bfd_cv_have_sys_procfs_type_gregset_t
=no
5024 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
5025 cat >> confdefs.h
<<\EOF
5026 #define HAVE_GREGSET_T 1
5030 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
5032 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
5033 echo "configure:5034: checking for fpregset_t in sys/procfs.h" >&5
5034 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
5035 echo $ac_n "(cached) $ac_c" 1>&6
5037 cat > conftest.
$ac_ext <<EOF
5038 #line 5039 "configure"
5039 #include "confdefs.h"
5042 #include <sys/procfs.h>
5047 if { (eval echo configure
:5048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5049 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
5051 echo "configure: failed program was:" >&5
5052 cat conftest.
$ac_ext >&5
5054 bfd_cv_have_sys_procfs_type_fpregset_t
=no
5060 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
5061 cat >> confdefs.h
<<\EOF
5062 #define HAVE_FPREGSET_T 1
5066 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
5068 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
5069 echo "configure:5070: checking for prgregset_t in sys/procfs.h" >&5
5070 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
5071 echo $ac_n "(cached) $ac_c" 1>&6
5073 cat > conftest.
$ac_ext <<EOF
5074 #line 5075 "configure"
5075 #include "confdefs.h"
5078 #include <sys/procfs.h>
5083 if { (eval echo configure
:5084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5085 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
5087 echo "configure: failed program was:" >&5
5088 cat conftest.
$ac_ext >&5
5090 bfd_cv_have_sys_procfs_type_prgregset_t
=no
5096 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
5097 cat >> confdefs.h
<<\EOF
5098 #define HAVE_PRGREGSET_T 1
5102 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
5104 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
5105 echo "configure:5106: checking for prfpregset_t in sys/procfs.h" >&5
5106 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
5107 echo $ac_n "(cached) $ac_c" 1>&6
5109 cat > conftest.
$ac_ext <<EOF
5110 #line 5111 "configure"
5111 #include "confdefs.h"
5114 #include <sys/procfs.h>
5119 if { (eval echo configure
:5120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5121 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
5123 echo "configure: failed program was:" >&5
5124 cat conftest.
$ac_ext >&5
5126 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
5132 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
5133 cat >> confdefs.h
<<\EOF
5134 #define HAVE_PRFPREGSET_T 1
5138 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
5140 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
5141 echo "configure:5142: checking for prgregset32_t in sys/procfs.h" >&5
5142 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
5143 echo $ac_n "(cached) $ac_c" 1>&6
5145 cat > conftest.
$ac_ext <<EOF
5146 #line 5147 "configure"
5147 #include "confdefs.h"
5150 #include <sys/procfs.h>
5155 if { (eval echo configure
:5156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5157 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
5159 echo "configure: failed program was:" >&5
5160 cat conftest.
$ac_ext >&5
5162 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
5168 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
5169 cat >> confdefs.h
<<\EOF
5170 #define HAVE_PRGREGSET32_T 1
5174 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
5176 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
5177 echo "configure:5178: checking for prfpregset32_t in sys/procfs.h" >&5
5178 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5181 cat > conftest.
$ac_ext <<EOF
5182 #line 5183 "configure"
5183 #include "confdefs.h"
5186 #include <sys/procfs.h>
5191 if { (eval echo configure
:5192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5193 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
5195 echo "configure: failed program was:" >&5
5196 cat conftest.
$ac_ext >&5
5198 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
5204 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
5205 cat >> confdefs.h
<<\EOF
5206 #define HAVE_PRFPREGSET32_T 1
5210 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
5212 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
5213 echo "configure:5214: checking for lwpid_t in sys/procfs.h" >&5
5214 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
5215 echo $ac_n "(cached) $ac_c" 1>&6
5217 cat > conftest.
$ac_ext <<EOF
5218 #line 5219 "configure"
5219 #include "confdefs.h"
5222 #include <sys/procfs.h>
5227 if { (eval echo configure
:5228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5229 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
5231 echo "configure: failed program was:" >&5
5232 cat conftest.
$ac_ext >&5
5234 bfd_cv_have_sys_procfs_type_lwpid_t
=no
5240 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
5241 cat >> confdefs.h
<<\EOF
5242 #define HAVE_LWPID_T 1
5246 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
5248 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
5249 echo "configure:5250: checking for psaddr_t in sys/procfs.h" >&5
5250 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
5251 echo $ac_n "(cached) $ac_c" 1>&6
5253 cat > conftest.
$ac_ext <<EOF
5254 #line 5255 "configure"
5255 #include "confdefs.h"
5258 #include <sys/procfs.h>
5263 if { (eval echo configure
:5264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5265 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
5267 echo "configure: failed program was:" >&5
5268 cat conftest.
$ac_ext >&5
5270 bfd_cv_have_sys_procfs_type_psaddr_t
=no
5276 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
5277 cat >> confdefs.h
<<\EOF
5278 #define HAVE_PSADDR_T 1
5282 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
5284 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
5285 echo "configure:5286: checking for prsysent_t in sys/procfs.h" >&5
5286 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
5287 echo $ac_n "(cached) $ac_c" 1>&6
5289 cat > conftest.
$ac_ext <<EOF
5290 #line 5291 "configure"
5291 #include "confdefs.h"
5294 #include <sys/procfs.h>
5299 if { (eval echo configure
:5300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5301 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
5303 echo "configure: failed program was:" >&5
5304 cat conftest.
$ac_ext >&5
5306 bfd_cv_have_sys_procfs_type_prsysent_t
=no
5312 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
5313 cat >> confdefs.h
<<\EOF
5314 #define HAVE_PRSYSENT_T 1
5318 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
5320 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
5321 echo "configure:5322: checking for pr_sigset_t in sys/procfs.h" >&5
5322 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
5323 echo $ac_n "(cached) $ac_c" 1>&6
5325 cat > conftest.
$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5330 #include <sys/procfs.h>
5335 if { (eval echo configure
:5336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5337 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
5339 echo "configure: failed program was:" >&5
5340 cat conftest.
$ac_ext >&5
5342 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
5348 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
5349 cat >> confdefs.h
<<\EOF
5350 #define HAVE_PR_SIGSET_T 1
5354 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
5356 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
5357 echo "configure:5358: checking for pr_sigaction64_t in sys/procfs.h" >&5
5358 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
5359 echo $ac_n "(cached) $ac_c" 1>&6
5361 cat > conftest.
$ac_ext <<EOF
5362 #line 5363 "configure"
5363 #include "confdefs.h"
5366 #include <sys/procfs.h>
5368 pr_sigaction64_t avar
5371 if { (eval echo configure
:5372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5373 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
5375 echo "configure: failed program was:" >&5
5376 cat conftest.
$ac_ext >&5
5378 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
5384 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
5385 cat >> confdefs.h
<<\EOF
5386 #define HAVE_PR_SIGACTION64_T 1
5390 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
5392 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
5393 echo "configure:5394: checking for pr_siginfo64_t in sys/procfs.h" >&5
5394 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
5395 echo $ac_n "(cached) $ac_c" 1>&6
5397 cat > conftest.
$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5402 #include <sys/procfs.h>
5407 if { (eval echo configure
:5408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5409 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
5411 echo "configure: failed program was:" >&5
5412 cat conftest.
$ac_ext >&5
5414 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
5420 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
5421 cat >> confdefs.h
<<\EOF
5422 #define HAVE_PR_SIGINFO64_T 1
5426 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
5432 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
5433 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
5434 echo "configure:5435: checking whether prfpregset_t type is broken" >&5
5435 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5438 if test "$cross_compiling" = yes; then
5439 gdb_cv_prfpregset_t_broken
=yes
5441 cat > conftest.
$ac_ext <<EOF
5442 #line 5443 "configure"
5443 #include "confdefs.h"
5444 #include <sys/procfs.h>
5447 if (sizeof (prfpregset_t) == sizeof (void *))
5452 if { (eval echo configure
:5453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5454 gdb_cv_prfpregset_t_broken
=no
5456 echo "configure: failed program was:" >&5
5457 cat conftest.
$ac_ext >&5
5459 gdb_cv_prfpregset_t_broken
=yes
5466 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
5467 if test $gdb_cv_prfpregset_t_broken = yes; then
5468 cat >> confdefs.h
<<\EOF
5469 #define PRFPREGSET_T_BROKEN 1
5476 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
5477 echo "configure:5478: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
5478 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+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"
5485 #include <sys/types.h>
5486 #include <sys/procfs.h>
5491 dummy = ioctl(0, PIOCSET, &dummy);
5495 if { (eval echo configure
:5496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5497 gdb_cv_have_procfs_piocset
=yes
5499 echo "configure: failed program was:" >&5
5500 cat conftest.
$ac_ext >&5
5502 gdb_cv_have_procfs_piocset
=no
5507 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
5508 if test $gdb_cv_have_procfs_piocset = yes; then
5509 cat >> confdefs.h
<<\EOF
5510 #define HAVE_PROCFS_PIOCSET 1
5516 if test ${host} = ${target} ; then
5518 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
5519 echo "configure:5520: checking for member l_addr in struct link_map" >&5
5520 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
5521 echo $ac_n "(cached) $ac_c" 1>&6
5523 cat > conftest.
$ac_ext <<EOF
5524 #line 5525 "configure"
5525 #include "confdefs.h"
5528 struct link_map lm; (void) lm.l_addr;
5531 if { (eval echo configure
:5532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5533 gdb_cv_have_struct_link_map_with_l_members
=yes
5535 echo "configure: failed program was:" >&5
5536 cat conftest.
$ac_ext >&5
5538 gdb_cv_have_struct_link_map_with_l_members
=no
5543 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
5544 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
5545 cat >> confdefs.h
<<\EOF
5546 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
5552 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
5553 echo "configure:5554: checking for member lm_addr in struct link_map" >&5
5554 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
5555 echo $ac_n "(cached) $ac_c" 1>&6
5557 cat > conftest.
$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5560 #include <sys/types.h>
5563 struct link_map lm; (void) lm.lm_addr;
5566 if { (eval echo configure
:5567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5568 gdb_cv_have_struct_link_map_with_lm_members
=yes
5570 echo "configure: failed program was:" >&5
5571 cat conftest.
$ac_ext >&5
5573 gdb_cv_have_struct_link_map_with_lm_members
=no
5578 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
5579 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
5580 cat >> confdefs.h
<<\EOF
5581 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
5587 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
5588 echo "configure:5589: checking for member som_addr in struct so_map" >&5
5589 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
5590 echo $ac_n "(cached) $ac_c" 1>&6
5592 cat > conftest.
$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5595 #include <sys/types.h>
5601 struct so_map lm; (void) lm.som_addr;
5604 if { (eval echo configure
:5605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5606 gdb_cv_have_struct_so_map_with_som_members
=yes
5608 echo "configure: failed program was:" >&5
5609 cat conftest.
$ac_ext >&5
5611 gdb_cv_have_struct_so_map_with_som_members
=no
5616 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
5617 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
5618 cat >> confdefs.h
<<\EOF
5619 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
5625 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
5626 echo "configure:5627: checking for struct link_map32 in sys/link.h" >&5
5627 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
5628 echo $ac_n "(cached) $ac_c" 1>&6
5630 cat > conftest.
$ac_ext <<EOF
5631 #line 5632 "configure"
5632 #include "confdefs.h"
5634 #include <sys/link.h>
5636 struct link_map32 l;
5639 if { (eval echo configure
:5640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5641 gdb_cv_have_struct_link_map32
=yes
5643 echo "configure: failed program was:" >&5
5644 cat conftest.
$ac_ext >&5
5646 gdb_cv_have_struct_link_map32
=no
5651 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
5652 if test $gdb_cv_have_struct_link_map32 = yes; then
5653 cat >> confdefs.h
<<\EOF
5654 #define HAVE_STRUCT_LINK_MAP32 1
5660 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5661 echo "configure:5662: checking for main in -lm" >&5
5662 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
5663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5664 echo $ac_n "(cached) $ac_c" 1>&6
5666 ac_save_LIBS
="$LIBS"
5668 cat > conftest.
$ac_ext <<EOF
5669 #line 5670 "configure"
5670 #include "confdefs.h"
5676 if { (eval echo configure
:5677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5678 eval "ac_cv_lib_$ac_lib_var=yes"
5680 echo "configure: failed program was:" >&5
5681 cat conftest.
$ac_ext >&5
5683 eval "ac_cv_lib_$ac_lib_var=no"
5686 LIBS
="$ac_save_LIBS"
5689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5690 echo "$ac_t""yes" 1>&6
5691 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5692 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5693 cat >> confdefs.h
<<EOF
5694 #define $ac_tr_lib 1
5700 echo "$ac_t""no" 1>&6
5704 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
5705 echo "configure:5706: checking for wctype in -lc" >&5
5706 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
5707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5708 echo $ac_n "(cached) $ac_c" 1>&6
5710 ac_save_LIBS
="$LIBS"
5712 cat > conftest.
$ac_ext <<EOF
5713 #line 5714 "configure"
5714 #include "confdefs.h"
5715 /* Override any gcc2 internal prototype to avoid an error. */
5716 /* We use char because int might match the return type of a gcc2
5717 builtin and then its argument prototype would still apply. */
5724 if { (eval echo configure
:5725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5726 eval "ac_cv_lib_$ac_lib_var=yes"
5728 echo "configure: failed program was:" >&5
5729 cat conftest.
$ac_ext >&5
5731 eval "ac_cv_lib_$ac_lib_var=no"
5734 LIBS
="$ac_save_LIBS"
5737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5738 echo "$ac_t""yes" 1>&6
5741 echo "$ac_t""no" 1>&6
5742 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
5743 echo "configure:5744: checking for wctype in -lw" >&5
5744 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
5745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5746 echo $ac_n "(cached) $ac_c" 1>&6
5748 ac_save_LIBS
="$LIBS"
5750 cat > conftest.
$ac_ext <<EOF
5751 #line 5752 "configure"
5752 #include "confdefs.h"
5753 /* Override any gcc2 internal prototype to avoid an error. */
5754 /* We use char because int might match the return type of a gcc2
5755 builtin and then its argument prototype would still apply. */
5762 if { (eval echo configure
:5763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5764 eval "ac_cv_lib_$ac_lib_var=yes"
5766 echo "configure: failed program was:" >&5
5767 cat conftest.
$ac_ext >&5
5769 eval "ac_cv_lib_$ac_lib_var=no"
5772 LIBS
="$ac_save_LIBS"
5775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5776 echo "$ac_t""yes" 1>&6
5777 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
5778 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5779 cat >> confdefs.h
<<EOF
5780 #define $ac_tr_lib 1
5786 echo "$ac_t""no" 1>&6
5793 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
5794 echo "configure:5795: checking for long long support in compiler" >&5
5795 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
5796 echo $ac_n "(cached) $ac_c" 1>&6
5798 cat > conftest.
$ac_ext <<EOF
5799 #line 5800 "configure"
5800 #include "confdefs.h"
5804 extern long long foo;
5805 switch (foo & 2) { case 0: return 1; }
5809 if { (eval echo configure
:5810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5811 gdb_cv_c_long_long
=yes
5813 echo "configure: failed program was:" >&5
5814 cat conftest.
$ac_ext >&5
5816 gdb_cv_c_long_long
=no
5821 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
5822 if test $gdb_cv_c_long_long = yes; then
5823 cat >> confdefs.h
<<\EOF
5824 #define CC_HAS_LONG_LONG 1
5830 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
5831 echo "configure:5832: checking for long long support in printf" >&5
5832 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5835 if test "$cross_compiling" = yes; then
5836 gdb_cv_printf_has_long_long
=no
5838 cat > conftest.
$ac_ext <<EOF
5839 #line 5840 "configure"
5840 #include "confdefs.h"
5845 l = (l << 16) + 0x0123;
5846 l = (l << 16) + 0x4567;
5847 l = (l << 16) + 0x89ab;
5848 l = (l << 16) + 0xcdef;
5849 sprintf (buf, "0x%016llx", l);
5850 return (strcmp ("0x0123456789abcdef", buf));
5853 if { (eval echo configure
:5854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5855 gdb_cv_printf_has_long_long
=yes
5857 echo "configure: failed program was:" >&5
5858 cat conftest.
$ac_ext >&5
5860 gdb_cv_printf_has_long_long
=no
5867 if test $gdb_cv_printf_has_long_long = yes; then
5868 cat >> confdefs.h
<<\EOF
5869 #define PRINTF_HAS_LONG_LONG 1
5873 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
5876 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
5877 echo "configure:5878: checking for long double support in compiler" >&5
5878 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
5879 echo $ac_n "(cached) $ac_c" 1>&6
5881 cat > conftest.
$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5889 if { (eval echo configure
:5890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5891 ac_cv_c_long_double
=yes
5893 echo "configure: failed program was:" >&5
5894 cat conftest.
$ac_ext >&5
5896 ac_cv_c_long_double
=no
5901 echo "$ac_t""$ac_cv_c_long_double" 1>&6
5902 if test $ac_cv_c_long_double = yes; then
5903 cat >> confdefs.h
<<\EOF
5904 #define HAVE_LONG_DOUBLE 1
5910 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
5911 echo "configure:5912: checking for long double support in printf" >&5
5912 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
5913 echo $ac_n "(cached) $ac_c" 1>&6
5915 if test "$cross_compiling" = yes; then
5916 gdb_cv_printf_has_long_double
=no
5918 cat > conftest.
$ac_ext <<EOF
5919 #line 5920 "configure"
5920 #include "confdefs.h"
5924 long double f = 3.141592653;
5925 sprintf (buf, "%Lg", f);
5926 return (strncmp ("3.14159", buf, 7));
5929 if { (eval echo configure
:5930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5931 gdb_cv_printf_has_long_double
=yes
5933 echo "configure: failed program was:" >&5
5934 cat conftest.
$ac_ext >&5
5936 gdb_cv_printf_has_long_double
=no
5943 if test $gdb_cv_printf_has_long_double = yes; then
5944 cat >> confdefs.h
<<\EOF
5945 #define PRINTF_HAS_LONG_DOUBLE 1
5949 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
5952 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
5953 echo "configure:5954: checking for long double support in scanf" >&5
5954 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
5955 echo $ac_n "(cached) $ac_c" 1>&6
5957 if test "$cross_compiling" = yes; then
5958 gdb_cv_scanf_has_long_double
=no
5960 cat > conftest.
$ac_ext <<EOF
5961 #line 5962 "configure"
5962 #include "confdefs.h"
5965 char *buf = "3.141592653";
5967 sscanf (buf, "%Lg", &f);
5968 return !(f > 3.14159 && f < 3.14160);
5971 if { (eval echo configure
:5972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5973 gdb_cv_scanf_has_long_double
=yes
5975 echo "configure: failed program was:" >&5
5976 cat conftest.
$ac_ext >&5
5978 gdb_cv_scanf_has_long_double
=no
5985 if test $gdb_cv_scanf_has_long_double = yes; then
5986 cat >> confdefs.h
<<\EOF
5987 #define SCANF_HAS_LONG_DOUBLE 1
5991 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
5993 for ac_hdr
in unistd.h
5995 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5997 echo "configure:5998: checking for $ac_hdr" >&5
5998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5999 echo $ac_n "(cached) $ac_c" 1>&6
6001 cat > conftest.
$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6006 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6007 { (eval echo configure
:6008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6008 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6009 if test -z "$ac_err"; then
6011 eval "ac_cv_header_$ac_safe=yes"
6014 echo "configure: failed program was:" >&5
6015 cat conftest.
$ac_ext >&5
6017 eval "ac_cv_header_$ac_safe=no"
6021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6022 echo "$ac_t""yes" 1>&6
6023 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6024 cat >> confdefs.h
<<EOF
6025 #define $ac_tr_hdr 1
6029 echo "$ac_t""no" 1>&6
6033 for ac_func
in getpagesize
6035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6036 echo "configure:6037: checking for $ac_func" >&5
6037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6038 echo $ac_n "(cached) $ac_c" 1>&6
6040 cat > conftest.
$ac_ext <<EOF
6041 #line 6042 "configure"
6042 #include "confdefs.h"
6043 /* System header to define __stub macros and hopefully few prototypes,
6044 which can conflict with char $ac_func(); below. */
6046 /* Override any gcc2 internal prototype to avoid an error. */
6047 /* We use char because int might match the return type of a gcc2
6048 builtin and then its argument prototype would still apply. */
6053 /* The GNU C library defines this for functions which it implements
6054 to always fail with ENOSYS. Some functions are actually named
6055 something starting with __ and the normal name is an alias. */
6056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6064 if { (eval echo configure
:6065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6066 eval "ac_cv_func_$ac_func=yes"
6068 echo "configure: failed program was:" >&5
6069 cat conftest.
$ac_ext >&5
6071 eval "ac_cv_func_$ac_func=no"
6076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6077 echo "$ac_t""yes" 1>&6
6078 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6079 cat >> confdefs.h
<<EOF
6080 #define $ac_tr_func 1
6084 echo "$ac_t""no" 1>&6
6088 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6089 echo "configure:6090: checking for working mmap" >&5
6090 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6091 echo $ac_n "(cached) $ac_c" 1>&6
6093 if test "$cross_compiling" = yes; then
6094 ac_cv_func_mmap_fixed_mapped
=no
6096 cat > conftest.
$ac_ext <<EOF
6097 #line 6098 "configure"
6098 #include "confdefs.h"
6100 /* Thanks to Mike Haertel and Jim Avera for this test.
6101 Here is a matrix of mmap possibilities:
6102 mmap private not fixed
6103 mmap private fixed at somewhere currently unmapped
6104 mmap private fixed at somewhere already mapped
6105 mmap shared not fixed
6106 mmap shared fixed at somewhere currently unmapped
6107 mmap shared fixed at somewhere already mapped
6108 For private mappings, we should verify that changes cannot be read()
6109 back from the file, nor mmap's back from the file at a different
6110 address. (There have been systems where private was not correctly
6111 implemented like the infamous i386 svr4.0, and systems where the
6112 VM page cache was not coherent with the filesystem buffer cache
6113 like early versions of FreeBSD and possibly contemporary NetBSD.)
6114 For shared mappings, we should conversely verify that changes get
6115 propogated back to all the places they're supposed to be.
6117 Grep wants private fixed already mapped.
6118 The main things grep needs to know about mmap are:
6119 * does it exist and is it safe to write into the mmap'd area
6120 * how to use it (BSD variants) */
6121 #include <sys/types.h>
6123 #include <sys/mman.h>
6125 /* This mess was copied from the GNU getpagesize.h. */
6126 #ifndef HAVE_GETPAGESIZE
6127 # ifdef HAVE_UNISTD_H
6128 # include <unistd.h>
6131 /* Assume that all systems that can run configure have sys/param.h. */
6132 # ifndef HAVE_SYS_PARAM_H
6133 # define HAVE_SYS_PARAM_H 1
6136 # ifdef _SC_PAGESIZE
6137 # define getpagesize() sysconf(_SC_PAGESIZE)
6138 # else /* no _SC_PAGESIZE */
6139 # ifdef HAVE_SYS_PARAM_H
6140 # include <sys/param.h>
6141 # ifdef EXEC_PAGESIZE
6142 # define getpagesize() EXEC_PAGESIZE
6143 # else /* no EXEC_PAGESIZE */
6145 # define getpagesize() NBPG * CLSIZE
6148 # endif /* no CLSIZE */
6149 # else /* no NBPG */
6151 # define getpagesize() NBPC
6152 # else /* no NBPC */
6154 # define getpagesize() PAGESIZE
6155 # endif /* PAGESIZE */
6156 # endif /* no NBPC */
6157 # endif /* no NBPG */
6158 # endif /* no EXEC_PAGESIZE */
6159 # else /* no HAVE_SYS_PARAM_H */
6160 # define getpagesize() 8192 /* punt totally */
6161 # endif /* no HAVE_SYS_PARAM_H */
6162 # endif /* no _SC_PAGESIZE */
6164 #endif /* no HAVE_GETPAGESIZE */
6167 extern "C" { void *malloc(unsigned); }
6175 char *data, *data2, *data3;
6179 pagesize = getpagesize();
6182 * First, make a file with some known garbage in it.
6184 data = malloc(pagesize);
6187 for (i = 0; i < pagesize; ++i)
6188 *(data + i) = rand();
6190 fd = creat("conftestmmap", 0600);
6193 if (write(fd, data, pagesize) != pagesize)
6198 * Next, try to mmap the file at a fixed address which
6199 * already has something else allocated at it. If we can,
6200 * also make sure that we see the same garbage.
6202 fd = open("conftestmmap", O_RDWR);
6205 data2 = malloc(2 * pagesize);
6208 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6209 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6210 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6212 for (i = 0; i < pagesize; ++i)
6213 if (*(data + i) != *(data2 + i))
6217 * Finally, make sure that changes to the mapped area
6218 * do not percolate back to the file as seen by read().
6219 * (This is a bug on some variants of i386 svr4.0.)
6221 for (i = 0; i < pagesize; ++i)
6222 *(data2 + i) = *(data2 + i) + 1;
6223 data3 = malloc(pagesize);
6226 if (read(fd, data3, pagesize) != pagesize)
6228 for (i = 0; i < pagesize; ++i)
6229 if (*(data + i) != *(data3 + i))
6232 unlink("conftestmmap");
6237 if { (eval echo configure
:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6239 ac_cv_func_mmap_fixed_mapped
=yes
6241 echo "configure: failed program was:" >&5
6242 cat conftest.
$ac_ext >&5
6244 ac_cv_func_mmap_fixed_mapped
=no
6251 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6252 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6253 cat >> confdefs.h
<<\EOF
6262 if test ${build} = ${host} -a ${host} = ${target} ; then
6265 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
6266 echo "configure:6267: checking for HPUX/OSF thread support" >&5
6267 if test -f /usr
/include
/dce
/cma_config.h
; then
6268 if test "$GCC" = "yes" ; then
6269 echo "$ac_t""yes" 1>&6
6270 cat >> confdefs.h
<<\EOF
6271 #define HAVE_HPUX_THREAD_SUPPORT 1
6274 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
6275 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
6277 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
6280 echo "$ac_t""no" 1>&6
6284 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
6285 echo "configure:6286: checking for Solaris thread debugging library" >&5
6286 if test -f /usr
/lib
/libthread_db.so
.1 ; then
6287 echo "$ac_t""yes" 1>&6
6288 cat >> confdefs.h
<<\EOF
6289 #define HAVE_THREAD_DB_LIB 1
6292 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
6293 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
6294 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6295 echo "configure:6296: checking for dlopen in -ldl" >&5
6296 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6298 echo $ac_n "(cached) $ac_c" 1>&6
6300 ac_save_LIBS
="$LIBS"
6302 cat > conftest.
$ac_ext <<EOF
6303 #line 6304 "configure"
6304 #include "confdefs.h"
6305 /* Override any gcc2 internal prototype to avoid an error. */
6306 /* We use char because int might match the return type of a gcc2
6307 builtin and then its argument prototype would still apply. */
6314 if { (eval echo configure
:6315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6316 eval "ac_cv_lib_$ac_lib_var=yes"
6318 echo "configure: failed program was:" >&5
6319 cat conftest.
$ac_ext >&5
6321 eval "ac_cv_lib_$ac_lib_var=no"
6324 LIBS
="$ac_save_LIBS"
6327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6328 echo "$ac_t""yes" 1>&6
6329 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6330 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6331 cat >> confdefs.h
<<EOF
6332 #define $ac_tr_lib 1
6338 echo "$ac_t""no" 1>&6
6341 if test "$GCC" = "yes" ; then
6342 # The GNU linker requires the -export-dynamic option to make
6343 # all symbols visible in the dynamic symbol table.
6344 hold_ldflags
=$LDFLAGS
6345 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
6346 echo "configure:6347: checking for the ld -export-dynamic flag" >&5
6347 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
6348 cat > conftest.
$ac_ext <<EOF
6349 #line 6350 "configure"
6350 #include "confdefs.h"
6356 if { (eval echo configure
:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6360 echo "configure: failed program was:" >&5
6361 cat conftest.
$ac_ext >&5
6366 LDFLAGS
=$hold_ldflags
6367 echo "$ac_t""$found" 1>&6
6368 if test $found = yes; then
6369 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
6372 # Sun randomly tweaked the prototypes in <proc_service.h>
6374 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
6375 echo "configure:6376: checking if <proc_service.h> is old" >&5
6376 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
6377 echo $ac_n "(cached) $ac_c" 1>&6
6380 cat > conftest.
$ac_ext <<EOF
6381 #line 6382 "configure"
6382 #include "confdefs.h"
6384 #include <proc_service.h>
6386 (struct ps_prochandle*, psaddr_t, const void*, size_t);
6392 if { (eval echo configure
:6393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6394 gdb_cv_proc_service_is_old
=no
6396 echo "configure: failed program was:" >&5
6397 cat conftest.
$ac_ext >&5
6399 gdb_cv_proc_service_is_old
=yes
6405 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
6406 if test $gdb_cv_proc_service_is_old = yes; then
6407 cat >> confdefs.h
<<\EOF
6408 #define PROC_SERVICE_IS_OLD 1
6413 echo "$ac_t""no" 1>&6
6421 # Check whether --enable-gdbcli or --disable-gdbcli was given.
6422 if test "${enable_gdbcli+set}" = set; then
6423 enableval
="$enable_gdbcli"
6425 case "${enableval}" in
6426 yes) enable_gdbcli
=yes ;;
6427 "") enable_gdbcli
=yes ;;
6429 { echo "configure: error: The CLI cannot be disabled yet" 1>&2; exit 1; }
6432 { echo "configure: error: Bad value for --enable-gdbcli: ${enableval}" 1>&2; exit 1; }
6440 case ${enable_gdbcli} in
6442 if test -d "${srcdir}/cli" ; then
6443 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_CLI_OBS)"
6444 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_CLI_DEPS)"
6445 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_CLI_SRCS)"
6446 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_CLI_INITS)"
6447 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_CLI_CFLAGS)"
6448 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_CLI_ALL)"
6449 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_CLI_CLEAN)"
6450 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_CLI_INSTALL)"
6451 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_CLI_UNINSTALL)"
6457 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6458 if test "${enable_gdbmi+set}" = set; then
6459 enableval
="$enable_gdbmi"
6461 case "${enable_gdbmi}" in
6463 "") enable_gdbmi
=yes ;;
6465 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
6473 case ${enable_gdbmi} in
6475 if test -d "${srcdir}/mi" ; then
6476 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
6477 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
6478 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_MI_SRCS)"
6479 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
6480 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
6481 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
6482 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
6483 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
6484 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
6489 # Configure UI_OUT by default (before 5.2 it can be disabled)
6490 # It must be configured if gdbmi is configured
6495 # Check whether --with-uiout or --without-uiout was given.
6496 if test "${with_uiout+set}" = set; then
6497 withval
="$with_uiout"
6498 case "${withval}" in
6499 yes) want_uiout
=true
;;
6500 no
) if test $enable_gdbmi = yes; then
6501 { echo "configure: error: uiout is needed for MI and cannot be disabled" 1>&2; exit 1; }
6505 *) { echo "configure: error: bad value ${withval} for GDB with-uiout option" 1>&2; exit 1; } ;;
6511 if test $want_uiout = true
; then
6512 UIOUT_CFLAGS
="-DUI_OUT=1"
6515 # Check whether --enable-tui or --disable-tui was given.
6516 if test "${enable_tui+set}" = set; then
6517 enableval
="$enable_tui"
6519 case "${enable_tui}" in
6521 "") enable_tui
=yes ;;
6523 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
6529 case ${enable_tui} in
6531 if test -d "${srcdir}/tui" ; then
6532 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_TUI_OBS)"
6533 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_TUI_DEPS)"
6534 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_TUI_SRCS)"
6535 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_TUI_INITS)"
6536 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_TUI_CFLAGS)"
6537 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_TUI_ALL)"
6538 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_TUI_CLEAN)"
6539 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_TUI_INSTALL)"
6540 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_TUI_UNINSTALL)"
6545 # Check whether --enable-netrom or --disable-netrom was given.
6546 if test "${enable_netrom+set}" = set; then
6547 enableval
="$enable_netrom"
6548 case "${enableval}" in
6549 yes) enable_netrom
=yes ;;
6550 no
) enable_netrom
=no
;;
6551 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
6556 if test "${enable_netrom}" = "yes"; then
6557 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} remote-nrom.o"
6558 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
6562 # NOTE: Don't add -Wall or -Wunused, they both include
6563 # -Wunused-parameter which reports bogus warnings.
6564 # NOTE: If you add to this list, remember to update
6565 # gdb/doc/gdbint.texinfo.
6566 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
6567 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
6568 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
6569 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
6570 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
6571 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
6572 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
6573 # -Woverloaded-virtual -Winline -Werror"
6574 # Check whether --enable-build-warnings or --disable-build-warnings was given.
6575 if test "${enable_build_warnings+set}" = set; then
6576 enableval
="$enable_build_warnings"
6577 case "${enableval}" in
6579 no
) build_warnings
="-w";;
6580 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6581 build_warnings
="${build_warnings} ${t}";;
6582 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6583 build_warnings
="${t} ${build_warnings}";;
6584 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6586 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6587 echo "Setting compiler warning flags = $build_warnings" 6>&1
6590 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
6591 if test "${enable_gdb_build_warnings+set}" = set; then
6592 enableval
="$enable_gdb_build_warnings"
6593 case "${enableval}" in
6595 no
) build_warnings
="-w";;
6596 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6597 build_warnings
="${build_warnings} ${t}";;
6598 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6599 build_warnings
="${t} ${build_warnings}";;
6600 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6602 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6603 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
6608 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
6610 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
6611 echo "configure:6612: checking compiler warning flags" >&5
6612 # Separate out the -Werror flag as some files just cannot be
6613 # compiled with it enabled.
6614 for w
in ${build_warnings}; do
6616 -Werr*) WERROR_CFLAGS
=-Werror ;;
6617 *) # Check that GCC accepts it
6618 saved_CFLAGS
="$CFLAGS"
6620 cat > conftest.
$ac_ext <<EOF
6621 #line 6622 "configure"
6622 #include "confdefs.h"
6628 if { (eval echo configure
:6629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6630 WARN_CFLAGS
="${WARN_CFLAGS} $w"
6632 echo "configure: failed program was:" >&5
6633 cat conftest.
$ac_ext >&5
6636 CFLAGS
="$saved_CFLAGS"
6639 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
6649 # Check whether --with-mmalloc or --without-mmalloc was given.
6650 if test "${with_mmalloc+set}" = set; then
6651 withval
="$with_mmalloc"
6652 case "${withval}" in
6653 yes) want_mmalloc
=true
;;
6654 no
) want_mmalloc
=false
;;
6655 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
6661 if test x
$want_mmalloc = xtrue
; then
6662 cat >> confdefs.h
<<\EOF
6663 #define USE_MMALLOC 1
6666 cat >> confdefs.h
<<\EOF
6667 #define MMCHECK_FORCE 1
6670 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
6671 MMALLOC
='../mmalloc/libmmalloc.a'
6674 # Check whether --with-included-regex or --without-included-regex was given.
6675 if test "${with_included_regex+set}" = set; then
6676 withval
="$with_included_regex"
6677 case "${withval}" in
6678 yes) want_included_regex
=true
;;
6679 no
) want_included_regex
=false
;;
6680 *) { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
6683 want_included_regex
=true
6686 if test $want_included_regex = false
; then
6687 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
6688 echo "configure:6689: checking for GNU regex" >&5
6689 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
6690 echo $ac_n "(cached) $ac_c" 1>&6
6692 cat > conftest.
$ac_ext <<EOF
6693 #line 6694 "configure"
6694 #include "confdefs.h"
6695 #include <gnu-versions.h>
6696 #include <sys/types.h>
6699 #if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
6700 #error No valid GNU regex.
6705 if { (eval echo configure
:6706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6707 gdb_cv_have_gnu_regex
=yes
6709 echo "configure: failed program was:" >&5
6710 cat conftest.
$ac_ext >&5
6712 gdb_cv_have_gnu_regex
=no
6717 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
6718 if test $gdb_cv_have_gnu_regex = no
; then
6719 want_included_regex
=true
6723 if test x
${want_included_regex} = xtrue
; then
6725 cat >> confdefs.h
<<\EOF
6726 #define USE_INCLUDED_REGEX 1
6732 # In the Cygwin environment, we need some additional flags.
6733 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
6734 echo "configure:6735: checking for cygwin" >&5
6735 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
6736 echo $ac_n "(cached) $ac_c" 1>&6
6738 cat > conftest.
$ac_ext <<EOF
6739 #line 6740 "configure"
6740 #include "confdefs.h"
6742 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
6746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6747 egrep "lose" >/dev
/null
2>&1; then
6749 gdb_cv_os_cygwin
=yes
6758 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
6761 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
6763 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
6764 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
6769 if test x
$gdb_host = xgo32
; then
6772 if test x
$gdb_cv_os_cygwin = xyes
; then
6773 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
6776 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
6777 echo "configure:6778: checking for tgetent in -lncurses" >&5
6778 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
6779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6780 echo $ac_n "(cached) $ac_c" 1>&6
6782 ac_save_LIBS
="$LIBS"
6783 LIBS
="-lncurses $LIBS"
6784 cat > conftest.
$ac_ext <<EOF
6785 #line 6786 "configure"
6786 #include "confdefs.h"
6787 /* Override any gcc2 internal prototype to avoid an error. */
6788 /* We use char because int might match the return type of a gcc2
6789 builtin and then its argument prototype would still apply. */
6796 if { (eval echo configure
:6797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6798 eval "ac_cv_lib_$ac_lib_var=yes"
6800 echo "configure: failed program was:" >&5
6801 cat conftest.
$ac_ext >&5
6803 eval "ac_cv_lib_$ac_lib_var=no"
6806 LIBS
="$ac_save_LIBS"
6809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6810 echo "$ac_t""yes" 1>&6
6813 echo "$ac_t""no" 1>&6
6814 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
6815 echo "configure:6816: checking for tgetent in -lHcurses" >&5
6816 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
6817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6818 echo $ac_n "(cached) $ac_c" 1>&6
6820 ac_save_LIBS
="$LIBS"
6821 LIBS
="-lHcurses $LIBS"
6822 cat > conftest.
$ac_ext <<EOF
6823 #line 6824 "configure"
6824 #include "confdefs.h"
6825 /* Override any gcc2 internal prototype to avoid an error. */
6826 /* We use char because int might match the return type of a gcc2
6827 builtin and then its argument prototype would still apply. */
6834 if { (eval echo configure
:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6836 eval "ac_cv_lib_$ac_lib_var=yes"
6838 echo "configure: failed program was:" >&5
6839 cat conftest.
$ac_ext >&5
6841 eval "ac_cv_lib_$ac_lib_var=no"
6844 LIBS
="$ac_save_LIBS"
6847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6848 echo "$ac_t""yes" 1>&6
6851 echo "$ac_t""no" 1>&6
6852 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
6853 echo "configure:6854: checking for tgetent in -ltermlib" >&5
6854 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
6855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6856 echo $ac_n "(cached) $ac_c" 1>&6
6858 ac_save_LIBS
="$LIBS"
6859 LIBS
="-ltermlib $LIBS"
6860 cat > conftest.
$ac_ext <<EOF
6861 #line 6862 "configure"
6862 #include "confdefs.h"
6863 /* Override any gcc2 internal prototype to avoid an error. */
6864 /* We use char because int might match the return type of a gcc2
6865 builtin and then its argument prototype would still apply. */
6872 if { (eval echo configure
:6873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6874 eval "ac_cv_lib_$ac_lib_var=yes"
6876 echo "configure: failed program was:" >&5
6877 cat conftest.
$ac_ext >&5
6879 eval "ac_cv_lib_$ac_lib_var=no"
6882 LIBS
="$ac_save_LIBS"
6885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6886 echo "$ac_t""yes" 1>&6
6889 echo "$ac_t""no" 1>&6
6890 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
6891 echo "configure:6892: checking for tgetent in -ltermcap" >&5
6892 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
6893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6894 echo $ac_n "(cached) $ac_c" 1>&6
6896 ac_save_LIBS
="$LIBS"
6897 LIBS
="-ltermcap $LIBS"
6898 cat > conftest.
$ac_ext <<EOF
6899 #line 6900 "configure"
6900 #include "confdefs.h"
6901 /* Override any gcc2 internal prototype to avoid an error. */
6902 /* We use char because int might match the return type of a gcc2
6903 builtin and then its argument prototype would still apply. */
6910 if { (eval echo configure
:6911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6912 eval "ac_cv_lib_$ac_lib_var=yes"
6914 echo "configure: failed program was:" >&5
6915 cat conftest.
$ac_ext >&5
6917 eval "ac_cv_lib_$ac_lib_var=no"
6920 LIBS
="$ac_save_LIBS"
6923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6924 echo "$ac_t""yes" 1>&6
6927 echo "$ac_t""no" 1>&6
6928 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
6929 echo "configure:6930: checking for tgetent in -lcurses" >&5
6930 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
6931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6932 echo $ac_n "(cached) $ac_c" 1>&6
6934 ac_save_LIBS
="$LIBS"
6935 LIBS
="-lcurses $LIBS"
6936 cat > conftest.
$ac_ext <<EOF
6937 #line 6938 "configure"
6938 #include "confdefs.h"
6939 /* Override any gcc2 internal prototype to avoid an error. */
6940 /* We use char because int might match the return type of a gcc2
6941 builtin and then its argument prototype would still apply. */
6948 if { (eval echo configure
:6949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6950 eval "ac_cv_lib_$ac_lib_var=yes"
6952 echo "configure: failed program was:" >&5
6953 cat conftest.
$ac_ext >&5
6955 eval "ac_cv_lib_$ac_lib_var=no"
6958 LIBS
="$ac_save_LIBS"
6961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6962 echo "$ac_t""yes" 1>&6
6965 echo "$ac_t""no" 1>&6
6966 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
6967 echo "configure:6968: checking for tgetent in -lterminfo" >&5
6968 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
6969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6970 echo $ac_n "(cached) $ac_c" 1>&6
6972 ac_save_LIBS
="$LIBS"
6973 LIBS
="-lterminfo $LIBS"
6974 cat > conftest.
$ac_ext <<EOF
6975 #line 6976 "configure"
6976 #include "confdefs.h"
6977 /* Override any gcc2 internal prototype to avoid an error. */
6978 /* We use char because int might match the return type of a gcc2
6979 builtin and then its argument prototype would still apply. */
6986 if { (eval echo configure
:6987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6988 eval "ac_cv_lib_$ac_lib_var=yes"
6990 echo "configure: failed program was:" >&5
6991 cat conftest.
$ac_ext >&5
6993 eval "ac_cv_lib_$ac_lib_var=no"
6996 LIBS
="$ac_save_LIBS"
6999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7000 echo "$ac_t""yes" 1>&6
7003 echo "$ac_t""no" 1>&6
7017 if test "x$TERM_LIB" = x
7019 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
7025 # libreadline needs libuser32.a in a cygwin environment
7027 if test x
$gdb_cv_os_cygwin = xyes
; then
7028 WIN32LIBS
="-luser32"
7030 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
7036 LIBGUI
="../libgui/src/libgui.a"
7037 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
7041 # Check whether --with-cpu or --without-cpu was given.
7042 if test "${with_cpu+set}" = set; then
7045 powerpc-
* | powerpcle-
* )
7046 ## It would be nice to keep this table in sync with the one in
7048 case "${with_cpu}" in
7049 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
7051 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
7053 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
7054 ## These are all RS6000 variants, as far as GDB is concerned.
7064 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
7070 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
7073 cat >> confdefs.h
<<EOF
7074 #define TARGET_CPU_DEFAULT "${with_cpu}"
7082 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7083 if test "${enable_gdbtk+set}" = set; then
7084 enableval
="$enable_gdbtk"
7085 case "${enableval}" in
7089 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
7092 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
7100 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
7104 # Default is on for everything but go32 and Cygwin
7109 if test -d "${srcdir}/gdbtk" ; then
7125 if test "${enable_gdbtk}" = "yes"; then
7127 # Gdbtk must have an absolute path to srcdir in order to run
7128 # properly when not installed.
7136 # Ok, lets find the tcl configuration
7137 # First, look for one uninstalled.
7138 # the alternative search directory is invoked by --with-tclconfig
7141 if test x
"${no_tcl}" = x
; then
7142 # we reset no_tcl in case something fails here
7144 # Check whether --with-tclconfig or --without-tclconfig was given.
7145 if test "${with_tclconfig+set}" = set; then
7146 withval
="$with_tclconfig"
7147 with_tclconfig
=${withval}
7150 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
7151 echo "configure:7152: checking for Tcl configuration" >&5
7152 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
7153 echo $ac_n "(cached) $ac_c" 1>&6
7157 # First check to see if --with-tclconfig was specified.
7158 if test x
"${with_tclconfig}" != x
; then
7159 if test -f "${with_tclconfig}/tclConfig.sh" ; then
7160 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
7162 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
7166 # then check for a private Tcl installation
7167 if test x
"${ac_cv_c_tclconfig}" = x
; then
7170 `ls -dr ../tcl[7-9]* 2>/dev/null` \
7172 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
7174 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
7175 if test -f "$i/${configdir}/tclConfig.sh" ; then
7176 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
7181 # check in a few common install locations
7182 if test x
"${ac_cv_c_tclconfig}" = x
; then
7183 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7184 if test -f "$i/tclConfig.sh" ; then
7185 ac_cv_c_tclconfig
=`(cd $i; pwd)`
7190 # check in a few other private locations
7191 if test x
"${ac_cv_c_tclconfig}" = x
; then
7194 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
7195 if test -f "$i/${configdir}/tclConfig.sh" ; then
7196 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
7204 if test x
"${ac_cv_c_tclconfig}" = x
; then
7205 TCLCONFIG
="# no Tcl configs found"
7206 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
7209 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
7210 echo "$ac_t""found $TCLCONFIG" 1>&6
7214 if test -z "${no_tcl}"; then
7244 # Ok, lets find the tk configuration
7245 # First, look for one uninstalled.
7246 # the alternative search directory is invoked by --with-tkconfig
7249 if test x
"${no_tk}" = x
; then
7250 # we reset no_tk in case something fails here
7252 # Check whether --with-tkconfig or --without-tkconfig was given.
7253 if test "${with_tkconfig+set}" = set; then
7254 withval
="$with_tkconfig"
7255 with_tkconfig
=${withval}
7258 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
7259 echo "configure:7260: checking for Tk configuration" >&5
7260 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
7261 echo $ac_n "(cached) $ac_c" 1>&6
7265 # First check to see if --with-tkconfig was specified.
7266 if test x
"${with_tkconfig}" != x
; then
7267 if test -f "${with_tkconfig}/tkConfig.sh" ; then
7268 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
7270 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
7274 # then check for a private Tk library
7275 if test x
"${ac_cv_c_tkconfig}" = x
; then
7278 `ls -dr ../tk[4-9]* 2>/dev/null` \
7280 `ls -dr ../../tk[4-9]* 2>/dev/null` \
7282 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
7283 if test -f "$i/${configdir}/tkConfig.sh" ; then
7284 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
7289 # check in a few common install locations
7290 if test x
"${ac_cv_c_tkconfig}" = x
; then
7291 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7292 if test -f "$i/tkConfig.sh" ; then
7293 ac_cv_c_tkconfig
=`(cd $i; pwd)`
7298 # check in a few other private locations
7299 if test x
"${ac_cv_c_tkconfig}" = x
; then
7302 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
7303 if test -f "$i/${configdir}/tkConfig.sh" ; then
7304 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
7312 if test x
"${ac_cv_c_tkconfig}" = x
; then
7313 TKCONFIG
="# no Tk configs found"
7314 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
7317 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
7318 echo "$ac_t""found $TKCONFIG" 1>&6
7324 # now look for Tcl library stuff
7335 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
7337 # If $no_tk is nonempty, then we can't do Tk, and there is no
7338 # point to doing Tcl.
7339 if test -z "${no_tk}"; then
7341 if test -f "$TKCONFIG" ; then
7359 # Ok, lets find the tcl source trees so we can use the headers
7360 # Warning: transition of version 9 to 10 will break this algorithm
7361 # because 10 sorts before 9. We also look for just tcl. We have to
7362 # be careful that we don't match stuff like tclX by accident.
7363 # the alternative search directory is involked by --with-tclinclude
7367 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
7368 echo "configure:7369: checking for Tcl private headers. dir=${configdir}" >&5
7369 # Check whether --with-tclinclude or --without-tclinclude was given.
7370 if test "${with_tclinclude+set}" = set; then
7371 withval
="$with_tclinclude"
7372 with_tclinclude
=${withval}
7375 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
7376 echo $ac_n "(cached) $ac_c" 1>&6
7379 # first check to see if --with-tclinclude was specified
7380 if test x
"${with_tclinclude}" != x
; then
7381 if test -f ${with_tclinclude}/tclInt.h
; then
7382 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
7383 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
7384 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
7386 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
7390 # next check if it came with Tcl configuration file
7391 if test x
"${ac_cv_c_tclconfig}" = x
; then
7392 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
7393 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
7397 # next check in private source directory
7399 # since ls returns lowest version numbers first, reverse its output
7400 if test x
"${ac_cv_c_tclh}" = x
; then
7403 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
7404 ${srcdir}/..
/..
/tcl \
7405 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
7406 ${srcdir}/..
/..
/..
/tcl \
7407 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
7408 if test -f $i/generic
/tclInt.h
; then
7409 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
7414 # finally check in a few common install locations
7416 # since ls returns lowest version numbers first, reverse its output
7417 if test x
"${ac_cv_c_tclh}" = x
; then
7419 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
7420 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
7421 /usr
/local
/src
/tcl \
7422 /usr
/local
/lib
/tcl \
7423 ${prefix}/include
; do
7424 if test -f $i/generic
/tclInt.h
; then
7425 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
7430 # see if one is installed
7431 if test x
"${ac_cv_c_tclh}" = x
; then
7432 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
7433 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
7434 echo "configure:7435: checking for tclInt.h" >&5
7435 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7436 echo $ac_n "(cached) $ac_c" 1>&6
7438 cat > conftest.
$ac_ext <<EOF
7439 #line 7440 "configure"
7440 #include "confdefs.h"
7443 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7444 { (eval echo configure
:7445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7445 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7446 if test -z "$ac_err"; then
7448 eval "ac_cv_header_$ac_safe=yes"
7451 echo "configure: failed program was:" >&5
7452 cat conftest.
$ac_ext >&5
7454 eval "ac_cv_header_$ac_safe=no"
7458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7459 echo "$ac_t""yes" 1>&6
7460 ac_cv_c_tclh
=installed
7462 echo "$ac_t""no" 1>&6
7470 if test x
"${ac_cv_c_tclh}" = x
; then
7471 TCLHDIR
="# no Tcl private headers found"
7472 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
7474 if test x
"${ac_cv_c_tclh}" != x
; then
7476 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
7477 echo "$ac_t""is installed" 1>&6
7480 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
7481 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
7482 TCLHDIR
="-I${ac_cv_c_tclh}"
7490 # Ok, lets find the tk source trees so we can use the headers
7491 # If the directory (presumably symlink) named "tk" exists, use that one
7492 # in preference to any others. Same logic is used when choosing library
7493 # and again with Tcl. The search order is the best place to look first, then in
7494 # decreasing significance. The loop breaks if the trigger file is found.
7495 # Note the gross little conversion here of srcdir by cd'ing to the found
7496 # directory. This converts the path from a relative to an absolute, so
7497 # recursive cache variables for the path will work right. We check all
7498 # the possible paths in one loop rather than many seperate loops to speed
7500 # the alternative search directory is involked by --with-tkinclude
7503 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
7504 echo "configure:7505: checking for Tk private headers" >&5
7505 # Check whether --with-tkinclude or --without-tkinclude was given.
7506 if test "${with_tkinclude+set}" = set; then
7507 withval
="$with_tkinclude"
7508 with_tkinclude
=${withval}
7511 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6
7515 # first check to see if --with-tkinclude was specified
7516 if test x
"${with_tkinclude}" != x
; then
7517 if test -f ${with_tkinclude}/tk.h
; then
7518 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
7519 elif test -f ${with_tkinclude}/generic
/tk.h
; then
7520 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
7522 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
7526 # next check if it came with Tk configuration file
7527 if test x
"${ac_cv_c_tkconfig}" = x
; then
7528 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
7529 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
7533 # next check in private source directory
7535 # since ls returns lowest version numbers first, reverse its output
7536 if test x
"${ac_cv_c_tkh}" = x
; then
7539 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
7540 ${srcdir}/..
/..
/tk \
7541 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
7542 ${srcdir}/..
/..
/..
/tk \
7543 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
7544 if test -f $i/generic
/tk.h
; then
7545 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
7550 # finally check in a few common install locations
7552 # since ls returns lowest version numbers first, reverse its output
7553 if test x
"${ac_cv_c_tkh}" = x
; then
7555 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
7556 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
7559 ${prefix}/include
; do
7560 if test -f $i/generic
/tk.h
; then
7561 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
7566 # see if one is installed
7567 if test x
"${ac_cv_c_tkh}" = x
; then
7568 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
7569 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
7570 echo "configure:7571: checking for tk.h" >&5
7571 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7572 echo $ac_n "(cached) $ac_c" 1>&6
7574 cat > conftest.
$ac_ext <<EOF
7575 #line 7576 "configure"
7576 #include "confdefs.h"
7579 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7580 { (eval echo configure
:7581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7581 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7582 if test -z "$ac_err"; then
7584 eval "ac_cv_header_$ac_safe=yes"
7587 echo "configure: failed program was:" >&5
7588 cat conftest.
$ac_ext >&5
7590 eval "ac_cv_header_$ac_safe=no"
7594 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7595 echo "$ac_t""yes" 1>&6
7596 ac_cv_c_tkh
=installed
7598 echo "$ac_t""no" 1>&6
7606 if test x
"${ac_cv_c_tkh}" != x
; then
7608 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
7609 echo "$ac_t""is installed" 1>&6
7612 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
7613 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
7614 TKHDIR
="-I${ac_cv_c_tkh}"
7617 TKHDIR
="# no Tk directory found"
7618 echo "configure: warning: Can't find Tk private headers" 1>&2
7625 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7626 echo "configure:7627: checking for Itcl private headers. srcdir=${srcdir}" >&5
7627 if test x
"${ac_cv_c_itclh}" = x
; then
7628 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
7629 if test -f $i/generic
/itcl.h
; then
7630 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
7635 if test x
"${ac_cv_c_itclh}" = x
; then
7636 ITCLHDIR
="# no Itcl private headers found"
7637 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
7639 if test x
"${ac_cv_c_itclh}" != x
; then
7640 ITCLHDIR
="-I${ac_cv_c_itclh}"
7642 # should always be here
7643 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
7648 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7649 echo "configure:7650: checking for Itk private headers. srcdir=${srcdir}" >&5
7650 if test x
"${ac_cv_c_itkh}" = x
; then
7651 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
7652 if test -f $i/generic
/itk.h
; then
7653 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
7658 if test x
"${ac_cv_c_itkh}" = x
; then
7659 ITKHDIR
="# no Itk private headers found"
7660 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
7662 if test x
"${ac_cv_c_itkh}" != x
; then
7663 ITKHDIR
="-I${ac_cv_c_itkh}"
7665 # should always be here
7666 # ITKLIB="../itcl/itk/unix/libitk.a"
7671 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7672 echo "configure:7673: checking for Tix private headers. srcdir=${srcdir}" >&5
7673 if test x
"${ac_cv_c_tixh}" = x
; then
7674 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
7675 if test -f $i/generic
/tix.h
; then
7676 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
7681 if test x
"${ac_cv_c_tixh}" = x
; then
7682 TIXHDIR
="# no Tix private headers found"
7683 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
7685 if test x
"${ac_cv_c_tixh}" != x
; then
7686 TIXHDIR
="-I${ac_cv_c_tixh}"
7692 # now look for Tk library stuff
7703 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
7705 # now look for Itcl library stuff
7709 # Ok, lets find the itcl configuration
7710 # First, look for one uninstalled.
7711 # the alternative search directory is invoked by --with-itclconfig
7714 if test x
"${no_itcl}" = x
; then
7715 # we reset no_itcl in case something fails here
7717 # Check whether --with-itclconfig or --without-itclconfig was given.
7718 if test "${with_itclconfig+set}" = set; then
7719 withval
="$with_itclconfig"
7720 with_itclconfig
=${withval}
7723 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
7724 echo "configure:7725: checking for Itcl configuration" >&5
7725 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
7726 echo $ac_n "(cached) $ac_c" 1>&6
7730 # First check to see if --with-itclconfig was specified.
7731 if test x
"${with_itclconfig}" != x
; then
7732 if test -f "${with_itclconfig}/itclConfig.sh" ; then
7733 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
7735 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
7739 # then check for a private Itcl library
7740 if test x
"${ac_cv_c_itclconfig}" = x
; then
7743 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
7745 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
7747 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
7748 if test -f "$i/itclConfig.sh" ; then
7749 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7754 # check in a few common install locations
7755 if test x
"${ac_cv_c_itclconfig}" = x
; then
7756 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7757 if test -f "$i/itclConfig.sh" ; then
7758 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7763 # check in a few other private locations
7764 if test x
"${ac_cv_c_itclconfig}" = x
; then
7766 ${srcdir}/..
/itcl
/itcl \
7767 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
7768 if test -f "$i/itclConfig.sh" ; then
7769 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7777 if test x
"${ac_cv_c_itclconfig}" = x
; then
7778 ITCLCONFIG
="# no Itcl configs found"
7779 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
7782 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
7783 echo "$ac_t""found $ITCLCONFIG" 1>&6
7787 if test -z "${no_itcl}"; then
7789 if test -f "$ITCLCONFIG" ; then
7804 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
7805 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
7809 # now look for Itk library stuff
7812 # Ok, lets find the itk configuration
7813 # First, look for one uninstalled.
7814 # the alternative search directory is invoked by --with-itkconfig
7817 if test x
"${no_itk}" = x
; then
7818 # we reset no_itk in case something fails here
7820 # Check whether --with-itkconfig or --without-itkconfig was given.
7821 if test "${with_itkconfig+set}" = set; then
7822 withval
="$with_itkconfig"
7823 with_itkconfig
=${withval}
7826 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
7827 echo "configure:7828: checking for Itk configuration" >&5
7828 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
7829 echo $ac_n "(cached) $ac_c" 1>&6
7833 # First check to see if --with-itkconfig was specified.
7834 if test x
"${with_itkconfig}" != x
; then
7835 if test -f "${with_itkconfig}/itkConfig.sh" ; then
7836 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
7838 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
7842 # then check for a private Itk library
7843 if test x
"${ac_cv_c_itkconfig}" = x
; then
7846 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
7848 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
7850 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
7851 if test -f "$i/itkConfig.sh" ; then
7852 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7857 # check in a few common install locations
7858 if test x
"${ac_cv_c_itkconfig}" = x
; then
7859 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7860 if test -f "$i/itkConfig.sh" ; then
7861 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7866 # check in a few other private locations
7867 if test x
"${ac_cv_c_itkconfig}" = x
; then
7869 ${srcdir}/..
/itcl
/itk \
7870 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
7871 if test -f "$i/itkConfig.sh" ; then
7872 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7880 if test x
"${ac_cv_c_itkconfig}" = x
; then
7881 ITKCONFIG
="# no Itk configs found"
7882 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
7885 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
7886 echo "$ac_t""found $ITKCONFIG" 1>&6
7891 if test -z "${no_itcl}"; then
7893 if test -f "$ITKCONFIG" ; then
7908 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
7909 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
7912 # now look for Tix library stuff
7915 # Ok, lets find the tix configuration
7916 # First, look for one uninstalled.
7917 # the alternative search directory is invoked by --with-itkconfig
7920 if test x
"${no_tix}" = x
; then
7921 # we reset no_tix in case something fails here
7923 # Check whether --with-tixconfig or --without-tixconfig was given.
7924 if test "${with_tixconfig+set}" = set; then
7925 withval
="$with_tixconfig"
7926 with_tixconfig
=${withval}
7929 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
7930 echo "configure:7931: checking for Tix configuration" >&5
7931 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
7932 echo $ac_n "(cached) $ac_c" 1>&6
7936 # First check to see if --with-tixconfig was specified.
7937 if test x
"${with_tixconfig}" != x
; then
7938 if test -f "${with_tixconfig}/tixConfig.sh" ; then
7939 ac_cv_c_tixconfig
=`(cd ${with_tixconfig}; pwd)`
7941 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
7945 # then check for a private Tix library
7946 if test x
"${ac_cv_c_tixconfig}" = x
; then
7949 `ls -dr ../tix 2>/dev/null` \
7951 `ls -dr ../../tix 2>/dev/null` \
7953 `ls -dr ../../../tix 2>/dev/null` ; do
7954 echo "**** Looking at $i - with ${configdir}"
7955 if test -f "$i/tixConfig.sh" ; then
7956 ac_cv_c_tixconfig
=`(cd $i; pwd)`
7961 # check in a few common install locations
7962 if test x
"${ac_cv_c_tixconfig}" = x
; then
7963 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7964 echo "**** Looking at $i"
7965 if test -f "$i/tixConfig.sh" ; then
7966 ac_cv_c_tixconfig
=`(cd $i; pwd)`
7971 # check in a few other private locations
7972 echo "**** Other private locations"
7973 if test x
"${ac_cv_c_tixconfig}" = x
; then
7976 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
7977 echo "**** Looking at $i - with ${configdir}"
7978 if test -f "$i/${configdir}/tixConfig.sh" ; then
7979 ac_cv_c_tixconfig
=`(cd $i/${configdir}; pwd)`
7987 if test x
"${ac_cv_c_tixconfig}" = x
; then
7988 TIXCONFIG
="# no Tix configs found"
7989 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
7992 TIXCONFIG
=${ac_cv_c_tixconfig}/tixConfig.sh
7993 echo "$ac_t""found $TIXCONFIG" 1>&6
7998 if test -z "${no_tix}"; then
8000 if test -f "$TIXCONFIG" ; then
8011 TIXLIB
="${TIX_BUILD_LIB_SPEC}"
8012 TIX_DEPS
="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
8015 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
8016 # Tcl/Tk 8.1 require -fwritable strings. I don't
8017 # know whether 8.2 will or not, but I bet it will.
8018 # I don't have to worry about 7.x since we don't support it.
8020 if test "$GCC" = "yes"; then
8021 if test "$TCL_VERSION" != "8.0" ; then
8022 GDBTK_CFLAGS
="-fwritable-strings"
8026 # Include some libraries that Tcl and Tk want.
8027 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
8028 # Yes, the ordering seems wrong here. But it isn't.
8029 # TK_LIBS is the list of libraries that need to be linked
8030 # after Tcl/Tk. Note that this isn't put into LIBS. If it
8031 # were in LIBS then any link tests after this point would
8032 # try to include things like `$(LIBGUI)', which wouldn't work.
8033 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
8035 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
8036 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
8037 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
8038 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
8039 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
8040 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
8041 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
8042 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
8044 if test x
$gdb_cv_os_cygwin = xyes
; then
8045 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
8046 WIN32LDAPP
="-Wl,--subsystem,console"
8047 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
8068 # If we find X, set shell vars x_includes and x_libraries to the
8069 # paths, otherwise set no_x=yes.
8070 # Uses ac_ vars as temps to allow command line to override cache and checks.
8071 # --without-x overrides everything else, but does not touch the cache.
8072 echo $ac_n "checking for X""... $ac_c" 1>&6
8073 echo "configure:8074: checking for X" >&5
8075 # Check whether --with-x or --without-x was given.
8076 if test "${with_x+set}" = set; then
8081 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8082 if test "x$with_x" = xno
; then
8083 # The user explicitly disabled X.
8086 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8087 # Both variables are already set.
8090 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
8091 echo $ac_n "(cached) $ac_c" 1>&6
8093 # One or both of the vars are not set, and there is no cached value.
8094 ac_x_includes
=NO ac_x_libraries
=NO
8096 if mkdir conftestdir
; then
8098 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8099 cat > Imakefile
<<'EOF'
8101 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8103 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8104 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8105 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8106 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8107 for ac_extension
in a so sl
; do
8108 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8109 test -f $ac_im_libdir/libX11.
$ac_extension; then
8110 ac_im_usrlibdir
=$ac_im_libdir; break
8113 # Screen out bogus values from the imake configuration. They are
8114 # bogus both because they are the default anyway, and because
8115 # using them would break gcc on systems where it needs fixed includes.
8116 case "$ac_im_incroot" in
8118 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
8120 case "$ac_im_usrlibdir" in
8122 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
8129 if test "$ac_x_includes" = NO
; then
8130 # Guess where to find include files, by looking for this one X11 .h file.
8131 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
8133 # First, try using that file with no special directory specified.
8134 cat > conftest.
$ac_ext <<EOF
8135 #line 8136 "configure"
8136 #include "confdefs.h"
8137 #include <$x_direct_test_include>
8139 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8140 { (eval echo configure
:8141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8141 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8142 if test -z "$ac_err"; then
8144 # We can compile using X headers with no special include directory.
8148 echo "configure: failed program was:" >&5
8149 cat conftest.
$ac_ext >&5
8151 # Look for the header file in a standard set of common directories.
8152 # Check X11 before X11Rn because it is often a symlink to the current release.
8155 /usr
/X11R
6/include \
8156 /usr
/X11R
5/include \
8157 /usr
/X11R
4/include \
8160 /usr
/include
/X11R6 \
8161 /usr
/include
/X11R5 \
8162 /usr
/include
/X11R4 \
8164 /usr
/local
/X11
/include \
8165 /usr
/local
/X11R
6/include \
8166 /usr
/local
/X11R
5/include \
8167 /usr
/local
/X11R
4/include \
8169 /usr
/local
/include
/X11 \
8170 /usr
/local
/include
/X11R6 \
8171 /usr
/local
/include
/X11R5 \
8172 /usr
/local
/include
/X11R4 \
8176 /usr
/XFree86
/include
/X11 \
8179 /usr
/local
/include \
8180 /usr
/unsupported
/include \
8181 /usr
/athena
/include \
8182 /usr
/local
/x11r
5/include \
8183 /usr
/lpp
/Xamples
/include \
8185 /usr
/openwin
/include \
8186 /usr
/openwin
/share
/include \
8189 if test -r "$ac_dir/$x_direct_test_include"; then
8190 ac_x_includes
=$ac_dir
8196 fi # $ac_x_includes = NO
8198 if test "$ac_x_libraries" = NO
; then
8199 # Check for the libraries.
8201 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
8202 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
8204 # See if we find them without any special options.
8205 # Don't add to $LIBS permanently.
8206 ac_save_LIBS
="$LIBS"
8207 LIBS
="-l$x_direct_test_library $LIBS"
8208 cat > conftest.
$ac_ext <<EOF
8209 #line 8210 "configure"
8210 #include "confdefs.h"
8213 ${x_direct_test_function}()
8216 if { (eval echo configure
:8217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8218 LIBS
="$ac_save_LIBS"
8219 # We can link X programs with no special library path.
8222 echo "configure: failed program was:" >&5
8223 cat conftest.
$ac_ext >&5
8225 LIBS
="$ac_save_LIBS"
8226 # First see if replacing the include by lib works.
8227 # Check X11 before X11Rn because it is often a symlink to the current release.
8228 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
8239 /usr
/local
/X11
/lib \
8240 /usr
/local
/X11R
6/lib \
8241 /usr
/local
/X11R
5/lib \
8242 /usr
/local
/X11R
4/lib \
8244 /usr
/local
/lib
/X11 \
8245 /usr
/local
/lib
/X11R6 \
8246 /usr
/local
/lib
/X11R5 \
8247 /usr
/local
/lib
/X11R4 \
8251 /usr
/XFree86
/lib
/X11 \
8255 /usr
/unsupported
/lib \
8257 /usr
/local
/x11r
5/lib \
8258 /usr
/lpp
/Xamples
/lib \
8262 /usr
/openwin
/share
/lib \
8265 for ac_extension
in a so sl
; do
8266 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
8267 ac_x_libraries
=$ac_dir
8274 fi # $ac_x_libraries = NO
8276 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
8277 # Didn't find X anywhere. Cache the known absence of X.
8278 ac_cv_have_x
="have_x=no"
8280 # Record where we found X for the cache.
8281 ac_cv_have_x
="have_x=yes \
8282 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8286 eval "$ac_cv_have_x"
8289 if test "$have_x" != yes; then
8290 echo "$ac_t""$have_x" 1>&6
8293 # If each of the values was on the command line, it overrides each guess.
8294 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8295 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8296 # Update the cache value to reflect the command line values.
8297 ac_cv_have_x
="have_x=yes \
8298 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8299 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8304 # Unlike the sim directory, whether a simulator is linked is controlled by
8305 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
8306 # This code just checks for a few cases where we'd like to ignore those
8307 # definitions, even when they're present in the '.mt' file. These cases
8308 # are when --disable-sim is specified, or if the simulator directory is
8309 # not part of the source tree.
8311 # Check whether --enable-sim or --disable-sim was given.
8312 if test "${enable_sim+set}" = set; then
8313 enableval
="$enable_sim"
8314 echo "enable_sim = $enable_sim";
8315 echo "enableval = ${enableval}";
8316 case "${enableval}" in
8317 yes) ignore_sim
=false
;;
8318 no
) ignore_sim
=true
;;
8319 *) ignore_sim
=false
;;
8326 if test ! -d "${srcdir}/../sim"; then
8330 if test "${ignore_sim}" = "true"; then
8332 IGNORE_SIM_OBS
="SIM_OBS="
8336 cat >> confdefs.h
<<\EOF
8356 # Begin stuff to support --enable-shared
8357 # Check whether --enable-shared or --disable-shared was given.
8358 if test "${enable_shared+set}" = set; then
8359 enableval
="$enable_shared"
8360 case "${enableval}" in
8369 # If we have shared libraries, try to set rpath reasonably.
8370 if test "${shared}" = "true"; then
8373 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
8375 *-*-irix5* |
*-*-irix6*)
8376 HLDFLAGS
='-Wl,-rpath,$(libdir)'
8380 *-*-linux* |
*-pc-linux-gnu*)
8381 HLDFLAGS
='-Wl,-rpath,$(libdir)'
8384 HLDFLAGS
='-R $(libdir)'
8387 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;'
8392 # On SunOS, if the linker supports the -rpath option, use it to
8393 # prevent ../bfd and ../opcodes from being included in the run time
8397 echo 'main () { }' > conftest.c
8398 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
8399 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
8401 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
8403 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
8405 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
8407 elif test "${shared}" = "true"; then
8408 HLDFLAGS
='-Wl,-rpath=$(libdir)'
8410 HLDFLAGS
='-Wl,-rpath='
8412 rm -f conftest.t conftest.c conftest
8417 # End stuff to support --enable-shared
8419 # target_subdir is used by the testsuite to find the target libraries.
8421 if test "${host}" != "${target}"; then
8422 target_subdir
="${target_alias}/"
8427 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
8428 if test ! -f ${host_makefile_frag}; then
8429 { echo "configure: error: "*** Gdb does not support
host ${host}"" 1>&2; exit 1; }
8431 frags
="$frags $host_makefile_frag"
8433 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
8434 if test ! -f ${target_makefile_frag}; then
8435 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
8437 frags
="$frags $target_makefile_frag"
8444 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8445 ' ${host_makefile_frag}`
8447 targetfile
=`sed -n '
8448 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8449 ' ${target_makefile_frag}`
8451 GDB_MULTI_ARCH
=`sed -n '
8452 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
8453 ' ${target_makefile_frag}`
8455 # these really aren't orthogonal true/false values of the same condition,
8456 # but shells are slow enough that I like to reuse the test conditions
8458 if test "${target}" = "${host}"; then
8459 nativefile
=`sed -n '
8460 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8461 ' ${host_makefile_frag}`
8463 # GDBserver is only useful in a "native" environment
8464 # configdirs=`echo $configdirs | sed 's/gdbserver//'`
8468 # New targets should just set gdb_multi_arch=yes in configure.tgt.
8469 # Old targets being converted can either do that or set GDB_MULTI_ARCH
8470 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
8471 # will be the default.
8472 if test x
"${GDB_MULTI_ARCH}" = x
; then
8473 case "${gdb_multi_arch}" in
8474 yes ) GDB_MULTI_ARCH
=GDB_MULTI_ARCH_PURE
;;
8475 no
) GDB_MULTI_ARCH
=0 ;;
8476 0|
1|
2 ) GDB_MULTI_ARCH
=${gdb_multi_arch} ;;
8479 if test x
"${GDB_MULTI_ARCH}" != x
; then
8480 cat >> confdefs.h
<<EOF
8481 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
8485 # Warn the user when they use an old practice
8486 case "${GDB_MULTI_ARCH}" in
8488 0 | GDB_MULTI_ARCH_PARTIAL |
1 | GDB_MULTI_ARCH_TM |
2 )
8489 echo "configure: warning: "GDB
: Target is not pure multi-arch
"" 1>&2 ;;
8490 GDB_MULTI_ARCH_PURE
)
8491 if test x
"${targetfile}" != x
; then
8492 echo "configure: warning: "GDB
: Ignoring TM_FILE
in ${target_makefile_frag}"" 1>&2
8495 *) { echo "configure: error: "GDB
: Unknown GDB_MULTI_ARCH value
${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
8499 SUBDIRS
="doc testsuite nlm"
8500 if test "${enable_multi_ice}" = "yes"; then
8501 SUBDIRS
="${SUBDIRS} multi-ice"
8506 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
8507 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
8515 if test "${hostfile}" != ""; then
8517 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
8518 files
="${files} ${GDB_XM_FILE}"
8519 links
="${links} xm.h"
8520 cat >> confdefs.h
<<EOF
8521 #define GDB_XM_FILE ${GDB_XM_FILE}
8529 if test "${targetfile}" != ""; then
8531 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
8532 files
="${files} ${GDB_TM_FILE}"
8533 links
="${links} tm.h"
8534 cat >> confdefs.h
<<EOF
8535 #define GDB_TM_FILE ${GDB_TM_FILE}
8543 if test "${nativefile}" != ""; then
8545 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
8546 files
="${files} ${GDB_NM_FILE}"
8547 links
="${links} nm.h"
8548 cat >> confdefs.h
<<EOF
8549 #define GDB_NM_FILE ${GDB_NM_FILE}
8555 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8556 echo "configure:8557: checking whether ln -s works" >&5
8557 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8558 echo $ac_n "(cached) $ac_c" 1>&6
8561 if ln -s X conftestdata
2>/dev
/null
8564 ac_cv_prog_LN_S
="ln -s"
8569 LN_S
="$ac_cv_prog_LN_S"
8570 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8571 echo "$ac_t""yes" 1>&6
8573 echo "$ac_t""no" 1>&6
8579 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8580 echo "configure:8581: checking for Cygwin environment" >&5
8581 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
8582 echo $ac_n "(cached) $ac_c" 1>&6
8584 cat > conftest.
$ac_ext <<EOF
8585 #line 8586 "configure"
8586 #include "confdefs.h"
8591 #define __CYGWIN__ __CYGWIN32__
8596 if { (eval echo configure
:8597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8600 echo "configure: failed program was:" >&5
8601 cat conftest.
$ac_ext >&5
8609 echo "$ac_t""$ac_cv_cygwin" 1>&6
8611 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
8612 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8613 echo "configure:8614: checking for mingw32 environment" >&5
8614 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
8615 echo $ac_n "(cached) $ac_c" 1>&6
8617 cat > conftest.
$ac_ext <<EOF
8618 #line 8619 "configure"
8619 #include "confdefs.h"
8625 if { (eval echo configure
:8626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8629 echo "configure: failed program was:" >&5
8630 cat conftest.
$ac_ext >&5
8638 echo "$ac_t""$ac_cv_mingw32" 1>&6
8640 test "$ac_cv_mingw32" = yes && MINGW32
=yes
8643 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8644 echo "configure:8645: checking for executable suffix" >&5
8645 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
8646 echo $ac_n "(cached) $ac_c" 1>&6
8648 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
8652 echo 'int main () { return 0; }' > conftest.
$ac_ext
8654 if { (eval echo configure
:8655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8655 for file in conftest.
*; do
8657 *.c |
*.o |
*.obj
) ;;
8658 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
8662 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8665 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
8670 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
8671 echo "$ac_t""${ac_cv_exeext}" 1>&6
8675 subdirs
="$configdirs"
8678 cat > confcache
<<\EOF
8679 # This file is a shell script that caches the results of configure
8680 # tests run on this system so they can be shared between configure
8681 # scripts and configure runs. It is not useful on other systems.
8682 # If it contains results you don't want to keep, you may remove or edit it.
8684 # By default, configure uses ./config.cache as the cache file,
8685 # creating it if it does not exist already. You can give configure
8686 # the --cache-file=FILE option to use a different cache file; that is
8687 # what configure does when it calls configure scripts in
8688 # subdirectories, so they share the cache.
8689 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8690 # config.status only pays attention to the cache file if you give it the
8691 # --recheck option to rerun configure.
8694 # The following way of writing the cache mishandles newlines in values,
8695 # but we know of no workaround that is simple, portable, and efficient.
8696 # So, don't put newlines in cache variables' values.
8697 # Ultrix sh set writes to stderr and can't be redirected directly,
8698 # and sets the high bit in the cache file unless we assign to the vars.
8700 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8702 # `set' does not quote correctly, so add quotes (double-quote substitution
8703 # turns \\\\ into \\, and sed turns \\ into \).
8705 -e "s/'/'\\\\''/g" \
8706 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8709 # `set' quotes correctly as required by POSIX, so do not add quotes.
8710 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8713 if cmp -s $cache_file confcache
; then
8716 if test -w $cache_file; then
8717 echo "updating cache $cache_file"
8718 cat confcache
> $cache_file
8720 echo "not updating unwritable cache $cache_file"
8725 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8727 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8728 # Let make expand exec_prefix.
8729 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8731 # Any assignment to VPATH causes Sun make to only execute
8732 # the first set of double-colon rules, so remove it if not needed.
8733 # If there is a colon in the path, we need to keep it.
8734 if test "x$srcdir" = x.
; then
8735 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8738 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8740 DEFS
=-DHAVE_CONFIG_H
8742 # Without the "./", some shells look in PATH for config.status.
8743 : ${CONFIG_STATUS=./config.status}
8745 echo creating
$CONFIG_STATUS
8746 rm -f $CONFIG_STATUS
8747 cat > $CONFIG_STATUS <<EOF
8749 # Generated automatically by configure.
8750 # Run this file to recreate the current configuration.
8751 # This directory was configured as follows,
8752 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8754 # $0 $ac_configure_args
8756 # Compiler output produced by configure, useful for debugging
8757 # configure, is in ./config.log if it exists.
8759 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8762 case "\$ac_option" in
8763 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8764 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8765 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8766 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8767 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8769 -help | --help | --hel | --he | --h)
8770 echo "\$ac_cs_usage"; exit 0 ;;
8771 *) echo "\$ac_cs_usage"; exit 1 ;;
8775 ac_given_srcdir=$srcdir
8776 ac_given_INSTALL="$INSTALL"
8778 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8780 cat >> $CONFIG_STATUS <<EOF
8782 # Protect against being on the right side of a sed subst in config.status.
8783 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8784 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8788 s%@CFLAGS@%$CFLAGS%g
8789 s%@CPPFLAGS@%$CPPFLAGS%g
8790 s%@CXXFLAGS@%$CXXFLAGS%g
8791 s%@FFLAGS@%$FFLAGS%g
8793 s%@LDFLAGS@%$LDFLAGS%g
8795 s%@exec_prefix@%$exec_prefix%g
8796 s%@prefix@%$prefix%g
8797 s%@program_transform_name@%$program_transform_name%g
8798 s%@bindir@%$bindir%g
8799 s%@sbindir@%$sbindir%g
8800 s%@libexecdir@%$libexecdir%g
8801 s%@datadir@%$datadir%g
8802 s%@sysconfdir@%$sysconfdir%g
8803 s%@sharedstatedir@%$sharedstatedir%g
8804 s%@localstatedir@%$localstatedir%g
8805 s%@libdir@%$libdir%g
8806 s%@includedir@%$includedir%g
8807 s%@oldincludedir@%$oldincludedir%g
8808 s%@infodir@%$infodir%g
8809 s%@mandir@%$mandir%g
8810 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8811 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8816 s%@host_alias@%$host_alias%g
8817 s%@host_cpu@%$host_cpu%g
8818 s%@host_vendor@%$host_vendor%g
8819 s%@host_os@%$host_os%g
8820 s%@target@%$target%g
8821 s%@target_alias@%$target_alias%g
8822 s%@target_cpu@%$target_cpu%g
8823 s%@target_vendor@%$target_vendor%g
8824 s%@target_os@%$target_os%g
8826 s%@build_alias@%$build_alias%g
8827 s%@build_cpu@%$build_cpu%g
8828 s%@build_vendor@%$build_vendor%g
8829 s%@build_os@%$build_os%g
8830 s%@SET_MAKE@%$SET_MAKE%g
8831 s%@RANLIB@%$RANLIB%g
8832 s%@ALLOCA@%$ALLOCA%g
8833 s%@USE_NLS@%$USE_NLS%g
8834 s%@MSGFMT@%$MSGFMT%g
8835 s%@GMSGFMT@%$GMSGFMT%g
8836 s%@XGETTEXT@%$XGETTEXT%g
8837 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8838 s%@CATALOGS@%$CATALOGS%g
8839 s%@CATOBJEXT@%$CATOBJEXT%g
8840 s%@DATADIRNAME@%$DATADIRNAME%g
8841 s%@GMOFILES@%$GMOFILES%g
8842 s%@INSTOBJEXT@%$INSTOBJEXT%g
8843 s%@INTLDEPS@%$INTLDEPS%g
8844 s%@INTLLIBS@%$INTLLIBS%g
8845 s%@INTLOBJS@%$INTLOBJS%g
8846 s%@POFILES@%$POFILES%g
8848 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8850 s%@GT_YES@%$GT_YES%g
8851 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8854 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8855 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8856 s%@INSTALL_DATA@%$INSTALL_DATA%g
8858 s%@DLLTOOL@%$DLLTOOL%g
8859 s%@WINDRES@%$WINDRES%g
8862 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
8863 s%@UIOUT_CFLAGS@%$UIOUT_CFLAGS%g
8864 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
8865 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
8866 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
8867 s%@MMALLOC@%$MMALLOC%g
8869 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
8870 s%@TERM_LIB@%$TERM_LIB%g
8871 s%@WIN32LIBS@%$WIN32LIBS%g
8872 s%@LIBGUI@%$LIBGUI%g
8873 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
8874 s%@WIN32LDAPP@%$WIN32LDAPP%g
8875 s%@TCL_VERSION@%$TCL_VERSION%g
8876 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
8877 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
8878 s%@TCL_CC@%$TCL_CC%g
8879 s%@TCL_DEFS@%$TCL_DEFS%g
8880 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
8881 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
8882 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
8883 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
8884 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
8885 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
8886 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
8887 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
8888 s%@TCL_RANLIB@%$TCL_RANLIB%g
8889 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
8890 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
8891 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
8892 s%@TK_VERSION@%$TK_VERSION%g
8893 s%@TK_DEFS@%$TK_DEFS%g
8894 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
8895 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
8896 s%@TK_XLIBSW@%$TK_XLIBSW%g
8897 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
8898 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
8899 s%@TCLHDIR@%$TCLHDIR%g
8900 s%@TKHDIR@%$TKHDIR%g
8901 s%@ITCLHDIR@%$ITCLHDIR%g
8902 s%@ITKHDIR@%$ITKHDIR%g
8903 s%@TIXHDIR@%$TIXHDIR%g
8904 s%@ITCL_VERSION@%$ITCL_VERSION%g
8905 s%@ITCL_DEFS@%$ITCL_DEFS%g
8906 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
8907 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
8908 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
8909 s%@ITK_VERSION@%$ITK_VERSION%g
8910 s%@ITK_DEFS@%$ITK_DEFS%g
8911 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
8912 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
8913 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
8914 s%@TIX_VERSION@%$TIX_VERSION%g
8915 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
8916 s%@X_CFLAGS@%$X_CFLAGS%g
8917 s%@X_LDFLAGS@%$X_LDFLAGS%g
8918 s%@X_LIBS@%$X_LIBS%g
8919 s%@TCL_DEPS@%$TCL_DEPS%g
8920 s%@TK_DEPS@%$TK_DEPS%g
8921 s%@ITCLLIB@%$ITCLLIB%g
8922 s%@ITCL_DEPS@%$ITCL_DEPS%g
8923 s%@ITKLIB@%$ITKLIB%g
8924 s%@ITK_DEPS@%$ITK_DEPS%g
8925 s%@TIXLIB@%$TIXLIB%g
8926 s%@TIX_DEPS@%$TIX_DEPS%g
8927 s%@GDBTKLIBS@%$GDBTKLIBS%g
8928 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
8929 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
8930 s%@IGNORE_SIM@%$IGNORE_SIM%g
8931 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
8932 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
8933 s%@CONFIG_OBS@%$CONFIG_OBS%g
8934 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
8935 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
8936 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
8937 s%@CONFIG_INITS@%$CONFIG_INITS%g
8938 s%@CONFIG_ALL@%$CONFIG_ALL%g
8939 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
8940 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
8941 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
8942 s%@HLDFLAGS@%$HLDFLAGS%g
8943 s%@HLDENV@%$HLDENV%g
8944 s%@target_subdir@%$target_subdir%g
8945 /@host_makefile_frag@/r $host_makefile_frag
8946 s%@host_makefile_frag@%%g
8947 /@target_makefile_frag@/r $target_makefile_frag
8948 s%@target_makefile_frag@%%g
8950 s%@SUBDIRS@%$SUBDIRS%g
8955 s%@EXEEXT@%$EXEEXT%g
8956 s%@subdirs@%$subdirs%g
8961 cat >> $CONFIG_STATUS <<\EOF
8963 # Split the substitutions into bite-sized pieces for seds with
8964 # small command number limits, like on Digital OSF/1 and HP-UX.
8965 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8966 ac_file
=1 # Number of current file.
8967 ac_beg
=1 # First line for current file.
8968 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8971 while $ac_more_lines; do
8972 if test $ac_beg -gt 1; then
8973 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8975 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8977 if test ! -s conftest.s
$ac_file; then
8979 rm -f conftest.s
$ac_file
8981 if test -z "$ac_sed_cmds"; then
8982 ac_sed_cmds
="sed -f conftest.s$ac_file"
8984 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8986 ac_file
=`expr $ac_file + 1`
8988 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8991 if test -z "$ac_sed_cmds"; then
8996 cat >> $CONFIG_STATUS <<EOF
8998 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
9000 cat >> $CONFIG_STATUS <<\EOF
9001 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9004 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9005 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9006 *) ac_file_in
="${ac_file}.in" ;;
9009 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9011 # Remove last slash and all that follows it. Not all systems have dirname.
9012 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9013 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9014 # The file is in a subdirectory.
9015 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9016 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9017 # A "../" for each directory in $ac_dir_suffix.
9018 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9020 ac_dir_suffix
= ac_dots
=
9023 case "$ac_given_srcdir" in
9025 if test -z "$ac_dots"; then top_srcdir
=.
9026 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9027 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9029 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9030 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9033 case "$ac_given_INSTALL" in
9034 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
9035 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
9038 echo creating
"$ac_file"
9040 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9042 *Makefile
*) ac_comsub
="1i\\
9043 # $configure_input" ;;
9047 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9049 s%@configure_input@%$configure_input%g
9050 s%@srcdir@%$srcdir%g
9051 s%@top_srcdir@%$top_srcdir%g
9052 s%@INSTALL@%$INSTALL%g
9053 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9057 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9058 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9060 # ac_d sets the value in "#define NAME VALUE" lines.
9061 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9062 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9065 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9066 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9067 ac_uB
='\([ ]\)%\1#\2define\3'
9070 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9071 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9072 ac_eB
='$%\1#\2define\3'
9076 if test "${CONFIG_HEADERS+set}" != set; then
9078 cat >> $CONFIG_STATUS <<EOF
9079 CONFIG_HEADERS="config.h:config.in"
9081 cat >> $CONFIG_STATUS <<\EOF
9083 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9084 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9086 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9087 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9088 *) ac_file_in
="${ac_file}.in" ;;
9091 echo creating
$ac_file
9093 rm -f conftest.frag conftest.
in conftest.out
9094 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9095 cat $ac_file_inputs > conftest.
in
9099 # Transform confdefs.h into a sed script conftest.vals that substitutes
9100 # the proper values into config.h.in to produce config.h. And first:
9101 # Protect against being on the right side of a sed subst in config.status.
9102 # Protect against being in an unquoted here document in config.status.
9104 cat > conftest.hdr
<<\EOF
9107 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9111 sed -n -f conftest.hdr confdefs.h > conftest.vals
9114 # This sed command replaces #undef with comments. This is necessary, for
9115 # example, in the case of _POSIX_SOURCE, which is predefined and required
9116 # on some systems where configure will not decide to define it.
9117 cat >> conftest.vals <<\EOF
9118 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9121 # Break up conftest.vals because some shells have a limit on
9122 # the size of here documents, and old seds have small limits too.
9127 ac_lines=`grep -c . conftest.vals
`
9128 # grep -c gives empty output for an empty file on some AIX systems.
9129 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9130 # Write a limited-size here document to conftest.frag.
9131 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9132 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9134 sed -f conftest.frag conftest.in > conftest.out
9136 mv conftest.out conftest.in
9138 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9140 mv conftest.tail conftest.vals
9144 cat >> $CONFIG_STATUS <<\EOF
9145 rm -f conftest.frag conftest.h
9146 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9147 cat conftest.in >> conftest.h
9149 if cmp -s $ac_file conftest.h 2>/dev/null; then
9150 echo "$ac_file is unchanged"
9153 # Remove last slash and all that follows it. Not all systems have dirname.
9154 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9155 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9156 # The file is in a subdirectory.
9157 test ! -d "$ac_dir" && mkdir "$ac_dir"
9160 mv conftest.h $ac_file
9166 cat >> $CONFIG_STATUS <<EOF
9171 cat >> $CONFIG_STATUS <<\EOF
9172 srcdir=$ac_given_srcdir
9173 while test -n "$ac_sources"; do
9174 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9175 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9177 echo "linking $srcdir/$ac_source to $ac_dest"
9179 if test ! -r $srcdir/$ac_source; then
9180 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9184 # Make relative symlinks.
9185 # Remove last slash and all that follows it. Not all systems have dirname.
9186 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9187 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9188 # The dest file is in a subdirectory.
9189 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9190 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9191 # A "../" for each directory in $ac_dest_dir_suffix.
9192 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9194 ac_dest_dir_suffix= ac_dots=
9198 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9199 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9202 # Make a symlink if possible; otherwise try a hard link.
9203 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9204 ln $srcdir/$ac_source $ac_dest; then :
9206 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9210 cat >> $CONFIG_STATUS <<EOF
9212 gdb_host_cpu=$gdb_host_cpu
9213 gdb_target_cpu=$gdb_target_cpu
9214 nativefile=$nativefile
9217 cat >> $CONFIG_STATUS <<\EOF
9219 if test "${nativefile}" = ""; then
9221 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
9222 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
9224 mv -f Makefile.tem Makefile
9227 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
9228 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
9229 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
9230 mv -f Makefile.tmp Makefile
9233 case x$CONFIG_HEADERS in
9234 xconfig.h:config.in)
9240 chmod +x $CONFIG_STATUS
9241 rm -fr confdefs* $ac_clean_files
9242 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9244 if test "$no_recursion" != yes; then
9246 # Remove --cache-file and --srcdir arguments so they do not pile up.
9247 ac_sub_configure_args=
9249 for ac_arg in $ac_configure_args; do
9250 if test -n "$ac_prev"; then
9255 -cache-file | --cache-file | --cache-fil | --cache-fi \
9256 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9257 ac_prev=cache_file ;;
9258 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9259 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9261 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9263 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9265 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9269 for ac_config_dir in $configdirs; do
9271 # Do not complain, so a configure script can configure whichever
9272 # parts of a large source tree are present.
9273 if test ! -d $srcdir/$ac_config_dir; then
9277 echo configuring in $ac_config_dir
9282 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9284 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9292 # A "../" for each directory in /$ac_config_dir.
9293 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
9296 .) # No --srcdir option. We are building in place.
9297 ac_sub_srcdir=$srcdir ;;
9298 /*) # Absolute path.
9299 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9301 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9304 # Check for guested configure; otherwise get Cygnus style configure.
9305 if test -f $ac_sub_srcdir/configure; then
9306 ac_sub_configure=$ac_sub_srcdir/configure
9307 elif test -f $ac_sub_srcdir/configure.in; then
9308 ac_sub_configure=$ac_configure
9310 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9314 # The recursion is here.
9315 if test -n "$ac_sub_configure"; then
9317 # Make the cache file name correct relative to the subdirectory.
9318 case "$cache_file" in
9319 /*) ac_sub_cache_file=$cache_file ;;
9321 ac_sub_cache_file="$ac_dots$cache_file" ;;
9323 case "$ac_given_INSTALL" in
9324 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9325 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9328 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9329 # The eval makes quoting arguments work.
9330 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9333 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }