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
926 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
927 echo "configure:928: checking for POSIXized ISC" >&5
928 if test -d /etc
/conf
/kconfig.d
&&
929 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
931 echo "$ac_t""yes" 1>&6
932 ISC
=yes # If later tests want to check for ISC.
933 cat >> confdefs.h
<<\EOF
934 #define _POSIX_SOURCE 1
937 if test "$GCC" = yes; then
943 echo "$ac_t""no" 1>&6
950 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
951 echo "configure:952: checking for ${CC-cc} option to accept ANSI C" >&5
952 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
953 echo $ac_n "(cached) $ac_c" 1>&6
955 am_cv_prog_cc_stdc
=no
957 # Don't try gcc -ansi; that turns off useful extensions and
958 # breaks some systems' header files.
960 # Ultrix and OSF/1 -std1
961 # HP-UX 10.20 and later -Ae
962 # HP-UX older versions -Aa -D_HPUX_SOURCE
963 # SVR4 -Xc -D__EXTENSIONS__
964 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
966 CC
="$ac_save_CC $ac_arg"
967 cat > conftest.
$ac_ext <<EOF
968 #line 969 "configure"
969 #include "confdefs.h"
972 #include <sys/types.h>
973 #include <sys/stat.h>
974 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
975 struct buf { int x; };
976 FILE * (*rcsopen) (struct buf *, struct stat *, int);
977 static char *e (p, i)
983 static char *f (char * (*g) (char **, int), char **p, ...)
988 s = g (p, va_arg (v,int));
992 int test (int i, double x);
993 struct s1 {int (*f) (int a);};
994 struct s2 {int (*f) (double a);};
995 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1001 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1005 if { (eval echo configure
:1006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1007 am_cv_prog_cc_stdc
="$ac_arg"; break
1009 echo "configure: failed program was:" >&5
1010 cat conftest.
$ac_ext >&5
1018 if test -z "$am_cv_prog_cc_stdc"; then
1019 echo "$ac_t""none needed" 1>&6
1021 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1023 case "x$am_cv_prog_cc_stdc" in
1025 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1030 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1031 if test -f $ac_dir/install-sh
; then
1033 ac_install_sh
="$ac_aux_dir/install-sh -c"
1035 elif test -f $ac_dir/install.sh
; then
1037 ac_install_sh
="$ac_aux_dir/install.sh -c"
1041 if test -z "$ac_aux_dir"; then
1042 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1044 ac_config_guess
=$ac_aux_dir/config.guess
1045 ac_config_sub
=$ac_aux_dir/config.sub
1046 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1049 # Do some error checking and defaulting for the host and target type.
1051 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1054 # 1. You are not allowed to specify --host, --target, and nonopt at the
1056 # 2. Host defaults to nonopt.
1057 # 3. If nonopt is not specified, then host defaults to the current host,
1058 # as determined by config.guess.
1059 # 4. Target and build default to nonopt.
1060 # 5. If nonopt is not specified, then target and build default to host.
1062 # The aliases save the names the user supplied, while $host etc.
1063 # will get canonicalized.
1064 case $host---$target---$nonopt in
1065 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1066 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1070 # Make sure we can run config.sub.
1071 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1072 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1075 echo $ac_n "checking host system type""... $ac_c" 1>&6
1076 echo "configure:1077: checking host system type" >&5
1079 case "$host_alias" in
1083 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1084 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1086 *) host_alias
=$nonopt ;;
1090 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1091 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1092 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1093 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1094 echo "$ac_t""$host" 1>&6
1096 echo $ac_n "checking target system type""... $ac_c" 1>&6
1097 echo "configure:1098: checking target system type" >&5
1099 target_alias
=$target
1100 case "$target_alias" in
1103 NONE
) target_alias
=$host_alias ;;
1104 *) target_alias
=$nonopt ;;
1108 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1109 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1110 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1111 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1112 echo "$ac_t""$target" 1>&6
1114 echo $ac_n "checking build system type""... $ac_c" 1>&6
1115 echo "configure:1116: checking build system type" >&5
1118 case "$build_alias" in
1121 NONE
) build_alias
=$host_alias ;;
1122 *) build_alias
=$nonopt ;;
1126 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1127 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1128 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1129 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1130 echo "$ac_t""$build" 1>&6
1132 test "$host_alias" != "$target_alias" &&
1133 test "$program_prefix$program_suffix$program_transform_name" = \
1135 program_prefix
=${target_alias}-
1139 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1140 echo "configure:1141: checking whether ${MAKE-make} sets \${MAKE}" >&5
1141 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1142 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1145 cat > conftestmake
<<\EOF
1147 @
echo 'ac_maketemp="${MAKE}"'
1149 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1150 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1151 if test -n "$ac_maketemp"; then
1152 eval ac_cv_prog_make_
${ac_make}_set
=yes
1154 eval ac_cv_prog_make_
${ac_make}_set
=no
1158 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1159 echo "$ac_t""yes" 1>&6
1162 echo "$ac_t""no" 1>&6
1163 SET_MAKE
="MAKE=${MAKE-make}"
1166 # Extract the first word of "ranlib", so it can be a program name with args.
1167 set dummy ranlib
; ac_word
=$2
1168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1169 echo "configure:1170: checking for $ac_word" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 if test -n "$RANLIB"; then
1174 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1176 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1178 for ac_dir
in $ac_dummy; do
1179 test -z "$ac_dir" && ac_dir
=.
1180 if test -f $ac_dir/$ac_word; then
1181 ac_cv_prog_RANLIB
="ranlib"
1186 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1189 RANLIB
="$ac_cv_prog_RANLIB"
1190 if test -n "$RANLIB"; then
1191 echo "$ac_t""$RANLIB" 1>&6
1193 echo "$ac_t""no" 1>&6
1196 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1197 echo "configure:1198: checking for ANSI C header files" >&5
1198 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 cat > conftest.
$ac_ext <<EOF
1202 #line 1203 "configure"
1203 #include "confdefs.h"
1209 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1210 { (eval echo configure
:1211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1211 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1212 if test -z "$ac_err"; then
1214 ac_cv_header_stdc
=yes
1217 echo "configure: failed program was:" >&5
1218 cat conftest.
$ac_ext >&5
1220 ac_cv_header_stdc
=no
1224 if test $ac_cv_header_stdc = yes; then
1225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1226 cat > conftest.
$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1232 egrep "memchr" >/dev
/null
2>&1; then
1236 ac_cv_header_stdc
=no
1242 if test $ac_cv_header_stdc = yes; then
1243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1244 cat > conftest.
$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1250 egrep "free" >/dev
/null
2>&1; then
1254 ac_cv_header_stdc
=no
1260 if test $ac_cv_header_stdc = yes; then
1261 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1262 if test "$cross_compiling" = yes; then
1265 cat > conftest.
$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1269 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1270 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1272 int main () { int i; for (i = 0; i < 256; i++)
1273 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1277 if { (eval echo configure
:1278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1281 echo "configure: failed program was:" >&5
1282 cat conftest.
$ac_ext >&5
1284 ac_cv_header_stdc
=no
1292 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1293 if test $ac_cv_header_stdc = yes; then
1294 cat >> confdefs.h
<<\EOF
1295 #define STDC_HEADERS 1
1300 echo $ac_n "checking for working const""... $ac_c" 1>&6
1301 echo "configure:1302: checking for working const" >&5
1302 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 cat > conftest.
$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1311 /* Ultrix mips cc rejects this. */
1312 typedef int charset[2]; const charset x;
1313 /* SunOS 4.1.1 cc rejects this. */
1314 char const *const *ccp;
1316 /* NEC SVR4.0.2 mips cc rejects this. */
1317 struct point {int x, y;};
1318 static struct point const zero = {0,0};
1319 /* AIX XL C 1.02.0.0 rejects this.
1320 It does not let you subtract one const X* pointer from another in an arm
1321 of an if-expression whose if-part is not a constant expression */
1322 const char *g = "string";
1323 ccp = &g + (g ? g-g : 0);
1324 /* HPUX 7.0 cc rejects these. */
1327 ccp = (char const *const *) p;
1328 { /* SCO 3.2v4 cc rejects this. */
1330 char const *s = 0 ? (char *) 0 : (char const *) 0;
1334 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1336 const int *foo = &x[0];
1339 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1340 typedef const int *iptr;
1344 { /* AIX XL C 1.02.0.0 rejects this saying
1345 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1346 struct s { int j; const int *ap[3]; };
1347 struct s *b; b->j = 5;
1349 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1355 if { (eval echo configure
:1356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1359 echo "configure: failed program was:" >&5
1360 cat conftest.
$ac_ext >&5
1367 echo "$ac_t""$ac_cv_c_const" 1>&6
1368 if test $ac_cv_c_const = no
; then
1369 cat >> confdefs.h
<<\EOF
1375 echo $ac_n "checking for inline""... $ac_c" 1>&6
1376 echo "configure:1377: checking for inline" >&5
1377 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1381 for ac_kw
in inline __inline__ __inline
; do
1382 cat > conftest.
$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1390 if { (eval echo configure
:1391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1392 ac_cv_c_inline
=$ac_kw; break
1394 echo "configure: failed program was:" >&5
1395 cat conftest.
$ac_ext >&5
1402 echo "$ac_t""$ac_cv_c_inline" 1>&6
1403 case "$ac_cv_c_inline" in
1405 no
) cat >> confdefs.h
<<\EOF
1409 *) cat >> confdefs.h
<<EOF
1410 #define inline $ac_cv_c_inline
1415 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1416 echo "configure:1417: checking for off_t" >&5
1417 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1420 cat > conftest.
$ac_ext <<EOF
1421 #line 1422 "configure"
1422 #include "confdefs.h"
1423 #include <sys/types.h>
1429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1430 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1432 ac_cv_type_off_t
=yes
1440 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1441 if test $ac_cv_type_off_t = no
; then
1442 cat >> confdefs.h
<<\EOF
1448 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1449 echo "configure:1450: checking for size_t" >&5
1450 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1451 echo $ac_n "(cached) $ac_c" 1>&6
1453 cat > conftest.
$ac_ext <<EOF
1454 #line 1455 "configure"
1455 #include "confdefs.h"
1456 #include <sys/types.h>
1462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1463 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1465 ac_cv_type_size_t
=yes
1468 ac_cv_type_size_t
=no
1473 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1474 if test $ac_cv_type_size_t = no
; then
1475 cat >> confdefs.h
<<\EOF
1476 #define size_t unsigned
1481 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1482 # for constant arguments. Useless!
1483 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1484 echo "configure:1485: checking for working alloca.h" >&5
1485 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1486 echo $ac_n "(cached) $ac_c" 1>&6
1488 cat > conftest.
$ac_ext <<EOF
1489 #line 1490 "configure"
1490 #include "confdefs.h"
1493 char *p = alloca(2 * sizeof(int));
1496 if { (eval echo configure
:1497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1498 ac_cv_header_alloca_h
=yes
1500 echo "configure: failed program was:" >&5
1501 cat conftest.
$ac_ext >&5
1503 ac_cv_header_alloca_h
=no
1508 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1509 if test $ac_cv_header_alloca_h = yes; then
1510 cat >> confdefs.h
<<\EOF
1511 #define HAVE_ALLOCA_H 1
1516 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1517 echo "configure:1518: checking for alloca" >&5
1518 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1521 cat > conftest.
$ac_ext <<EOF
1522 #line 1523 "configure"
1523 #include "confdefs.h"
1526 # define alloca __builtin_alloca
1529 # include <malloc.h>
1530 # define alloca _alloca
1533 # include <alloca.h>
1538 # ifndef alloca /* predefined by HP cc +Olibcalls */
1547 char *p = (char *) alloca(1);
1550 if { (eval echo configure
:1551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1552 ac_cv_func_alloca_works
=yes
1554 echo "configure: failed program was:" >&5
1555 cat conftest.
$ac_ext >&5
1557 ac_cv_func_alloca_works
=no
1562 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1563 if test $ac_cv_func_alloca_works = yes; then
1564 cat >> confdefs.h
<<\EOF
1565 #define HAVE_ALLOCA 1
1570 if test $ac_cv_func_alloca_works = no
; then
1571 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1572 # that cause trouble. Some versions do not even contain alloca or
1573 # contain a buggy version. If you still want to use their alloca,
1574 # use ar to extract alloca.o from them instead of compiling alloca.c.
1575 ALLOCA
=alloca.
${ac_objext}
1576 cat >> confdefs.h
<<\EOF
1581 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1582 echo "configure:1583: checking whether alloca needs Cray hooks" >&5
1583 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1586 cat > conftest.
$ac_ext <<EOF
1587 #line 1588 "configure"
1588 #include "confdefs.h"
1589 #if defined(CRAY) && ! defined(CRAY2)
1596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1597 egrep "webecray" >/dev
/null
2>&1; then
1608 echo "$ac_t""$ac_cv_os_cray" 1>&6
1609 if test $ac_cv_os_cray = yes; then
1610 for ac_func
in _getb67 GETB67 getb67
; do
1611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1612 echo "configure:1613: checking for $ac_func" >&5
1613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1616 cat > conftest.
$ac_ext <<EOF
1617 #line 1618 "configure"
1618 #include "confdefs.h"
1619 /* System header to define __stub macros and hopefully few prototypes,
1620 which can conflict with char $ac_func(); below. */
1622 /* Override any gcc2 internal prototype to avoid an error. */
1623 /* We use char because int might match the return type of a gcc2
1624 builtin and then its argument prototype would still apply. */
1629 /* The GNU C library defines this for functions which it implements
1630 to always fail with ENOSYS. Some functions are actually named
1631 something starting with __ and the normal name is an alias. */
1632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1640 if { (eval echo configure
:1641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1642 eval "ac_cv_func_$ac_func=yes"
1644 echo "configure: failed program was:" >&5
1645 cat conftest.
$ac_ext >&5
1647 eval "ac_cv_func_$ac_func=no"
1652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1653 echo "$ac_t""yes" 1>&6
1654 cat >> confdefs.h
<<EOF
1655 #define CRAY_STACKSEG_END $ac_func
1660 echo "$ac_t""no" 1>&6
1666 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1667 echo "configure:1668: checking stack direction for C alloca" >&5
1668 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1671 if test "$cross_compiling" = yes; then
1672 ac_cv_c_stack_direction
=0
1674 cat > conftest.
$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1677 find_stack_direction ()
1679 static char *addr = 0;
1684 return find_stack_direction ();
1687 return (&dummy > addr) ? 1 : -1;
1691 exit (find_stack_direction() < 0);
1694 if { (eval echo configure
:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1696 ac_cv_c_stack_direction
=1
1698 echo "configure: failed program was:" >&5
1699 cat conftest.
$ac_ext >&5
1701 ac_cv_c_stack_direction
=-1
1708 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1709 cat >> confdefs.h
<<EOF
1710 #define STACK_DIRECTION $ac_cv_c_stack_direction
1715 for ac_hdr
in unistd.h
1717 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1718 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1719 echo "configure:1720: checking for $ac_hdr" >&5
1720 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1723 cat > conftest.
$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1728 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1729 { (eval echo configure
:1730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1730 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1731 if test -z "$ac_err"; then
1733 eval "ac_cv_header_$ac_safe=yes"
1736 echo "configure: failed program was:" >&5
1737 cat conftest.
$ac_ext >&5
1739 eval "ac_cv_header_$ac_safe=no"
1743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1744 echo "$ac_t""yes" 1>&6
1745 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1746 cat >> confdefs.h
<<EOF
1747 #define $ac_tr_hdr 1
1751 echo "$ac_t""no" 1>&6
1755 for ac_func
in getpagesize
1757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1758 echo "configure:1759: checking for $ac_func" >&5
1759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1762 cat > conftest.
$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1765 /* System header to define __stub macros and hopefully few prototypes,
1766 which can conflict with char $ac_func(); below. */
1768 /* Override any gcc2 internal prototype to avoid an error. */
1769 /* We use char because int might match the return type of a gcc2
1770 builtin and then its argument prototype would still apply. */
1775 /* The GNU C library defines this for functions which it implements
1776 to always fail with ENOSYS. Some functions are actually named
1777 something starting with __ and the normal name is an alias. */
1778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1786 if { (eval echo configure
:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1788 eval "ac_cv_func_$ac_func=yes"
1790 echo "configure: failed program was:" >&5
1791 cat conftest.
$ac_ext >&5
1793 eval "ac_cv_func_$ac_func=no"
1798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1799 echo "$ac_t""yes" 1>&6
1800 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1801 cat >> confdefs.h
<<EOF
1802 #define $ac_tr_func 1
1806 echo "$ac_t""no" 1>&6
1810 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1811 echo "configure:1812: checking for working mmap" >&5
1812 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1815 if test "$cross_compiling" = yes; then
1816 ac_cv_func_mmap_fixed_mapped
=no
1818 cat > conftest.
$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1822 /* Thanks to Mike Haertel and Jim Avera for this test.
1823 Here is a matrix of mmap possibilities:
1824 mmap private not fixed
1825 mmap private fixed at somewhere currently unmapped
1826 mmap private fixed at somewhere already mapped
1827 mmap shared not fixed
1828 mmap shared fixed at somewhere currently unmapped
1829 mmap shared fixed at somewhere already mapped
1830 For private mappings, we should verify that changes cannot be read()
1831 back from the file, nor mmap's back from the file at a different
1832 address. (There have been systems where private was not correctly
1833 implemented like the infamous i386 svr4.0, and systems where the
1834 VM page cache was not coherent with the filesystem buffer cache
1835 like early versions of FreeBSD and possibly contemporary NetBSD.)
1836 For shared mappings, we should conversely verify that changes get
1837 propogated back to all the places they're supposed to be.
1839 Grep wants private fixed already mapped.
1840 The main things grep needs to know about mmap are:
1841 * does it exist and is it safe to write into the mmap'd area
1842 * how to use it (BSD variants) */
1843 #include <sys/types.h>
1845 #include <sys/mman.h>
1847 /* This mess was copied from the GNU getpagesize.h. */
1848 #ifndef HAVE_GETPAGESIZE
1849 # ifdef HAVE_UNISTD_H
1850 # include <unistd.h>
1853 /* Assume that all systems that can run configure have sys/param.h. */
1854 # ifndef HAVE_SYS_PARAM_H
1855 # define HAVE_SYS_PARAM_H 1
1858 # ifdef _SC_PAGESIZE
1859 # define getpagesize() sysconf(_SC_PAGESIZE)
1860 # else /* no _SC_PAGESIZE */
1861 # ifdef HAVE_SYS_PARAM_H
1862 # include <sys/param.h>
1863 # ifdef EXEC_PAGESIZE
1864 # define getpagesize() EXEC_PAGESIZE
1865 # else /* no EXEC_PAGESIZE */
1867 # define getpagesize() NBPG * CLSIZE
1870 # endif /* no CLSIZE */
1871 # else /* no NBPG */
1873 # define getpagesize() NBPC
1874 # else /* no NBPC */
1876 # define getpagesize() PAGESIZE
1877 # endif /* PAGESIZE */
1878 # endif /* no NBPC */
1879 # endif /* no NBPG */
1880 # endif /* no EXEC_PAGESIZE */
1881 # else /* no HAVE_SYS_PARAM_H */
1882 # define getpagesize() 8192 /* punt totally */
1883 # endif /* no HAVE_SYS_PARAM_H */
1884 # endif /* no _SC_PAGESIZE */
1886 #endif /* no HAVE_GETPAGESIZE */
1889 extern "C" { void *malloc(unsigned); }
1897 char *data, *data2, *data3;
1901 pagesize = getpagesize();
1904 * First, make a file with some known garbage in it.
1906 data = malloc(pagesize);
1909 for (i = 0; i < pagesize; ++i)
1910 *(data + i) = rand();
1912 fd = creat("conftestmmap", 0600);
1915 if (write(fd, data, pagesize) != pagesize)
1920 * Next, try to mmap the file at a fixed address which
1921 * already has something else allocated at it. If we can,
1922 * also make sure that we see the same garbage.
1924 fd = open("conftestmmap", O_RDWR);
1927 data2 = malloc(2 * pagesize);
1930 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1931 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1932 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1934 for (i = 0; i < pagesize; ++i)
1935 if (*(data + i) != *(data2 + i))
1939 * Finally, make sure that changes to the mapped area
1940 * do not percolate back to the file as seen by read().
1941 * (This is a bug on some variants of i386 svr4.0.)
1943 for (i = 0; i < pagesize; ++i)
1944 *(data2 + i) = *(data2 + i) + 1;
1945 data3 = malloc(pagesize);
1948 if (read(fd, data3, pagesize) != pagesize)
1950 for (i = 0; i < pagesize; ++i)
1951 if (*(data + i) != *(data3 + i))
1954 unlink("conftestmmap");
1959 if { (eval echo configure
:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1961 ac_cv_func_mmap_fixed_mapped
=yes
1963 echo "configure: failed program was:" >&5
1964 cat conftest.
$ac_ext >&5
1966 ac_cv_func_mmap_fixed_mapped
=no
1973 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
1974 if test $ac_cv_func_mmap_fixed_mapped = yes; then
1975 cat >> confdefs.h
<<\EOF
1982 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
1983 unistd.h values.h sys
/param.h
1985 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1987 echo "configure:1988: checking for $ac_hdr" >&5
1988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1991 cat > conftest.
$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1996 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1997 { (eval echo configure
:1998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1998 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1999 if test -z "$ac_err"; then
2001 eval "ac_cv_header_$ac_safe=yes"
2004 echo "configure: failed program was:" >&5
2005 cat conftest.
$ac_ext >&5
2007 eval "ac_cv_header_$ac_safe=no"
2011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2012 echo "$ac_t""yes" 1>&6
2013 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2014 cat >> confdefs.h
<<EOF
2015 #define $ac_tr_hdr 1
2019 echo "$ac_t""no" 1>&6
2023 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2024 __argz_count __argz_stringify __argz_next
2026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2027 echo "configure:2028: checking for $ac_func" >&5
2028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2029 echo $ac_n "(cached) $ac_c" 1>&6
2031 cat > conftest.
$ac_ext <<EOF
2032 #line 2033 "configure"
2033 #include "confdefs.h"
2034 /* System header to define __stub macros and hopefully few prototypes,
2035 which can conflict with char $ac_func(); below. */
2037 /* Override any gcc2 internal prototype to avoid an error. */
2038 /* We use char because int might match the return type of a gcc2
2039 builtin and then its argument prototype would still apply. */
2044 /* The GNU C library defines this for functions which it implements
2045 to always fail with ENOSYS. Some functions are actually named
2046 something starting with __ and the normal name is an alias. */
2047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2055 if { (eval echo configure
:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2057 eval "ac_cv_func_$ac_func=yes"
2059 echo "configure: failed program was:" >&5
2060 cat conftest.
$ac_ext >&5
2062 eval "ac_cv_func_$ac_func=no"
2067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2068 echo "$ac_t""yes" 1>&6
2069 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2070 cat >> confdefs.h
<<EOF
2071 #define $ac_tr_func 1
2075 echo "$ac_t""no" 1>&6
2080 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2081 for ac_func
in stpcpy
2083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2084 echo "configure:2085: checking for $ac_func" >&5
2085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2088 cat > conftest.
$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2091 /* System header to define __stub macros and hopefully few prototypes,
2092 which can conflict with char $ac_func(); below. */
2094 /* Override any gcc2 internal prototype to avoid an error. */
2095 /* We use char because int might match the return type of a gcc2
2096 builtin and then its argument prototype would still apply. */
2101 /* The GNU C library defines this for functions which it implements
2102 to always fail with ENOSYS. Some functions are actually named
2103 something starting with __ and the normal name is an alias. */
2104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2112 if { (eval echo configure
:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2114 eval "ac_cv_func_$ac_func=yes"
2116 echo "configure: failed program was:" >&5
2117 cat conftest.
$ac_ext >&5
2119 eval "ac_cv_func_$ac_func=no"
2124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2125 echo "$ac_t""yes" 1>&6
2126 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2127 cat >> confdefs.h
<<EOF
2128 #define $ac_tr_func 1
2132 echo "$ac_t""no" 1>&6
2137 if test "${ac_cv_func_stpcpy}" = "yes"; then
2138 cat >> confdefs.h
<<\EOF
2139 #define HAVE_STPCPY 1
2144 if test $ac_cv_header_locale_h = yes; then
2145 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2146 echo "configure:2147: checking for LC_MESSAGES" >&5
2147 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2148 echo $ac_n "(cached) $ac_c" 1>&6
2150 cat > conftest.
$ac_ext <<EOF
2151 #line 2152 "configure"
2152 #include "confdefs.h"
2158 if { (eval echo configure
:2159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2160 am_cv_val_LC_MESSAGES
=yes
2162 echo "configure: failed program was:" >&5
2163 cat conftest.
$ac_ext >&5
2165 am_cv_val_LC_MESSAGES
=no
2170 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2171 if test $am_cv_val_LC_MESSAGES = yes; then
2172 cat >> confdefs.h
<<\EOF
2173 #define HAVE_LC_MESSAGES 1
2178 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2179 echo "configure:2180: checking whether NLS is requested" >&5
2180 # Check whether --enable-nls or --disable-nls was given.
2181 if test "${enable_nls+set}" = set; then
2182 enableval
="$enable_nls"
2188 echo "$ac_t""$USE_NLS" 1>&6
2191 USE_INCLUDED_LIBINTL
=no
2193 if test "$USE_NLS" = "yes"; then
2194 cat >> confdefs.h
<<\EOF
2195 #define ENABLE_NLS 1
2198 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2199 echo "configure:2200: checking whether included gettext is requested" >&5
2200 # Check whether --with-included-gettext or --without-included-gettext was given.
2201 if test "${with_included_gettext+set}" = set; then
2202 withval
="$with_included_gettext"
2203 nls_cv_force_use_gnu_gettext
=$withval
2205 nls_cv_force_use_gnu_gettext
=no
2208 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2210 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2211 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2213 nls_cv_header_libgt
=
2216 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2217 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2218 echo "configure:2219: checking for libintl.h" >&5
2219 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2222 cat > conftest.
$ac_ext <<EOF
2223 #line 2224 "configure"
2224 #include "confdefs.h"
2225 #include <libintl.h>
2227 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2228 { (eval echo configure
:2229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2229 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2230 if test -z "$ac_err"; then
2232 eval "ac_cv_header_$ac_safe=yes"
2235 echo "configure: failed program was:" >&5
2236 cat conftest.
$ac_ext >&5
2238 eval "ac_cv_header_$ac_safe=no"
2242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2243 echo "$ac_t""yes" 1>&6
2244 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2245 echo "configure:2246: checking for gettext in libc" >&5
2246 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2247 echo $ac_n "(cached) $ac_c" 1>&6
2249 cat > conftest.
$ac_ext <<EOF
2250 #line 2251 "configure"
2251 #include "confdefs.h"
2252 #include <libintl.h>
2254 return (int) gettext ("")
2257 if { (eval echo configure
:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2259 gt_cv_func_gettext_libc
=yes
2261 echo "configure: failed program was:" >&5
2262 cat conftest.
$ac_ext >&5
2264 gt_cv_func_gettext_libc
=no
2269 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2271 if test "$gt_cv_func_gettext_libc" != "yes"; then
2272 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2273 echo "configure:2274: checking for bindtextdomain in -lintl" >&5
2274 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2278 ac_save_LIBS
="$LIBS"
2280 cat > conftest.
$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2283 /* Override any gcc2 internal prototype to avoid an error. */
2284 /* We use char because int might match the return type of a gcc2
2285 builtin and then its argument prototype would still apply. */
2286 char bindtextdomain();
2292 if { (eval echo configure
:2293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2294 eval "ac_cv_lib_$ac_lib_var=yes"
2296 echo "configure: failed program was:" >&5
2297 cat conftest.
$ac_ext >&5
2299 eval "ac_cv_lib_$ac_lib_var=no"
2302 LIBS
="$ac_save_LIBS"
2305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2306 echo "$ac_t""yes" 1>&6
2307 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2308 echo "configure:2309: checking for gettext in libintl" >&5
2309 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2312 cat > conftest.
$ac_ext <<EOF
2313 #line 2314 "configure"
2314 #include "confdefs.h"
2317 return (int) gettext ("")
2320 if { (eval echo configure
:2321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2322 gt_cv_func_gettext_libintl
=yes
2324 echo "configure: failed program was:" >&5
2325 cat conftest.
$ac_ext >&5
2327 gt_cv_func_gettext_libintl
=no
2332 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2334 echo "$ac_t""no" 1>&6
2339 if test "$gt_cv_func_gettext_libc" = "yes" \
2340 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2341 cat >> confdefs.h
<<\EOF
2342 #define HAVE_GETTEXT 1
2345 # Extract the first word of "msgfmt", so it can be a program name with args.
2346 set dummy msgfmt
; ac_word
=$2
2347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2348 echo "configure:2349: checking for $ac_word" >&5
2349 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2354 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2357 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2358 for ac_dir
in $PATH; do
2359 test -z "$ac_dir" && ac_dir
=.
2360 if test -f $ac_dir/$ac_word; then
2361 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2362 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2368 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2372 MSGFMT
="$ac_cv_path_MSGFMT"
2373 if test -n "$MSGFMT"; then
2374 echo "$ac_t""$MSGFMT" 1>&6
2376 echo "$ac_t""no" 1>&6
2378 if test "$MSGFMT" != "no"; then
2379 for ac_func
in dcgettext
2381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2382 echo "configure:2383: checking for $ac_func" >&5
2383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2386 cat > conftest.
$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2389 /* System header to define __stub macros and hopefully few prototypes,
2390 which can conflict with char $ac_func(); below. */
2392 /* Override any gcc2 internal prototype to avoid an error. */
2393 /* We use char because int might match the return type of a gcc2
2394 builtin and then its argument prototype would still apply. */
2399 /* The GNU C library defines this for functions which it implements
2400 to always fail with ENOSYS. Some functions are actually named
2401 something starting with __ and the normal name is an alias. */
2402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2410 if { (eval echo configure
:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2412 eval "ac_cv_func_$ac_func=yes"
2414 echo "configure: failed program was:" >&5
2415 cat conftest.
$ac_ext >&5
2417 eval "ac_cv_func_$ac_func=no"
2422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2423 echo "$ac_t""yes" 1>&6
2424 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2425 cat >> confdefs.h
<<EOF
2426 #define $ac_tr_func 1
2430 echo "$ac_t""no" 1>&6
2434 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2435 set dummy gmsgfmt
; ac_word
=$2
2436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2437 echo "configure:2438: checking for $ac_word" >&5
2438 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2443 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2446 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2449 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2451 for ac_dir
in $ac_dummy; do
2452 test -z "$ac_dir" && ac_dir
=.
2453 if test -f $ac_dir/$ac_word; then
2454 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2459 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2463 GMSGFMT
="$ac_cv_path_GMSGFMT"
2464 if test -n "$GMSGFMT"; then
2465 echo "$ac_t""$GMSGFMT" 1>&6
2467 echo "$ac_t""no" 1>&6
2470 # Extract the first word of "xgettext", so it can be a program name with args.
2471 set dummy xgettext
; ac_word
=$2
2472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2473 echo "configure:2474: checking for $ac_word" >&5
2474 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2479 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2482 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2483 for ac_dir
in $PATH; do
2484 test -z "$ac_dir" && ac_dir
=.
2485 if test -f $ac_dir/$ac_word; then
2486 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2487 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2493 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2497 XGETTEXT
="$ac_cv_path_XGETTEXT"
2498 if test -n "$XGETTEXT"; then
2499 echo "$ac_t""$XGETTEXT" 1>&6
2501 echo "$ac_t""no" 1>&6
2504 cat > conftest.
$ac_ext <<EOF
2505 #line 2506 "configure"
2506 #include "confdefs.h"
2509 extern int _nl_msg_cat_cntr;
2510 return _nl_msg_cat_cntr
2513 if { (eval echo configure
:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2518 echo "configure: failed program was:" >&5
2519 cat conftest.
$ac_ext >&5
2530 echo "$ac_t""no" 1>&6
2535 if test "$CATOBJEXT" = "NONE"; then
2536 nls_cv_use_gnu_gettext
=yes
2540 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2541 INTLOBJS
="\$(GETTOBJS)"
2542 # Extract the first word of "msgfmt", so it can be a program name with args.
2543 set dummy msgfmt
; ac_word
=$2
2544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2545 echo "configure:2546: checking for $ac_word" >&5
2546 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2547 echo $ac_n "(cached) $ac_c" 1>&6
2551 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2554 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2555 for ac_dir
in $PATH; do
2556 test -z "$ac_dir" && ac_dir
=.
2557 if test -f $ac_dir/$ac_word; then
2558 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2559 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2565 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2569 MSGFMT
="$ac_cv_path_MSGFMT"
2570 if test -n "$MSGFMT"; then
2571 echo "$ac_t""$MSGFMT" 1>&6
2573 echo "$ac_t""no" 1>&6
2576 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2577 set dummy gmsgfmt
; ac_word
=$2
2578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2579 echo "configure:2580: checking for $ac_word" >&5
2580 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2585 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2588 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2591 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2593 for ac_dir
in $ac_dummy; do
2594 test -z "$ac_dir" && ac_dir
=.
2595 if test -f $ac_dir/$ac_word; then
2596 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2601 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2605 GMSGFMT
="$ac_cv_path_GMSGFMT"
2606 if test -n "$GMSGFMT"; then
2607 echo "$ac_t""$GMSGFMT" 1>&6
2609 echo "$ac_t""no" 1>&6
2612 # Extract the first word of "xgettext", so it can be a program name with args.
2613 set dummy xgettext
; ac_word
=$2
2614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2615 echo "configure:2616: checking for $ac_word" >&5
2616 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2621 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2624 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2625 for ac_dir
in $PATH; do
2626 test -z "$ac_dir" && ac_dir
=.
2627 if test -f $ac_dir/$ac_word; then
2628 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2629 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2635 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2639 XGETTEXT
="$ac_cv_path_XGETTEXT"
2640 if test -n "$XGETTEXT"; then
2641 echo "$ac_t""$XGETTEXT" 1>&6
2643 echo "$ac_t""no" 1>&6
2647 USE_INCLUDED_LIBINTL
=yes
2651 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2653 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2654 nls_cv_header_intl
=libintl.h
2655 nls_cv_header_libgt
=libgettext.h
2658 if test "$XGETTEXT" != ":"; then
2659 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2662 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2667 # We need to process the po/ directory.
2671 nls_cv_header_intl
=libintl.h
2672 nls_cv_header_libgt
=libgettext.h
2675 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2676 # because some of the sources are only built for this goal.
2677 if test "$PACKAGE" = gettext; then
2679 USE_INCLUDED_LIBINTL
=yes
2682 for lang
in $ALL_LINGUAS; do
2683 GMOFILES
="$GMOFILES $lang.gmo"
2684 POFILES
="$POFILES $lang.po"
2700 if test "x$CATOBJEXT" != "x"; then
2701 if test "x$ALL_LINGUAS" = "x"; then
2704 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2705 echo "configure:2706: checking for catalogs to be installed" >&5
2707 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2708 case "$ALL_LINGUAS" in
2709 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2712 LINGUAS
=$NEW_LINGUAS
2713 echo "$ac_t""$LINGUAS" 1>&6
2716 if test -n "$LINGUAS"; then
2717 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2721 if test $ac_cv_header_locale_h = yes; then
2722 INCLUDE_LOCALE_H
="#include <locale.h>"
2725 /* The system does not provide the header <locale.h>. Take care yourself. */"
2729 if test -f $srcdir/po2tbl.
sed.
in; then
2730 if test "$CATOBJEXT" = ".cat"; then
2731 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2732 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2733 echo "configure:2734: checking for linux/version.h" >&5
2734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2737 cat > conftest.
$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2740 #include <linux/version.h>
2742 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2743 { (eval echo configure
:2744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2744 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2745 if test -z "$ac_err"; then
2747 eval "ac_cv_header_$ac_safe=yes"
2750 echo "configure: failed program was:" >&5
2751 cat conftest.
$ac_ext >&5
2753 eval "ac_cv_header_$ac_safe=no"
2757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2758 echo "$ac_t""yes" 1>&6
2761 echo "$ac_t""no" 1>&6
2766 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2768 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2769 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2772 if test "$PACKAGE" = "gettext"; then
2782 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2788 if test -f $srcdir/po
/POTFILES.
in; then
2789 test -d po || mkdir po
2790 if test "x$srcdir" != "x."; then
2791 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2792 posrcprefix
="$srcdir/"
2794 posrcprefix
="../$srcdir/"
2800 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2801 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2817 configdirs
="doc testsuite"
2819 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2820 if test "${enable_multi_ice+set}" = set; then
2821 enableval
="$enable_multi_ice"
2822 case "${enableval}" in
2823 yes ) enable_multi_ice
="yes" ;;
2824 no
) enable_multi_ice
="no" ;;
2825 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2831 if test "${enable_multi_ice}" = "yes"; then
2832 configdirs
="${configdirs} multi-ice"
2836 .
${srcdir}/configure.
host
2838 .
${srcdir}/configure.tgt
2840 targ
=${target} ; .
${srcdir}/..
/bfd
/config.bfd
2844 .
${srcdir}/..
/bfd
/config.bfd
2846 targ_archs
=`echo ${targ_archs} | sed -e 's/ .*//;'`
2848 if test x
"${targ_archs}" != x
; then
2849 cat >> confdefs.h
<<EOF
2850 #define DEFAULT_BFD_ARCH ${targ_archs}
2854 if test x
"${targ_defvec}" != x
; then
2855 cat >> confdefs.h
<<EOF
2856 #define DEFAULT_BFD_VEC ${targ_defvec}
2861 for ac_prog
in mawk gawk nawk
awk
2863 # Extract the first word of "$ac_prog", so it can be a program name with args.
2864 set dummy
$ac_prog; ac_word
=$2
2865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2866 echo "configure:2867: checking for $ac_word" >&5
2867 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2870 if test -n "$AWK"; then
2871 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2873 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2875 for ac_dir
in $ac_dummy; do
2876 test -z "$ac_dir" && ac_dir
=.
2877 if test -f $ac_dir/$ac_word; then
2878 ac_cv_prog_AWK
="$ac_prog"
2885 AWK
="$ac_cv_prog_AWK"
2886 if test -n "$AWK"; then
2887 echo "$ac_t""$AWK" 1>&6
2889 echo "$ac_t""no" 1>&6
2892 test -n "$AWK" && break
2895 # Find a good install program. We prefer a C program (faster),
2896 # so one script is as good as another. But avoid the broken or
2897 # incompatible versions:
2898 # SysV /etc/install, /usr/sbin/install
2899 # SunOS /usr/etc/install
2900 # IRIX /sbin/install
2902 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2903 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2904 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2905 # ./install, which can be erroneously created by make from ./install.sh.
2906 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2907 echo "configure:2908: checking for a BSD compatible install" >&5
2908 if test -z "$INSTALL"; then
2909 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2912 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2913 for ac_dir
in $PATH; do
2914 # Account for people who put trailing slashes in PATH elements.
2916 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2918 # OSF1 and SCO ODT 3.0 have their own names for install.
2919 # Don't use installbsd from OSF since it installs stuff as root
2921 for ac_prog
in ginstall scoinst
install; do
2922 if test -f $ac_dir/$ac_prog; then
2923 if test $ac_prog = install &&
2924 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2925 # AIX install. It has an incompatible calling convention.
2928 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2939 if test "${ac_cv_path_install+set}" = set; then
2940 INSTALL
="$ac_cv_path_install"
2942 # As a last resort, use the slow shell script. We don't cache a
2943 # path for INSTALL within a source directory, because that will
2944 # break other packages using the cache if that directory is
2945 # removed, or if the path is relative.
2946 INSTALL
="$ac_install_sh"
2949 echo "$ac_t""$INSTALL" 1>&6
2951 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2952 # It thinks the first close brace ends the variable substitution.
2953 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2955 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2957 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2959 if test $host != $build; then
2960 ac_tool_prefix
=${host_alias}-
2965 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2966 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2968 echo "configure:2969: checking for $ac_word" >&5
2969 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2970 echo $ac_n "(cached) $ac_c" 1>&6
2972 if test -n "$AR"; then
2973 ac_cv_prog_AR
="$AR" # Let the user override the test.
2975 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2977 for ac_dir
in $ac_dummy; do
2978 test -z "$ac_dir" && ac_dir
=.
2979 if test -f $ac_dir/$ac_word; then
2980 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2985 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2989 if test -n "$AR"; then
2990 echo "$ac_t""$AR" 1>&6
2992 echo "$ac_t""no" 1>&6
2997 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2998 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3000 echo "configure:3001: checking for $ac_word" >&5
3001 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3002 echo $ac_n "(cached) $ac_c" 1>&6
3004 if test -n "$RANLIB"; then
3005 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3007 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3009 for ac_dir
in $ac_dummy; do
3010 test -z "$ac_dir" && ac_dir
=.
3011 if test -f $ac_dir/$ac_word; then
3012 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3019 RANLIB
="$ac_cv_prog_RANLIB"
3020 if test -n "$RANLIB"; then
3021 echo "$ac_t""$RANLIB" 1>&6
3023 echo "$ac_t""no" 1>&6
3027 if test -z "$ac_cv_prog_RANLIB"; then
3028 if test -n "$ac_tool_prefix"; then
3029 # Extract the first word of "ranlib", so it can be a program name with args.
3030 set dummy ranlib
; ac_word
=$2
3031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3032 echo "configure:3033: checking for $ac_word" >&5
3033 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3036 if test -n "$RANLIB"; then
3037 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3039 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3041 for ac_dir
in $ac_dummy; do
3042 test -z "$ac_dir" && ac_dir
=.
3043 if test -f $ac_dir/$ac_word; then
3044 ac_cv_prog_RANLIB
="ranlib"
3049 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3052 RANLIB
="$ac_cv_prog_RANLIB"
3053 if test -n "$RANLIB"; then
3054 echo "$ac_t""$RANLIB" 1>&6
3056 echo "$ac_t""no" 1>&6
3064 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3065 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3067 echo "configure:3068: checking for $ac_word" >&5
3068 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3069 echo $ac_n "(cached) $ac_c" 1>&6
3071 if test -n "$DLLTOOL"; then
3072 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3074 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3076 for ac_dir
in $ac_dummy; do
3077 test -z "$ac_dir" && ac_dir
=.
3078 if test -f $ac_dir/$ac_word; then
3079 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3084 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3087 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3088 if test -n "$DLLTOOL"; then
3089 echo "$ac_t""$DLLTOOL" 1>&6
3091 echo "$ac_t""no" 1>&6
3096 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3097 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3099 echo "configure:3100: checking for $ac_word" >&5
3100 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3103 if test -n "$WINDRES"; then
3104 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3106 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3108 for ac_dir
in $ac_dummy; do
3109 test -z "$ac_dir" && ac_dir
=.
3110 if test -f $ac_dir/$ac_word; then
3111 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3116 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3119 WINDRES
="$ac_cv_prog_WINDRES"
3120 if test -n "$WINDRES"; then
3121 echo "$ac_t""$WINDRES" 1>&6
3123 echo "$ac_t""no" 1>&6
3128 for ac_prog
in 'bison -y' byacc
3130 # Extract the first word of "$ac_prog", so it can be a program name with args.
3131 set dummy
$ac_prog; ac_word
=$2
3132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3133 echo "configure:3134: checking for $ac_word" >&5
3134 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3135 echo $ac_n "(cached) $ac_c" 1>&6
3137 if test -n "$YACC"; then
3138 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3140 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3142 for ac_dir
in $ac_dummy; do
3143 test -z "$ac_dir" && ac_dir
=.
3144 if test -f $ac_dir/$ac_word; then
3145 ac_cv_prog_YACC
="$ac_prog"
3152 YACC
="$ac_cv_prog_YACC"
3153 if test -n "$YACC"; then
3154 echo "$ac_t""$YACC" 1>&6
3156 echo "$ac_t""no" 1>&6
3159 test -n "$YACC" && break
3161 test -n "$YACC" || YACC
="yacc"
3164 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3165 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3167 echo "configure:3168: checking for $ac_word" >&5
3168 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3169 echo $ac_n "(cached) $ac_c" 1>&6
3171 if test -n "$MIG"; then
3172 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3174 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3176 for ac_dir
in $ac_dummy; do
3177 test -z "$ac_dir" && ac_dir
=.
3178 if test -f $ac_dir/$ac_word; then
3179 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3184 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3187 MIG
="$ac_cv_prog_MIG"
3188 if test -n "$MIG"; then
3189 echo "$ac_t""$MIG" 1>&6
3191 echo "$ac_t""no" 1>&6
3197 if test "$program_transform_name" = s
,x
,x
,; then
3198 program_transform_name
=
3200 # Double any \ or $. echo might interpret backslashes.
3201 cat <<\EOF_SED
> conftestsed
3202 s
,\\,\\\\,g
; s
,\$
,$$
,g
3204 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3207 test "$program_prefix" != NONE
&&
3208 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3209 # Use a double $ so make ignores it.
3210 test "$program_suffix" != NONE
&&
3211 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3213 # sed with no file args requires a program.
3214 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3217 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3218 echo "configure:3219: checking return type of signal handlers" >&5
3219 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3220 echo $ac_n "(cached) $ac_c" 1>&6
3222 cat > conftest.
$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3225 #include <sys/types.h>
3231 extern "C" void (*signal (int, void (*)(int)))(int);
3233 void (*signal ()) ();
3240 if { (eval echo configure
:3241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3242 ac_cv_type_signal
=void
3244 echo "configure: failed program was:" >&5
3245 cat conftest.
$ac_ext >&5
3247 ac_cv_type_signal
=int
3252 echo "$ac_t""$ac_cv_type_signal" 1>&6
3253 cat >> confdefs.h
<<EOF
3254 #define RETSIGTYPE $ac_cv_type_signal
3259 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3260 echo "configure:3261: checking for ANSI C header files" >&5
3261 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
3264 cat > conftest.
$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3272 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3273 { (eval echo configure
:3274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3274 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3275 if test -z "$ac_err"; then
3277 ac_cv_header_stdc
=yes
3280 echo "configure: failed program was:" >&5
3281 cat conftest.
$ac_ext >&5
3283 ac_cv_header_stdc
=no
3287 if test $ac_cv_header_stdc = yes; then
3288 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3289 cat > conftest.
$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3295 egrep "memchr" >/dev
/null
2>&1; then
3299 ac_cv_header_stdc
=no
3305 if test $ac_cv_header_stdc = yes; then
3306 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3307 cat > conftest.
$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3313 egrep "free" >/dev
/null
2>&1; then
3317 ac_cv_header_stdc
=no
3323 if test $ac_cv_header_stdc = yes; then
3324 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3325 if test "$cross_compiling" = yes; then
3328 cat > conftest.
$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3332 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3333 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3335 int main () { int i; for (i = 0; i < 256; i++)
3336 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3340 if { (eval echo configure
:3341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3344 echo "configure: failed program was:" >&5
3345 cat conftest.
$ac_ext >&5
3347 ac_cv_header_stdc
=no
3355 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3356 if test $ac_cv_header_stdc = yes; then
3357 cat >> confdefs.h
<<\EOF
3358 #define STDC_HEADERS 1
3365 case $host_os in solaris2.7 | solaris2.8
) case "$GCC" in yes)
3366 cat >> confdefs.h
<<\EOF
3367 #define _MSE_INT_H 1
3372 for ac_hdr
in ctype.h nlist.h link.h thread_db.h proc_service.h \
3373 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3374 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h stdint.h \
3375 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3376 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h \
3377 time.h sys
/file.h sys
/ioctl.h sys
/user.h sys
/fault.h sys
/syscall.h \
3378 dirent.h sys
/ndir.h sys
/dir.h ndir.h sys
/filio.h \
3379 curses.h ncurses.h \
3382 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3384 echo "configure:3385: checking for $ac_hdr" >&5
3385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 cat > conftest.
$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3393 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3394 { (eval echo configure
:3395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3395 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3396 if test -z "$ac_err"; then
3398 eval "ac_cv_header_$ac_safe=yes"
3401 echo "configure: failed program was:" >&5
3402 cat conftest.
$ac_ext >&5
3404 eval "ac_cv_header_$ac_safe=no"
3408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3409 echo "$ac_t""yes" 1>&6
3410 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3411 cat >> confdefs.h
<<EOF
3412 #define $ac_tr_hdr 1
3416 echo "$ac_t""no" 1>&6
3420 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3421 echo "configure:3422: checking whether stat file-mode macros are broken" >&5
3422 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3423 echo $ac_n "(cached) $ac_c" 1>&6
3425 cat > conftest.
$ac_ext <<EOF
3426 #line 3427 "configure"
3427 #include "confdefs.h"
3428 #include <sys/types.h>
3429 #include <sys/stat.h>
3431 #if defined(S_ISBLK) && defined(S_IFDIR)
3432 # if S_ISBLK (S_IFDIR)
3437 #if defined(S_ISBLK) && defined(S_IFCHR)
3438 # if S_ISBLK (S_IFCHR)
3443 #if defined(S_ISLNK) && defined(S_IFREG)
3444 # if S_ISLNK (S_IFREG)
3449 #if defined(S_ISSOCK) && defined(S_IFREG)
3450 # if S_ISSOCK (S_IFREG)
3456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3457 egrep "You lose" >/dev
/null
2>&1; then
3459 ac_cv_header_stat_broken
=yes
3462 ac_cv_header_stat_broken
=no
3468 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3469 if test $ac_cv_header_stat_broken = yes; then
3470 cat >> confdefs.h
<<\EOF
3471 #define STAT_MACROS_BROKEN 1
3477 echo $ac_n "checking for working const""... $ac_c" 1>&6
3478 echo "configure:3479: checking for working const" >&5
3479 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3482 cat > conftest.
$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3488 /* Ultrix mips cc rejects this. */
3489 typedef int charset[2]; const charset x;
3490 /* SunOS 4.1.1 cc rejects this. */
3491 char const *const *ccp;
3493 /* NEC SVR4.0.2 mips cc rejects this. */
3494 struct point {int x, y;};
3495 static struct point const zero = {0,0};
3496 /* AIX XL C 1.02.0.0 rejects this.
3497 It does not let you subtract one const X* pointer from another in an arm
3498 of an if-expression whose if-part is not a constant expression */
3499 const char *g = "string";
3500 ccp = &g + (g ? g-g : 0);
3501 /* HPUX 7.0 cc rejects these. */
3504 ccp = (char const *const *) p;
3505 { /* SCO 3.2v4 cc rejects this. */
3507 char const *s = 0 ? (char *) 0 : (char const *) 0;
3511 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3513 const int *foo = &x[0];
3516 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3517 typedef const int *iptr;
3521 { /* AIX XL C 1.02.0.0 rejects this saying
3522 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3523 struct s { int j; const int *ap[3]; };
3524 struct s *b; b->j = 5;
3526 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3532 if { (eval echo configure
:3533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3536 echo "configure: failed program was:" >&5
3537 cat conftest.
$ac_ext >&5
3544 echo "$ac_t""$ac_cv_c_const" 1>&6
3545 if test $ac_cv_c_const = no
; then
3546 cat >> confdefs.h
<<\EOF
3552 echo $ac_n "checking for inline""... $ac_c" 1>&6
3553 echo "configure:3554: checking for inline" >&5
3554 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3558 for ac_kw
in inline __inline__ __inline
; do
3559 cat > conftest.
$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3567 if { (eval echo configure
:3568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3569 ac_cv_c_inline
=$ac_kw; break
3571 echo "configure: failed program was:" >&5
3572 cat conftest.
$ac_ext >&5
3579 echo "$ac_t""$ac_cv_c_inline" 1>&6
3580 case "$ac_cv_c_inline" in
3582 no
) cat >> confdefs.h
<<\EOF
3586 *) cat >> confdefs.h
<<EOF
3587 #define inline $ac_cv_c_inline
3593 for ac_func
in bcopy btowc bzero canonicalize_file_name isascii poll \
3594 realpath sbrk setpgid setpgrp sigaction sigprocmask sigsetmask
3596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3597 echo "configure:3598: checking for $ac_func" >&5
3598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3601 cat > conftest.
$ac_ext <<EOF
3602 #line 3603 "configure"
3603 #include "confdefs.h"
3604 /* System header to define __stub macros and hopefully few prototypes,
3605 which can conflict with char $ac_func(); below. */
3607 /* Override any gcc2 internal prototype to avoid an error. */
3608 /* We use char because int might match the return type of a gcc2
3609 builtin and then its argument prototype would still apply. */
3614 /* The GNU C library defines this for functions which it implements
3615 to always fail with ENOSYS. Some functions are actually named
3616 something starting with __ and the normal name is an alias. */
3617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3625 if { (eval echo configure
:3626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3627 eval "ac_cv_func_$ac_func=yes"
3629 echo "configure: failed program was:" >&5
3630 cat conftest.
$ac_ext >&5
3632 eval "ac_cv_func_$ac_func=no"
3637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3638 echo "$ac_t""yes" 1>&6
3639 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3640 cat >> confdefs.h
<<EOF
3641 #define $ac_tr_func 1
3645 echo "$ac_t""no" 1>&6
3649 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3650 # for constant arguments. Useless!
3651 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3652 echo "configure:3653: checking for working alloca.h" >&5
3653 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3656 cat > conftest.
$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3661 char *p = alloca(2 * sizeof(int));
3664 if { (eval echo configure
:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3666 ac_cv_header_alloca_h
=yes
3668 echo "configure: failed program was:" >&5
3669 cat conftest.
$ac_ext >&5
3671 ac_cv_header_alloca_h
=no
3676 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3677 if test $ac_cv_header_alloca_h = yes; then
3678 cat >> confdefs.h
<<\EOF
3679 #define HAVE_ALLOCA_H 1
3684 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3685 echo "configure:3686: checking for alloca" >&5
3686 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3689 cat > conftest.
$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3694 # define alloca __builtin_alloca
3697 # include <malloc.h>
3698 # define alloca _alloca
3701 # include <alloca.h>
3706 # ifndef alloca /* predefined by HP cc +Olibcalls */
3715 char *p = (char *) alloca(1);
3718 if { (eval echo configure
:3719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3720 ac_cv_func_alloca_works
=yes
3722 echo "configure: failed program was:" >&5
3723 cat conftest.
$ac_ext >&5
3725 ac_cv_func_alloca_works
=no
3730 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3731 if test $ac_cv_func_alloca_works = yes; then
3732 cat >> confdefs.h
<<\EOF
3733 #define HAVE_ALLOCA 1
3738 if test $ac_cv_func_alloca_works = no
; then
3739 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3740 # that cause trouble. Some versions do not even contain alloca or
3741 # contain a buggy version. If you still want to use their alloca,
3742 # use ar to extract alloca.o from them instead of compiling alloca.c.
3743 ALLOCA
=alloca.
${ac_objext}
3744 cat >> confdefs.h
<<\EOF
3749 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3750 echo "configure:3751: checking whether alloca needs Cray hooks" >&5
3751 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3754 cat > conftest.
$ac_ext <<EOF
3755 #line 3756 "configure"
3756 #include "confdefs.h"
3757 #if defined(CRAY) && ! defined(CRAY2)
3764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3765 egrep "webecray" >/dev
/null
2>&1; then
3776 echo "$ac_t""$ac_cv_os_cray" 1>&6
3777 if test $ac_cv_os_cray = yes; then
3778 for ac_func
in _getb67 GETB67 getb67
; do
3779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3780 echo "configure:3781: checking for $ac_func" >&5
3781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3784 cat > conftest.
$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3787 /* System header to define __stub macros and hopefully few prototypes,
3788 which can conflict with char $ac_func(); below. */
3790 /* Override any gcc2 internal prototype to avoid an error. */
3791 /* We use char because int might match the return type of a gcc2
3792 builtin and then its argument prototype would still apply. */
3797 /* The GNU C library defines this for functions which it implements
3798 to always fail with ENOSYS. Some functions are actually named
3799 something starting with __ and the normal name is an alias. */
3800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3808 if { (eval echo configure
:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3810 eval "ac_cv_func_$ac_func=yes"
3812 echo "configure: failed program was:" >&5
3813 cat conftest.
$ac_ext >&5
3815 eval "ac_cv_func_$ac_func=no"
3820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3821 echo "$ac_t""yes" 1>&6
3822 cat >> confdefs.h
<<EOF
3823 #define CRAY_STACKSEG_END $ac_func
3828 echo "$ac_t""no" 1>&6
3834 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3835 echo "configure:3836: checking stack direction for C alloca" >&5
3836 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3837 echo $ac_n "(cached) $ac_c" 1>&6
3839 if test "$cross_compiling" = yes; then
3840 ac_cv_c_stack_direction
=0
3842 cat > conftest.
$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3845 find_stack_direction ()
3847 static char *addr = 0;
3852 return find_stack_direction ();
3855 return (&dummy > addr) ? 1 : -1;
3859 exit (find_stack_direction() < 0);
3862 if { (eval echo configure
:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3864 ac_cv_c_stack_direction
=1
3866 echo "configure: failed program was:" >&5
3867 cat conftest.
$ac_ext >&5
3869 ac_cv_c_stack_direction
=-1
3876 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3877 cat >> confdefs.h
<<EOF
3878 #define STACK_DIRECTION $ac_cv_c_stack_direction
3883 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3884 echo "configure:3885: checking for pid_t" >&5
3885 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3888 cat > conftest.
$ac_ext <<EOF
3889 #line 3890 "configure"
3890 #include "confdefs.h"
3891 #include <sys/types.h>
3897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3898 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3900 ac_cv_type_pid_t
=yes
3908 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3909 if test $ac_cv_type_pid_t = no
; then
3910 cat >> confdefs.h
<<\EOF
3916 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3917 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3918 echo "configure:3919: checking for vfork.h" >&5
3919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3920 echo $ac_n "(cached) $ac_c" 1>&6
3922 cat > conftest.
$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3927 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3928 { (eval echo configure
:3929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3929 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3930 if test -z "$ac_err"; then
3932 eval "ac_cv_header_$ac_safe=yes"
3935 echo "configure: failed program was:" >&5
3936 cat conftest.
$ac_ext >&5
3938 eval "ac_cv_header_$ac_safe=no"
3942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3943 echo "$ac_t""yes" 1>&6
3944 cat >> confdefs.h
<<\EOF
3945 #define HAVE_VFORK_H 1
3949 echo "$ac_t""no" 1>&6
3952 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3953 echo "configure:3954: checking for working vfork" >&5
3954 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 if test "$cross_compiling" = yes; then
3958 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3959 echo "configure:3960: checking for vfork" >&5
3960 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3961 echo $ac_n "(cached) $ac_c" 1>&6
3963 cat > conftest.
$ac_ext <<EOF
3964 #line 3965 "configure"
3965 #include "confdefs.h"
3966 /* System header to define __stub macros and hopefully few prototypes,
3967 which can conflict with char vfork(); below. */
3969 /* Override any gcc2 internal prototype to avoid an error. */
3970 /* We use char because int might match the return type of a gcc2
3971 builtin and then its argument prototype would still apply. */
3976 /* The GNU C library defines this for functions which it implements
3977 to always fail with ENOSYS. Some functions are actually named
3978 something starting with __ and the normal name is an alias. */
3979 #if defined (__stub_vfork) || defined (__stub___vfork)
3987 if { (eval echo configure
:3988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3989 eval "ac_cv_func_vfork=yes"
3991 echo "configure: failed program was:" >&5
3992 cat conftest.
$ac_ext >&5
3994 eval "ac_cv_func_vfork=no"
3999 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
4000 echo "$ac_t""yes" 1>&6
4003 echo "$ac_t""no" 1>&6
4006 ac_cv_func_vfork_works
=$ac_cv_func_vfork
4008 cat > conftest.
$ac_ext <<EOF
4009 #line 4010 "configure"
4010 #include "confdefs.h"
4011 /* Thanks to Paul Eggert for this test. */
4013 #include <sys/types.h>
4014 #include <sys/stat.h>
4015 #ifdef HAVE_UNISTD_H
4021 /* On some sparc systems, changes by the child to local and incoming
4022 argument registers are propagated back to the parent.
4023 The compiler is told about this with #include <vfork.h>,
4024 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
4025 Test for this by using a static variable whose address
4026 is put into a register that is clobbered by the vfork. */
4029 sparc_address_test (int arg)
4031 sparc_address_test (arg) int arg;
4049 pid_t parent = getpid ();
4052 sparc_address_test ();
4057 /* Here is another test for sparc vfork register problems.
4058 This test uses lots of local variables, at least
4059 as many local variables as main has allocated so far
4060 including compiler temporaries. 4 locals are enough for
4061 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
4062 A buggy compiler should reuse the register of parent
4063 for one of the local variables, since it will think that
4064 parent can't possibly be used any more in this routine.
4065 Assigning to the local variable will thus munge parent
4066 in the parent process. */
4068 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4069 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4070 /* Convince the compiler that p..p7 are live; otherwise, it might
4071 use the same hardware register for all 8 local variables. */
4072 if (p != p1 || p != p2 || p != p3 || p != p4
4073 || p != p5 || p != p6 || p != p7)
4076 /* On some systems (e.g. IRIX 3.3),
4077 vfork doesn't separate parent from child file descriptors.
4078 If the child closes a descriptor before it execs or exits,
4079 this munges the parent's descriptor as well.
4080 Test for this by closing stdout in the child. */
4081 _exit(close(fileno(stdout)) != 0);
4086 while (wait(&status) != child)
4089 /* Was there some problem with vforking? */
4092 /* Did the child fail? (This shouldn't happen.) */
4095 /* Did the vfork/compiler bug occur? */
4096 || parent != getpid()
4098 /* Did the file descriptor bug occur? */
4099 || fstat(fileno(stdout), &st) != 0
4104 if { (eval echo configure
:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4106 ac_cv_func_vfork_works
=yes
4108 echo "configure: failed program was:" >&5
4109 cat conftest.
$ac_ext >&5
4111 ac_cv_func_vfork_works
=no
4118 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
4119 if test $ac_cv_func_vfork_works = no
; then
4120 cat >> confdefs.h
<<\EOF
4126 if test "$cross_compiling" = no
; then
4127 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4128 echo "configure:4129: checking whether setpgrp takes no argument" >&5
4129 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4132 if test "$cross_compiling" = yes; then
4133 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
4135 cat > conftest.
$ac_ext <<EOF
4136 #line 4137 "configure"
4137 #include "confdefs.h"
4139 #ifdef HAVE_UNISTD_H
4144 * If this system has a BSD-style setpgrp, which takes arguments, exit
4149 if (setpgrp(1,1) == -1)
4156 if { (eval echo configure
:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4158 ac_cv_func_setpgrp_void
=no
4160 echo "configure: failed program was:" >&5
4161 cat conftest.
$ac_ext >&5
4163 ac_cv_func_setpgrp_void
=yes
4171 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
4172 if test $ac_cv_func_setpgrp_void = yes; then
4173 cat >> confdefs.h
<<\EOF
4174 #define SETPGRP_VOID 1
4180 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4181 echo "configure:4182: checking whether setpgrp takes no argument" >&5
4182 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4185 cat > conftest.
$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4193 if (setpgrp(1,1) == -1)
4200 if { (eval echo configure
:4201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4202 ac_cv_func_setpgrp_void
=no
4204 echo "configure: failed program was:" >&5
4205 cat conftest.
$ac_ext >&5
4207 ac_cv_func_setpgrp_void
=yes
4212 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
4213 if test $ac_cv_func_setpgrp_void = yes; then
4214 cat >> confdefs.h
<<\EOF
4215 #define SETPGRP_VOID 1
4221 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
4222 # since sigsetjmp might only be defined as a macro.
4223 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
4224 echo "configure:4225: checking for sigsetjmp" >&5
4225 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4228 cat > conftest.
$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4235 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
4238 if { (eval echo configure
:4239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4240 gdb_cv_func_sigsetjmp
=yes
4242 echo "configure: failed program was:" >&5
4243 cat conftest.
$ac_ext >&5
4245 gdb_cv_func_sigsetjmp
=no
4250 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
4251 if test $gdb_cv_func_sigsetjmp = yes; then
4252 cat >> confdefs.h
<<\EOF
4253 #define HAVE_SIGSETJMP 1
4258 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
4259 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
4260 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
4261 echo "configure:4262: checking for r_fs in struct reg" >&5
4262 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
4263 echo $ac_n "(cached) $ac_c" 1>&6
4265 cat > conftest.
$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 #include <machine/reg.h>
4270 struct reg r; r.r_fs;
4273 if { (eval echo configure
:4274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4275 gdb_cv_struct_reg_r_fs
=yes
4277 echo "configure: failed program was:" >&5
4278 cat conftest.
$ac_ext >&5
4280 gdb_cv_struct_reg_r_fs
=no
4285 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
4286 if test $gdb_cv_struct_reg_r_fs = yes; then
4287 cat >> confdefs.h
<<\EOF
4288 #define HAVE_STRUCT_REG_R_FS 1
4292 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
4293 echo "configure:4294: checking for r_gs in struct reg" >&5
4294 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
4295 echo $ac_n "(cached) $ac_c" 1>&6
4297 cat > conftest.
$ac_ext <<EOF
4298 #line 4299 "configure"
4299 #include "confdefs.h"
4300 #include <machine/reg.h>
4302 struct reg r; r.r_gs;
4305 if { (eval echo configure
:4306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4307 gdb_cv_struct_reg_r_gs
=yes
4309 echo "configure: failed program was:" >&5
4310 cat conftest.
$ac_ext >&5
4312 gdb_cv_struct_reg_r_gs
=no
4317 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
4318 if test $gdb_cv_struct_reg_r_gs = yes; then
4319 cat >> confdefs.h
<<\EOF
4320 #define HAVE_STRUCT_REG_R_GS 1
4325 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
4326 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
4327 echo "configure:4328: checking for PTRACE_GETREGS" >&5
4328 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4331 cat > conftest.
$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4334 #include <sys/ptrace.h>
4339 if { (eval echo configure
:4340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4341 gdb_cv_have_ptrace_getregs
=yes
4343 echo "configure: failed program was:" >&5
4344 cat conftest.
$ac_ext >&5
4346 gdb_cv_have_ptrace_getregs
=no
4351 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
4352 if test $gdb_cv_have_ptrace_getregs = yes; then
4353 cat >> confdefs.h
<<\EOF
4354 #define HAVE_PTRACE_GETREGS 1
4359 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
4360 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
4361 echo "configure:4362: checking for PTRACE_GETFPXREGS" >&5
4362 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
4363 echo $ac_n "(cached) $ac_c" 1>&6
4365 cat > conftest.
$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4368 #include <sys/ptrace.h>
4373 if { (eval echo configure
:4374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4375 gdb_cv_have_ptrace_getfpxregs
=yes
4377 echo "configure: failed program was:" >&5
4378 cat conftest.
$ac_ext >&5
4380 gdb_cv_have_ptrace_getfpxregs
=no
4385 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
4386 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
4387 cat >> confdefs.h
<<\EOF
4388 #define HAVE_PTRACE_GETFPXREGS 1
4393 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
4394 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
4395 echo "configure:4396: checking for PT_GETDBREGS" >&5
4396 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
4397 echo $ac_n "(cached) $ac_c" 1>&6
4399 cat > conftest.
$ac_ext <<EOF
4400 #line 4401 "configure"
4401 #include "confdefs.h"
4402 #include <sys/types.h>
4403 #include <sys/ptrace.h>
4408 if { (eval echo configure
:4409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4410 gdb_cv_have_pt_getdbregs
=yes
4412 echo "configure: failed program was:" >&5
4413 cat conftest.
$ac_ext >&5
4415 gdb_cv_have_pt_getdbregs
=no
4420 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
4421 if test $gdb_cv_have_pt_getdbregs = yes; then
4422 cat >> confdefs.h
<<\EOF
4423 #define HAVE_PT_GETDBREGS 1
4428 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
4429 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
4430 echo "configure:4431: checking for PT_GETXMMREGS" >&5
4431 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
4432 echo $ac_n "(cached) $ac_c" 1>&6
4434 cat > conftest.
$ac_ext <<EOF
4435 #line 4436 "configure"
4436 #include "confdefs.h"
4437 #include <sys/types.h>
4438 #include <sys/ptrace.h>
4443 if { (eval echo configure
:4444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4445 gdb_cv_have_pt_getxmmregs
=yes
4447 echo "configure: failed program was:" >&5
4448 cat conftest.
$ac_ext >&5
4450 gdb_cv_have_pt_getxmmregs
=no
4455 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
4456 if test $gdb_cv_have_pt_getxmmregs = yes; then
4457 cat >> confdefs.h
<<\EOF
4458 #define HAVE_PT_GETXMMREGS 1
4464 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
4465 echo "configure:4466: checking for socketpair in -lsocket" >&5
4466 ac_lib_var
=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
4467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4470 ac_save_LIBS
="$LIBS"
4471 LIBS
="-lsocket $LIBS"
4472 cat > conftest.
$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4475 /* Override any gcc2 internal prototype to avoid an error. */
4476 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */
4484 if { (eval echo configure
:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4486 eval "ac_cv_lib_$ac_lib_var=yes"
4488 echo "configure: failed program was:" >&5
4489 cat conftest.
$ac_ext >&5
4491 eval "ac_cv_lib_$ac_lib_var=no"
4494 LIBS
="$ac_save_LIBS"
4497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4498 echo "$ac_t""yes" 1>&6
4499 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4500 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4501 cat >> confdefs.h
<<EOF
4502 #define $ac_tr_lib 1
4505 LIBS
="-lsocket $LIBS"
4508 echo "$ac_t""no" 1>&6
4511 for ac_func
in socketpair
4513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4514 echo "configure:4515: checking for $ac_func" >&5
4515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4518 cat > conftest.
$ac_ext <<EOF
4519 #line 4520 "configure"
4520 #include "confdefs.h"
4521 /* System header to define __stub macros and hopefully few prototypes,
4522 which can conflict with char $ac_func(); below. */
4524 /* Override any gcc2 internal prototype to avoid an error. */
4525 /* We use char because int might match the return type of a gcc2
4526 builtin and then its argument prototype would still apply. */
4531 /* The GNU C library defines this for functions which it implements
4532 to always fail with ENOSYS. Some functions are actually named
4533 something starting with __ and the normal name is an alias. */
4534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4542 if { (eval echo configure
:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4544 eval "ac_cv_func_$ac_func=yes"
4546 echo "configure: failed program was:" >&5
4547 cat conftest.
$ac_ext >&5
4549 eval "ac_cv_func_$ac_func=no"
4554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4555 echo "$ac_t""yes" 1>&6
4556 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4557 cat >> confdefs.h
<<EOF
4558 #define $ac_tr_func 1
4562 echo "$ac_t""no" 1>&6
4568 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4569 echo "configure:4570: checking whether malloc must be declared" >&5
4570 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4571 echo $ac_n "(cached) $ac_c" 1>&6
4573 cat > conftest.
$ac_ext <<EOF
4574 #line 4575 "configure"
4575 #include "confdefs.h"
4578 #ifdef HAVE_STRING_H
4581 #ifdef HAVE_STRINGS_H
4582 #include <strings.h>
4585 #ifdef HAVE_STDLIB_H
4588 #ifdef HAVE_UNISTD_H
4592 char *(*pfn) = (char *(*)) malloc
4595 if { (eval echo configure
:4596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4597 bfd_cv_decl_needed_malloc
=no
4599 echo "configure: failed program was:" >&5
4600 cat conftest.
$ac_ext >&5
4602 bfd_cv_decl_needed_malloc
=yes
4607 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4608 if test $bfd_cv_decl_needed_malloc = yes; then
4609 cat >> confdefs.h
<<\EOF
4610 #define NEED_DECLARATION_MALLOC 1
4615 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4616 echo "configure:4617: checking whether realloc must be declared" >&5
4617 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4618 echo $ac_n "(cached) $ac_c" 1>&6
4620 cat > conftest.
$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4625 #ifdef HAVE_STRING_H
4628 #ifdef HAVE_STRINGS_H
4629 #include <strings.h>
4632 #ifdef HAVE_STDLIB_H
4635 #ifdef HAVE_UNISTD_H
4639 char *(*pfn) = (char *(*)) realloc
4642 if { (eval echo configure
:4643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4644 bfd_cv_decl_needed_realloc
=no
4646 echo "configure: failed program was:" >&5
4647 cat conftest.
$ac_ext >&5
4649 bfd_cv_decl_needed_realloc
=yes
4654 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4655 if test $bfd_cv_decl_needed_realloc = yes; then
4656 cat >> confdefs.h
<<\EOF
4657 #define NEED_DECLARATION_REALLOC 1
4662 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4663 echo "configure:4664: checking whether free must be declared" >&5
4664 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4665 echo $ac_n "(cached) $ac_c" 1>&6
4667 cat > conftest.
$ac_ext <<EOF
4668 #line 4669 "configure"
4669 #include "confdefs.h"
4672 #ifdef HAVE_STRING_H
4675 #ifdef HAVE_STRINGS_H
4676 #include <strings.h>
4679 #ifdef HAVE_STDLIB_H
4682 #ifdef HAVE_UNISTD_H
4686 char *(*pfn) = (char *(*)) free
4689 if { (eval echo configure
:4690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4691 bfd_cv_decl_needed_free
=no
4693 echo "configure: failed program was:" >&5
4694 cat conftest.
$ac_ext >&5
4696 bfd_cv_decl_needed_free
=yes
4701 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4702 if test $bfd_cv_decl_needed_free = yes; then
4703 cat >> confdefs.h
<<\EOF
4704 #define NEED_DECLARATION_FREE 1
4709 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4710 echo "configure:4711: checking whether strerror must be declared" >&5
4711 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4712 echo $ac_n "(cached) $ac_c" 1>&6
4714 cat > conftest.
$ac_ext <<EOF
4715 #line 4716 "configure"
4716 #include "confdefs.h"
4719 #ifdef HAVE_STRING_H
4722 #ifdef HAVE_STRINGS_H
4723 #include <strings.h>
4726 #ifdef HAVE_STDLIB_H
4729 #ifdef HAVE_UNISTD_H
4733 char *(*pfn) = (char *(*)) strerror
4736 if { (eval echo configure
:4737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4738 bfd_cv_decl_needed_strerror
=no
4740 echo "configure: failed program was:" >&5
4741 cat conftest.
$ac_ext >&5
4743 bfd_cv_decl_needed_strerror
=yes
4748 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4749 if test $bfd_cv_decl_needed_strerror = yes; then
4750 cat >> confdefs.h
<<\EOF
4751 #define NEED_DECLARATION_STRERROR 1
4756 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4757 echo "configure:4758: checking whether strdup must be declared" >&5
4758 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4759 echo $ac_n "(cached) $ac_c" 1>&6
4761 cat > conftest.
$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4766 #ifdef HAVE_STRING_H
4769 #ifdef HAVE_STRINGS_H
4770 #include <strings.h>
4773 #ifdef HAVE_STDLIB_H
4776 #ifdef HAVE_UNISTD_H
4780 char *(*pfn) = (char *(*)) strdup
4783 if { (eval echo configure
:4784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4785 bfd_cv_decl_needed_strdup
=no
4787 echo "configure: failed program was:" >&5
4788 cat conftest.
$ac_ext >&5
4790 bfd_cv_decl_needed_strdup
=yes
4795 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4796 if test $bfd_cv_decl_needed_strdup = yes; then
4797 cat >> confdefs.h
<<\EOF
4798 #define NEED_DECLARATION_STRDUP 1
4803 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4804 echo "configure:4805: checking whether strstr must be declared" >&5
4805 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4806 echo $ac_n "(cached) $ac_c" 1>&6
4808 cat > conftest.
$ac_ext <<EOF
4809 #line 4810 "configure"
4810 #include "confdefs.h"
4813 #ifdef HAVE_STRING_H
4816 #ifdef HAVE_STRINGS_H
4817 #include <strings.h>
4820 #ifdef HAVE_STDLIB_H
4823 #ifdef HAVE_UNISTD_H
4827 char *(*pfn) = (char *(*)) strstr
4830 if { (eval echo configure
:4831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4832 bfd_cv_decl_needed_strstr
=no
4834 echo "configure: failed program was:" >&5
4835 cat conftest.
$ac_ext >&5
4837 bfd_cv_decl_needed_strstr
=yes
4842 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4843 if test $bfd_cv_decl_needed_strstr = yes; then
4844 cat >> confdefs.h
<<\EOF
4845 #define NEED_DECLARATION_STRSTR 1
4850 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
4851 echo "configure:4852: checking whether canonicalize_file_name must be declared" >&5
4852 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
4853 echo $ac_n "(cached) $ac_c" 1>&6
4855 cat > conftest.
$ac_ext <<EOF
4856 #line 4857 "configure"
4857 #include "confdefs.h"
4860 #ifdef HAVE_STRING_H
4863 #ifdef HAVE_STRINGS_H
4864 #include <strings.h>
4867 #ifdef HAVE_STDLIB_H
4870 #ifdef HAVE_UNISTD_H
4874 char *(*pfn) = (char *(*)) canonicalize_file_name
4877 if { (eval echo configure
:4878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4879 bfd_cv_decl_needed_canonicalize_file_name
=no
4881 echo "configure: failed program was:" >&5
4882 cat conftest.
$ac_ext >&5
4884 bfd_cv_decl_needed_canonicalize_file_name
=yes
4889 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
4890 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
4891 cat >> confdefs.h
<<\EOF
4892 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
4898 # The following save_state_t checkery is only necessary for HPUX
4899 # versions earlier than 10.20. When those fade from memory, this
4900 # could be expunged. --jsm 1999-03-22
4902 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4903 echo "configure:4904: checking for HPUX save_state structure" >&5
4904 cat > conftest.
$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4907 #include <machine/save_state.h>
4909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4910 egrep "save_state_t" >/dev
/null
2>&1; then
4912 gdb_cv_hpux_savestate
=yes
4915 gdb_cv_hpux_savestate
=no
4919 cat > conftest.
$ac_ext <<EOF
4920 #line 4921 "configure"
4921 #include "confdefs.h"
4922 #include <machine/save_state.h>
4924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4925 egrep "ss_wide" >/dev
/null
2>&1; then
4927 gdb_cv_hpux_sswide
=yes
4930 gdb_cv_hpux_sswide
=no
4934 if test $gdb_cv_hpux_savestate = yes
4936 cat >> confdefs.h
<<\EOF
4937 #define HAVE_STRUCT_SAVE_STATE_T 1
4941 if test $gdb_cv_hpux_sswide = yes
4943 cat >> confdefs.h
<<\EOF
4944 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4948 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4951 # If we are configured native on GNU/Linux, work around problems with
4953 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4955 if test "${target}" = "${host}"; then
4958 cat >> confdefs.h
<<\EOF
4959 #define START_INFERIOR_TRAPS_EXPECTED 2
4962 cat >> confdefs.h
<<\EOF
4963 #define sys_quotactl 1
4968 cat >> confdefs.h
<<\EOF
4969 #define NEW_PROC_API 1
4973 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5*)
4974 cat >> confdefs.h
<<\EOF
4975 #define NEW_PROC_API 1
4980 cat >> confdefs.h
<<\EOF
4981 #define NEW_PROC_API 1
4988 if test "$ac_cv_header_sys_procfs_h" = yes; then
4989 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4990 echo "configure:4991: checking for pstatus_t in sys/procfs.h" >&5
4991 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4992 echo $ac_n "(cached) $ac_c" 1>&6
4994 cat > conftest.
$ac_ext <<EOF
4995 #line 4996 "configure"
4996 #include "confdefs.h"
4999 #include <sys/procfs.h>
5004 if { (eval echo configure
:5005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5006 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
5008 echo "configure: failed program was:" >&5
5009 cat conftest.
$ac_ext >&5
5011 bfd_cv_have_sys_procfs_type_pstatus_t
=no
5017 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5018 cat >> confdefs.h
<<\EOF
5019 #define HAVE_PSTATUS_T 1
5023 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5025 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
5026 echo "configure:5027: checking for prrun_t in sys/procfs.h" >&5
5027 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
5028 echo $ac_n "(cached) $ac_c" 1>&6
5030 cat > conftest.
$ac_ext <<EOF
5031 #line 5032 "configure"
5032 #include "confdefs.h"
5035 #include <sys/procfs.h>
5040 if { (eval echo configure
:5041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5042 bfd_cv_have_sys_procfs_type_prrun_t
=yes
5044 echo "configure: failed program was:" >&5
5045 cat conftest.
$ac_ext >&5
5047 bfd_cv_have_sys_procfs_type_prrun_t
=no
5053 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
5054 cat >> confdefs.h
<<\EOF
5055 #define HAVE_PRRUN_T 1
5059 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
5061 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
5062 echo "configure:5063: checking for gregset_t in sys/procfs.h" >&5
5063 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
5064 echo $ac_n "(cached) $ac_c" 1>&6
5066 cat > conftest.
$ac_ext <<EOF
5067 #line 5068 "configure"
5068 #include "confdefs.h"
5071 #include <sys/procfs.h>
5076 if { (eval echo configure
:5077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5078 bfd_cv_have_sys_procfs_type_gregset_t
=yes
5080 echo "configure: failed program was:" >&5
5081 cat conftest.
$ac_ext >&5
5083 bfd_cv_have_sys_procfs_type_gregset_t
=no
5089 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
5090 cat >> confdefs.h
<<\EOF
5091 #define HAVE_GREGSET_T 1
5095 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
5097 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
5098 echo "configure:5099: checking for fpregset_t in sys/procfs.h" >&5
5099 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
5100 echo $ac_n "(cached) $ac_c" 1>&6
5102 cat > conftest.
$ac_ext <<EOF
5103 #line 5104 "configure"
5104 #include "confdefs.h"
5107 #include <sys/procfs.h>
5112 if { (eval echo configure
:5113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5114 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
5116 echo "configure: failed program was:" >&5
5117 cat conftest.
$ac_ext >&5
5119 bfd_cv_have_sys_procfs_type_fpregset_t
=no
5125 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
5126 cat >> confdefs.h
<<\EOF
5127 #define HAVE_FPREGSET_T 1
5131 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
5133 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
5134 echo "configure:5135: checking for prgregset_t in sys/procfs.h" >&5
5135 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
5136 echo $ac_n "(cached) $ac_c" 1>&6
5138 cat > conftest.
$ac_ext <<EOF
5139 #line 5140 "configure"
5140 #include "confdefs.h"
5143 #include <sys/procfs.h>
5148 if { (eval echo configure
:5149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5150 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
5152 echo "configure: failed program was:" >&5
5153 cat conftest.
$ac_ext >&5
5155 bfd_cv_have_sys_procfs_type_prgregset_t
=no
5161 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
5162 cat >> confdefs.h
<<\EOF
5163 #define HAVE_PRGREGSET_T 1
5167 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
5169 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
5170 echo "configure:5171: checking for prfpregset_t in sys/procfs.h" >&5
5171 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
5172 echo $ac_n "(cached) $ac_c" 1>&6
5174 cat > conftest.
$ac_ext <<EOF
5175 #line 5176 "configure"
5176 #include "confdefs.h"
5179 #include <sys/procfs.h>
5184 if { (eval echo configure
:5185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5186 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
5188 echo "configure: failed program was:" >&5
5189 cat conftest.
$ac_ext >&5
5191 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
5197 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
5198 cat >> confdefs.h
<<\EOF
5199 #define HAVE_PRFPREGSET_T 1
5203 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
5205 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
5206 echo "configure:5207: checking for prgregset32_t in sys/procfs.h" >&5
5207 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
5208 echo $ac_n "(cached) $ac_c" 1>&6
5210 cat > conftest.
$ac_ext <<EOF
5211 #line 5212 "configure"
5212 #include "confdefs.h"
5215 #include <sys/procfs.h>
5220 if { (eval echo configure
:5221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5222 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
5224 echo "configure: failed program was:" >&5
5225 cat conftest.
$ac_ext >&5
5227 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
5233 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
5234 cat >> confdefs.h
<<\EOF
5235 #define HAVE_PRGREGSET32_T 1
5239 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
5241 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
5242 echo "configure:5243: checking for prfpregset32_t in sys/procfs.h" >&5
5243 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
5244 echo $ac_n "(cached) $ac_c" 1>&6
5246 cat > conftest.
$ac_ext <<EOF
5247 #line 5248 "configure"
5248 #include "confdefs.h"
5251 #include <sys/procfs.h>
5256 if { (eval echo configure
:5257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5258 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
5260 echo "configure: failed program was:" >&5
5261 cat conftest.
$ac_ext >&5
5263 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
5269 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
5270 cat >> confdefs.h
<<\EOF
5271 #define HAVE_PRFPREGSET32_T 1
5275 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
5277 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
5278 echo "configure:5279: checking for lwpid_t in sys/procfs.h" >&5
5279 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5282 cat > conftest.
$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5287 #include <sys/procfs.h>
5292 if { (eval echo configure
:5293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5294 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
5296 echo "configure: failed program was:" >&5
5297 cat conftest.
$ac_ext >&5
5299 bfd_cv_have_sys_procfs_type_lwpid_t
=no
5305 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
5306 cat >> confdefs.h
<<\EOF
5307 #define HAVE_LWPID_T 1
5311 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
5313 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
5314 echo "configure:5315: checking for psaddr_t in sys/procfs.h" >&5
5315 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
5316 echo $ac_n "(cached) $ac_c" 1>&6
5318 cat > conftest.
$ac_ext <<EOF
5319 #line 5320 "configure"
5320 #include "confdefs.h"
5323 #include <sys/procfs.h>
5328 if { (eval echo configure
:5329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5330 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
5332 echo "configure: failed program was:" >&5
5333 cat conftest.
$ac_ext >&5
5335 bfd_cv_have_sys_procfs_type_psaddr_t
=no
5341 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
5342 cat >> confdefs.h
<<\EOF
5343 #define HAVE_PSADDR_T 1
5347 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
5349 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
5350 echo "configure:5351: checking for prsysent_t in sys/procfs.h" >&5
5351 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
5352 echo $ac_n "(cached) $ac_c" 1>&6
5354 cat > conftest.
$ac_ext <<EOF
5355 #line 5356 "configure"
5356 #include "confdefs.h"
5359 #include <sys/procfs.h>
5364 if { (eval echo configure
:5365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5366 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
5368 echo "configure: failed program was:" >&5
5369 cat conftest.
$ac_ext >&5
5371 bfd_cv_have_sys_procfs_type_prsysent_t
=no
5377 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
5378 cat >> confdefs.h
<<\EOF
5379 #define HAVE_PRSYSENT_T 1
5383 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
5385 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
5386 echo "configure:5387: checking for pr_sigset_t in sys/procfs.h" >&5
5387 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
5388 echo $ac_n "(cached) $ac_c" 1>&6
5390 cat > conftest.
$ac_ext <<EOF
5391 #line 5392 "configure"
5392 #include "confdefs.h"
5395 #include <sys/procfs.h>
5400 if { (eval echo configure
:5401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5402 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
5404 echo "configure: failed program was:" >&5
5405 cat conftest.
$ac_ext >&5
5407 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
5413 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
5414 cat >> confdefs.h
<<\EOF
5415 #define HAVE_PR_SIGSET_T 1
5419 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
5421 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
5422 echo "configure:5423: checking for pr_sigaction64_t in sys/procfs.h" >&5
5423 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
5424 echo $ac_n "(cached) $ac_c" 1>&6
5426 cat > conftest.
$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5431 #include <sys/procfs.h>
5433 pr_sigaction64_t avar
5436 if { (eval echo configure
:5437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5438 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
5440 echo "configure: failed program was:" >&5
5441 cat conftest.
$ac_ext >&5
5443 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
5449 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
5450 cat >> confdefs.h
<<\EOF
5451 #define HAVE_PR_SIGACTION64_T 1
5455 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
5457 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
5458 echo "configure:5459: checking for pr_siginfo64_t in sys/procfs.h" >&5
5459 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
5460 echo $ac_n "(cached) $ac_c" 1>&6
5462 cat > conftest.
$ac_ext <<EOF
5463 #line 5464 "configure"
5464 #include "confdefs.h"
5467 #include <sys/procfs.h>
5472 if { (eval echo configure
:5473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5474 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
5476 echo "configure: failed program was:" >&5
5477 cat conftest.
$ac_ext >&5
5479 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
5485 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
5486 cat >> confdefs.h
<<\EOF
5487 #define HAVE_PR_SIGINFO64_T 1
5491 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
5497 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
5498 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
5499 echo "configure:5500: checking whether prfpregset_t type is broken" >&5
5500 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
5501 echo $ac_n "(cached) $ac_c" 1>&6
5503 if test "$cross_compiling" = yes; then
5504 gdb_cv_prfpregset_t_broken
=yes
5506 cat > conftest.
$ac_ext <<EOF
5507 #line 5508 "configure"
5508 #include "confdefs.h"
5509 #include <sys/procfs.h>
5512 if (sizeof (prfpregset_t) == sizeof (void *))
5517 if { (eval echo configure
:5518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5519 gdb_cv_prfpregset_t_broken
=no
5521 echo "configure: failed program was:" >&5
5522 cat conftest.
$ac_ext >&5
5524 gdb_cv_prfpregset_t_broken
=yes
5531 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
5532 if test $gdb_cv_prfpregset_t_broken = yes; then
5533 cat >> confdefs.h
<<\EOF
5534 #define PRFPREGSET_T_BROKEN 1
5541 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
5542 echo "configure:5543: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
5543 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
5544 echo $ac_n "(cached) $ac_c" 1>&6
5546 cat > conftest.
$ac_ext <<EOF
5547 #line 5548 "configure"
5548 #include "confdefs.h"
5550 #include <sys/types.h>
5551 #include <sys/procfs.h>
5556 dummy = ioctl(0, PIOCSET, &dummy);
5560 if { (eval echo configure
:5561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5562 gdb_cv_have_procfs_piocset
=yes
5564 echo "configure: failed program was:" >&5
5565 cat conftest.
$ac_ext >&5
5567 gdb_cv_have_procfs_piocset
=no
5572 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
5573 if test $gdb_cv_have_procfs_piocset = yes; then
5574 cat >> confdefs.h
<<\EOF
5575 #define HAVE_PROCFS_PIOCSET 1
5581 if test ${host} = ${target} ; then
5583 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
5584 echo "configure:5585: checking for member l_addr in struct link_map" >&5
5585 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
5586 echo $ac_n "(cached) $ac_c" 1>&6
5588 cat > conftest.
$ac_ext <<EOF
5589 #line 5590 "configure"
5590 #include "confdefs.h"
5593 struct link_map lm; (void) lm.l_addr;
5596 if { (eval echo configure
:5597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5598 gdb_cv_have_struct_link_map_with_l_members
=yes
5600 echo "configure: failed program was:" >&5
5601 cat conftest.
$ac_ext >&5
5603 gdb_cv_have_struct_link_map_with_l_members
=no
5608 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
5609 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
5610 cat >> confdefs.h
<<\EOF
5611 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
5617 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
5618 echo "configure:5619: checking for member lm_addr in struct link_map" >&5
5619 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
5620 echo $ac_n "(cached) $ac_c" 1>&6
5622 cat > conftest.
$ac_ext <<EOF
5623 #line 5624 "configure"
5624 #include "confdefs.h"
5625 #include <sys/types.h>
5628 struct link_map lm; (void) lm.lm_addr;
5631 if { (eval echo configure
:5632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5633 gdb_cv_have_struct_link_map_with_lm_members
=yes
5635 echo "configure: failed program was:" >&5
5636 cat conftest.
$ac_ext >&5
5638 gdb_cv_have_struct_link_map_with_lm_members
=no
5643 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
5644 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
5645 cat >> confdefs.h
<<\EOF
5646 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
5652 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
5653 echo "configure:5654: checking for member som_addr in struct so_map" >&5
5654 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
5655 echo $ac_n "(cached) $ac_c" 1>&6
5657 cat > conftest.
$ac_ext <<EOF
5658 #line 5659 "configure"
5659 #include "confdefs.h"
5660 #include <sys/types.h>
5666 struct so_map lm; (void) lm.som_addr;
5669 if { (eval echo configure
:5670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5671 gdb_cv_have_struct_so_map_with_som_members
=yes
5673 echo "configure: failed program was:" >&5
5674 cat conftest.
$ac_ext >&5
5676 gdb_cv_have_struct_so_map_with_som_members
=no
5681 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
5682 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
5683 cat >> confdefs.h
<<\EOF
5684 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
5690 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
5691 echo "configure:5692: checking for struct link_map32 in sys/link.h" >&5
5692 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
5693 echo $ac_n "(cached) $ac_c" 1>&6
5695 cat > conftest.
$ac_ext <<EOF
5696 #line 5697 "configure"
5697 #include "confdefs.h"
5699 #include <sys/link.h>
5701 struct link_map32 l;
5704 if { (eval echo configure
:5705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5706 gdb_cv_have_struct_link_map32
=yes
5708 echo "configure: failed program was:" >&5
5709 cat conftest.
$ac_ext >&5
5711 gdb_cv_have_struct_link_map32
=no
5716 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
5717 if test $gdb_cv_have_struct_link_map32 = yes; then
5718 cat >> confdefs.h
<<\EOF
5719 #define HAVE_STRUCT_LINK_MAP32 1
5722 cat >> confdefs.h
<<\EOF
5723 #define _SYSCALL32 1
5729 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5730 echo "configure:5731: checking for main in -lm" >&5
5731 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
5732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5733 echo $ac_n "(cached) $ac_c" 1>&6
5735 ac_save_LIBS
="$LIBS"
5737 cat > conftest.
$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5745 if { (eval echo configure
:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5747 eval "ac_cv_lib_$ac_lib_var=yes"
5749 echo "configure: failed program was:" >&5
5750 cat conftest.
$ac_ext >&5
5752 eval "ac_cv_lib_$ac_lib_var=no"
5755 LIBS
="$ac_save_LIBS"
5758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5759 echo "$ac_t""yes" 1>&6
5760 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5761 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5762 cat >> confdefs.h
<<EOF
5763 #define $ac_tr_lib 1
5769 echo "$ac_t""no" 1>&6
5773 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
5774 echo "configure:5775: checking for wctype in -lc" >&5
5775 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
5776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5777 echo $ac_n "(cached) $ac_c" 1>&6
5779 ac_save_LIBS
="$LIBS"
5781 cat > conftest.
$ac_ext <<EOF
5782 #line 5783 "configure"
5783 #include "confdefs.h"
5784 /* Override any gcc2 internal prototype to avoid an error. */
5785 /* We use char because int might match the return type of a gcc2
5786 builtin and then its argument prototype would still apply. */
5793 if { (eval echo configure
:5794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5795 eval "ac_cv_lib_$ac_lib_var=yes"
5797 echo "configure: failed program was:" >&5
5798 cat conftest.
$ac_ext >&5
5800 eval "ac_cv_lib_$ac_lib_var=no"
5803 LIBS
="$ac_save_LIBS"
5806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5807 echo "$ac_t""yes" 1>&6
5810 echo "$ac_t""no" 1>&6
5811 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
5812 echo "configure:5813: checking for wctype in -lw" >&5
5813 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
5814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5817 ac_save_LIBS
="$LIBS"
5819 cat > conftest.
$ac_ext <<EOF
5820 #line 5821 "configure"
5821 #include "confdefs.h"
5822 /* Override any gcc2 internal prototype to avoid an error. */
5823 /* We use char because int might match the return type of a gcc2
5824 builtin and then its argument prototype would still apply. */
5831 if { (eval echo configure
:5832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5833 eval "ac_cv_lib_$ac_lib_var=yes"
5835 echo "configure: failed program was:" >&5
5836 cat conftest.
$ac_ext >&5
5838 eval "ac_cv_lib_$ac_lib_var=no"
5841 LIBS
="$ac_save_LIBS"
5844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5845 echo "$ac_t""yes" 1>&6
5846 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
5847 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5848 cat >> confdefs.h
<<EOF
5849 #define $ac_tr_lib 1
5855 echo "$ac_t""no" 1>&6
5862 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
5863 echo "configure:5864: checking for long long support in compiler" >&5
5864 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
5865 echo $ac_n "(cached) $ac_c" 1>&6
5867 cat > conftest.
$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5873 extern long long foo;
5874 switch (foo & 2) { case 0: return 1; }
5878 if { (eval echo configure
:5879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5880 gdb_cv_c_long_long
=yes
5882 echo "configure: failed program was:" >&5
5883 cat conftest.
$ac_ext >&5
5885 gdb_cv_c_long_long
=no
5890 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
5891 if test $gdb_cv_c_long_long = yes; then
5892 cat >> confdefs.h
<<\EOF
5893 #define CC_HAS_LONG_LONG 1
5899 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
5900 echo "configure:5901: checking for long long support in printf" >&5
5901 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
5902 echo $ac_n "(cached) $ac_c" 1>&6
5904 if test "$cross_compiling" = yes; then
5905 gdb_cv_printf_has_long_long
=no
5907 cat > conftest.
$ac_ext <<EOF
5908 #line 5909 "configure"
5909 #include "confdefs.h"
5914 l = (l << 16) + 0x0123;
5915 l = (l << 16) + 0x4567;
5916 l = (l << 16) + 0x89ab;
5917 l = (l << 16) + 0xcdef;
5918 sprintf (buf, "0x%016llx", l);
5919 return (strcmp ("0x0123456789abcdef", buf));
5922 if { (eval echo configure
:5923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5924 gdb_cv_printf_has_long_long
=yes
5926 echo "configure: failed program was:" >&5
5927 cat conftest.
$ac_ext >&5
5929 gdb_cv_printf_has_long_long
=no
5936 if test $gdb_cv_printf_has_long_long = yes; then
5937 cat >> confdefs.h
<<\EOF
5938 #define PRINTF_HAS_LONG_LONG 1
5942 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
5945 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
5946 echo "configure:5947: checking for long double support in compiler" >&5
5947 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
5948 echo $ac_n "(cached) $ac_c" 1>&6
5950 cat > conftest.
$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5958 if { (eval echo configure
:5959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5960 ac_cv_c_long_double
=yes
5962 echo "configure: failed program was:" >&5
5963 cat conftest.
$ac_ext >&5
5965 ac_cv_c_long_double
=no
5970 echo "$ac_t""$ac_cv_c_long_double" 1>&6
5971 if test $ac_cv_c_long_double = yes; then
5972 cat >> confdefs.h
<<\EOF
5973 #define HAVE_LONG_DOUBLE 1
5979 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
5980 echo "configure:5981: checking for long double support in printf" >&5
5981 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
5982 echo $ac_n "(cached) $ac_c" 1>&6
5984 if test "$cross_compiling" = yes; then
5985 gdb_cv_printf_has_long_double
=no
5987 cat > conftest.
$ac_ext <<EOF
5988 #line 5989 "configure"
5989 #include "confdefs.h"
5993 long double f = 3.141592653;
5994 sprintf (buf, "%Lg", f);
5995 return (strncmp ("3.14159", buf, 7));
5998 if { (eval echo configure
:5999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6000 gdb_cv_printf_has_long_double
=yes
6002 echo "configure: failed program was:" >&5
6003 cat conftest.
$ac_ext >&5
6005 gdb_cv_printf_has_long_double
=no
6012 if test $gdb_cv_printf_has_long_double = yes; then
6013 cat >> confdefs.h
<<\EOF
6014 #define PRINTF_HAS_LONG_DOUBLE 1
6018 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
6021 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
6022 echo "configure:6023: checking for long double support in scanf" >&5
6023 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
6024 echo $ac_n "(cached) $ac_c" 1>&6
6026 if test "$cross_compiling" = yes; then
6027 gdb_cv_scanf_has_long_double
=no
6029 cat > conftest.
$ac_ext <<EOF
6030 #line 6031 "configure"
6031 #include "confdefs.h"
6034 char *buf = "3.141592653";
6036 sscanf (buf, "%Lg", &f);
6037 return !(f > 3.14159 && f < 3.14160);
6040 if { (eval echo configure
:6041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6042 gdb_cv_scanf_has_long_double
=yes
6044 echo "configure: failed program was:" >&5
6045 cat conftest.
$ac_ext >&5
6047 gdb_cv_scanf_has_long_double
=no
6054 if test $gdb_cv_scanf_has_long_double = yes; then
6055 cat >> confdefs.h
<<\EOF
6056 #define SCANF_HAS_LONG_DOUBLE 1
6060 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
6062 for ac_hdr
in unistd.h
6064 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6066 echo "configure:6067: checking for $ac_hdr" >&5
6067 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6068 echo $ac_n "(cached) $ac_c" 1>&6
6070 cat > conftest.
$ac_ext <<EOF
6071 #line 6072 "configure"
6072 #include "confdefs.h"
6075 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6076 { (eval echo configure
:6077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6077 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6078 if test -z "$ac_err"; then
6080 eval "ac_cv_header_$ac_safe=yes"
6083 echo "configure: failed program was:" >&5
6084 cat conftest.
$ac_ext >&5
6086 eval "ac_cv_header_$ac_safe=no"
6090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6091 echo "$ac_t""yes" 1>&6
6092 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6093 cat >> confdefs.h
<<EOF
6094 #define $ac_tr_hdr 1
6098 echo "$ac_t""no" 1>&6
6102 for ac_func
in getpagesize
6104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6105 echo "configure:6106: checking for $ac_func" >&5
6106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6107 echo $ac_n "(cached) $ac_c" 1>&6
6109 cat > conftest.
$ac_ext <<EOF
6110 #line 6111 "configure"
6111 #include "confdefs.h"
6112 /* System header to define __stub macros and hopefully few prototypes,
6113 which can conflict with char $ac_func(); below. */
6115 /* Override any gcc2 internal prototype to avoid an error. */
6116 /* We use char because int might match the return type of a gcc2
6117 builtin and then its argument prototype would still apply. */
6122 /* The GNU C library defines this for functions which it implements
6123 to always fail with ENOSYS. Some functions are actually named
6124 something starting with __ and the normal name is an alias. */
6125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6133 if { (eval echo configure
:6134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6135 eval "ac_cv_func_$ac_func=yes"
6137 echo "configure: failed program was:" >&5
6138 cat conftest.
$ac_ext >&5
6140 eval "ac_cv_func_$ac_func=no"
6145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6146 echo "$ac_t""yes" 1>&6
6147 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6148 cat >> confdefs.h
<<EOF
6149 #define $ac_tr_func 1
6153 echo "$ac_t""no" 1>&6
6157 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6158 echo "configure:6159: checking for working mmap" >&5
6159 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6160 echo $ac_n "(cached) $ac_c" 1>&6
6162 if test "$cross_compiling" = yes; then
6163 ac_cv_func_mmap_fixed_mapped
=no
6165 cat > conftest.
$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6169 /* Thanks to Mike Haertel and Jim Avera for this test.
6170 Here is a matrix of mmap possibilities:
6171 mmap private not fixed
6172 mmap private fixed at somewhere currently unmapped
6173 mmap private fixed at somewhere already mapped
6174 mmap shared not fixed
6175 mmap shared fixed at somewhere currently unmapped
6176 mmap shared fixed at somewhere already mapped
6177 For private mappings, we should verify that changes cannot be read()
6178 back from the file, nor mmap's back from the file at a different
6179 address. (There have been systems where private was not correctly
6180 implemented like the infamous i386 svr4.0, and systems where the
6181 VM page cache was not coherent with the filesystem buffer cache
6182 like early versions of FreeBSD and possibly contemporary NetBSD.)
6183 For shared mappings, we should conversely verify that changes get
6184 propogated back to all the places they're supposed to be.
6186 Grep wants private fixed already mapped.
6187 The main things grep needs to know about mmap are:
6188 * does it exist and is it safe to write into the mmap'd area
6189 * how to use it (BSD variants) */
6190 #include <sys/types.h>
6192 #include <sys/mman.h>
6194 /* This mess was copied from the GNU getpagesize.h. */
6195 #ifndef HAVE_GETPAGESIZE
6196 # ifdef HAVE_UNISTD_H
6197 # include <unistd.h>
6200 /* Assume that all systems that can run configure have sys/param.h. */
6201 # ifndef HAVE_SYS_PARAM_H
6202 # define HAVE_SYS_PARAM_H 1
6205 # ifdef _SC_PAGESIZE
6206 # define getpagesize() sysconf(_SC_PAGESIZE)
6207 # else /* no _SC_PAGESIZE */
6208 # ifdef HAVE_SYS_PARAM_H
6209 # include <sys/param.h>
6210 # ifdef EXEC_PAGESIZE
6211 # define getpagesize() EXEC_PAGESIZE
6212 # else /* no EXEC_PAGESIZE */
6214 # define getpagesize() NBPG * CLSIZE
6217 # endif /* no CLSIZE */
6218 # else /* no NBPG */
6220 # define getpagesize() NBPC
6221 # else /* no NBPC */
6223 # define getpagesize() PAGESIZE
6224 # endif /* PAGESIZE */
6225 # endif /* no NBPC */
6226 # endif /* no NBPG */
6227 # endif /* no EXEC_PAGESIZE */
6228 # else /* no HAVE_SYS_PARAM_H */
6229 # define getpagesize() 8192 /* punt totally */
6230 # endif /* no HAVE_SYS_PARAM_H */
6231 # endif /* no _SC_PAGESIZE */
6233 #endif /* no HAVE_GETPAGESIZE */
6236 extern "C" { void *malloc(unsigned); }
6244 char *data, *data2, *data3;
6248 pagesize = getpagesize();
6251 * First, make a file with some known garbage in it.
6253 data = malloc(pagesize);
6256 for (i = 0; i < pagesize; ++i)
6257 *(data + i) = rand();
6259 fd = creat("conftestmmap", 0600);
6262 if (write(fd, data, pagesize) != pagesize)
6267 * Next, try to mmap the file at a fixed address which
6268 * already has something else allocated at it. If we can,
6269 * also make sure that we see the same garbage.
6271 fd = open("conftestmmap", O_RDWR);
6274 data2 = malloc(2 * pagesize);
6277 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6278 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6279 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6281 for (i = 0; i < pagesize; ++i)
6282 if (*(data + i) != *(data2 + i))
6286 * Finally, make sure that changes to the mapped area
6287 * do not percolate back to the file as seen by read().
6288 * (This is a bug on some variants of i386 svr4.0.)
6290 for (i = 0; i < pagesize; ++i)
6291 *(data2 + i) = *(data2 + i) + 1;
6292 data3 = malloc(pagesize);
6295 if (read(fd, data3, pagesize) != pagesize)
6297 for (i = 0; i < pagesize; ++i)
6298 if (*(data + i) != *(data3 + i))
6301 unlink("conftestmmap");
6306 if { (eval echo configure
:6307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6308 ac_cv_func_mmap_fixed_mapped
=yes
6310 echo "configure: failed program was:" >&5
6311 cat conftest.
$ac_ext >&5
6313 ac_cv_func_mmap_fixed_mapped
=no
6320 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6321 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6322 cat >> confdefs.h
<<\EOF
6331 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
6332 echo "configure:6333: checking for -bbigtoc option" >&5
6333 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
6334 echo $ac_n "(cached) $ac_c" 1>&6
6337 SAVE_LDFLAGS
=$LDFLAGS
6340 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
6341 *) gdb_cv_bigtoc
=-bbigtoc ;;
6344 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
6345 cat > conftest.
$ac_ext <<EOF
6346 #line 6347 "configure"
6347 #include "confdefs.h"
6353 if { (eval echo configure
:6354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6356 echo "configure: failed program was:" >&5
6357 cat conftest.
$ac_ext >&5
6365 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
6366 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
6372 if test ${build} = ${host} -a ${host} = ${target} ; then
6375 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
6376 echo "configure:6377: checking for HPUX/OSF thread support" >&5
6377 if test -f /usr
/include
/dce
/cma_config.h
; then
6378 if test "$GCC" = "yes" ; then
6379 echo "$ac_t""yes" 1>&6
6380 cat >> confdefs.h
<<\EOF
6381 #define HAVE_HPUX_THREAD_SUPPORT 1
6384 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
6385 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
6387 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
6390 echo "$ac_t""no" 1>&6
6394 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
6395 echo "configure:6396: checking for Solaris thread debugging library" >&5
6396 if test -f /usr
/lib
/libthread_db.so
.1 ; then
6397 echo "$ac_t""yes" 1>&6
6398 cat >> confdefs.h
<<\EOF
6399 #define HAVE_THREAD_DB_LIB 1
6402 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
6403 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
6404 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6405 echo "configure:6406: checking for dlopen in -ldl" >&5
6406 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6408 echo $ac_n "(cached) $ac_c" 1>&6
6410 ac_save_LIBS
="$LIBS"
6412 cat > conftest.
$ac_ext <<EOF
6413 #line 6414 "configure"
6414 #include "confdefs.h"
6415 /* Override any gcc2 internal prototype to avoid an error. */
6416 /* We use char because int might match the return type of a gcc2
6417 builtin and then its argument prototype would still apply. */
6424 if { (eval echo configure
:6425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6426 eval "ac_cv_lib_$ac_lib_var=yes"
6428 echo "configure: failed program was:" >&5
6429 cat conftest.
$ac_ext >&5
6431 eval "ac_cv_lib_$ac_lib_var=no"
6434 LIBS
="$ac_save_LIBS"
6437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6438 echo "$ac_t""yes" 1>&6
6439 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6440 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6441 cat >> confdefs.h
<<EOF
6442 #define $ac_tr_lib 1
6448 echo "$ac_t""no" 1>&6
6451 if test "$GCC" = "yes" ; then
6452 # The GNU linker requires the -export-dynamic option to make
6453 # all symbols visible in the dynamic symbol table.
6454 hold_ldflags
=$LDFLAGS
6455 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
6456 echo "configure:6457: checking for the ld -export-dynamic flag" >&5
6457 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
6458 cat > conftest.
$ac_ext <<EOF
6459 #line 6460 "configure"
6460 #include "confdefs.h"
6466 if { (eval echo configure
:6467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6470 echo "configure: failed program was:" >&5
6471 cat conftest.
$ac_ext >&5
6476 LDFLAGS
=$hold_ldflags
6477 echo "$ac_t""$found" 1>&6
6478 if test $found = yes; then
6479 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
6482 # Sun randomly tweaked the prototypes in <proc_service.h>
6484 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
6485 echo "configure:6486: checking if <proc_service.h> is old" >&5
6486 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
6487 echo $ac_n "(cached) $ac_c" 1>&6
6490 cat > conftest.
$ac_ext <<EOF
6491 #line 6492 "configure"
6492 #include "confdefs.h"
6494 #include <proc_service.h>
6496 (struct ps_prochandle*, psaddr_t, const void*, size_t);
6502 if { (eval echo configure
:6503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6504 gdb_cv_proc_service_is_old
=no
6506 echo "configure: failed program was:" >&5
6507 cat conftest.
$ac_ext >&5
6509 gdb_cv_proc_service_is_old
=yes
6515 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
6516 if test $gdb_cv_proc_service_is_old = yes; then
6517 cat >> confdefs.h
<<\EOF
6518 #define PROC_SERVICE_IS_OLD 1
6523 echo "$ac_t""no" 1>&6
6531 # Check whether --enable-gdbcli or --disable-gdbcli was given.
6532 if test "${enable_gdbcli+set}" = set; then
6533 enableval
="$enable_gdbcli"
6535 case "${enableval}" in
6536 yes) enable_gdbcli
=yes ;;
6537 "") enable_gdbcli
=yes ;;
6539 { echo "configure: error: The CLI cannot be disabled yet" 1>&2; exit 1; }
6542 { echo "configure: error: Bad value for --enable-gdbcli: ${enableval}" 1>&2; exit 1; }
6550 case ${enable_gdbcli} in
6552 if test -d "${srcdir}/cli" ; then
6553 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_CLI_OBS)"
6554 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_CLI_DEPS)"
6555 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_CLI_SRCS)"
6556 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_CLI_INITS)"
6557 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_CLI_CFLAGS)"
6558 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_CLI_ALL)"
6559 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_CLI_CLEAN)"
6560 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_CLI_INSTALL)"
6561 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_CLI_UNINSTALL)"
6567 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6568 if test "${enable_gdbmi+set}" = set; then
6569 enableval
="$enable_gdbmi"
6571 case "${enable_gdbmi}" in
6573 "") enable_gdbmi
=yes ;;
6575 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
6583 case ${enable_gdbmi} in
6585 if test -d "${srcdir}/mi" ; then
6586 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
6587 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
6588 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_MI_SRCS)"
6589 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
6590 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
6591 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
6592 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
6593 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
6594 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
6599 # Configure UI_OUT by default (before 5.2 it can be disabled)
6600 # It must be configured if gdbmi is configured
6605 # Check whether --with-uiout or --without-uiout was given.
6606 if test "${with_uiout+set}" = set; then
6607 withval
="$with_uiout"
6608 case "${withval}" in
6609 yes) want_uiout
=true
;;
6610 no
) if test $enable_gdbmi = yes; then
6611 { echo "configure: error: uiout is needed for MI and cannot be disabled" 1>&2; exit 1; }
6615 *) { echo "configure: error: bad value ${withval} for GDB with-uiout option" 1>&2; exit 1; } ;;
6621 if test $want_uiout = true
; then
6622 UIOUT_CFLAGS
="-DUI_OUT=1"
6625 # Check whether --enable-tui or --disable-tui was given.
6626 if test "${enable_tui+set}" = set; then
6627 enableval
="$enable_tui"
6629 case "${enable_tui}" in
6631 "") enable_tui
=yes ;;
6633 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
6639 case ${enable_tui} in
6641 if test -d "${srcdir}/tui" ; then
6642 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_TUI_OBS)"
6643 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_TUI_DEPS)"
6644 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_TUI_SRCS)"
6645 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_TUI_INITS)"
6646 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_TUI_CFLAGS)"
6647 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_TUI_ALL)"
6648 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_TUI_CLEAN)"
6649 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_TUI_INSTALL)"
6650 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_TUI_UNINSTALL)"
6655 # Check whether --enable-netrom or --disable-netrom was given.
6656 if test "${enable_netrom+set}" = set; then
6657 enableval
="$enable_netrom"
6658 case "${enableval}" in
6659 yes) enable_netrom
=yes ;;
6660 no
) enable_netrom
=no
;;
6661 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
6666 if test "${enable_netrom}" = "yes"; then
6667 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} remote-nrom.o"
6668 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
6672 # NOTE: Don't add -Wall or -Wunused, they both include
6673 # -Wunused-parameter which reports bogus warnings.
6674 # NOTE: If you add to this list, remember to update
6675 # gdb/doc/gdbint.texinfo.
6676 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
6677 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
6678 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
6679 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
6680 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
6681 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
6682 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
6683 # -Woverloaded-virtual -Winline -Werror"
6684 # Check whether --enable-build-warnings or --disable-build-warnings was given.
6685 if test "${enable_build_warnings+set}" = set; then
6686 enableval
="$enable_build_warnings"
6687 case "${enableval}" in
6689 no
) build_warnings
="-w";;
6690 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6691 build_warnings
="${build_warnings} ${t}";;
6692 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6693 build_warnings
="${t} ${build_warnings}";;
6694 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6696 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6697 echo "Setting compiler warning flags = $build_warnings" 6>&1
6700 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
6701 if test "${enable_gdb_build_warnings+set}" = set; then
6702 enableval
="$enable_gdb_build_warnings"
6703 case "${enableval}" in
6705 no
) build_warnings
="-w";;
6706 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6707 build_warnings
="${build_warnings} ${t}";;
6708 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6709 build_warnings
="${t} ${build_warnings}";;
6710 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6712 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6713 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
6718 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
6720 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
6721 echo "configure:6722: checking compiler warning flags" >&5
6722 # Separate out the -Werror flag as some files just cannot be
6723 # compiled with it enabled.
6724 for w
in ${build_warnings}; do
6726 -Werr*) WERROR_CFLAGS
=-Werror ;;
6727 *) # Check that GCC accepts it
6728 saved_CFLAGS
="$CFLAGS"
6730 cat > conftest.
$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6738 if { (eval echo configure
:6739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6740 WARN_CFLAGS
="${WARN_CFLAGS} $w"
6742 echo "configure: failed program was:" >&5
6743 cat conftest.
$ac_ext >&5
6746 CFLAGS
="$saved_CFLAGS"
6749 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
6759 # Check whether --with-mmalloc or --without-mmalloc was given.
6760 if test "${with_mmalloc+set}" = set; then
6761 withval
="$with_mmalloc"
6762 case "${withval}" in
6763 yes) want_mmalloc
=true
;;
6764 no
) want_mmalloc
=false
;;
6765 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
6771 if test x
$want_mmalloc = xtrue
; then
6772 cat >> confdefs.h
<<\EOF
6773 #define USE_MMALLOC 1
6776 cat >> confdefs.h
<<\EOF
6777 #define MMCHECK_FORCE 1
6780 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
6781 MMALLOC
='../mmalloc/libmmalloc.a'
6784 # Check whether --with-included-regex or --without-included-regex was given.
6785 if test "${with_included_regex+set}" = set; then
6786 withval
="$with_included_regex"
6787 case "${withval}" in
6788 yes) want_included_regex
=true
;;
6789 no
) want_included_regex
=false
;;
6790 *) { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
6793 want_included_regex
=true
6796 if test $want_included_regex = false
; then
6797 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
6798 echo "configure:6799: checking for GNU regex" >&5
6799 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
6800 echo $ac_n "(cached) $ac_c" 1>&6
6802 cat > conftest.
$ac_ext <<EOF
6803 #line 6804 "configure"
6804 #include "confdefs.h"
6805 #include <gnu-versions.h>
6806 #include <sys/types.h>
6809 #if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
6810 #error No valid GNU regex.
6815 if { (eval echo configure
:6816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6817 gdb_cv_have_gnu_regex
=yes
6819 echo "configure: failed program was:" >&5
6820 cat conftest.
$ac_ext >&5
6822 gdb_cv_have_gnu_regex
=no
6827 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
6828 if test $gdb_cv_have_gnu_regex = no
; then
6829 want_included_regex
=true
6833 if test x
${want_included_regex} = xtrue
; then
6835 cat >> confdefs.h
<<\EOF
6836 #define USE_INCLUDED_REGEX 1
6842 # In the Cygwin environment, we need some additional flags.
6843 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
6844 echo "configure:6845: checking for cygwin" >&5
6845 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
6846 echo $ac_n "(cached) $ac_c" 1>&6
6848 cat > conftest.
$ac_ext <<EOF
6849 #line 6850 "configure"
6850 #include "confdefs.h"
6852 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
6856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6857 egrep "lose" >/dev
/null
2>&1; then
6859 gdb_cv_os_cygwin
=yes
6868 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
6871 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
6873 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
6874 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
6879 if test x
$gdb_host = xgo32
; then
6882 if test x
$gdb_cv_os_cygwin = xyes
; then
6883 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
6886 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
6887 echo "configure:6888: checking for tgetent in -lncurses" >&5
6888 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
6889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6890 echo $ac_n "(cached) $ac_c" 1>&6
6892 ac_save_LIBS
="$LIBS"
6893 LIBS
="-lncurses $LIBS"
6894 cat > conftest.
$ac_ext <<EOF
6895 #line 6896 "configure"
6896 #include "confdefs.h"
6897 /* Override any gcc2 internal prototype to avoid an error. */
6898 /* We use char because int might match the return type of a gcc2
6899 builtin and then its argument prototype would still apply. */
6906 if { (eval echo configure
:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6908 eval "ac_cv_lib_$ac_lib_var=yes"
6910 echo "configure: failed program was:" >&5
6911 cat conftest.
$ac_ext >&5
6913 eval "ac_cv_lib_$ac_lib_var=no"
6916 LIBS
="$ac_save_LIBS"
6919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6920 echo "$ac_t""yes" 1>&6
6923 echo "$ac_t""no" 1>&6
6924 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
6925 echo "configure:6926: checking for tgetent in -lHcurses" >&5
6926 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
6927 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6928 echo $ac_n "(cached) $ac_c" 1>&6
6930 ac_save_LIBS
="$LIBS"
6931 LIBS
="-lHcurses $LIBS"
6932 cat > conftest.
$ac_ext <<EOF
6933 #line 6934 "configure"
6934 #include "confdefs.h"
6935 /* Override any gcc2 internal prototype to avoid an error. */
6936 /* We use char because int might match the return type of a gcc2
6937 builtin and then its argument prototype would still apply. */
6944 if { (eval echo configure
:6945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6946 eval "ac_cv_lib_$ac_lib_var=yes"
6948 echo "configure: failed program was:" >&5
6949 cat conftest.
$ac_ext >&5
6951 eval "ac_cv_lib_$ac_lib_var=no"
6954 LIBS
="$ac_save_LIBS"
6957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6958 echo "$ac_t""yes" 1>&6
6961 echo "$ac_t""no" 1>&6
6962 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
6963 echo "configure:6964: checking for tgetent in -ltermlib" >&5
6964 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
6965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6966 echo $ac_n "(cached) $ac_c" 1>&6
6968 ac_save_LIBS
="$LIBS"
6969 LIBS
="-ltermlib $LIBS"
6970 cat > conftest.
$ac_ext <<EOF
6971 #line 6972 "configure"
6972 #include "confdefs.h"
6973 /* Override any gcc2 internal prototype to avoid an error. */
6974 /* We use char because int might match the return type of a gcc2
6975 builtin and then its argument prototype would still apply. */
6982 if { (eval echo configure
:6983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6984 eval "ac_cv_lib_$ac_lib_var=yes"
6986 echo "configure: failed program was:" >&5
6987 cat conftest.
$ac_ext >&5
6989 eval "ac_cv_lib_$ac_lib_var=no"
6992 LIBS
="$ac_save_LIBS"
6995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6996 echo "$ac_t""yes" 1>&6
6999 echo "$ac_t""no" 1>&6
7000 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
7001 echo "configure:7002: checking for tgetent in -ltermcap" >&5
7002 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
7003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7004 echo $ac_n "(cached) $ac_c" 1>&6
7006 ac_save_LIBS
="$LIBS"
7007 LIBS
="-ltermcap $LIBS"
7008 cat > conftest.
$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7011 /* Override any gcc2 internal prototype to avoid an error. */
7012 /* We use char because int might match the return type of a gcc2
7013 builtin and then its argument prototype would still apply. */
7020 if { (eval echo configure
:7021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7022 eval "ac_cv_lib_$ac_lib_var=yes"
7024 echo "configure: failed program was:" >&5
7025 cat conftest.
$ac_ext >&5
7027 eval "ac_cv_lib_$ac_lib_var=no"
7030 LIBS
="$ac_save_LIBS"
7033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7034 echo "$ac_t""yes" 1>&6
7037 echo "$ac_t""no" 1>&6
7038 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
7039 echo "configure:7040: checking for tgetent in -lcurses" >&5
7040 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
7041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7042 echo $ac_n "(cached) $ac_c" 1>&6
7044 ac_save_LIBS
="$LIBS"
7045 LIBS
="-lcurses $LIBS"
7046 cat > conftest.
$ac_ext <<EOF
7047 #line 7048 "configure"
7048 #include "confdefs.h"
7049 /* Override any gcc2 internal prototype to avoid an error. */
7050 /* We use char because int might match the return type of a gcc2
7051 builtin and then its argument prototype would still apply. */
7058 if { (eval echo configure
:7059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7060 eval "ac_cv_lib_$ac_lib_var=yes"
7062 echo "configure: failed program was:" >&5
7063 cat conftest.
$ac_ext >&5
7065 eval "ac_cv_lib_$ac_lib_var=no"
7068 LIBS
="$ac_save_LIBS"
7071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7072 echo "$ac_t""yes" 1>&6
7075 echo "$ac_t""no" 1>&6
7076 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
7077 echo "configure:7078: checking for tgetent in -lterminfo" >&5
7078 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
7079 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7080 echo $ac_n "(cached) $ac_c" 1>&6
7082 ac_save_LIBS
="$LIBS"
7083 LIBS
="-lterminfo $LIBS"
7084 cat > conftest.
$ac_ext <<EOF
7085 #line 7086 "configure"
7086 #include "confdefs.h"
7087 /* Override any gcc2 internal prototype to avoid an error. */
7088 /* We use char because int might match the return type of a gcc2
7089 builtin and then its argument prototype would still apply. */
7096 if { (eval echo configure
:7097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7098 eval "ac_cv_lib_$ac_lib_var=yes"
7100 echo "configure: failed program was:" >&5
7101 cat conftest.
$ac_ext >&5
7103 eval "ac_cv_lib_$ac_lib_var=no"
7106 LIBS
="$ac_save_LIBS"
7109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7110 echo "$ac_t""yes" 1>&6
7113 echo "$ac_t""no" 1>&6
7127 if test "x$TERM_LIB" = x
7129 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
7135 # libreadline needs libuser32.a in a cygwin environment
7137 if test x
$gdb_cv_os_cygwin = xyes
; then
7138 WIN32LIBS
="-luser32"
7140 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
7146 LIBGUI
="../libgui/src/libgui.a"
7147 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
7151 # Check whether --with-cpu or --without-cpu was given.
7152 if test "${with_cpu+set}" = set; then
7155 powerpc-
* | powerpcle-
* )
7156 ## It would be nice to keep this table in sync with the one in
7158 case "${with_cpu}" in
7159 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
7161 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
7163 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
7164 ## These are all RS6000 variants, as far as GDB is concerned.
7174 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
7180 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
7183 cat >> confdefs.h
<<EOF
7184 #define TARGET_CPU_DEFAULT "${with_cpu}"
7192 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7193 if test "${enable_gdbtk+set}" = set; then
7194 enableval
="$enable_gdbtk"
7195 case "${enableval}" in
7199 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
7202 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
7210 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
7214 # Default is on for everything but go32 and Cygwin
7219 if test -d "${srcdir}/gdbtk" ; then
7235 if test "${enable_gdbtk}" = "yes"; then
7237 # Gdbtk must have an absolute path to srcdir in order to run
7238 # properly when not installed.
7246 # Ok, lets find the tcl configuration
7247 # First, look for one uninstalled.
7248 # the alternative search directory is invoked by --with-tclconfig
7251 if test x
"${no_tcl}" = x
; then
7252 # we reset no_tcl in case something fails here
7254 # Check whether --with-tclconfig or --without-tclconfig was given.
7255 if test "${with_tclconfig+set}" = set; then
7256 withval
="$with_tclconfig"
7257 with_tclconfig
=${withval}
7260 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
7261 echo "configure:7262: checking for Tcl configuration" >&5
7262 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
7263 echo $ac_n "(cached) $ac_c" 1>&6
7267 # First check to see if --with-tclconfig was specified.
7268 if test x
"${with_tclconfig}" != x
; then
7269 if test -f "${with_tclconfig}/tclConfig.sh" ; then
7270 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
7272 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
7276 # then check for a private Tcl installation
7277 if test x
"${ac_cv_c_tclconfig}" = x
; then
7280 `ls -dr ../tcl[7-9]* 2>/dev/null` \
7282 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
7284 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
7285 if test -f "$i/${configdir}/tclConfig.sh" ; then
7286 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
7291 # check in a few common install locations
7292 if test x
"${ac_cv_c_tclconfig}" = x
; then
7293 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7294 if test -f "$i/tclConfig.sh" ; then
7295 ac_cv_c_tclconfig
=`(cd $i; pwd)`
7300 # check in a few other private locations
7301 if test x
"${ac_cv_c_tclconfig}" = x
; then
7304 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
7305 if test -f "$i/${configdir}/tclConfig.sh" ; then
7306 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
7314 if test x
"${ac_cv_c_tclconfig}" = x
; then
7315 TCLCONFIG
="# no Tcl configs found"
7316 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
7319 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
7320 echo "$ac_t""found $TCLCONFIG" 1>&6
7324 if test -z "${no_tcl}"; then
7354 # Ok, lets find the tk configuration
7355 # First, look for one uninstalled.
7356 # the alternative search directory is invoked by --with-tkconfig
7359 if test x
"${no_tk}" = x
; then
7360 # we reset no_tk in case something fails here
7362 # Check whether --with-tkconfig or --without-tkconfig was given.
7363 if test "${with_tkconfig+set}" = set; then
7364 withval
="$with_tkconfig"
7365 with_tkconfig
=${withval}
7368 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
7369 echo "configure:7370: checking for Tk configuration" >&5
7370 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
7371 echo $ac_n "(cached) $ac_c" 1>&6
7375 # First check to see if --with-tkconfig was specified.
7376 if test x
"${with_tkconfig}" != x
; then
7377 if test -f "${with_tkconfig}/tkConfig.sh" ; then
7378 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
7380 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
7384 # then check for a private Tk library
7385 if test x
"${ac_cv_c_tkconfig}" = x
; then
7388 `ls -dr ../tk[4-9]* 2>/dev/null` \
7390 `ls -dr ../../tk[4-9]* 2>/dev/null` \
7392 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
7393 if test -f "$i/${configdir}/tkConfig.sh" ; then
7394 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
7399 # check in a few common install locations
7400 if test x
"${ac_cv_c_tkconfig}" = x
; then
7401 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7402 if test -f "$i/tkConfig.sh" ; then
7403 ac_cv_c_tkconfig
=`(cd $i; pwd)`
7408 # check in a few other private locations
7409 if test x
"${ac_cv_c_tkconfig}" = x
; then
7412 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
7413 if test -f "$i/${configdir}/tkConfig.sh" ; then
7414 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
7422 if test x
"${ac_cv_c_tkconfig}" = x
; then
7423 TKCONFIG
="# no Tk configs found"
7424 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
7427 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
7428 echo "$ac_t""found $TKCONFIG" 1>&6
7434 # now look for Tcl library stuff
7445 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
7447 # If $no_tk is nonempty, then we can't do Tk, and there is no
7448 # point to doing Tcl.
7449 if test -z "${no_tk}"; then
7451 if test -f "$TKCONFIG" ; then
7469 # Ok, lets find the tcl source trees so we can use the headers
7470 # Warning: transition of version 9 to 10 will break this algorithm
7471 # because 10 sorts before 9. We also look for just tcl. We have to
7472 # be careful that we don't match stuff like tclX by accident.
7473 # the alternative search directory is involked by --with-tclinclude
7477 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
7478 echo "configure:7479: checking for Tcl private headers. dir=${configdir}" >&5
7479 # Check whether --with-tclinclude or --without-tclinclude was given.
7480 if test "${with_tclinclude+set}" = set; then
7481 withval
="$with_tclinclude"
7482 with_tclinclude
=${withval}
7485 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
7486 echo $ac_n "(cached) $ac_c" 1>&6
7489 # first check to see if --with-tclinclude was specified
7490 if test x
"${with_tclinclude}" != x
; then
7491 if test -f ${with_tclinclude}/tclInt.h
; then
7492 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
7493 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
7494 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
7496 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
7500 # next check if it came with Tcl configuration file
7501 if test x
"${ac_cv_c_tclconfig}" = x
; then
7502 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
7503 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
7507 # next check in private source directory
7509 # since ls returns lowest version numbers first, reverse its output
7510 if test x
"${ac_cv_c_tclh}" = x
; then
7513 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
7514 ${srcdir}/..
/..
/tcl \
7515 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
7516 ${srcdir}/..
/..
/..
/tcl \
7517 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
7518 if test -f $i/generic
/tclInt.h
; then
7519 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
7524 # finally check in a few common install locations
7526 # since ls returns lowest version numbers first, reverse its output
7527 if test x
"${ac_cv_c_tclh}" = x
; then
7529 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
7530 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
7531 /usr
/local
/src
/tcl \
7532 /usr
/local
/lib
/tcl \
7533 ${prefix}/include
; do
7534 if test -f $i/generic
/tclInt.h
; then
7535 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
7540 # see if one is installed
7541 if test x
"${ac_cv_c_tclh}" = x
; then
7542 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
7543 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
7544 echo "configure:7545: checking for tclInt.h" >&5
7545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7546 echo $ac_n "(cached) $ac_c" 1>&6
7548 cat > conftest.
$ac_ext <<EOF
7549 #line 7550 "configure"
7550 #include "confdefs.h"
7553 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7554 { (eval echo configure
:7555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7555 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7556 if test -z "$ac_err"; then
7558 eval "ac_cv_header_$ac_safe=yes"
7561 echo "configure: failed program was:" >&5
7562 cat conftest.
$ac_ext >&5
7564 eval "ac_cv_header_$ac_safe=no"
7568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7569 echo "$ac_t""yes" 1>&6
7570 ac_cv_c_tclh
=installed
7572 echo "$ac_t""no" 1>&6
7580 if test x
"${ac_cv_c_tclh}" = x
; then
7581 TCLHDIR
="# no Tcl private headers found"
7582 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
7584 if test x
"${ac_cv_c_tclh}" != x
; then
7586 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
7587 echo "$ac_t""is installed" 1>&6
7590 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
7591 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
7592 TCLHDIR
="-I${ac_cv_c_tclh}"
7600 # Ok, lets find the tk source trees so we can use the headers
7601 # If the directory (presumably symlink) named "tk" exists, use that one
7602 # in preference to any others. Same logic is used when choosing library
7603 # and again with Tcl. The search order is the best place to look first, then in
7604 # decreasing significance. The loop breaks if the trigger file is found.
7605 # Note the gross little conversion here of srcdir by cd'ing to the found
7606 # directory. This converts the path from a relative to an absolute, so
7607 # recursive cache variables for the path will work right. We check all
7608 # the possible paths in one loop rather than many seperate loops to speed
7610 # the alternative search directory is involked by --with-tkinclude
7613 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
7614 echo "configure:7615: checking for Tk private headers" >&5
7615 # Check whether --with-tkinclude or --without-tkinclude was given.
7616 if test "${with_tkinclude+set}" = set; then
7617 withval
="$with_tkinclude"
7618 with_tkinclude
=${withval}
7621 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
7622 echo $ac_n "(cached) $ac_c" 1>&6
7625 # first check to see if --with-tkinclude was specified
7626 if test x
"${with_tkinclude}" != x
; then
7627 if test -f ${with_tkinclude}/tk.h
; then
7628 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
7629 elif test -f ${with_tkinclude}/generic
/tk.h
; then
7630 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
7632 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
7636 # next check if it came with Tk configuration file
7637 if test x
"${ac_cv_c_tkconfig}" = x
; then
7638 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
7639 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
7643 # next check in private source directory
7645 # since ls returns lowest version numbers first, reverse its output
7646 if test x
"${ac_cv_c_tkh}" = x
; then
7649 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
7650 ${srcdir}/..
/..
/tk \
7651 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
7652 ${srcdir}/..
/..
/..
/tk \
7653 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
7654 if test -f $i/generic
/tk.h
; then
7655 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
7660 # finally check in a few common install locations
7662 # since ls returns lowest version numbers first, reverse its output
7663 if test x
"${ac_cv_c_tkh}" = x
; then
7665 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
7666 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
7669 ${prefix}/include
; do
7670 if test -f $i/generic
/tk.h
; then
7671 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
7676 # see if one is installed
7677 if test x
"${ac_cv_c_tkh}" = x
; then
7678 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
7679 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
7680 echo "configure:7681: checking for tk.h" >&5
7681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7682 echo $ac_n "(cached) $ac_c" 1>&6
7684 cat > conftest.
$ac_ext <<EOF
7685 #line 7686 "configure"
7686 #include "confdefs.h"
7689 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7690 { (eval echo configure
:7691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7691 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7692 if test -z "$ac_err"; then
7694 eval "ac_cv_header_$ac_safe=yes"
7697 echo "configure: failed program was:" >&5
7698 cat conftest.
$ac_ext >&5
7700 eval "ac_cv_header_$ac_safe=no"
7704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7705 echo "$ac_t""yes" 1>&6
7706 ac_cv_c_tkh
=installed
7708 echo "$ac_t""no" 1>&6
7716 if test x
"${ac_cv_c_tkh}" != x
; then
7718 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
7719 echo "$ac_t""is installed" 1>&6
7722 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
7723 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
7724 TKHDIR
="-I${ac_cv_c_tkh}"
7727 TKHDIR
="# no Tk directory found"
7728 echo "configure: warning: Can't find Tk private headers" 1>&2
7735 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7736 echo "configure:7737: checking for Itcl private headers. srcdir=${srcdir}" >&5
7737 if test x
"${ac_cv_c_itclh}" = x
; then
7738 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
7739 if test -f $i/generic
/itcl.h
; then
7740 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
7745 if test x
"${ac_cv_c_itclh}" = x
; then
7746 ITCLHDIR
="# no Itcl private headers found"
7747 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
7749 if test x
"${ac_cv_c_itclh}" != x
; then
7750 ITCLHDIR
="-I${ac_cv_c_itclh}"
7752 # should always be here
7753 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
7758 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7759 echo "configure:7760: checking for Itk private headers. srcdir=${srcdir}" >&5
7760 if test x
"${ac_cv_c_itkh}" = x
; then
7761 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
7762 if test -f $i/generic
/itk.h
; then
7763 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
7768 if test x
"${ac_cv_c_itkh}" = x
; then
7769 ITKHDIR
="# no Itk private headers found"
7770 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
7772 if test x
"${ac_cv_c_itkh}" != x
; then
7773 ITKHDIR
="-I${ac_cv_c_itkh}"
7775 # should always be here
7776 # ITKLIB="../itcl/itk/unix/libitk.a"
7781 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7782 echo "configure:7783: checking for Tix private headers. srcdir=${srcdir}" >&5
7783 if test x
"${ac_cv_c_tixh}" = x
; then
7784 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
7785 if test -f $i/generic
/tix.h
; then
7786 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
7791 if test x
"${ac_cv_c_tixh}" = x
; then
7792 TIXHDIR
="# no Tix private headers found"
7793 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
7795 if test x
"${ac_cv_c_tixh}" != x
; then
7796 TIXHDIR
="-I${ac_cv_c_tixh}"
7802 # now look for Tk library stuff
7813 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
7815 # now look for Itcl library stuff
7819 # Ok, lets find the itcl configuration
7820 # First, look for one uninstalled.
7821 # the alternative search directory is invoked by --with-itclconfig
7824 if test x
"${no_itcl}" = x
; then
7825 # we reset no_itcl in case something fails here
7827 # Check whether --with-itclconfig or --without-itclconfig was given.
7828 if test "${with_itclconfig+set}" = set; then
7829 withval
="$with_itclconfig"
7830 with_itclconfig
=${withval}
7833 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
7834 echo "configure:7835: checking for Itcl configuration" >&5
7835 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
7836 echo $ac_n "(cached) $ac_c" 1>&6
7840 # First check to see if --with-itclconfig was specified.
7841 if test x
"${with_itclconfig}" != x
; then
7842 if test -f "${with_itclconfig}/itclConfig.sh" ; then
7843 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
7845 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
7849 # then check for a private Itcl library
7850 if test x
"${ac_cv_c_itclconfig}" = x
; then
7853 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
7855 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
7857 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
7858 if test -f "$i/itclConfig.sh" ; then
7859 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7864 # check in a few common install locations
7865 if test x
"${ac_cv_c_itclconfig}" = x
; then
7866 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7867 if test -f "$i/itclConfig.sh" ; then
7868 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7873 # check in a few other private locations
7874 if test x
"${ac_cv_c_itclconfig}" = x
; then
7876 ${srcdir}/..
/itcl
/itcl \
7877 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
7878 if test -f "$i/itclConfig.sh" ; then
7879 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7887 if test x
"${ac_cv_c_itclconfig}" = x
; then
7888 ITCLCONFIG
="# no Itcl configs found"
7889 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
7892 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
7893 echo "$ac_t""found $ITCLCONFIG" 1>&6
7897 if test -z "${no_itcl}"; then
7899 if test -f "$ITCLCONFIG" ; then
7914 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
7915 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
7919 # now look for Itk library stuff
7922 # Ok, lets find the itk configuration
7923 # First, look for one uninstalled.
7924 # the alternative search directory is invoked by --with-itkconfig
7927 if test x
"${no_itk}" = x
; then
7928 # we reset no_itk in case something fails here
7930 # Check whether --with-itkconfig or --without-itkconfig was given.
7931 if test "${with_itkconfig+set}" = set; then
7932 withval
="$with_itkconfig"
7933 with_itkconfig
=${withval}
7936 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
7937 echo "configure:7938: checking for Itk configuration" >&5
7938 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
7939 echo $ac_n "(cached) $ac_c" 1>&6
7943 # First check to see if --with-itkconfig was specified.
7944 if test x
"${with_itkconfig}" != x
; then
7945 if test -f "${with_itkconfig}/itkConfig.sh" ; then
7946 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
7948 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
7952 # then check for a private Itk library
7953 if test x
"${ac_cv_c_itkconfig}" = x
; then
7956 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
7958 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
7960 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
7961 if test -f "$i/itkConfig.sh" ; then
7962 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7967 # check in a few common install locations
7968 if test x
"${ac_cv_c_itkconfig}" = x
; then
7969 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7970 if test -f "$i/itkConfig.sh" ; then
7971 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7976 # check in a few other private locations
7977 if test x
"${ac_cv_c_itkconfig}" = x
; then
7979 ${srcdir}/..
/itcl
/itk \
7980 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
7981 if test -f "$i/itkConfig.sh" ; then
7982 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7990 if test x
"${ac_cv_c_itkconfig}" = x
; then
7991 ITKCONFIG
="# no Itk configs found"
7992 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
7995 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
7996 echo "$ac_t""found $ITKCONFIG" 1>&6
8001 if test -z "${no_itcl}"; then
8003 if test -f "$ITKCONFIG" ; then
8018 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
8019 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
8022 # now look for Tix library stuff
8025 # Ok, lets find the tix configuration
8026 # First, look for one uninstalled.
8027 # the alternative search directory is invoked by --with-itkconfig
8030 if test x
"${no_tix}" = x
; then
8031 # we reset no_tix in case something fails here
8033 # Check whether --with-tixconfig or --without-tixconfig was given.
8034 if test "${with_tixconfig+set}" = set; then
8035 withval
="$with_tixconfig"
8036 with_tixconfig
=${withval}
8039 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
8040 echo "configure:8041: checking for Tix configuration" >&5
8041 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
8042 echo $ac_n "(cached) $ac_c" 1>&6
8046 # First check to see if --with-tixconfig was specified.
8047 if test x
"${with_tixconfig}" != x
; then
8048 if test -f "${with_tixconfig}/tixConfig.sh" ; then
8049 ac_cv_c_tixconfig
=`(cd ${with_tixconfig}; pwd)`
8051 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
8055 # then check for a private Tix library
8056 if test x
"${ac_cv_c_tixconfig}" = x
; then
8059 `ls -dr ../tix 2>/dev/null` \
8061 `ls -dr ../../tix 2>/dev/null` \
8063 `ls -dr ../../../tix 2>/dev/null` ; do
8064 echo "**** Looking at $i - with ${configdir}"
8065 if test -f "$i/tixConfig.sh" ; then
8066 ac_cv_c_tixconfig
=`(cd $i; pwd)`
8071 # check in a few common install locations
8072 if test x
"${ac_cv_c_tixconfig}" = x
; then
8073 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8074 echo "**** Looking at $i"
8075 if test -f "$i/tixConfig.sh" ; then
8076 ac_cv_c_tixconfig
=`(cd $i; pwd)`
8081 # check in a few other private locations
8082 echo "**** Other private locations"
8083 if test x
"${ac_cv_c_tixconfig}" = x
; then
8086 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
8087 echo "**** Looking at $i - with ${configdir}"
8088 if test -f "$i/${configdir}/tixConfig.sh" ; then
8089 ac_cv_c_tixconfig
=`(cd $i/${configdir}; pwd)`
8097 if test x
"${ac_cv_c_tixconfig}" = x
; then
8098 TIXCONFIG
="# no Tix configs found"
8099 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
8102 TIXCONFIG
=${ac_cv_c_tixconfig}/tixConfig.sh
8103 echo "$ac_t""found $TIXCONFIG" 1>&6
8108 if test -z "${no_tix}"; then
8110 if test -f "$TIXCONFIG" ; then
8121 TIXLIB
="${TIX_BUILD_LIB_SPEC}"
8122 TIX_DEPS
="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
8125 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
8126 # Tcl/Tk 8.1 require -fwritable strings. I don't
8127 # know whether 8.2 will or not, but I bet it will.
8128 # I don't have to worry about 7.x since we don't support it.
8130 if test "$GCC" = "yes"; then
8131 if test "$TCL_VERSION" != "8.0" ; then
8132 GDBTK_CFLAGS
="-fwritable-strings"
8136 # Include some libraries that Tcl and Tk want.
8137 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
8138 # Yes, the ordering seems wrong here. But it isn't.
8139 # TK_LIBS is the list of libraries that need to be linked
8140 # after Tcl/Tk. Note that this isn't put into LIBS. If it
8141 # were in LIBS then any link tests after this point would
8142 # try to include things like `$(LIBGUI)', which wouldn't work.
8143 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
8145 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
8146 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
8147 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
8148 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
8149 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
8150 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
8151 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
8152 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
8154 if test x
$gdb_cv_os_cygwin = xyes
; then
8155 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
8156 WIN32LDAPP
="-Wl,--subsystem,console"
8157 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
8178 # If we find X, set shell vars x_includes and x_libraries to the
8179 # paths, otherwise set no_x=yes.
8180 # Uses ac_ vars as temps to allow command line to override cache and checks.
8181 # --without-x overrides everything else, but does not touch the cache.
8182 echo $ac_n "checking for X""... $ac_c" 1>&6
8183 echo "configure:8184: checking for X" >&5
8185 # Check whether --with-x or --without-x was given.
8186 if test "${with_x+set}" = set; then
8191 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8192 if test "x$with_x" = xno
; then
8193 # The user explicitly disabled X.
8196 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8197 # Both variables are already set.
8200 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
8201 echo $ac_n "(cached) $ac_c" 1>&6
8203 # One or both of the vars are not set, and there is no cached value.
8204 ac_x_includes
=NO ac_x_libraries
=NO
8206 if mkdir conftestdir
; then
8208 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8209 cat > Imakefile
<<'EOF'
8211 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8213 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8215 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8216 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8217 for ac_extension
in a so sl
; do
8218 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8219 test -f $ac_im_libdir/libX11.
$ac_extension; then
8220 ac_im_usrlibdir
=$ac_im_libdir; break
8223 # Screen out bogus values from the imake configuration. They are
8224 # bogus both because they are the default anyway, and because
8225 # using them would break gcc on systems where it needs fixed includes.
8226 case "$ac_im_incroot" in
8228 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
8230 case "$ac_im_usrlibdir" in
8232 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
8239 if test "$ac_x_includes" = NO
; then
8240 # Guess where to find include files, by looking for this one X11 .h file.
8241 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
8243 # First, try using that file with no special directory specified.
8244 cat > conftest.
$ac_ext <<EOF
8245 #line 8246 "configure"
8246 #include "confdefs.h"
8247 #include <$x_direct_test_include>
8249 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8250 { (eval echo configure
:8251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8251 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8252 if test -z "$ac_err"; then
8254 # We can compile using X headers with no special include directory.
8258 echo "configure: failed program was:" >&5
8259 cat conftest.
$ac_ext >&5
8261 # Look for the header file in a standard set of common directories.
8262 # Check X11 before X11Rn because it is often a symlink to the current release.
8265 /usr
/X11R
6/include \
8266 /usr
/X11R
5/include \
8267 /usr
/X11R
4/include \
8270 /usr
/include
/X11R6 \
8271 /usr
/include
/X11R5 \
8272 /usr
/include
/X11R4 \
8274 /usr
/local
/X11
/include \
8275 /usr
/local
/X11R
6/include \
8276 /usr
/local
/X11R
5/include \
8277 /usr
/local
/X11R
4/include \
8279 /usr
/local
/include
/X11 \
8280 /usr
/local
/include
/X11R6 \
8281 /usr
/local
/include
/X11R5 \
8282 /usr
/local
/include
/X11R4 \
8286 /usr
/XFree86
/include
/X11 \
8289 /usr
/local
/include \
8290 /usr
/unsupported
/include \
8291 /usr
/athena
/include \
8292 /usr
/local
/x11r
5/include \
8293 /usr
/lpp
/Xamples
/include \
8295 /usr
/openwin
/include \
8296 /usr
/openwin
/share
/include \
8299 if test -r "$ac_dir/$x_direct_test_include"; then
8300 ac_x_includes
=$ac_dir
8306 fi # $ac_x_includes = NO
8308 if test "$ac_x_libraries" = NO
; then
8309 # Check for the libraries.
8311 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
8312 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
8314 # See if we find them without any special options.
8315 # Don't add to $LIBS permanently.
8316 ac_save_LIBS
="$LIBS"
8317 LIBS
="-l$x_direct_test_library $LIBS"
8318 cat > conftest.
$ac_ext <<EOF
8319 #line 8320 "configure"
8320 #include "confdefs.h"
8323 ${x_direct_test_function}()
8326 if { (eval echo configure
:8327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8328 LIBS
="$ac_save_LIBS"
8329 # We can link X programs with no special library path.
8332 echo "configure: failed program was:" >&5
8333 cat conftest.
$ac_ext >&5
8335 LIBS
="$ac_save_LIBS"
8336 # First see if replacing the include by lib works.
8337 # Check X11 before X11Rn because it is often a symlink to the current release.
8338 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
8349 /usr
/local
/X11
/lib \
8350 /usr
/local
/X11R
6/lib \
8351 /usr
/local
/X11R
5/lib \
8352 /usr
/local
/X11R
4/lib \
8354 /usr
/local
/lib
/X11 \
8355 /usr
/local
/lib
/X11R6 \
8356 /usr
/local
/lib
/X11R5 \
8357 /usr
/local
/lib
/X11R4 \
8361 /usr
/XFree86
/lib
/X11 \
8365 /usr
/unsupported
/lib \
8367 /usr
/local
/x11r
5/lib \
8368 /usr
/lpp
/Xamples
/lib \
8372 /usr
/openwin
/share
/lib \
8375 for ac_extension
in a so sl
; do
8376 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
8377 ac_x_libraries
=$ac_dir
8384 fi # $ac_x_libraries = NO
8386 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
8387 # Didn't find X anywhere. Cache the known absence of X.
8388 ac_cv_have_x
="have_x=no"
8390 # Record where we found X for the cache.
8391 ac_cv_have_x
="have_x=yes \
8392 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8396 eval "$ac_cv_have_x"
8399 if test "$have_x" != yes; then
8400 echo "$ac_t""$have_x" 1>&6
8403 # If each of the values was on the command line, it overrides each guess.
8404 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8405 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8406 # Update the cache value to reflect the command line values.
8407 ac_cv_have_x
="have_x=yes \
8408 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8409 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8414 # Unlike the sim directory, whether a simulator is linked is controlled by
8415 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
8416 # This code just checks for a few cases where we'd like to ignore those
8417 # definitions, even when they're present in the '.mt' file. These cases
8418 # are when --disable-sim is specified, or if the simulator directory is
8419 # not part of the source tree.
8421 # Check whether --enable-sim or --disable-sim was given.
8422 if test "${enable_sim+set}" = set; then
8423 enableval
="$enable_sim"
8424 echo "enable_sim = $enable_sim";
8425 echo "enableval = ${enableval}";
8426 case "${enableval}" in
8427 yes) ignore_sim
=false
;;
8428 no
) ignore_sim
=true
;;
8429 *) ignore_sim
=false
;;
8436 if test ! -d "${srcdir}/../sim"; then
8440 if test "${ignore_sim}" = "true"; then
8442 IGNORE_SIM_OBS
="SIM_OBS="
8446 cat >> confdefs.h
<<\EOF
8466 # Begin stuff to support --enable-shared
8467 # Check whether --enable-shared or --disable-shared was given.
8468 if test "${enable_shared+set}" = set; then
8469 enableval
="$enable_shared"
8470 case "${enableval}" in
8479 # If we have shared libraries, try to set rpath reasonably.
8480 if test "${shared}" = "true"; then
8483 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
8485 *-*-irix5* |
*-*-irix6*)
8486 HLDFLAGS
='-Wl,-rpath,$(libdir)'
8490 *-*-linux* |
*-pc-linux-gnu*)
8491 HLDFLAGS
='-Wl,-rpath,$(libdir)'
8494 HLDFLAGS
='-R $(libdir)'
8497 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;'
8502 # On SunOS, if the linker supports the -rpath option, use it to
8503 # prevent ../bfd and ../opcodes from being included in the run time
8507 echo 'main () { }' > conftest.c
8508 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
8509 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
8511 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
8513 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
8515 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
8517 elif test "${shared}" = "true"; then
8518 HLDFLAGS
='-Wl,-rpath=$(libdir)'
8520 HLDFLAGS
='-Wl,-rpath='
8522 rm -f conftest.t conftest.c conftest
8527 # End stuff to support --enable-shared
8529 # target_subdir is used by the testsuite to find the target libraries.
8531 if test "${host}" != "${target}"; then
8532 target_subdir
="${target_alias}/"
8537 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
8538 if test ! -f ${host_makefile_frag}; then
8539 # When building a native debuger the .mh file containing things
8540 # like NATDEPFILES is needed. Cross debuggers don't need .mh
8541 # since it no longer contains anything useful.
8542 if test "${target}" = "${host}"; then
8543 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
8545 host_makefile_frag
=/dev
/null
8548 frags
="$frags $host_makefile_frag"
8550 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
8551 if test ! -f ${target_makefile_frag}; then
8552 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
8554 frags
="$frags $target_makefile_frag"
8561 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8562 ' ${host_makefile_frag}`
8564 targetfile
=`sed -n '
8565 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8566 ' ${target_makefile_frag}`
8568 GDB_MULTI_ARCH
=`sed -n '
8569 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
8570 ' ${target_makefile_frag}`
8572 if test "${target}" = "${host}"; then
8573 # We pick this up from the host configuration file (.mh) because we
8574 # do not have a native configuration Makefile fragment.
8575 nativefile
=`sed -n '
8576 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8577 ' ${host_makefile_frag}`
8581 # New targets should just set gdb_multi_arch=yes in configure.tgt.
8582 # Old targets being converted can either do that or set GDB_MULTI_ARCH
8583 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
8584 # will be the default.
8585 if test x
"${GDB_MULTI_ARCH}" = x
; then
8586 case "${gdb_multi_arch}" in
8587 yes ) GDB_MULTI_ARCH
=GDB_MULTI_ARCH_PURE
;;
8588 no
) GDB_MULTI_ARCH
=0 ;;
8589 0|
1|
2 ) GDB_MULTI_ARCH
=${gdb_multi_arch} ;;
8592 if test x
"${GDB_MULTI_ARCH}" != x
; then
8593 cat >> confdefs.h
<<EOF
8594 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
8598 # Warn the user when they use an old practice
8599 case "${GDB_MULTI_ARCH}" in
8601 0 | GDB_MULTI_ARCH_PARTIAL |
1 | GDB_MULTI_ARCH_TM |
2 )
8602 echo "configure: warning: "GDB
: Target is not pure multi-arch
"" 1>&2 ;;
8603 GDB_MULTI_ARCH_PURE
)
8604 if test x
"${targetfile}" != x
; then
8605 echo "configure: warning: "GDB
: Ignoring TM_FILE
in ${target_makefile_frag}"" 1>&2
8608 *) { echo "configure: error: "GDB
: Unknown GDB_MULTI_ARCH value
${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
8611 SUBDIRS
="doc testsuite nlm"
8612 if test "${enable_multi_ice}" = "yes"; then
8613 SUBDIRS
="${SUBDIRS} multi-ice"
8616 # ``gdbserver'' can only be built in a native configuration.
8617 if test x
"${target}" = x
"${host}"; then
8618 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
8619 echo "configure:8620: checking whether gdbserver is supported on this host" >&5
8620 if test x
"${build_gdbserver}" = xyes
; then
8621 configdirs
="${configdirs} gdbserver"
8622 SUBDIRS
="${SUBDIRS} gdbserver"
8623 echo "$ac_t""yes" 1>&6
8625 echo "$ac_t""no" 1>&6
8631 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
8632 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
8640 if test "${hostfile}" != ""; then
8642 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
8643 files
="${files} ${GDB_XM_FILE}"
8644 links
="${links} xm.h"
8645 cat >> confdefs.h
<<EOF
8646 #define GDB_XM_FILE ${GDB_XM_FILE}
8654 if test "${targetfile}" != ""; then
8656 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
8657 files
="${files} ${GDB_TM_FILE}"
8658 links
="${links} tm.h"
8659 cat >> confdefs.h
<<EOF
8660 #define GDB_TM_FILE ${GDB_TM_FILE}
8668 if test "${nativefile}" != ""; then
8670 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
8671 files
="${files} ${GDB_NM_FILE}"
8672 links
="${links} nm.h"
8673 cat >> confdefs.h
<<EOF
8674 #define GDB_NM_FILE ${GDB_NM_FILE}
8680 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8681 echo "configure:8682: checking whether ln -s works" >&5
8682 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8683 echo $ac_n "(cached) $ac_c" 1>&6
8686 if ln -s X conftestdata
2>/dev
/null
8689 ac_cv_prog_LN_S
="ln -s"
8694 LN_S
="$ac_cv_prog_LN_S"
8695 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8696 echo "$ac_t""yes" 1>&6
8698 echo "$ac_t""no" 1>&6
8704 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8705 echo "configure:8706: checking for Cygwin environment" >&5
8706 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
8707 echo $ac_n "(cached) $ac_c" 1>&6
8709 cat > conftest.
$ac_ext <<EOF
8710 #line 8711 "configure"
8711 #include "confdefs.h"
8716 #define __CYGWIN__ __CYGWIN32__
8721 if { (eval echo configure
:8722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8725 echo "configure: failed program was:" >&5
8726 cat conftest.
$ac_ext >&5
8734 echo "$ac_t""$ac_cv_cygwin" 1>&6
8736 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
8737 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8738 echo "configure:8739: checking for mingw32 environment" >&5
8739 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
8740 echo $ac_n "(cached) $ac_c" 1>&6
8742 cat > conftest.
$ac_ext <<EOF
8743 #line 8744 "configure"
8744 #include "confdefs.h"
8750 if { (eval echo configure
:8751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8754 echo "configure: failed program was:" >&5
8755 cat conftest.
$ac_ext >&5
8763 echo "$ac_t""$ac_cv_mingw32" 1>&6
8765 test "$ac_cv_mingw32" = yes && MINGW32
=yes
8768 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8769 echo "configure:8770: checking for executable suffix" >&5
8770 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
8771 echo $ac_n "(cached) $ac_c" 1>&6
8773 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
8777 echo 'int main () { return 0; }' > conftest.
$ac_ext
8779 if { (eval echo configure
:8780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8780 for file in conftest.
*; do
8782 *.c |
*.o |
*.obj
) ;;
8783 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
8787 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8790 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
8795 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
8796 echo "$ac_t""${ac_cv_exeext}" 1>&6
8800 subdirs
="$configdirs"
8803 cat > confcache
<<\EOF
8804 # This file is a shell script that caches the results of configure
8805 # tests run on this system so they can be shared between configure
8806 # scripts and configure runs. It is not useful on other systems.
8807 # If it contains results you don't want to keep, you may remove or edit it.
8809 # By default, configure uses ./config.cache as the cache file,
8810 # creating it if it does not exist already. You can give configure
8811 # the --cache-file=FILE option to use a different cache file; that is
8812 # what configure does when it calls configure scripts in
8813 # subdirectories, so they share the cache.
8814 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8815 # config.status only pays attention to the cache file if you give it the
8816 # --recheck option to rerun configure.
8819 # The following way of writing the cache mishandles newlines in values,
8820 # but we know of no workaround that is simple, portable, and efficient.
8821 # So, don't put newlines in cache variables' values.
8822 # Ultrix sh set writes to stderr and can't be redirected directly,
8823 # and sets the high bit in the cache file unless we assign to the vars.
8825 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8827 # `set' does not quote correctly, so add quotes (double-quote substitution
8828 # turns \\\\ into \\, and sed turns \\ into \).
8830 -e "s/'/'\\\\''/g" \
8831 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8834 # `set' quotes correctly as required by POSIX, so do not add quotes.
8835 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8838 if cmp -s $cache_file confcache
; then
8841 if test -w $cache_file; then
8842 echo "updating cache $cache_file"
8843 cat confcache
> $cache_file
8845 echo "not updating unwritable cache $cache_file"
8850 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8852 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8853 # Let make expand exec_prefix.
8854 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8856 # Any assignment to VPATH causes Sun make to only execute
8857 # the first set of double-colon rules, so remove it if not needed.
8858 # If there is a colon in the path, we need to keep it.
8859 if test "x$srcdir" = x.
; then
8860 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8863 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8865 DEFS
=-DHAVE_CONFIG_H
8867 # Without the "./", some shells look in PATH for config.status.
8868 : ${CONFIG_STATUS=./config.status}
8870 echo creating
$CONFIG_STATUS
8871 rm -f $CONFIG_STATUS
8872 cat > $CONFIG_STATUS <<EOF
8874 # Generated automatically by configure.
8875 # Run this file to recreate the current configuration.
8876 # This directory was configured as follows,
8877 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8879 # $0 $ac_configure_args
8881 # Compiler output produced by configure, useful for debugging
8882 # configure, is in ./config.log if it exists.
8884 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8887 case "\$ac_option" in
8888 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8889 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8890 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8891 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8892 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8894 -help | --help | --hel | --he | --h)
8895 echo "\$ac_cs_usage"; exit 0 ;;
8896 *) echo "\$ac_cs_usage"; exit 1 ;;
8900 ac_given_srcdir=$srcdir
8901 ac_given_INSTALL="$INSTALL"
8903 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8905 cat >> $CONFIG_STATUS <<EOF
8907 # Protect against being on the right side of a sed subst in config.status.
8908 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8909 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8913 s%@CFLAGS@%$CFLAGS%g
8914 s%@CPPFLAGS@%$CPPFLAGS%g
8915 s%@CXXFLAGS@%$CXXFLAGS%g
8916 s%@FFLAGS@%$FFLAGS%g
8918 s%@LDFLAGS@%$LDFLAGS%g
8920 s%@exec_prefix@%$exec_prefix%g
8921 s%@prefix@%$prefix%g
8922 s%@program_transform_name@%$program_transform_name%g
8923 s%@bindir@%$bindir%g
8924 s%@sbindir@%$sbindir%g
8925 s%@libexecdir@%$libexecdir%g
8926 s%@datadir@%$datadir%g
8927 s%@sysconfdir@%$sysconfdir%g
8928 s%@sharedstatedir@%$sharedstatedir%g
8929 s%@localstatedir@%$localstatedir%g
8930 s%@libdir@%$libdir%g
8931 s%@includedir@%$includedir%g
8932 s%@oldincludedir@%$oldincludedir%g
8933 s%@infodir@%$infodir%g
8934 s%@mandir@%$mandir%g
8935 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8936 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8941 s%@host_alias@%$host_alias%g
8942 s%@host_cpu@%$host_cpu%g
8943 s%@host_vendor@%$host_vendor%g
8944 s%@host_os@%$host_os%g
8945 s%@target@%$target%g
8946 s%@target_alias@%$target_alias%g
8947 s%@target_cpu@%$target_cpu%g
8948 s%@target_vendor@%$target_vendor%g
8949 s%@target_os@%$target_os%g
8951 s%@build_alias@%$build_alias%g
8952 s%@build_cpu@%$build_cpu%g
8953 s%@build_vendor@%$build_vendor%g
8954 s%@build_os@%$build_os%g
8955 s%@SET_MAKE@%$SET_MAKE%g
8956 s%@RANLIB@%$RANLIB%g
8957 s%@ALLOCA@%$ALLOCA%g
8958 s%@USE_NLS@%$USE_NLS%g
8959 s%@MSGFMT@%$MSGFMT%g
8960 s%@GMSGFMT@%$GMSGFMT%g
8961 s%@XGETTEXT@%$XGETTEXT%g
8962 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8963 s%@CATALOGS@%$CATALOGS%g
8964 s%@CATOBJEXT@%$CATOBJEXT%g
8965 s%@DATADIRNAME@%$DATADIRNAME%g
8966 s%@GMOFILES@%$GMOFILES%g
8967 s%@INSTOBJEXT@%$INSTOBJEXT%g
8968 s%@INTLDEPS@%$INTLDEPS%g
8969 s%@INTLLIBS@%$INTLLIBS%g
8970 s%@INTLOBJS@%$INTLOBJS%g
8971 s%@POFILES@%$POFILES%g
8973 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8975 s%@GT_YES@%$GT_YES%g
8976 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8979 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8980 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8981 s%@INSTALL_DATA@%$INSTALL_DATA%g
8983 s%@DLLTOOL@%$DLLTOOL%g
8984 s%@WINDRES@%$WINDRES%g
8987 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
8988 s%@UIOUT_CFLAGS@%$UIOUT_CFLAGS%g
8989 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
8990 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
8991 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
8992 s%@MMALLOC@%$MMALLOC%g
8994 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
8995 s%@TERM_LIB@%$TERM_LIB%g
8996 s%@WIN32LIBS@%$WIN32LIBS%g
8997 s%@LIBGUI@%$LIBGUI%g
8998 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
8999 s%@WIN32LDAPP@%$WIN32LDAPP%g
9000 s%@TCL_VERSION@%$TCL_VERSION%g
9001 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
9002 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
9003 s%@TCL_CC@%$TCL_CC%g
9004 s%@TCL_DEFS@%$TCL_DEFS%g
9005 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
9006 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
9007 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
9008 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
9009 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
9010 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
9011 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
9012 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
9013 s%@TCL_RANLIB@%$TCL_RANLIB%g
9014 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
9015 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
9016 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
9017 s%@TK_VERSION@%$TK_VERSION%g
9018 s%@TK_DEFS@%$TK_DEFS%g
9019 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
9020 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
9021 s%@TK_XLIBSW@%$TK_XLIBSW%g
9022 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
9023 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
9024 s%@TCLHDIR@%$TCLHDIR%g
9025 s%@TKHDIR@%$TKHDIR%g
9026 s%@ITCLHDIR@%$ITCLHDIR%g
9027 s%@ITKHDIR@%$ITKHDIR%g
9028 s%@TIXHDIR@%$TIXHDIR%g
9029 s%@ITCL_VERSION@%$ITCL_VERSION%g
9030 s%@ITCL_DEFS@%$ITCL_DEFS%g
9031 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
9032 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
9033 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
9034 s%@ITK_VERSION@%$ITK_VERSION%g
9035 s%@ITK_DEFS@%$ITK_DEFS%g
9036 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
9037 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
9038 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
9039 s%@TIX_VERSION@%$TIX_VERSION%g
9040 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
9041 s%@X_CFLAGS@%$X_CFLAGS%g
9042 s%@X_LDFLAGS@%$X_LDFLAGS%g
9043 s%@X_LIBS@%$X_LIBS%g
9044 s%@TCL_DEPS@%$TCL_DEPS%g
9045 s%@TK_DEPS@%$TK_DEPS%g
9046 s%@ITCLLIB@%$ITCLLIB%g
9047 s%@ITCL_DEPS@%$ITCL_DEPS%g
9048 s%@ITKLIB@%$ITKLIB%g
9049 s%@ITK_DEPS@%$ITK_DEPS%g
9050 s%@TIXLIB@%$TIXLIB%g
9051 s%@TIX_DEPS@%$TIX_DEPS%g
9052 s%@GDBTKLIBS@%$GDBTKLIBS%g
9053 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
9054 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
9055 s%@IGNORE_SIM@%$IGNORE_SIM%g
9056 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
9057 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
9058 s%@CONFIG_OBS@%$CONFIG_OBS%g
9059 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
9060 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
9061 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
9062 s%@CONFIG_INITS@%$CONFIG_INITS%g
9063 s%@CONFIG_ALL@%$CONFIG_ALL%g
9064 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
9065 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
9066 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
9067 s%@HLDFLAGS@%$HLDFLAGS%g
9068 s%@HLDENV@%$HLDENV%g
9069 s%@target_subdir@%$target_subdir%g
9070 /@host_makefile_frag@/r $host_makefile_frag
9071 s%@host_makefile_frag@%%g
9072 /@target_makefile_frag@/r $target_makefile_frag
9073 s%@target_makefile_frag@%%g
9075 s%@SUBDIRS@%$SUBDIRS%g
9080 s%@EXEEXT@%$EXEEXT%g
9081 s%@subdirs@%$subdirs%g
9086 cat >> $CONFIG_STATUS <<\EOF
9088 # Split the substitutions into bite-sized pieces for seds with
9089 # small command number limits, like on Digital OSF/1 and HP-UX.
9090 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9091 ac_file
=1 # Number of current file.
9092 ac_beg
=1 # First line for current file.
9093 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9096 while $ac_more_lines; do
9097 if test $ac_beg -gt 1; then
9098 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9100 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9102 if test ! -s conftest.s
$ac_file; then
9104 rm -f conftest.s
$ac_file
9106 if test -z "$ac_sed_cmds"; then
9107 ac_sed_cmds
="sed -f conftest.s$ac_file"
9109 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9111 ac_file
=`expr $ac_file + 1`
9113 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9116 if test -z "$ac_sed_cmds"; then
9121 cat >> $CONFIG_STATUS <<EOF
9123 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
9125 cat >> $CONFIG_STATUS <<\EOF
9126 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9127 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9129 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9130 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9131 *) ac_file_in
="${ac_file}.in" ;;
9134 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9136 # Remove last slash and all that follows it. Not all systems have dirname.
9137 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9138 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9139 # The file is in a subdirectory.
9140 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9141 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9142 # A "../" for each directory in $ac_dir_suffix.
9143 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9145 ac_dir_suffix
= ac_dots
=
9148 case "$ac_given_srcdir" in
9150 if test -z "$ac_dots"; then top_srcdir
=.
9151 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9152 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9154 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9155 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9158 case "$ac_given_INSTALL" in
9159 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
9160 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
9163 echo creating
"$ac_file"
9165 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9167 *Makefile
*) ac_comsub
="1i\\
9168 # $configure_input" ;;
9172 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9174 s%@configure_input@%$configure_input%g
9175 s%@srcdir@%$srcdir%g
9176 s%@top_srcdir@%$top_srcdir%g
9177 s%@INSTALL@%$INSTALL%g
9178 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9182 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9183 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9185 # ac_d sets the value in "#define NAME VALUE" lines.
9186 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9187 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9190 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9191 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9192 ac_uB
='\([ ]\)%\1#\2define\3'
9195 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9196 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9197 ac_eB
='$%\1#\2define\3'
9201 if test "${CONFIG_HEADERS+set}" != set; then
9203 cat >> $CONFIG_STATUS <<EOF
9204 CONFIG_HEADERS="config.h:config.in"
9206 cat >> $CONFIG_STATUS <<\EOF
9208 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9209 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9211 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9212 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9213 *) ac_file_in
="${ac_file}.in" ;;
9216 echo creating
$ac_file
9218 rm -f conftest.frag conftest.
in conftest.out
9219 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9220 cat $ac_file_inputs > conftest.
in
9224 # Transform confdefs.h into a sed script conftest.vals that substitutes
9225 # the proper values into config.h.in to produce config.h. And first:
9226 # Protect against being on the right side of a sed subst in config.status.
9227 # Protect against being in an unquoted here document in config.status.
9229 cat > conftest.hdr
<<\EOF
9232 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9236 sed -n -f conftest.hdr confdefs.h > conftest.vals
9239 # This sed command replaces #undef with comments. This is necessary, for
9240 # example, in the case of _POSIX_SOURCE, which is predefined and required
9241 # on some systems where configure will not decide to define it.
9242 cat >> conftest.vals <<\EOF
9243 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9246 # Break up conftest.vals because some shells have a limit on
9247 # the size of here documents, and old seds have small limits too.
9252 ac_lines=`grep -c . conftest.vals
`
9253 # grep -c gives empty output for an empty file on some AIX systems.
9254 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9255 # Write a limited-size here document to conftest.frag.
9256 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9257 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9259 sed -f conftest.frag conftest.in > conftest.out
9261 mv conftest.out conftest.in
9263 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9265 mv conftest.tail conftest.vals
9269 cat >> $CONFIG_STATUS <<\EOF
9270 rm -f conftest.frag conftest.h
9271 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9272 cat conftest.in >> conftest.h
9274 if cmp -s $ac_file conftest.h 2>/dev/null; then
9275 echo "$ac_file is unchanged"
9278 # Remove last slash and all that follows it. Not all systems have dirname.
9279 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9280 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9281 # The file is in a subdirectory.
9282 test ! -d "$ac_dir" && mkdir "$ac_dir"
9285 mv conftest.h $ac_file
9291 cat >> $CONFIG_STATUS <<EOF
9296 cat >> $CONFIG_STATUS <<\EOF
9297 srcdir=$ac_given_srcdir
9298 while test -n "$ac_sources"; do
9299 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9300 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9302 echo "linking $srcdir/$ac_source to $ac_dest"
9304 if test ! -r $srcdir/$ac_source; then
9305 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9309 # Make relative symlinks.
9310 # Remove last slash and all that follows it. Not all systems have dirname.
9311 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9312 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9313 # The dest file is in a subdirectory.
9314 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9315 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9316 # A "../" for each directory in $ac_dest_dir_suffix.
9317 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9319 ac_dest_dir_suffix= ac_dots=
9323 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9324 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9327 # Make a symlink if possible; otherwise try a hard link.
9328 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9329 ln $srcdir/$ac_source $ac_dest; then :
9331 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9335 cat >> $CONFIG_STATUS <<EOF
9337 gdb_host_cpu=$gdb_host_cpu
9338 gdb_target_cpu=$gdb_target_cpu
9339 nativefile=$nativefile
9342 cat >> $CONFIG_STATUS <<\EOF
9344 if test "${nativefile}" = ""; then
9346 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
9347 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
9348 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
9350 mv -f Makefile.tem Makefile
9353 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
9354 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
9355 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
9356 mv -f Makefile.tmp Makefile
9359 case x$CONFIG_HEADERS in
9360 xconfig.h:config.in)
9366 chmod +x $CONFIG_STATUS
9367 rm -fr confdefs* $ac_clean_files
9368 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9370 if test "$no_recursion" != yes; then
9372 # Remove --cache-file and --srcdir arguments so they do not pile up.
9373 ac_sub_configure_args=
9375 for ac_arg in $ac_configure_args; do
9376 if test -n "$ac_prev"; then
9381 -cache-file | --cache-file | --cache-fil | --cache-fi \
9382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9383 ac_prev=cache_file ;;
9384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9387 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9389 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9391 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9395 for ac_config_dir in $configdirs; do
9397 # Do not complain, so a configure script can configure whichever
9398 # parts of a large source tree are present.
9399 if test ! -d $srcdir/$ac_config_dir; then
9403 echo configuring in $ac_config_dir
9408 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9410 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9418 # A "../" for each directory in /$ac_config_dir.
9419 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
9422 .) # No --srcdir option. We are building in place.
9423 ac_sub_srcdir=$srcdir ;;
9424 /*) # Absolute path.
9425 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9427 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9430 # Check for guested configure; otherwise get Cygnus style configure.
9431 if test -f $ac_sub_srcdir/configure; then
9432 ac_sub_configure=$ac_sub_srcdir/configure
9433 elif test -f $ac_sub_srcdir/configure.in; then
9434 ac_sub_configure=$ac_configure
9436 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9440 # The recursion is here.
9441 if test -n "$ac_sub_configure"; then
9443 # Make the cache file name correct relative to the subdirectory.
9444 case "$cache_file" in
9445 /*) ac_sub_cache_file=$cache_file ;;
9447 ac_sub_cache_file="$ac_dots$cache_file" ;;
9449 case "$ac_given_INSTALL" in
9450 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9451 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9454 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9455 # The eval makes quoting arguments work.
9456 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9459 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }