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-x use the X Window System"
60 --enable-sim Link gdb with simulator"
62 --enable-shared Use shared libraries"
64 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
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
937 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
938 echo "configure:939: checking for POSIXized ISC" >&5
939 if test -d /etc
/conf
/kconfig.d
&&
940 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
942 echo "$ac_t""yes" 1>&6
943 ISC
=yes # If later tests want to check for ISC.
944 cat >> confdefs.h
<<\EOF
945 #define _POSIX_SOURCE 1
948 if test "$GCC" = yes; then
954 echo "$ac_t""no" 1>&6
961 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
962 echo "configure:963: checking for ${CC-cc} option to accept ANSI C" >&5
963 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
964 echo $ac_n "(cached) $ac_c" 1>&6
966 am_cv_prog_cc_stdc
=no
968 # Don't try gcc -ansi; that turns off useful extensions and
969 # breaks some systems' header files.
971 # Ultrix and OSF/1 -std1
972 # HP-UX 10.20 and later -Ae
973 # HP-UX older versions -Aa -D_HPUX_SOURCE
974 # SVR4 -Xc -D__EXTENSIONS__
975 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
977 CC
="$ac_save_CC $ac_arg"
978 cat > conftest.
$ac_ext <<EOF
979 #line 980 "configure"
980 #include "confdefs.h"
983 #include <sys/types.h>
984 #include <sys/stat.h>
985 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
986 struct buf { int x; };
987 FILE * (*rcsopen) (struct buf *, struct stat *, int);
988 static char *e (p, i)
994 static char *f (char * (*g) (char **, int), char **p, ...)
999 s = g (p, va_arg (v,int));
1003 int test (int i, double x);
1004 struct s1 {int (*f) (int a);};
1005 struct s2 {int (*f) (double a);};
1006 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1012 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1016 if { (eval echo configure
:1017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1018 am_cv_prog_cc_stdc
="$ac_arg"; break
1020 echo "configure: failed program was:" >&5
1021 cat conftest.
$ac_ext >&5
1029 if test -z "$am_cv_prog_cc_stdc"; then
1030 echo "$ac_t""none needed" 1>&6
1032 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1034 case "x$am_cv_prog_cc_stdc" in
1036 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1041 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1042 if test -f $ac_dir/install-sh
; then
1044 ac_install_sh
="$ac_aux_dir/install-sh -c"
1046 elif test -f $ac_dir/install.sh
; then
1048 ac_install_sh
="$ac_aux_dir/install.sh -c"
1052 if test -z "$ac_aux_dir"; then
1053 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1055 ac_config_guess
=$ac_aux_dir/config.guess
1056 ac_config_sub
=$ac_aux_dir/config.sub
1057 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1060 # Do some error checking and defaulting for the host and target type.
1062 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1065 # 1. You are not allowed to specify --host, --target, and nonopt at the
1067 # 2. Host defaults to nonopt.
1068 # 3. If nonopt is not specified, then host defaults to the current host,
1069 # as determined by config.guess.
1070 # 4. Target and build default to nonopt.
1071 # 5. If nonopt is not specified, then target and build default to host.
1073 # The aliases save the names the user supplied, while $host etc.
1074 # will get canonicalized.
1075 case $host---$target---$nonopt in
1076 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1077 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1081 # Make sure we can run config.sub.
1082 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1083 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1086 echo $ac_n "checking host system type""... $ac_c" 1>&6
1087 echo "configure:1088: checking host system type" >&5
1090 case "$host_alias" in
1094 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1095 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1097 *) host_alias
=$nonopt ;;
1101 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1102 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1103 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1104 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1105 echo "$ac_t""$host" 1>&6
1107 echo $ac_n "checking target system type""... $ac_c" 1>&6
1108 echo "configure:1109: checking target system type" >&5
1110 target_alias
=$target
1111 case "$target_alias" in
1114 NONE
) target_alias
=$host_alias ;;
1115 *) target_alias
=$nonopt ;;
1119 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1120 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1121 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1122 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1123 echo "$ac_t""$target" 1>&6
1125 echo $ac_n "checking build system type""... $ac_c" 1>&6
1126 echo "configure:1127: checking build system type" >&5
1129 case "$build_alias" in
1132 NONE
) build_alias
=$host_alias ;;
1133 *) build_alias
=$nonopt ;;
1137 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1138 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1139 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1140 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1141 echo "$ac_t""$build" 1>&6
1143 test "$host_alias" != "$target_alias" &&
1144 test "$program_prefix$program_suffix$program_transform_name" = \
1146 program_prefix
=${target_alias}-
1149 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
1150 # doesn't support cross-compilation, but the one from Autoconf 2.5x
1151 # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
1152 # deal with the lossage. Note that CY_GNU_GETTEXT currently calls
1153 # AC_PROG_RANLIB. This can be removed when we switch to # Autoconf
1155 if test $host != $build; then
1156 ac_tool_prefix
=${host_alias}-
1161 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1162 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1164 echo "configure:1165: checking for $ac_word" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 if test -n "$RANLIB"; then
1169 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1171 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1173 for ac_dir
in $ac_dummy; do
1174 test -z "$ac_dir" && ac_dir
=.
1175 if test -f $ac_dir/$ac_word; then
1176 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1183 RANLIB
="$ac_cv_prog_RANLIB"
1184 if test -n "$RANLIB"; then
1185 echo "$ac_t""$RANLIB" 1>&6
1187 echo "$ac_t""no" 1>&6
1191 if test -z "$ac_cv_prog_RANLIB"; then
1192 if test -n "$ac_tool_prefix"; then
1193 # Extract the first word of "ranlib", so it can be a program name with args.
1194 set dummy ranlib
; ac_word
=$2
1195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1196 echo "configure:1197: checking for $ac_word" >&5
1197 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 if test -n "$RANLIB"; then
1201 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1203 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1205 for ac_dir
in $ac_dummy; do
1206 test -z "$ac_dir" && ac_dir
=.
1207 if test -f $ac_dir/$ac_word; then
1208 ac_cv_prog_RANLIB
="ranlib"
1213 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1216 RANLIB
="$ac_cv_prog_RANLIB"
1217 if test -n "$RANLIB"; then
1218 echo "$ac_t""$RANLIB" 1>&6
1220 echo "$ac_t""no" 1>&6
1230 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1231 echo "configure:1232: checking whether ${MAKE-make} sets \${MAKE}" >&5
1232 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1233 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1236 cat > conftestmake
<<\EOF
1238 @
echo 'ac_maketemp="${MAKE}"'
1240 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1241 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1242 if test -n "$ac_maketemp"; then
1243 eval ac_cv_prog_make_
${ac_make}_set
=yes
1245 eval ac_cv_prog_make_
${ac_make}_set
=no
1249 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1250 echo "$ac_t""yes" 1>&6
1253 echo "$ac_t""no" 1>&6
1254 SET_MAKE
="MAKE=${MAKE-make}"
1257 # Extract the first word of "ranlib", so it can be a program name with args.
1258 set dummy ranlib
; ac_word
=$2
1259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1260 echo "configure:1261: checking for $ac_word" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 if test -n "$RANLIB"; then
1265 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1267 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1269 for ac_dir
in $ac_dummy; do
1270 test -z "$ac_dir" && ac_dir
=.
1271 if test -f $ac_dir/$ac_word; then
1272 ac_cv_prog_RANLIB
="ranlib"
1277 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1280 RANLIB
="$ac_cv_prog_RANLIB"
1281 if test -n "$RANLIB"; then
1282 echo "$ac_t""$RANLIB" 1>&6
1284 echo "$ac_t""no" 1>&6
1287 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1288 echo "configure:1289: checking for ANSI C header files" >&5
1289 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 cat > conftest.
$ac_ext <<EOF
1293 #line 1294 "configure"
1294 #include "confdefs.h"
1300 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1301 { (eval echo configure
:1302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1302 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1303 if test -z "$ac_err"; then
1305 ac_cv_header_stdc
=yes
1308 echo "configure: failed program was:" >&5
1309 cat conftest.
$ac_ext >&5
1311 ac_cv_header_stdc
=no
1315 if test $ac_cv_header_stdc = yes; then
1316 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1317 cat > conftest.
$ac_ext <<EOF
1318 #line 1319 "configure"
1319 #include "confdefs.h"
1322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1323 egrep "memchr" >/dev
/null
2>&1; then
1327 ac_cv_header_stdc
=no
1333 if test $ac_cv_header_stdc = yes; then
1334 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1335 cat > conftest.
$ac_ext <<EOF
1336 #line 1337 "configure"
1337 #include "confdefs.h"
1340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1341 egrep "free" >/dev
/null
2>&1; then
1345 ac_cv_header_stdc
=no
1351 if test $ac_cv_header_stdc = yes; then
1352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1353 if test "$cross_compiling" = yes; then
1356 cat > conftest.
$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1360 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1361 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1363 int main () { int i; for (i = 0; i < 256; i++)
1364 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1368 if { (eval echo configure
:1369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1372 echo "configure: failed program was:" >&5
1373 cat conftest.
$ac_ext >&5
1375 ac_cv_header_stdc
=no
1383 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1384 if test $ac_cv_header_stdc = yes; then
1385 cat >> confdefs.h
<<\EOF
1386 #define STDC_HEADERS 1
1391 echo $ac_n "checking for working const""... $ac_c" 1>&6
1392 echo "configure:1393: checking for working const" >&5
1393 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 cat > conftest.
$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1402 /* Ultrix mips cc rejects this. */
1403 typedef int charset[2]; const charset x;
1404 /* SunOS 4.1.1 cc rejects this. */
1405 char const *const *ccp;
1407 /* NEC SVR4.0.2 mips cc rejects this. */
1408 struct point {int x, y;};
1409 static struct point const zero = {0,0};
1410 /* AIX XL C 1.02.0.0 rejects this.
1411 It does not let you subtract one const X* pointer from another in an arm
1412 of an if-expression whose if-part is not a constant expression */
1413 const char *g = "string";
1414 ccp = &g + (g ? g-g : 0);
1415 /* HPUX 7.0 cc rejects these. */
1418 ccp = (char const *const *) p;
1419 { /* SCO 3.2v4 cc rejects this. */
1421 char const *s = 0 ? (char *) 0 : (char const *) 0;
1425 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1427 const int *foo = &x[0];
1430 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1431 typedef const int *iptr;
1435 { /* AIX XL C 1.02.0.0 rejects this saying
1436 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1437 struct s { int j; const int *ap[3]; };
1438 struct s *b; b->j = 5;
1440 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1446 if { (eval echo configure
:1447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1450 echo "configure: failed program was:" >&5
1451 cat conftest.
$ac_ext >&5
1458 echo "$ac_t""$ac_cv_c_const" 1>&6
1459 if test $ac_cv_c_const = no
; then
1460 cat >> confdefs.h
<<\EOF
1466 echo $ac_n "checking for inline""... $ac_c" 1>&6
1467 echo "configure:1468: checking for inline" >&5
1468 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1472 for ac_kw
in inline __inline__ __inline
; do
1473 cat > conftest.
$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1481 if { (eval echo configure
:1482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1483 ac_cv_c_inline
=$ac_kw; break
1485 echo "configure: failed program was:" >&5
1486 cat conftest.
$ac_ext >&5
1493 echo "$ac_t""$ac_cv_c_inline" 1>&6
1494 case "$ac_cv_c_inline" in
1496 no
) cat >> confdefs.h
<<\EOF
1500 *) cat >> confdefs.h
<<EOF
1501 #define inline $ac_cv_c_inline
1506 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1507 echo "configure:1508: checking for off_t" >&5
1508 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 cat > conftest.
$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1514 #include <sys/types.h>
1520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1521 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1523 ac_cv_type_off_t
=yes
1531 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1532 if test $ac_cv_type_off_t = no
; then
1533 cat >> confdefs.h
<<\EOF
1539 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1540 echo "configure:1541: checking for size_t" >&5
1541 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 cat > conftest.
$ac_ext <<EOF
1545 #line 1546 "configure"
1546 #include "confdefs.h"
1547 #include <sys/types.h>
1553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1554 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1556 ac_cv_type_size_t
=yes
1559 ac_cv_type_size_t
=no
1564 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1565 if test $ac_cv_type_size_t = no
; then
1566 cat >> confdefs.h
<<\EOF
1567 #define size_t unsigned
1572 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1573 # for constant arguments. Useless!
1574 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1575 echo "configure:1576: checking for working alloca.h" >&5
1576 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1577 echo $ac_n "(cached) $ac_c" 1>&6
1579 cat > conftest.
$ac_ext <<EOF
1580 #line 1581 "configure"
1581 #include "confdefs.h"
1584 char *p = alloca(2 * sizeof(int));
1587 if { (eval echo configure
:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1589 ac_cv_header_alloca_h
=yes
1591 echo "configure: failed program was:" >&5
1592 cat conftest.
$ac_ext >&5
1594 ac_cv_header_alloca_h
=no
1599 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1600 if test $ac_cv_header_alloca_h = yes; then
1601 cat >> confdefs.h
<<\EOF
1602 #define HAVE_ALLOCA_H 1
1607 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1608 echo "configure:1609: checking for alloca" >&5
1609 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1612 cat > conftest.
$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1617 # define alloca __builtin_alloca
1620 # include <malloc.h>
1621 # define alloca _alloca
1624 # include <alloca.h>
1629 # ifndef alloca /* predefined by HP cc +Olibcalls */
1638 char *p = (char *) alloca(1);
1641 if { (eval echo configure
:1642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1643 ac_cv_func_alloca_works
=yes
1645 echo "configure: failed program was:" >&5
1646 cat conftest.
$ac_ext >&5
1648 ac_cv_func_alloca_works
=no
1653 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1654 if test $ac_cv_func_alloca_works = yes; then
1655 cat >> confdefs.h
<<\EOF
1656 #define HAVE_ALLOCA 1
1661 if test $ac_cv_func_alloca_works = no
; then
1662 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1663 # that cause trouble. Some versions do not even contain alloca or
1664 # contain a buggy version. If you still want to use their alloca,
1665 # use ar to extract alloca.o from them instead of compiling alloca.c.
1666 ALLOCA
=alloca.
${ac_objext}
1667 cat >> confdefs.h
<<\EOF
1672 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1673 echo "configure:1674: checking whether alloca needs Cray hooks" >&5
1674 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 cat > conftest.
$ac_ext <<EOF
1678 #line 1679 "configure"
1679 #include "confdefs.h"
1680 #if defined(CRAY) && ! defined(CRAY2)
1687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1688 egrep "webecray" >/dev
/null
2>&1; then
1699 echo "$ac_t""$ac_cv_os_cray" 1>&6
1700 if test $ac_cv_os_cray = yes; then
1701 for ac_func
in _getb67 GETB67 getb67
; do
1702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1703 echo "configure:1704: checking for $ac_func" >&5
1704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1705 echo $ac_n "(cached) $ac_c" 1>&6
1707 cat > conftest.
$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1710 /* System header to define __stub macros and hopefully few prototypes,
1711 which can conflict with char $ac_func(); below. */
1713 /* Override any gcc2 internal prototype to avoid an error. */
1714 /* We use char because int might match the return type of a gcc2
1715 builtin and then its argument prototype would still apply. */
1720 /* The GNU C library defines this for functions which it implements
1721 to always fail with ENOSYS. Some functions are actually named
1722 something starting with __ and the normal name is an alias. */
1723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1731 if { (eval echo configure
:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1733 eval "ac_cv_func_$ac_func=yes"
1735 echo "configure: failed program was:" >&5
1736 cat conftest.
$ac_ext >&5
1738 eval "ac_cv_func_$ac_func=no"
1743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1744 echo "$ac_t""yes" 1>&6
1745 cat >> confdefs.h
<<EOF
1746 #define CRAY_STACKSEG_END $ac_func
1751 echo "$ac_t""no" 1>&6
1757 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1758 echo "configure:1759: checking stack direction for C alloca" >&5
1759 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1762 if test "$cross_compiling" = yes; then
1763 ac_cv_c_stack_direction
=0
1765 cat > conftest.
$ac_ext <<EOF
1766 #line 1767 "configure"
1767 #include "confdefs.h"
1768 find_stack_direction ()
1770 static char *addr = 0;
1775 return find_stack_direction ();
1778 return (&dummy > addr) ? 1 : -1;
1782 exit (find_stack_direction() < 0);
1785 if { (eval echo configure
:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1787 ac_cv_c_stack_direction
=1
1789 echo "configure: failed program was:" >&5
1790 cat conftest.
$ac_ext >&5
1792 ac_cv_c_stack_direction
=-1
1799 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1800 cat >> confdefs.h
<<EOF
1801 #define STACK_DIRECTION $ac_cv_c_stack_direction
1806 for ac_hdr
in unistd.h
1808 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1810 echo "configure:1811: checking for $ac_hdr" >&5
1811 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 cat > conftest.
$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1819 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1820 { (eval echo configure
:1821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1821 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1822 if test -z "$ac_err"; then
1824 eval "ac_cv_header_$ac_safe=yes"
1827 echo "configure: failed program was:" >&5
1828 cat conftest.
$ac_ext >&5
1830 eval "ac_cv_header_$ac_safe=no"
1834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1835 echo "$ac_t""yes" 1>&6
1836 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1837 cat >> confdefs.h
<<EOF
1838 #define $ac_tr_hdr 1
1842 echo "$ac_t""no" 1>&6
1846 for ac_func
in getpagesize
1848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_func" >&5
1850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 cat > conftest.
$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1856 /* System header to define __stub macros and hopefully few prototypes,
1857 which can conflict with char $ac_func(); below. */
1859 /* Override any gcc2 internal prototype to avoid an error. */
1860 /* We use char because int might match the return type of a gcc2
1861 builtin and then its argument prototype would still apply. */
1866 /* The GNU C library defines this for functions which it implements
1867 to always fail with ENOSYS. Some functions are actually named
1868 something starting with __ and the normal name is an alias. */
1869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1877 if { (eval echo configure
:1878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1879 eval "ac_cv_func_$ac_func=yes"
1881 echo "configure: failed program was:" >&5
1882 cat conftest.
$ac_ext >&5
1884 eval "ac_cv_func_$ac_func=no"
1889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1890 echo "$ac_t""yes" 1>&6
1891 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1892 cat >> confdefs.h
<<EOF
1893 #define $ac_tr_func 1
1897 echo "$ac_t""no" 1>&6
1901 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1902 echo "configure:1903: checking for working mmap" >&5
1903 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1906 if test "$cross_compiling" = yes; then
1907 ac_cv_func_mmap_fixed_mapped
=no
1909 cat > conftest.
$ac_ext <<EOF
1910 #line 1911 "configure"
1911 #include "confdefs.h"
1913 /* Thanks to Mike Haertel and Jim Avera for this test.
1914 Here is a matrix of mmap possibilities:
1915 mmap private not fixed
1916 mmap private fixed at somewhere currently unmapped
1917 mmap private fixed at somewhere already mapped
1918 mmap shared not fixed
1919 mmap shared fixed at somewhere currently unmapped
1920 mmap shared fixed at somewhere already mapped
1921 For private mappings, we should verify that changes cannot be read()
1922 back from the file, nor mmap's back from the file at a different
1923 address. (There have been systems where private was not correctly
1924 implemented like the infamous i386 svr4.0, and systems where the
1925 VM page cache was not coherent with the filesystem buffer cache
1926 like early versions of FreeBSD and possibly contemporary NetBSD.)
1927 For shared mappings, we should conversely verify that changes get
1928 propogated back to all the places they're supposed to be.
1930 Grep wants private fixed already mapped.
1931 The main things grep needs to know about mmap are:
1932 * does it exist and is it safe to write into the mmap'd area
1933 * how to use it (BSD variants) */
1934 #include <sys/types.h>
1936 #include <sys/mman.h>
1938 /* This mess was copied from the GNU getpagesize.h. */
1939 #ifndef HAVE_GETPAGESIZE
1940 # ifdef HAVE_UNISTD_H
1941 # include <unistd.h>
1944 /* Assume that all systems that can run configure have sys/param.h. */
1945 # ifndef HAVE_SYS_PARAM_H
1946 # define HAVE_SYS_PARAM_H 1
1949 # ifdef _SC_PAGESIZE
1950 # define getpagesize() sysconf(_SC_PAGESIZE)
1951 # else /* no _SC_PAGESIZE */
1952 # ifdef HAVE_SYS_PARAM_H
1953 # include <sys/param.h>
1954 # ifdef EXEC_PAGESIZE
1955 # define getpagesize() EXEC_PAGESIZE
1956 # else /* no EXEC_PAGESIZE */
1958 # define getpagesize() NBPG * CLSIZE
1961 # endif /* no CLSIZE */
1962 # else /* no NBPG */
1964 # define getpagesize() NBPC
1965 # else /* no NBPC */
1967 # define getpagesize() PAGESIZE
1968 # endif /* PAGESIZE */
1969 # endif /* no NBPC */
1970 # endif /* no NBPG */
1971 # endif /* no EXEC_PAGESIZE */
1972 # else /* no HAVE_SYS_PARAM_H */
1973 # define getpagesize() 8192 /* punt totally */
1974 # endif /* no HAVE_SYS_PARAM_H */
1975 # endif /* no _SC_PAGESIZE */
1977 #endif /* no HAVE_GETPAGESIZE */
1980 extern "C" { void *malloc(unsigned); }
1988 char *data, *data2, *data3;
1992 pagesize = getpagesize();
1995 * First, make a file with some known garbage in it.
1997 data = malloc(pagesize);
2000 for (i = 0; i < pagesize; ++i)
2001 *(data + i) = rand();
2003 fd = creat("conftestmmap", 0600);
2006 if (write(fd, data, pagesize) != pagesize)
2011 * Next, try to mmap the file at a fixed address which
2012 * already has something else allocated at it. If we can,
2013 * also make sure that we see the same garbage.
2015 fd = open("conftestmmap", O_RDWR);
2018 data2 = malloc(2 * pagesize);
2021 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2022 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2023 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2025 for (i = 0; i < pagesize; ++i)
2026 if (*(data + i) != *(data2 + i))
2030 * Finally, make sure that changes to the mapped area
2031 * do not percolate back to the file as seen by read().
2032 * (This is a bug on some variants of i386 svr4.0.)
2034 for (i = 0; i < pagesize; ++i)
2035 *(data2 + i) = *(data2 + i) + 1;
2036 data3 = malloc(pagesize);
2039 if (read(fd, data3, pagesize) != pagesize)
2041 for (i = 0; i < pagesize; ++i)
2042 if (*(data + i) != *(data3 + i))
2045 unlink("conftestmmap");
2050 if { (eval echo configure
:2051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2052 ac_cv_func_mmap_fixed_mapped
=yes
2054 echo "configure: failed program was:" >&5
2055 cat conftest.
$ac_ext >&5
2057 ac_cv_func_mmap_fixed_mapped
=no
2064 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2065 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2066 cat >> confdefs.h
<<\EOF
2073 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2074 unistd.h values.h sys
/param.h
2076 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2078 echo "configure:2079: checking for $ac_hdr" >&5
2079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2080 echo $ac_n "(cached) $ac_c" 1>&6
2082 cat > conftest.
$ac_ext <<EOF
2083 #line 2084 "configure"
2084 #include "confdefs.h"
2087 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2088 { (eval echo configure
:2089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2089 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2090 if test -z "$ac_err"; then
2092 eval "ac_cv_header_$ac_safe=yes"
2095 echo "configure: failed program was:" >&5
2096 cat conftest.
$ac_ext >&5
2098 eval "ac_cv_header_$ac_safe=no"
2102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2103 echo "$ac_t""yes" 1>&6
2104 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2105 cat >> confdefs.h
<<EOF
2106 #define $ac_tr_hdr 1
2110 echo "$ac_t""no" 1>&6
2114 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2115 __argz_count __argz_stringify __argz_next
2117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2118 echo "configure:2119: checking for $ac_func" >&5
2119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2122 cat > conftest.
$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2125 /* System header to define __stub macros and hopefully few prototypes,
2126 which can conflict with char $ac_func(); below. */
2128 /* Override any gcc2 internal prototype to avoid an error. */
2129 /* We use char because int might match the return type of a gcc2
2130 builtin and then its argument prototype would still apply. */
2135 /* The GNU C library defines this for functions which it implements
2136 to always fail with ENOSYS. Some functions are actually named
2137 something starting with __ and the normal name is an alias. */
2138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2146 if { (eval echo configure
:2147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2148 eval "ac_cv_func_$ac_func=yes"
2150 echo "configure: failed program was:" >&5
2151 cat conftest.
$ac_ext >&5
2153 eval "ac_cv_func_$ac_func=no"
2158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2159 echo "$ac_t""yes" 1>&6
2160 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2161 cat >> confdefs.h
<<EOF
2162 #define $ac_tr_func 1
2166 echo "$ac_t""no" 1>&6
2171 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2172 for ac_func
in stpcpy
2174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2175 echo "configure:2176: checking for $ac_func" >&5
2176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2179 cat > conftest.
$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2182 /* System header to define __stub macros and hopefully few prototypes,
2183 which can conflict with char $ac_func(); below. */
2185 /* Override any gcc2 internal prototype to avoid an error. */
2186 /* We use char because int might match the return type of a gcc2
2187 builtin and then its argument prototype would still apply. */
2192 /* The GNU C library defines this for functions which it implements
2193 to always fail with ENOSYS. Some functions are actually named
2194 something starting with __ and the normal name is an alias. */
2195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2203 if { (eval echo configure
:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2205 eval "ac_cv_func_$ac_func=yes"
2207 echo "configure: failed program was:" >&5
2208 cat conftest.
$ac_ext >&5
2210 eval "ac_cv_func_$ac_func=no"
2215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2216 echo "$ac_t""yes" 1>&6
2217 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2218 cat >> confdefs.h
<<EOF
2219 #define $ac_tr_func 1
2223 echo "$ac_t""no" 1>&6
2228 if test "${ac_cv_func_stpcpy}" = "yes"; then
2229 cat >> confdefs.h
<<\EOF
2230 #define HAVE_STPCPY 1
2235 if test $ac_cv_header_locale_h = yes; then
2236 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2237 echo "configure:2238: checking for LC_MESSAGES" >&5
2238 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2241 cat > conftest.
$ac_ext <<EOF
2242 #line 2243 "configure"
2243 #include "confdefs.h"
2249 if { (eval echo configure
:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2251 am_cv_val_LC_MESSAGES
=yes
2253 echo "configure: failed program was:" >&5
2254 cat conftest.
$ac_ext >&5
2256 am_cv_val_LC_MESSAGES
=no
2261 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2262 if test $am_cv_val_LC_MESSAGES = yes; then
2263 cat >> confdefs.h
<<\EOF
2264 #define HAVE_LC_MESSAGES 1
2269 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2270 echo "configure:2271: checking whether NLS is requested" >&5
2271 # Check whether --enable-nls or --disable-nls was given.
2272 if test "${enable_nls+set}" = set; then
2273 enableval
="$enable_nls"
2279 echo "$ac_t""$USE_NLS" 1>&6
2282 USE_INCLUDED_LIBINTL
=no
2284 if test "$USE_NLS" = "yes"; then
2285 cat >> confdefs.h
<<\EOF
2286 #define ENABLE_NLS 1
2289 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2290 echo "configure:2291: checking whether included gettext is requested" >&5
2291 # Check whether --with-included-gettext or --without-included-gettext was given.
2292 if test "${with_included_gettext+set}" = set; then
2293 withval
="$with_included_gettext"
2294 nls_cv_force_use_gnu_gettext
=$withval
2296 nls_cv_force_use_gnu_gettext
=no
2299 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2301 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2302 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2304 nls_cv_header_libgt
=
2307 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2308 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2309 echo "configure:2310: checking for libintl.h" >&5
2310 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2311 echo $ac_n "(cached) $ac_c" 1>&6
2313 cat > conftest.
$ac_ext <<EOF
2314 #line 2315 "configure"
2315 #include "confdefs.h"
2316 #include <libintl.h>
2318 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2319 { (eval echo configure
:2320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2320 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2321 if test -z "$ac_err"; then
2323 eval "ac_cv_header_$ac_safe=yes"
2326 echo "configure: failed program was:" >&5
2327 cat conftest.
$ac_ext >&5
2329 eval "ac_cv_header_$ac_safe=no"
2333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2334 echo "$ac_t""yes" 1>&6
2335 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2336 echo "configure:2337: checking for gettext in libc" >&5
2337 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2340 cat > conftest.
$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2343 #include <libintl.h>
2345 return (int) gettext ("")
2348 if { (eval echo configure
:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2350 gt_cv_func_gettext_libc
=yes
2352 echo "configure: failed program was:" >&5
2353 cat conftest.
$ac_ext >&5
2355 gt_cv_func_gettext_libc
=no
2360 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2362 if test "$gt_cv_func_gettext_libc" != "yes"; then
2363 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2364 echo "configure:2365: checking for bindtextdomain in -lintl" >&5
2365 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2369 ac_save_LIBS
="$LIBS"
2371 cat > conftest.
$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 /* Override any gcc2 internal prototype to avoid an error. */
2375 /* We use char because int might match the return type of a gcc2
2376 builtin and then its argument prototype would still apply. */
2377 char bindtextdomain();
2383 if { (eval echo configure
:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2385 eval "ac_cv_lib_$ac_lib_var=yes"
2387 echo "configure: failed program was:" >&5
2388 cat conftest.
$ac_ext >&5
2390 eval "ac_cv_lib_$ac_lib_var=no"
2393 LIBS
="$ac_save_LIBS"
2396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2397 echo "$ac_t""yes" 1>&6
2398 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2399 echo "configure:2400: checking for gettext in libintl" >&5
2400 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2403 cat > conftest.
$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2408 return (int) gettext ("")
2411 if { (eval echo configure
:2412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2413 gt_cv_func_gettext_libintl
=yes
2415 echo "configure: failed program was:" >&5
2416 cat conftest.
$ac_ext >&5
2418 gt_cv_func_gettext_libintl
=no
2423 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2425 echo "$ac_t""no" 1>&6
2430 if test "$gt_cv_func_gettext_libc" = "yes" \
2431 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2432 cat >> confdefs.h
<<\EOF
2433 #define HAVE_GETTEXT 1
2436 # Extract the first word of "msgfmt", so it can be a program name with args.
2437 set dummy msgfmt
; ac_word
=$2
2438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2439 echo "configure:2440: checking for $ac_word" >&5
2440 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2445 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2448 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2449 for ac_dir
in $PATH; do
2450 test -z "$ac_dir" && ac_dir
=.
2451 if test -f $ac_dir/$ac_word; then
2452 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2453 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2459 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2463 MSGFMT
="$ac_cv_path_MSGFMT"
2464 if test -n "$MSGFMT"; then
2465 echo "$ac_t""$MSGFMT" 1>&6
2467 echo "$ac_t""no" 1>&6
2469 if test "$MSGFMT" != "no"; then
2470 for ac_func
in dcgettext
2472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2473 echo "configure:2474: checking for $ac_func" >&5
2474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 cat > conftest.
$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2480 /* System header to define __stub macros and hopefully few prototypes,
2481 which can conflict with char $ac_func(); below. */
2483 /* Override any gcc2 internal prototype to avoid an error. */
2484 /* We use char because int might match the return type of a gcc2
2485 builtin and then its argument prototype would still apply. */
2490 /* The GNU C library defines this for functions which it implements
2491 to always fail with ENOSYS. Some functions are actually named
2492 something starting with __ and the normal name is an alias. */
2493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2501 if { (eval echo configure
:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2503 eval "ac_cv_func_$ac_func=yes"
2505 echo "configure: failed program was:" >&5
2506 cat conftest.
$ac_ext >&5
2508 eval "ac_cv_func_$ac_func=no"
2513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2514 echo "$ac_t""yes" 1>&6
2515 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2516 cat >> confdefs.h
<<EOF
2517 #define $ac_tr_func 1
2521 echo "$ac_t""no" 1>&6
2525 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2526 set dummy gmsgfmt
; ac_word
=$2
2527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2528 echo "configure:2529: checking for $ac_word" >&5
2529 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2534 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2537 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2540 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2542 for ac_dir
in $ac_dummy; do
2543 test -z "$ac_dir" && ac_dir
=.
2544 if test -f $ac_dir/$ac_word; then
2545 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2550 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2554 GMSGFMT
="$ac_cv_path_GMSGFMT"
2555 if test -n "$GMSGFMT"; then
2556 echo "$ac_t""$GMSGFMT" 1>&6
2558 echo "$ac_t""no" 1>&6
2561 # Extract the first word of "xgettext", so it can be a program name with args.
2562 set dummy xgettext
; ac_word
=$2
2563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2564 echo "configure:2565: checking for $ac_word" >&5
2565 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2570 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2573 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2574 for ac_dir
in $PATH; do
2575 test -z "$ac_dir" && ac_dir
=.
2576 if test -f $ac_dir/$ac_word; then
2577 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2578 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2584 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2588 XGETTEXT
="$ac_cv_path_XGETTEXT"
2589 if test -n "$XGETTEXT"; then
2590 echo "$ac_t""$XGETTEXT" 1>&6
2592 echo "$ac_t""no" 1>&6
2595 cat > conftest.
$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2600 extern int _nl_msg_cat_cntr;
2601 return _nl_msg_cat_cntr
2604 if { (eval echo configure
:2605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2609 echo "configure: failed program was:" >&5
2610 cat conftest.
$ac_ext >&5
2621 echo "$ac_t""no" 1>&6
2626 if test "$CATOBJEXT" = "NONE"; then
2627 nls_cv_use_gnu_gettext
=yes
2631 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2632 INTLOBJS
="\$(GETTOBJS)"
2633 # Extract the first word of "msgfmt", so it can be a program name with args.
2634 set dummy msgfmt
; ac_word
=$2
2635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2636 echo "configure:2637: checking for $ac_word" >&5
2637 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2642 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2645 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2646 for ac_dir
in $PATH; do
2647 test -z "$ac_dir" && ac_dir
=.
2648 if test -f $ac_dir/$ac_word; then
2649 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2650 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2656 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2660 MSGFMT
="$ac_cv_path_MSGFMT"
2661 if test -n "$MSGFMT"; then
2662 echo "$ac_t""$MSGFMT" 1>&6
2664 echo "$ac_t""no" 1>&6
2667 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2668 set dummy gmsgfmt
; ac_word
=$2
2669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2670 echo "configure:2671: checking for $ac_word" >&5
2671 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2676 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2679 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2682 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2684 for ac_dir
in $ac_dummy; do
2685 test -z "$ac_dir" && ac_dir
=.
2686 if test -f $ac_dir/$ac_word; then
2687 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2692 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2696 GMSGFMT
="$ac_cv_path_GMSGFMT"
2697 if test -n "$GMSGFMT"; then
2698 echo "$ac_t""$GMSGFMT" 1>&6
2700 echo "$ac_t""no" 1>&6
2703 # Extract the first word of "xgettext", so it can be a program name with args.
2704 set dummy xgettext
; ac_word
=$2
2705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2706 echo "configure:2707: checking for $ac_word" >&5
2707 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2712 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2715 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2716 for ac_dir
in $PATH; do
2717 test -z "$ac_dir" && ac_dir
=.
2718 if test -f $ac_dir/$ac_word; then
2719 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2720 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2726 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2730 XGETTEXT
="$ac_cv_path_XGETTEXT"
2731 if test -n "$XGETTEXT"; then
2732 echo "$ac_t""$XGETTEXT" 1>&6
2734 echo "$ac_t""no" 1>&6
2738 USE_INCLUDED_LIBINTL
=yes
2742 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2744 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2745 nls_cv_header_intl
=libintl.h
2746 nls_cv_header_libgt
=libgettext.h
2749 if test "$XGETTEXT" != ":"; then
2750 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2753 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2758 # We need to process the po/ directory.
2762 nls_cv_header_intl
=libintl.h
2763 nls_cv_header_libgt
=libgettext.h
2766 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2767 # because some of the sources are only built for this goal.
2768 if test "$PACKAGE" = gettext; then
2770 USE_INCLUDED_LIBINTL
=yes
2773 for lang
in $ALL_LINGUAS; do
2774 GMOFILES
="$GMOFILES $lang.gmo"
2775 POFILES
="$POFILES $lang.po"
2791 if test "x$CATOBJEXT" != "x"; then
2792 if test "x$ALL_LINGUAS" = "x"; then
2795 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2796 echo "configure:2797: checking for catalogs to be installed" >&5
2798 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2799 case "$ALL_LINGUAS" in
2800 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2803 LINGUAS
=$NEW_LINGUAS
2804 echo "$ac_t""$LINGUAS" 1>&6
2807 if test -n "$LINGUAS"; then
2808 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2812 if test $ac_cv_header_locale_h = yes; then
2813 INCLUDE_LOCALE_H
="#include <locale.h>"
2816 /* The system does not provide the header <locale.h>. Take care yourself. */"
2820 if test -f $srcdir/po2tbl.
sed.
in; then
2821 if test "$CATOBJEXT" = ".cat"; then
2822 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2823 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2824 echo "configure:2825: checking for linux/version.h" >&5
2825 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2828 cat > conftest.
$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2831 #include <linux/version.h>
2833 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2834 { (eval echo configure
:2835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2835 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2836 if test -z "$ac_err"; then
2838 eval "ac_cv_header_$ac_safe=yes"
2841 echo "configure: failed program was:" >&5
2842 cat conftest.
$ac_ext >&5
2844 eval "ac_cv_header_$ac_safe=no"
2848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2849 echo "$ac_t""yes" 1>&6
2852 echo "$ac_t""no" 1>&6
2857 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2859 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2860 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2863 if test "$PACKAGE" = "gettext"; then
2873 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2879 if test -f $srcdir/po
/POTFILES.
in; then
2880 test -d po || mkdir po
2881 if test "x$srcdir" != "x."; then
2882 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2883 posrcprefix
="$srcdir/"
2885 posrcprefix
="../$srcdir/"
2891 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2892 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2895 cat >> confdefs.h
<<\EOF
2896 #define PACKAGE "gdb"
2913 SUBDIRS
="doc testsuite nlm"
2914 configdirs
="doc testsuite"
2916 # Check whether --enable-multi-ice or --disable-multi-ice was given.
2917 if test "${enable_multi_ice+set}" = set; then
2918 enableval
="$enable_multi_ice"
2919 case "${enableval}" in
2920 yes ) enable_multi_ice
="yes" ;;
2921 no
) enable_multi_ice
="no" ;;
2922 *) { echo "configure: error: Bad value for --enable-multi-ice: ${enableval}" 1>&2; exit 1; } ;;
2928 if test "${enable_multi_ice}" = "yes"; then
2929 configdirs
="${configdirs} multi-ice"
2933 .
${srcdir}/configure.
host
2935 .
${srcdir}/configure.tgt
2937 targ
=${target} ; .
${srcdir}/..
/bfd
/config.bfd
2941 .
${srcdir}/..
/bfd
/config.bfd
2943 targ_archs
=`echo ${targ_archs} | sed -e 's/ .*//;'`
2945 if test x
"${targ_archs}" != x
; then
2946 cat >> confdefs.h
<<EOF
2947 #define DEFAULT_BFD_ARCH ${targ_archs}
2951 if test x
"${targ_defvec}" != x
; then
2952 cat >> confdefs.h
<<EOF
2953 #define DEFAULT_BFD_VEC ${targ_defvec}
2958 if test "$program_transform_name" = s
,x
,x
,; then
2959 program_transform_name
=
2961 # Double any \ or $. echo might interpret backslashes.
2962 cat <<\EOF_SED
> conftestsed
2963 s
,\\,\\\\,g
; s
,\$
,$$
,g
2965 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2968 test "$program_prefix" != NONE
&&
2969 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2970 # Use a double $ so make ignores it.
2971 test "$program_suffix" != NONE
&&
2972 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2974 # sed with no file args requires a program.
2975 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2978 # --------------------- #
2979 # Checks for programs. #
2980 # --------------------- #
2982 for ac_prog
in mawk gawk nawk
awk
2984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy
$ac_prog; ac_word
=$2
2986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2987 echo "configure:2988: checking for $ac_word" >&5
2988 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 if test -n "$AWK"; then
2992 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2994 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2996 for ac_dir
in $ac_dummy; do
2997 test -z "$ac_dir" && ac_dir
=.
2998 if test -f $ac_dir/$ac_word; then
2999 ac_cv_prog_AWK
="$ac_prog"
3006 AWK
="$ac_cv_prog_AWK"
3007 if test -n "$AWK"; then
3008 echo "$ac_t""$AWK" 1>&6
3010 echo "$ac_t""no" 1>&6
3013 test -n "$AWK" && break
3016 # Find a good install program. We prefer a C program (faster),
3017 # so one script is as good as another. But avoid the broken or
3018 # incompatible versions:
3019 # SysV /etc/install, /usr/sbin/install
3020 # SunOS /usr/etc/install
3021 # IRIX /sbin/install
3023 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3024 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3025 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3026 # ./install, which can be erroneously created by make from ./install.sh.
3027 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3028 echo "configure:3029: checking for a BSD compatible install" >&5
3029 if test -z "$INSTALL"; then
3030 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3033 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3034 for ac_dir
in $PATH; do
3035 # Account for people who put trailing slashes in PATH elements.
3037 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3039 # OSF1 and SCO ODT 3.0 have their own names for install.
3040 # Don't use installbsd from OSF since it installs stuff as root
3042 for ac_prog
in ginstall scoinst
install; do
3043 if test -f $ac_dir/$ac_prog; then
3044 if test $ac_prog = install &&
3045 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3046 # AIX install. It has an incompatible calling convention.
3049 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3060 if test "${ac_cv_path_install+set}" = set; then
3061 INSTALL
="$ac_cv_path_install"
3063 # As a last resort, use the slow shell script. We don't cache a
3064 # path for INSTALL within a source directory, because that will
3065 # break other packages using the cache if that directory is
3066 # removed, or if the path is relative.
3067 INSTALL
="$ac_install_sh"
3070 echo "$ac_t""$INSTALL" 1>&6
3072 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3073 # It thinks the first close brace ends the variable substitution.
3074 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3076 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3078 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3080 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3081 echo "configure:3082: checking whether ln -s works" >&5
3082 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3083 echo $ac_n "(cached) $ac_c" 1>&6
3086 if ln -s X conftestdata
2>/dev
/null
3089 ac_cv_prog_LN_S
="ln -s"
3094 LN_S
="$ac_cv_prog_LN_S"
3095 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3096 echo "$ac_t""yes" 1>&6
3098 echo "$ac_t""no" 1>&6
3101 # Extract the first word of "ranlib", so it can be a program name with args.
3102 set dummy ranlib
; ac_word
=$2
3103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3104 echo "configure:3105: checking for $ac_word" >&5
3105 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 if test -n "$RANLIB"; then
3109 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3111 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3113 for ac_dir
in $ac_dummy; do
3114 test -z "$ac_dir" && ac_dir
=.
3115 if test -f $ac_dir/$ac_word; then
3116 ac_cv_prog_RANLIB
="ranlib"
3121 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3124 RANLIB
="$ac_cv_prog_RANLIB"
3125 if test -n "$RANLIB"; then
3126 echo "$ac_t""$RANLIB" 1>&6
3128 echo "$ac_t""no" 1>&6
3131 for ac_prog
in 'bison -y' byacc
3133 # Extract the first word of "$ac_prog", so it can be a program name with args.
3134 set dummy
$ac_prog; ac_word
=$2
3135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3136 echo "configure:3137: checking for $ac_word" >&5
3137 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 if test -n "$YACC"; then
3141 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3143 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3145 for ac_dir
in $ac_dummy; do
3146 test -z "$ac_dir" && ac_dir
=.
3147 if test -f $ac_dir/$ac_word; then
3148 ac_cv_prog_YACC
="$ac_prog"
3155 YACC
="$ac_cv_prog_YACC"
3156 if test -n "$YACC"; then
3157 echo "$ac_t""$YACC" 1>&6
3159 echo "$ac_t""no" 1>&6
3162 test -n "$YACC" && break
3164 test -n "$YACC" || YACC
="yacc"
3167 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3168 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3170 echo "configure:3171: checking for $ac_word" >&5
3171 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3174 if test -n "$AR"; then
3175 ac_cv_prog_AR
="$AR" # Let the user override the test.
3177 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3179 for ac_dir
in $ac_dummy; do
3180 test -z "$ac_dir" && ac_dir
=.
3181 if test -f $ac_dir/$ac_word; then
3182 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3187 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3191 if test -n "$AR"; then
3192 echo "$ac_t""$AR" 1>&6
3194 echo "$ac_t""no" 1>&6
3199 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3200 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3202 echo "configure:3203: checking for $ac_word" >&5
3203 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3204 echo $ac_n "(cached) $ac_c" 1>&6
3206 if test -n "$DLLTOOL"; then
3207 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3209 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3211 for ac_dir
in $ac_dummy; do
3212 test -z "$ac_dir" && ac_dir
=.
3213 if test -f $ac_dir/$ac_word; then
3214 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3219 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3222 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3223 if test -n "$DLLTOOL"; then
3224 echo "$ac_t""$DLLTOOL" 1>&6
3226 echo "$ac_t""no" 1>&6
3231 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3232 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3234 echo "configure:3235: checking for $ac_word" >&5
3235 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 if test -n "$WINDRES"; then
3239 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3241 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3243 for ac_dir
in $ac_dummy; do
3244 test -z "$ac_dir" && ac_dir
=.
3245 if test -f $ac_dir/$ac_word; then
3246 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3251 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3254 WINDRES
="$ac_cv_prog_WINDRES"
3255 if test -n "$WINDRES"; then
3256 echo "$ac_t""$WINDRES" 1>&6
3258 echo "$ac_t""no" 1>&6
3264 # Needed for GNU/Hurd.
3265 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3266 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3267 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3268 echo "configure:3269: checking for $ac_word" >&5
3269 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3272 if test -n "$MIG"; then
3273 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3275 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3277 for ac_dir
in $ac_dummy; do
3278 test -z "$ac_dir" && ac_dir
=.
3279 if test -f $ac_dir/$ac_word; then
3280 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3285 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3288 MIG
="$ac_cv_prog_MIG"
3289 if test -n "$MIG"; then
3290 echo "$ac_t""$MIG" 1>&6
3292 echo "$ac_t""no" 1>&6
3298 # ---------------------- #
3299 # Checks for libraries. #
3300 # ---------------------- #
3302 # We might need to link with -lm; most simulators need it.
3303 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3304 echo "configure:3305: checking for main in -lm" >&5
3305 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3309 ac_save_LIBS
="$LIBS"
3311 cat > conftest.
$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3319 if { (eval echo configure
:3320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3321 eval "ac_cv_lib_$ac_lib_var=yes"
3323 echo "configure: failed program was:" >&5
3324 cat conftest.
$ac_ext >&5
3326 eval "ac_cv_lib_$ac_lib_var=no"
3329 LIBS
="$ac_save_LIBS"
3332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3333 echo "$ac_t""yes" 1>&6
3334 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3335 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3336 cat >> confdefs.h
<<EOF
3337 #define $ac_tr_lib 1
3343 echo "$ac_t""no" 1>&6
3347 # We need to link with -lw to get `wctype' on Solaris before Solaris
3348 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
3349 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
3350 # is known to have this problem). Therefore we avoid libw if we can.
3351 echo $ac_n "checking for wctype""... $ac_c" 1>&6
3352 echo "configure:3353: checking for wctype" >&5
3353 if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 cat > conftest.
$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3359 /* System header to define __stub macros and hopefully few prototypes,
3360 which can conflict with char wctype(); below. */
3362 /* Override any gcc2 internal prototype to avoid an error. */
3363 /* We use char because int might match the return type of a gcc2
3364 builtin and then its argument prototype would still apply. */
3369 /* The GNU C library defines this for functions which it implements
3370 to always fail with ENOSYS. Some functions are actually named
3371 something starting with __ and the normal name is an alias. */
3372 #if defined (__stub_wctype) || defined (__stub___wctype)
3380 if { (eval echo configure
:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3382 eval "ac_cv_func_wctype=yes"
3384 echo "configure: failed program was:" >&5
3385 cat conftest.
$ac_ext >&5
3387 eval "ac_cv_func_wctype=no"
3392 if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
3393 echo "$ac_t""yes" 1>&6
3396 echo "$ac_t""no" 1>&6
3397 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3398 echo "configure:3399: checking for wctype in -lw" >&5
3399 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3403 ac_save_LIBS
="$LIBS"
3405 cat > conftest.
$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3408 /* Override any gcc2 internal prototype to avoid an error. */
3409 /* We use char because int might match the return type of a gcc2
3410 builtin and then its argument prototype would still apply. */
3417 if { (eval echo configure
:3418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3419 eval "ac_cv_lib_$ac_lib_var=yes"
3421 echo "configure: failed program was:" >&5
3422 cat conftest.
$ac_ext >&5
3424 eval "ac_cv_lib_$ac_lib_var=no"
3427 LIBS
="$ac_save_LIBS"
3430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3431 echo "$ac_t""yes" 1>&6
3432 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3433 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3434 cat >> confdefs.h
<<EOF
3435 #define $ac_tr_lib 1
3441 echo "$ac_t""no" 1>&6
3447 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
3449 echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
3450 echo "configure:3451: checking for library containing socketpair" >&5
3451 if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
3452 echo $ac_n "(cached) $ac_c" 1>&6
3454 ac_func_search_save_LIBS
="$LIBS"
3455 ac_cv_search_socketpair
="no"
3456 cat > conftest.
$ac_ext <<EOF
3457 #line 3458 "configure"
3458 #include "confdefs.h"
3459 /* Override any gcc2 internal prototype to avoid an error. */
3460 /* We use char because int might match the return type of a gcc2
3461 builtin and then its argument prototype would still apply. */
3468 if { (eval echo configure
:3469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3470 ac_cv_search_socketpair
="none required"
3472 echo "configure: failed program was:" >&5
3473 cat conftest.
$ac_ext >&5
3476 test "$ac_cv_search_socketpair" = "no" && for i
in socket
; do
3477 LIBS
="-l$i $ac_func_search_save_LIBS"
3478 cat > conftest.
$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3481 /* Override any gcc2 internal prototype to avoid an error. */
3482 /* We use char because int might match the return type of a gcc2
3483 builtin and then its argument prototype would still apply. */
3490 if { (eval echo configure
:3491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3492 ac_cv_search_socketpair
="-l$i"
3495 echo "configure: failed program was:" >&5
3496 cat conftest.
$ac_ext >&5
3500 LIBS
="$ac_func_search_save_LIBS"
3503 echo "$ac_t""$ac_cv_search_socketpair" 1>&6
3504 if test "$ac_cv_search_socketpair" != "no"; then
3505 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
3511 # ------------------------- #
3512 # Checks for header files. #
3513 # ------------------------- #
3516 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
3518 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3519 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3520 echo "configure:3521: checking for $ac_hdr that defines DIR" >&5
3521 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3522 echo $ac_n "(cached) $ac_c" 1>&6
3524 cat > conftest.
$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3527 #include <sys/types.h>
3533 if { (eval echo configure
:3534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3535 eval "ac_cv_header_dirent_$ac_safe=yes"
3537 echo "configure: failed program was:" >&5
3538 cat conftest.
$ac_ext >&5
3540 eval "ac_cv_header_dirent_$ac_safe=no"
3544 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3545 echo "$ac_t""yes" 1>&6
3546 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3547 cat >> confdefs.h
<<EOF
3548 #define $ac_tr_hdr 1
3550 ac_header_dirent
=$ac_hdr; break
3552 echo "$ac_t""no" 1>&6
3555 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3556 if test $ac_header_dirent = dirent.h
; then
3557 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3558 echo "configure:3559: checking for opendir in -ldir" >&5
3559 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3560 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3561 echo $ac_n "(cached) $ac_c" 1>&6
3563 ac_save_LIBS
="$LIBS"
3565 cat > conftest.
$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3568 /* Override any gcc2 internal prototype to avoid an error. */
3569 /* We use char because int might match the return type of a gcc2
3570 builtin and then its argument prototype would still apply. */
3577 if { (eval echo configure
:3578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3579 eval "ac_cv_lib_$ac_lib_var=yes"
3581 echo "configure: failed program was:" >&5
3582 cat conftest.
$ac_ext >&5
3584 eval "ac_cv_lib_$ac_lib_var=no"
3587 LIBS
="$ac_save_LIBS"
3590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3591 echo "$ac_t""yes" 1>&6
3594 echo "$ac_t""no" 1>&6
3598 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3599 echo "configure:3600: checking for opendir in -lx" >&5
3600 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3604 ac_save_LIBS
="$LIBS"
3606 cat > conftest.
$ac_ext <<EOF
3607 #line 3608 "configure"
3608 #include "confdefs.h"
3609 /* Override any gcc2 internal prototype to avoid an error. */
3610 /* We use char because int might match the return type of a gcc2
3611 builtin and then its argument prototype would still apply. */
3618 if { (eval echo configure
:3619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3620 eval "ac_cv_lib_$ac_lib_var=yes"
3622 echo "configure: failed program was:" >&5
3623 cat conftest.
$ac_ext >&5
3625 eval "ac_cv_lib_$ac_lib_var=no"
3628 LIBS
="$ac_save_LIBS"
3631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3632 echo "$ac_t""yes" 1>&6
3635 echo "$ac_t""no" 1>&6
3640 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3641 echo "configure:3642: checking whether stat file-mode macros are broken" >&5
3642 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 cat > conftest.
$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3648 #include <sys/types.h>
3649 #include <sys/stat.h>
3651 #if defined(S_ISBLK) && defined(S_IFDIR)
3652 # if S_ISBLK (S_IFDIR)
3657 #if defined(S_ISBLK) && defined(S_IFCHR)
3658 # if S_ISBLK (S_IFCHR)
3663 #if defined(S_ISLNK) && defined(S_IFREG)
3664 # if S_ISLNK (S_IFREG)
3669 #if defined(S_ISSOCK) && defined(S_IFREG)
3670 # if S_ISSOCK (S_IFREG)
3676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3677 egrep "You lose" >/dev
/null
2>&1; then
3679 ac_cv_header_stat_broken
=yes
3682 ac_cv_header_stat_broken
=no
3688 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3689 if test $ac_cv_header_stat_broken = yes; then
3690 cat >> confdefs.h
<<\EOF
3691 #define STAT_MACROS_BROKEN 1
3696 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3697 echo "configure:3698: checking for ANSI C header files" >&5
3698 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3699 echo $ac_n "(cached) $ac_c" 1>&6
3701 cat > conftest.
$ac_ext <<EOF
3702 #line 3703 "configure"
3703 #include "confdefs.h"
3709 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3710 { (eval echo configure
:3711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3711 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3712 if test -z "$ac_err"; then
3714 ac_cv_header_stdc
=yes
3717 echo "configure: failed program was:" >&5
3718 cat conftest.
$ac_ext >&5
3720 ac_cv_header_stdc
=no
3724 if test $ac_cv_header_stdc = yes; then
3725 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3726 cat > conftest.
$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3732 egrep "memchr" >/dev
/null
2>&1; then
3736 ac_cv_header_stdc
=no
3742 if test $ac_cv_header_stdc = yes; then
3743 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3744 cat > conftest.
$ac_ext <<EOF
3745 #line 3746 "configure"
3746 #include "confdefs.h"
3749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3750 egrep "free" >/dev
/null
2>&1; then
3754 ac_cv_header_stdc
=no
3760 if test $ac_cv_header_stdc = yes; then
3761 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3762 if test "$cross_compiling" = yes; then
3765 cat > conftest.
$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3769 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3770 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3771 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3772 int main () { int i; for (i = 0; i < 256; i++)
3773 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3777 if { (eval echo configure
:3778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3781 echo "configure: failed program was:" >&5
3782 cat conftest.
$ac_ext >&5
3784 ac_cv_header_stdc
=no
3792 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3793 if test $ac_cv_header_stdc = yes; then
3794 cat >> confdefs.h
<<\EOF
3795 #define STDC_HEADERS 1
3800 for ac_hdr
in link.h
3802 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3803 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3804 echo "configure:3805: checking for $ac_hdr" >&5
3805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3806 echo $ac_n "(cached) $ac_c" 1>&6
3808 cat > conftest.
$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3813 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3814 { (eval echo configure
:3815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3815 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3816 if test -z "$ac_err"; then
3818 eval "ac_cv_header_$ac_safe=yes"
3821 echo "configure: failed program was:" >&5
3822 cat conftest.
$ac_ext >&5
3824 eval "ac_cv_header_$ac_safe=no"
3828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3829 echo "$ac_t""yes" 1>&6
3830 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3831 cat >> confdefs.h
<<EOF
3832 #define $ac_tr_hdr 1
3836 echo "$ac_t""no" 1>&6
3840 for ac_hdr
in nlist.h
3842 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3843 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3844 echo "configure:3845: checking for $ac_hdr" >&5
3845 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 cat > conftest.
$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3853 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3854 { (eval echo configure
:3855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3855 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3856 if test -z "$ac_err"; then
3858 eval "ac_cv_header_$ac_safe=yes"
3861 echo "configure: failed program was:" >&5
3862 cat conftest.
$ac_ext >&5
3864 eval "ac_cv_header_$ac_safe=no"
3868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3869 echo "$ac_t""yes" 1>&6
3870 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3871 cat >> confdefs.h
<<EOF
3872 #define $ac_tr_hdr 1
3876 echo "$ac_t""no" 1>&6
3880 for ac_hdr
in poll.h sys
/poll.h
3882 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3883 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3884 echo "configure:3885: checking for $ac_hdr" >&5
3885 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3888 cat > conftest.
$ac_ext <<EOF
3889 #line 3890 "configure"
3890 #include "confdefs.h"
3893 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3894 { (eval echo configure
:3895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3895 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3896 if test -z "$ac_err"; then
3898 eval "ac_cv_header_$ac_safe=yes"
3901 echo "configure: failed program was:" >&5
3902 cat conftest.
$ac_ext >&5
3904 eval "ac_cv_header_$ac_safe=no"
3908 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3909 echo "$ac_t""yes" 1>&6
3910 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3911 cat >> confdefs.h
<<EOF
3912 #define $ac_tr_hdr 1
3916 echo "$ac_t""no" 1>&6
3920 for ac_hdr
in proc_service.h thread_db.h
3922 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3923 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3924 echo "configure:3925: checking for $ac_hdr" >&5
3925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3928 cat > conftest.
$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3933 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3934 { (eval echo configure
:3935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3935 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3936 if test -z "$ac_err"; then
3938 eval "ac_cv_header_$ac_safe=yes"
3941 echo "configure: failed program was:" >&5
3942 cat conftest.
$ac_ext >&5
3944 eval "ac_cv_header_$ac_safe=no"
3948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3949 echo "$ac_t""yes" 1>&6
3950 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3951 cat >> confdefs.h
<<EOF
3952 #define $ac_tr_hdr 1
3956 echo "$ac_t""no" 1>&6
3960 for ac_hdr
in stddef.h
3962 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3963 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3964 echo "configure:3965: checking for $ac_hdr" >&5
3965 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3968 cat > conftest.
$ac_ext <<EOF
3969 #line 3970 "configure"
3970 #include "confdefs.h"
3973 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3974 { (eval echo configure
:3975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3975 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3976 if test -z "$ac_err"; then
3978 eval "ac_cv_header_$ac_safe=yes"
3981 echo "configure: failed program was:" >&5
3982 cat conftest.
$ac_ext >&5
3984 eval "ac_cv_header_$ac_safe=no"
3988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3989 echo "$ac_t""yes" 1>&6
3990 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3991 cat >> confdefs.h
<<EOF
3992 #define $ac_tr_hdr 1
3996 echo "$ac_t""no" 1>&6
4000 for ac_hdr
in stdlib.h
4002 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4003 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4004 echo "configure:4005: checking for $ac_hdr" >&5
4005 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4006 echo $ac_n "(cached) $ac_c" 1>&6
4008 cat > conftest.
$ac_ext <<EOF
4009 #line 4010 "configure"
4010 #include "confdefs.h"
4013 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4014 { (eval echo configure
:4015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4015 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4016 if test -z "$ac_err"; then
4018 eval "ac_cv_header_$ac_safe=yes"
4021 echo "configure: failed program was:" >&5
4022 cat conftest.
$ac_ext >&5
4024 eval "ac_cv_header_$ac_safe=no"
4028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4029 echo "$ac_t""yes" 1>&6
4030 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4031 cat >> confdefs.h
<<EOF
4032 #define $ac_tr_hdr 1
4036 echo "$ac_t""no" 1>&6
4040 for ac_hdr
in stdint.h
4042 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4043 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4044 echo "configure:4045: checking for $ac_hdr" >&5
4045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4046 echo $ac_n "(cached) $ac_c" 1>&6
4048 cat > conftest.
$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4053 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4054 { (eval echo configure
:4055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4055 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4056 if test -z "$ac_err"; then
4058 eval "ac_cv_header_$ac_safe=yes"
4061 echo "configure: failed program was:" >&5
4062 cat conftest.
$ac_ext >&5
4064 eval "ac_cv_header_$ac_safe=no"
4068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4069 echo "$ac_t""yes" 1>&6
4070 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4071 cat >> confdefs.h
<<EOF
4072 #define $ac_tr_hdr 1
4076 echo "$ac_t""no" 1>&6
4080 for ac_hdr
in string.h memory.h
strings.h
4082 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4083 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4084 echo "configure:4085: checking for $ac_hdr" >&5
4085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4088 cat > conftest.
$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4093 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4094 { (eval echo configure
:4095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4095 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4096 if test -z "$ac_err"; then
4098 eval "ac_cv_header_$ac_safe=yes"
4101 echo "configure: failed program was:" >&5
4102 cat conftest.
$ac_ext >&5
4104 eval "ac_cv_header_$ac_safe=no"
4108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4109 echo "$ac_t""yes" 1>&6
4110 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4111 cat >> confdefs.h
<<EOF
4112 #define $ac_tr_hdr 1
4116 echo "$ac_t""no" 1>&6
4120 for ac_hdr
in sys
/fault.h
4122 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4123 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4124 echo "configure:4125: checking for $ac_hdr" >&5
4125 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4126 echo $ac_n "(cached) $ac_c" 1>&6
4128 cat > conftest.
$ac_ext <<EOF
4129 #line 4130 "configure"
4130 #include "confdefs.h"
4133 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4134 { (eval echo configure
:4135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4135 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4136 if test -z "$ac_err"; then
4138 eval "ac_cv_header_$ac_safe=yes"
4141 echo "configure: failed program was:" >&5
4142 cat conftest.
$ac_ext >&5
4144 eval "ac_cv_header_$ac_safe=no"
4148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4149 echo "$ac_t""yes" 1>&6
4150 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4151 cat >> confdefs.h
<<EOF
4152 #define $ac_tr_hdr 1
4156 echo "$ac_t""no" 1>&6
4160 for ac_hdr
in sys
/file.h
4162 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4163 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4164 echo "configure:4165: checking for $ac_hdr" >&5
4165 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4168 cat > conftest.
$ac_ext <<EOF
4169 #line 4170 "configure"
4170 #include "confdefs.h"
4173 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4174 { (eval echo configure
:4175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4175 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4176 if test -z "$ac_err"; then
4178 eval "ac_cv_header_$ac_safe=yes"
4181 echo "configure: failed program was:" >&5
4182 cat conftest.
$ac_ext >&5
4184 eval "ac_cv_header_$ac_safe=no"
4188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4189 echo "$ac_t""yes" 1>&6
4190 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4191 cat >> confdefs.h
<<EOF
4192 #define $ac_tr_hdr 1
4196 echo "$ac_t""no" 1>&6
4200 for ac_hdr
in sys
/filio.h
4202 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4203 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4204 echo "configure:4205: checking for $ac_hdr" >&5
4205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4206 echo $ac_n "(cached) $ac_c" 1>&6
4208 cat > conftest.
$ac_ext <<EOF
4209 #line 4210 "configure"
4210 #include "confdefs.h"
4213 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4214 { (eval echo configure
:4215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4215 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4216 if test -z "$ac_err"; then
4218 eval "ac_cv_header_$ac_safe=yes"
4221 echo "configure: failed program was:" >&5
4222 cat conftest.
$ac_ext >&5
4224 eval "ac_cv_header_$ac_safe=no"
4228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4229 echo "$ac_t""yes" 1>&6
4230 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4231 cat >> confdefs.h
<<EOF
4232 #define $ac_tr_hdr 1
4236 echo "$ac_t""no" 1>&6
4240 for ac_hdr
in sys
/ioctl.h
4242 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4244 echo "configure:4245: checking for $ac_hdr" >&5
4245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4248 cat > conftest.
$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4253 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4254 { (eval echo configure
:4255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4255 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4256 if test -z "$ac_err"; then
4258 eval "ac_cv_header_$ac_safe=yes"
4261 echo "configure: failed program was:" >&5
4262 cat conftest.
$ac_ext >&5
4264 eval "ac_cv_header_$ac_safe=no"
4268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4269 echo "$ac_t""yes" 1>&6
4270 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4271 cat >> confdefs.h
<<EOF
4272 #define $ac_tr_hdr 1
4276 echo "$ac_t""no" 1>&6
4280 for ac_hdr
in sys
/param.h
4282 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4283 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4284 echo "configure:4285: checking for $ac_hdr" >&5
4285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4286 echo $ac_n "(cached) $ac_c" 1>&6
4288 cat > conftest.
$ac_ext <<EOF
4289 #line 4290 "configure"
4290 #include "confdefs.h"
4293 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4294 { (eval echo configure
:4295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4295 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4296 if test -z "$ac_err"; then
4298 eval "ac_cv_header_$ac_safe=yes"
4301 echo "configure: failed program was:" >&5
4302 cat conftest.
$ac_ext >&5
4304 eval "ac_cv_header_$ac_safe=no"
4308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4309 echo "$ac_t""yes" 1>&6
4310 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4311 cat >> confdefs.h
<<EOF
4312 #define $ac_tr_hdr 1
4316 echo "$ac_t""no" 1>&6
4320 for ac_hdr
in sys
/proc.h
4322 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4324 echo "configure:4325: checking for $ac_hdr" >&5
4325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4328 cat > conftest.
$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4333 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4334 { (eval echo configure
:4335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4335 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4336 if test -z "$ac_err"; then
4338 eval "ac_cv_header_$ac_safe=yes"
4341 echo "configure: failed program was:" >&5
4342 cat conftest.
$ac_ext >&5
4344 eval "ac_cv_header_$ac_safe=no"
4348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4349 echo "$ac_t""yes" 1>&6
4350 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4351 cat >> confdefs.h
<<EOF
4352 #define $ac_tr_hdr 1
4356 echo "$ac_t""no" 1>&6
4360 for ac_hdr
in sys
/procfs.h
4362 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4364 echo "configure:4365: checking for $ac_hdr" >&5
4365 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4368 cat > conftest.
$ac_ext <<EOF
4369 #line 4370 "configure"
4370 #include "confdefs.h"
4373 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4374 { (eval echo configure
:4375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4375 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4376 if test -z "$ac_err"; then
4378 eval "ac_cv_header_$ac_safe=yes"
4381 echo "configure: failed program was:" >&5
4382 cat conftest.
$ac_ext >&5
4384 eval "ac_cv_header_$ac_safe=no"
4388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4389 echo "$ac_t""yes" 1>&6
4390 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4391 cat >> confdefs.h
<<EOF
4392 #define $ac_tr_hdr 1
4396 echo "$ac_t""no" 1>&6
4400 for ac_hdr
in sys
/ptrace.h ptrace.h
4402 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4404 echo "configure:4405: checking for $ac_hdr" >&5
4405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4406 echo $ac_n "(cached) $ac_c" 1>&6
4408 cat > conftest.
$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4413 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4414 { (eval echo configure
:4415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4415 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4416 if test -z "$ac_err"; then
4418 eval "ac_cv_header_$ac_safe=yes"
4421 echo "configure: failed program was:" >&5
4422 cat conftest.
$ac_ext >&5
4424 eval "ac_cv_header_$ac_safe=no"
4428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4429 echo "$ac_t""yes" 1>&6
4430 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4431 cat >> confdefs.h
<<EOF
4432 #define $ac_tr_hdr 1
4436 echo "$ac_t""no" 1>&6
4440 for ac_hdr
in sys
/reg.h sys
/debugreg.h
4442 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4444 echo "configure:4445: checking for $ac_hdr" >&5
4445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4446 echo $ac_n "(cached) $ac_c" 1>&6
4448 cat > conftest.
$ac_ext <<EOF
4449 #line 4450 "configure"
4450 #include "confdefs.h"
4453 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4454 { (eval echo configure
:4455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4455 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4456 if test -z "$ac_err"; then
4458 eval "ac_cv_header_$ac_safe=yes"
4461 echo "configure: failed program was:" >&5
4462 cat conftest.
$ac_ext >&5
4464 eval "ac_cv_header_$ac_safe=no"
4468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4469 echo "$ac_t""yes" 1>&6
4470 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4471 cat >> confdefs.h
<<EOF
4472 #define $ac_tr_hdr 1
4476 echo "$ac_t""no" 1>&6
4480 for ac_hdr
in sys
/select.h
4482 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4484 echo "configure:4485: checking for $ac_hdr" >&5
4485 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4486 echo $ac_n "(cached) $ac_c" 1>&6
4488 cat > conftest.
$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4493 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4494 { (eval echo configure
:4495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4495 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4496 if test -z "$ac_err"; then
4498 eval "ac_cv_header_$ac_safe=yes"
4501 echo "configure: failed program was:" >&5
4502 cat conftest.
$ac_ext >&5
4504 eval "ac_cv_header_$ac_safe=no"
4508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4509 echo "$ac_t""yes" 1>&6
4510 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4511 cat >> confdefs.h
<<EOF
4512 #define $ac_tr_hdr 1
4516 echo "$ac_t""no" 1>&6
4520 for ac_hdr
in sys
/syscall.h
4522 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4524 echo "configure:4525: checking for $ac_hdr" >&5
4525 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4526 echo $ac_n "(cached) $ac_c" 1>&6
4528 cat > conftest.
$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4533 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4534 { (eval echo configure
:4535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4535 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4536 if test -z "$ac_err"; then
4538 eval "ac_cv_header_$ac_safe=yes"
4541 echo "configure: failed program was:" >&5
4542 cat conftest.
$ac_ext >&5
4544 eval "ac_cv_header_$ac_safe=no"
4548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4549 echo "$ac_t""yes" 1>&6
4550 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4551 cat >> confdefs.h
<<EOF
4552 #define $ac_tr_hdr 1
4556 echo "$ac_t""no" 1>&6
4560 for ac_hdr
in sys
/user.h
4562 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4564 echo "configure:4565: checking for $ac_hdr" >&5
4565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6
4568 cat > conftest.
$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4573 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4574 { (eval echo configure
:4575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4575 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4576 if test -z "$ac_err"; then
4578 eval "ac_cv_header_$ac_safe=yes"
4581 echo "configure: failed program was:" >&5
4582 cat conftest.
$ac_ext >&5
4584 eval "ac_cv_header_$ac_safe=no"
4588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4589 echo "$ac_t""yes" 1>&6
4590 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4591 cat >> confdefs.h
<<EOF
4592 #define $ac_tr_hdr 1
4596 echo "$ac_t""no" 1>&6
4600 for ac_hdr
in sys
/wait.h
wait.h
4602 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4604 echo "configure:4605: checking for $ac_hdr" >&5
4605 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4608 cat > conftest.
$ac_ext <<EOF
4609 #line 4610 "configure"
4610 #include "confdefs.h"
4613 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4614 { (eval echo configure
:4615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4615 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4616 if test -z "$ac_err"; then
4618 eval "ac_cv_header_$ac_safe=yes"
4621 echo "configure: failed program was:" >&5
4622 cat conftest.
$ac_ext >&5
4624 eval "ac_cv_header_$ac_safe=no"
4628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4629 echo "$ac_t""yes" 1>&6
4630 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4631 cat >> confdefs.h
<<EOF
4632 #define $ac_tr_hdr 1
4636 echo "$ac_t""no" 1>&6
4640 for ac_hdr
in termios.h termio.h sgtty.h
4642 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4644 echo "configure:4645: checking for $ac_hdr" >&5
4645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4646 echo $ac_n "(cached) $ac_c" 1>&6
4648 cat > conftest.
$ac_ext <<EOF
4649 #line 4650 "configure"
4650 #include "confdefs.h"
4653 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4654 { (eval echo configure
:4655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4655 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4656 if test -z "$ac_err"; then
4658 eval "ac_cv_header_$ac_safe=yes"
4661 echo "configure: failed program was:" >&5
4662 cat conftest.
$ac_ext >&5
4664 eval "ac_cv_header_$ac_safe=no"
4668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4669 echo "$ac_t""yes" 1>&6
4670 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4671 cat >> confdefs.h
<<EOF
4672 #define $ac_tr_hdr 1
4676 echo "$ac_t""no" 1>&6
4680 for ac_hdr
in unistd.h
4682 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4684 echo "configure:4685: checking for $ac_hdr" >&5
4685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4686 echo $ac_n "(cached) $ac_c" 1>&6
4688 cat > conftest.
$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4693 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4694 { (eval echo configure
:4695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4695 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4696 if test -z "$ac_err"; then
4698 eval "ac_cv_header_$ac_safe=yes"
4701 echo "configure: failed program was:" >&5
4702 cat conftest.
$ac_ext >&5
4704 eval "ac_cv_header_$ac_safe=no"
4708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4709 echo "$ac_t""yes" 1>&6
4710 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4711 cat >> confdefs.h
<<EOF
4712 #define $ac_tr_hdr 1
4716 echo "$ac_t""no" 1>&6
4721 # On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
4722 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
4723 # think that we don't have <curses.h> if we're using GCC.
4726 if test "$GCC" = yes; then
4727 cat >> confdefs.h
<<\EOF
4728 #define _MSE_INT_H 1
4733 for ac_hdr
in curses.h ncurses.h term.h
4735 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4737 echo "configure:4738: checking for $ac_hdr" >&5
4738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4741 cat > conftest.
$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4746 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4747 { (eval echo configure
:4748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4748 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4749 if test -z "$ac_err"; then
4751 eval "ac_cv_header_$ac_safe=yes"
4754 echo "configure: failed program was:" >&5
4755 cat conftest.
$ac_ext >&5
4757 eval "ac_cv_header_$ac_safe=no"
4761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4763 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4764 cat >> confdefs.h
<<EOF
4765 #define $ac_tr_hdr 1
4769 echo "$ac_t""no" 1>&6
4774 # FIXME: kettenis/20030102: In most cases we include these
4775 # unconditionally, so what's the point in checking these?
4776 for ac_hdr
in ctype.h
time.h
4778 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4780 echo "configure:4781: checking for $ac_hdr" >&5
4781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4784 cat > conftest.
$ac_ext <<EOF
4785 #line 4786 "configure"
4786 #include "confdefs.h"
4789 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4790 { (eval echo configure
:4791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4791 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4792 if test -z "$ac_err"; then
4794 eval "ac_cv_header_$ac_safe=yes"
4797 echo "configure: failed program was:" >&5
4798 cat conftest.
$ac_ext >&5
4800 eval "ac_cv_header_$ac_safe=no"
4804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4805 echo "$ac_t""yes" 1>&6
4806 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4807 cat >> confdefs.h
<<EOF
4808 #define $ac_tr_hdr 1
4812 echo "$ac_t""no" 1>&6
4817 # ------------------ #
4818 # Checks for types. #
4819 # ------------------ #
4821 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4822 echo "configure:4823: checking return type of signal handlers" >&5
4823 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4824 echo $ac_n "(cached) $ac_c" 1>&6
4826 cat > conftest.
$ac_ext <<EOF
4827 #line 4828 "configure"
4828 #include "confdefs.h"
4829 #include <sys/types.h>
4835 extern "C" void (*signal (int, void (*)(int)))(int);
4837 void (*signal ()) ();
4844 if { (eval echo configure
:4845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4846 ac_cv_type_signal
=void
4848 echo "configure: failed program was:" >&5
4849 cat conftest.
$ac_ext >&5
4851 ac_cv_type_signal
=int
4856 echo "$ac_t""$ac_cv_type_signal" 1>&6
4857 cat >> confdefs.h
<<EOF
4858 #define RETSIGTYPE $ac_cv_type_signal
4863 # ------------------------------------- #
4864 # Checks for compiler characteristics. #
4865 # ------------------------------------- #
4867 echo $ac_n "checking for working const""... $ac_c" 1>&6
4868 echo "configure:4869: checking for working const" >&5
4869 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4872 cat > conftest.
$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4878 /* Ultrix mips cc rejects this. */
4879 typedef int charset[2]; const charset x;
4880 /* SunOS 4.1.1 cc rejects this. */
4881 char const *const *ccp;
4883 /* NEC SVR4.0.2 mips cc rejects this. */
4884 struct point {int x, y;};
4885 static struct point const zero = {0,0};
4886 /* AIX XL C 1.02.0.0 rejects this.
4887 It does not let you subtract one const X* pointer from another in an arm
4888 of an if-expression whose if-part is not a constant expression */
4889 const char *g = "string";
4890 ccp = &g + (g ? g-g : 0);
4891 /* HPUX 7.0 cc rejects these. */
4894 ccp = (char const *const *) p;
4895 { /* SCO 3.2v4 cc rejects this. */
4897 char const *s = 0 ? (char *) 0 : (char const *) 0;
4901 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4903 const int *foo = &x[0];
4906 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4907 typedef const int *iptr;
4911 { /* AIX XL C 1.02.0.0 rejects this saying
4912 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4913 struct s { int j; const int *ap[3]; };
4914 struct s *b; b->j = 5;
4916 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4922 if { (eval echo configure
:4923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4926 echo "configure: failed program was:" >&5
4927 cat conftest.
$ac_ext >&5
4934 echo "$ac_t""$ac_cv_c_const" 1>&6
4935 if test $ac_cv_c_const = no
; then
4936 cat >> confdefs.h
<<\EOF
4942 echo $ac_n "checking for inline""... $ac_c" 1>&6
4943 echo "configure:4944: checking for inline" >&5
4944 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4945 echo $ac_n "(cached) $ac_c" 1>&6
4948 for ac_kw
in inline __inline__ __inline
; do
4949 cat > conftest.
$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4957 if { (eval echo configure
:4958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4959 ac_cv_c_inline
=$ac_kw; break
4961 echo "configure: failed program was:" >&5
4962 cat conftest.
$ac_ext >&5
4969 echo "$ac_t""$ac_cv_c_inline" 1>&6
4970 case "$ac_cv_c_inline" in
4972 no
) cat >> confdefs.h
<<\EOF
4976 *) cat >> confdefs.h
<<EOF
4977 #define inline $ac_cv_c_inline
4983 # ------------------------------ #
4984 # Checks for library functions. #
4985 # ------------------------------ #
4987 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4988 # for constant arguments. Useless!
4989 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4990 echo "configure:4991: checking for working alloca.h" >&5
4991 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4992 echo $ac_n "(cached) $ac_c" 1>&6
4994 cat > conftest.
$ac_ext <<EOF
4995 #line 4996 "configure"
4996 #include "confdefs.h"
4999 char *p = alloca(2 * sizeof(int));
5002 if { (eval echo configure
:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5004 ac_cv_header_alloca_h
=yes
5006 echo "configure: failed program was:" >&5
5007 cat conftest.
$ac_ext >&5
5009 ac_cv_header_alloca_h
=no
5014 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5015 if test $ac_cv_header_alloca_h = yes; then
5016 cat >> confdefs.h
<<\EOF
5017 #define HAVE_ALLOCA_H 1
5022 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5023 echo "configure:5024: checking for alloca" >&5
5024 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5025 echo $ac_n "(cached) $ac_c" 1>&6
5027 cat > conftest.
$ac_ext <<EOF
5028 #line 5029 "configure"
5029 #include "confdefs.h"
5032 # define alloca __builtin_alloca
5035 # include <malloc.h>
5036 # define alloca _alloca
5039 # include <alloca.h>
5044 # ifndef alloca /* predefined by HP cc +Olibcalls */
5053 char *p = (char *) alloca(1);
5056 if { (eval echo configure
:5057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5058 ac_cv_func_alloca_works
=yes
5060 echo "configure: failed program was:" >&5
5061 cat conftest.
$ac_ext >&5
5063 ac_cv_func_alloca_works
=no
5068 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5069 if test $ac_cv_func_alloca_works = yes; then
5070 cat >> confdefs.h
<<\EOF
5071 #define HAVE_ALLOCA 1
5076 if test $ac_cv_func_alloca_works = no
; then
5077 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5078 # that cause trouble. Some versions do not even contain alloca or
5079 # contain a buggy version. If you still want to use their alloca,
5080 # use ar to extract alloca.o from them instead of compiling alloca.c.
5081 ALLOCA
=alloca.
${ac_objext}
5082 cat >> confdefs.h
<<\EOF
5087 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5088 echo "configure:5089: checking whether alloca needs Cray hooks" >&5
5089 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5090 echo $ac_n "(cached) $ac_c" 1>&6
5092 cat > conftest.
$ac_ext <<EOF
5093 #line 5094 "configure"
5094 #include "confdefs.h"
5095 #if defined(CRAY) && ! defined(CRAY2)
5102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5103 egrep "webecray" >/dev
/null
2>&1; then
5114 echo "$ac_t""$ac_cv_os_cray" 1>&6
5115 if test $ac_cv_os_cray = yes; then
5116 for ac_func
in _getb67 GETB67 getb67
; do
5117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5118 echo "configure:5119: checking for $ac_func" >&5
5119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5120 echo $ac_n "(cached) $ac_c" 1>&6
5122 cat > conftest.
$ac_ext <<EOF
5123 #line 5124 "configure"
5124 #include "confdefs.h"
5125 /* System header to define __stub macros and hopefully few prototypes,
5126 which can conflict with char $ac_func(); below. */
5128 /* Override any gcc2 internal prototype to avoid an error. */
5129 /* We use char because int might match the return type of a gcc2
5130 builtin and then its argument prototype would still apply. */
5135 /* The GNU C library defines this for functions which it implements
5136 to always fail with ENOSYS. Some functions are actually named
5137 something starting with __ and the normal name is an alias. */
5138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5146 if { (eval echo configure
:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5148 eval "ac_cv_func_$ac_func=yes"
5150 echo "configure: failed program was:" >&5
5151 cat conftest.
$ac_ext >&5
5153 eval "ac_cv_func_$ac_func=no"
5158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5159 echo "$ac_t""yes" 1>&6
5160 cat >> confdefs.h
<<EOF
5161 #define CRAY_STACKSEG_END $ac_func
5166 echo "$ac_t""no" 1>&6
5172 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5173 echo "configure:5174: checking stack direction for C alloca" >&5
5174 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5175 echo $ac_n "(cached) $ac_c" 1>&6
5177 if test "$cross_compiling" = yes; then
5178 ac_cv_c_stack_direction
=0
5180 cat > conftest.
$ac_ext <<EOF
5181 #line 5182 "configure"
5182 #include "confdefs.h"
5183 find_stack_direction ()
5185 static char *addr = 0;
5190 return find_stack_direction ();
5193 return (&dummy > addr) ? 1 : -1;
5197 exit (find_stack_direction() < 0);
5200 if { (eval echo configure
:5201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5202 ac_cv_c_stack_direction
=1
5204 echo "configure: failed program was:" >&5
5205 cat conftest.
$ac_ext >&5
5207 ac_cv_c_stack_direction
=-1
5214 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5215 cat >> confdefs.h
<<EOF
5216 #define STACK_DIRECTION $ac_cv_c_stack_direction
5221 for ac_hdr
in unistd.h
5223 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5225 echo "configure:5226: checking for $ac_hdr" >&5
5226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5229 cat > conftest.
$ac_ext <<EOF
5230 #line 5231 "configure"
5231 #include "confdefs.h"
5234 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5235 { (eval echo configure
:5236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5236 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5237 if test -z "$ac_err"; then
5239 eval "ac_cv_header_$ac_safe=yes"
5242 echo "configure: failed program was:" >&5
5243 cat conftest.
$ac_ext >&5
5245 eval "ac_cv_header_$ac_safe=no"
5249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5250 echo "$ac_t""yes" 1>&6
5251 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5252 cat >> confdefs.h
<<EOF
5253 #define $ac_tr_hdr 1
5257 echo "$ac_t""no" 1>&6
5261 for ac_func
in getpagesize
5263 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5264 echo "configure:5265: checking for $ac_func" >&5
5265 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5266 echo $ac_n "(cached) $ac_c" 1>&6
5268 cat > conftest.
$ac_ext <<EOF
5269 #line 5270 "configure"
5270 #include "confdefs.h"
5271 /* System header to define __stub macros and hopefully few prototypes,
5272 which can conflict with char $ac_func(); below. */
5274 /* Override any gcc2 internal prototype to avoid an error. */
5275 /* We use char because int might match the return type of a gcc2
5276 builtin and then its argument prototype would still apply. */
5281 /* The GNU C library defines this for functions which it implements
5282 to always fail with ENOSYS. Some functions are actually named
5283 something starting with __ and the normal name is an alias. */
5284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5292 if { (eval echo configure
:5293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5294 eval "ac_cv_func_$ac_func=yes"
5296 echo "configure: failed program was:" >&5
5297 cat conftest.
$ac_ext >&5
5299 eval "ac_cv_func_$ac_func=no"
5304 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5305 echo "$ac_t""yes" 1>&6
5306 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5307 cat >> confdefs.h
<<EOF
5308 #define $ac_tr_func 1
5312 echo "$ac_t""no" 1>&6
5316 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5317 echo "configure:5318: checking for working mmap" >&5
5318 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5319 echo $ac_n "(cached) $ac_c" 1>&6
5321 if test "$cross_compiling" = yes; then
5322 ac_cv_func_mmap_fixed_mapped
=no
5324 cat > conftest.
$ac_ext <<EOF
5325 #line 5326 "configure"
5326 #include "confdefs.h"
5328 /* Thanks to Mike Haertel and Jim Avera for this test.
5329 Here is a matrix of mmap possibilities:
5330 mmap private not fixed
5331 mmap private fixed at somewhere currently unmapped
5332 mmap private fixed at somewhere already mapped
5333 mmap shared not fixed
5334 mmap shared fixed at somewhere currently unmapped
5335 mmap shared fixed at somewhere already mapped
5336 For private mappings, we should verify that changes cannot be read()
5337 back from the file, nor mmap's back from the file at a different
5338 address. (There have been systems where private was not correctly
5339 implemented like the infamous i386 svr4.0, and systems where the
5340 VM page cache was not coherent with the filesystem buffer cache
5341 like early versions of FreeBSD and possibly contemporary NetBSD.)
5342 For shared mappings, we should conversely verify that changes get
5343 propogated back to all the places they're supposed to be.
5345 Grep wants private fixed already mapped.
5346 The main things grep needs to know about mmap are:
5347 * does it exist and is it safe to write into the mmap'd area
5348 * how to use it (BSD variants) */
5349 #include <sys/types.h>
5351 #include <sys/mman.h>
5353 /* This mess was copied from the GNU getpagesize.h. */
5354 #ifndef HAVE_GETPAGESIZE
5355 # ifdef HAVE_UNISTD_H
5356 # include <unistd.h>
5359 /* Assume that all systems that can run configure have sys/param.h. */
5360 # ifndef HAVE_SYS_PARAM_H
5361 # define HAVE_SYS_PARAM_H 1
5364 # ifdef _SC_PAGESIZE
5365 # define getpagesize() sysconf(_SC_PAGESIZE)
5366 # else /* no _SC_PAGESIZE */
5367 # ifdef HAVE_SYS_PARAM_H
5368 # include <sys/param.h>
5369 # ifdef EXEC_PAGESIZE
5370 # define getpagesize() EXEC_PAGESIZE
5371 # else /* no EXEC_PAGESIZE */
5373 # define getpagesize() NBPG * CLSIZE
5376 # endif /* no CLSIZE */
5377 # else /* no NBPG */
5379 # define getpagesize() NBPC
5380 # else /* no NBPC */
5382 # define getpagesize() PAGESIZE
5383 # endif /* PAGESIZE */
5384 # endif /* no NBPC */
5385 # endif /* no NBPG */
5386 # endif /* no EXEC_PAGESIZE */
5387 # else /* no HAVE_SYS_PARAM_H */
5388 # define getpagesize() 8192 /* punt totally */
5389 # endif /* no HAVE_SYS_PARAM_H */
5390 # endif /* no _SC_PAGESIZE */
5392 #endif /* no HAVE_GETPAGESIZE */
5395 extern "C" { void *malloc(unsigned); }
5403 char *data, *data2, *data3;
5407 pagesize = getpagesize();
5410 * First, make a file with some known garbage in it.
5412 data = malloc(pagesize);
5415 for (i = 0; i < pagesize; ++i)
5416 *(data + i) = rand();
5418 fd = creat("conftestmmap", 0600);
5421 if (write(fd, data, pagesize) != pagesize)
5426 * Next, try to mmap the file at a fixed address which
5427 * already has something else allocated at it. If we can,
5428 * also make sure that we see the same garbage.
5430 fd = open("conftestmmap", O_RDWR);
5433 data2 = malloc(2 * pagesize);
5436 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5437 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5438 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5440 for (i = 0; i < pagesize; ++i)
5441 if (*(data + i) != *(data2 + i))
5445 * Finally, make sure that changes to the mapped area
5446 * do not percolate back to the file as seen by read().
5447 * (This is a bug on some variants of i386 svr4.0.)
5449 for (i = 0; i < pagesize; ++i)
5450 *(data2 + i) = *(data2 + i) + 1;
5451 data3 = malloc(pagesize);
5454 if (read(fd, data3, pagesize) != pagesize)
5456 for (i = 0; i < pagesize; ++i)
5457 if (*(data + i) != *(data3 + i))
5460 unlink("conftestmmap");
5465 if { (eval echo configure
:5466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5467 ac_cv_func_mmap_fixed_mapped
=yes
5469 echo "configure: failed program was:" >&5
5470 cat conftest.
$ac_ext >&5
5472 ac_cv_func_mmap_fixed_mapped
=no
5479 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5480 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5481 cat >> confdefs.h
<<\EOF
5487 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5488 echo "configure:5489: checking for pid_t" >&5
5489 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+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"
5495 #include <sys/types.h>
5501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5502 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5504 ac_cv_type_pid_t
=yes
5512 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5513 if test $ac_cv_type_pid_t = no
; then
5514 cat >> confdefs.h
<<\EOF
5520 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
5521 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
5522 echo "configure:5523: checking for vfork.h" >&5
5523 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5524 echo $ac_n "(cached) $ac_c" 1>&6
5526 cat > conftest.
$ac_ext <<EOF
5527 #line 5528 "configure"
5528 #include "confdefs.h"
5531 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5532 { (eval echo configure
:5533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5533 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5534 if test -z "$ac_err"; then
5536 eval "ac_cv_header_$ac_safe=yes"
5539 echo "configure: failed program was:" >&5
5540 cat conftest.
$ac_ext >&5
5542 eval "ac_cv_header_$ac_safe=no"
5546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5547 echo "$ac_t""yes" 1>&6
5548 cat >> confdefs.h
<<\EOF
5549 #define HAVE_VFORK_H 1
5553 echo "$ac_t""no" 1>&6
5556 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
5557 echo "configure:5558: checking for working vfork" >&5
5558 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
5559 echo $ac_n "(cached) $ac_c" 1>&6
5561 if test "$cross_compiling" = yes; then
5562 echo $ac_n "checking for vfork""... $ac_c" 1>&6
5563 echo "configure:5564: checking for vfork" >&5
5564 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
5565 echo $ac_n "(cached) $ac_c" 1>&6
5567 cat > conftest.
$ac_ext <<EOF
5568 #line 5569 "configure"
5569 #include "confdefs.h"
5570 /* System header to define __stub macros and hopefully few prototypes,
5571 which can conflict with char vfork(); below. */
5573 /* Override any gcc2 internal prototype to avoid an error. */
5574 /* We use char because int might match the return type of a gcc2
5575 builtin and then its argument prototype would still apply. */
5580 /* The GNU C library defines this for functions which it implements
5581 to always fail with ENOSYS. Some functions are actually named
5582 something starting with __ and the normal name is an alias. */
5583 #if defined (__stub_vfork) || defined (__stub___vfork)
5591 if { (eval echo configure
:5592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5593 eval "ac_cv_func_vfork=yes"
5595 echo "configure: failed program was:" >&5
5596 cat conftest.
$ac_ext >&5
5598 eval "ac_cv_func_vfork=no"
5603 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
5604 echo "$ac_t""yes" 1>&6
5607 echo "$ac_t""no" 1>&6
5610 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5612 cat > conftest.
$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5615 /* Thanks to Paul Eggert for this test. */
5617 #include <sys/types.h>
5618 #include <sys/stat.h>
5619 #ifdef HAVE_UNISTD_H
5625 /* On some sparc systems, changes by the child to local and incoming
5626 argument registers are propagated back to the parent.
5627 The compiler is told about this with #include <vfork.h>,
5628 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
5629 Test for this by using a static variable whose address
5630 is put into a register that is clobbered by the vfork. */
5633 sparc_address_test (int arg)
5635 sparc_address_test (arg) int arg;
5653 pid_t parent = getpid ();
5656 sparc_address_test ();
5661 /* Here is another test for sparc vfork register problems.
5662 This test uses lots of local variables, at least
5663 as many local variables as main has allocated so far
5664 including compiler temporaries. 4 locals are enough for
5665 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
5666 A buggy compiler should reuse the register of parent
5667 for one of the local variables, since it will think that
5668 parent can't possibly be used any more in this routine.
5669 Assigning to the local variable will thus munge parent
5670 in the parent process. */
5672 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5673 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5674 /* Convince the compiler that p..p7 are live; otherwise, it might
5675 use the same hardware register for all 8 local variables. */
5676 if (p != p1 || p != p2 || p != p3 || p != p4
5677 || p != p5 || p != p6 || p != p7)
5680 /* On some systems (e.g. IRIX 3.3),
5681 vfork doesn't separate parent from child file descriptors.
5682 If the child closes a descriptor before it execs or exits,
5683 this munges the parent's descriptor as well.
5684 Test for this by closing stdout in the child. */
5685 _exit(close(fileno(stdout)) != 0);
5690 while (wait(&status) != child)
5693 /* Was there some problem with vforking? */
5696 /* Did the child fail? (This shouldn't happen.) */
5699 /* Did the vfork/compiler bug occur? */
5700 || parent != getpid()
5702 /* Did the file descriptor bug occur? */
5703 || fstat(fileno(stdout), &st) != 0
5708 if { (eval echo configure
:5709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5710 ac_cv_func_vfork_works
=yes
5712 echo "configure: failed program was:" >&5
5713 cat conftest.
$ac_ext >&5
5715 ac_cv_func_vfork_works
=no
5722 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
5723 if test $ac_cv_func_vfork_works = no
; then
5724 cat >> confdefs.h
<<\EOF
5730 for ac_func
in canonicalize_file_name realpath
5732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5733 echo "configure:5734: checking for $ac_func" >&5
5734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5735 echo $ac_n "(cached) $ac_c" 1>&6
5737 cat > conftest.
$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5740 /* System header to define __stub macros and hopefully few prototypes,
5741 which can conflict with char $ac_func(); below. */
5743 /* Override any gcc2 internal prototype to avoid an error. */
5744 /* We use char because int might match the return type of a gcc2
5745 builtin and then its argument prototype would still apply. */
5750 /* The GNU C library defines this for functions which it implements
5751 to always fail with ENOSYS. Some functions are actually named
5752 something starting with __ and the normal name is an alias. */
5753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5761 if { (eval echo configure
:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5763 eval "ac_cv_func_$ac_func=yes"
5765 echo "configure: failed program was:" >&5
5766 cat conftest.
$ac_ext >&5
5768 eval "ac_cv_func_$ac_func=no"
5773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5774 echo "$ac_t""yes" 1>&6
5775 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5776 cat >> confdefs.h
<<EOF
5777 #define $ac_tr_func 1
5781 echo "$ac_t""no" 1>&6
5787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5788 echo "configure:5789: checking for $ac_func" >&5
5789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5790 echo $ac_n "(cached) $ac_c" 1>&6
5792 cat > conftest.
$ac_ext <<EOF
5793 #line 5794 "configure"
5794 #include "confdefs.h"
5795 /* System header to define __stub macros and hopefully few prototypes,
5796 which can conflict with char $ac_func(); below. */
5798 /* Override any gcc2 internal prototype to avoid an error. */
5799 /* We use char because int might match the return type of a gcc2
5800 builtin and then its argument prototype would still apply. */
5805 /* The GNU C library defines this for functions which it implements
5806 to always fail with ENOSYS. Some functions are actually named
5807 something starting with __ and the normal name is an alias. */
5808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5816 if { (eval echo configure
:5817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5818 eval "ac_cv_func_$ac_func=yes"
5820 echo "configure: failed program was:" >&5
5821 cat conftest.
$ac_ext >&5
5823 eval "ac_cv_func_$ac_func=no"
5828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5829 echo "$ac_t""yes" 1>&6
5830 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5831 cat >> confdefs.h
<<EOF
5832 #define $ac_tr_func 1
5836 echo "$ac_t""no" 1>&6
5842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5843 echo "configure:5844: checking for $ac_func" >&5
5844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5845 echo $ac_n "(cached) $ac_c" 1>&6
5847 cat > conftest.
$ac_ext <<EOF
5848 #line 5849 "configure"
5849 #include "confdefs.h"
5850 /* System header to define __stub macros and hopefully few prototypes,
5851 which can conflict with char $ac_func(); below. */
5853 /* Override any gcc2 internal prototype to avoid an error. */
5854 /* We use char because int might match the return type of a gcc2
5855 builtin and then its argument prototype would still apply. */
5860 /* The GNU C library defines this for functions which it implements
5861 to always fail with ENOSYS. Some functions are actually named
5862 something starting with __ and the normal name is an alias. */
5863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5871 if { (eval echo configure
:5872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5873 eval "ac_cv_func_$ac_func=yes"
5875 echo "configure: failed program was:" >&5
5876 cat conftest.
$ac_ext >&5
5878 eval "ac_cv_func_$ac_func=no"
5883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5884 echo "$ac_t""yes" 1>&6
5885 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5886 cat >> confdefs.h
<<EOF
5887 #define $ac_tr_func 1
5891 echo "$ac_t""no" 1>&6
5895 for ac_func
in setpgid setpgrp
5897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5898 echo "configure:5899: checking for $ac_func" >&5
5899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5900 echo $ac_n "(cached) $ac_c" 1>&6
5902 cat > conftest.
$ac_ext <<EOF
5903 #line 5904 "configure"
5904 #include "confdefs.h"
5905 /* System header to define __stub macros and hopefully few prototypes,
5906 which can conflict with char $ac_func(); below. */
5908 /* Override any gcc2 internal prototype to avoid an error. */
5909 /* We use char because int might match the return type of a gcc2
5910 builtin and then its argument prototype would still apply. */
5915 /* The GNU C library defines this for functions which it implements
5916 to always fail with ENOSYS. Some functions are actually named
5917 something starting with __ and the normal name is an alias. */
5918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5926 if { (eval echo configure
:5927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5928 eval "ac_cv_func_$ac_func=yes"
5930 echo "configure: failed program was:" >&5
5931 cat conftest.
$ac_ext >&5
5933 eval "ac_cv_func_$ac_func=no"
5938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5939 echo "$ac_t""yes" 1>&6
5940 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5941 cat >> confdefs.h
<<EOF
5942 #define $ac_tr_func 1
5946 echo "$ac_t""no" 1>&6
5950 for ac_func
in sigaction sigprocmask
5952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5953 echo "configure:5954: checking for $ac_func" >&5
5954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5955 echo $ac_n "(cached) $ac_c" 1>&6
5957 cat > conftest.
$ac_ext <<EOF
5958 #line 5959 "configure"
5959 #include "confdefs.h"
5960 /* System header to define __stub macros and hopefully few prototypes,
5961 which can conflict with char $ac_func(); below. */
5963 /* Override any gcc2 internal prototype to avoid an error. */
5964 /* We use char because int might match the return type of a gcc2
5965 builtin and then its argument prototype would still apply. */
5970 /* The GNU C library defines this for functions which it implements
5971 to always fail with ENOSYS. Some functions are actually named
5972 something starting with __ and the normal name is an alias. */
5973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5981 if { (eval echo configure
:5982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5983 eval "ac_cv_func_$ac_func=yes"
5985 echo "configure: failed program was:" >&5
5986 cat conftest.
$ac_ext >&5
5988 eval "ac_cv_func_$ac_func=no"
5993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5994 echo "$ac_t""yes" 1>&6
5995 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5996 cat >> confdefs.h
<<EOF
5997 #define $ac_tr_func 1
6001 echo "$ac_t""no" 1>&6
6005 for ac_func
in socketpair
6007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6008 echo "configure:6009: checking for $ac_func" >&5
6009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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"
6015 /* System header to define __stub macros and hopefully few prototypes,
6016 which can conflict with char $ac_func(); below. */
6018 /* Override any gcc2 internal prototype to avoid an error. */
6019 /* We use char because int might match the return type of a gcc2
6020 builtin and then its argument prototype would still apply. */
6025 /* The GNU C library defines this for functions which it implements
6026 to always fail with ENOSYS. Some functions are actually named
6027 something starting with __ and the normal name is an alias. */
6028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6036 if { (eval echo configure
:6037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6038 eval "ac_cv_func_$ac_func=yes"
6040 echo "configure: failed program was:" >&5
6041 cat conftest.
$ac_ext >&5
6043 eval "ac_cv_func_$ac_func=no"
6048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6049 echo "$ac_t""yes" 1>&6
6050 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6051 cat >> confdefs.h
<<EOF
6052 #define $ac_tr_func 1
6056 echo "$ac_t""no" 1>&6
6061 if test "$cross_compiling" = no
; then
6062 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
6063 echo "configure:6064: checking whether setpgrp takes no argument" >&5
6064 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
6065 echo $ac_n "(cached) $ac_c" 1>&6
6067 if test "$cross_compiling" = yes; then
6068 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
6070 cat > conftest.
$ac_ext <<EOF
6071 #line 6072 "configure"
6072 #include "confdefs.h"
6074 #ifdef HAVE_UNISTD_H
6079 * If this system has a BSD-style setpgrp, which takes arguments, exit
6084 if (setpgrp(1,1) == -1)
6091 if { (eval echo configure
:6092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6093 ac_cv_func_setpgrp_void
=no
6095 echo "configure: failed program was:" >&5
6096 cat conftest.
$ac_ext >&5
6098 ac_cv_func_setpgrp_void
=yes
6106 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
6107 if test $ac_cv_func_setpgrp_void = yes; then
6108 cat >> confdefs.h
<<\EOF
6109 #define SETPGRP_VOID 1
6115 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
6116 echo "configure:6117: checking whether setpgrp takes no argument" >&5
6117 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
6118 echo $ac_n "(cached) $ac_c" 1>&6
6120 cat > conftest.
$ac_ext <<EOF
6121 #line 6122 "configure"
6122 #include "confdefs.h"
6128 if (setpgrp(1,1) == -1)
6135 if { (eval echo configure
:6136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6137 ac_cv_func_setpgrp_void
=no
6139 echo "configure: failed program was:" >&5
6140 cat conftest.
$ac_ext >&5
6142 ac_cv_func_setpgrp_void
=yes
6147 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
6148 if test $ac_cv_func_setpgrp_void = yes; then
6149 cat >> confdefs.h
<<\EOF
6150 #define SETPGRP_VOID 1
6156 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
6157 # since sigsetjmp might only be defined as a macro.
6158 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6159 echo "configure:6160: checking for sigsetjmp" >&5
6160 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6163 cat > conftest.
$ac_ext <<EOF
6164 #line 6165 "configure"
6165 #include "confdefs.h"
6170 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6173 if { (eval echo configure
:6174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6175 gdb_cv_func_sigsetjmp
=yes
6177 echo "configure: failed program was:" >&5
6178 cat conftest.
$ac_ext >&5
6180 gdb_cv_func_sigsetjmp
=no
6185 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
6186 if test $gdb_cv_func_sigsetjmp = yes; then
6187 cat >> confdefs.h
<<\EOF
6188 #define HAVE_SIGSETJMP 1
6193 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
6194 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
6195 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
6196 echo "configure:6197: checking for r_fs in struct reg" >&5
6197 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
6198 echo $ac_n "(cached) $ac_c" 1>&6
6200 cat > conftest.
$ac_ext <<EOF
6201 #line 6202 "configure"
6202 #include "confdefs.h"
6203 #include <machine/reg.h>
6205 struct reg r; r.r_fs;
6208 if { (eval echo configure
:6209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6210 gdb_cv_struct_reg_r_fs
=yes
6212 echo "configure: failed program was:" >&5
6213 cat conftest.
$ac_ext >&5
6215 gdb_cv_struct_reg_r_fs
=no
6220 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
6221 if test $gdb_cv_struct_reg_r_fs = yes; then
6222 cat >> confdefs.h
<<\EOF
6223 #define HAVE_STRUCT_REG_R_FS 1
6227 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
6228 echo "configure:6229: checking for r_gs in struct reg" >&5
6229 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
6230 echo $ac_n "(cached) $ac_c" 1>&6
6232 cat > conftest.
$ac_ext <<EOF
6233 #line 6234 "configure"
6234 #include "confdefs.h"
6235 #include <machine/reg.h>
6237 struct reg r; r.r_gs;
6240 if { (eval echo configure
:6241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6242 gdb_cv_struct_reg_r_gs
=yes
6244 echo "configure: failed program was:" >&5
6245 cat conftest.
$ac_ext >&5
6247 gdb_cv_struct_reg_r_gs
=no
6252 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
6253 if test $gdb_cv_struct_reg_r_gs = yes; then
6254 cat >> confdefs.h
<<\EOF
6255 #define HAVE_STRUCT_REG_R_GS 1
6260 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
6261 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
6262 echo "configure:6263: checking for PTRACE_GETREGS" >&5
6263 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
6264 echo $ac_n "(cached) $ac_c" 1>&6
6266 cat > conftest.
$ac_ext <<EOF
6267 #line 6268 "configure"
6268 #include "confdefs.h"
6269 #include <sys/ptrace.h>
6274 if { (eval echo configure
:6275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6276 gdb_cv_have_ptrace_getregs
=yes
6278 echo "configure: failed program was:" >&5
6279 cat conftest.
$ac_ext >&5
6281 gdb_cv_have_ptrace_getregs
=no
6286 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
6287 if test $gdb_cv_have_ptrace_getregs = yes; then
6288 cat >> confdefs.h
<<\EOF
6289 #define HAVE_PTRACE_GETREGS 1
6294 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
6295 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
6296 echo "configure:6297: checking for PTRACE_GETFPXREGS" >&5
6297 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
6298 echo $ac_n "(cached) $ac_c" 1>&6
6300 cat > conftest.
$ac_ext <<EOF
6301 #line 6302 "configure"
6302 #include "confdefs.h"
6303 #include <sys/ptrace.h>
6308 if { (eval echo configure
:6309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6310 gdb_cv_have_ptrace_getfpxregs
=yes
6312 echo "configure: failed program was:" >&5
6313 cat conftest.
$ac_ext >&5
6315 gdb_cv_have_ptrace_getfpxregs
=no
6320 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
6321 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
6322 cat >> confdefs.h
<<\EOF
6323 #define HAVE_PTRACE_GETFPXREGS 1
6328 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
6329 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
6330 echo "configure:6331: checking for PT_GETDBREGS" >&5
6331 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
6332 echo $ac_n "(cached) $ac_c" 1>&6
6334 cat > conftest.
$ac_ext <<EOF
6335 #line 6336 "configure"
6336 #include "confdefs.h"
6337 #include <sys/types.h>
6338 #include <sys/ptrace.h>
6343 if { (eval echo configure
:6344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6345 gdb_cv_have_pt_getdbregs
=yes
6347 echo "configure: failed program was:" >&5
6348 cat conftest.
$ac_ext >&5
6350 gdb_cv_have_pt_getdbregs
=no
6355 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
6356 if test $gdb_cv_have_pt_getdbregs = yes; then
6357 cat >> confdefs.h
<<\EOF
6358 #define HAVE_PT_GETDBREGS 1
6363 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
6364 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
6365 echo "configure:6366: checking for PT_GETXMMREGS" >&5
6366 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
6367 echo $ac_n "(cached) $ac_c" 1>&6
6369 cat > conftest.
$ac_ext <<EOF
6370 #line 6371 "configure"
6371 #include "confdefs.h"
6372 #include <sys/types.h>
6373 #include <sys/ptrace.h>
6378 if { (eval echo configure
:6379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6380 gdb_cv_have_pt_getxmmregs
=yes
6382 echo "configure: failed program was:" >&5
6383 cat conftest.
$ac_ext >&5
6385 gdb_cv_have_pt_getxmmregs
=no
6390 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
6391 if test $gdb_cv_have_pt_getxmmregs = yes; then
6392 cat >> confdefs.h
<<\EOF
6393 #define HAVE_PT_GETXMMREGS 1
6399 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
6400 echo "configure:6401: checking whether malloc must be declared" >&5
6401 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
6402 echo $ac_n "(cached) $ac_c" 1>&6
6404 cat > conftest.
$ac_ext <<EOF
6405 #line 6406 "configure"
6406 #include "confdefs.h"
6409 #ifdef HAVE_STRING_H
6412 #ifdef HAVE_STRINGS_H
6413 #include <strings.h>
6416 #ifdef HAVE_STDLIB_H
6419 #ifdef HAVE_UNISTD_H
6423 char *(*pfn) = (char *(*)) malloc
6426 if { (eval echo configure
:6427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6428 bfd_cv_decl_needed_malloc
=no
6430 echo "configure: failed program was:" >&5
6431 cat conftest.
$ac_ext >&5
6433 bfd_cv_decl_needed_malloc
=yes
6438 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
6439 if test $bfd_cv_decl_needed_malloc = yes; then
6440 cat >> confdefs.h
<<\EOF
6441 #define NEED_DECLARATION_MALLOC 1
6446 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
6447 echo "configure:6448: checking whether realloc must be declared" >&5
6448 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
6449 echo $ac_n "(cached) $ac_c" 1>&6
6451 cat > conftest.
$ac_ext <<EOF
6452 #line 6453 "configure"
6453 #include "confdefs.h"
6456 #ifdef HAVE_STRING_H
6459 #ifdef HAVE_STRINGS_H
6460 #include <strings.h>
6463 #ifdef HAVE_STDLIB_H
6466 #ifdef HAVE_UNISTD_H
6470 char *(*pfn) = (char *(*)) realloc
6473 if { (eval echo configure
:6474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6475 bfd_cv_decl_needed_realloc
=no
6477 echo "configure: failed program was:" >&5
6478 cat conftest.
$ac_ext >&5
6480 bfd_cv_decl_needed_realloc
=yes
6485 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
6486 if test $bfd_cv_decl_needed_realloc = yes; then
6487 cat >> confdefs.h
<<\EOF
6488 #define NEED_DECLARATION_REALLOC 1
6493 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
6494 echo "configure:6495: checking whether free must be declared" >&5
6495 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
6496 echo $ac_n "(cached) $ac_c" 1>&6
6498 cat > conftest.
$ac_ext <<EOF
6499 #line 6500 "configure"
6500 #include "confdefs.h"
6503 #ifdef HAVE_STRING_H
6506 #ifdef HAVE_STRINGS_H
6507 #include <strings.h>
6510 #ifdef HAVE_STDLIB_H
6513 #ifdef HAVE_UNISTD_H
6517 char *(*pfn) = (char *(*)) free
6520 if { (eval echo configure
:6521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6522 bfd_cv_decl_needed_free
=no
6524 echo "configure: failed program was:" >&5
6525 cat conftest.
$ac_ext >&5
6527 bfd_cv_decl_needed_free
=yes
6532 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
6533 if test $bfd_cv_decl_needed_free = yes; then
6534 cat >> confdefs.h
<<\EOF
6535 #define NEED_DECLARATION_FREE 1
6540 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
6541 echo "configure:6542: checking whether strerror must be declared" >&5
6542 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
6543 echo $ac_n "(cached) $ac_c" 1>&6
6545 cat > conftest.
$ac_ext <<EOF
6546 #line 6547 "configure"
6547 #include "confdefs.h"
6550 #ifdef HAVE_STRING_H
6553 #ifdef HAVE_STRINGS_H
6554 #include <strings.h>
6557 #ifdef HAVE_STDLIB_H
6560 #ifdef HAVE_UNISTD_H
6564 char *(*pfn) = (char *(*)) strerror
6567 if { (eval echo configure
:6568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6569 bfd_cv_decl_needed_strerror
=no
6571 echo "configure: failed program was:" >&5
6572 cat conftest.
$ac_ext >&5
6574 bfd_cv_decl_needed_strerror
=yes
6579 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
6580 if test $bfd_cv_decl_needed_strerror = yes; then
6581 cat >> confdefs.h
<<\EOF
6582 #define NEED_DECLARATION_STRERROR 1
6587 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
6588 echo "configure:6589: checking whether strdup must be declared" >&5
6589 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
6590 echo $ac_n "(cached) $ac_c" 1>&6
6592 cat > conftest.
$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6597 #ifdef HAVE_STRING_H
6600 #ifdef HAVE_STRINGS_H
6601 #include <strings.h>
6604 #ifdef HAVE_STDLIB_H
6607 #ifdef HAVE_UNISTD_H
6611 char *(*pfn) = (char *(*)) strdup
6614 if { (eval echo configure
:6615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6616 bfd_cv_decl_needed_strdup
=no
6618 echo "configure: failed program was:" >&5
6619 cat conftest.
$ac_ext >&5
6621 bfd_cv_decl_needed_strdup
=yes
6626 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
6627 if test $bfd_cv_decl_needed_strdup = yes; then
6628 cat >> confdefs.h
<<\EOF
6629 #define NEED_DECLARATION_STRDUP 1
6634 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
6635 echo "configure:6636: checking whether strstr must be declared" >&5
6636 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
6637 echo $ac_n "(cached) $ac_c" 1>&6
6639 cat > conftest.
$ac_ext <<EOF
6640 #line 6641 "configure"
6641 #include "confdefs.h"
6644 #ifdef HAVE_STRING_H
6647 #ifdef HAVE_STRINGS_H
6648 #include <strings.h>
6651 #ifdef HAVE_STDLIB_H
6654 #ifdef HAVE_UNISTD_H
6658 char *(*pfn) = (char *(*)) strstr
6661 if { (eval echo configure
:6662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6663 bfd_cv_decl_needed_strstr
=no
6665 echo "configure: failed program was:" >&5
6666 cat conftest.
$ac_ext >&5
6668 bfd_cv_decl_needed_strstr
=yes
6673 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
6674 if test $bfd_cv_decl_needed_strstr = yes; then
6675 cat >> confdefs.h
<<\EOF
6676 #define NEED_DECLARATION_STRSTR 1
6681 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
6682 echo "configure:6683: checking whether canonicalize_file_name must be declared" >&5
6683 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
6684 echo $ac_n "(cached) $ac_c" 1>&6
6686 cat > conftest.
$ac_ext <<EOF
6687 #line 6688 "configure"
6688 #include "confdefs.h"
6691 #ifdef HAVE_STRING_H
6694 #ifdef HAVE_STRINGS_H
6695 #include <strings.h>
6698 #ifdef HAVE_STDLIB_H
6701 #ifdef HAVE_UNISTD_H
6705 char *(*pfn) = (char *(*)) canonicalize_file_name
6708 if { (eval echo configure
:6709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6710 bfd_cv_decl_needed_canonicalize_file_name
=no
6712 echo "configure: failed program was:" >&5
6713 cat conftest.
$ac_ext >&5
6715 bfd_cv_decl_needed_canonicalize_file_name
=yes
6720 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
6721 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
6722 cat >> confdefs.h
<<\EOF
6723 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
6729 # The following save_state_t checkery is only necessary for HPUX
6730 # versions earlier than 10.20. When those fade from memory, this
6731 # could be expunged. --jsm 1999-03-22
6733 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
6734 echo "configure:6735: checking for HPUX save_state structure" >&5
6735 cat > conftest.
$ac_ext <<EOF
6736 #line 6737 "configure"
6737 #include "confdefs.h"
6738 #include <machine/save_state.h>
6740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6741 egrep "save_state_t" >/dev
/null
2>&1; then
6743 gdb_cv_hpux_savestate
=yes
6746 gdb_cv_hpux_savestate
=no
6750 cat > conftest.
$ac_ext <<EOF
6751 #line 6752 "configure"
6752 #include "confdefs.h"
6753 #include <machine/save_state.h>
6755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6756 egrep "ss_wide" >/dev
/null
2>&1; then
6758 gdb_cv_hpux_sswide
=yes
6761 gdb_cv_hpux_sswide
=no
6765 if test $gdb_cv_hpux_savestate = yes
6767 cat >> confdefs.h
<<\EOF
6768 #define HAVE_STRUCT_SAVE_STATE_T 1
6772 if test $gdb_cv_hpux_sswide = yes
6774 cat >> confdefs.h
<<\EOF
6775 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
6779 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
6782 # If we are configured native on GNU/Linux, work around problems with
6784 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
6786 if test "${target}" = "${host}"; then
6789 cat >> confdefs.h
<<\EOF
6790 #define START_INFERIOR_TRAPS_EXPECTED 2
6793 cat >> confdefs.h
<<\EOF
6794 #define sys_quotactl 1
6799 cat >> confdefs.h
<<\EOF
6800 #define NEW_PROC_API 1
6804 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
6805 cat >> confdefs.h
<<\EOF
6806 #define NEW_PROC_API 1
6811 cat >> confdefs.h
<<\EOF
6812 #define NEW_PROC_API 1
6819 if test "$ac_cv_header_sys_procfs_h" = yes; then
6820 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
6821 echo "configure:6822: checking for pstatus_t in sys/procfs.h" >&5
6822 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
6823 echo $ac_n "(cached) $ac_c" 1>&6
6825 cat > conftest.
$ac_ext <<EOF
6826 #line 6827 "configure"
6827 #include "confdefs.h"
6830 #include <sys/procfs.h>
6835 if { (eval echo configure
:6836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6837 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
6839 echo "configure: failed program was:" >&5
6840 cat conftest.
$ac_ext >&5
6842 bfd_cv_have_sys_procfs_type_pstatus_t
=no
6848 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
6849 cat >> confdefs.h
<<\EOF
6850 #define HAVE_PSTATUS_T 1
6854 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
6856 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
6857 echo "configure:6858: checking for prrun_t in sys/procfs.h" >&5
6858 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6861 cat > conftest.
$ac_ext <<EOF
6862 #line 6863 "configure"
6863 #include "confdefs.h"
6866 #include <sys/procfs.h>
6871 if { (eval echo configure
:6872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6873 bfd_cv_have_sys_procfs_type_prrun_t
=yes
6875 echo "configure: failed program was:" >&5
6876 cat conftest.
$ac_ext >&5
6878 bfd_cv_have_sys_procfs_type_prrun_t
=no
6884 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
6885 cat >> confdefs.h
<<\EOF
6886 #define HAVE_PRRUN_T 1
6890 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
6892 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
6893 echo "configure:6894: checking for gregset_t in sys/procfs.h" >&5
6894 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
6895 echo $ac_n "(cached) $ac_c" 1>&6
6897 cat > conftest.
$ac_ext <<EOF
6898 #line 6899 "configure"
6899 #include "confdefs.h"
6902 #include <sys/procfs.h>
6907 if { (eval echo configure
:6908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6909 bfd_cv_have_sys_procfs_type_gregset_t
=yes
6911 echo "configure: failed program was:" >&5
6912 cat conftest.
$ac_ext >&5
6914 bfd_cv_have_sys_procfs_type_gregset_t
=no
6920 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
6921 cat >> confdefs.h
<<\EOF
6922 #define HAVE_GREGSET_T 1
6926 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
6928 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
6929 echo "configure:6930: checking for fpregset_t in sys/procfs.h" >&5
6930 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
6931 echo $ac_n "(cached) $ac_c" 1>&6
6933 cat > conftest.
$ac_ext <<EOF
6934 #line 6935 "configure"
6935 #include "confdefs.h"
6938 #include <sys/procfs.h>
6943 if { (eval echo configure
:6944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6945 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
6947 echo "configure: failed program was:" >&5
6948 cat conftest.
$ac_ext >&5
6950 bfd_cv_have_sys_procfs_type_fpregset_t
=no
6956 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
6957 cat >> confdefs.h
<<\EOF
6958 #define HAVE_FPREGSET_T 1
6962 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
6964 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
6965 echo "configure:6966: checking for prgregset_t in sys/procfs.h" >&5
6966 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
6967 echo $ac_n "(cached) $ac_c" 1>&6
6969 cat > conftest.
$ac_ext <<EOF
6970 #line 6971 "configure"
6971 #include "confdefs.h"
6974 #include <sys/procfs.h>
6979 if { (eval echo configure
:6980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6981 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
6983 echo "configure: failed program was:" >&5
6984 cat conftest.
$ac_ext >&5
6986 bfd_cv_have_sys_procfs_type_prgregset_t
=no
6992 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
6993 cat >> confdefs.h
<<\EOF
6994 #define HAVE_PRGREGSET_T 1
6998 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
7000 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
7001 echo "configure:7002: checking for prfpregset_t in sys/procfs.h" >&5
7002 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
7003 echo $ac_n "(cached) $ac_c" 1>&6
7005 cat > conftest.
$ac_ext <<EOF
7006 #line 7007 "configure"
7007 #include "confdefs.h"
7010 #include <sys/procfs.h>
7015 if { (eval echo configure
:7016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7017 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
7019 echo "configure: failed program was:" >&5
7020 cat conftest.
$ac_ext >&5
7022 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
7028 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7029 cat >> confdefs.h
<<\EOF
7030 #define HAVE_PRFPREGSET_T 1
7034 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
7036 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
7037 echo "configure:7038: checking for prgregset32_t in sys/procfs.h" >&5
7038 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
7039 echo $ac_n "(cached) $ac_c" 1>&6
7041 cat > conftest.
$ac_ext <<EOF
7042 #line 7043 "configure"
7043 #include "confdefs.h"
7046 #include <sys/procfs.h>
7051 if { (eval echo configure
:7052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7053 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
7055 echo "configure: failed program was:" >&5
7056 cat conftest.
$ac_ext >&5
7058 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
7064 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
7065 cat >> confdefs.h
<<\EOF
7066 #define HAVE_PRGREGSET32_T 1
7070 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
7072 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
7073 echo "configure:7074: checking for prfpregset32_t in sys/procfs.h" >&5
7074 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
7075 echo $ac_n "(cached) $ac_c" 1>&6
7077 cat > conftest.
$ac_ext <<EOF
7078 #line 7079 "configure"
7079 #include "confdefs.h"
7082 #include <sys/procfs.h>
7087 if { (eval echo configure
:7088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7089 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
7091 echo "configure: failed program was:" >&5
7092 cat conftest.
$ac_ext >&5
7094 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
7100 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
7101 cat >> confdefs.h
<<\EOF
7102 #define HAVE_PRFPREGSET32_T 1
7106 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
7108 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
7109 echo "configure:7110: checking for lwpid_t in sys/procfs.h" >&5
7110 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
7111 echo $ac_n "(cached) $ac_c" 1>&6
7113 cat > conftest.
$ac_ext <<EOF
7114 #line 7115 "configure"
7115 #include "confdefs.h"
7118 #include <sys/procfs.h>
7123 if { (eval echo configure
:7124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7125 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
7127 echo "configure: failed program was:" >&5
7128 cat conftest.
$ac_ext >&5
7130 bfd_cv_have_sys_procfs_type_lwpid_t
=no
7136 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
7137 cat >> confdefs.h
<<\EOF
7138 #define HAVE_LWPID_T 1
7142 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
7144 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
7145 echo "configure:7146: checking for psaddr_t in sys/procfs.h" >&5
7146 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
7147 echo $ac_n "(cached) $ac_c" 1>&6
7149 cat > conftest.
$ac_ext <<EOF
7150 #line 7151 "configure"
7151 #include "confdefs.h"
7154 #include <sys/procfs.h>
7159 if { (eval echo configure
:7160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7161 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
7163 echo "configure: failed program was:" >&5
7164 cat conftest.
$ac_ext >&5
7166 bfd_cv_have_sys_procfs_type_psaddr_t
=no
7172 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
7173 cat >> confdefs.h
<<\EOF
7174 #define HAVE_PSADDR_T 1
7178 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
7180 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
7181 echo "configure:7182: checking for prsysent_t in sys/procfs.h" >&5
7182 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
7183 echo $ac_n "(cached) $ac_c" 1>&6
7185 cat > conftest.
$ac_ext <<EOF
7186 #line 7187 "configure"
7187 #include "confdefs.h"
7190 #include <sys/procfs.h>
7195 if { (eval echo configure
:7196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7197 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
7199 echo "configure: failed program was:" >&5
7200 cat conftest.
$ac_ext >&5
7202 bfd_cv_have_sys_procfs_type_prsysent_t
=no
7208 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
7209 cat >> confdefs.h
<<\EOF
7210 #define HAVE_PRSYSENT_T 1
7214 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
7216 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
7217 echo "configure:7218: checking for pr_sigset_t in sys/procfs.h" >&5
7218 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
7219 echo $ac_n "(cached) $ac_c" 1>&6
7221 cat > conftest.
$ac_ext <<EOF
7222 #line 7223 "configure"
7223 #include "confdefs.h"
7226 #include <sys/procfs.h>
7231 if { (eval echo configure
:7232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7233 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
7235 echo "configure: failed program was:" >&5
7236 cat conftest.
$ac_ext >&5
7238 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
7244 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
7245 cat >> confdefs.h
<<\EOF
7246 #define HAVE_PR_SIGSET_T 1
7250 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
7252 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
7253 echo "configure:7254: checking for pr_sigaction64_t in sys/procfs.h" >&5
7254 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
7255 echo $ac_n "(cached) $ac_c" 1>&6
7257 cat > conftest.
$ac_ext <<EOF
7258 #line 7259 "configure"
7259 #include "confdefs.h"
7262 #include <sys/procfs.h>
7264 pr_sigaction64_t avar
7267 if { (eval echo configure
:7268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7269 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
7271 echo "configure: failed program was:" >&5
7272 cat conftest.
$ac_ext >&5
7274 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
7280 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
7281 cat >> confdefs.h
<<\EOF
7282 #define HAVE_PR_SIGACTION64_T 1
7286 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
7288 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
7289 echo "configure:7290: checking for pr_siginfo64_t in sys/procfs.h" >&5
7290 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
7291 echo $ac_n "(cached) $ac_c" 1>&6
7293 cat > conftest.
$ac_ext <<EOF
7294 #line 7295 "configure"
7295 #include "confdefs.h"
7298 #include <sys/procfs.h>
7303 if { (eval echo configure
:7304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7305 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
7307 echo "configure: failed program was:" >&5
7308 cat conftest.
$ac_ext >&5
7310 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
7316 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
7317 cat >> confdefs.h
<<\EOF
7318 #define HAVE_PR_SIGINFO64_T 1
7322 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
7328 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7329 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
7330 echo "configure:7331: checking whether prfpregset_t type is broken" >&5
7331 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
7332 echo $ac_n "(cached) $ac_c" 1>&6
7334 if test "$cross_compiling" = yes; then
7335 gdb_cv_prfpregset_t_broken
=yes
7337 cat > conftest.
$ac_ext <<EOF
7338 #line 7339 "configure"
7339 #include "confdefs.h"
7340 #include <sys/procfs.h>
7343 if (sizeof (prfpregset_t) == sizeof (void *))
7348 if { (eval echo configure
:7349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7350 gdb_cv_prfpregset_t_broken
=no
7352 echo "configure: failed program was:" >&5
7353 cat conftest.
$ac_ext >&5
7355 gdb_cv_prfpregset_t_broken
=yes
7362 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
7363 if test $gdb_cv_prfpregset_t_broken = yes; then
7364 cat >> confdefs.h
<<\EOF
7365 #define PRFPREGSET_T_BROKEN 1
7372 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
7373 echo "configure:7374: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
7374 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
7375 echo $ac_n "(cached) $ac_c" 1>&6
7377 cat > conftest.
$ac_ext <<EOF
7378 #line 7379 "configure"
7379 #include "confdefs.h"
7381 #include <sys/types.h>
7382 #include <sys/procfs.h>
7387 dummy = ioctl(0, PIOCSET, &dummy);
7391 if { (eval echo configure
:7392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7393 gdb_cv_have_procfs_piocset
=yes
7395 echo "configure: failed program was:" >&5
7396 cat conftest.
$ac_ext >&5
7398 gdb_cv_have_procfs_piocset
=no
7403 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
7404 if test $gdb_cv_have_procfs_piocset = yes; then
7405 cat >> confdefs.h
<<\EOF
7406 #define HAVE_PROCFS_PIOCSET 1
7412 if test ${host} = ${target} ; then
7414 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
7415 echo "configure:7416: checking for member l_addr in struct link_map" >&5
7416 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
7417 echo $ac_n "(cached) $ac_c" 1>&6
7419 cat > conftest.
$ac_ext <<EOF
7420 #line 7421 "configure"
7421 #include "confdefs.h"
7424 struct link_map lm; (void) lm.l_addr;
7427 if { (eval echo configure
:7428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7429 gdb_cv_have_struct_link_map_with_l_members
=yes
7431 echo "configure: failed program was:" >&5
7432 cat conftest.
$ac_ext >&5
7434 gdb_cv_have_struct_link_map_with_l_members
=no
7439 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
7440 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
7441 cat >> confdefs.h
<<\EOF
7442 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
7448 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
7449 echo "configure:7450: checking for member lm_addr in struct link_map" >&5
7450 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
7451 echo $ac_n "(cached) $ac_c" 1>&6
7453 cat > conftest.
$ac_ext <<EOF
7454 #line 7455 "configure"
7455 #include "confdefs.h"
7456 #include <sys/types.h>
7459 struct link_map lm; (void) lm.lm_addr;
7462 if { (eval echo configure
:7463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7464 gdb_cv_have_struct_link_map_with_lm_members
=yes
7466 echo "configure: failed program was:" >&5
7467 cat conftest.
$ac_ext >&5
7469 gdb_cv_have_struct_link_map_with_lm_members
=no
7474 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
7475 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
7476 cat >> confdefs.h
<<\EOF
7477 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
7483 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
7484 echo "configure:7485: checking for member som_addr in struct so_map" >&5
7485 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
7486 echo $ac_n "(cached) $ac_c" 1>&6
7488 cat > conftest.
$ac_ext <<EOF
7489 #line 7490 "configure"
7490 #include "confdefs.h"
7491 #include <sys/types.h>
7497 struct so_map lm; (void) lm.som_addr;
7500 if { (eval echo configure
:7501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7502 gdb_cv_have_struct_so_map_with_som_members
=yes
7504 echo "configure: failed program was:" >&5
7505 cat conftest.
$ac_ext >&5
7507 gdb_cv_have_struct_so_map_with_som_members
=no
7512 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
7513 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
7514 cat >> confdefs.h
<<\EOF
7515 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
7521 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
7522 echo "configure:7523: checking for struct link_map32 in sys/link.h" >&5
7523 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
7524 echo $ac_n "(cached) $ac_c" 1>&6
7526 cat > conftest.
$ac_ext <<EOF
7527 #line 7528 "configure"
7528 #include "confdefs.h"
7530 #include <sys/link.h>
7532 struct link_map32 l;
7535 if { (eval echo configure
:7536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7537 gdb_cv_have_struct_link_map32
=yes
7539 echo "configure: failed program was:" >&5
7540 cat conftest.
$ac_ext >&5
7542 gdb_cv_have_struct_link_map32
=no
7547 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
7548 if test $gdb_cv_have_struct_link_map32 = yes; then
7549 cat >> confdefs.h
<<\EOF
7550 #define HAVE_STRUCT_LINK_MAP32 1
7553 cat >> confdefs.h
<<\EOF
7554 #define _SYSCALL32 1
7561 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
7562 echo "configure:7563: checking for long long support in compiler" >&5
7563 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
7564 echo $ac_n "(cached) $ac_c" 1>&6
7566 cat > conftest.
$ac_ext <<EOF
7567 #line 7568 "configure"
7568 #include "confdefs.h"
7572 extern long long foo;
7573 switch (foo & 2) { case 0: return 1; }
7577 if { (eval echo configure
:7578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7579 gdb_cv_c_long_long
=yes
7581 echo "configure: failed program was:" >&5
7582 cat conftest.
$ac_ext >&5
7584 gdb_cv_c_long_long
=no
7589 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
7590 if test $gdb_cv_c_long_long = yes; then
7591 cat >> confdefs.h
<<\EOF
7592 #define CC_HAS_LONG_LONG 1
7598 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
7599 echo "configure:7600: checking for long long support in printf" >&5
7600 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
7601 echo $ac_n "(cached) $ac_c" 1>&6
7603 if test "$cross_compiling" = yes; then
7604 gdb_cv_printf_has_long_long
=no
7606 cat > conftest.
$ac_ext <<EOF
7607 #line 7608 "configure"
7608 #include "confdefs.h"
7613 l = (l << 16) + 0x0123;
7614 l = (l << 16) + 0x4567;
7615 l = (l << 16) + 0x89ab;
7616 l = (l << 16) + 0xcdef;
7617 sprintf (buf, "0x%016llx", l);
7618 return (strcmp ("0x0123456789abcdef", buf));
7621 if { (eval echo configure
:7622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7623 gdb_cv_printf_has_long_long
=yes
7625 echo "configure: failed program was:" >&5
7626 cat conftest.
$ac_ext >&5
7628 gdb_cv_printf_has_long_long
=no
7635 if test $gdb_cv_printf_has_long_long = yes; then
7636 cat >> confdefs.h
<<\EOF
7637 #define PRINTF_HAS_LONG_LONG 1
7641 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
7644 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
7645 echo "configure:7646: checking for long double support in compiler" >&5
7646 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
7647 echo $ac_n "(cached) $ac_c" 1>&6
7649 cat > conftest.
$ac_ext <<EOF
7650 #line 7651 "configure"
7651 #include "confdefs.h"
7657 if { (eval echo configure
:7658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7659 ac_cv_c_long_double
=yes
7661 echo "configure: failed program was:" >&5
7662 cat conftest.
$ac_ext >&5
7664 ac_cv_c_long_double
=no
7669 echo "$ac_t""$ac_cv_c_long_double" 1>&6
7670 if test $ac_cv_c_long_double = yes; then
7671 cat >> confdefs.h
<<\EOF
7672 #define HAVE_LONG_DOUBLE 1
7678 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
7679 echo "configure:7680: checking for long double support in printf" >&5
7680 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
7681 echo $ac_n "(cached) $ac_c" 1>&6
7683 if test "$cross_compiling" = yes; then
7684 gdb_cv_printf_has_long_double
=no
7686 cat > conftest.
$ac_ext <<EOF
7687 #line 7688 "configure"
7688 #include "confdefs.h"
7692 long double f = 3.141592653;
7693 sprintf (buf, "%Lg", f);
7694 return (strncmp ("3.14159", buf, 7));
7697 if { (eval echo configure
:7698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7699 gdb_cv_printf_has_long_double
=yes
7701 echo "configure: failed program was:" >&5
7702 cat conftest.
$ac_ext >&5
7704 gdb_cv_printf_has_long_double
=no
7711 if test $gdb_cv_printf_has_long_double = yes; then
7712 cat >> confdefs.h
<<\EOF
7713 #define PRINTF_HAS_LONG_DOUBLE 1
7717 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
7720 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
7721 echo "configure:7722: checking for long double support in scanf" >&5
7722 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
7723 echo $ac_n "(cached) $ac_c" 1>&6
7725 if test "$cross_compiling" = yes; then
7726 gdb_cv_scanf_has_long_double
=no
7728 cat > conftest.
$ac_ext <<EOF
7729 #line 7730 "configure"
7730 #include "confdefs.h"
7733 char *buf = "3.141592653";
7735 sscanf (buf, "%Lg", &f);
7736 return !(f > 3.14159 && f < 3.14160);
7739 if { (eval echo configure
:7740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7741 gdb_cv_scanf_has_long_double
=yes
7743 echo "configure: failed program was:" >&5
7744 cat conftest.
$ac_ext >&5
7746 gdb_cv_scanf_has_long_double
=no
7753 if test $gdb_cv_scanf_has_long_double = yes; then
7754 cat >> confdefs.h
<<\EOF
7755 #define SCANF_HAS_LONG_DOUBLE 1
7759 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
7763 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
7764 echo "configure:7765: checking for -bbigtoc option" >&5
7765 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
7766 echo $ac_n "(cached) $ac_c" 1>&6
7769 SAVE_LDFLAGS
=$LDFLAGS
7772 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
7773 *) gdb_cv_bigtoc
=-bbigtoc ;;
7776 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
7777 cat > conftest.
$ac_ext <<EOF
7778 #line 7779 "configure"
7779 #include "confdefs.h"
7785 if { (eval echo configure
:7786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7788 echo "configure: failed program was:" >&5
7789 cat conftest.
$ac_ext >&5
7797 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
7798 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
7804 if test ${build} = ${host} -a ${host} = ${target} ; then
7807 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
7808 echo "configure:7809: checking for HPUX/OSF thread support" >&5
7809 if test -f /usr
/include
/dce
/cma_config.h
; then
7810 if test "$GCC" = "yes" ; then
7811 echo "$ac_t""yes" 1>&6
7812 cat >> confdefs.h
<<\EOF
7813 #define HAVE_HPUX_THREAD_SUPPORT 1
7816 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
7817 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
7819 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
7822 echo "$ac_t""no" 1>&6
7826 # See if thread_db library is around for Solaris thread debugging.
7827 # Note that we must explicitly test for version 1 of the library
7828 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
7830 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
7831 echo "configure:7832: checking for Solaris thread debugging library" >&5
7832 if test -f /usr
/lib
/libthread_db.so
.1 ; then
7833 echo "$ac_t""yes" 1>&6
7834 cat >> confdefs.h
<<\EOF
7835 #define HAVE_THREAD_DB_LIB 1
7838 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
7839 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
7840 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7841 echo "configure:7842: checking for dlopen in -ldl" >&5
7842 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
7843 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7844 echo $ac_n "(cached) $ac_c" 1>&6
7846 ac_save_LIBS
="$LIBS"
7848 cat > conftest.
$ac_ext <<EOF
7849 #line 7850 "configure"
7850 #include "confdefs.h"
7851 /* Override any gcc2 internal prototype to avoid an error. */
7852 /* We use char because int might match the return type of a gcc2
7853 builtin and then its argument prototype would still apply. */
7860 if { (eval echo configure
:7861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7862 eval "ac_cv_lib_$ac_lib_var=yes"
7864 echo "configure: failed program was:" >&5
7865 cat conftest.
$ac_ext >&5
7867 eval "ac_cv_lib_$ac_lib_var=no"
7870 LIBS
="$ac_save_LIBS"
7873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7874 echo "$ac_t""yes" 1>&6
7875 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7876 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7877 cat >> confdefs.h
<<EOF
7878 #define $ac_tr_lib 1
7884 echo "$ac_t""no" 1>&6
7887 if test "$GCC" = "yes" ; then
7888 # The GNU linker requires the -export-dynamic option to make
7889 # all symbols visible in the dynamic symbol table.
7890 hold_ldflags
=$LDFLAGS
7891 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
7892 echo "configure:7893: checking for the ld -export-dynamic flag" >&5
7893 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
7894 cat > conftest.
$ac_ext <<EOF
7895 #line 7896 "configure"
7896 #include "confdefs.h"
7902 if { (eval echo configure
:7903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7906 echo "configure: failed program was:" >&5
7907 cat conftest.
$ac_ext >&5
7912 LDFLAGS
=$hold_ldflags
7913 echo "$ac_t""$found" 1>&6
7914 if test $found = yes; then
7915 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
7918 # Sun randomly tweaked the prototypes in <proc_service.h>
7920 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
7921 echo "configure:7922: checking if <proc_service.h> is old" >&5
7922 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
7923 echo $ac_n "(cached) $ac_c" 1>&6
7926 cat > conftest.
$ac_ext <<EOF
7927 #line 7928 "configure"
7928 #include "confdefs.h"
7930 #include <proc_service.h>
7932 (struct ps_prochandle*, psaddr_t, const void*, size_t);
7938 if { (eval echo configure
:7939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7940 gdb_cv_proc_service_is_old
=no
7942 echo "configure: failed program was:" >&5
7943 cat conftest.
$ac_ext >&5
7945 gdb_cv_proc_service_is_old
=yes
7951 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
7952 if test $gdb_cv_proc_service_is_old = yes; then
7953 cat >> confdefs.h
<<\EOF
7954 #define PROC_SERVICE_IS_OLD 1
7959 echo "$ac_t""no" 1>&6
7963 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
7964 echo "configure:7965: checking for AiX thread debugging library" >&5
7965 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
7966 echo $ac_n "(cached) $ac_c" 1>&6
7968 cat > conftest.
$ac_ext <<EOF
7969 #line 7970 "configure"
7970 #include "confdefs.h"
7971 #include <sys/pthdebug.h>
7973 #ifndef PTHDB_VERSION_3
7978 if { (eval echo configure
:7979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7980 gdb_cv_have_aix_thread_debug
=yes
7982 echo "configure: failed program was:" >&5
7983 cat conftest.
$ac_ext >&5
7985 gdb_cv_have_aix_thread_debug
=no
7990 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
7991 if test $gdb_cv_have_aix_thread_debug = yes; then
7992 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
7993 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} aix-thread.o"
7994 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
8001 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
8002 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
8003 echo "configure:8004: checking whether <thread_db.h> has TD_NOTALLOC" >&5
8004 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
8005 echo $ac_n "(cached) $ac_c" 1>&6
8007 cat > conftest.
$ac_ext <<EOF
8008 #line 8009 "configure"
8009 #include "confdefs.h"
8010 #include <thread_db.h>
8012 int i = TD_NOTALLOC;
8015 if { (eval echo configure
:8016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8017 gdb_cv_thread_db_h_has_td_notalloc
=yes
8019 echo "configure: failed program was:" >&5
8020 cat conftest.
$ac_ext >&5
8022 gdb_cv_thread_db_h_has_td_notalloc
=no
8029 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
8031 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
8032 cat >> confdefs.h
<<\EOF
8033 #define THREAD_DB_HAS_TD_NOTALLOC 1
8038 if test $host = $target; then
8042 CFLAGS
="$CFLAGS -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE"
8043 cat > conftest.
$ac_ext <<EOF
8044 #line 8045 "configure"
8045 #include "confdefs.h"
8048 pread64 (0, NULL, 0, 0);
8051 if { (eval echo configure
:8052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8053 ENABLE_CFLAGS
="$ENABLE_CFLAGS -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE"
8054 cat >> confdefs.h
<<\EOF
8055 #define HAVE_PREAD64 1
8059 echo "configure: failed program was:" >&5
8060 cat conftest.
$ac_ext >&5
8069 # Check whether --enable-gdbcli or --disable-gdbcli was given.
8070 if test "${enable_gdbcli+set}" = set; then
8071 enableval
="$enable_gdbcli"
8073 case "${enableval}" in
8074 yes) enable_gdbcli
=yes ;;
8075 "") enable_gdbcli
=yes ;;
8077 { echo "configure: error: The CLI cannot be disabled yet" 1>&2; exit 1; }
8080 { echo "configure: error: Bad value for --enable-gdbcli: ${enableval}" 1>&2; exit 1; }
8088 case ${enable_gdbcli} in
8090 if test -d "${srcdir}/cli" ; then
8091 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_CLI_OBS)"
8092 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_CLI_DEPS)"
8093 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_CLI_SRCS)"
8094 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_CLI_INITS)"
8095 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_CLI_CFLAGS)"
8096 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_CLI_ALL)"
8097 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_CLI_CLEAN)"
8098 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_CLI_INSTALL)"
8099 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_CLI_UNINSTALL)"
8105 # Check whether --enable-gdbmi or --disable-gdbmi was given.
8106 if test "${enable_gdbmi+set}" = set; then
8107 enableval
="$enable_gdbmi"
8109 case "${enable_gdbmi}" in
8111 "") enable_gdbmi
=yes ;;
8113 { echo "configure: error: Bad value for --enable-gdbmi: ${enableval}" 1>&2; exit 1; }
8121 case ${enable_gdbmi} in
8123 if test -d "${srcdir}/mi" ; then
8124 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_MI_OBS)"
8125 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_MI_DEPS)"
8126 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_MI_SRCS)"
8127 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_MI_INITS)"
8128 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_MI_CFLAGS)"
8129 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_MI_ALL)"
8130 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_MI_CLEAN)"
8131 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_MI_INSTALL)"
8132 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_MI_UNINSTALL)"
8137 # Configure UI_OUT by default (before 5.2 it can be disabled)
8138 # It must be configured if gdbmi is configured
8143 # Check whether --with-uiout or --without-uiout was given.
8144 if test "${with_uiout+set}" = set; then
8145 withval
="$with_uiout"
8146 case "${withval}" in
8147 yes) want_uiout
=true
;;
8148 no
) if test $enable_gdbmi = yes; then
8149 { echo "configure: error: uiout is needed for MI and cannot be disabled" 1>&2; exit 1; }
8153 *) { echo "configure: error: bad value ${withval} for GDB with-uiout option" 1>&2; exit 1; } ;;
8159 if test $want_uiout = true
; then
8160 UIOUT_CFLAGS
="-DUI_OUT=1"
8163 # Check whether --enable-tui or --disable-tui was given.
8164 if test "${enable_tui+set}" = set; then
8165 enableval
="$enable_tui"
8167 case "${enable_tui}" in
8169 "") enable_tui
=yes ;;
8171 { echo "configure: error: Bad value for --enable-tui: ${enableval}" 1>&2; exit 1; }
8177 case ${enable_tui} in
8179 if test -d "${srcdir}/tui" ; then
8180 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_TUI_OBS)"
8181 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_TUI_DEPS)"
8182 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_TUI_SRCS)"
8183 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_TUI_INITS)"
8184 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_TUI_CFLAGS)"
8185 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_TUI_ALL)"
8186 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_TUI_CLEAN)"
8187 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_TUI_INSTALL)"
8188 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_TUI_UNINSTALL)"
8193 # Check whether --enable-netrom or --disable-netrom was given.
8194 if test "${enable_netrom+set}" = set; then
8195 enableval
="$enable_netrom"
8196 case "${enableval}" in
8197 yes) enable_netrom
=yes ;;
8198 no
) enable_netrom
=no
;;
8199 *) { echo "configure: error: bad value ${enableval} given for netrom option" 1>&2; exit 1; } ;;
8204 if test "${enable_netrom}" = "yes"; then
8205 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} remote-nrom.o"
8206 CONFIG_SRCS
="${CONFIG_SRCS} remote-nrom.c"
8210 # NOTE: Don't add -Wall or -Wunused, they both include
8211 # -Wunused-parameter which reports bogus warnings.
8212 # NOTE: If you add to this list, remember to update
8213 # gdb/doc/gdbint.texinfo.
8214 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
8215 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
8216 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
8217 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
8218 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
8219 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
8220 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
8221 # -Woverloaded-virtual -Winline -Werror"
8222 # Check whether --enable-build-warnings or --disable-build-warnings was given.
8223 if test "${enable_build_warnings+set}" = set; then
8224 enableval
="$enable_build_warnings"
8225 case "${enableval}" in
8227 no
) build_warnings
="-w";;
8228 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8229 build_warnings
="${build_warnings} ${t}";;
8230 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8231 build_warnings
="${t} ${build_warnings}";;
8232 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8234 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8235 echo "Setting compiler warning flags = $build_warnings" 6>&1
8238 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
8239 if test "${enable_gdb_build_warnings+set}" = set; then
8240 enableval
="$enable_gdb_build_warnings"
8241 case "${enableval}" in
8243 no
) build_warnings
="-w";;
8244 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8245 build_warnings
="${build_warnings} ${t}";;
8246 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8247 build_warnings
="${t} ${build_warnings}";;
8248 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8250 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8251 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
8256 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
8258 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
8259 echo "configure:8260: checking compiler warning flags" >&5
8260 # Separate out the -Werror flag as some files just cannot be
8261 # compiled with it enabled.
8262 for w
in ${build_warnings}; do
8264 -Werr*) WERROR_CFLAGS
=-Werror ;;
8265 *) # Check that GCC accepts it
8266 saved_CFLAGS
="$CFLAGS"
8268 cat > conftest.
$ac_ext <<EOF
8269 #line 8270 "configure"
8270 #include "confdefs.h"
8276 if { (eval echo configure
:8277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8278 WARN_CFLAGS
="${WARN_CFLAGS} $w"
8280 echo "configure: failed program was:" >&5
8281 cat conftest.
$ac_ext >&5
8284 CFLAGS
="$saved_CFLAGS"
8287 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
8297 # Check whether --with-mmalloc or --without-mmalloc was given.
8298 if test "${with_mmalloc+set}" = set; then
8299 withval
="$with_mmalloc"
8300 case "${withval}" in
8301 yes) want_mmalloc
=true
;;
8302 no
) want_mmalloc
=false
;;
8303 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
8309 if test x
$want_mmalloc = xtrue
; then
8310 cat >> confdefs.h
<<\EOF
8311 #define USE_MMALLOC 1
8314 cat >> confdefs.h
<<\EOF
8315 #define MMCHECK_FORCE 1
8318 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
8319 MMALLOC
='../mmalloc/libmmalloc.a'
8322 # Check whether --with-included-regex or --without-included-regex was given.
8323 if test "${with_included_regex+set}" = set; then
8324 withval
="$with_included_regex"
8325 case "${withval}" in
8326 yes) want_included_regex
=true
;;
8327 no
) want_included_regex
=false
;;
8328 *) { echo "configure: error: bad value ${withval} for GDB with-included-regex option" 1>&2; exit 1; } ;;
8331 want_included_regex
=true
8334 if test $want_included_regex = false
; then
8335 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
8336 echo "configure:8337: checking for GNU regex" >&5
8337 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
8338 echo $ac_n "(cached) $ac_c" 1>&6
8340 cat > conftest.
$ac_ext <<EOF
8341 #line 8342 "configure"
8342 #include "confdefs.h"
8343 #include <gnu-versions.h>
8344 #include <sys/types.h>
8347 #if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
8348 #error No valid GNU regex.
8353 if { (eval echo configure
:8354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8355 gdb_cv_have_gnu_regex
=yes
8357 echo "configure: failed program was:" >&5
8358 cat conftest.
$ac_ext >&5
8360 gdb_cv_have_gnu_regex
=no
8365 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
8366 if test $gdb_cv_have_gnu_regex = no
; then
8367 want_included_regex
=true
8371 if test x
${want_included_regex} = xtrue
; then
8373 cat >> confdefs.h
<<\EOF
8374 #define USE_INCLUDED_REGEX 1
8380 # In the Cygwin environment, we need some additional flags.
8381 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
8382 echo "configure:8383: checking for cygwin" >&5
8383 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
8384 echo $ac_n "(cached) $ac_c" 1>&6
8386 cat > conftest.
$ac_ext <<EOF
8387 #line 8388 "configure"
8388 #include "confdefs.h"
8390 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
8394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8395 egrep "lose" >/dev
/null
2>&1; then
8397 gdb_cv_os_cygwin
=yes
8406 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
8409 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
8411 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
8412 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
8417 if test x
$gdb_host = xgo32
; then
8420 if test x
$gdb_cv_os_cygwin = xyes
; then
8421 TERM_LIB
='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`'
8424 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
8425 echo "configure:8426: checking for tgetent in -lncurses" >&5
8426 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
8427 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8428 echo $ac_n "(cached) $ac_c" 1>&6
8430 ac_save_LIBS
="$LIBS"
8431 LIBS
="-lncurses $LIBS"
8432 cat > conftest.
$ac_ext <<EOF
8433 #line 8434 "configure"
8434 #include "confdefs.h"
8435 /* Override any gcc2 internal prototype to avoid an error. */
8436 /* We use char because int might match the return type of a gcc2
8437 builtin and then its argument prototype would still apply. */
8444 if { (eval echo configure
:8445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8446 eval "ac_cv_lib_$ac_lib_var=yes"
8448 echo "configure: failed program was:" >&5
8449 cat conftest.
$ac_ext >&5
8451 eval "ac_cv_lib_$ac_lib_var=no"
8454 LIBS
="$ac_save_LIBS"
8457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8458 echo "$ac_t""yes" 1>&6
8461 echo "$ac_t""no" 1>&6
8462 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
8463 echo "configure:8464: checking for tgetent in -lHcurses" >&5
8464 ac_lib_var
=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
8465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8466 echo $ac_n "(cached) $ac_c" 1>&6
8468 ac_save_LIBS
="$LIBS"
8469 LIBS
="-lHcurses $LIBS"
8470 cat > conftest.
$ac_ext <<EOF
8471 #line 8472 "configure"
8472 #include "confdefs.h"
8473 /* Override any gcc2 internal prototype to avoid an error. */
8474 /* We use char because int might match the return type of a gcc2
8475 builtin and then its argument prototype would still apply. */
8482 if { (eval echo configure
:8483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8484 eval "ac_cv_lib_$ac_lib_var=yes"
8486 echo "configure: failed program was:" >&5
8487 cat conftest.
$ac_ext >&5
8489 eval "ac_cv_lib_$ac_lib_var=no"
8492 LIBS
="$ac_save_LIBS"
8495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8496 echo "$ac_t""yes" 1>&6
8499 echo "$ac_t""no" 1>&6
8500 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
8501 echo "configure:8502: checking for tgetent in -ltermlib" >&5
8502 ac_lib_var
=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
8503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8504 echo $ac_n "(cached) $ac_c" 1>&6
8506 ac_save_LIBS
="$LIBS"
8507 LIBS
="-ltermlib $LIBS"
8508 cat > conftest.
$ac_ext <<EOF
8509 #line 8510 "configure"
8510 #include "confdefs.h"
8511 /* Override any gcc2 internal prototype to avoid an error. */
8512 /* We use char because int might match the return type of a gcc2
8513 builtin and then its argument prototype would still apply. */
8520 if { (eval echo configure
:8521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8522 eval "ac_cv_lib_$ac_lib_var=yes"
8524 echo "configure: failed program was:" >&5
8525 cat conftest.
$ac_ext >&5
8527 eval "ac_cv_lib_$ac_lib_var=no"
8530 LIBS
="$ac_save_LIBS"
8533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8534 echo "$ac_t""yes" 1>&6
8537 echo "$ac_t""no" 1>&6
8538 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
8539 echo "configure:8540: checking for tgetent in -ltermcap" >&5
8540 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
8541 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8542 echo $ac_n "(cached) $ac_c" 1>&6
8544 ac_save_LIBS
="$LIBS"
8545 LIBS
="-ltermcap $LIBS"
8546 cat > conftest.
$ac_ext <<EOF
8547 #line 8548 "configure"
8548 #include "confdefs.h"
8549 /* Override any gcc2 internal prototype to avoid an error. */
8550 /* We use char because int might match the return type of a gcc2
8551 builtin and then its argument prototype would still apply. */
8558 if { (eval echo configure
:8559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8560 eval "ac_cv_lib_$ac_lib_var=yes"
8562 echo "configure: failed program was:" >&5
8563 cat conftest.
$ac_ext >&5
8565 eval "ac_cv_lib_$ac_lib_var=no"
8568 LIBS
="$ac_save_LIBS"
8571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8572 echo "$ac_t""yes" 1>&6
8575 echo "$ac_t""no" 1>&6
8576 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
8577 echo "configure:8578: checking for tgetent in -lcurses" >&5
8578 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
8579 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8580 echo $ac_n "(cached) $ac_c" 1>&6
8582 ac_save_LIBS
="$LIBS"
8583 LIBS
="-lcurses $LIBS"
8584 cat > conftest.
$ac_ext <<EOF
8585 #line 8586 "configure"
8586 #include "confdefs.h"
8587 /* Override any gcc2 internal prototype to avoid an error. */
8588 /* We use char because int might match the return type of a gcc2
8589 builtin and then its argument prototype would still apply. */
8596 if { (eval echo configure
:8597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8598 eval "ac_cv_lib_$ac_lib_var=yes"
8600 echo "configure: failed program was:" >&5
8601 cat conftest.
$ac_ext >&5
8603 eval "ac_cv_lib_$ac_lib_var=no"
8606 LIBS
="$ac_save_LIBS"
8609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8610 echo "$ac_t""yes" 1>&6
8613 echo "$ac_t""no" 1>&6
8614 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
8615 echo "configure:8616: checking for tgetent in -lterminfo" >&5
8616 ac_lib_var
=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
8617 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8618 echo $ac_n "(cached) $ac_c" 1>&6
8620 ac_save_LIBS
="$LIBS"
8621 LIBS
="-lterminfo $LIBS"
8622 cat > conftest.
$ac_ext <<EOF
8623 #line 8624 "configure"
8624 #include "confdefs.h"
8625 /* Override any gcc2 internal prototype to avoid an error. */
8626 /* We use char because int might match the return type of a gcc2
8627 builtin and then its argument prototype would still apply. */
8634 if { (eval echo configure
:8635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8636 eval "ac_cv_lib_$ac_lib_var=yes"
8638 echo "configure: failed program was:" >&5
8639 cat conftest.
$ac_ext >&5
8641 eval "ac_cv_lib_$ac_lib_var=no"
8644 LIBS
="$ac_save_LIBS"
8647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8648 echo "$ac_t""yes" 1>&6
8651 echo "$ac_t""no" 1>&6
8665 if test "x$TERM_LIB" = x
8667 { echo "configure: error: Could not find a term library" 1>&2; exit 1; }
8673 # libreadline needs libuser32.a in a cygwin environment
8675 if test x
$gdb_cv_os_cygwin = xyes
; then
8676 WIN32LIBS
="-luser32"
8678 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
8684 LIBGUI
="../libgui/src/libgui.a"
8685 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
8689 # Check whether --with-cpu or --without-cpu was given.
8690 if test "${with_cpu+set}" = set; then
8693 powerpc-
* | powerpcle-
* )
8694 ## It would be nice to keep this table in sync with the one in
8696 case "${with_cpu}" in
8697 ppc-uisa | rs6000 |
403 |
403GC |
505 |
860 |
601 |
602 |
603 \
8699 ## Those are all handled in variants in rs6000-tdep.c, so they're fine.
8701 common | power | power2 | rios | rios1 | rios2 | rsc | rsc1
)
8702 ## These are all RS6000 variants, as far as GDB is concerned.
8712 echo "configure: warning: GDB: unknown --with-cpu value: \`${with_cpu}'; using \`ppc-uisa'." 1>&2
8718 echo "configure: warning: GDB may ignore the --with-cpu flag for ${target} targets" 1>&2
8721 cat >> confdefs.h
<<EOF
8722 #define TARGET_CPU_DEFAULT "${with_cpu}"
8730 # Check whether --enable-gdbtk or --disable-gdbtk was given.
8731 if test "${enable_gdbtk+set}" = set; then
8732 enableval
="$enable_gdbtk"
8733 case "${enableval}" in
8737 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
8740 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
8748 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
8752 # Default is on for everything but go32 and Cygwin
8757 if test -d "${srcdir}/gdbtk" ; then
8773 if test "${enable_gdbtk}" = "yes"; then
8775 # Gdbtk must have an absolute path to srcdir in order to run
8776 # properly when not installed.
8784 # Ok, lets find the tcl configuration
8785 # First, look for one uninstalled.
8786 # the alternative search directory is invoked by --with-tclconfig
8789 if test x
"${no_tcl}" = x
; then
8790 # we reset no_tcl in case something fails here
8792 # Check whether --with-tclconfig or --without-tclconfig was given.
8793 if test "${with_tclconfig+set}" = set; then
8794 withval
="$with_tclconfig"
8795 with_tclconfig
=${withval}
8798 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
8799 echo "configure:8800: checking for Tcl configuration" >&5
8800 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
8801 echo $ac_n "(cached) $ac_c" 1>&6
8805 # First check to see if --with-tclconfig was specified.
8806 if test x
"${with_tclconfig}" != x
; then
8807 if test -f "${with_tclconfig}/tclConfig.sh" ; then
8808 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
8810 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
8814 # then check for a private Tcl installation
8815 if test x
"${ac_cv_c_tclconfig}" = x
; then
8818 `ls -dr ../tcl[7-9]* 2>/dev/null` \
8820 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
8822 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
8823 if test -f "$i/${configdir}/tclConfig.sh" ; then
8824 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
8829 # check in a few common install locations
8830 if test x
"${ac_cv_c_tclconfig}" = x
; then
8831 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8832 if test -f "$i/tclConfig.sh" ; then
8833 ac_cv_c_tclconfig
=`(cd $i; pwd)`
8838 # check in a few other private locations
8839 if test x
"${ac_cv_c_tclconfig}" = x
; then
8842 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
8843 if test -f "$i/${configdir}/tclConfig.sh" ; then
8844 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
8852 if test x
"${ac_cv_c_tclconfig}" = x
; then
8853 TCLCONFIG
="# no Tcl configs found"
8854 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
8857 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
8858 echo "$ac_t""found $TCLCONFIG" 1>&6
8862 if test -z "${no_tcl}"; then
8892 # Ok, lets find the tk configuration
8893 # First, look for one uninstalled.
8894 # the alternative search directory is invoked by --with-tkconfig
8897 if test x
"${no_tk}" = x
; then
8898 # we reset no_tk in case something fails here
8900 # Check whether --with-tkconfig or --without-tkconfig was given.
8901 if test "${with_tkconfig+set}" = set; then
8902 withval
="$with_tkconfig"
8903 with_tkconfig
=${withval}
8906 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
8907 echo "configure:8908: checking for Tk configuration" >&5
8908 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
8909 echo $ac_n "(cached) $ac_c" 1>&6
8913 # First check to see if --with-tkconfig was specified.
8914 if test x
"${with_tkconfig}" != x
; then
8915 if test -f "${with_tkconfig}/tkConfig.sh" ; then
8916 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
8918 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
8922 # then check for a private Tk library
8923 if test x
"${ac_cv_c_tkconfig}" = x
; then
8926 `ls -dr ../tk[4-9]* 2>/dev/null` \
8928 `ls -dr ../../tk[4-9]* 2>/dev/null` \
8930 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
8931 if test -f "$i/${configdir}/tkConfig.sh" ; then
8932 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
8937 # check in a few common install locations
8938 if test x
"${ac_cv_c_tkconfig}" = x
; then
8939 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8940 if test -f "$i/tkConfig.sh" ; then
8941 ac_cv_c_tkconfig
=`(cd $i; pwd)`
8946 # check in a few other private locations
8947 if test x
"${ac_cv_c_tkconfig}" = x
; then
8950 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
8951 if test -f "$i/${configdir}/tkConfig.sh" ; then
8952 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
8960 if test x
"${ac_cv_c_tkconfig}" = x
; then
8961 TKCONFIG
="# no Tk configs found"
8962 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
8965 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
8966 echo "$ac_t""found $TKCONFIG" 1>&6
8972 # now look for Tcl library stuff
8983 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
8985 # If $no_tk is nonempty, then we can't do Tk, and there is no
8986 # point to doing Tcl.
8987 if test -z "${no_tk}"; then
8989 if test -f "$TKCONFIG" ; then
9007 # Ok, lets find the tcl source trees so we can use the headers
9008 # Warning: transition of version 9 to 10 will break this algorithm
9009 # because 10 sorts before 9. We also look for just tcl. We have to
9010 # be careful that we don't match stuff like tclX by accident.
9011 # the alternative search directory is involked by --with-tclinclude
9015 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
9016 echo "configure:9017: checking for Tcl private headers. dir=${configdir}" >&5
9017 # Check whether --with-tclinclude or --without-tclinclude was given.
9018 if test "${with_tclinclude+set}" = set; then
9019 withval
="$with_tclinclude"
9020 with_tclinclude
=${withval}
9023 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
9024 echo $ac_n "(cached) $ac_c" 1>&6
9027 # first check to see if --with-tclinclude was specified
9028 if test x
"${with_tclinclude}" != x
; then
9029 if test -f ${with_tclinclude}/tclInt.h
; then
9030 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
9031 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
9032 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
9034 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9038 # next check if it came with Tcl configuration file
9039 if test x
"${ac_cv_c_tclconfig}" = x
; then
9040 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
9041 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
9045 # next check in private source directory
9047 # since ls returns lowest version numbers first, reverse its output
9048 if test x
"${ac_cv_c_tclh}" = x
; then
9051 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
9052 ${srcdir}/..
/..
/tcl \
9053 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
9054 ${srcdir}/..
/..
/..
/tcl \
9055 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
9056 if test -f $i/generic
/tclInt.h
; then
9057 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9062 # finally check in a few common install locations
9064 # since ls returns lowest version numbers first, reverse its output
9065 if test x
"${ac_cv_c_tclh}" = x
; then
9067 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
9068 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
9069 /usr
/local
/src
/tcl \
9070 /usr
/local
/lib
/tcl \
9071 ${prefix}/include
; do
9072 if test -f $i/generic
/tclInt.h
; then
9073 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9078 # see if one is installed
9079 if test x
"${ac_cv_c_tclh}" = x
; then
9080 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
9081 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
9082 echo "configure:9083: checking for tclInt.h" >&5
9083 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9084 echo $ac_n "(cached) $ac_c" 1>&6
9086 cat > conftest.
$ac_ext <<EOF
9087 #line 9088 "configure"
9088 #include "confdefs.h"
9091 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9092 { (eval echo configure
:9093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9093 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9094 if test -z "$ac_err"; then
9096 eval "ac_cv_header_$ac_safe=yes"
9099 echo "configure: failed program was:" >&5
9100 cat conftest.
$ac_ext >&5
9102 eval "ac_cv_header_$ac_safe=no"
9106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9107 echo "$ac_t""yes" 1>&6
9108 ac_cv_c_tclh
=installed
9110 echo "$ac_t""no" 1>&6
9118 if test x
"${ac_cv_c_tclh}" = x
; then
9119 TCLHDIR
="# no Tcl private headers found"
9120 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
9122 if test x
"${ac_cv_c_tclh}" != x
; then
9124 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
9125 echo "$ac_t""is installed" 1>&6
9128 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
9129 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
9130 TCLHDIR
="-I${ac_cv_c_tclh}"
9138 # Ok, lets find the tk source trees so we can use the headers
9139 # If the directory (presumably symlink) named "tk" exists, use that one
9140 # in preference to any others. Same logic is used when choosing library
9141 # and again with Tcl. The search order is the best place to look first, then in
9142 # decreasing significance. The loop breaks if the trigger file is found.
9143 # Note the gross little conversion here of srcdir by cd'ing to the found
9144 # directory. This converts the path from a relative to an absolute, so
9145 # recursive cache variables for the path will work right. We check all
9146 # the possible paths in one loop rather than many seperate loops to speed
9148 # the alternative search directory is involked by --with-tkinclude
9151 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
9152 echo "configure:9153: checking for Tk private headers" >&5
9153 # Check whether --with-tkinclude or --without-tkinclude was given.
9154 if test "${with_tkinclude+set}" = set; then
9155 withval
="$with_tkinclude"
9156 with_tkinclude
=${withval}
9159 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
9160 echo $ac_n "(cached) $ac_c" 1>&6
9163 # first check to see if --with-tkinclude was specified
9164 if test x
"${with_tkinclude}" != x
; then
9165 if test -f ${with_tkinclude}/tk.h
; then
9166 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
9167 elif test -f ${with_tkinclude}/generic
/tk.h
; then
9168 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
9170 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9174 # next check if it came with Tk configuration file
9175 if test x
"${ac_cv_c_tkconfig}" = x
; then
9176 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
9177 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
9181 # next check in private source directory
9183 # since ls returns lowest version numbers first, reverse its output
9184 if test x
"${ac_cv_c_tkh}" = x
; then
9187 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
9188 ${srcdir}/..
/..
/tk \
9189 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
9190 ${srcdir}/..
/..
/..
/tk \
9191 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
9192 if test -f $i/generic
/tk.h
; then
9193 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9198 # finally check in a few common install locations
9200 # since ls returns lowest version numbers first, reverse its output
9201 if test x
"${ac_cv_c_tkh}" = x
; then
9203 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
9204 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
9207 ${prefix}/include
; do
9208 if test -f $i/generic
/tk.h
; then
9209 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9214 # see if one is installed
9215 if test x
"${ac_cv_c_tkh}" = x
; then
9216 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
9217 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
9218 echo "configure:9219: checking for tk.h" >&5
9219 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9220 echo $ac_n "(cached) $ac_c" 1>&6
9222 cat > conftest.
$ac_ext <<EOF
9223 #line 9224 "configure"
9224 #include "confdefs.h"
9227 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9228 { (eval echo configure
:9229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9229 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9230 if test -z "$ac_err"; then
9232 eval "ac_cv_header_$ac_safe=yes"
9235 echo "configure: failed program was:" >&5
9236 cat conftest.
$ac_ext >&5
9238 eval "ac_cv_header_$ac_safe=no"
9242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9243 echo "$ac_t""yes" 1>&6
9244 ac_cv_c_tkh
=installed
9246 echo "$ac_t""no" 1>&6
9254 if test x
"${ac_cv_c_tkh}" != x
; then
9256 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
9257 echo "$ac_t""is installed" 1>&6
9260 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
9261 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
9262 TKHDIR
="-I${ac_cv_c_tkh}"
9265 TKHDIR
="# no Tk directory found"
9266 echo "configure: warning: Can't find Tk private headers" 1>&2
9273 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9274 echo "configure:9275: checking for Itcl private headers. srcdir=${srcdir}" >&5
9275 if test x
"${ac_cv_c_itclh}" = x
; then
9276 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
9277 if test -f $i/generic
/itcl.h
; then
9278 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
9283 if test x
"${ac_cv_c_itclh}" = x
; then
9284 ITCLHDIR
="# no Itcl private headers found"
9285 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
9287 if test x
"${ac_cv_c_itclh}" != x
; then
9288 ITCLHDIR
="-I${ac_cv_c_itclh}"
9290 # should always be here
9291 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
9296 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9297 echo "configure:9298: checking for Itk private headers. srcdir=${srcdir}" >&5
9298 if test x
"${ac_cv_c_itkh}" = x
; then
9299 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
9300 if test -f $i/generic
/itk.h
; then
9301 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
9306 if test x
"${ac_cv_c_itkh}" = x
; then
9307 ITKHDIR
="# no Itk private headers found"
9308 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
9310 if test x
"${ac_cv_c_itkh}" != x
; then
9311 ITKHDIR
="-I${ac_cv_c_itkh}"
9313 # should always be here
9314 # ITKLIB="../itcl/itk/unix/libitk.a"
9320 # now look for Tk library stuff
9331 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
9333 # now look for Itcl library stuff
9337 # Ok, lets find the itcl configuration
9338 # First, look for one uninstalled.
9339 # the alternative search directory is invoked by --with-itclconfig
9342 if test x
"${no_itcl}" = x
; then
9343 # we reset no_itcl in case something fails here
9345 # Check whether --with-itclconfig or --without-itclconfig was given.
9346 if test "${with_itclconfig+set}" = set; then
9347 withval
="$with_itclconfig"
9348 with_itclconfig
=${withval}
9351 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
9352 echo "configure:9353: checking for Itcl configuration" >&5
9353 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
9354 echo $ac_n "(cached) $ac_c" 1>&6
9358 # First check to see if --with-itclconfig was specified.
9359 if test x
"${with_itclconfig}" != x
; then
9360 if test -f "${with_itclconfig}/itclConfig.sh" ; then
9361 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
9363 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
9367 # then check for a private Itcl library
9368 if test x
"${ac_cv_c_itclconfig}" = x
; then
9371 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
9373 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
9375 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
9376 if test -f "$i/itclConfig.sh" ; then
9377 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9382 # check in a few common install locations
9383 if test x
"${ac_cv_c_itclconfig}" = x
; then
9384 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9385 if test -f "$i/itclConfig.sh" ; then
9386 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9391 # check in a few other private locations
9392 if test x
"${ac_cv_c_itclconfig}" = x
; then
9394 ${srcdir}/..
/itcl
/itcl \
9395 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
9396 if test -f "$i/itclConfig.sh" ; then
9397 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9405 if test x
"${ac_cv_c_itclconfig}" = x
; then
9406 ITCLCONFIG
="# no Itcl configs found"
9407 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
9410 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
9411 echo "$ac_t""found $ITCLCONFIG" 1>&6
9415 if test -z "${no_itcl}"; then
9417 if test -f "$ITCLCONFIG" ; then
9432 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
9433 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
9437 # now look for Itk library stuff
9440 # Ok, lets find the itk configuration
9441 # First, look for one uninstalled.
9442 # the alternative search directory is invoked by --with-itkconfig
9445 if test x
"${no_itk}" = x
; then
9446 # we reset no_itk in case something fails here
9448 # Check whether --with-itkconfig or --without-itkconfig was given.
9449 if test "${with_itkconfig+set}" = set; then
9450 withval
="$with_itkconfig"
9451 with_itkconfig
=${withval}
9454 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
9455 echo "configure:9456: checking for Itk configuration" >&5
9456 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
9457 echo $ac_n "(cached) $ac_c" 1>&6
9461 # First check to see if --with-itkconfig was specified.
9462 if test x
"${with_itkconfig}" != x
; then
9463 if test -f "${with_itkconfig}/itkConfig.sh" ; then
9464 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
9466 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
9470 # then check for a private Itk library
9471 if test x
"${ac_cv_c_itkconfig}" = x
; then
9474 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
9476 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
9478 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
9479 if test -f "$i/itkConfig.sh" ; then
9480 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9485 # check in a few common install locations
9486 if test x
"${ac_cv_c_itkconfig}" = x
; then
9487 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9488 if test -f "$i/itkConfig.sh" ; then
9489 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9494 # check in a few other private locations
9495 if test x
"${ac_cv_c_itkconfig}" = x
; then
9497 ${srcdir}/..
/itcl
/itk \
9498 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
9499 if test -f "$i/itkConfig.sh" ; then
9500 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9508 if test x
"${ac_cv_c_itkconfig}" = x
; then
9509 ITKCONFIG
="# no Itk configs found"
9510 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
9513 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
9514 echo "$ac_t""found $ITKCONFIG" 1>&6
9519 if test -z "${no_itcl}"; then
9521 if test -f "$ITKCONFIG" ; then
9536 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
9537 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
9540 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
9541 # Tcl/Tk 8.1 require -fwritable strings. I don't
9542 # know whether 8.2 will or not, but I bet it will.
9543 # I don't have to worry about 7.x since we don't support it.
9545 if test "$GCC" = "yes"; then
9546 if test "$TCL_VERSION" != "8.0" ; then
9547 GDBTK_CFLAGS
="-fwritable-strings"
9551 # Include some libraries that Tcl and Tk want.
9552 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
9553 # Yes, the ordering seems wrong here. But it isn't.
9554 # TK_LIBS is the list of libraries that need to be linked
9555 # after Tcl/Tk. Note that this isn't put into LIBS. If it
9556 # were in LIBS then any link tests after this point would
9557 # try to include things like `$(LIBGUI)', which wouldn't work.
9558 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
9560 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
9561 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
9562 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
9563 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
9564 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
9565 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
9566 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
9567 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
9569 if test x
$gdb_cv_os_cygwin = xyes
; then
9570 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
9571 WIN32LDAPP
="-Wl,--subsystem,console"
9572 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
9577 SUBDIRS
="${SUBDIRS} gdbtk"
9578 configdirs
="${configdirs} gdbtk"
9594 # If we find X, set shell vars x_includes and x_libraries to the
9595 # paths, otherwise set no_x=yes.
9596 # Uses ac_ vars as temps to allow command line to override cache and checks.
9597 # --without-x overrides everything else, but does not touch the cache.
9598 echo $ac_n "checking for X""... $ac_c" 1>&6
9599 echo "configure:9600: checking for X" >&5
9601 # Check whether --with-x or --without-x was given.
9602 if test "${with_x+set}" = set; then
9607 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9608 if test "x$with_x" = xno
; then
9609 # The user explicitly disabled X.
9612 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
9613 # Both variables are already set.
9616 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9617 echo $ac_n "(cached) $ac_c" 1>&6
9619 # One or both of the vars are not set, and there is no cached value.
9620 ac_x_includes
=NO ac_x_libraries
=NO
9622 if mkdir conftestdir
; then
9624 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9625 cat > Imakefile
<<'EOF'
9627 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9629 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9630 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9631 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9632 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9633 for ac_extension
in a so sl
; do
9634 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
9635 test -f $ac_im_libdir/libX11.
$ac_extension; then
9636 ac_im_usrlibdir
=$ac_im_libdir; break
9639 # Screen out bogus values from the imake configuration. They are
9640 # bogus both because they are the default anyway, and because
9641 # using them would break gcc on systems where it needs fixed includes.
9642 case "$ac_im_incroot" in
9644 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
9646 case "$ac_im_usrlibdir" in
9648 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
9655 if test "$ac_x_includes" = NO
; then
9656 # Guess where to find include files, by looking for this one X11 .h file.
9657 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
9659 # First, try using that file with no special directory specified.
9660 cat > conftest.
$ac_ext <<EOF
9661 #line 9662 "configure"
9662 #include "confdefs.h"
9663 #include <$x_direct_test_include>
9665 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9666 { (eval echo configure
:9667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9667 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9668 if test -z "$ac_err"; then
9670 # We can compile using X headers with no special include directory.
9674 echo "configure: failed program was:" >&5
9675 cat conftest.
$ac_ext >&5
9677 # Look for the header file in a standard set of common directories.
9678 # Check X11 before X11Rn because it is often a symlink to the current release.
9681 /usr
/X11R
6/include \
9682 /usr
/X11R
5/include \
9683 /usr
/X11R
4/include \
9686 /usr
/include
/X11R6 \
9687 /usr
/include
/X11R5 \
9688 /usr
/include
/X11R4 \
9690 /usr
/local
/X11
/include \
9691 /usr
/local
/X11R
6/include \
9692 /usr
/local
/X11R
5/include \
9693 /usr
/local
/X11R
4/include \
9695 /usr
/local
/include
/X11 \
9696 /usr
/local
/include
/X11R6 \
9697 /usr
/local
/include
/X11R5 \
9698 /usr
/local
/include
/X11R4 \
9702 /usr
/XFree86
/include
/X11 \
9705 /usr
/local
/include \
9706 /usr
/unsupported
/include \
9707 /usr
/athena
/include \
9708 /usr
/local
/x11r
5/include \
9709 /usr
/lpp
/Xamples
/include \
9711 /usr
/openwin
/include \
9712 /usr
/openwin
/share
/include \
9715 if test -r "$ac_dir/$x_direct_test_include"; then
9716 ac_x_includes
=$ac_dir
9722 fi # $ac_x_includes = NO
9724 if test "$ac_x_libraries" = NO
; then
9725 # Check for the libraries.
9727 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
9728 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
9730 # See if we find them without any special options.
9731 # Don't add to $LIBS permanently.
9732 ac_save_LIBS
="$LIBS"
9733 LIBS
="-l$x_direct_test_library $LIBS"
9734 cat > conftest.
$ac_ext <<EOF
9735 #line 9736 "configure"
9736 #include "confdefs.h"
9739 ${x_direct_test_function}()
9742 if { (eval echo configure
:9743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9744 LIBS
="$ac_save_LIBS"
9745 # We can link X programs with no special library path.
9748 echo "configure: failed program was:" >&5
9749 cat conftest.
$ac_ext >&5
9751 LIBS
="$ac_save_LIBS"
9752 # First see if replacing the include by lib works.
9753 # Check X11 before X11Rn because it is often a symlink to the current release.
9754 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
9765 /usr
/local
/X11
/lib \
9766 /usr
/local
/X11R
6/lib \
9767 /usr
/local
/X11R
5/lib \
9768 /usr
/local
/X11R
4/lib \
9770 /usr
/local
/lib
/X11 \
9771 /usr
/local
/lib
/X11R6 \
9772 /usr
/local
/lib
/X11R5 \
9773 /usr
/local
/lib
/X11R4 \
9777 /usr
/XFree86
/lib
/X11 \
9781 /usr
/unsupported
/lib \
9783 /usr
/local
/x11r
5/lib \
9784 /usr
/lpp
/Xamples
/lib \
9788 /usr
/openwin
/share
/lib \
9791 for ac_extension
in a so sl
; do
9792 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
9793 ac_x_libraries
=$ac_dir
9800 fi # $ac_x_libraries = NO
9802 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
9803 # Didn't find X anywhere. Cache the known absence of X.
9804 ac_cv_have_x
="have_x=no"
9806 # Record where we found X for the cache.
9807 ac_cv_have_x
="have_x=yes \
9808 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9812 eval "$ac_cv_have_x"
9815 if test "$have_x" != yes; then
9816 echo "$ac_t""$have_x" 1>&6
9819 # If each of the values was on the command line, it overrides each guess.
9820 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9821 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9822 # Update the cache value to reflect the command line values.
9823 ac_cv_have_x
="have_x=yes \
9824 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9825 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9830 # Unlike the sim directory, whether a simulator is linked is controlled by
9831 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
9832 # This code just checks for a few cases where we'd like to ignore those
9833 # definitions, even when they're present in the '.mt' file. These cases
9834 # are when --disable-sim is specified, or if the simulator directory is
9835 # not part of the source tree.
9837 # Check whether --enable-sim or --disable-sim was given.
9838 if test "${enable_sim+set}" = set; then
9839 enableval
="$enable_sim"
9840 echo "enable_sim = $enable_sim";
9841 echo "enableval = ${enableval}";
9842 case "${enableval}" in
9843 yes) ignore_sim
=false
;;
9844 no
) ignore_sim
=true
;;
9845 *) ignore_sim
=false
;;
9852 if test ! -d "${srcdir}/../sim"; then
9856 if test "${ignore_sim}" = "true"; then
9858 IGNORE_SIM_OBS
="SIM_OBS="
9862 cat >> confdefs.h
<<\EOF
9882 # Begin stuff to support --enable-shared
9883 # Check whether --enable-shared or --disable-shared was given.
9884 if test "${enable_shared+set}" = set; then
9885 enableval
="$enable_shared"
9886 case "${enableval}" in
9895 # If we have shared libraries, try to set rpath reasonably.
9896 if test "${shared}" = "true"; then
9899 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
9901 *-*-irix5* |
*-*-irix6*)
9902 HLDFLAGS
='-Wl,-rpath,$(libdir)'
9906 *-*-linux* |
*-pc-linux-gnu*)
9907 HLDFLAGS
='-Wl,-rpath,$(libdir)'
9910 HLDFLAGS
='-R $(libdir)'
9913 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;'
9918 # On SunOS, if the linker supports the -rpath option, use it to
9919 # prevent ../bfd and ../opcodes from being included in the run time
9923 echo 'main () { }' > conftest.c
9924 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
9925 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
9927 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
9929 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
9931 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
9933 elif test "${shared}" = "true"; then
9934 HLDFLAGS
='-Wl,-rpath=$(libdir)'
9936 HLDFLAGS
='-Wl,-rpath='
9938 rm -f conftest.t conftest.c conftest
9943 # End stuff to support --enable-shared
9945 # target_subdir is used by the testsuite to find the target libraries.
9947 if test "${host}" != "${target}"; then
9948 target_subdir
="${target_alias}/"
9953 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
9954 if test ! -f ${host_makefile_frag}; then
9955 # When building a native debuger the .mh file containing things
9956 # like NATDEPFILES is needed. Cross debuggers don't need .mh
9957 # since it no longer contains anything useful.
9958 if test "${target}" = "${host}"; then
9959 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
9961 host_makefile_frag
=/dev
/null
9964 frags
="$frags $host_makefile_frag"
9966 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
9967 if test ! -f ${target_makefile_frag}; then
9968 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
9970 frags
="$frags $target_makefile_frag"
9977 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9978 ' ${host_makefile_frag}`
9980 targetfile
=`sed -n '
9981 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9982 ' ${target_makefile_frag}`
9984 GDB_MULTI_ARCH
=`sed -n '
9985 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
9986 ' ${target_makefile_frag}`
9988 if test "${target}" = "${host}"; then
9989 # We pick this up from the host configuration file (.mh) because we
9990 # do not have a native configuration Makefile fragment.
9991 nativefile
=`sed -n '
9992 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9993 ' ${host_makefile_frag}`
9997 # New targets should just set gdb_multi_arch=yes in configure.tgt.
9998 # Old targets being converted can either do that or set GDB_MULTI_ARCH
9999 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
10000 # will be the default.
10001 if test x
"${GDB_MULTI_ARCH}" = x
; then
10002 case "${gdb_multi_arch}" in
10003 yes ) GDB_MULTI_ARCH
=GDB_MULTI_ARCH_PURE
;;
10004 no
) GDB_MULTI_ARCH
=0 ;;
10005 0|
1|
2 ) GDB_MULTI_ARCH
=${gdb_multi_arch} ;;
10008 if test x
"${GDB_MULTI_ARCH}" != x
; then
10009 cat >> confdefs.h
<<EOF
10010 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
10014 # Warn the user when they use an old practice
10015 case "${GDB_MULTI_ARCH}" in
10017 0 | GDB_MULTI_ARCH_PARTIAL |
1 | GDB_MULTI_ARCH_TM |
2 )
10018 echo "configure: warning: "GDB
: Target is not pure multi-arch
"" 1>&2 ;;
10019 GDB_MULTI_ARCH_PURE
)
10020 if test x
"${targetfile}" != x
; then
10021 echo "configure: warning: "GDB
: Ignoring TM_FILE
in ${target_makefile_frag}"" 1>&2
10024 *) { echo "configure: error: "GDB
: Unknown GDB_MULTI_ARCH value
${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
10027 if test "${enable_multi_ice}" = "yes"; then
10028 SUBDIRS
="${SUBDIRS} multi-ice"
10031 # ``gdbserver'' can only be built in a native configuration.
10032 if test x
"${target}" = x
"${host}"; then
10033 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
10034 echo "configure:10035: checking whether gdbserver is supported on this host" >&5
10035 if test x
"${build_gdbserver}" = xyes
; then
10036 configdirs
="${configdirs} gdbserver"
10037 SUBDIRS
="${SUBDIRS} gdbserver"
10038 echo "$ac_t""yes" 1>&6
10040 echo "$ac_t""no" 1>&6
10046 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
10047 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
10055 if test "${hostfile}" != ""; then
10057 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
10058 files
="${files} ${GDB_XM_FILE}"
10059 links
="${links} xm.h"
10060 cat >> confdefs.h
<<EOF
10061 #define GDB_XM_FILE ${GDB_XM_FILE}
10069 if test "${targetfile}" != ""; then
10071 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
10072 files
="${files} ${GDB_TM_FILE}"
10073 links
="${links} tm.h"
10074 cat >> confdefs.h
<<EOF
10075 #define GDB_TM_FILE ${GDB_TM_FILE}
10083 if test "${nativefile}" != ""; then
10085 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
10086 files
="${files} ${GDB_NM_FILE}"
10087 links
="${links} nm.h"
10088 cat >> confdefs.h
<<EOF
10089 #define GDB_NM_FILE ${GDB_NM_FILE}
10097 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
10098 echo "configure:10099: checking for Cygwin environment" >&5
10099 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
10100 echo $ac_n "(cached) $ac_c" 1>&6
10102 cat > conftest.
$ac_ext <<EOF
10103 #line 10104 "configure"
10104 #include "confdefs.h"
10109 #define __CYGWIN__ __CYGWIN32__
10114 if { (eval echo configure
:10115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10118 echo "configure: failed program was:" >&5
10119 cat conftest.
$ac_ext >&5
10127 echo "$ac_t""$ac_cv_cygwin" 1>&6
10129 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
10130 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
10131 echo "configure:10132: checking for mingw32 environment" >&5
10132 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
10133 echo $ac_n "(cached) $ac_c" 1>&6
10135 cat > conftest.
$ac_ext <<EOF
10136 #line 10137 "configure"
10137 #include "confdefs.h"
10140 return __MINGW32__;
10143 if { (eval echo configure
:10144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10147 echo "configure: failed program was:" >&5
10148 cat conftest.
$ac_ext >&5
10156 echo "$ac_t""$ac_cv_mingw32" 1>&6
10158 test "$ac_cv_mingw32" = yes && MINGW32
=yes
10161 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
10162 echo "configure:10163: checking for executable suffix" >&5
10163 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
10164 echo $ac_n "(cached) $ac_c" 1>&6
10166 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
10170 echo 'int main () { return 0; }' > conftest.
$ac_ext
10172 if { (eval echo configure
:10173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
10173 for file in conftest.
*; do
10175 *.c |
*.C |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
10176 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
10180 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
10183 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
10188 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
10189 echo "$ac_t""${ac_cv_exeext}" 1>&6
10194 cat >> confdefs.h
<<\EOF
10195 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
10201 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10202 if test "${with_libiconv_prefix+set}" = set; then
10203 withval
="$with_libiconv_prefix"
10205 for dir
in `echo "$withval" | tr : ' '`; do
10206 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
10207 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
10213 echo $ac_n "checking for iconv""... $ac_c" 1>&6
10214 echo "configure:10215: checking for iconv" >&5
10215 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
10216 echo $ac_n "(cached) $ac_c" 1>&6
10219 am_cv_func_iconv
="no, consider installing GNU libiconv"
10221 cat > conftest.
$ac_ext <<EOF
10222 #line 10223 "configure"
10223 #include "confdefs.h"
10224 #include <stdlib.h>
10227 iconv_t cd = iconv_open("","");
10228 iconv(cd,NULL,NULL,NULL,NULL);
10232 if { (eval echo configure
:10233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10234 am_cv_func_iconv
=yes
10236 echo "configure: failed program was:" >&5
10237 cat conftest.
$ac_ext >&5
10240 if test "$am_cv_func_iconv" != yes; then
10241 am_save_LIBS
="$LIBS"
10242 LIBS
="$LIBS -liconv"
10243 cat > conftest.
$ac_ext <<EOF
10244 #line 10245 "configure"
10245 #include "confdefs.h"
10246 #include <stdlib.h>
10249 iconv_t cd = iconv_open("","");
10250 iconv(cd,NULL,NULL,NULL,NULL);
10254 if { (eval echo configure
:10255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10256 am_cv_lib_iconv
=yes
10257 am_cv_func_iconv
=yes
10259 echo "configure: failed program was:" >&5
10260 cat conftest.
$ac_ext >&5
10263 LIBS
="$am_save_LIBS"
10268 echo "$ac_t""$am_cv_func_iconv" 1>&6
10269 if test "$am_cv_func_iconv" = yes; then
10270 cat >> confdefs.h
<<\EOF
10271 #define HAVE_ICONV 1
10274 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
10275 echo "configure:10276: checking for iconv declaration" >&5
10276 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
10277 echo $ac_n "(cached) $ac_c" 1>&6
10280 cat > conftest.
$ac_ext <<EOF
10281 #line 10282 "configure"
10282 #include "confdefs.h"
10284 #include <stdlib.h>
10290 #if defined(__STDC__) || defined(__cplusplus)
10291 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10300 if { (eval echo configure
:10301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10302 am_cv_proto_iconv_arg1
=""
10304 echo "configure: failed program was:" >&5
10305 cat conftest.
$ac_ext >&5
10307 am_cv_proto_iconv_arg1
="const"
10310 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10313 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10314 echo "$ac_t""${ac_t:-
10315 }$am_cv_proto_iconv" 1>&6
10316 cat >> confdefs.h
<<EOF
10317 #define ICONV_CONST $am_cv_proto_iconv_arg1
10322 if test "$am_cv_lib_iconv" = yes; then
10328 subdirs
="$configdirs"
10331 cat > confcache
<<\EOF
10332 # This file is a shell script that caches the results of configure
10333 # tests run on this system so they can be shared between configure
10334 # scripts and configure runs. It is not useful on other systems.
10335 # If it contains results you don't want to keep, you may remove or edit it.
10337 # By default, configure uses ./config.cache as the cache file,
10338 # creating it if it does not exist already. You can give configure
10339 # the --cache-file=FILE option to use a different cache file; that is
10340 # what configure does when it calls configure scripts in
10341 # subdirectories, so they share the cache.
10342 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10343 # config.status only pays attention to the cache file if you give it the
10344 # --recheck option to rerun configure.
10347 # The following way of writing the cache mishandles newlines in values,
10348 # but we know of no workaround that is simple, portable, and efficient.
10349 # So, don't put newlines in cache variables' values.
10350 # Ultrix sh set writes to stderr and can't be redirected directly,
10351 # and sets the high bit in the cache file unless we assign to the vars.
10353 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10355 # `set' does not quote correctly, so add quotes (double-quote substitution
10356 # turns \\\\ into \\, and sed turns \\ into \).
10358 -e "s/'/'\\\\''/g" \
10359 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10362 # `set' quotes correctly as required by POSIX, so do not add quotes.
10363 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10366 if cmp -s $cache_file confcache
; then
10369 if test -w $cache_file; then
10370 echo "updating cache $cache_file"
10371 cat confcache
> $cache_file
10373 echo "not updating unwritable cache $cache_file"
10378 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10380 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10381 # Let make expand exec_prefix.
10382 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10384 # Any assignment to VPATH causes Sun make to only execute
10385 # the first set of double-colon rules, so remove it if not needed.
10386 # If there is a colon in the path, we need to keep it.
10387 if test "x$srcdir" = x.
; then
10388 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
10391 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10393 DEFS
=-DHAVE_CONFIG_H
10395 # Without the "./", some shells look in PATH for config.status.
10396 : ${CONFIG_STATUS=./config.status}
10398 echo creating
$CONFIG_STATUS
10399 rm -f $CONFIG_STATUS
10400 cat > $CONFIG_STATUS <<EOF
10402 # Generated automatically by configure.
10403 # Run this file to recreate the current configuration.
10404 # This directory was configured as follows,
10405 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10407 # $0 $ac_configure_args
10409 # Compiler output produced by configure, useful for debugging
10410 # configure, is in ./config.log if it exists.
10412 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10415 case "\$ac_option" in
10416 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10417 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10418 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10419 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10420 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10422 -help | --help | --hel | --he | --h)
10423 echo "\$ac_cs_usage"; exit 0 ;;
10424 *) echo "\$ac_cs_usage"; exit 1 ;;
10428 ac_given_srcdir=$srcdir
10429 ac_given_INSTALL="$INSTALL"
10431 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10433 cat >> $CONFIG_STATUS <<EOF
10435 # Protect against being on the right side of a sed subst in config.status.
10436 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10437 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10441 s%@CFLAGS@%$CFLAGS%g
10442 s%@CPPFLAGS@%$CPPFLAGS%g
10443 s%@CXXFLAGS@%$CXXFLAGS%g
10444 s%@FFLAGS@%$FFLAGS%g
10446 s%@LDFLAGS@%$LDFLAGS%g
10448 s%@exec_prefix@%$exec_prefix%g
10449 s%@prefix@%$prefix%g
10450 s%@program_transform_name@%$program_transform_name%g
10451 s%@bindir@%$bindir%g
10452 s%@sbindir@%$sbindir%g
10453 s%@libexecdir@%$libexecdir%g
10454 s%@datadir@%$datadir%g
10455 s%@sysconfdir@%$sysconfdir%g
10456 s%@sharedstatedir@%$sharedstatedir%g
10457 s%@localstatedir@%$localstatedir%g
10458 s%@libdir@%$libdir%g
10459 s%@includedir@%$includedir%g
10460 s%@oldincludedir@%$oldincludedir%g
10461 s%@infodir@%$infodir%g
10462 s%@mandir@%$mandir%g
10463 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
10464 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
10469 s%@host_alias@%$host_alias%g
10470 s%@host_cpu@%$host_cpu%g
10471 s%@host_vendor@%$host_vendor%g
10472 s%@host_os@%$host_os%g
10473 s%@target@%$target%g
10474 s%@target_alias@%$target_alias%g
10475 s%@target_cpu@%$target_cpu%g
10476 s%@target_vendor@%$target_vendor%g
10477 s%@target_os@%$target_os%g
10479 s%@build_alias@%$build_alias%g
10480 s%@build_cpu@%$build_cpu%g
10481 s%@build_vendor@%$build_vendor%g
10482 s%@build_os@%$build_os%g
10483 s%@RANLIB@%$RANLIB%g
10484 s%@SET_MAKE@%$SET_MAKE%g
10485 s%@ALLOCA@%$ALLOCA%g
10486 s%@USE_NLS@%$USE_NLS%g
10487 s%@MSGFMT@%$MSGFMT%g
10488 s%@GMSGFMT@%$GMSGFMT%g
10489 s%@XGETTEXT@%$XGETTEXT%g
10490 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
10491 s%@CATALOGS@%$CATALOGS%g
10492 s%@CATOBJEXT@%$CATOBJEXT%g
10493 s%@DATADIRNAME@%$DATADIRNAME%g
10494 s%@GMOFILES@%$GMOFILES%g
10495 s%@INSTOBJEXT@%$INSTOBJEXT%g
10496 s%@INTLDEPS@%$INTLDEPS%g
10497 s%@INTLLIBS@%$INTLLIBS%g
10498 s%@INTLOBJS@%$INTLOBJS%g
10499 s%@POFILES@%$POFILES%g
10501 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
10503 s%@GT_YES@%$GT_YES%g
10504 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
10507 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10508 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10509 s%@INSTALL_DATA@%$INSTALL_DATA%g
10513 s%@DLLTOOL@%$DLLTOOL%g
10514 s%@WINDRES@%$WINDRES%g
10516 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
10517 s%@UIOUT_CFLAGS@%$UIOUT_CFLAGS%g
10518 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
10519 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
10520 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
10521 s%@MMALLOC@%$MMALLOC%g
10523 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
10524 s%@TERM_LIB@%$TERM_LIB%g
10525 s%@WIN32LIBS@%$WIN32LIBS%g
10526 s%@LIBGUI@%$LIBGUI%g
10527 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
10528 s%@WIN32LDAPP@%$WIN32LDAPP%g
10529 s%@TCL_VERSION@%$TCL_VERSION%g
10530 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
10531 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
10532 s%@TCL_CC@%$TCL_CC%g
10533 s%@TCL_DEFS@%$TCL_DEFS%g
10534 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
10535 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
10536 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
10537 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
10538 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
10539 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
10540 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
10541 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
10542 s%@TCL_RANLIB@%$TCL_RANLIB%g
10543 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
10544 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
10545 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
10546 s%@TK_VERSION@%$TK_VERSION%g
10547 s%@TK_DEFS@%$TK_DEFS%g
10548 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
10549 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
10550 s%@TK_XLIBSW@%$TK_XLIBSW%g
10551 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
10552 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
10553 s%@TCLHDIR@%$TCLHDIR%g
10554 s%@TKHDIR@%$TKHDIR%g
10555 s%@ITCLHDIR@%$ITCLHDIR%g
10556 s%@ITKHDIR@%$ITKHDIR%g
10557 s%@ITCL_VERSION@%$ITCL_VERSION%g
10558 s%@ITCL_DEFS@%$ITCL_DEFS%g
10559 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
10560 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
10561 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
10562 s%@ITK_VERSION@%$ITK_VERSION%g
10563 s%@ITK_DEFS@%$ITK_DEFS%g
10564 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
10565 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
10566 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
10567 s%@X_CFLAGS@%$X_CFLAGS%g
10568 s%@X_LDFLAGS@%$X_LDFLAGS%g
10569 s%@X_LIBS@%$X_LIBS%g
10570 s%@TCL_DEPS@%$TCL_DEPS%g
10571 s%@TK_DEPS@%$TK_DEPS%g
10572 s%@ITCLLIB@%$ITCLLIB%g
10573 s%@ITCL_DEPS@%$ITCL_DEPS%g
10574 s%@ITKLIB@%$ITKLIB%g
10575 s%@ITK_DEPS@%$ITK_DEPS%g
10576 s%@GDBTKLIBS@%$GDBTKLIBS%g
10577 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
10578 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
10579 s%@IGNORE_SIM@%$IGNORE_SIM%g
10580 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
10581 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
10582 s%@CONFIG_OBS@%$CONFIG_OBS%g
10583 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
10584 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
10585 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
10586 s%@CONFIG_INITS@%$CONFIG_INITS%g
10587 s%@CONFIG_ALL@%$CONFIG_ALL%g
10588 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
10589 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
10590 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
10591 s%@HLDFLAGS@%$HLDFLAGS%g
10592 s%@HLDENV@%$HLDENV%g
10593 s%@target_subdir@%$target_subdir%g
10594 /@host_makefile_frag@/r $host_makefile_frag
10595 s%@host_makefile_frag@%%g
10596 /@target_makefile_frag@/r $target_makefile_frag
10597 s%@target_makefile_frag@%%g
10599 s%@SUBDIRS@%$SUBDIRS%g
10603 s%@EXEEXT@%$EXEEXT%g
10604 s%@LIBICONV@%$LIBICONV%g
10605 s%@subdirs@%$subdirs%g
10610 cat >> $CONFIG_STATUS <<\EOF
10612 # Split the substitutions into bite-sized pieces for seds with
10613 # small command number limits, like on Digital OSF/1 and HP-UX.
10614 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
10615 ac_file
=1 # Number of current file.
10616 ac_beg
=1 # First line for current file.
10617 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
10620 while $ac_more_lines; do
10621 if test $ac_beg -gt 1; then
10622 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
10624 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
10626 if test ! -s conftest.s
$ac_file; then
10627 ac_more_lines
=false
10628 rm -f conftest.s
$ac_file
10630 if test -z "$ac_sed_cmds"; then
10631 ac_sed_cmds
="sed -f conftest.s$ac_file"
10633 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
10635 ac_file
=`expr $ac_file + 1`
10637 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
10640 if test -z "$ac_sed_cmds"; then
10645 cat >> $CONFIG_STATUS <<EOF
10647 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
10649 cat >> $CONFIG_STATUS <<\EOF
10650 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
10651 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10653 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10654 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10655 *) ac_file_in
="${ac_file}.in" ;;
10658 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10660 # Remove last slash and all that follows it. Not all systems have dirname.
10661 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10662 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
10663 # The file is in a subdirectory.
10664 test ! -d "$ac_dir" && mkdir
"$ac_dir"
10665 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
10666 # A "../" for each directory in $ac_dir_suffix.
10667 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10669 ac_dir_suffix
= ac_dots
=
10672 case "$ac_given_srcdir" in
10674 if test -z "$ac_dots"; then top_srcdir
=.
10675 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10676 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
10677 *) # Relative path.
10678 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10679 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10682 case "$ac_given_INSTALL" in
10683 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
10684 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
10687 echo creating
"$ac_file"
10689 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10691 *Makefile
*) ac_comsub
="1i\\
10692 # $configure_input" ;;
10696 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10698 s%@configure_input@%$configure_input%g
10699 s%@srcdir@%$srcdir%g
10700 s%@top_srcdir@%$top_srcdir%g
10701 s%@INSTALL@%$INSTALL%g
10702 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10706 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10707 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10709 # ac_d sets the value in "#define NAME VALUE" lines.
10710 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10711 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10714 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10715 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10716 ac_uB
='\([ ]\)%\1#\2define\3'
10719 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10720 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10721 ac_eB
='$%\1#\2define\3'
10725 if test "${CONFIG_HEADERS+set}" != set; then
10727 cat >> $CONFIG_STATUS <<EOF
10728 CONFIG_HEADERS="config.h:config.in"
10730 cat >> $CONFIG_STATUS <<\EOF
10732 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10733 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10735 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10736 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10737 *) ac_file_in
="${ac_file}.in" ;;
10740 echo creating
$ac_file
10742 rm -f conftest.frag conftest.
in conftest.out
10743 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10744 cat $ac_file_inputs > conftest.
in
10748 # Transform confdefs.h into a sed script conftest.vals that substitutes
10749 # the proper values into config.h.in to produce config.h. And first:
10750 # Protect against being on the right side of a sed subst in config.status.
10751 # Protect against being in an unquoted here document in config.status.
10752 rm -f conftest.vals
10753 cat > conftest.hdr
<<\EOF
10756 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10760 sed -n -f conftest.hdr confdefs.h > conftest.vals
10763 # This sed command replaces #undef with comments. This is necessary, for
10764 # example, in the case of _POSIX_SOURCE, which is predefined and required
10765 # on some systems where configure will not decide to define it.
10766 cat >> conftest.vals <<\EOF
10767 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10770 # Break up conftest.vals because some shells have a limit on
10771 # the size of here documents, and old seds have small limits too.
10773 rm -f conftest.tail
10776 ac_lines=`grep -c . conftest.vals
`
10777 # grep -c gives empty output for an empty file on some AIX systems.
10778 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10779 # Write a limited-size here document to conftest.frag.
10780 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10781 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10783 sed -f conftest.frag conftest.in > conftest.out
10785 mv conftest.out conftest.in
10786 ' >> $CONFIG_STATUS
10787 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10788 rm -f conftest.vals
10789 mv conftest.tail conftest.vals
10791 rm -f conftest.vals
10793 cat >> $CONFIG_STATUS <<\EOF
10794 rm -f conftest.frag conftest.h
10795 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10796 cat conftest.in >> conftest.h
10798 if cmp -s $ac_file conftest.h 2>/dev/null; then
10799 echo "$ac_file is unchanged"
10802 # Remove last slash and all that follows it. Not all systems have dirname.
10803 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10804 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10805 # The file is in a subdirectory.
10806 test ! -d "$ac_dir" && mkdir "$ac_dir"
10809 mv conftest.h $ac_file
10815 cat >> $CONFIG_STATUS <<EOF
10816 ac_sources="$files"
10820 cat >> $CONFIG_STATUS <<\EOF
10821 srcdir=$ac_given_srcdir
10822 while test -n "$ac_sources"; do
10823 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10824 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10826 echo "linking $srcdir/$ac_source to $ac_dest"
10828 if test ! -r $srcdir/$ac_source; then
10829 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10833 # Make relative symlinks.
10834 # Remove last slash and all that follows it. Not all systems have dirname.
10835 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10836 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10837 # The dest file is in a subdirectory.
10838 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10839 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10840 # A "../" for each directory in $ac_dest_dir_suffix.
10841 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10843 ac_dest_dir_suffix= ac_dots=
10847 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10848 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10851 # Make a symlink if possible; otherwise try a hard link.
10852 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10853 ln $srcdir/$ac_source $ac_dest; then :
10855 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10859 cat >> $CONFIG_STATUS <<EOF
10861 gdb_host_cpu=$gdb_host_cpu
10862 gdb_target_cpu=$gdb_target_cpu
10863 nativefile=$nativefile
10866 cat >> $CONFIG_STATUS <<\EOF
10868 if test "${nativefile}" = ""; then
10870 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
10871 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
10872 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
10874 mv -f Makefile.tem Makefile
10877 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
10878 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
10879 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
10880 mv -f Makefile.tmp Makefile
10883 case x$CONFIG_HEADERS in
10884 xconfig.h:config.in)
10890 chmod +x $CONFIG_STATUS
10891 rm -fr confdefs* $ac_clean_files
10892 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10894 if test "$no_recursion" != yes; then
10896 # Remove --cache-file and --srcdir arguments so they do not pile up.
10897 ac_sub_configure_args=
10899 for ac_arg in $ac_configure_args; do
10900 if test -n "$ac_prev"; then
10905 -cache-file | --cache-file | --cache-fil | --cache-fi \
10906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10907 ac_prev=cache_file ;;
10908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
10911 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10913 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10915 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10919 for ac_config_dir in $configdirs; do
10921 # Do not complain, so a configure script can configure whichever
10922 # parts of a large source tree are present.
10923 if test ! -d $srcdir/$ac_config_dir; then
10927 echo configuring in $ac_config_dir
10932 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
10934 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
10942 # A "../" for each directory in /$ac_config_dir.
10943 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
10946 .) # No --srcdir option. We are building in place.
10947 ac_sub_srcdir=$srcdir ;;
10948 /*) # Absolute path.
10949 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
10950 *) # Relative path.
10951 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
10954 # Check for guested configure; otherwise get Cygnus style configure.
10955 if test -f $ac_sub_srcdir/configure; then
10956 ac_sub_configure=$ac_sub_srcdir/configure
10957 elif test -f $ac_sub_srcdir/configure.in; then
10958 ac_sub_configure=$ac_configure
10960 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
10964 # The recursion is here.
10965 if test -n "$ac_sub_configure"; then
10967 # Make the cache file name correct relative to the subdirectory.
10968 case "$cache_file" in
10969 /*) ac_sub_cache_file=$cache_file ;;
10970 *) # Relative path.
10971 ac_sub_cache_file="$ac_dots$cache_file" ;;
10973 case "$ac_given_INSTALL" in
10974 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10975 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10978 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
10979 # The eval makes quoting arguments work.
10980 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
10983 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }