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
,
88 bindir
='${exec_prefix}/bin'
89 sbindir
='${exec_prefix}/sbin'
90 libexecdir
='${exec_prefix}/libexec'
91 datadir
='${prefix}/share'
92 sysconfdir
='${prefix}/etc'
93 sharedstatedir
='${prefix}/com'
94 localstatedir
='${prefix}/var'
95 libdir
='${exec_prefix}/lib'
96 includedir
='${prefix}/include'
97 oldincludedir
='/usr/include'
98 infodir
='${prefix}/info'
99 mandir
='${prefix}/man'
101 # Initialize some other variables.
104 SHELL
=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
120 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 # Accept the important Cygnus configure options, so we can diagnose typos.
128 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
130 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
131 bindir
="$ac_optarg" ;;
133 -build |
--build |
--buil |
--bui |
--bu)
135 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
136 build
="$ac_optarg" ;;
138 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
139 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
140 ac_prev
=cache_file
;;
141 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
142 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
143 cache_file
="$ac_optarg" ;;
145 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
147 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
149 datadir
="$ac_optarg" ;;
151 -disable-* |
--disable-*)
152 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
160 -enable-* |
--enable-*)
161 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
173 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
174 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
175 |
--exec |
--exe |
--ex)
176 ac_prev
=exec_prefix
;;
177 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
178 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
179 |
--exec=* |
--exe=* |
--ex=*)
180 exec_prefix
="$ac_optarg" ;;
182 -gas |
--gas |
--ga |
--g)
183 # Obsolete; use --with-gas.
186 -help |
--help |
--hel |
--he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --site-file=FILE use FILE as the site file
198 --version print the version of autoconf that created configure
199 Directory and file names:
200 --prefix=PREFIX install architecture-independent files in PREFIX
202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 --bindir=DIR user executables in DIR [EPREFIX/bin]
205 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
206 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
207 --datadir=DIR read-only architecture-independent data in DIR
209 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
210 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
213 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
214 --includedir=DIR C header files in DIR [PREFIX/include]
215 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
216 --infodir=DIR info documentation in DIR [PREFIX/info]
217 --mandir=DIR man documentation in DIR [PREFIX/man]
218 --srcdir=DIR find the sources in DIR [configure dir or ..]
219 --program-prefix=PREFIX prepend PREFIX to installed program names
220 --program-suffix=SUFFIX append SUFFIX to installed program names
221 --program-transform-name=PROGRAM
222 run sed PROGRAM on installed program names
226 --build=BUILD configure for building on BUILD [BUILD=HOST]
227 --host=HOST configure for HOST [guessed]
228 --target=TARGET configure for TARGET [TARGET=HOST]
229 Features and packages:
230 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
231 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
232 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
233 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
234 --x-includes=DIR X include files are in DIR
235 --x-libraries=DIR X library files are in DIR
237 if test -n "$ac_help"; then
238 echo "--enable and --with options recognized:$ac_help"
242 -host |
--host |
--hos |
--ho)
244 -host=* |
--host=* |
--hos=* |
--ho=*)
247 -includedir |
--includedir |
--includedi |
--included |
--include \
248 |
--includ |
--inclu |
--incl |
--inc)
249 ac_prev
=includedir
;;
250 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
251 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
252 includedir
="$ac_optarg" ;;
254 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
256 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
257 infodir
="$ac_optarg" ;;
259 -libdir |
--libdir |
--libdi |
--libd)
261 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
262 libdir
="$ac_optarg" ;;
264 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
265 |
--libexe |
--libex |
--libe)
266 ac_prev
=libexecdir
;;
267 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
268 |
--libexe=* |
--libex=* |
--libe=*)
269 libexecdir
="$ac_optarg" ;;
271 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
272 |
--localstate |
--localstat |
--localsta |
--localst \
273 |
--locals |
--local |
--loca |
--loc |
--lo)
274 ac_prev
=localstatedir
;;
275 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
276 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
277 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
278 localstatedir
="$ac_optarg" ;;
280 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
282 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
283 mandir
="$ac_optarg" ;;
286 # Obsolete; use --without-fp.
289 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
293 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
294 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
297 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
298 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
299 |
--oldin |
--oldi |
--old |
--ol |
--o)
300 ac_prev
=oldincludedir
;;
301 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
302 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
303 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
304 oldincludedir
="$ac_optarg" ;;
306 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
308 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
309 prefix
="$ac_optarg" ;;
311 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
312 |
--program-pre |
--program-pr |
--program-p)
313 ac_prev
=program_prefix
;;
314 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
315 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
316 program_prefix
="$ac_optarg" ;;
318 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
319 |
--program-suf |
--program-su |
--program-s)
320 ac_prev
=program_suffix
;;
321 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
322 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
323 program_suffix
="$ac_optarg" ;;
325 -program-transform-name |
--program-transform-name \
326 |
--program-transform-nam |
--program-transform-na \
327 |
--program-transform-n |
--program-transform- \
328 |
--program-transform |
--program-transfor \
329 |
--program-transfo |
--program-transf \
330 |
--program-trans |
--program-tran \
331 |
--progr-tra |
--program-tr |
--program-t)
332 ac_prev
=program_transform_name
;;
333 -program-transform-name=* |
--program-transform-name=* \
334 |
--program-transform-nam=* |
--program-transform-na=* \
335 |
--program-transform-n=* |
--program-transform-=* \
336 |
--program-transform=* |
--program-transfor=* \
337 |
--program-transfo=* |
--program-transf=* \
338 |
--program-trans=* |
--program-tran=* \
339 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
340 program_transform_name
="$ac_optarg" ;;
342 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
343 |
-silent |
--silent |
--silen |
--sile |
--sil)
346 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
348 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
350 sbindir
="$ac_optarg" ;;
352 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
353 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
354 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
356 ac_prev
=sharedstatedir
;;
357 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
358 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
359 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
361 sharedstatedir
="$ac_optarg" ;;
363 -site |
--site |
--sit)
365 -site=* |
--site=* |
--sit=*)
368 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
370 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
371 sitefile
="$ac_optarg" ;;
373 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
375 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
376 srcdir
="$ac_optarg" ;;
378 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
379 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
380 ac_prev
=sysconfdir
;;
381 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
382 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
383 sysconfdir
="$ac_optarg" ;;
385 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
387 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
388 target
="$ac_optarg" ;;
390 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
393 -version |
--version |
--versio |
--versi |
--vers)
394 echo "configure generated by autoconf version 2.13"
398 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package
=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}='$ac_optarg'" ;;
410 -without-* |
--without-*)
411 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package
=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
420 # Obsolete; use --with-x.
423 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
424 |
--x-incl |
--x-inc |
--x-in |
--x-i)
425 ac_prev
=x_includes
;;
426 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
427 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
428 x_includes
="$ac_optarg" ;;
430 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
431 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
432 ac_prev
=x_libraries
;;
433 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
434 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
435 x_libraries
="$ac_optarg" ;;
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
444 if test "x$nonopt" != xNONE
; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459 # File descriptor usage:
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c) ;;
487 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
488 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
489 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest
* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file
=main.c
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted
=yes
517 # Try the directory containing this script, then its parent.
519 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
522 if test ! -r $srcdir/$ac_unique_file; then
526 ac_srcdir_defaulted
=no
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$sitefile"; then
539 if test -z "$CONFIG_SITE"; then
540 if test "x$prefix" != xNONE
; then
541 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
543 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 CONFIG_SITE
="$sitefile"
549 for ac_site_file
in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp
='$CPP $CPPFLAGS'
567 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling
=$ac_cv_prog_cc_cross
573 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
582 ac_n
= ac_c
='\c' ac_t
=
587 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
588 echo "configure:589: checking whether to enable maintainer-specific portions of Makefiles" >&5
589 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
590 if test "${enable_maintainer_mode+set}" = set; then
591 enableval
="$enable_maintainer_mode"
592 USE_MAINTAINER_MODE
=$enableval
594 USE_MAINTAINER_MODE
=no
597 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
600 if test $USE_MAINTAINER_MODE = yes; then
601 MAINTAINER_MODE_TRUE
=
602 MAINTAINER_MODE_FALSE
='#'
604 MAINTAINER_MODE_TRUE
='#'
605 MAINTAINER_MODE_FALSE
=
607 MAINT
=$MAINTAINER_MODE_TRUE
611 # Extract the first word of "gcc", so it can be a program name with args.
612 set dummy gcc
; ac_word
=$2
613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
614 echo "configure:615: checking for $ac_word" >&5
615 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
618 if test -n "$CC"; then
619 ac_cv_prog_CC
="$CC" # Let the user override the test.
621 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
623 for ac_dir
in $ac_dummy; do
624 test -z "$ac_dir" && ac_dir
=.
625 if test -f $ac_dir/$ac_word; then
634 if test -n "$CC"; then
635 echo "$ac_t""$CC" 1>&6
637 echo "$ac_t""no" 1>&6
640 if test -z "$CC"; then
641 # Extract the first word of "cc", so it can be a program name with args.
642 set dummy cc
; ac_word
=$2
643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
644 echo "configure:645: checking for $ac_word" >&5
645 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
646 echo $ac_n "(cached) $ac_c" 1>&6
648 if test -n "$CC"; then
649 ac_cv_prog_CC
="$CC" # Let the user override the test.
651 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
654 for ac_dir
in $ac_dummy; do
655 test -z "$ac_dir" && ac_dir
=.
656 if test -f $ac_dir/$ac_word; then
657 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
666 if test $ac_prog_rejected = yes; then
667 # We found a bogon in the path, so make sure we never use it.
668 set dummy
$ac_cv_prog_CC
670 if test $# -gt 0; then
671 # We chose a different compiler from the bogus one.
672 # However, it has the same basename, so the bogon will be chosen
673 # first if we set CC to just the basename; use the full file name.
675 set dummy
"$ac_dir/$ac_word" "$@"
683 if test -n "$CC"; then
684 echo "$ac_t""$CC" 1>&6
686 echo "$ac_t""no" 1>&6
689 if test -z "$CC"; then
692 # Extract the first word of "cl", so it can be a program name with args.
693 set dummy cl
; ac_word
=$2
694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
695 echo "configure:696: checking for $ac_word" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 if test -n "$CC"; then
700 ac_cv_prog_CC
="$CC" # Let the user override the test.
702 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
704 for ac_dir
in $ac_dummy; do
705 test -z "$ac_dir" && ac_dir
=.
706 if test -f $ac_dir/$ac_word; then
715 if test -n "$CC"; then
716 echo "$ac_t""$CC" 1>&6
718 echo "$ac_t""no" 1>&6
723 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
726 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
727 echo "configure:728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
731 ac_cpp
='$CPP $CPPFLAGS'
732 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
733 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
734 cross_compiling
=$ac_cv_prog_cc_cross
736 cat > conftest.
$ac_ext << EOF
738 #line 739 "configure"
739 #include "confdefs.h"
743 if { (eval echo configure
:744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
744 ac_cv_prog_cc_works
=yes
745 # If we can't run a trivial program, we are probably using a cross compiler.
746 if (.
/conftest
; exit) 2>/dev
/null
; then
747 ac_cv_prog_cc_cross
=no
749 ac_cv_prog_cc_cross
=yes
752 echo "configure: failed program was:" >&5
753 cat conftest.
$ac_ext >&5
754 ac_cv_prog_cc_works
=no
758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
759 ac_cpp
='$CPP $CPPFLAGS'
760 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
761 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
762 cross_compiling
=$ac_cv_prog_cc_cross
764 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
765 if test $ac_cv_prog_cc_works = no
; then
766 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
768 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
769 echo "configure:770: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
770 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
771 cross_compiling
=$ac_cv_prog_cc_cross
773 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
774 echo "configure:775: checking whether we are using GNU C" >&5
775 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
778 cat > conftest.c
<<EOF
783 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
790 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
792 if test $ac_cv_prog_gcc = yes; then
798 ac_test_CFLAGS
="${CFLAGS+set}"
799 ac_save_CFLAGS
="$CFLAGS"
801 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
802 echo "configure:803: checking whether ${CC-cc} accepts -g" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 echo 'void f(){}' > conftest.c
807 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
816 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
817 if test "$ac_test_CFLAGS" = set; then
818 CFLAGS
="$ac_save_CFLAGS"
819 elif test $ac_cv_prog_cc_g = yes; then
820 if test "$GCC" = yes; then
826 if test "$GCC" = yes; then
833 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
834 echo "configure:835: checking how to run the C preprocessor" >&5
835 # On Suns, sometimes $CPP names a directory.
836 if test -n "$CPP" && test -d "$CPP"; then
839 if test -z "$CPP"; then
840 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 # This must be in double quotes, not single quotes, because CPP may get
844 # substituted into the Makefile and "${CC-cc}" will confuse make.
846 # On the NeXT, cc -E runs the code through the compiler's parser,
847 # not just through cpp.
848 cat > conftest.
$ac_ext <<EOF
849 #line 850 "configure"
850 #include "confdefs.h"
854 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
855 { (eval echo configure
:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
856 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
857 if test -z "$ac_err"; then
861 echo "configure: failed program was:" >&5
862 cat conftest.
$ac_ext >&5
864 CPP
="${CC-cc} -E -traditional-cpp"
865 cat > conftest.
$ac_ext <<EOF
866 #line 867 "configure"
867 #include "confdefs.h"
871 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
872 { (eval echo configure
:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
873 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
874 if test -z "$ac_err"; then
878 echo "configure: failed program was:" >&5
879 cat conftest.
$ac_ext >&5
881 CPP
="${CC-cc} -nologo -E"
882 cat > conftest.
$ac_ext <<EOF
883 #line 884 "configure"
884 #include "confdefs.h"
888 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
889 { (eval echo configure
:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
890 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
891 if test -z "$ac_err"; then
895 echo "configure: failed program was:" >&5
896 cat conftest.
$ac_ext >&5
905 ac_cv_prog_CPP
="$CPP"
907 CPP
="$ac_cv_prog_CPP"
909 ac_cv_prog_CPP
="$CPP"
911 echo "$ac_t""$CPP" 1>&6
913 echo $ac_n "checking for AIX""... $ac_c" 1>&6
914 echo "configure:915: checking for AIX" >&5
915 cat > conftest.
$ac_ext <<EOF
916 #line 917 "configure"
917 #include "confdefs.h"
923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
924 egrep "yes" >/dev
/null
2>&1; then
926 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
927 #define _ALL_SOURCE 1
932 echo "$ac_t""no" 1>&6
938 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
939 echo "configure:940: checking for strerror in -lcposix" >&5
940 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
941 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
942 echo $ac_n "(cached) $ac_c" 1>&6
945 LIBS
="-lcposix $LIBS"
946 cat > conftest.
$ac_ext <<EOF
947 #line 948 "configure"
948 #include "confdefs.h"
949 /* Override any gcc2 internal prototype to avoid an error. */
950 /* We use char because int might match the return type of a gcc2
951 builtin and then its argument prototype would still apply. */
958 if { (eval echo configure
:959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
960 eval "ac_cv_lib_$ac_lib_var=yes"
962 echo "configure: failed program was:" >&5
963 cat conftest.
$ac_ext >&5
965 eval "ac_cv_lib_$ac_lib_var=no"
971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
972 echo "$ac_t""yes" 1>&6
973 LIBS
="$LIBS -lcposix"
975 echo "$ac_t""no" 1>&6
983 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
984 echo "configure:985: checking for ${CC-cc} option to accept ANSI C" >&5
985 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
988 am_cv_prog_cc_stdc
=no
990 # Don't try gcc -ansi; that turns off useful extensions and
991 # breaks some systems' header files.
993 # Ultrix and OSF/1 -std1
994 # HP-UX -Aa -D_HPUX_SOURCE
995 # SVR4 -Xc -D__EXTENSIONS__
996 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
998 CC
="$ac_save_CC $ac_arg"
999 cat > conftest.
$ac_ext <<EOF
1000 #line 1001 "configure"
1001 #include "confdefs.h"
1004 #include <sys/types.h>
1005 #include <sys/stat.h>
1006 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1007 struct buf { int x; };
1008 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1009 static char *e (p, i)
1015 static char *f (char * (*g) (char **, int), char **p, ...)
1020 s = g (p, va_arg (v,int));
1024 int test (int i, double x);
1025 struct s1 {int (*f) (int a);};
1026 struct s2 {int (*f) (double a);};
1027 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1033 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1037 if { (eval echo configure
:1038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1039 am_cv_prog_cc_stdc
="$ac_arg"; break
1041 echo "configure: failed program was:" >&5
1042 cat conftest.
$ac_ext >&5
1050 if test -z "$am_cv_prog_cc_stdc"; then
1051 echo "$ac_t""none needed" 1>&6
1053 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1055 case "x$am_cv_prog_cc_stdc" in
1057 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1062 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1063 if test -f $ac_dir/install-sh
; then
1065 ac_install_sh
="$ac_aux_dir/install-sh -c"
1067 elif test -f $ac_dir/install.sh
; then
1069 ac_install_sh
="$ac_aux_dir/install.sh -c"
1073 if test -z "$ac_aux_dir"; then
1074 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1076 ac_config_guess
=$ac_aux_dir/config.guess
1077 ac_config_sub
=$ac_aux_dir/config.sub
1078 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1081 # Do some error checking and defaulting for the host and target type.
1083 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1086 # 1. You are not allowed to specify --host, --target, and nonopt at the
1088 # 2. Host defaults to nonopt.
1089 # 3. If nonopt is not specified, then host defaults to the current host,
1090 # as determined by config.guess.
1091 # 4. Target and build default to nonopt.
1092 # 5. If nonopt is not specified, then target and build default to host.
1094 # The aliases save the names the user supplied, while $host etc.
1095 # will get canonicalized.
1096 case $host---$target---$nonopt in
1097 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1098 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1102 # Make sure we can run config.sub.
1103 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1104 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1107 echo $ac_n "checking host system type""... $ac_c" 1>&6
1108 echo "configure:1109: checking host system type" >&5
1111 case "$host_alias" in
1115 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1116 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1118 *) host_alias
=$nonopt ;;
1122 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1123 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1124 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1125 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1126 echo "$ac_t""$host" 1>&6
1128 echo $ac_n "checking target system type""... $ac_c" 1>&6
1129 echo "configure:1130: checking target system type" >&5
1131 target_alias
=$target
1132 case "$target_alias" in
1135 NONE
) target_alias
=$host_alias ;;
1136 *) target_alias
=$nonopt ;;
1140 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1141 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1142 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1143 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1144 echo "$ac_t""$target" 1>&6
1146 echo $ac_n "checking build system type""... $ac_c" 1>&6
1147 echo "configure:1148: checking build system type" >&5
1150 case "$build_alias" in
1153 NONE
) build_alias
=$host_alias ;;
1154 *) build_alias
=$nonopt ;;
1158 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1159 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1160 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1161 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1162 echo "$ac_t""$build" 1>&6
1164 test "$host_alias" != "$target_alias" &&
1165 test "$program_prefix$program_suffix$program_transform_name" = \
1167 program_prefix
=${target_alias}-
1171 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1172 echo "configure:1173: checking whether ${MAKE-make} sets \${MAKE}" >&5
1173 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1174 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 cat > conftestmake
<<\EOF
1179 @
echo 'ac_maketemp="${MAKE}"'
1181 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1182 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1183 if test -n "$ac_maketemp"; then
1184 eval ac_cv_prog_make_
${ac_make}_set
=yes
1186 eval ac_cv_prog_make_
${ac_make}_set
=no
1190 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1191 echo "$ac_t""yes" 1>&6
1194 echo "$ac_t""no" 1>&6
1195 SET_MAKE
="MAKE=${MAKE-make}"
1198 # Extract the first word of "ranlib", so it can be a program name with args.
1199 set dummy ranlib
; ac_word
=$2
1200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1201 echo "configure:1202: checking for $ac_word" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 if test -n "$RANLIB"; then
1206 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1208 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1210 for ac_dir
in $ac_dummy; do
1211 test -z "$ac_dir" && ac_dir
=.
1212 if test -f $ac_dir/$ac_word; then
1213 ac_cv_prog_RANLIB
="ranlib"
1218 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1221 RANLIB
="$ac_cv_prog_RANLIB"
1222 if test -n "$RANLIB"; then
1223 echo "$ac_t""$RANLIB" 1>&6
1225 echo "$ac_t""no" 1>&6
1228 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1229 echo "configure:1230: checking for ANSI C header files" >&5
1230 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1233 cat > conftest.
$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1241 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1242 { (eval echo configure
:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1243 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1244 if test -z "$ac_err"; then
1246 ac_cv_header_stdc
=yes
1249 echo "configure: failed program was:" >&5
1250 cat conftest.
$ac_ext >&5
1252 ac_cv_header_stdc
=no
1256 if test $ac_cv_header_stdc = yes; then
1257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1258 cat > conftest.
$ac_ext <<EOF
1259 #line 1260 "configure"
1260 #include "confdefs.h"
1263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1264 egrep "memchr" >/dev
/null
2>&1; then
1268 ac_cv_header_stdc
=no
1274 if test $ac_cv_header_stdc = yes; then
1275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1276 cat > conftest.
$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1282 egrep "free" >/dev
/null
2>&1; then
1286 ac_cv_header_stdc
=no
1292 if test $ac_cv_header_stdc = yes; then
1293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1294 if test "$cross_compiling" = yes; then
1297 cat > conftest.
$ac_ext <<EOF
1298 #line 1299 "configure"
1299 #include "confdefs.h"
1301 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1302 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1304 int main () { int i; for (i = 0; i < 256; i++)
1305 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1309 if { (eval echo configure
:1310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1313 echo "configure: failed program was:" >&5
1314 cat conftest.
$ac_ext >&5
1316 ac_cv_header_stdc
=no
1324 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1325 if test $ac_cv_header_stdc = yes; then
1326 cat >> confdefs.h
<<\EOF
1327 #define STDC_HEADERS 1
1332 echo $ac_n "checking for working const""... $ac_c" 1>&6
1333 echo "configure:1334: checking for working const" >&5
1334 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1337 cat > conftest.
$ac_ext <<EOF
1338 #line 1339 "configure"
1339 #include "confdefs.h"
1343 /* Ultrix mips cc rejects this. */
1344 typedef int charset[2]; const charset x;
1345 /* SunOS 4.1.1 cc rejects this. */
1346 char const *const *ccp;
1348 /* NEC SVR4.0.2 mips cc rejects this. */
1349 struct point {int x, y;};
1350 static struct point const zero = {0,0};
1351 /* AIX XL C 1.02.0.0 rejects this.
1352 It does not let you subtract one const X* pointer from another in an arm
1353 of an if-expression whose if-part is not a constant expression */
1354 const char *g = "string";
1355 ccp = &g + (g ? g-g : 0);
1356 /* HPUX 7.0 cc rejects these. */
1359 ccp = (char const *const *) p;
1360 { /* SCO 3.2v4 cc rejects this. */
1362 char const *s = 0 ? (char *) 0 : (char const *) 0;
1366 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1368 const int *foo = &x[0];
1371 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1372 typedef const int *iptr;
1376 { /* AIX XL C 1.02.0.0 rejects this saying
1377 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1378 struct s { int j; const int *ap[3]; };
1379 struct s *b; b->j = 5;
1381 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1387 if { (eval echo configure
:1388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1391 echo "configure: failed program was:" >&5
1392 cat conftest.
$ac_ext >&5
1399 echo "$ac_t""$ac_cv_c_const" 1>&6
1400 if test $ac_cv_c_const = no
; then
1401 cat >> confdefs.h
<<\EOF
1407 echo $ac_n "checking for inline""... $ac_c" 1>&6
1408 echo "configure:1409: checking for inline" >&5
1409 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1413 for ac_kw
in inline __inline__ __inline
; do
1414 cat > conftest.
$ac_ext <<EOF
1415 #line 1416 "configure"
1416 #include "confdefs.h"
1422 if { (eval echo configure
:1423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1424 ac_cv_c_inline
=$ac_kw; break
1426 echo "configure: failed program was:" >&5
1427 cat conftest.
$ac_ext >&5
1434 echo "$ac_t""$ac_cv_c_inline" 1>&6
1435 case "$ac_cv_c_inline" in
1437 no
) cat >> confdefs.h
<<\EOF
1441 *) cat >> confdefs.h
<<EOF
1442 #define inline $ac_cv_c_inline
1447 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1448 echo "configure:1449: checking for off_t" >&5
1449 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1452 cat > conftest.
$ac_ext <<EOF
1453 #line 1454 "configure"
1454 #include "confdefs.h"
1455 #include <sys/types.h>
1461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1462 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1464 ac_cv_type_off_t
=yes
1472 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1473 if test $ac_cv_type_off_t = no
; then
1474 cat >> confdefs.h
<<\EOF
1480 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1481 echo "configure:1482: checking for size_t" >&5
1482 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1483 echo $ac_n "(cached) $ac_c" 1>&6
1485 cat > conftest.
$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1488 #include <sys/types.h>
1494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1495 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1497 ac_cv_type_size_t
=yes
1500 ac_cv_type_size_t
=no
1505 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1506 if test $ac_cv_type_size_t = no
; then
1507 cat >> confdefs.h
<<\EOF
1508 #define size_t unsigned
1513 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1514 # for constant arguments. Useless!
1515 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1516 echo "configure:1517: checking for working alloca.h" >&5
1517 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1518 echo $ac_n "(cached) $ac_c" 1>&6
1520 cat > conftest.
$ac_ext <<EOF
1521 #line 1522 "configure"
1522 #include "confdefs.h"
1525 char *p = alloca(2 * sizeof(int));
1528 if { (eval echo configure
:1529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1530 ac_cv_header_alloca_h
=yes
1532 echo "configure: failed program was:" >&5
1533 cat conftest.
$ac_ext >&5
1535 ac_cv_header_alloca_h
=no
1540 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1541 if test $ac_cv_header_alloca_h = yes; then
1542 cat >> confdefs.h
<<\EOF
1543 #define HAVE_ALLOCA_H 1
1548 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1549 echo "configure:1550: checking for alloca" >&5
1550 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1551 echo $ac_n "(cached) $ac_c" 1>&6
1553 cat > conftest.
$ac_ext <<EOF
1554 #line 1555 "configure"
1555 #include "confdefs.h"
1558 # define alloca __builtin_alloca
1561 # include <malloc.h>
1562 # define alloca _alloca
1565 # include <alloca.h>
1570 # ifndef alloca /* predefined by HP cc +Olibcalls */
1579 char *p = (char *) alloca(1);
1582 if { (eval echo configure
:1583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1584 ac_cv_func_alloca_works
=yes
1586 echo "configure: failed program was:" >&5
1587 cat conftest.
$ac_ext >&5
1589 ac_cv_func_alloca_works
=no
1594 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1595 if test $ac_cv_func_alloca_works = yes; then
1596 cat >> confdefs.h
<<\EOF
1597 #define HAVE_ALLOCA 1
1602 if test $ac_cv_func_alloca_works = no
; then
1603 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1604 # that cause trouble. Some versions do not even contain alloca or
1605 # contain a buggy version. If you still want to use their alloca,
1606 # use ar to extract alloca.o from them instead of compiling alloca.c.
1607 ALLOCA
=alloca.
${ac_objext}
1608 cat >> confdefs.h
<<\EOF
1613 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1614 echo "configure:1615: checking whether alloca needs Cray hooks" >&5
1615 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1618 cat > conftest.
$ac_ext <<EOF
1619 #line 1620 "configure"
1620 #include "confdefs.h"
1621 #if defined(CRAY) && ! defined(CRAY2)
1628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1629 egrep "webecray" >/dev
/null
2>&1; then
1640 echo "$ac_t""$ac_cv_os_cray" 1>&6
1641 if test $ac_cv_os_cray = yes; then
1642 for ac_func
in _getb67 GETB67 getb67
; do
1643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1644 echo "configure:1645: checking for $ac_func" >&5
1645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1646 echo $ac_n "(cached) $ac_c" 1>&6
1648 cat > conftest.
$ac_ext <<EOF
1649 #line 1650 "configure"
1650 #include "confdefs.h"
1651 /* System header to define __stub macros and hopefully few prototypes,
1652 which can conflict with char $ac_func(); below. */
1654 /* Override any gcc2 internal prototype to avoid an error. */
1655 /* We use char because int might match the return type of a gcc2
1656 builtin and then its argument prototype would still apply. */
1661 /* The GNU C library defines this for functions which it implements
1662 to always fail with ENOSYS. Some functions are actually named
1663 something starting with __ and the normal name is an alias. */
1664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1672 if { (eval echo configure
:1673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1674 eval "ac_cv_func_$ac_func=yes"
1676 echo "configure: failed program was:" >&5
1677 cat conftest.
$ac_ext >&5
1679 eval "ac_cv_func_$ac_func=no"
1684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1685 echo "$ac_t""yes" 1>&6
1686 cat >> confdefs.h
<<EOF
1687 #define CRAY_STACKSEG_END $ac_func
1692 echo "$ac_t""no" 1>&6
1698 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1699 echo "configure:1700: checking stack direction for C alloca" >&5
1700 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1703 if test "$cross_compiling" = yes; then
1704 ac_cv_c_stack_direction
=0
1706 cat > conftest.
$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1709 find_stack_direction ()
1711 static char *addr = 0;
1716 return find_stack_direction ();
1719 return (&dummy > addr) ? 1 : -1;
1723 exit (find_stack_direction() < 0);
1726 if { (eval echo configure
:1727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1728 ac_cv_c_stack_direction
=1
1730 echo "configure: failed program was:" >&5
1731 cat conftest.
$ac_ext >&5
1733 ac_cv_c_stack_direction
=-1
1740 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1741 cat >> confdefs.h
<<EOF
1742 #define STACK_DIRECTION $ac_cv_c_stack_direction
1747 for ac_hdr
in unistd.h
1749 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1751 echo "configure:1752: checking for $ac_hdr" >&5
1752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1755 cat > conftest.
$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1760 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1761 { (eval echo configure
:1762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1762 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1763 if test -z "$ac_err"; then
1765 eval "ac_cv_header_$ac_safe=yes"
1768 echo "configure: failed program was:" >&5
1769 cat conftest.
$ac_ext >&5
1771 eval "ac_cv_header_$ac_safe=no"
1775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1776 echo "$ac_t""yes" 1>&6
1777 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1778 cat >> confdefs.h
<<EOF
1779 #define $ac_tr_hdr 1
1783 echo "$ac_t""no" 1>&6
1787 for ac_func
in getpagesize
1789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1790 echo "configure:1791: checking for $ac_func" >&5
1791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1794 cat > conftest.
$ac_ext <<EOF
1795 #line 1796 "configure"
1796 #include "confdefs.h"
1797 /* System header to define __stub macros and hopefully few prototypes,
1798 which can conflict with char $ac_func(); below. */
1800 /* Override any gcc2 internal prototype to avoid an error. */
1801 /* We use char because int might match the return type of a gcc2
1802 builtin and then its argument prototype would still apply. */
1807 /* The GNU C library defines this for functions which it implements
1808 to always fail with ENOSYS. Some functions are actually named
1809 something starting with __ and the normal name is an alias. */
1810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1818 if { (eval echo configure
:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1820 eval "ac_cv_func_$ac_func=yes"
1822 echo "configure: failed program was:" >&5
1823 cat conftest.
$ac_ext >&5
1825 eval "ac_cv_func_$ac_func=no"
1830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1831 echo "$ac_t""yes" 1>&6
1832 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1833 cat >> confdefs.h
<<EOF
1834 #define $ac_tr_func 1
1838 echo "$ac_t""no" 1>&6
1842 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1843 echo "configure:1844: checking for working mmap" >&5
1844 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1847 if test "$cross_compiling" = yes; then
1848 ac_cv_func_mmap_fixed_mapped
=no
1850 cat > conftest.
$ac_ext <<EOF
1851 #line 1852 "configure"
1852 #include "confdefs.h"
1854 /* Thanks to Mike Haertel and Jim Avera for this test.
1855 Here is a matrix of mmap possibilities:
1856 mmap private not fixed
1857 mmap private fixed at somewhere currently unmapped
1858 mmap private fixed at somewhere already mapped
1859 mmap shared not fixed
1860 mmap shared fixed at somewhere currently unmapped
1861 mmap shared fixed at somewhere already mapped
1862 For private mappings, we should verify that changes cannot be read()
1863 back from the file, nor mmap's back from the file at a different
1864 address. (There have been systems where private was not correctly
1865 implemented like the infamous i386 svr4.0, and systems where the
1866 VM page cache was not coherent with the filesystem buffer cache
1867 like early versions of FreeBSD and possibly contemporary NetBSD.)
1868 For shared mappings, we should conversely verify that changes get
1869 propogated back to all the places they're supposed to be.
1871 Grep wants private fixed already mapped.
1872 The main things grep needs to know about mmap are:
1873 * does it exist and is it safe to write into the mmap'd area
1874 * how to use it (BSD variants) */
1875 #include <sys/types.h>
1877 #include <sys/mman.h>
1879 /* This mess was copied from the GNU getpagesize.h. */
1880 #ifndef HAVE_GETPAGESIZE
1881 # ifdef HAVE_UNISTD_H
1882 # include <unistd.h>
1885 /* Assume that all systems that can run configure have sys/param.h. */
1886 # ifndef HAVE_SYS_PARAM_H
1887 # define HAVE_SYS_PARAM_H 1
1890 # ifdef _SC_PAGESIZE
1891 # define getpagesize() sysconf(_SC_PAGESIZE)
1892 # else /* no _SC_PAGESIZE */
1893 # ifdef HAVE_SYS_PARAM_H
1894 # include <sys/param.h>
1895 # ifdef EXEC_PAGESIZE
1896 # define getpagesize() EXEC_PAGESIZE
1897 # else /* no EXEC_PAGESIZE */
1899 # define getpagesize() NBPG * CLSIZE
1902 # endif /* no CLSIZE */
1903 # else /* no NBPG */
1905 # define getpagesize() NBPC
1906 # else /* no NBPC */
1908 # define getpagesize() PAGESIZE
1909 # endif /* PAGESIZE */
1910 # endif /* no NBPC */
1911 # endif /* no NBPG */
1912 # endif /* no EXEC_PAGESIZE */
1913 # else /* no HAVE_SYS_PARAM_H */
1914 # define getpagesize() 8192 /* punt totally */
1915 # endif /* no HAVE_SYS_PARAM_H */
1916 # endif /* no _SC_PAGESIZE */
1918 #endif /* no HAVE_GETPAGESIZE */
1921 extern "C" { void *malloc(unsigned); }
1929 char *data, *data2, *data3;
1933 pagesize = getpagesize();
1936 * First, make a file with some known garbage in it.
1938 data = malloc(pagesize);
1941 for (i = 0; i < pagesize; ++i)
1942 *(data + i) = rand();
1944 fd = creat("conftestmmap", 0600);
1947 if (write(fd, data, pagesize) != pagesize)
1952 * Next, try to mmap the file at a fixed address which
1953 * already has something else allocated at it. If we can,
1954 * also make sure that we see the same garbage.
1956 fd = open("conftestmmap", O_RDWR);
1959 data2 = malloc(2 * pagesize);
1962 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1963 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1964 MAP_PRIVATE | MAP_FIXED, fd, 0L))
1966 for (i = 0; i < pagesize; ++i)
1967 if (*(data + i) != *(data2 + i))
1971 * Finally, make sure that changes to the mapped area
1972 * do not percolate back to the file as seen by read().
1973 * (This is a bug on some variants of i386 svr4.0.)
1975 for (i = 0; i < pagesize; ++i)
1976 *(data2 + i) = *(data2 + i) + 1;
1977 data3 = malloc(pagesize);
1980 if (read(fd, data3, pagesize) != pagesize)
1982 for (i = 0; i < pagesize; ++i)
1983 if (*(data + i) != *(data3 + i))
1986 unlink("conftestmmap");
1991 if { (eval echo configure
:1992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1993 ac_cv_func_mmap_fixed_mapped
=yes
1995 echo "configure: failed program was:" >&5
1996 cat conftest.
$ac_ext >&5
1998 ac_cv_func_mmap_fixed_mapped
=no
2005 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2006 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2007 cat >> confdefs.h
<<\EOF
2014 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2015 unistd.h values.h sys
/param.h
2017 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2019 echo "configure:2020: checking for $ac_hdr" >&5
2020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2023 cat > conftest.
$ac_ext <<EOF
2024 #line 2025 "configure"
2025 #include "confdefs.h"
2028 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2029 { (eval echo configure
:2030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2030 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2031 if test -z "$ac_err"; then
2033 eval "ac_cv_header_$ac_safe=yes"
2036 echo "configure: failed program was:" >&5
2037 cat conftest.
$ac_ext >&5
2039 eval "ac_cv_header_$ac_safe=no"
2043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2044 echo "$ac_t""yes" 1>&6
2045 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2046 cat >> confdefs.h
<<EOF
2047 #define $ac_tr_hdr 1
2051 echo "$ac_t""no" 1>&6
2055 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2056 __argz_count __argz_stringify __argz_next
2058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2059 echo "configure:2060: checking for $ac_func" >&5
2060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2063 cat > conftest.
$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2066 /* System header to define __stub macros and hopefully few prototypes,
2067 which can conflict with char $ac_func(); below. */
2069 /* Override any gcc2 internal prototype to avoid an error. */
2070 /* We use char because int might match the return type of a gcc2
2071 builtin and then its argument prototype would still apply. */
2076 /* The GNU C library defines this for functions which it implements
2077 to always fail with ENOSYS. Some functions are actually named
2078 something starting with __ and the normal name is an alias. */
2079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2087 if { (eval echo configure
:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2089 eval "ac_cv_func_$ac_func=yes"
2091 echo "configure: failed program was:" >&5
2092 cat conftest.
$ac_ext >&5
2094 eval "ac_cv_func_$ac_func=no"
2099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2100 echo "$ac_t""yes" 1>&6
2101 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2102 cat >> confdefs.h
<<EOF
2103 #define $ac_tr_func 1
2107 echo "$ac_t""no" 1>&6
2112 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2113 for ac_func
in stpcpy
2115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2116 echo "configure:2117: checking for $ac_func" >&5
2117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2118 echo $ac_n "(cached) $ac_c" 1>&6
2120 cat > conftest.
$ac_ext <<EOF
2121 #line 2122 "configure"
2122 #include "confdefs.h"
2123 /* System header to define __stub macros and hopefully few prototypes,
2124 which can conflict with char $ac_func(); below. */
2126 /* Override any gcc2 internal prototype to avoid an error. */
2127 /* We use char because int might match the return type of a gcc2
2128 builtin and then its argument prototype would still apply. */
2133 /* The GNU C library defines this for functions which it implements
2134 to always fail with ENOSYS. Some functions are actually named
2135 something starting with __ and the normal name is an alias. */
2136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2144 if { (eval echo configure
:2145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2146 eval "ac_cv_func_$ac_func=yes"
2148 echo "configure: failed program was:" >&5
2149 cat conftest.
$ac_ext >&5
2151 eval "ac_cv_func_$ac_func=no"
2156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2157 echo "$ac_t""yes" 1>&6
2158 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2159 cat >> confdefs.h
<<EOF
2160 #define $ac_tr_func 1
2164 echo "$ac_t""no" 1>&6
2169 if test "${ac_cv_func_stpcpy}" = "yes"; then
2170 cat >> confdefs.h
<<\EOF
2171 #define HAVE_STPCPY 1
2176 if test $ac_cv_header_locale_h = yes; then
2177 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2178 echo "configure:2179: checking for LC_MESSAGES" >&5
2179 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2180 echo $ac_n "(cached) $ac_c" 1>&6
2182 cat > conftest.
$ac_ext <<EOF
2183 #line 2184 "configure"
2184 #include "confdefs.h"
2190 if { (eval echo configure
:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2192 am_cv_val_LC_MESSAGES
=yes
2194 echo "configure: failed program was:" >&5
2195 cat conftest.
$ac_ext >&5
2197 am_cv_val_LC_MESSAGES
=no
2202 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2203 if test $am_cv_val_LC_MESSAGES = yes; then
2204 cat >> confdefs.h
<<\EOF
2205 #define HAVE_LC_MESSAGES 1
2210 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2211 echo "configure:2212: checking whether NLS is requested" >&5
2212 # Check whether --enable-nls or --disable-nls was given.
2213 if test "${enable_nls+set}" = set; then
2214 enableval
="$enable_nls"
2220 echo "$ac_t""$USE_NLS" 1>&6
2223 USE_INCLUDED_LIBINTL
=no
2225 if test "$USE_NLS" = "yes"; then
2226 cat >> confdefs.h
<<\EOF
2227 #define ENABLE_NLS 1
2230 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2231 echo "configure:2232: checking whether included gettext is requested" >&5
2232 # Check whether --with-included-gettext or --without-included-gettext was given.
2233 if test "${with_included_gettext+set}" = set; then
2234 withval
="$with_included_gettext"
2235 nls_cv_force_use_gnu_gettext
=$withval
2237 nls_cv_force_use_gnu_gettext
=no
2240 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2242 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2243 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2245 nls_cv_header_libgt
=
2248 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2249 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2250 echo "configure:2251: checking for libintl.h" >&5
2251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2254 cat > conftest.
$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2257 #include <libintl.h>
2259 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2260 { (eval echo configure
:2261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2261 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2262 if test -z "$ac_err"; then
2264 eval "ac_cv_header_$ac_safe=yes"
2267 echo "configure: failed program was:" >&5
2268 cat conftest.
$ac_ext >&5
2270 eval "ac_cv_header_$ac_safe=no"
2274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2275 echo "$ac_t""yes" 1>&6
2276 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2277 echo "configure:2278: checking for gettext in libc" >&5
2278 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2279 echo $ac_n "(cached) $ac_c" 1>&6
2281 cat > conftest.
$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2284 #include <libintl.h>
2286 return (int) gettext ("")
2289 if { (eval echo configure
:2290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2291 gt_cv_func_gettext_libc
=yes
2293 echo "configure: failed program was:" >&5
2294 cat conftest.
$ac_ext >&5
2296 gt_cv_func_gettext_libc
=no
2301 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2303 if test "$gt_cv_func_gettext_libc" != "yes"; then
2304 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2305 echo "configure:2306: checking for bindtextdomain in -lintl" >&5
2306 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6
2310 ac_save_LIBS
="$LIBS"
2312 cat > conftest.
$ac_ext <<EOF
2313 #line 2314 "configure"
2314 #include "confdefs.h"
2315 /* Override any gcc2 internal prototype to avoid an error. */
2316 /* We use char because int might match the return type of a gcc2
2317 builtin and then its argument prototype would still apply. */
2318 char bindtextdomain();
2324 if { (eval echo configure
:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2326 eval "ac_cv_lib_$ac_lib_var=yes"
2328 echo "configure: failed program was:" >&5
2329 cat conftest.
$ac_ext >&5
2331 eval "ac_cv_lib_$ac_lib_var=no"
2334 LIBS
="$ac_save_LIBS"
2337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2338 echo "$ac_t""yes" 1>&6
2339 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2340 echo "configure:2341: checking for gettext in libintl" >&5
2341 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 cat > conftest.
$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2349 return (int) gettext ("")
2352 if { (eval echo configure
:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2354 gt_cv_func_gettext_libintl
=yes
2356 echo "configure: failed program was:" >&5
2357 cat conftest.
$ac_ext >&5
2359 gt_cv_func_gettext_libintl
=no
2364 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2366 echo "$ac_t""no" 1>&6
2371 if test "$gt_cv_func_gettext_libc" = "yes" \
2372 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2373 cat >> confdefs.h
<<\EOF
2374 #define HAVE_GETTEXT 1
2377 # Extract the first word of "msgfmt", so it can be a program name with args.
2378 set dummy msgfmt
; ac_word
=$2
2379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2380 echo "configure:2381: checking for $ac_word" >&5
2381 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2386 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2389 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2390 for ac_dir
in $PATH; do
2391 test -z "$ac_dir" && ac_dir
=.
2392 if test -f $ac_dir/$ac_word; then
2393 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2394 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2400 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2404 MSGFMT
="$ac_cv_path_MSGFMT"
2405 if test -n "$MSGFMT"; then
2406 echo "$ac_t""$MSGFMT" 1>&6
2408 echo "$ac_t""no" 1>&6
2410 if test "$MSGFMT" != "no"; then
2411 for ac_func
in dcgettext
2413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2414 echo "configure:2415: checking for $ac_func" >&5
2415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2416 echo $ac_n "(cached) $ac_c" 1>&6
2418 cat > conftest.
$ac_ext <<EOF
2419 #line 2420 "configure"
2420 #include "confdefs.h"
2421 /* System header to define __stub macros and hopefully few prototypes,
2422 which can conflict with char $ac_func(); below. */
2424 /* Override any gcc2 internal prototype to avoid an error. */
2425 /* We use char because int might match the return type of a gcc2
2426 builtin and then its argument prototype would still apply. */
2431 /* The GNU C library defines this for functions which it implements
2432 to always fail with ENOSYS. Some functions are actually named
2433 something starting with __ and the normal name is an alias. */
2434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2442 if { (eval echo configure
:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2444 eval "ac_cv_func_$ac_func=yes"
2446 echo "configure: failed program was:" >&5
2447 cat conftest.
$ac_ext >&5
2449 eval "ac_cv_func_$ac_func=no"
2454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2455 echo "$ac_t""yes" 1>&6
2456 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2457 cat >> confdefs.h
<<EOF
2458 #define $ac_tr_func 1
2462 echo "$ac_t""no" 1>&6
2466 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2467 set dummy gmsgfmt
; ac_word
=$2
2468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2469 echo "configure:2470: checking for $ac_word" >&5
2470 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2475 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2478 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2481 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2483 for ac_dir
in $ac_dummy; do
2484 test -z "$ac_dir" && ac_dir
=.
2485 if test -f $ac_dir/$ac_word; then
2486 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2491 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2495 GMSGFMT
="$ac_cv_path_GMSGFMT"
2496 if test -n "$GMSGFMT"; then
2497 echo "$ac_t""$GMSGFMT" 1>&6
2499 echo "$ac_t""no" 1>&6
2502 # Extract the first word of "xgettext", so it can be a program name with args.
2503 set dummy xgettext
; ac_word
=$2
2504 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2505 echo "configure:2506: checking for $ac_word" >&5
2506 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2511 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2514 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2515 for ac_dir
in $PATH; do
2516 test -z "$ac_dir" && ac_dir
=.
2517 if test -f $ac_dir/$ac_word; then
2518 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2519 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2525 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2529 XGETTEXT
="$ac_cv_path_XGETTEXT"
2530 if test -n "$XGETTEXT"; then
2531 echo "$ac_t""$XGETTEXT" 1>&6
2533 echo "$ac_t""no" 1>&6
2536 cat > conftest.
$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2541 extern int _nl_msg_cat_cntr;
2542 return _nl_msg_cat_cntr
2545 if { (eval echo configure
:2546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2550 echo "configure: failed program was:" >&5
2551 cat conftest.
$ac_ext >&5
2562 echo "$ac_t""no" 1>&6
2567 if test "$CATOBJEXT" = "NONE"; then
2568 nls_cv_use_gnu_gettext
=yes
2572 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2573 INTLOBJS
="\$(GETTOBJS)"
2574 # Extract the first word of "msgfmt", so it can be a program name with args.
2575 set dummy msgfmt
; ac_word
=$2
2576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2577 echo "configure:2578: checking for $ac_word" >&5
2578 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2583 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2586 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2587 for ac_dir
in $PATH; do
2588 test -z "$ac_dir" && ac_dir
=.
2589 if test -f $ac_dir/$ac_word; then
2590 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2591 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2597 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2601 MSGFMT
="$ac_cv_path_MSGFMT"
2602 if test -n "$MSGFMT"; then
2603 echo "$ac_t""$MSGFMT" 1>&6
2605 echo "$ac_t""no" 1>&6
2608 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2609 set dummy gmsgfmt
; ac_word
=$2
2610 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2611 echo "configure:2612: checking for $ac_word" >&5
2612 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2613 echo $ac_n "(cached) $ac_c" 1>&6
2617 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2620 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2623 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2625 for ac_dir
in $ac_dummy; do
2626 test -z "$ac_dir" && ac_dir
=.
2627 if test -f $ac_dir/$ac_word; then
2628 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2633 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2637 GMSGFMT
="$ac_cv_path_GMSGFMT"
2638 if test -n "$GMSGFMT"; then
2639 echo "$ac_t""$GMSGFMT" 1>&6
2641 echo "$ac_t""no" 1>&6
2644 # Extract the first word of "xgettext", so it can be a program name with args.
2645 set dummy xgettext
; ac_word
=$2
2646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2647 echo "configure:2648: checking for $ac_word" >&5
2648 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2653 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2656 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2657 for ac_dir
in $PATH; do
2658 test -z "$ac_dir" && ac_dir
=.
2659 if test -f $ac_dir/$ac_word; then
2660 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2661 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2667 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2671 XGETTEXT
="$ac_cv_path_XGETTEXT"
2672 if test -n "$XGETTEXT"; then
2673 echo "$ac_t""$XGETTEXT" 1>&6
2675 echo "$ac_t""no" 1>&6
2679 USE_INCLUDED_LIBINTL
=yes
2683 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2685 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2686 nls_cv_header_intl
=libintl.h
2687 nls_cv_header_libgt
=libgettext.h
2690 if test "$XGETTEXT" != ":"; then
2691 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2694 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2699 # We need to process the po/ directory.
2703 nls_cv_header_intl
=libintl.h
2704 nls_cv_header_libgt
=libgettext.h
2707 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2708 # because some of the sources are only built for this goal.
2709 if test "$PACKAGE" = gettext; then
2711 USE_INCLUDED_LIBINTL
=yes
2714 for lang
in $ALL_LINGUAS; do
2715 GMOFILES
="$GMOFILES $lang.gmo"
2716 POFILES
="$POFILES $lang.po"
2732 if test "x$CATOBJEXT" != "x"; then
2733 if test "x$ALL_LINGUAS" = "x"; then
2736 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2737 echo "configure:2738: checking for catalogs to be installed" >&5
2739 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2740 case "$ALL_LINGUAS" in
2741 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2744 LINGUAS
=$NEW_LINGUAS
2745 echo "$ac_t""$LINGUAS" 1>&6
2748 if test -n "$LINGUAS"; then
2749 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2753 if test $ac_cv_header_locale_h = yes; then
2754 INCLUDE_LOCALE_H
="#include <locale.h>"
2757 /* The system does not provide the header <locale.h>. Take care yourself. */"
2761 if test -f $srcdir/po2tbl.
sed.
in; then
2762 if test "$CATOBJEXT" = ".cat"; then
2763 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2764 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2765 echo "configure:2766: checking for linux/version.h" >&5
2766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2767 echo $ac_n "(cached) $ac_c" 1>&6
2769 cat > conftest.
$ac_ext <<EOF
2770 #line 2771 "configure"
2771 #include "confdefs.h"
2772 #include <linux/version.h>
2774 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2775 { (eval echo configure
:2776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2776 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2777 if test -z "$ac_err"; then
2779 eval "ac_cv_header_$ac_safe=yes"
2782 echo "configure: failed program was:" >&5
2783 cat conftest.
$ac_ext >&5
2785 eval "ac_cv_header_$ac_safe=no"
2789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2790 echo "$ac_t""yes" 1>&6
2793 echo "$ac_t""no" 1>&6
2798 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2800 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2801 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2804 if test "$PACKAGE" = "gettext"; then
2814 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2820 if test -f $srcdir/po
/POTFILES.
in; then
2821 test -d po || mkdir po
2822 if test "x$srcdir" != "x."; then
2823 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2824 posrcprefix
="$srcdir/"
2826 posrcprefix
="../$srcdir/"
2832 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2833 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2849 configdirs
="doc testsuite"
2851 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2852 if test "${enable_multi_ice+set}" = set; then
2853 enableval
="$enable_multi_ice"
2854 case "${enableval}" in
2855 yes ) enable_multi_ice
="yes" ;;
2856 no
) enable_multi_ice
="no" ;;
2857 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2863 if test "${enable_multi_ice}" = "yes"; then
2864 configdirs
="${configdirs} multi-ice"
2868 .
${srcdir}/configure.
host
2870 .
${srcdir}/configure.tgt
2872 targ
=${target} ; .
${srcdir}/..
/bfd
/config.bfd
2876 .
${srcdir}/..
/bfd
/config.bfd
2878 targ_archs
=`echo ${targ_archs} | sed -e 's/ .*//;'`
2880 if test x
"${targ_archs}" != x
; then
2881 cat >> confdefs.h
<<EOF
2882 #define DEFAULT_BFD_ARCH ${targ_archs}
2886 if test x
"${targ_defvec}" != x
; then
2887 cat >> confdefs.h
<<EOF
2888 #define DEFAULT_BFD_VEC ${targ_defvec}
2893 for ac_prog
in mawk gawk nawk
awk
2895 # Extract the first word of "$ac_prog", so it can be a program name with args.
2896 set dummy
$ac_prog; ac_word
=$2
2897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2898 echo "configure:2899: checking for $ac_word" >&5
2899 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2902 if test -n "$AWK"; then
2903 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2905 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2907 for ac_dir
in $ac_dummy; do
2908 test -z "$ac_dir" && ac_dir
=.
2909 if test -f $ac_dir/$ac_word; then
2910 ac_cv_prog_AWK
="$ac_prog"
2917 AWK
="$ac_cv_prog_AWK"
2918 if test -n "$AWK"; then
2919 echo "$ac_t""$AWK" 1>&6
2921 echo "$ac_t""no" 1>&6
2924 test -n "$AWK" && break
2927 # Find a good install program. We prefer a C program (faster),
2928 # so one script is as good as another. But avoid the broken or
2929 # incompatible versions:
2930 # SysV /etc/install, /usr/sbin/install
2931 # SunOS /usr/etc/install
2932 # IRIX /sbin/install
2934 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2935 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2936 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2937 # ./install, which can be erroneously created by make from ./install.sh.
2938 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2939 echo "configure:2940: checking for a BSD compatible install" >&5
2940 if test -z "$INSTALL"; then
2941 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2944 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2945 for ac_dir
in $PATH; do
2946 # Account for people who put trailing slashes in PATH elements.
2948 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2950 # OSF1 and SCO ODT 3.0 have their own names for install.
2951 # Don't use installbsd from OSF since it installs stuff as root
2953 for ac_prog
in ginstall scoinst
install; do
2954 if test -f $ac_dir/$ac_prog; then
2955 if test $ac_prog = install &&
2956 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2957 # AIX install. It has an incompatible calling convention.
2960 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2971 if test "${ac_cv_path_install+set}" = set; then
2972 INSTALL
="$ac_cv_path_install"
2974 # As a last resort, use the slow shell script. We don't cache a
2975 # path for INSTALL within a source directory, because that will
2976 # break other packages using the cache if that directory is
2977 # removed, or if the path is relative.
2978 INSTALL
="$ac_install_sh"
2981 echo "$ac_t""$INSTALL" 1>&6
2983 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2984 # It thinks the first close brace ends the variable substitution.
2985 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2987 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2989 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2991 if test $host != $build; then
2992 ac_tool_prefix
=${host_alias}-
2997 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2998 set dummy
${ac_tool_prefix}ar; 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_AR'+set}'`\" = set"; then
3002 echo $ac_n "(cached) $ac_c" 1>&6
3004 if test -n "$AR"; then
3005 ac_cv_prog_AR
="$AR" # 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_AR
="${ac_tool_prefix}ar"
3017 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3021 if test -n "$AR"; then
3022 echo "$ac_t""$AR" 1>&6
3024 echo "$ac_t""no" 1>&6
3029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3030 set dummy
${ac_tool_prefix}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
="${ac_tool_prefix}ranlib"
3051 RANLIB
="$ac_cv_prog_RANLIB"
3052 if test -n "$RANLIB"; then
3053 echo "$ac_t""$RANLIB" 1>&6
3055 echo "$ac_t""no" 1>&6
3059 if test -z "$ac_cv_prog_RANLIB"; then
3060 if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "ranlib", so it can be a program name with args.
3062 set dummy ranlib
; ac_word
=$2
3063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3064 echo "configure:3065: checking for $ac_word" >&5
3065 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3068 if test -n "$RANLIB"; then
3069 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3071 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3073 for ac_dir
in $ac_dummy; do
3074 test -z "$ac_dir" && ac_dir
=.
3075 if test -f $ac_dir/$ac_word; then
3076 ac_cv_prog_RANLIB
="ranlib"
3081 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3084 RANLIB
="$ac_cv_prog_RANLIB"
3085 if test -n "$RANLIB"; then
3086 echo "$ac_t""$RANLIB" 1>&6
3088 echo "$ac_t""no" 1>&6
3096 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3097 set dummy
${ac_tool_prefix}dlltool
; 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_DLLTOOL'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3103 if test -n "$DLLTOOL"; then
3104 ac_cv_prog_DLLTOOL
="$DLLTOOL" # 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_DLLTOOL
="${ac_tool_prefix}dlltool"
3116 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3119 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3120 if test -n "$DLLTOOL"; then
3121 echo "$ac_t""$DLLTOOL" 1>&6
3123 echo "$ac_t""no" 1>&6
3128 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3129 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3131 echo "configure:3132: checking for $ac_word" >&5
3132 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3135 if test -n "$WINDRES"; then
3136 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3138 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3140 for ac_dir
in $ac_dummy; do
3141 test -z "$ac_dir" && ac_dir
=.
3142 if test -f $ac_dir/$ac_word; then
3143 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3148 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3151 WINDRES
="$ac_cv_prog_WINDRES"
3152 if test -n "$WINDRES"; then
3153 echo "$ac_t""$WINDRES" 1>&6
3155 echo "$ac_t""no" 1>&6
3160 for ac_prog
in 'bison -y' byacc
3162 # Extract the first word of "$ac_prog", so it can be a program name with args.
3163 set dummy
$ac_prog; ac_word
=$2
3164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3165 echo "configure:3166: checking for $ac_word" >&5
3166 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3169 if test -n "$YACC"; then
3170 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3172 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3174 for ac_dir
in $ac_dummy; do
3175 test -z "$ac_dir" && ac_dir
=.
3176 if test -f $ac_dir/$ac_word; then
3177 ac_cv_prog_YACC
="$ac_prog"
3184 YACC
="$ac_cv_prog_YACC"
3185 if test -n "$YACC"; then
3186 echo "$ac_t""$YACC" 1>&6
3188 echo "$ac_t""no" 1>&6
3191 test -n "$YACC" && break
3193 test -n "$YACC" || YACC
="yacc"
3196 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3197 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3199 echo "configure:3200: checking for $ac_word" >&5
3200 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 if test -n "$MIG"; then
3204 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3206 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3208 for ac_dir
in $ac_dummy; do
3209 test -z "$ac_dir" && ac_dir
=.
3210 if test -f $ac_dir/$ac_word; then
3211 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3216 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3219 MIG
="$ac_cv_prog_MIG"
3220 if test -n "$MIG"; then
3221 echo "$ac_t""$MIG" 1>&6
3223 echo "$ac_t""no" 1>&6
3229 if test "$program_transform_name" = s
,x
,x
,; then
3230 program_transform_name
=
3232 # Double any \ or $. echo might interpret backslashes.
3233 cat <<\EOF_SED
> conftestsed
3234 s
,\\,\\\\,g
; s
,\$
,$$
,g
3236 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
3239 test "$program_prefix" != NONE
&&
3240 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
3241 # Use a double $ so make ignores it.
3242 test "$program_suffix" != NONE
&&
3243 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
3245 # sed with no file args requires a program.
3246 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
3249 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3250 echo "configure:3251: checking return type of signal handlers" >&5
3251 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3252 echo $ac_n "(cached) $ac_c" 1>&6
3254 cat > conftest.
$ac_ext <<EOF
3255 #line 3256 "configure"
3256 #include "confdefs.h"
3257 #include <sys/types.h>
3263 extern "C" void (*signal (int, void (*)(int)))(int);
3265 void (*signal ()) ();
3272 if { (eval echo configure
:3273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3274 ac_cv_type_signal
=void
3276 echo "configure: failed program was:" >&5
3277 cat conftest.
$ac_ext >&5
3279 ac_cv_type_signal
=int
3284 echo "$ac_t""$ac_cv_type_signal" 1>&6
3285 cat >> confdefs.h
<<EOF
3286 #define RETSIGTYPE $ac_cv_type_signal
3291 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3292 echo "configure:3293: checking for ANSI C header files" >&5
3293 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3296 cat > conftest.
$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3304 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3305 { (eval echo configure
:3306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3306 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3307 if test -z "$ac_err"; then
3309 ac_cv_header_stdc
=yes
3312 echo "configure: failed program was:" >&5
3313 cat conftest.
$ac_ext >&5
3315 ac_cv_header_stdc
=no
3319 if test $ac_cv_header_stdc = yes; then
3320 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3321 cat > conftest.
$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3327 egrep "memchr" >/dev
/null
2>&1; then
3331 ac_cv_header_stdc
=no
3337 if test $ac_cv_header_stdc = yes; then
3338 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3339 cat > conftest.
$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3345 egrep "free" >/dev
/null
2>&1; then
3349 ac_cv_header_stdc
=no
3355 if test $ac_cv_header_stdc = yes; then
3356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3357 if test "$cross_compiling" = yes; then
3360 cat > conftest.
$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3364 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3365 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3367 int main () { int i; for (i = 0; i < 256; i++)
3368 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3372 if { (eval echo configure
:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3376 echo "configure: failed program was:" >&5
3377 cat conftest.
$ac_ext >&5
3379 ac_cv_header_stdc
=no
3387 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3388 if test $ac_cv_header_stdc = yes; then
3389 cat >> confdefs.h
<<\EOF
3390 #define STDC_HEADERS 1
3397 case $host_os in solaris2.7 | solaris2.8
) case "$GCC" in yes)
3398 cat >> confdefs.h
<<\EOF
3399 #define _MSE_INT_H 1
3404 for ac_hdr
in ctype.h nlist.h link.h thread_db.h proc_service.h \
3405 memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
3406 string.h sys
/procfs.h sys
/ptrace.h sys
/reg.h stdint.h \
3407 term.h termio.h termios.h unistd.h
wait.h sys
/wait.h \
3408 wchar.h wctype.h asm
/debugreg.h sys
/debugreg.h sys
/select.h \
3409 time.h sys
/file.h sys
/ioctl.h sys
/user.h sys
/fault.h sys
/syscall.h \
3410 dirent.h sys
/ndir.h sys
/dir.h ndir.h sys
/filio.h \
3411 curses.h ncurses.h \
3414 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3416 echo "configure:3417: checking for $ac_hdr" >&5
3417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3418 echo $ac_n "(cached) $ac_c" 1>&6
3420 cat > conftest.
$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3425 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3426 { (eval echo configure
:3427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3427 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3428 if test -z "$ac_err"; then
3430 eval "ac_cv_header_$ac_safe=yes"
3433 echo "configure: failed program was:" >&5
3434 cat conftest.
$ac_ext >&5
3436 eval "ac_cv_header_$ac_safe=no"
3440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3441 echo "$ac_t""yes" 1>&6
3442 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3443 cat >> confdefs.h
<<EOF
3444 #define $ac_tr_hdr 1
3448 echo "$ac_t""no" 1>&6
3452 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3453 echo "configure:3454: checking whether stat file-mode macros are broken" >&5
3454 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 cat > conftest.
$ac_ext <<EOF
3458 #line 3459 "configure"
3459 #include "confdefs.h"
3460 #include <sys/types.h>
3461 #include <sys/stat.h>
3463 #if defined(S_ISBLK) && defined(S_IFDIR)
3464 # if S_ISBLK (S_IFDIR)
3469 #if defined(S_ISBLK) && defined(S_IFCHR)
3470 # if S_ISBLK (S_IFCHR)
3475 #if defined(S_ISLNK) && defined(S_IFREG)
3476 # if S_ISLNK (S_IFREG)
3481 #if defined(S_ISSOCK) && defined(S_IFREG)
3482 # if S_ISSOCK (S_IFREG)
3488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3489 egrep "You lose" >/dev
/null
2>&1; then
3491 ac_cv_header_stat_broken
=yes
3494 ac_cv_header_stat_broken
=no
3500 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3501 if test $ac_cv_header_stat_broken = yes; then
3502 cat >> confdefs.h
<<\EOF
3503 #define STAT_MACROS_BROKEN 1
3509 echo $ac_n "checking for working const""... $ac_c" 1>&6
3510 echo "configure:3511: checking for working const" >&5
3511 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3514 cat > conftest.
$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3520 /* Ultrix mips cc rejects this. */
3521 typedef int charset[2]; const charset x;
3522 /* SunOS 4.1.1 cc rejects this. */
3523 char const *const *ccp;
3525 /* NEC SVR4.0.2 mips cc rejects this. */
3526 struct point {int x, y;};
3527 static struct point const zero = {0,0};
3528 /* AIX XL C 1.02.0.0 rejects this.
3529 It does not let you subtract one const X* pointer from another in an arm
3530 of an if-expression whose if-part is not a constant expression */
3531 const char *g = "string";
3532 ccp = &g + (g ? g-g : 0);
3533 /* HPUX 7.0 cc rejects these. */
3536 ccp = (char const *const *) p;
3537 { /* SCO 3.2v4 cc rejects this. */
3539 char const *s = 0 ? (char *) 0 : (char const *) 0;
3543 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3545 const int *foo = &x[0];
3548 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3549 typedef const int *iptr;
3553 { /* AIX XL C 1.02.0.0 rejects this saying
3554 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3555 struct s { int j; const int *ap[3]; };
3556 struct s *b; b->j = 5;
3558 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3564 if { (eval echo configure
:3565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3568 echo "configure: failed program was:" >&5
3569 cat conftest.
$ac_ext >&5
3576 echo "$ac_t""$ac_cv_c_const" 1>&6
3577 if test $ac_cv_c_const = no
; then
3578 cat >> confdefs.h
<<\EOF
3585 for ac_func
in bcopy btowc bzero canonicalize_file_name isascii poll \
3586 realpath sbrk setpgid setpgrp sigaction sigprocmask sigsetmask
3588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3589 echo "configure:3590: checking for $ac_func" >&5
3590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3593 cat > conftest.
$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 /* System header to define __stub macros and hopefully few prototypes,
3597 which can conflict with char $ac_func(); below. */
3599 /* Override any gcc2 internal prototype to avoid an error. */
3600 /* We use char because int might match the return type of a gcc2
3601 builtin and then its argument prototype would still apply. */
3606 /* The GNU C library defines this for functions which it implements
3607 to always fail with ENOSYS. Some functions are actually named
3608 something starting with __ and the normal name is an alias. */
3609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3617 if { (eval echo configure
:3618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3619 eval "ac_cv_func_$ac_func=yes"
3621 echo "configure: failed program was:" >&5
3622 cat conftest.
$ac_ext >&5
3624 eval "ac_cv_func_$ac_func=no"
3629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3630 echo "$ac_t""yes" 1>&6
3631 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3632 cat >> confdefs.h
<<EOF
3633 #define $ac_tr_func 1
3637 echo "$ac_t""no" 1>&6
3641 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3642 # for constant arguments. Useless!
3643 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3644 echo "configure:3645: checking for working alloca.h" >&5
3645 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3648 cat > conftest.
$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3653 char *p = alloca(2 * sizeof(int));
3656 if { (eval echo configure
:3657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3658 ac_cv_header_alloca_h
=yes
3660 echo "configure: failed program was:" >&5
3661 cat conftest.
$ac_ext >&5
3663 ac_cv_header_alloca_h
=no
3668 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3669 if test $ac_cv_header_alloca_h = yes; then
3670 cat >> confdefs.h
<<\EOF
3671 #define HAVE_ALLOCA_H 1
3676 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3677 echo "configure:3678: checking for alloca" >&5
3678 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3679 echo $ac_n "(cached) $ac_c" 1>&6
3681 cat > conftest.
$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3686 # define alloca __builtin_alloca
3689 # include <malloc.h>
3690 # define alloca _alloca
3693 # include <alloca.h>
3698 # ifndef alloca /* predefined by HP cc +Olibcalls */
3707 char *p = (char *) alloca(1);
3710 if { (eval echo configure
:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3712 ac_cv_func_alloca_works
=yes
3714 echo "configure: failed program was:" >&5
3715 cat conftest.
$ac_ext >&5
3717 ac_cv_func_alloca_works
=no
3722 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3723 if test $ac_cv_func_alloca_works = yes; then
3724 cat >> confdefs.h
<<\EOF
3725 #define HAVE_ALLOCA 1
3730 if test $ac_cv_func_alloca_works = no
; then
3731 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3732 # that cause trouble. Some versions do not even contain alloca or
3733 # contain a buggy version. If you still want to use their alloca,
3734 # use ar to extract alloca.o from them instead of compiling alloca.c.
3735 ALLOCA
=alloca.
${ac_objext}
3736 cat >> confdefs.h
<<\EOF
3741 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3742 echo "configure:3743: checking whether alloca needs Cray hooks" >&5
3743 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3744 echo $ac_n "(cached) $ac_c" 1>&6
3746 cat > conftest.
$ac_ext <<EOF
3747 #line 3748 "configure"
3748 #include "confdefs.h"
3749 #if defined(CRAY) && ! defined(CRAY2)
3756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3757 egrep "webecray" >/dev
/null
2>&1; then
3768 echo "$ac_t""$ac_cv_os_cray" 1>&6
3769 if test $ac_cv_os_cray = yes; then
3770 for ac_func
in _getb67 GETB67 getb67
; do
3771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3772 echo "configure:3773: checking for $ac_func" >&5
3773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3776 cat > conftest.
$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3779 /* System header to define __stub macros and hopefully few prototypes,
3780 which can conflict with char $ac_func(); below. */
3782 /* Override any gcc2 internal prototype to avoid an error. */
3783 /* We use char because int might match the return type of a gcc2
3784 builtin and then its argument prototype would still apply. */
3789 /* The GNU C library defines this for functions which it implements
3790 to always fail with ENOSYS. Some functions are actually named
3791 something starting with __ and the normal name is an alias. */
3792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3800 if { (eval echo configure
:3801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3802 eval "ac_cv_func_$ac_func=yes"
3804 echo "configure: failed program was:" >&5
3805 cat conftest.
$ac_ext >&5
3807 eval "ac_cv_func_$ac_func=no"
3812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3813 echo "$ac_t""yes" 1>&6
3814 cat >> confdefs.h
<<EOF
3815 #define CRAY_STACKSEG_END $ac_func
3820 echo "$ac_t""no" 1>&6
3826 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3827 echo "configure:3828: checking stack direction for C alloca" >&5
3828 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3831 if test "$cross_compiling" = yes; then
3832 ac_cv_c_stack_direction
=0
3834 cat > conftest.
$ac_ext <<EOF
3835 #line 3836 "configure"
3836 #include "confdefs.h"
3837 find_stack_direction ()
3839 static char *addr = 0;
3844 return find_stack_direction ();
3847 return (&dummy > addr) ? 1 : -1;
3851 exit (find_stack_direction() < 0);
3854 if { (eval echo configure
:3855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3856 ac_cv_c_stack_direction
=1
3858 echo "configure: failed program was:" >&5
3859 cat conftest.
$ac_ext >&5
3861 ac_cv_c_stack_direction
=-1
3868 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3869 cat >> confdefs.h
<<EOF
3870 #define STACK_DIRECTION $ac_cv_c_stack_direction
3875 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3876 echo "configure:3877: checking for pid_t" >&5
3877 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3878 echo $ac_n "(cached) $ac_c" 1>&6
3880 cat > conftest.
$ac_ext <<EOF
3881 #line 3882 "configure"
3882 #include "confdefs.h"
3883 #include <sys/types.h>
3889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3890 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3892 ac_cv_type_pid_t
=yes
3900 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3901 if test $ac_cv_type_pid_t = no
; then
3902 cat >> confdefs.h
<<\EOF
3908 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3909 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3910 echo "configure:3911: checking for vfork.h" >&5
3911 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3914 cat > conftest.
$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3919 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3920 { (eval echo configure
:3921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3921 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3922 if test -z "$ac_err"; then
3924 eval "ac_cv_header_$ac_safe=yes"
3927 echo "configure: failed program was:" >&5
3928 cat conftest.
$ac_ext >&5
3930 eval "ac_cv_header_$ac_safe=no"
3934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3935 echo "$ac_t""yes" 1>&6
3936 cat >> confdefs.h
<<\EOF
3937 #define HAVE_VFORK_H 1
3941 echo "$ac_t""no" 1>&6
3944 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3945 echo "configure:3946: checking for working vfork" >&5
3946 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3947 echo $ac_n "(cached) $ac_c" 1>&6
3949 if test "$cross_compiling" = yes; then
3950 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3951 echo "configure:3952: checking for vfork" >&5
3952 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3955 cat > conftest.
$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3958 /* System header to define __stub macros and hopefully few prototypes,
3959 which can conflict with char vfork(); below. */
3961 /* Override any gcc2 internal prototype to avoid an error. */
3962 /* We use char because int might match the return type of a gcc2
3963 builtin and then its argument prototype would still apply. */
3968 /* The GNU C library defines this for functions which it implements
3969 to always fail with ENOSYS. Some functions are actually named
3970 something starting with __ and the normal name is an alias. */
3971 #if defined (__stub_vfork) || defined (__stub___vfork)
3979 if { (eval echo configure
:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3981 eval "ac_cv_func_vfork=yes"
3983 echo "configure: failed program was:" >&5
3984 cat conftest.
$ac_ext >&5
3986 eval "ac_cv_func_vfork=no"
3991 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3992 echo "$ac_t""yes" 1>&6
3995 echo "$ac_t""no" 1>&6
3998 ac_cv_func_vfork_works
=$ac_cv_func_vfork
4000 cat > conftest.
$ac_ext <<EOF
4001 #line 4002 "configure"
4002 #include "confdefs.h"
4003 /* Thanks to Paul Eggert for this test. */
4005 #include <sys/types.h>
4006 #include <sys/stat.h>
4007 #ifdef HAVE_UNISTD_H
4013 /* On some sparc systems, changes by the child to local and incoming
4014 argument registers are propagated back to the parent.
4015 The compiler is told about this with #include <vfork.h>,
4016 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
4017 Test for this by using a static variable whose address
4018 is put into a register that is clobbered by the vfork. */
4021 sparc_address_test (int arg)
4023 sparc_address_test (arg) int arg;
4041 pid_t parent = getpid ();
4044 sparc_address_test ();
4049 /* Here is another test for sparc vfork register problems.
4050 This test uses lots of local variables, at least
4051 as many local variables as main has allocated so far
4052 including compiler temporaries. 4 locals are enough for
4053 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
4054 A buggy compiler should reuse the register of parent
4055 for one of the local variables, since it will think that
4056 parent can't possibly be used any more in this routine.
4057 Assigning to the local variable will thus munge parent
4058 in the parent process. */
4060 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4061 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4062 /* Convince the compiler that p..p7 are live; otherwise, it might
4063 use the same hardware register for all 8 local variables. */
4064 if (p != p1 || p != p2 || p != p3 || p != p4
4065 || p != p5 || p != p6 || p != p7)
4068 /* On some systems (e.g. IRIX 3.3),
4069 vfork doesn't separate parent from child file descriptors.
4070 If the child closes a descriptor before it execs or exits,
4071 this munges the parent's descriptor as well.
4072 Test for this by closing stdout in the child. */
4073 _exit(close(fileno(stdout)) != 0);
4078 while (wait(&status) != child)
4081 /* Was there some problem with vforking? */
4084 /* Did the child fail? (This shouldn't happen.) */
4087 /* Did the vfork/compiler bug occur? */
4088 || parent != getpid()
4090 /* Did the file descriptor bug occur? */
4091 || fstat(fileno(stdout), &st) != 0
4096 if { (eval echo configure
:4097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4098 ac_cv_func_vfork_works
=yes
4100 echo "configure: failed program was:" >&5
4101 cat conftest.
$ac_ext >&5
4103 ac_cv_func_vfork_works
=no
4110 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
4111 if test $ac_cv_func_vfork_works = no
; then
4112 cat >> confdefs.h
<<\EOF
4118 if test "$cross_compiling" = no
; then
4119 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4120 echo "configure:4121: checking whether setpgrp takes no argument" >&5
4121 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4124 if test "$cross_compiling" = yes; then
4125 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
4127 cat > conftest.
$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4131 #ifdef HAVE_UNISTD_H
4136 * If this system has a BSD-style setpgrp, which takes arguments, exit
4141 if (setpgrp(1,1) == -1)
4148 if { (eval echo configure
:4149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4150 ac_cv_func_setpgrp_void
=no
4152 echo "configure: failed program was:" >&5
4153 cat conftest.
$ac_ext >&5
4155 ac_cv_func_setpgrp_void
=yes
4163 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
4164 if test $ac_cv_func_setpgrp_void = yes; then
4165 cat >> confdefs.h
<<\EOF
4166 #define SETPGRP_VOID 1
4172 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4173 echo "configure:4174: checking whether setpgrp takes no argument" >&5
4174 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4175 echo $ac_n "(cached) $ac_c" 1>&6
4177 cat > conftest.
$ac_ext <<EOF
4178 #line 4179 "configure"
4179 #include "confdefs.h"
4185 if (setpgrp(1,1) == -1)
4192 if { (eval echo configure
:4193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4194 ac_cv_func_setpgrp_void
=no
4196 echo "configure: failed program was:" >&5
4197 cat conftest.
$ac_ext >&5
4199 ac_cv_func_setpgrp_void
=yes
4204 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
4205 if test $ac_cv_func_setpgrp_void = yes; then
4206 cat >> confdefs.h
<<\EOF
4207 #define SETPGRP_VOID 1
4213 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
4214 # since sigsetjmp might only be defined as a macro.
4215 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
4216 echo "configure:4217: checking for sigsetjmp" >&5
4217 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
4218 echo $ac_n "(cached) $ac_c" 1>&6
4220 cat > conftest.
$ac_ext <<EOF
4221 #line 4222 "configure"
4222 #include "confdefs.h"
4227 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
4230 if { (eval echo configure
:4231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4232 gdb_cv_func_sigsetjmp
=yes
4234 echo "configure: failed program was:" >&5
4235 cat conftest.
$ac_ext >&5
4237 gdb_cv_func_sigsetjmp
=no
4242 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
4243 if test $gdb_cv_func_sigsetjmp = yes; then
4244 cat >> confdefs.h
<<\EOF
4245 #define HAVE_SIGSETJMP 1
4250 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
4251 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
4252 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
4253 echo "configure:4254: checking for r_fs in struct reg" >&5
4254 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
4255 echo $ac_n "(cached) $ac_c" 1>&6
4257 cat > conftest.
$ac_ext <<EOF
4258 #line 4259 "configure"
4259 #include "confdefs.h"
4260 #include <machine/reg.h>
4262 struct reg r; r.r_fs;
4265 if { (eval echo configure
:4266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4267 gdb_cv_struct_reg_r_fs
=yes
4269 echo "configure: failed program was:" >&5
4270 cat conftest.
$ac_ext >&5
4272 gdb_cv_struct_reg_r_fs
=no
4277 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
4278 if test $gdb_cv_struct_reg_r_fs = yes; then
4279 cat >> confdefs.h
<<\EOF
4280 #define HAVE_STRUCT_REG_R_FS 1
4284 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
4285 echo "configure:4286: checking for r_gs in struct reg" >&5
4286 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4289 cat > conftest.
$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4292 #include <machine/reg.h>
4294 struct reg r; r.r_gs;
4297 if { (eval echo configure
:4298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4299 gdb_cv_struct_reg_r_gs
=yes
4301 echo "configure: failed program was:" >&5
4302 cat conftest.
$ac_ext >&5
4304 gdb_cv_struct_reg_r_gs
=no
4309 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
4310 if test $gdb_cv_struct_reg_r_gs = yes; then
4311 cat >> confdefs.h
<<\EOF
4312 #define HAVE_STRUCT_REG_R_GS 1
4317 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
4318 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
4319 echo "configure:4320: checking for PTRACE_GETREGS" >&5
4320 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4323 cat > conftest.
$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4326 #include <sys/ptrace.h>
4331 if { (eval echo configure
:4332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4333 gdb_cv_have_ptrace_getregs
=yes
4335 echo "configure: failed program was:" >&5
4336 cat conftest.
$ac_ext >&5
4338 gdb_cv_have_ptrace_getregs
=no
4343 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
4344 if test $gdb_cv_have_ptrace_getregs = yes; then
4345 cat >> confdefs.h
<<\EOF
4346 #define HAVE_PTRACE_GETREGS 1
4351 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
4352 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
4353 echo "configure:4354: checking for PTRACE_GETFPXREGS" >&5
4354 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4357 cat > conftest.
$ac_ext <<EOF
4358 #line 4359 "configure"
4359 #include "confdefs.h"
4360 #include <sys/ptrace.h>
4365 if { (eval echo configure
:4366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4367 gdb_cv_have_ptrace_getfpxregs
=yes
4369 echo "configure: failed program was:" >&5
4370 cat conftest.
$ac_ext >&5
4372 gdb_cv_have_ptrace_getfpxregs
=no
4377 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
4378 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
4379 cat >> confdefs.h
<<\EOF
4380 #define HAVE_PTRACE_GETFPXREGS 1
4385 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
4386 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
4387 echo "configure:4388: checking for PT_GETDBREGS" >&5
4388 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
4389 echo $ac_n "(cached) $ac_c" 1>&6
4391 cat > conftest.
$ac_ext <<EOF
4392 #line 4393 "configure"
4393 #include "confdefs.h"
4394 #include <sys/types.h>
4395 #include <sys/ptrace.h>
4400 if { (eval echo configure
:4401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4402 gdb_cv_have_pt_getdbregs
=yes
4404 echo "configure: failed program was:" >&5
4405 cat conftest.
$ac_ext >&5
4407 gdb_cv_have_pt_getdbregs
=no
4412 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
4413 if test $gdb_cv_have_pt_getdbregs = yes; then
4414 cat >> confdefs.h
<<\EOF
4415 #define HAVE_PT_GETDBREGS 1
4420 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
4421 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
4422 echo "configure:4423: checking for PT_GETXMMREGS" >&5
4423 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
4426 cat > conftest.
$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4429 #include <sys/types.h>
4430 #include <sys/ptrace.h>
4435 if { (eval echo configure
:4436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4437 gdb_cv_have_pt_getxmmregs
=yes
4439 echo "configure: failed program was:" >&5
4440 cat conftest.
$ac_ext >&5
4442 gdb_cv_have_pt_getxmmregs
=no
4447 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
4448 if test $gdb_cv_have_pt_getxmmregs = yes; then
4449 cat >> confdefs.h
<<\EOF
4450 #define HAVE_PT_GETXMMREGS 1
4456 echo $ac_n "checking for socketpair in -lsocket""... $ac_c" 1>&6
4457 echo "configure:4458: checking for socketpair in -lsocket" >&5
4458 ac_lib_var
=`echo socket'_'socketpair | sed 'y%./+-%__p_%'`
4459 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 ac_save_LIBS
="$LIBS"
4463 LIBS
="-lsocket $LIBS"
4464 cat > conftest.
$ac_ext <<EOF
4465 #line 4466 "configure"
4466 #include "confdefs.h"
4467 /* Override any gcc2 internal prototype to avoid an error. */
4468 /* We use char because int might match the return type of a gcc2
4469 builtin and then its argument prototype would still apply. */
4476 if { (eval echo configure
:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4478 eval "ac_cv_lib_$ac_lib_var=yes"
4480 echo "configure: failed program was:" >&5
4481 cat conftest.
$ac_ext >&5
4483 eval "ac_cv_lib_$ac_lib_var=no"
4486 LIBS
="$ac_save_LIBS"
4489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4490 echo "$ac_t""yes" 1>&6
4491 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4492 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4493 cat >> confdefs.h
<<EOF
4494 #define $ac_tr_lib 1
4497 LIBS
="-lsocket $LIBS"
4500 echo "$ac_t""no" 1>&6
4503 for ac_func
in socketpair
4505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4506 echo "configure:4507: checking for $ac_func" >&5
4507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4510 cat > conftest.
$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4513 /* System header to define __stub macros and hopefully few prototypes,
4514 which can conflict with char $ac_func(); below. */
4516 /* Override any gcc2 internal prototype to avoid an error. */
4517 /* We use char because int might match the return type of a gcc2
4518 builtin and then its argument prototype would still apply. */
4523 /* The GNU C library defines this for functions which it implements
4524 to always fail with ENOSYS. Some functions are actually named
4525 something starting with __ and the normal name is an alias. */
4526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4534 if { (eval echo configure
:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4536 eval "ac_cv_func_$ac_func=yes"
4538 echo "configure: failed program was:" >&5
4539 cat conftest.
$ac_ext >&5
4541 eval "ac_cv_func_$ac_func=no"
4546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4547 echo "$ac_t""yes" 1>&6
4548 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4549 cat >> confdefs.h
<<EOF
4550 #define $ac_tr_func 1
4554 echo "$ac_t""no" 1>&6
4560 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4561 echo "configure:4562: checking whether malloc must be declared" >&5
4562 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4563 echo $ac_n "(cached) $ac_c" 1>&6
4565 cat > conftest.
$ac_ext <<EOF
4566 #line 4567 "configure"
4567 #include "confdefs.h"
4570 #ifdef HAVE_STRING_H
4573 #ifdef HAVE_STRINGS_H
4574 #include <strings.h>
4577 #ifdef HAVE_STDLIB_H
4580 #ifdef HAVE_UNISTD_H
4584 char *(*pfn) = (char *(*)) malloc
4587 if { (eval echo configure
:4588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4589 bfd_cv_decl_needed_malloc
=no
4591 echo "configure: failed program was:" >&5
4592 cat conftest.
$ac_ext >&5
4594 bfd_cv_decl_needed_malloc
=yes
4599 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4600 if test $bfd_cv_decl_needed_malloc = yes; then
4601 cat >> confdefs.h
<<\EOF
4602 #define NEED_DECLARATION_MALLOC 1
4607 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4608 echo "configure:4609: checking whether realloc must be declared" >&5
4609 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4610 echo $ac_n "(cached) $ac_c" 1>&6
4612 cat > conftest.
$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4617 #ifdef HAVE_STRING_H
4620 #ifdef HAVE_STRINGS_H
4621 #include <strings.h>
4624 #ifdef HAVE_STDLIB_H
4627 #ifdef HAVE_UNISTD_H
4631 char *(*pfn) = (char *(*)) realloc
4634 if { (eval echo configure
:4635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4636 bfd_cv_decl_needed_realloc
=no
4638 echo "configure: failed program was:" >&5
4639 cat conftest.
$ac_ext >&5
4641 bfd_cv_decl_needed_realloc
=yes
4646 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4647 if test $bfd_cv_decl_needed_realloc = yes; then
4648 cat >> confdefs.h
<<\EOF
4649 #define NEED_DECLARATION_REALLOC 1
4654 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4655 echo "configure:4656: checking whether free must be declared" >&5
4656 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4657 echo $ac_n "(cached) $ac_c" 1>&6
4659 cat > conftest.
$ac_ext <<EOF
4660 #line 4661 "configure"
4661 #include "confdefs.h"
4664 #ifdef HAVE_STRING_H
4667 #ifdef HAVE_STRINGS_H
4668 #include <strings.h>
4671 #ifdef HAVE_STDLIB_H
4674 #ifdef HAVE_UNISTD_H
4678 char *(*pfn) = (char *(*)) free
4681 if { (eval echo configure
:4682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4683 bfd_cv_decl_needed_free
=no
4685 echo "configure: failed program was:" >&5
4686 cat conftest.
$ac_ext >&5
4688 bfd_cv_decl_needed_free
=yes
4693 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4694 if test $bfd_cv_decl_needed_free = yes; then
4695 cat >> confdefs.h
<<\EOF
4696 #define NEED_DECLARATION_FREE 1
4701 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
4702 echo "configure:4703: checking whether strerror must be declared" >&5
4703 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
4704 echo $ac_n "(cached) $ac_c" 1>&6
4706 cat > conftest.
$ac_ext <<EOF
4707 #line 4708 "configure"
4708 #include "confdefs.h"
4711 #ifdef HAVE_STRING_H
4714 #ifdef HAVE_STRINGS_H
4715 #include <strings.h>
4718 #ifdef HAVE_STDLIB_H
4721 #ifdef HAVE_UNISTD_H
4725 char *(*pfn) = (char *(*)) strerror
4728 if { (eval echo configure
:4729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4730 bfd_cv_decl_needed_strerror
=no
4732 echo "configure: failed program was:" >&5
4733 cat conftest.
$ac_ext >&5
4735 bfd_cv_decl_needed_strerror
=yes
4740 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
4741 if test $bfd_cv_decl_needed_strerror = yes; then
4742 cat >> confdefs.h
<<\EOF
4743 #define NEED_DECLARATION_STRERROR 1
4748 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
4749 echo "configure:4750: checking whether strdup must be declared" >&5
4750 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4753 cat > conftest.
$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4758 #ifdef HAVE_STRING_H
4761 #ifdef HAVE_STRINGS_H
4762 #include <strings.h>
4765 #ifdef HAVE_STDLIB_H
4768 #ifdef HAVE_UNISTD_H
4772 char *(*pfn) = (char *(*)) strdup
4775 if { (eval echo configure
:4776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4777 bfd_cv_decl_needed_strdup
=no
4779 echo "configure: failed program was:" >&5
4780 cat conftest.
$ac_ext >&5
4782 bfd_cv_decl_needed_strdup
=yes
4787 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
4788 if test $bfd_cv_decl_needed_strdup = yes; then
4789 cat >> confdefs.h
<<\EOF
4790 #define NEED_DECLARATION_STRDUP 1
4795 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4796 echo "configure:4797: checking whether strstr must be declared" >&5
4797 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4798 echo $ac_n "(cached) $ac_c" 1>&6
4800 cat > conftest.
$ac_ext <<EOF
4801 #line 4802 "configure"
4802 #include "confdefs.h"
4805 #ifdef HAVE_STRING_H
4808 #ifdef HAVE_STRINGS_H
4809 #include <strings.h>
4812 #ifdef HAVE_STDLIB_H
4815 #ifdef HAVE_UNISTD_H
4819 char *(*pfn) = (char *(*)) strstr
4822 if { (eval echo configure
:4823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4824 bfd_cv_decl_needed_strstr
=no
4826 echo "configure: failed program was:" >&5
4827 cat conftest.
$ac_ext >&5
4829 bfd_cv_decl_needed_strstr
=yes
4834 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4835 if test $bfd_cv_decl_needed_strstr = yes; then
4836 cat >> confdefs.h
<<\EOF
4837 #define NEED_DECLARATION_STRSTR 1
4844 # The following save_state_t checkery is only necessary for HPUX
4845 # versions earlier than 10.20. When those fade from memory, this
4846 # could be expunged. --jsm 1999-03-22
4848 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
4849 echo "configure:4850: checking for HPUX save_state structure" >&5
4850 cat > conftest.
$ac_ext <<EOF
4851 #line 4852 "configure"
4852 #include "confdefs.h"
4853 #include <machine/save_state.h>
4855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4856 egrep "save_state_t" >/dev
/null
2>&1; then
4858 gdb_cv_hpux_savestate
=yes
4861 gdb_cv_hpux_savestate
=no
4865 cat > conftest.
$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4868 #include <machine/save_state.h>
4870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4871 egrep "ss_wide" >/dev
/null
2>&1; then
4873 gdb_cv_hpux_sswide
=yes
4876 gdb_cv_hpux_sswide
=no
4880 if test $gdb_cv_hpux_savestate = yes
4882 cat >> confdefs.h
<<\EOF
4883 #define HAVE_STRUCT_SAVE_STATE_T 1
4887 if test $gdb_cv_hpux_sswide = yes
4889 cat >> confdefs.h
<<\EOF
4890 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
4894 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
4897 # If we are configured native on GNU/Linux, work around problems with
4899 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
4901 if test "${target}" = "${host}"; then
4904 cat >> confdefs.h
<<\EOF
4905 #define START_INFERIOR_TRAPS_EXPECTED 2
4908 cat >> confdefs.h
<<\EOF
4909 #define sys_quotactl 1
4914 cat >> confdefs.h
<<\EOF
4915 #define NEW_PROC_API 1
4919 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5*)
4920 cat >> confdefs.h
<<\EOF
4921 #define NEW_PROC_API 1
4926 cat >> confdefs.h
<<\EOF
4927 #define NEW_PROC_API 1
4934 if test "$ac_cv_header_sys_procfs_h" = yes; then
4935 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
4936 echo "configure:4937: checking for pstatus_t in sys/procfs.h" >&5
4937 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
4938 echo $ac_n "(cached) $ac_c" 1>&6
4940 cat > conftest.
$ac_ext <<EOF
4941 #line 4942 "configure"
4942 #include "confdefs.h"
4945 #include <sys/procfs.h>
4950 if { (eval echo configure
:4951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4952 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
4954 echo "configure: failed program was:" >&5
4955 cat conftest.
$ac_ext >&5
4957 bfd_cv_have_sys_procfs_type_pstatus_t
=no
4963 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
4964 cat >> confdefs.h
<<\EOF
4965 #define HAVE_PSTATUS_T 1
4969 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
4971 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
4972 echo "configure:4973: checking for prrun_t in sys/procfs.h" >&5
4973 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4976 cat > conftest.
$ac_ext <<EOF
4977 #line 4978 "configure"
4978 #include "confdefs.h"
4981 #include <sys/procfs.h>
4986 if { (eval echo configure
:4987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4988 bfd_cv_have_sys_procfs_type_prrun_t
=yes
4990 echo "configure: failed program was:" >&5
4991 cat conftest.
$ac_ext >&5
4993 bfd_cv_have_sys_procfs_type_prrun_t
=no
4999 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
5000 cat >> confdefs.h
<<\EOF
5001 #define HAVE_PRRUN_T 1
5005 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
5007 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
5008 echo "configure:5009: checking for gregset_t in sys/procfs.h" >&5
5009 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5012 cat > conftest.
$ac_ext <<EOF
5013 #line 5014 "configure"
5014 #include "confdefs.h"
5017 #include <sys/procfs.h>
5022 if { (eval echo configure
:5023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5024 bfd_cv_have_sys_procfs_type_gregset_t
=yes
5026 echo "configure: failed program was:" >&5
5027 cat conftest.
$ac_ext >&5
5029 bfd_cv_have_sys_procfs_type_gregset_t
=no
5035 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
5036 cat >> confdefs.h
<<\EOF
5037 #define HAVE_GREGSET_T 1
5041 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
5043 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
5044 echo "configure:5045: checking for fpregset_t in sys/procfs.h" >&5
5045 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
5046 echo $ac_n "(cached) $ac_c" 1>&6
5048 cat > conftest.
$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5053 #include <sys/procfs.h>
5058 if { (eval echo configure
:5059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5060 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
5062 echo "configure: failed program was:" >&5
5063 cat conftest.
$ac_ext >&5
5065 bfd_cv_have_sys_procfs_type_fpregset_t
=no
5071 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
5072 cat >> confdefs.h
<<\EOF
5073 #define HAVE_FPREGSET_T 1
5077 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
5079 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
5080 echo "configure:5081: checking for prgregset_t in sys/procfs.h" >&5
5081 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
5082 echo $ac_n "(cached) $ac_c" 1>&6
5084 cat > conftest.
$ac_ext <<EOF
5085 #line 5086 "configure"
5086 #include "confdefs.h"
5089 #include <sys/procfs.h>
5094 if { (eval echo configure
:5095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5096 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
5098 echo "configure: failed program was:" >&5
5099 cat conftest.
$ac_ext >&5
5101 bfd_cv_have_sys_procfs_type_prgregset_t
=no
5107 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
5108 cat >> confdefs.h
<<\EOF
5109 #define HAVE_PRGREGSET_T 1
5113 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
5115 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
5116 echo "configure:5117: checking for prfpregset_t in sys/procfs.h" >&5
5117 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
5118 echo $ac_n "(cached) $ac_c" 1>&6
5120 cat > conftest.
$ac_ext <<EOF
5121 #line 5122 "configure"
5122 #include "confdefs.h"
5125 #include <sys/procfs.h>
5130 if { (eval echo configure
:5131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5132 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
5134 echo "configure: failed program was:" >&5
5135 cat conftest.
$ac_ext >&5
5137 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
5143 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
5144 cat >> confdefs.h
<<\EOF
5145 #define HAVE_PRFPREGSET_T 1
5149 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
5151 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
5152 echo "configure:5153: checking for prgregset32_t in sys/procfs.h" >&5
5153 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
5154 echo $ac_n "(cached) $ac_c" 1>&6
5156 cat > conftest.
$ac_ext <<EOF
5157 #line 5158 "configure"
5158 #include "confdefs.h"
5161 #include <sys/procfs.h>
5166 if { (eval echo configure
:5167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5168 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
5170 echo "configure: failed program was:" >&5
5171 cat conftest.
$ac_ext >&5
5173 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
5179 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
5180 cat >> confdefs.h
<<\EOF
5181 #define HAVE_PRGREGSET32_T 1
5185 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
5187 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
5188 echo "configure:5189: checking for prfpregset32_t in sys/procfs.h" >&5
5189 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
5190 echo $ac_n "(cached) $ac_c" 1>&6
5192 cat > conftest.
$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
5197 #include <sys/procfs.h>
5202 if { (eval echo configure
:5203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5204 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
5206 echo "configure: failed program was:" >&5
5207 cat conftest.
$ac_ext >&5
5209 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
5215 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
5216 cat >> confdefs.h
<<\EOF
5217 #define HAVE_PRFPREGSET32_T 1
5221 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
5223 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
5224 echo "configure:5225: checking for lwpid_t in sys/procfs.h" >&5
5225 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
5226 echo $ac_n "(cached) $ac_c" 1>&6
5228 cat > conftest.
$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5233 #include <sys/procfs.h>
5238 if { (eval echo configure
:5239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5240 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
5242 echo "configure: failed program was:" >&5
5243 cat conftest.
$ac_ext >&5
5245 bfd_cv_have_sys_procfs_type_lwpid_t
=no
5251 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
5252 cat >> confdefs.h
<<\EOF
5253 #define HAVE_LWPID_T 1
5257 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
5259 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
5260 echo "configure:5261: checking for psaddr_t in sys/procfs.h" >&5
5261 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
5262 echo $ac_n "(cached) $ac_c" 1>&6
5264 cat > conftest.
$ac_ext <<EOF
5265 #line 5266 "configure"
5266 #include "confdefs.h"
5269 #include <sys/procfs.h>
5274 if { (eval echo configure
:5275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5276 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
5278 echo "configure: failed program was:" >&5
5279 cat conftest.
$ac_ext >&5
5281 bfd_cv_have_sys_procfs_type_psaddr_t
=no
5287 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
5288 cat >> confdefs.h
<<\EOF
5289 #define HAVE_PSADDR_T 1
5293 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
5295 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
5296 echo "configure:5297: checking for prsysent_t in sys/procfs.h" >&5
5297 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
5298 echo $ac_n "(cached) $ac_c" 1>&6
5300 cat > conftest.
$ac_ext <<EOF
5301 #line 5302 "configure"
5302 #include "confdefs.h"
5305 #include <sys/procfs.h>
5310 if { (eval echo configure
:5311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5312 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
5314 echo "configure: failed program was:" >&5
5315 cat conftest.
$ac_ext >&5
5317 bfd_cv_have_sys_procfs_type_prsysent_t
=no
5323 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
5324 cat >> confdefs.h
<<\EOF
5325 #define HAVE_PRSYSENT_T 1
5329 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
5331 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
5332 echo "configure:5333: checking for pr_sigset_t in sys/procfs.h" >&5
5333 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
5334 echo $ac_n "(cached) $ac_c" 1>&6
5336 cat > conftest.
$ac_ext <<EOF
5337 #line 5338 "configure"
5338 #include "confdefs.h"
5341 #include <sys/procfs.h>
5346 if { (eval echo configure
:5347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5348 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
5350 echo "configure: failed program was:" >&5
5351 cat conftest.
$ac_ext >&5
5353 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
5359 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
5360 cat >> confdefs.h
<<\EOF
5361 #define HAVE_PR_SIGSET_T 1
5365 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
5367 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
5368 echo "configure:5369: checking for pr_sigaction64_t in sys/procfs.h" >&5
5369 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5372 cat > conftest.
$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5377 #include <sys/procfs.h>
5379 pr_sigaction64_t avar
5382 if { (eval echo configure
:5383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5384 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
5386 echo "configure: failed program was:" >&5
5387 cat conftest.
$ac_ext >&5
5389 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
5395 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
5396 cat >> confdefs.h
<<\EOF
5397 #define HAVE_PR_SIGACTION64_T 1
5401 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
5403 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
5404 echo "configure:5405: checking for pr_siginfo64_t in sys/procfs.h" >&5
5405 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
5406 echo $ac_n "(cached) $ac_c" 1>&6
5408 cat > conftest.
$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
5413 #include <sys/procfs.h>
5418 if { (eval echo configure
:5419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5420 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
5422 echo "configure: failed program was:" >&5
5423 cat conftest.
$ac_ext >&5
5425 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
5431 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
5432 cat >> confdefs.h
<<\EOF
5433 #define HAVE_PR_SIGINFO64_T 1
5437 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
5443 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
5444 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
5445 echo "configure:5446: checking whether prfpregset_t type is broken" >&5
5446 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
5447 echo $ac_n "(cached) $ac_c" 1>&6
5449 if test "$cross_compiling" = yes; then
5450 gdb_cv_prfpregset_t_broken
=yes
5452 cat > conftest.
$ac_ext <<EOF
5453 #line 5454 "configure"
5454 #include "confdefs.h"
5455 #include <sys/procfs.h>
5458 if (sizeof (prfpregset_t) == sizeof (void *))
5463 if { (eval echo configure
:5464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5465 gdb_cv_prfpregset_t_broken
=no
5467 echo "configure: failed program was:" >&5
5468 cat conftest.
$ac_ext >&5
5470 gdb_cv_prfpregset_t_broken
=yes
5477 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
5478 if test $gdb_cv_prfpregset_t_broken = yes; then
5479 cat >> confdefs.h
<<\EOF
5480 #define PRFPREGSET_T_BROKEN 1
5487 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
5488 echo "configure:5489: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
5489 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
5490 echo $ac_n "(cached) $ac_c" 1>&6
5492 cat > conftest.
$ac_ext <<EOF
5493 #line 5494 "configure"
5494 #include "confdefs.h"
5496 #include <sys/types.h>
5497 #include <sys/procfs.h>
5502 dummy = ioctl(0, PIOCSET, &dummy);
5506 if { (eval echo configure
:5507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5508 gdb_cv_have_procfs_piocset
=yes
5510 echo "configure: failed program was:" >&5
5511 cat conftest.
$ac_ext >&5
5513 gdb_cv_have_procfs_piocset
=no
5518 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
5519 if test $gdb_cv_have_procfs_piocset = yes; then
5520 cat >> confdefs.h
<<\EOF
5521 #define HAVE_PROCFS_PIOCSET 1
5527 if test ${host} = ${target} ; then
5529 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
5530 echo "configure:5531: checking for member l_addr in struct link_map" >&5
5531 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
5532 echo $ac_n "(cached) $ac_c" 1>&6
5534 cat > conftest.
$ac_ext <<EOF
5535 #line 5536 "configure"
5536 #include "confdefs.h"
5539 struct link_map lm; (void) lm.l_addr;
5542 if { (eval echo configure
:5543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5544 gdb_cv_have_struct_link_map_with_l_members
=yes
5546 echo "configure: failed program was:" >&5
5547 cat conftest.
$ac_ext >&5
5549 gdb_cv_have_struct_link_map_with_l_members
=no
5554 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
5555 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
5556 cat >> confdefs.h
<<\EOF
5557 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
5563 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
5564 echo "configure:5565: checking for member lm_addr in struct link_map" >&5
5565 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
5566 echo $ac_n "(cached) $ac_c" 1>&6
5568 cat > conftest.
$ac_ext <<EOF
5569 #line 5570 "configure"
5570 #include "confdefs.h"
5571 #include <sys/types.h>
5574 struct link_map lm; (void) lm.lm_addr;
5577 if { (eval echo configure
:5578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5579 gdb_cv_have_struct_link_map_with_lm_members
=yes
5581 echo "configure: failed program was:" >&5
5582 cat conftest.
$ac_ext >&5
5584 gdb_cv_have_struct_link_map_with_lm_members
=no
5589 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
5590 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
5591 cat >> confdefs.h
<<\EOF
5592 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
5598 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
5599 echo "configure:5600: checking for member som_addr in struct so_map" >&5
5600 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
5601 echo $ac_n "(cached) $ac_c" 1>&6
5603 cat > conftest.
$ac_ext <<EOF
5604 #line 5605 "configure"
5605 #include "confdefs.h"
5606 #include <sys/types.h>
5612 struct so_map lm; (void) lm.som_addr;
5615 if { (eval echo configure
:5616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5617 gdb_cv_have_struct_so_map_with_som_members
=yes
5619 echo "configure: failed program was:" >&5
5620 cat conftest.
$ac_ext >&5
5622 gdb_cv_have_struct_so_map_with_som_members
=no
5627 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
5628 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
5629 cat >> confdefs.h
<<\EOF
5630 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
5636 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
5637 echo "configure:5638: checking for struct link_map32 in sys/link.h" >&5
5638 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5641 cat > conftest.
$ac_ext <<EOF
5642 #line 5643 "configure"
5643 #include "confdefs.h"
5645 #include <sys/link.h>
5647 struct link_map32 l;
5650 if { (eval echo configure
:5651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5652 gdb_cv_have_struct_link_map32
=yes
5654 echo "configure: failed program was:" >&5
5655 cat conftest.
$ac_ext >&5
5657 gdb_cv_have_struct_link_map32
=no
5662 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
5663 if test $gdb_cv_have_struct_link_map32 = yes; then
5664 cat >> confdefs.h
<<\EOF
5665 #define HAVE_STRUCT_LINK_MAP32 1
5671 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5672 echo "configure:5673: checking for main in -lm" >&5
5673 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
5674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5675 echo $ac_n "(cached) $ac_c" 1>&6
5677 ac_save_LIBS
="$LIBS"
5679 cat > conftest.
$ac_ext <<EOF
5680 #line 5681 "configure"
5681 #include "confdefs.h"
5687 if { (eval echo configure
:5688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5689 eval "ac_cv_lib_$ac_lib_var=yes"
5691 echo "configure: failed program was:" >&5
5692 cat conftest.
$ac_ext >&5
5694 eval "ac_cv_lib_$ac_lib_var=no"
5697 LIBS
="$ac_save_LIBS"
5700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5701 echo "$ac_t""yes" 1>&6
5702 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5703 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5704 cat >> confdefs.h
<<EOF
5705 #define $ac_tr_lib 1
5711 echo "$ac_t""no" 1>&6
5715 echo $ac_n "checking for wctype in -lc""... $ac_c" 1>&6
5716 echo "configure:5717: checking for wctype in -lc" >&5
5717 ac_lib_var
=`echo c'_'wctype | sed 'y%./+-%__p_%'`
5718 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5719 echo $ac_n "(cached) $ac_c" 1>&6
5721 ac_save_LIBS
="$LIBS"
5723 cat > conftest.
$ac_ext <<EOF
5724 #line 5725 "configure"
5725 #include "confdefs.h"
5726 /* Override any gcc2 internal prototype to avoid an error. */
5727 /* We use char because int might match the return type of a gcc2
5728 builtin and then its argument prototype would still apply. */
5735 if { (eval echo configure
:5736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5737 eval "ac_cv_lib_$ac_lib_var=yes"
5739 echo "configure: failed program was:" >&5
5740 cat conftest.
$ac_ext >&5
5742 eval "ac_cv_lib_$ac_lib_var=no"
5745 LIBS
="$ac_save_LIBS"
5748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5749 echo "$ac_t""yes" 1>&6
5752 echo "$ac_t""no" 1>&6
5753 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
5754 echo "configure:5755: checking for wctype in -lw" >&5
5755 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
5756 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5757 echo $ac_n "(cached) $ac_c" 1>&6
5759 ac_save_LIBS
="$LIBS"
5761 cat > conftest.
$ac_ext <<EOF
5762 #line 5763 "configure"
5763 #include "confdefs.h"
5764 /* Override any gcc2 internal prototype to avoid an error. */
5765 /* We use char because int might match the return type of a gcc2
5766 builtin and then its argument prototype would still apply. */
5773 if { (eval echo configure
:5774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5775 eval "ac_cv_lib_$ac_lib_var=yes"
5777 echo "configure: failed program was:" >&5
5778 cat conftest.
$ac_ext >&5
5780 eval "ac_cv_lib_$ac_lib_var=no"
5783 LIBS
="$ac_save_LIBS"
5786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5787 echo "$ac_t""yes" 1>&6
5788 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
5789 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5790 cat >> confdefs.h
<<EOF
5791 #define $ac_tr_lib 1
5797 echo "$ac_t""no" 1>&6
5804 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
5805 echo "configure:5806: checking for long long support in compiler" >&5
5806 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
5807 echo $ac_n "(cached) $ac_c" 1>&6
5809 cat > conftest.
$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5815 extern long long foo;
5816 switch (foo & 2) { case 0: return 1; }
5820 if { (eval echo configure
:5821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5822 gdb_cv_c_long_long
=yes
5824 echo "configure: failed program was:" >&5
5825 cat conftest.
$ac_ext >&5
5827 gdb_cv_c_long_long
=no
5832 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
5833 if test $gdb_cv_c_long_long = yes; then
5834 cat >> confdefs.h
<<\EOF
5835 #define CC_HAS_LONG_LONG 1
5841 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
5842 echo "configure:5843: checking for long long support in printf" >&5
5843 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
5844 echo $ac_n "(cached) $ac_c" 1>&6
5846 if test "$cross_compiling" = yes; then
5847 gdb_cv_printf_has_long_long
=no
5849 cat > conftest.
$ac_ext <<EOF
5850 #line 5851 "configure"
5851 #include "confdefs.h"
5856 l = (l << 16) + 0x0123;
5857 l = (l << 16) + 0x4567;
5858 l = (l << 16) + 0x89ab;
5859 l = (l << 16) + 0xcdef;
5860 sprintf (buf, "0x%016llx", l);
5861 return (strcmp ("0x0123456789abcdef", buf));
5864 if { (eval echo configure
:5865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5866 gdb_cv_printf_has_long_long
=yes
5868 echo "configure: failed program was:" >&5
5869 cat conftest.
$ac_ext >&5
5871 gdb_cv_printf_has_long_long
=no
5878 if test $gdb_cv_printf_has_long_long = yes; then
5879 cat >> confdefs.h
<<\EOF
5880 #define PRINTF_HAS_LONG_LONG 1
5884 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
5887 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
5888 echo "configure:5889: checking for long double support in compiler" >&5
5889 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
5890 echo $ac_n "(cached) $ac_c" 1>&6
5892 cat > conftest.
$ac_ext <<EOF
5893 #line 5894 "configure"
5894 #include "confdefs.h"
5900 if { (eval echo configure
:5901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5902 ac_cv_c_long_double
=yes
5904 echo "configure: failed program was:" >&5
5905 cat conftest.
$ac_ext >&5
5907 ac_cv_c_long_double
=no
5912 echo "$ac_t""$ac_cv_c_long_double" 1>&6
5913 if test $ac_cv_c_long_double = yes; then
5914 cat >> confdefs.h
<<\EOF
5915 #define HAVE_LONG_DOUBLE 1
5921 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
5922 echo "configure:5923: checking for long double support in printf" >&5
5923 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
5924 echo $ac_n "(cached) $ac_c" 1>&6
5926 if test "$cross_compiling" = yes; then
5927 gdb_cv_printf_has_long_double
=no
5929 cat > conftest.
$ac_ext <<EOF
5930 #line 5931 "configure"
5931 #include "confdefs.h"
5935 long double f = 3.141592653;
5936 sprintf (buf, "%Lg", f);
5937 return (strncmp ("3.14159", buf, 7));
5940 if { (eval echo configure
:5941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5942 gdb_cv_printf_has_long_double
=yes
5944 echo "configure: failed program was:" >&5
5945 cat conftest.
$ac_ext >&5
5947 gdb_cv_printf_has_long_double
=no
5954 if test $gdb_cv_printf_has_long_double = yes; then
5955 cat >> confdefs.h
<<\EOF
5956 #define PRINTF_HAS_LONG_DOUBLE 1
5960 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
5963 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
5964 echo "configure:5965: checking for long double support in scanf" >&5
5965 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
5966 echo $ac_n "(cached) $ac_c" 1>&6
5968 if test "$cross_compiling" = yes; then
5969 gdb_cv_scanf_has_long_double
=no
5971 cat > conftest.
$ac_ext <<EOF
5972 #line 5973 "configure"
5973 #include "confdefs.h"
5976 char *buf = "3.141592653";
5978 sscanf (buf, "%Lg", &f);
5979 return !(f > 3.14159 && f < 3.14160);
5982 if { (eval echo configure
:5983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5984 gdb_cv_scanf_has_long_double
=yes
5986 echo "configure: failed program was:" >&5
5987 cat conftest.
$ac_ext >&5
5989 gdb_cv_scanf_has_long_double
=no
5996 if test $gdb_cv_scanf_has_long_double = yes; then
5997 cat >> confdefs.h
<<\EOF
5998 #define SCANF_HAS_LONG_DOUBLE 1
6002 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
6004 for ac_hdr
in unistd.h
6006 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6007 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6008 echo "configure:6009: checking for $ac_hdr" >&5
6009 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6010 echo $ac_n "(cached) $ac_c" 1>&6
6012 cat > conftest.
$ac_ext <<EOF
6013 #line 6014 "configure"
6014 #include "confdefs.h"
6017 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6018 { (eval echo configure
:6019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6019 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6020 if test -z "$ac_err"; then
6022 eval "ac_cv_header_$ac_safe=yes"
6025 echo "configure: failed program was:" >&5
6026 cat conftest.
$ac_ext >&5
6028 eval "ac_cv_header_$ac_safe=no"
6032 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6033 echo "$ac_t""yes" 1>&6
6034 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6035 cat >> confdefs.h
<<EOF
6036 #define $ac_tr_hdr 1
6040 echo "$ac_t""no" 1>&6
6044 for ac_func
in getpagesize
6046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6047 echo "configure:6048: checking for $ac_func" >&5
6048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6049 echo $ac_n "(cached) $ac_c" 1>&6
6051 cat > conftest.
$ac_ext <<EOF
6052 #line 6053 "configure"
6053 #include "confdefs.h"
6054 /* System header to define __stub macros and hopefully few prototypes,
6055 which can conflict with char $ac_func(); below. */
6057 /* Override any gcc2 internal prototype to avoid an error. */
6058 /* We use char because int might match the return type of a gcc2
6059 builtin and then its argument prototype would still apply. */
6064 /* The GNU C library defines this for functions which it implements
6065 to always fail with ENOSYS. Some functions are actually named
6066 something starting with __ and the normal name is an alias. */
6067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6075 if { (eval echo configure
:6076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6077 eval "ac_cv_func_$ac_func=yes"
6079 echo "configure: failed program was:" >&5
6080 cat conftest.
$ac_ext >&5
6082 eval "ac_cv_func_$ac_func=no"
6087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6088 echo "$ac_t""yes" 1>&6
6089 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6090 cat >> confdefs.h
<<EOF
6091 #define $ac_tr_func 1
6095 echo "$ac_t""no" 1>&6
6099 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6100 echo "configure:6101: checking for working mmap" >&5
6101 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6102 echo $ac_n "(cached) $ac_c" 1>&6
6104 if test "$cross_compiling" = yes; then
6105 ac_cv_func_mmap_fixed_mapped
=no
6107 cat > conftest.
$ac_ext <<EOF
6108 #line 6109 "configure"
6109 #include "confdefs.h"
6111 /* Thanks to Mike Haertel and Jim Avera for this test.
6112 Here is a matrix of mmap possibilities:
6113 mmap private not fixed
6114 mmap private fixed at somewhere currently unmapped
6115 mmap private fixed at somewhere already mapped
6116 mmap shared not fixed
6117 mmap shared fixed at somewhere currently unmapped
6118 mmap shared fixed at somewhere already mapped
6119 For private mappings, we should verify that changes cannot be read()
6120 back from the file, nor mmap's back from the file at a different
6121 address. (There have been systems where private was not correctly
6122 implemented like the infamous i386 svr4.0, and systems where the
6123 VM page cache was not coherent with the filesystem buffer cache
6124 like early versions of FreeBSD and possibly contemporary NetBSD.)
6125 For shared mappings, we should conversely verify that changes get
6126 propogated back to all the places they're supposed to be.
6128 Grep wants private fixed already mapped.
6129 The main things grep needs to know about mmap are:
6130 * does it exist and is it safe to write into the mmap'd area
6131 * how to use it (BSD variants) */
6132 #include <sys/types.h>
6134 #include <sys/mman.h>
6136 /* This mess was copied from the GNU getpagesize.h. */
6137 #ifndef HAVE_GETPAGESIZE
6138 # ifdef HAVE_UNISTD_H
6139 # include <unistd.h>
6142 /* Assume that all systems that can run configure have sys/param.h. */
6143 # ifndef HAVE_SYS_PARAM_H
6144 # define HAVE_SYS_PARAM_H 1
6147 # ifdef _SC_PAGESIZE
6148 # define getpagesize() sysconf(_SC_PAGESIZE)
6149 # else /* no _SC_PAGESIZE */
6150 # ifdef HAVE_SYS_PARAM_H
6151 # include <sys/param.h>
6152 # ifdef EXEC_PAGESIZE
6153 # define getpagesize() EXEC_PAGESIZE
6154 # else /* no EXEC_PAGESIZE */
6156 # define getpagesize() NBPG * CLSIZE
6159 # endif /* no CLSIZE */
6160 # else /* no NBPG */
6162 # define getpagesize() NBPC
6163 # else /* no NBPC */
6165 # define getpagesize() PAGESIZE
6166 # endif /* PAGESIZE */
6167 # endif /* no NBPC */
6168 # endif /* no NBPG */
6169 # endif /* no EXEC_PAGESIZE */
6170 # else /* no HAVE_SYS_PARAM_H */
6171 # define getpagesize() 8192 /* punt totally */
6172 # endif /* no HAVE_SYS_PARAM_H */
6173 # endif /* no _SC_PAGESIZE */
6175 #endif /* no HAVE_GETPAGESIZE */
6178 extern "C" { void *malloc(unsigned); }
6186 char *data, *data2, *data3;
6190 pagesize = getpagesize();
6193 * First, make a file with some known garbage in it.
6195 data = malloc(pagesize);
6198 for (i = 0; i < pagesize; ++i)
6199 *(data + i) = rand();
6201 fd = creat("conftestmmap", 0600);
6204 if (write(fd, data, pagesize) != pagesize)
6209 * Next, try to mmap the file at a fixed address which
6210 * already has something else allocated at it. If we can,
6211 * also make sure that we see the same garbage.
6213 fd = open("conftestmmap", O_RDWR);
6216 data2 = malloc(2 * pagesize);
6219 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6220 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6221 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6223 for (i = 0; i < pagesize; ++i)
6224 if (*(data + i) != *(data2 + i))
6228 * Finally, make sure that changes to the mapped area
6229 * do not percolate back to the file as seen by read().
6230 * (This is a bug on some variants of i386 svr4.0.)
6232 for (i = 0; i < pagesize; ++i)
6233 *(data2 + i) = *(data2 + i) + 1;
6234 data3 = malloc(pagesize);
6237 if (read(fd, data3, pagesize) != pagesize)
6239 for (i = 0; i < pagesize; ++i)
6240 if (*(data + i) != *(data3 + i))
6243 unlink("conftestmmap");
6248 if { (eval echo configure
:6249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6250 ac_cv_func_mmap_fixed_mapped
=yes
6252 echo "configure: failed program was:" >&5
6253 cat conftest.
$ac_ext >&5
6255 ac_cv_func_mmap_fixed_mapped
=no
6262 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6263 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6264 cat >> confdefs.h
<<\EOF
6273 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
6274 echo "configure:6275: checking for -bbigtoc option" >&5
6275 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
6276 echo $ac_n "(cached) $ac_c" 1>&6
6279 SAVE_LDFLAGS
=$LDFLAGS
6282 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
6283 *) gdb_cv_bigtoc
=-bbigtoc ;;
6286 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
6287 cat > conftest.
$ac_ext <<EOF
6288 #line 6289 "configure"
6289 #include "confdefs.h"
6295 if { (eval echo configure
:6296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6298 echo "configure: failed program was:" >&5
6299 cat conftest.
$ac_ext >&5
6307 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
6308 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
6314 if test ${build} = ${host} -a ${host} = ${target} ; then
6317 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
6318 echo "configure:6319: checking for HPUX/OSF thread support" >&5
6319 if test -f /usr
/include
/dce
/cma_config.h
; then
6320 if test "$GCC" = "yes" ; then
6321 echo "$ac_t""yes" 1>&6
6322 cat >> confdefs.h
<<\EOF
6323 #define HAVE_HPUX_THREAD_SUPPORT 1
6326 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
6327 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
6329 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
6332 echo "$ac_t""no" 1>&6
6336 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
6337 echo "configure:6338: checking for Solaris thread debugging library" >&5
6338 if test -f /usr
/lib
/libthread_db.so
.1 ; then
6339 echo "$ac_t""yes" 1>&6
6340 cat >> confdefs.h
<<\EOF
6341 #define HAVE_THREAD_DB_LIB 1
6344 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
6345 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
6346 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6347 echo "configure:6348: checking for dlopen in -ldl" >&5
6348 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6350 echo $ac_n "(cached) $ac_c" 1>&6
6352 ac_save_LIBS
="$LIBS"
6354 cat > conftest.
$ac_ext <<EOF
6355 #line 6356 "configure"
6356 #include "confdefs.h"
6357 /* Override any gcc2 internal prototype to avoid an error. */
6358 /* We use char because int might match the return type of a gcc2
6359 builtin and then its argument prototype would still apply. */
6366 if { (eval echo configure
:6367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6368 eval "ac_cv_lib_$ac_lib_var=yes"
6370 echo "configure: failed program was:" >&5
6371 cat conftest.
$ac_ext >&5
6373 eval "ac_cv_lib_$ac_lib_var=no"
6376 LIBS
="$ac_save_LIBS"
6379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6380 echo "$ac_t""yes" 1>&6
6381 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6382 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6383 cat >> confdefs.h
<<EOF
6384 #define $ac_tr_lib 1
6390 echo "$ac_t""no" 1>&6
6393 if test "$GCC" = "yes" ; then
6394 # The GNU linker requires the -export-dynamic option to make
6395 # all symbols visible in the dynamic symbol table.
6396 hold_ldflags
=$LDFLAGS
6397 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
6398 echo "configure:6399: checking for the ld -export-dynamic flag" >&5
6399 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
6400 cat > conftest.
$ac_ext <<EOF
6401 #line 6402 "configure"
6402 #include "confdefs.h"
6408 if { (eval echo configure
:6409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6412 echo "configure: failed program was:" >&5
6413 cat conftest.
$ac_ext >&5
6418 LDFLAGS
=$hold_ldflags
6419 echo "$ac_t""$found" 1>&6
6420 if test $found = yes; then
6421 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
6424 # Sun randomly tweaked the prototypes in <proc_service.h>
6426 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
6427 echo "configure:6428: checking if <proc_service.h> is old" >&5
6428 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
6429 echo $ac_n "(cached) $ac_c" 1>&6
6432 cat > conftest.
$ac_ext <<EOF
6433 #line 6434 "configure"
6434 #include "confdefs.h"
6436 #include <proc_service.h>
6438 (struct ps_prochandle*, psaddr_t, const void*, size_t);
6444 if { (eval echo configure
:6445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6446 gdb_cv_proc_service_is_old
=no
6448 echo "configure: failed program was:" >&5
6449 cat conftest.
$ac_ext >&5
6451 gdb_cv_proc_service_is_old
=yes
6457 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
6458 if test $gdb_cv_proc_service_is_old = yes; then
6459 cat >> confdefs.h
<<\EOF
6460 #define PROC_SERVICE_IS_OLD 1
6465 echo "$ac_t""no" 1>&6
6473 # Check whether --enable-gdbcli or --disable-gdbcli was given.
6474 if test "${enable_gdbcli+set}" = set; then
6475 enableval
="$enable_gdbcli"
6477 case "${enableval}" in
6478 yes) enable_gdbcli
=yes ;;
6479 "") enable_gdbcli
=yes ;;
6481 { echo "configure: error: The CLI cannot be disabled yet" 1>&2; exit 1; }
6484 { echo "configure: error: Bad value for --enable-gdbcli: ${enableval}" 1>&2; exit 1; }
6492 case ${enable_gdbcli} in
6494 if test -d "${srcdir}/cli" ; then
6495 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_CLI_OBS)"
6496 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_CLI_DEPS)"
6497 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_CLI_SRCS)"
6498 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_CLI_INITS)"
6499 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_CLI_CFLAGS)"
6500 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_CLI_ALL)"
6501 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_CLI_CLEAN)"
6502 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_CLI_INSTALL)"
6503 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_CLI_UNINSTALL)"
6509 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6510 if test "${enable_gdbmi+set}" = set; then
6511 enableval
="$enable_gdbmi"
6513 case "${enable_gdbmi}" in
6515 "") enable_gdbmi
=yes ;;
6517 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
6525 case ${enable_gdbmi} in
6527 if test -d "${srcdir}/mi" ; then
6528 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
6529 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
6530 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_MI_SRCS)"
6531 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
6532 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
6533 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
6534 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
6535 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
6536 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
6541 # Configure UI_OUT by default (before 5.2 it can be disabled)
6542 # It must be configured if gdbmi is configured
6547 # Check whether --with-uiout or --without-uiout was given.
6548 if test "${with_uiout+set}" = set; then
6549 withval
="$with_uiout"
6550 case "${withval}" in
6551 yes) want_uiout
=true
;;
6552 no
) if test $enable_gdbmi = yes; then
6553 { echo "configure: error: uiout is needed for MI and cannot be disabled" 1>&2; exit 1; }
6557 *) { echo "configure: error: bad value ${withval} for GDB with-uiout option" 1>&2; exit 1; } ;;
6563 if test $want_uiout = true
; then
6564 UIOUT_CFLAGS
="-DUI_OUT=1"
6567 # Check whether --enable-tui or --disable-tui was given.
6568 if test "${enable_tui+set}" = set; then
6569 enableval
="$enable_tui"
6571 case "${enable_tui}" in
6573 "") enable_tui
=yes ;;
6575 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
6581 case ${enable_tui} in
6583 if test -d "${srcdir}/tui" ; then
6584 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_TUI_OBS)"
6585 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_TUI_DEPS)"
6586 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_TUI_SRCS)"
6587 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_TUI_INITS)"
6588 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_TUI_CFLAGS)"
6589 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_TUI_ALL)"
6590 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_TUI_CLEAN)"
6591 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_TUI_INSTALL)"
6592 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_TUI_UNINSTALL)"
6597 # Check whether --enable-netrom or --disable-netrom was given.
6598 if test "${enable_netrom+set}" = set; then
6599 enableval
="$enable_netrom"
6600 case "${enableval}" in
6601 yes) enable_netrom
=yes ;;
6602 no
) enable_netrom
=no
;;
6603 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
6608 if test "${enable_netrom}" = "yes"; then
6609 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} remote-nrom.o"
6610 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
6614 # NOTE: Don't add -Wall or -Wunused, they both include
6615 # -Wunused-parameter which reports bogus warnings.
6616 # NOTE: If you add to this list, remember to update
6617 # gdb/doc/gdbint.texinfo.
6618 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
6619 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
6620 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
6621 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
6622 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
6623 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
6624 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
6625 # -Woverloaded-virtual -Winline -Werror"
6626 # Check whether --enable-build-warnings or --disable-build-warnings was given.
6627 if test "${enable_build_warnings+set}" = set; then
6628 enableval
="$enable_build_warnings"
6629 case "${enableval}" in
6631 no
) build_warnings
="-w";;
6632 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6633 build_warnings
="${build_warnings} ${t}";;
6634 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6635 build_warnings
="${t} ${build_warnings}";;
6636 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6638 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6639 echo "Setting compiler warning flags = $build_warnings" 6>&1
6642 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
6643 if test "${enable_gdb_build_warnings+set}" = set; then
6644 enableval
="$enable_gdb_build_warnings"
6645 case "${enableval}" in
6647 no
) build_warnings
="-w";;
6648 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6649 build_warnings
="${build_warnings} ${t}";;
6650 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
6651 build_warnings
="${t} ${build_warnings}";;
6652 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6654 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
6655 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
6660 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
6662 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
6663 echo "configure:6664: checking compiler warning flags" >&5
6664 # Separate out the -Werror flag as some files just cannot be
6665 # compiled with it enabled.
6666 for w
in ${build_warnings}; do
6668 -Werr*) WERROR_CFLAGS
=-Werror ;;
6669 *) # Check that GCC accepts it
6670 saved_CFLAGS
="$CFLAGS"
6672 cat > conftest.
$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6680 if { (eval echo configure
:6681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6682 WARN_CFLAGS
="${WARN_CFLAGS} $w"
6684 echo "configure: failed program was:" >&5
6685 cat conftest.
$ac_ext >&5
6688 CFLAGS
="$saved_CFLAGS"
6691 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
6701 # Check whether --with-mmalloc or --without-mmalloc was given.
6702 if test "${with_mmalloc+set}" = set; then
6703 withval
="$with_mmalloc"
6704 case "${withval}" in
6705 yes) want_mmalloc
=true
;;
6706 no
) want_mmalloc
=false
;;
6707 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
6713 if test x
$want_mmalloc = xtrue
; then
6714 cat >> confdefs.h
<<\EOF
6715 #define USE_MMALLOC 1
6718 cat >> confdefs.h
<<\EOF
6719 #define MMCHECK_FORCE 1
6722 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
6723 MMALLOC
='../mmalloc/libmmalloc.a'
6726 # Check whether --with-included-regex or --without-included-regex was given.
6727 if test "${with_included_regex+set}" = set; then
6728 withval
="$with_included_regex"
6729 case "${withval}" in
6730 yes) want_included_regex
=true
;;
6731 no
) want_included_regex
=false
;;
6732 *) { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
6735 want_included_regex
=true
6738 if test $want_included_regex = false
; then
6739 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
6740 echo "configure:6741: checking for GNU regex" >&5
6741 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
6742 echo $ac_n "(cached) $ac_c" 1>&6
6744 cat > conftest.
$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6747 #include <gnu-versions.h>
6748 #include <sys/types.h>
6751 #if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
6752 #error No valid GNU regex.
6757 if { (eval echo configure
:6758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6759 gdb_cv_have_gnu_regex
=yes
6761 echo "configure: failed program was:" >&5
6762 cat conftest.
$ac_ext >&5
6764 gdb_cv_have_gnu_regex
=no
6769 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
6770 if test $gdb_cv_have_gnu_regex = no
; then
6771 want_included_regex
=true
6775 if test x
${want_included_regex} = xtrue
; then
6777 cat >> confdefs.h
<<\EOF
6778 #define USE_INCLUDED_REGEX 1
6784 # In the Cygwin environment, we need some additional flags.
6785 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
6786 echo "configure:6787: checking for cygwin" >&5
6787 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
6788 echo $ac_n "(cached) $ac_c" 1>&6
6790 cat > conftest.
$ac_ext <<EOF
6791 #line 6792 "configure"
6792 #include "confdefs.h"
6794 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
6798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6799 egrep "lose" >/dev
/null
2>&1; then
6801 gdb_cv_os_cygwin
=yes
6810 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
6813 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
6815 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
6816 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
6821 if test x
$gdb_host = xgo32
; then
6824 if test x
$gdb_cv_os_cygwin = xyes
; then
6825 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
6828 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
6829 echo "configure:6830: checking for tgetent in -lncurses" >&5
6830 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
6831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6832 echo $ac_n "(cached) $ac_c" 1>&6
6834 ac_save_LIBS
="$LIBS"
6835 LIBS
="-lncurses $LIBS"
6836 cat > conftest.
$ac_ext <<EOF
6837 #line 6838 "configure"
6838 #include "confdefs.h"
6839 /* Override any gcc2 internal prototype to avoid an error. */
6840 /* We use char because int might match the return type of a gcc2
6841 builtin and then its argument prototype would still apply. */
6848 if { (eval echo configure
:6849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6850 eval "ac_cv_lib_$ac_lib_var=yes"
6852 echo "configure: failed program was:" >&5
6853 cat conftest.
$ac_ext >&5
6855 eval "ac_cv_lib_$ac_lib_var=no"
6858 LIBS
="$ac_save_LIBS"
6861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6862 echo "$ac_t""yes" 1>&6
6865 echo "$ac_t""no" 1>&6
6866 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
6867 echo "configure:6868: checking for tgetent in -lHcurses" >&5
6868 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
6869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6870 echo $ac_n "(cached) $ac_c" 1>&6
6872 ac_save_LIBS
="$LIBS"
6873 LIBS
="-lHcurses $LIBS"
6874 cat > conftest.
$ac_ext <<EOF
6875 #line 6876 "configure"
6876 #include "confdefs.h"
6877 /* Override any gcc2 internal prototype to avoid an error. */
6878 /* We use char because int might match the return type of a gcc2
6879 builtin and then its argument prototype would still apply. */
6886 if { (eval echo configure
:6887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6888 eval "ac_cv_lib_$ac_lib_var=yes"
6890 echo "configure: failed program was:" >&5
6891 cat conftest.
$ac_ext >&5
6893 eval "ac_cv_lib_$ac_lib_var=no"
6896 LIBS
="$ac_save_LIBS"
6899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6900 echo "$ac_t""yes" 1>&6
6903 echo "$ac_t""no" 1>&6
6904 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
6905 echo "configure:6906: checking for tgetent in -ltermlib" >&5
6906 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
6907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6908 echo $ac_n "(cached) $ac_c" 1>&6
6910 ac_save_LIBS
="$LIBS"
6911 LIBS
="-ltermlib $LIBS"
6912 cat > conftest.
$ac_ext <<EOF
6913 #line 6914 "configure"
6914 #include "confdefs.h"
6915 /* Override any gcc2 internal prototype to avoid an error. */
6916 /* We use char because int might match the return type of a gcc2
6917 builtin and then its argument prototype would still apply. */
6924 if { (eval echo configure
:6925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6926 eval "ac_cv_lib_$ac_lib_var=yes"
6928 echo "configure: failed program was:" >&5
6929 cat conftest.
$ac_ext >&5
6931 eval "ac_cv_lib_$ac_lib_var=no"
6934 LIBS
="$ac_save_LIBS"
6937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6938 echo "$ac_t""yes" 1>&6
6941 echo "$ac_t""no" 1>&6
6942 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
6943 echo "configure:6944: checking for tgetent in -ltermcap" >&5
6944 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
6945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6946 echo $ac_n "(cached) $ac_c" 1>&6
6948 ac_save_LIBS
="$LIBS"
6949 LIBS
="-ltermcap $LIBS"
6950 cat > conftest.
$ac_ext <<EOF
6951 #line 6952 "configure"
6952 #include "confdefs.h"
6953 /* Override any gcc2 internal prototype to avoid an error. */
6954 /* We use char because int might match the return type of a gcc2
6955 builtin and then its argument prototype would still apply. */
6962 if { (eval echo configure
:6963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6964 eval "ac_cv_lib_$ac_lib_var=yes"
6966 echo "configure: failed program was:" >&5
6967 cat conftest.
$ac_ext >&5
6969 eval "ac_cv_lib_$ac_lib_var=no"
6972 LIBS
="$ac_save_LIBS"
6975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6976 echo "$ac_t""yes" 1>&6
6979 echo "$ac_t""no" 1>&6
6980 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
6981 echo "configure:6982: checking for tgetent in -lcurses" >&5
6982 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
6983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6984 echo $ac_n "(cached) $ac_c" 1>&6
6986 ac_save_LIBS
="$LIBS"
6987 LIBS
="-lcurses $LIBS"
6988 cat > conftest.
$ac_ext <<EOF
6989 #line 6990 "configure"
6990 #include "confdefs.h"
6991 /* Override any gcc2 internal prototype to avoid an error. */
6992 /* We use char because int might match the return type of a gcc2
6993 builtin and then its argument prototype would still apply. */
7000 if { (eval echo configure
:7001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7002 eval "ac_cv_lib_$ac_lib_var=yes"
7004 echo "configure: failed program was:" >&5
7005 cat conftest.
$ac_ext >&5
7007 eval "ac_cv_lib_$ac_lib_var=no"
7010 LIBS
="$ac_save_LIBS"
7013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7014 echo "$ac_t""yes" 1>&6
7017 echo "$ac_t""no" 1>&6
7018 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
7019 echo "configure:7020: checking for tgetent in -lterminfo" >&5
7020 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
7021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7022 echo $ac_n "(cached) $ac_c" 1>&6
7024 ac_save_LIBS
="$LIBS"
7025 LIBS
="-lterminfo $LIBS"
7026 cat > conftest.
$ac_ext <<EOF
7027 #line 7028 "configure"
7028 #include "confdefs.h"
7029 /* Override any gcc2 internal prototype to avoid an error. */
7030 /* We use char because int might match the return type of a gcc2
7031 builtin and then its argument prototype would still apply. */
7038 if { (eval echo configure
:7039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7040 eval "ac_cv_lib_$ac_lib_var=yes"
7042 echo "configure: failed program was:" >&5
7043 cat conftest.
$ac_ext >&5
7045 eval "ac_cv_lib_$ac_lib_var=no"
7048 LIBS
="$ac_save_LIBS"
7051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7052 echo "$ac_t""yes" 1>&6
7055 echo "$ac_t""no" 1>&6
7069 if test "x$TERM_LIB" = x
7071 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
7077 # libreadline needs libuser32.a in a cygwin environment
7079 if test x
$gdb_cv_os_cygwin = xyes
; then
7080 WIN32LIBS
="-luser32"
7082 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
7088 LIBGUI
="../libgui/src/libgui.a"
7089 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
7093 # Check whether --with-cpu or --without-cpu was given.
7094 if test "${with_cpu+set}" = set; then
7097 powerpc-
* | powerpcle-
* )
7098 ## It would be nice to keep this table in sync with the one in
7100 case "${with_cpu}" in
7101 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
7103 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
7105 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
7106 ## These are all RS6000 variants, as far as GDB is concerned.
7116 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
7122 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
7125 cat >> confdefs.h
<<EOF
7126 #define TARGET_CPU_DEFAULT "${with_cpu}"
7134 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7135 if test "${enable_gdbtk+set}" = set; then
7136 enableval
="$enable_gdbtk"
7137 case "${enableval}" in
7141 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
7144 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
7152 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
7156 # Default is on for everything but go32 and Cygwin
7161 if test -d "${srcdir}/gdbtk" ; then
7177 if test "${enable_gdbtk}" = "yes"; then
7179 # Gdbtk must have an absolute path to srcdir in order to run
7180 # properly when not installed.
7188 # Ok, lets find the tcl configuration
7189 # First, look for one uninstalled.
7190 # the alternative search directory is invoked by --with-tclconfig
7193 if test x
"${no_tcl}" = x
; then
7194 # we reset no_tcl in case something fails here
7196 # Check whether --with-tclconfig or --without-tclconfig was given.
7197 if test "${with_tclconfig+set}" = set; then
7198 withval
="$with_tclconfig"
7199 with_tclconfig
=${withval}
7202 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
7203 echo "configure:7204: checking for Tcl configuration" >&5
7204 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
7205 echo $ac_n "(cached) $ac_c" 1>&6
7209 # First check to see if --with-tclconfig was specified.
7210 if test x
"${with_tclconfig}" != x
; then
7211 if test -f "${with_tclconfig}/tclConfig.sh" ; then
7212 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
7214 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
7218 # then check for a private Tcl installation
7219 if test x
"${ac_cv_c_tclconfig}" = x
; then
7222 `ls -dr ../tcl[7-9]* 2>/dev/null` \
7224 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
7226 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
7227 if test -f "$i/${configdir}/tclConfig.sh" ; then
7228 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
7233 # check in a few common install locations
7234 if test x
"${ac_cv_c_tclconfig}" = x
; then
7235 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7236 if test -f "$i/tclConfig.sh" ; then
7237 ac_cv_c_tclconfig
=`(cd $i; pwd)`
7242 # check in a few other private locations
7243 if test x
"${ac_cv_c_tclconfig}" = x
; then
7246 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
7247 if test -f "$i/${configdir}/tclConfig.sh" ; then
7248 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
7256 if test x
"${ac_cv_c_tclconfig}" = x
; then
7257 TCLCONFIG
="# no Tcl configs found"
7258 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
7261 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
7262 echo "$ac_t""found $TCLCONFIG" 1>&6
7266 if test -z "${no_tcl}"; then
7296 # Ok, lets find the tk configuration
7297 # First, look for one uninstalled.
7298 # the alternative search directory is invoked by --with-tkconfig
7301 if test x
"${no_tk}" = x
; then
7302 # we reset no_tk in case something fails here
7304 # Check whether --with-tkconfig or --without-tkconfig was given.
7305 if test "${with_tkconfig+set}" = set; then
7306 withval
="$with_tkconfig"
7307 with_tkconfig
=${withval}
7310 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
7311 echo "configure:7312: checking for Tk configuration" >&5
7312 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
7313 echo $ac_n "(cached) $ac_c" 1>&6
7317 # First check to see if --with-tkconfig was specified.
7318 if test x
"${with_tkconfig}" != x
; then
7319 if test -f "${with_tkconfig}/tkConfig.sh" ; then
7320 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
7322 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
7326 # then check for a private Tk library
7327 if test x
"${ac_cv_c_tkconfig}" = x
; then
7330 `ls -dr ../tk[4-9]* 2>/dev/null` \
7332 `ls -dr ../../tk[4-9]* 2>/dev/null` \
7334 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
7335 if test -f "$i/${configdir}/tkConfig.sh" ; then
7336 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
7341 # check in a few common install locations
7342 if test x
"${ac_cv_c_tkconfig}" = x
; then
7343 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7344 if test -f "$i/tkConfig.sh" ; then
7345 ac_cv_c_tkconfig
=`(cd $i; pwd)`
7350 # check in a few other private locations
7351 if test x
"${ac_cv_c_tkconfig}" = x
; then
7354 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
7355 if test -f "$i/${configdir}/tkConfig.sh" ; then
7356 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
7364 if test x
"${ac_cv_c_tkconfig}" = x
; then
7365 TKCONFIG
="# no Tk configs found"
7366 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
7369 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
7370 echo "$ac_t""found $TKCONFIG" 1>&6
7376 # now look for Tcl library stuff
7387 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
7389 # If $no_tk is nonempty, then we can't do Tk, and there is no
7390 # point to doing Tcl.
7391 if test -z "${no_tk}"; then
7393 if test -f "$TKCONFIG" ; then
7411 # Ok, lets find the tcl source trees so we can use the headers
7412 # Warning: transition of version 9 to 10 will break this algorithm
7413 # because 10 sorts before 9. We also look for just tcl. We have to
7414 # be careful that we don't match stuff like tclX by accident.
7415 # the alternative search directory is involked by --with-tclinclude
7419 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
7420 echo "configure:7421: checking for Tcl private headers. dir=${configdir}" >&5
7421 # Check whether --with-tclinclude or --without-tclinclude was given.
7422 if test "${with_tclinclude+set}" = set; then
7423 withval
="$with_tclinclude"
7424 with_tclinclude
=${withval}
7427 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
7428 echo $ac_n "(cached) $ac_c" 1>&6
7431 # first check to see if --with-tclinclude was specified
7432 if test x
"${with_tclinclude}" != x
; then
7433 if test -f ${with_tclinclude}/tclInt.h
; then
7434 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
7435 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
7436 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
7438 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
7442 # next check if it came with Tcl configuration file
7443 if test x
"${ac_cv_c_tclconfig}" = x
; then
7444 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
7445 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
7449 # next check in private source directory
7451 # since ls returns lowest version numbers first, reverse its output
7452 if test x
"${ac_cv_c_tclh}" = x
; then
7455 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
7456 ${srcdir}/..
/..
/tcl \
7457 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
7458 ${srcdir}/..
/..
/..
/tcl \
7459 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
7460 if test -f $i/generic
/tclInt.h
; then
7461 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
7466 # finally check in a few common install locations
7468 # since ls returns lowest version numbers first, reverse its output
7469 if test x
"${ac_cv_c_tclh}" = x
; then
7471 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
7472 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
7473 /usr
/local
/src
/tcl \
7474 /usr
/local
/lib
/tcl \
7475 ${prefix}/include
; do
7476 if test -f $i/generic
/tclInt.h
; then
7477 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
7482 # see if one is installed
7483 if test x
"${ac_cv_c_tclh}" = x
; then
7484 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
7485 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
7486 echo "configure:7487: checking for tclInt.h" >&5
7487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7488 echo $ac_n "(cached) $ac_c" 1>&6
7490 cat > conftest.
$ac_ext <<EOF
7491 #line 7492 "configure"
7492 #include "confdefs.h"
7495 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7496 { (eval echo configure
:7497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7497 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7498 if test -z "$ac_err"; then
7500 eval "ac_cv_header_$ac_safe=yes"
7503 echo "configure: failed program was:" >&5
7504 cat conftest.
$ac_ext >&5
7506 eval "ac_cv_header_$ac_safe=no"
7510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7511 echo "$ac_t""yes" 1>&6
7512 ac_cv_c_tclh
=installed
7514 echo "$ac_t""no" 1>&6
7522 if test x
"${ac_cv_c_tclh}" = x
; then
7523 TCLHDIR
="# no Tcl private headers found"
7524 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
7526 if test x
"${ac_cv_c_tclh}" != x
; then
7528 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
7529 echo "$ac_t""is installed" 1>&6
7532 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
7533 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
7534 TCLHDIR
="-I${ac_cv_c_tclh}"
7542 # Ok, lets find the tk source trees so we can use the headers
7543 # If the directory (presumably symlink) named "tk" exists, use that one
7544 # in preference to any others. Same logic is used when choosing library
7545 # and again with Tcl. The search order is the best place to look first, then in
7546 # decreasing significance. The loop breaks if the trigger file is found.
7547 # Note the gross little conversion here of srcdir by cd'ing to the found
7548 # directory. This converts the path from a relative to an absolute, so
7549 # recursive cache variables for the path will work right. We check all
7550 # the possible paths in one loop rather than many seperate loops to speed
7552 # the alternative search directory is involked by --with-tkinclude
7555 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
7556 echo "configure:7557: checking for Tk private headers" >&5
7557 # Check whether --with-tkinclude or --without-tkinclude was given.
7558 if test "${with_tkinclude+set}" = set; then
7559 withval
="$with_tkinclude"
7560 with_tkinclude
=${withval}
7563 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
7564 echo $ac_n "(cached) $ac_c" 1>&6
7567 # first check to see if --with-tkinclude was specified
7568 if test x
"${with_tkinclude}" != x
; then
7569 if test -f ${with_tkinclude}/tk.h
; then
7570 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
7571 elif test -f ${with_tkinclude}/generic
/tk.h
; then
7572 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
7574 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
7578 # next check if it came with Tk configuration file
7579 if test x
"${ac_cv_c_tkconfig}" = x
; then
7580 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
7581 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
7585 # next check in private source directory
7587 # since ls returns lowest version numbers first, reverse its output
7588 if test x
"${ac_cv_c_tkh}" = x
; then
7591 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
7592 ${srcdir}/..
/..
/tk \
7593 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
7594 ${srcdir}/..
/..
/..
/tk \
7595 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
7596 if test -f $i/generic
/tk.h
; then
7597 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
7602 # finally check in a few common install locations
7604 # since ls returns lowest version numbers first, reverse its output
7605 if test x
"${ac_cv_c_tkh}" = x
; then
7607 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
7608 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
7611 ${prefix}/include
; do
7612 if test -f $i/generic
/tk.h
; then
7613 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
7618 # see if one is installed
7619 if test x
"${ac_cv_c_tkh}" = x
; then
7620 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
7621 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
7622 echo "configure:7623: checking for tk.h" >&5
7623 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7624 echo $ac_n "(cached) $ac_c" 1>&6
7626 cat > conftest.
$ac_ext <<EOF
7627 #line 7628 "configure"
7628 #include "confdefs.h"
7631 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7632 { (eval echo configure
:7633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7633 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7634 if test -z "$ac_err"; then
7636 eval "ac_cv_header_$ac_safe=yes"
7639 echo "configure: failed program was:" >&5
7640 cat conftest.
$ac_ext >&5
7642 eval "ac_cv_header_$ac_safe=no"
7646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7647 echo "$ac_t""yes" 1>&6
7648 ac_cv_c_tkh
=installed
7650 echo "$ac_t""no" 1>&6
7658 if test x
"${ac_cv_c_tkh}" != x
; then
7660 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
7661 echo "$ac_t""is installed" 1>&6
7664 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
7665 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
7666 TKHDIR
="-I${ac_cv_c_tkh}"
7669 TKHDIR
="# no Tk directory found"
7670 echo "configure: warning: Can't find Tk private headers" 1>&2
7677 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7678 echo "configure:7679: checking for Itcl private headers. srcdir=${srcdir}" >&5
7679 if test x
"${ac_cv_c_itclh}" = x
; then
7680 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
7681 if test -f $i/generic
/itcl.h
; then
7682 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
7687 if test x
"${ac_cv_c_itclh}" = x
; then
7688 ITCLHDIR
="# no Itcl private headers found"
7689 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
7691 if test x
"${ac_cv_c_itclh}" != x
; then
7692 ITCLHDIR
="-I${ac_cv_c_itclh}"
7694 # should always be here
7695 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
7700 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7701 echo "configure:7702: checking for Itk private headers. srcdir=${srcdir}" >&5
7702 if test x
"${ac_cv_c_itkh}" = x
; then
7703 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
7704 if test -f $i/generic
/itk.h
; then
7705 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
7710 if test x
"${ac_cv_c_itkh}" = x
; then
7711 ITKHDIR
="# no Itk private headers found"
7712 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
7714 if test x
"${ac_cv_c_itkh}" != x
; then
7715 ITKHDIR
="-I${ac_cv_c_itkh}"
7717 # should always be here
7718 # ITKLIB="../itcl/itk/unix/libitk.a"
7723 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
7724 echo "configure:7725: checking for Tix private headers. srcdir=${srcdir}" >&5
7725 if test x
"${ac_cv_c_tixh}" = x
; then
7726 for i
in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/..
/..
/..
/tix
; do
7727 if test -f $i/generic
/tix.h
; then
7728 ac_cv_c_tixh
=`(cd $i/generic; pwd)`
7733 if test x
"${ac_cv_c_tixh}" = x
; then
7734 TIXHDIR
="# no Tix private headers found"
7735 { echo "configure: error: Can't find Tix private headers" 1>&2; exit 1; }
7737 if test x
"${ac_cv_c_tixh}" != x
; then
7738 TIXHDIR
="-I${ac_cv_c_tixh}"
7744 # now look for Tk library stuff
7755 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
7757 # now look for Itcl library stuff
7761 # Ok, lets find the itcl configuration
7762 # First, look for one uninstalled.
7763 # the alternative search directory is invoked by --with-itclconfig
7766 if test x
"${no_itcl}" = x
; then
7767 # we reset no_itcl in case something fails here
7769 # Check whether --with-itclconfig or --without-itclconfig was given.
7770 if test "${with_itclconfig+set}" = set; then
7771 withval
="$with_itclconfig"
7772 with_itclconfig
=${withval}
7775 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
7776 echo "configure:7777: checking for Itcl configuration" >&5
7777 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7782 # First check to see if --with-itclconfig was specified.
7783 if test x
"${with_itclconfig}" != x
; then
7784 if test -f "${with_itclconfig}/itclConfig.sh" ; then
7785 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
7787 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
7791 # then check for a private Itcl library
7792 if test x
"${ac_cv_c_itclconfig}" = x
; then
7795 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
7797 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
7799 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
7800 if test -f "$i/itclConfig.sh" ; then
7801 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7806 # check in a few common install locations
7807 if test x
"${ac_cv_c_itclconfig}" = x
; then
7808 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7809 if test -f "$i/itclConfig.sh" ; then
7810 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7815 # check in a few other private locations
7816 if test x
"${ac_cv_c_itclconfig}" = x
; then
7818 ${srcdir}/..
/itcl
/itcl \
7819 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
7820 if test -f "$i/itclConfig.sh" ; then
7821 ac_cv_c_itclconfig
=`(cd $i; pwd)`
7829 if test x
"${ac_cv_c_itclconfig}" = x
; then
7830 ITCLCONFIG
="# no Itcl configs found"
7831 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
7834 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
7835 echo "$ac_t""found $ITCLCONFIG" 1>&6
7839 if test -z "${no_itcl}"; then
7841 if test -f "$ITCLCONFIG" ; then
7856 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
7857 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
7861 # now look for Itk library stuff
7864 # Ok, lets find the itk configuration
7865 # First, look for one uninstalled.
7866 # the alternative search directory is invoked by --with-itkconfig
7869 if test x
"${no_itk}" = x
; then
7870 # we reset no_itk in case something fails here
7872 # Check whether --with-itkconfig or --without-itkconfig was given.
7873 if test "${with_itkconfig+set}" = set; then
7874 withval
="$with_itkconfig"
7875 with_itkconfig
=${withval}
7878 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
7879 echo "configure:7880: checking for Itk configuration" >&5
7880 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
7881 echo $ac_n "(cached) $ac_c" 1>&6
7885 # First check to see if --with-itkconfig was specified.
7886 if test x
"${with_itkconfig}" != x
; then
7887 if test -f "${with_itkconfig}/itkConfig.sh" ; then
7888 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
7890 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
7894 # then check for a private Itk library
7895 if test x
"${ac_cv_c_itkconfig}" = x
; then
7898 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
7900 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
7902 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
7903 if test -f "$i/itkConfig.sh" ; then
7904 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7909 # check in a few common install locations
7910 if test x
"${ac_cv_c_itkconfig}" = x
; then
7911 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
7912 if test -f "$i/itkConfig.sh" ; then
7913 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7918 # check in a few other private locations
7919 if test x
"${ac_cv_c_itkconfig}" = x
; then
7921 ${srcdir}/..
/itcl
/itk \
7922 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
7923 if test -f "$i/itkConfig.sh" ; then
7924 ac_cv_c_itkconfig
=`(cd $i; pwd)`
7932 if test x
"${ac_cv_c_itkconfig}" = x
; then
7933 ITKCONFIG
="# no Itk configs found"
7934 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
7937 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
7938 echo "$ac_t""found $ITKCONFIG" 1>&6
7943 if test -z "${no_itcl}"; then
7945 if test -f "$ITKCONFIG" ; then
7960 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
7961 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
7964 # now look for Tix library stuff
7967 # Ok, lets find the tix configuration
7968 # First, look for one uninstalled.
7969 # the alternative search directory is invoked by --with-itkconfig
7972 if test x
"${no_tix}" = x
; then
7973 # we reset no_tix in case something fails here
7975 # Check whether --with-tixconfig or --without-tixconfig was given.
7976 if test "${with_tixconfig+set}" = set; then
7977 withval
="$with_tixconfig"
7978 with_tixconfig
=${withval}
7981 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
7982 echo "configure:7983: checking for Tix configuration" >&5
7983 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
7984 echo $ac_n "(cached) $ac_c" 1>&6
7988 # First check to see if --with-tixconfig was specified.
7989 if test x
"${with_tixconfig}" != x
; then
7990 if test -f "${with_tixconfig}/tixConfig.sh" ; then
7991 ac_cv_c_tixconfig
=`(cd ${with_tixconfig}; pwd)`
7993 { echo "configure: error: ${with_tixconfig} directory doesn't contain tixConfig.sh" 1>&2; exit 1; }
7997 # then check for a private Tix library
7998 if test x
"${ac_cv_c_tixconfig}" = x
; then
8001 `ls -dr ../tix 2>/dev/null` \
8003 `ls -dr ../../tix 2>/dev/null` \
8005 `ls -dr ../../../tix 2>/dev/null` ; do
8006 echo "**** Looking at $i - with ${configdir}"
8007 if test -f "$i/tixConfig.sh" ; then
8008 ac_cv_c_tixconfig
=`(cd $i; pwd)`
8013 # check in a few common install locations
8014 if test x
"${ac_cv_c_tixconfig}" = x
; then
8015 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8016 echo "**** Looking at $i"
8017 if test -f "$i/tixConfig.sh" ; then
8018 ac_cv_c_tixconfig
=`(cd $i; pwd)`
8023 # check in a few other private locations
8024 echo "**** Other private locations"
8025 if test x
"${ac_cv_c_tixconfig}" = x
; then
8028 `ls -dr ${srcdir}/../tix 2>/dev/null` ; do
8029 echo "**** Looking at $i - with ${configdir}"
8030 if test -f "$i/${configdir}/tixConfig.sh" ; then
8031 ac_cv_c_tixconfig
=`(cd $i/${configdir}; pwd)`
8039 if test x
"${ac_cv_c_tixconfig}" = x
; then
8040 TIXCONFIG
="# no Tix configs found"
8041 echo "configure: warning: Can't find Tix configuration definitions" 1>&2
8044 TIXCONFIG
=${ac_cv_c_tixconfig}/tixConfig.sh
8045 echo "$ac_t""found $TIXCONFIG" 1>&6
8050 if test -z "${no_tix}"; then
8052 if test -f "$TIXCONFIG" ; then
8063 TIXLIB
="${TIX_BUILD_LIB_SPEC}"
8064 TIX_DEPS
="${TIX_BUILD_LOCATION}/${TIX_LIB_FILE}"
8067 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
8068 # Tcl/Tk 8.1 require -fwritable strings. I don't
8069 # know whether 8.2 will or not, but I bet it will.
8070 # I don't have to worry about 7.x since we don't support it.
8072 if test "$GCC" = "yes"; then
8073 if test "$TCL_VERSION" != "8.0" ; then
8074 GDBTK_CFLAGS
="-fwritable-strings"
8078 # Include some libraries that Tcl and Tk want.
8079 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TIX) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
8080 # Yes, the ordering seems wrong here. But it isn't.
8081 # TK_LIBS is the list of libraries that need to be linked
8082 # after Tcl/Tk. Note that this isn't put into LIBS. If it
8083 # were in LIBS then any link tests after this point would
8084 # try to include things like `$(LIBGUI)', which wouldn't work.
8085 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
8087 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
8088 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
8089 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
8090 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
8091 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
8092 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
8093 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
8094 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
8096 if test x
$gdb_cv_os_cygwin = xyes
; then
8097 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
8098 WIN32LDAPP
="-Wl,--subsystem,console"
8099 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
8120 # If we find X, set shell vars x_includes and x_libraries to the
8121 # paths, otherwise set no_x=yes.
8122 # Uses ac_ vars as temps to allow command line to override cache and checks.
8123 # --without-x overrides everything else, but does not touch the cache.
8124 echo $ac_n "checking for X""... $ac_c" 1>&6
8125 echo "configure:8126: checking for X" >&5
8127 # Check whether --with-x or --without-x was given.
8128 if test "${with_x+set}" = set; then
8133 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8134 if test "x$with_x" = xno
; then
8135 # The user explicitly disabled X.
8138 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8139 # Both variables are already set.
8142 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
8143 echo $ac_n "(cached) $ac_c" 1>&6
8145 # One or both of the vars are not set, and there is no cached value.
8146 ac_x_includes
=NO ac_x_libraries
=NO
8148 if mkdir conftestdir
; then
8150 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8151 cat > Imakefile
<<'EOF'
8153 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8155 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8156 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8157 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8158 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8159 for ac_extension
in a so sl
; do
8160 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8161 test -f $ac_im_libdir/libX11.
$ac_extension; then
8162 ac_im_usrlibdir
=$ac_im_libdir; break
8165 # Screen out bogus values from the imake configuration. They are
8166 # bogus both because they are the default anyway, and because
8167 # using them would break gcc on systems where it needs fixed includes.
8168 case "$ac_im_incroot" in
8170 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
8172 case "$ac_im_usrlibdir" in
8174 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
8181 if test "$ac_x_includes" = NO
; then
8182 # Guess where to find include files, by looking for this one X11 .h file.
8183 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
8185 # First, try using that file with no special directory specified.
8186 cat > conftest.
$ac_ext <<EOF
8187 #line 8188 "configure"
8188 #include "confdefs.h"
8189 #include <$x_direct_test_include>
8191 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8192 { (eval echo configure
:8193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8193 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8194 if test -z "$ac_err"; then
8196 # We can compile using X headers with no special include directory.
8200 echo "configure: failed program was:" >&5
8201 cat conftest.
$ac_ext >&5
8203 # Look for the header file in a standard set of common directories.
8204 # Check X11 before X11Rn because it is often a symlink to the current release.
8207 /usr
/X11R
6/include \
8208 /usr
/X11R
5/include \
8209 /usr
/X11R
4/include \
8212 /usr
/include
/X11R6 \
8213 /usr
/include
/X11R5 \
8214 /usr
/include
/X11R4 \
8216 /usr
/local
/X11
/include \
8217 /usr
/local
/X11R
6/include \
8218 /usr
/local
/X11R
5/include \
8219 /usr
/local
/X11R
4/include \
8221 /usr
/local
/include
/X11 \
8222 /usr
/local
/include
/X11R6 \
8223 /usr
/local
/include
/X11R5 \
8224 /usr
/local
/include
/X11R4 \
8228 /usr
/XFree86
/include
/X11 \
8231 /usr
/local
/include \
8232 /usr
/unsupported
/include \
8233 /usr
/athena
/include \
8234 /usr
/local
/x11r
5/include \
8235 /usr
/lpp
/Xamples
/include \
8237 /usr
/openwin
/include \
8238 /usr
/openwin
/share
/include \
8241 if test -r "$ac_dir/$x_direct_test_include"; then
8242 ac_x_includes
=$ac_dir
8248 fi # $ac_x_includes = NO
8250 if test "$ac_x_libraries" = NO
; then
8251 # Check for the libraries.
8253 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
8254 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
8256 # See if we find them without any special options.
8257 # Don't add to $LIBS permanently.
8258 ac_save_LIBS
="$LIBS"
8259 LIBS
="-l$x_direct_test_library $LIBS"
8260 cat > conftest.
$ac_ext <<EOF
8261 #line 8262 "configure"
8262 #include "confdefs.h"
8265 ${x_direct_test_function}()
8268 if { (eval echo configure
:8269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8270 LIBS
="$ac_save_LIBS"
8271 # We can link X programs with no special library path.
8274 echo "configure: failed program was:" >&5
8275 cat conftest.
$ac_ext >&5
8277 LIBS
="$ac_save_LIBS"
8278 # First see if replacing the include by lib works.
8279 # Check X11 before X11Rn because it is often a symlink to the current release.
8280 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
8291 /usr
/local
/X11
/lib \
8292 /usr
/local
/X11R
6/lib \
8293 /usr
/local
/X11R
5/lib \
8294 /usr
/local
/X11R
4/lib \
8296 /usr
/local
/lib
/X11 \
8297 /usr
/local
/lib
/X11R6 \
8298 /usr
/local
/lib
/X11R5 \
8299 /usr
/local
/lib
/X11R4 \
8303 /usr
/XFree86
/lib
/X11 \
8307 /usr
/unsupported
/lib \
8309 /usr
/local
/x11r
5/lib \
8310 /usr
/lpp
/Xamples
/lib \
8314 /usr
/openwin
/share
/lib \
8317 for ac_extension
in a so sl
; do
8318 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
8319 ac_x_libraries
=$ac_dir
8326 fi # $ac_x_libraries = NO
8328 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
8329 # Didn't find X anywhere. Cache the known absence of X.
8330 ac_cv_have_x
="have_x=no"
8332 # Record where we found X for the cache.
8333 ac_cv_have_x
="have_x=yes \
8334 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8338 eval "$ac_cv_have_x"
8341 if test "$have_x" != yes; then
8342 echo "$ac_t""$have_x" 1>&6
8345 # If each of the values was on the command line, it overrides each guess.
8346 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8347 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8348 # Update the cache value to reflect the command line values.
8349 ac_cv_have_x
="have_x=yes \
8350 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8351 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
8356 # Unlike the sim directory, whether a simulator is linked is controlled by
8357 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
8358 # This code just checks for a few cases where we'd like to ignore those
8359 # definitions, even when they're present in the '.mt' file. These cases
8360 # are when --disable-sim is specified, or if the simulator directory is
8361 # not part of the source tree.
8363 # Check whether --enable-sim or --disable-sim was given.
8364 if test "${enable_sim+set}" = set; then
8365 enableval
="$enable_sim"
8366 echo "enable_sim = $enable_sim";
8367 echo "enableval = ${enableval}";
8368 case "${enableval}" in
8369 yes) ignore_sim
=false
;;
8370 no
) ignore_sim
=true
;;
8371 *) ignore_sim
=false
;;
8378 if test ! -d "${srcdir}/../sim"; then
8382 if test "${ignore_sim}" = "true"; then
8384 IGNORE_SIM_OBS
="SIM_OBS="
8388 cat >> confdefs.h
<<\EOF
8408 # Begin stuff to support --enable-shared
8409 # Check whether --enable-shared or --disable-shared was given.
8410 if test "${enable_shared+set}" = set; then
8411 enableval
="$enable_shared"
8412 case "${enableval}" in
8421 # If we have shared libraries, try to set rpath reasonably.
8422 if test "${shared}" = "true"; then
8425 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
8427 *-*-irix5* |
*-*-irix6*)
8428 HLDFLAGS
='-Wl,-rpath,$(libdir)'
8432 *-*-linux* |
*-pc-linux-gnu*)
8433 HLDFLAGS
='-Wl,-rpath,$(libdir)'
8436 HLDFLAGS
='-R $(libdir)'
8439 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;'
8444 # On SunOS, if the linker supports the -rpath option, use it to
8445 # prevent ../bfd and ../opcodes from being included in the run time
8449 echo 'main () { }' > conftest.c
8450 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
8451 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
8453 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
8455 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
8457 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
8459 elif test "${shared}" = "true"; then
8460 HLDFLAGS
='-Wl,-rpath=$(libdir)'
8462 HLDFLAGS
='-Wl,-rpath='
8464 rm -f conftest.t conftest.c conftest
8469 # End stuff to support --enable-shared
8471 # target_subdir is used by the testsuite to find the target libraries.
8473 if test "${host}" != "${target}"; then
8474 target_subdir
="${target_alias}/"
8479 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
8480 if test ! -f ${host_makefile_frag}; then
8481 # When building a native debuger the .mh file containing things
8482 # like NATDEPFILES is needed. Cross debuggers don't need .mh
8483 # since it no longer contains anything useful.
8484 if test "${target}" = "${host}"; then
8485 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
8487 host_makefile_frag
=/dev
/null
8490 frags
="$frags $host_makefile_frag"
8492 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
8493 if test ! -f ${target_makefile_frag}; then
8494 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
8496 frags
="$frags $target_makefile_frag"
8503 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8504 ' ${host_makefile_frag}`
8506 targetfile
=`sed -n '
8507 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8508 ' ${target_makefile_frag}`
8510 GDB_MULTI_ARCH
=`sed -n '
8511 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
8512 ' ${target_makefile_frag}`
8514 if test "${target}" = "${host}"; then
8515 # We pick this up from the host configuration file (.mh) because we
8516 # do not have a native configuration Makefile fragment.
8517 nativefile
=`sed -n '
8518 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
8519 ' ${host_makefile_frag}`
8523 # New targets should just set gdb_multi_arch=yes in configure.tgt.
8524 # Old targets being converted can either do that or set GDB_MULTI_ARCH
8525 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
8526 # will be the default.
8527 if test x
"${GDB_MULTI_ARCH}" = x
; then
8528 case "${gdb_multi_arch}" in
8529 yes ) GDB_MULTI_ARCH
=GDB_MULTI_ARCH_PURE
;;
8530 no
) GDB_MULTI_ARCH
=0 ;;
8531 0|
1|
2 ) GDB_MULTI_ARCH
=${gdb_multi_arch} ;;
8534 if test x
"${GDB_MULTI_ARCH}" != x
; then
8535 cat >> confdefs.h
<<EOF
8536 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
8540 # Warn the user when they use an old practice
8541 case "${GDB_MULTI_ARCH}" in
8543 0 | GDB_MULTI_ARCH_PARTIAL |
1 | GDB_MULTI_ARCH_TM |
2 )
8544 echo "configure: warning: "GDB
: Target is not pure multi-arch
"" 1>&2 ;;
8545 GDB_MULTI_ARCH_PURE
)
8546 if test x
"${targetfile}" != x
; then
8547 echo "configure: warning: "GDB
: Ignoring TM_FILE
in ${target_makefile_frag}"" 1>&2
8550 *) { echo "configure: error: "GDB
: Unknown GDB_MULTI_ARCH value
${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
8553 SUBDIRS
="doc testsuite nlm"
8554 if test "${enable_multi_ice}" = "yes"; then
8555 SUBDIRS
="${SUBDIRS} multi-ice"
8558 # ``gdbserver'' can only be built in a native configuration.
8559 if test x
"${target}" = x
"${host}"; then
8560 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
8561 echo "configure:8562: checking whether gdbserver is supported on this host" >&5
8562 if test x
"${build_gdbserver}" = xyes
; then
8563 configdirs
="${configdirs} gdbserver"
8564 SUBDIRS
="${SUBDIRS} gdbserver"
8565 echo "$ac_t""yes" 1>&6
8567 echo "$ac_t""no" 1>&6
8573 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
8574 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
8582 if test "${hostfile}" != ""; then
8584 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
8585 files
="${files} ${GDB_XM_FILE}"
8586 links
="${links} xm.h"
8587 cat >> confdefs.h
<<EOF
8588 #define GDB_XM_FILE ${GDB_XM_FILE}
8596 if test "${targetfile}" != ""; then
8598 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
8599 files
="${files} ${GDB_TM_FILE}"
8600 links
="${links} tm.h"
8601 cat >> confdefs.h
<<EOF
8602 #define GDB_TM_FILE ${GDB_TM_FILE}
8610 if test "${nativefile}" != ""; then
8612 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
8613 files
="${files} ${GDB_NM_FILE}"
8614 links
="${links} nm.h"
8615 cat >> confdefs.h
<<EOF
8616 #define GDB_NM_FILE ${GDB_NM_FILE}
8622 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8623 echo "configure:8624: checking whether ln -s works" >&5
8624 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8625 echo $ac_n "(cached) $ac_c" 1>&6
8628 if ln -s X conftestdata
2>/dev
/null
8631 ac_cv_prog_LN_S
="ln -s"
8636 LN_S
="$ac_cv_prog_LN_S"
8637 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8638 echo "$ac_t""yes" 1>&6
8640 echo "$ac_t""no" 1>&6
8646 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8647 echo "configure:8648: checking for Cygwin environment" >&5
8648 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
8649 echo $ac_n "(cached) $ac_c" 1>&6
8651 cat > conftest.
$ac_ext <<EOF
8652 #line 8653 "configure"
8653 #include "confdefs.h"
8658 #define __CYGWIN__ __CYGWIN32__
8663 if { (eval echo configure
:8664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8667 echo "configure: failed program was:" >&5
8668 cat conftest.
$ac_ext >&5
8676 echo "$ac_t""$ac_cv_cygwin" 1>&6
8678 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
8679 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8680 echo "configure:8681: checking for mingw32 environment" >&5
8681 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
8682 echo $ac_n "(cached) $ac_c" 1>&6
8684 cat > conftest.
$ac_ext <<EOF
8685 #line 8686 "configure"
8686 #include "confdefs.h"
8692 if { (eval echo configure
:8693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8696 echo "configure: failed program was:" >&5
8697 cat conftest.
$ac_ext >&5
8705 echo "$ac_t""$ac_cv_mingw32" 1>&6
8707 test "$ac_cv_mingw32" = yes && MINGW32
=yes
8710 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8711 echo "configure:8712: checking for executable suffix" >&5
8712 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
8713 echo $ac_n "(cached) $ac_c" 1>&6
8715 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
8719 echo 'int main () { return 0; }' > conftest.
$ac_ext
8721 if { (eval echo configure
:8722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8722 for file in conftest.
*; do
8724 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
8725 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
8729 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8732 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
8737 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
8738 echo "$ac_t""${ac_cv_exeext}" 1>&6
8742 subdirs
="$configdirs"
8745 cat > confcache
<<\EOF
8746 # This file is a shell script that caches the results of configure
8747 # tests run on this system so they can be shared between configure
8748 # scripts and configure runs. It is not useful on other systems.
8749 # If it contains results you don't want to keep, you may remove or edit it.
8751 # By default, configure uses ./config.cache as the cache file,
8752 # creating it if it does not exist already. You can give configure
8753 # the --cache-file=FILE option to use a different cache file; that is
8754 # what configure does when it calls configure scripts in
8755 # subdirectories, so they share the cache.
8756 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8757 # config.status only pays attention to the cache file if you give it the
8758 # --recheck option to rerun configure.
8761 # The following way of writing the cache mishandles newlines in values,
8762 # but we know of no workaround that is simple, portable, and efficient.
8763 # So, don't put newlines in cache variables' values.
8764 # Ultrix sh set writes to stderr and can't be redirected directly,
8765 # and sets the high bit in the cache file unless we assign to the vars.
8767 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8769 # `set' does not quote correctly, so add quotes (double-quote substitution
8770 # turns \\\\ into \\, and sed turns \\ into \).
8772 -e "s/'/'\\\\''/g" \
8773 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8776 # `set' quotes correctly as required by POSIX, so do not add quotes.
8777 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8780 if cmp -s $cache_file confcache
; then
8783 if test -w $cache_file; then
8784 echo "updating cache $cache_file"
8785 cat confcache
> $cache_file
8787 echo "not updating unwritable cache $cache_file"
8792 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8794 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8795 # Let make expand exec_prefix.
8796 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8798 # Any assignment to VPATH causes Sun make to only execute
8799 # the first set of double-colon rules, so remove it if not needed.
8800 # If there is a colon in the path, we need to keep it.
8801 if test "x$srcdir" = x.
; then
8802 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8805 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8807 DEFS
=-DHAVE_CONFIG_H
8809 # Without the "./", some shells look in PATH for config.status.
8810 : ${CONFIG_STATUS=./config.status}
8812 echo creating
$CONFIG_STATUS
8813 rm -f $CONFIG_STATUS
8814 cat > $CONFIG_STATUS <<EOF
8816 # Generated automatically by configure.
8817 # Run this file to recreate the current configuration.
8818 # This directory was configured as follows,
8819 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8821 # $0 $ac_configure_args
8823 # Compiler output produced by configure, useful for debugging
8824 # configure, is in ./config.log if it exists.
8826 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8829 case "\$ac_option" in
8830 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8831 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8832 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8833 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8834 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8836 -help | --help | --hel | --he | --h)
8837 echo "\$ac_cs_usage"; exit 0 ;;
8838 *) echo "\$ac_cs_usage"; exit 1 ;;
8842 ac_given_srcdir=$srcdir
8843 ac_given_INSTALL="$INSTALL"
8845 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8847 cat >> $CONFIG_STATUS <<EOF
8849 # Protect against being on the right side of a sed subst in config.status.
8850 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8851 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8855 s%@CFLAGS@%$CFLAGS%g
8856 s%@CPPFLAGS@%$CPPFLAGS%g
8857 s%@CXXFLAGS@%$CXXFLAGS%g
8858 s%@FFLAGS@%$FFLAGS%g
8860 s%@LDFLAGS@%$LDFLAGS%g
8862 s%@exec_prefix@%$exec_prefix%g
8863 s%@prefix@%$prefix%g
8864 s%@program_transform_name@%$program_transform_name%g
8865 s%@bindir@%$bindir%g
8866 s%@sbindir@%$sbindir%g
8867 s%@libexecdir@%$libexecdir%g
8868 s%@datadir@%$datadir%g
8869 s%@sysconfdir@%$sysconfdir%g
8870 s%@sharedstatedir@%$sharedstatedir%g
8871 s%@localstatedir@%$localstatedir%g
8872 s%@libdir@%$libdir%g
8873 s%@includedir@%$includedir%g
8874 s%@oldincludedir@%$oldincludedir%g
8875 s%@infodir@%$infodir%g
8876 s%@mandir@%$mandir%g
8877 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8878 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8883 s%@host_alias@%$host_alias%g
8884 s%@host_cpu@%$host_cpu%g
8885 s%@host_vendor@%$host_vendor%g
8886 s%@host_os@%$host_os%g
8887 s%@target@%$target%g
8888 s%@target_alias@%$target_alias%g
8889 s%@target_cpu@%$target_cpu%g
8890 s%@target_vendor@%$target_vendor%g
8891 s%@target_os@%$target_os%g
8893 s%@build_alias@%$build_alias%g
8894 s%@build_cpu@%$build_cpu%g
8895 s%@build_vendor@%$build_vendor%g
8896 s%@build_os@%$build_os%g
8897 s%@SET_MAKE@%$SET_MAKE%g
8898 s%@RANLIB@%$RANLIB%g
8899 s%@ALLOCA@%$ALLOCA%g
8900 s%@USE_NLS@%$USE_NLS%g
8901 s%@MSGFMT@%$MSGFMT%g
8902 s%@GMSGFMT@%$GMSGFMT%g
8903 s%@XGETTEXT@%$XGETTEXT%g
8904 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8905 s%@CATALOGS@%$CATALOGS%g
8906 s%@CATOBJEXT@%$CATOBJEXT%g
8907 s%@DATADIRNAME@%$DATADIRNAME%g
8908 s%@GMOFILES@%$GMOFILES%g
8909 s%@INSTOBJEXT@%$INSTOBJEXT%g
8910 s%@INTLDEPS@%$INTLDEPS%g
8911 s%@INTLLIBS@%$INTLLIBS%g
8912 s%@INTLOBJS@%$INTLOBJS%g
8913 s%@POFILES@%$POFILES%g
8915 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8917 s%@GT_YES@%$GT_YES%g
8918 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8921 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8922 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8923 s%@INSTALL_DATA@%$INSTALL_DATA%g
8925 s%@DLLTOOL@%$DLLTOOL%g
8926 s%@WINDRES@%$WINDRES%g
8929 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
8930 s%@UIOUT_CFLAGS@%$UIOUT_CFLAGS%g
8931 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
8932 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
8933 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
8934 s%@MMALLOC@%$MMALLOC%g
8936 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
8937 s%@TERM_LIB@%$TERM_LIB%g
8938 s%@WIN32LIBS@%$WIN32LIBS%g
8939 s%@LIBGUI@%$LIBGUI%g
8940 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
8941 s%@WIN32LDAPP@%$WIN32LDAPP%g
8942 s%@TCL_VERSION@%$TCL_VERSION%g
8943 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
8944 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
8945 s%@TCL_CC@%$TCL_CC%g
8946 s%@TCL_DEFS@%$TCL_DEFS%g
8947 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
8948 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
8949 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
8950 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
8951 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
8952 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
8953 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
8954 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
8955 s%@TCL_RANLIB@%$TCL_RANLIB%g
8956 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
8957 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
8958 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
8959 s%@TK_VERSION@%$TK_VERSION%g
8960 s%@TK_DEFS@%$TK_DEFS%g
8961 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
8962 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
8963 s%@TK_XLIBSW@%$TK_XLIBSW%g
8964 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
8965 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
8966 s%@TCLHDIR@%$TCLHDIR%g
8967 s%@TKHDIR@%$TKHDIR%g
8968 s%@ITCLHDIR@%$ITCLHDIR%g
8969 s%@ITKHDIR@%$ITKHDIR%g
8970 s%@TIXHDIR@%$TIXHDIR%g
8971 s%@ITCL_VERSION@%$ITCL_VERSION%g
8972 s%@ITCL_DEFS@%$ITCL_DEFS%g
8973 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
8974 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
8975 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
8976 s%@ITK_VERSION@%$ITK_VERSION%g
8977 s%@ITK_DEFS@%$ITK_DEFS%g
8978 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
8979 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
8980 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
8981 s%@TIX_VERSION@%$TIX_VERSION%g
8982 s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g
8983 s%@X_CFLAGS@%$X_CFLAGS%g
8984 s%@X_LDFLAGS@%$X_LDFLAGS%g
8985 s%@X_LIBS@%$X_LIBS%g
8986 s%@TCL_DEPS@%$TCL_DEPS%g
8987 s%@TK_DEPS@%$TK_DEPS%g
8988 s%@ITCLLIB@%$ITCLLIB%g
8989 s%@ITCL_DEPS@%$ITCL_DEPS%g
8990 s%@ITKLIB@%$ITKLIB%g
8991 s%@ITK_DEPS@%$ITK_DEPS%g
8992 s%@TIXLIB@%$TIXLIB%g
8993 s%@TIX_DEPS@%$TIX_DEPS%g
8994 s%@GDBTKLIBS@%$GDBTKLIBS%g
8995 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
8996 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
8997 s%@IGNORE_SIM@%$IGNORE_SIM%g
8998 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
8999 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
9000 s%@CONFIG_OBS@%$CONFIG_OBS%g
9001 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
9002 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
9003 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
9004 s%@CONFIG_INITS@%$CONFIG_INITS%g
9005 s%@CONFIG_ALL@%$CONFIG_ALL%g
9006 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
9007 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
9008 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
9009 s%@HLDFLAGS@%$HLDFLAGS%g
9010 s%@HLDENV@%$HLDENV%g
9011 s%@target_subdir@%$target_subdir%g
9012 /@host_makefile_frag@/r $host_makefile_frag
9013 s%@host_makefile_frag@%%g
9014 /@target_makefile_frag@/r $target_makefile_frag
9015 s%@target_makefile_frag@%%g
9017 s%@SUBDIRS@%$SUBDIRS%g
9022 s%@EXEEXT@%$EXEEXT%g
9023 s%@subdirs@%$subdirs%g
9028 cat >> $CONFIG_STATUS <<\EOF
9030 # Split the substitutions into bite-sized pieces for seds with
9031 # small command number limits, like on Digital OSF/1 and HP-UX.
9032 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9033 ac_file
=1 # Number of current file.
9034 ac_beg
=1 # First line for current file.
9035 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9038 while $ac_more_lines; do
9039 if test $ac_beg -gt 1; then
9040 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9042 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9044 if test ! -s conftest.s
$ac_file; then
9046 rm -f conftest.s
$ac_file
9048 if test -z "$ac_sed_cmds"; then
9049 ac_sed_cmds
="sed -f conftest.s$ac_file"
9051 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9053 ac_file
=`expr $ac_file + 1`
9055 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9058 if test -z "$ac_sed_cmds"; then
9063 cat >> $CONFIG_STATUS <<EOF
9065 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
9067 cat >> $CONFIG_STATUS <<\EOF
9068 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9069 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9071 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9072 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9073 *) ac_file_in
="${ac_file}.in" ;;
9076 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9078 # Remove last slash and all that follows it. Not all systems have dirname.
9079 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9080 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9081 # The file is in a subdirectory.
9082 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9083 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9084 # A "../" for each directory in $ac_dir_suffix.
9085 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9087 ac_dir_suffix
= ac_dots
=
9090 case "$ac_given_srcdir" in
9092 if test -z "$ac_dots"; then top_srcdir
=.
9093 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9094 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9096 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9097 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9100 case "$ac_given_INSTALL" in
9101 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
9102 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
9105 echo creating
"$ac_file"
9107 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9109 *Makefile
*) ac_comsub
="1i\\
9110 # $configure_input" ;;
9114 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9116 s%@configure_input@%$configure_input%g
9117 s%@srcdir@%$srcdir%g
9118 s%@top_srcdir@%$top_srcdir%g
9119 s%@INSTALL@%$INSTALL%g
9120 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9124 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9125 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9127 # ac_d sets the value in "#define NAME VALUE" lines.
9128 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9129 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9132 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9133 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9134 ac_uB
='\([ ]\)%\1#\2define\3'
9137 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9138 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9139 ac_eB
='$%\1#\2define\3'
9143 if test "${CONFIG_HEADERS+set}" != set; then
9145 cat >> $CONFIG_STATUS <<EOF
9146 CONFIG_HEADERS="config.h:config.in"
9148 cat >> $CONFIG_STATUS <<\EOF
9150 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9151 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9153 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9154 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9155 *) ac_file_in
="${ac_file}.in" ;;
9158 echo creating
$ac_file
9160 rm -f conftest.frag conftest.
in conftest.out
9161 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9162 cat $ac_file_inputs > conftest.
in
9166 # Transform confdefs.h into a sed script conftest.vals that substitutes
9167 # the proper values into config.h.in to produce config.h. And first:
9168 # Protect against being on the right side of a sed subst in config.status.
9169 # Protect against being in an unquoted here document in config.status.
9171 cat > conftest.hdr
<<\EOF
9174 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9178 sed -n -f conftest.hdr confdefs.h > conftest.vals
9181 # This sed command replaces #undef with comments. This is necessary, for
9182 # example, in the case of _POSIX_SOURCE, which is predefined and required
9183 # on some systems where configure will not decide to define it.
9184 cat >> conftest.vals <<\EOF
9185 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9188 # Break up conftest.vals because some shells have a limit on
9189 # the size of here documents, and old seds have small limits too.
9194 ac_lines=`grep -c . conftest.vals
`
9195 # grep -c gives empty output for an empty file on some AIX systems.
9196 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9197 # Write a limited-size here document to conftest.frag.
9198 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9199 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9201 sed -f conftest.frag conftest.in > conftest.out
9203 mv conftest.out conftest.in
9205 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9207 mv conftest.tail conftest.vals
9211 cat >> $CONFIG_STATUS <<\EOF
9212 rm -f conftest.frag conftest.h
9213 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9214 cat conftest.in >> conftest.h
9216 if cmp -s $ac_file conftest.h 2>/dev/null; then
9217 echo "$ac_file is unchanged"
9220 # Remove last slash and all that follows it. Not all systems have dirname.
9221 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9222 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9223 # The file is in a subdirectory.
9224 test ! -d "$ac_dir" && mkdir "$ac_dir"
9227 mv conftest.h $ac_file
9233 cat >> $CONFIG_STATUS <<EOF
9238 cat >> $CONFIG_STATUS <<\EOF
9239 srcdir=$ac_given_srcdir
9240 while test -n "$ac_sources"; do
9241 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9242 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9244 echo "linking $srcdir/$ac_source to $ac_dest"
9246 if test ! -r $srcdir/$ac_source; then
9247 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9251 # Make relative symlinks.
9252 # Remove last slash and all that follows it. Not all systems have dirname.
9253 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9254 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9255 # The dest file is in a subdirectory.
9256 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9257 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9258 # A "../" for each directory in $ac_dest_dir_suffix.
9259 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9261 ac_dest_dir_suffix= ac_dots=
9265 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9266 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9269 # Make a symlink if possible; otherwise try a hard link.
9270 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9271 ln $srcdir/$ac_source $ac_dest; then :
9273 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9277 cat >> $CONFIG_STATUS <<EOF
9279 gdb_host_cpu=$gdb_host_cpu
9280 gdb_target_cpu=$gdb_target_cpu
9281 nativefile=$nativefile
9284 cat >> $CONFIG_STATUS <<\EOF
9286 if test "${nativefile}" = ""; then
9288 sed -e '/^NATDEPFILES[ ]*=[ ]*/s//# NATDEPFILES=/' \
9289 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
9291 mv -f Makefile.tem Makefile
9294 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
9295 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
9296 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
9297 mv -f Makefile.tmp Makefile
9300 case x$CONFIG_HEADERS in
9301 xconfig.h:config.in)
9307 chmod +x $CONFIG_STATUS
9308 rm -fr confdefs* $ac_clean_files
9309 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9311 if test "$no_recursion" != yes; then
9313 # Remove --cache-file and --srcdir arguments so they do not pile up.
9314 ac_sub_configure_args=
9316 for ac_arg in $ac_configure_args; do
9317 if test -n "$ac_prev"; then
9322 -cache-file | --cache-file | --cache-fil | --cache-fi \
9323 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9324 ac_prev=cache_file ;;
9325 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9326 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9332 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9336 for ac_config_dir in $configdirs; do
9338 # Do not complain, so a configure script can configure whichever
9339 # parts of a large source tree are present.
9340 if test ! -d $srcdir/$ac_config_dir; then
9344 echo configuring in $ac_config_dir
9349 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9351 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9359 # A "../" for each directory in /$ac_config_dir.
9360 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
9363 .) # No --srcdir option. We are building in place.
9364 ac_sub_srcdir=$srcdir ;;
9365 /*) # Absolute path.
9366 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9368 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9371 # Check for guested configure; otherwise get Cygnus style configure.
9372 if test -f $ac_sub_srcdir/configure; then
9373 ac_sub_configure=$ac_sub_srcdir/configure
9374 elif test -f $ac_sub_srcdir/configure.in; then
9375 ac_sub_configure=$ac_configure
9377 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9381 # The recursion is here.
9382 if test -n "$ac_sub_configure"; then
9384 # Make the cache file name correct relative to the subdirectory.
9385 case "$cache_file" in
9386 /*) ac_sub_cache_file=$cache_file ;;
9388 ac_sub_cache_file="$ac_dots$cache_file" ;;
9390 case "$ac_given_INSTALL" in
9391 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9392 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9395 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9396 # The eval makes quoting arguments work.
9397 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9400 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }