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 --with-separate-debug-dir=path Look for global separate debug info in this path [LIBDIR/debug]"
24 --disable-gdbcli disable command-line interface (CLI)"
26 --disable-gdbmi disable machine-interface (MI)"
28 --enable-tui enable full-screen terminal user interface (TUI)"
30 --enable-gdbtk enable gdbtk graphical user interface (GUI)"
32 --enable-profiling enable profiling of GDB"
34 --without-included-regex don't use included regex; this is the default
35 on systems with version 2 of the GNU C library
36 (use with caution on other system)"
38 --with-sysroot[=DIR] Search for usr/lib et al within DIR."
40 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
42 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
44 --with-mmalloc Use memory mapped malloc package"
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-multi-ice build the multi-ice-gdb-server"
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 cat >> confdefs.h
<<\EOF
834 #define _GNU_SOURCE 1
838 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
839 echo "configure:840: checking how to run the C preprocessor" >&5
840 # On Suns, sometimes $CPP names a directory.
841 if test -n "$CPP" && test -d "$CPP"; then
844 if test -z "$CPP"; then
845 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 # This must be in double quotes, not single quotes, because CPP may get
849 # substituted into the Makefile and "${CC-cc}" will confuse make.
851 # On the NeXT, cc -E runs the code through the compiler's parser,
852 # not just through cpp.
853 cat > conftest.
$ac_ext <<EOF
854 #line 855 "configure"
855 #include "confdefs.h"
859 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
860 { (eval echo configure
:861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
861 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
862 if test -z "$ac_err"; then
866 echo "configure: failed program was:" >&5
867 cat conftest.
$ac_ext >&5
869 CPP
="${CC-cc} -E -traditional-cpp"
870 cat > conftest.
$ac_ext <<EOF
871 #line 872 "configure"
872 #include "confdefs.h"
876 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
877 { (eval echo configure
:878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
878 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
879 if test -z "$ac_err"; then
883 echo "configure: failed program was:" >&5
884 cat conftest.
$ac_ext >&5
886 CPP
="${CC-cc} -nologo -E"
887 cat > conftest.
$ac_ext <<EOF
888 #line 889 "configure"
889 #include "confdefs.h"
893 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
894 { (eval echo configure
:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
895 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
896 if test -z "$ac_err"; then
900 echo "configure: failed program was:" >&5
901 cat conftest.
$ac_ext >&5
910 ac_cv_prog_CPP
="$CPP"
912 CPP
="$ac_cv_prog_CPP"
914 ac_cv_prog_CPP
="$CPP"
916 echo "$ac_t""$CPP" 1>&6
918 echo $ac_n "checking for AIX""... $ac_c" 1>&6
919 echo "configure:920: checking for AIX" >&5
920 cat > conftest.
$ac_ext <<EOF
921 #line 922 "configure"
922 #include "confdefs.h"
928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
929 egrep "yes" >/dev
/null
2>&1; then
931 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
932 #define _ALL_SOURCE 1
937 echo "$ac_t""no" 1>&6
942 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
943 echo "configure:944: checking for POSIXized ISC" >&5
944 if test -d /etc
/conf
/kconfig.d
&&
945 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
947 echo "$ac_t""yes" 1>&6
948 ISC
=yes # If later tests want to check for ISC.
949 cat >> confdefs.h
<<\EOF
950 #define _POSIX_SOURCE 1
953 if test "$GCC" = yes; then
959 echo "$ac_t""no" 1>&6
966 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
967 echo "configure:968: checking for ${CC-cc} option to accept ANSI C" >&5
968 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 am_cv_prog_cc_stdc
=no
973 # Don't try gcc -ansi; that turns off useful extensions and
974 # breaks some systems' header files.
976 # Ultrix and OSF/1 -std1
977 # HP-UX 10.20 and later -Ae
978 # HP-UX older versions -Aa -D_HPUX_SOURCE
979 # SVR4 -Xc -D__EXTENSIONS__
980 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
982 CC
="$ac_save_CC $ac_arg"
983 cat > conftest.
$ac_ext <<EOF
984 #line 985 "configure"
985 #include "confdefs.h"
988 #include <sys/types.h>
989 #include <sys/stat.h>
990 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
991 struct buf { int x; };
992 FILE * (*rcsopen) (struct buf *, struct stat *, int);
993 static char *e (p, i)
999 static char *f (char * (*g) (char **, int), char **p, ...)
1004 s = g (p, va_arg (v,int));
1008 int test (int i, double x);
1009 struct s1 {int (*f) (int a);};
1010 struct s2 {int (*f) (double a);};
1011 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1017 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1021 if { (eval echo configure
:1022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1023 am_cv_prog_cc_stdc
="$ac_arg"; break
1025 echo "configure: failed program was:" >&5
1026 cat conftest.
$ac_ext >&5
1034 if test -z "$am_cv_prog_cc_stdc"; then
1035 echo "$ac_t""none needed" 1>&6
1037 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1039 case "x$am_cv_prog_cc_stdc" in
1041 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1046 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1047 if test -f $ac_dir/install-sh
; then
1049 ac_install_sh
="$ac_aux_dir/install-sh -c"
1051 elif test -f $ac_dir/install.sh
; then
1053 ac_install_sh
="$ac_aux_dir/install.sh -c"
1057 if test -z "$ac_aux_dir"; then
1058 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1060 ac_config_guess
=$ac_aux_dir/config.guess
1061 ac_config_sub
=$ac_aux_dir/config.sub
1062 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1065 # Do some error checking and defaulting for the host and target type.
1067 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1070 # 1. You are not allowed to specify --host, --target, and nonopt at the
1072 # 2. Host defaults to nonopt.
1073 # 3. If nonopt is not specified, then host defaults to the current host,
1074 # as determined by config.guess.
1075 # 4. Target and build default to nonopt.
1076 # 5. If nonopt is not specified, then target and build default to host.
1078 # The aliases save the names the user supplied, while $host etc.
1079 # will get canonicalized.
1080 case $host---$target---$nonopt in
1081 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1082 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1086 # Make sure we can run config.sub.
1087 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1088 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1091 echo $ac_n "checking host system type""... $ac_c" 1>&6
1092 echo "configure:1093: checking host system type" >&5
1095 case "$host_alias" in
1099 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1100 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1102 *) host_alias
=$nonopt ;;
1106 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1107 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1108 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1109 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1110 echo "$ac_t""$host" 1>&6
1112 echo $ac_n "checking target system type""... $ac_c" 1>&6
1113 echo "configure:1114: checking target system type" >&5
1115 target_alias
=$target
1116 case "$target_alias" in
1119 NONE
) target_alias
=$host_alias ;;
1120 *) target_alias
=$nonopt ;;
1124 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1125 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1126 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1127 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1128 echo "$ac_t""$target" 1>&6
1130 echo $ac_n "checking build system type""... $ac_c" 1>&6
1131 echo "configure:1132: checking build system type" >&5
1134 case "$build_alias" in
1137 NONE
) build_alias
=$host_alias ;;
1138 *) build_alias
=$nonopt ;;
1142 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1143 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1144 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1145 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1146 echo "$ac_t""$build" 1>&6
1148 test "$host_alias" != "$target_alias" &&
1149 test "$program_prefix$program_suffix$program_transform_name" = \
1151 program_prefix
=${target_alias}-
1154 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
1155 # doesn't support cross-compilation, but the one from Autoconf 2.5x
1156 # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
1157 # deal with the lossage. Note that CY_GNU_GETTEXT currently calls
1158 # AC_PROG_RANLIB. This can be removed when we switch to Autoconf
1160 if test $host != $build; then
1161 ac_tool_prefix
=${host_alias}-
1166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1167 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1169 echo "configure:1170: checking for $ac_word" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 if test -n "$RANLIB"; then
1174 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1176 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1178 for ac_dir
in $ac_dummy; do
1179 test -z "$ac_dir" && ac_dir
=.
1180 if test -f $ac_dir/$ac_word; then
1181 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1188 RANLIB
="$ac_cv_prog_RANLIB"
1189 if test -n "$RANLIB"; then
1190 echo "$ac_t""$RANLIB" 1>&6
1192 echo "$ac_t""no" 1>&6
1196 if test -z "$ac_cv_prog_RANLIB"; then
1197 if test -n "$ac_tool_prefix"; then
1198 # Extract the first word of "ranlib", so it can be a program name with args.
1199 set dummy ranlib
; ac_word
=$2
1200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1201 echo "configure:1202: checking for $ac_word" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 if test -n "$RANLIB"; then
1206 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1208 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1210 for ac_dir
in $ac_dummy; do
1211 test -z "$ac_dir" && ac_dir
=.
1212 if test -f $ac_dir/$ac_word; then
1213 ac_cv_prog_RANLIB
="ranlib"
1218 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1221 RANLIB
="$ac_cv_prog_RANLIB"
1222 if test -n "$RANLIB"; then
1223 echo "$ac_t""$RANLIB" 1>&6
1225 echo "$ac_t""no" 1>&6
1235 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1236 echo "configure:1237: checking whether ${MAKE-make} sets \${MAKE}" >&5
1237 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1238 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 cat > conftestmake
<<\EOF
1243 @
echo 'ac_maketemp="${MAKE}"'
1245 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1246 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1247 if test -n "$ac_maketemp"; then
1248 eval ac_cv_prog_make_
${ac_make}_set
=yes
1250 eval ac_cv_prog_make_
${ac_make}_set
=no
1254 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1255 echo "$ac_t""yes" 1>&6
1258 echo "$ac_t""no" 1>&6
1259 SET_MAKE
="MAKE=${MAKE-make}"
1262 # Extract the first word of "ranlib", so it can be a program name with args.
1263 set dummy ranlib
; ac_word
=$2
1264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1265 echo "configure:1266: checking for $ac_word" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 if test -n "$RANLIB"; then
1270 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1272 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1274 for ac_dir
in $ac_dummy; do
1275 test -z "$ac_dir" && ac_dir
=.
1276 if test -f $ac_dir/$ac_word; then
1277 ac_cv_prog_RANLIB
="ranlib"
1282 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1285 RANLIB
="$ac_cv_prog_RANLIB"
1286 if test -n "$RANLIB"; then
1287 echo "$ac_t""$RANLIB" 1>&6
1289 echo "$ac_t""no" 1>&6
1292 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1293 echo "configure:1294: checking for ANSI C header files" >&5
1294 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 cat > conftest.
$ac_ext <<EOF
1298 #line 1299 "configure"
1299 #include "confdefs.h"
1305 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1306 { (eval echo configure
:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1307 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1308 if test -z "$ac_err"; then
1310 ac_cv_header_stdc
=yes
1313 echo "configure: failed program was:" >&5
1314 cat conftest.
$ac_ext >&5
1316 ac_cv_header_stdc
=no
1320 if test $ac_cv_header_stdc = yes; then
1321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1322 cat > conftest.
$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1328 egrep "memchr" >/dev
/null
2>&1; then
1332 ac_cv_header_stdc
=no
1338 if test $ac_cv_header_stdc = yes; then
1339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1340 cat > conftest.
$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1346 egrep "free" >/dev
/null
2>&1; then
1350 ac_cv_header_stdc
=no
1356 if test $ac_cv_header_stdc = yes; then
1357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1358 if test "$cross_compiling" = yes; then
1361 cat > conftest.
$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1365 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1366 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1368 int main () { int i; for (i = 0; i < 256; i++)
1369 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1373 if { (eval echo configure
:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1377 echo "configure: failed program was:" >&5
1378 cat conftest.
$ac_ext >&5
1380 ac_cv_header_stdc
=no
1388 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1389 if test $ac_cv_header_stdc = yes; then
1390 cat >> confdefs.h
<<\EOF
1391 #define STDC_HEADERS 1
1396 echo $ac_n "checking for working const""... $ac_c" 1>&6
1397 echo "configure:1398: checking for working const" >&5
1398 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 cat > conftest.
$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1407 /* Ultrix mips cc rejects this. */
1408 typedef int charset[2]; const charset x;
1409 /* SunOS 4.1.1 cc rejects this. */
1410 char const *const *ccp;
1412 /* NEC SVR4.0.2 mips cc rejects this. */
1413 struct point {int x, y;};
1414 static struct point const zero = {0,0};
1415 /* AIX XL C 1.02.0.0 rejects this.
1416 It does not let you subtract one const X* pointer from another in an arm
1417 of an if-expression whose if-part is not a constant expression */
1418 const char *g = "string";
1419 ccp = &g + (g ? g-g : 0);
1420 /* HPUX 7.0 cc rejects these. */
1423 ccp = (char const *const *) p;
1424 { /* SCO 3.2v4 cc rejects this. */
1426 char const *s = 0 ? (char *) 0 : (char const *) 0;
1430 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1432 const int *foo = &x[0];
1435 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1436 typedef const int *iptr;
1440 { /* AIX XL C 1.02.0.0 rejects this saying
1441 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1442 struct s { int j; const int *ap[3]; };
1443 struct s *b; b->j = 5;
1445 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1451 if { (eval echo configure
:1452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1455 echo "configure: failed program was:" >&5
1456 cat conftest.
$ac_ext >&5
1463 echo "$ac_t""$ac_cv_c_const" 1>&6
1464 if test $ac_cv_c_const = no
; then
1465 cat >> confdefs.h
<<\EOF
1471 echo $ac_n "checking for inline""... $ac_c" 1>&6
1472 echo "configure:1473: checking for inline" >&5
1473 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1477 for ac_kw
in inline __inline__ __inline
; do
1478 cat > conftest.
$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1486 if { (eval echo configure
:1487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1488 ac_cv_c_inline
=$ac_kw; break
1490 echo "configure: failed program was:" >&5
1491 cat conftest.
$ac_ext >&5
1498 echo "$ac_t""$ac_cv_c_inline" 1>&6
1499 case "$ac_cv_c_inline" in
1501 no
) cat >> confdefs.h
<<\EOF
1505 *) cat >> confdefs.h
<<EOF
1506 #define inline $ac_cv_c_inline
1511 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1512 echo "configure:1513: checking for off_t" >&5
1513 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1516 cat > conftest.
$ac_ext <<EOF
1517 #line 1518 "configure"
1518 #include "confdefs.h"
1519 #include <sys/types.h>
1525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1526 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1528 ac_cv_type_off_t
=yes
1536 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1537 if test $ac_cv_type_off_t = no
; then
1538 cat >> confdefs.h
<<\EOF
1544 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1545 echo "configure:1546: checking for size_t" >&5
1546 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1549 cat > conftest.
$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1552 #include <sys/types.h>
1558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1559 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1561 ac_cv_type_size_t
=yes
1564 ac_cv_type_size_t
=no
1569 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1570 if test $ac_cv_type_size_t = no
; then
1571 cat >> confdefs.h
<<\EOF
1572 #define size_t unsigned
1577 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1578 # for constant arguments. Useless!
1579 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1580 echo "configure:1581: checking for working alloca.h" >&5
1581 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 cat > conftest.
$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1589 char *p = alloca(2 * sizeof(int));
1592 if { (eval echo configure
:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1594 ac_cv_header_alloca_h
=yes
1596 echo "configure: failed program was:" >&5
1597 cat conftest.
$ac_ext >&5
1599 ac_cv_header_alloca_h
=no
1604 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1605 if test $ac_cv_header_alloca_h = yes; then
1606 cat >> confdefs.h
<<\EOF
1607 #define HAVE_ALLOCA_H 1
1612 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1613 echo "configure:1614: checking for alloca" >&5
1614 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 cat > conftest.
$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1622 # define alloca __builtin_alloca
1625 # include <malloc.h>
1626 # define alloca _alloca
1629 # include <alloca.h>
1634 # ifndef alloca /* predefined by HP cc +Olibcalls */
1643 char *p = (char *) alloca(1);
1646 if { (eval echo configure
:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1648 ac_cv_func_alloca_works
=yes
1650 echo "configure: failed program was:" >&5
1651 cat conftest.
$ac_ext >&5
1653 ac_cv_func_alloca_works
=no
1658 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1659 if test $ac_cv_func_alloca_works = yes; then
1660 cat >> confdefs.h
<<\EOF
1661 #define HAVE_ALLOCA 1
1666 if test $ac_cv_func_alloca_works = no
; then
1667 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1668 # that cause trouble. Some versions do not even contain alloca or
1669 # contain a buggy version. If you still want to use their alloca,
1670 # use ar to extract alloca.o from them instead of compiling alloca.c.
1671 ALLOCA
=alloca.
${ac_objext}
1672 cat >> confdefs.h
<<\EOF
1677 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1678 echo "configure:1679: checking whether alloca needs Cray hooks" >&5
1679 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 cat > conftest.
$ac_ext <<EOF
1683 #line 1684 "configure"
1684 #include "confdefs.h"
1685 #if defined(CRAY) && ! defined(CRAY2)
1692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1693 egrep "webecray" >/dev
/null
2>&1; then
1704 echo "$ac_t""$ac_cv_os_cray" 1>&6
1705 if test $ac_cv_os_cray = yes; then
1706 for ac_func
in _getb67 GETB67 getb67
; do
1707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1708 echo "configure:1709: checking for $ac_func" >&5
1709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 cat > conftest.
$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715 /* System header to define __stub macros and hopefully few prototypes,
1716 which can conflict with char $ac_func(); below. */
1718 /* Override any gcc2 internal prototype to avoid an error. */
1719 /* We use char because int might match the return type of a gcc2
1720 builtin and then its argument prototype would still apply. */
1725 /* The GNU C library defines this for functions which it implements
1726 to always fail with ENOSYS. Some functions are actually named
1727 something starting with __ and the normal name is an alias. */
1728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1736 if { (eval echo configure
:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1738 eval "ac_cv_func_$ac_func=yes"
1740 echo "configure: failed program was:" >&5
1741 cat conftest.
$ac_ext >&5
1743 eval "ac_cv_func_$ac_func=no"
1748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1749 echo "$ac_t""yes" 1>&6
1750 cat >> confdefs.h
<<EOF
1751 #define CRAY_STACKSEG_END $ac_func
1756 echo "$ac_t""no" 1>&6
1762 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1763 echo "configure:1764: checking stack direction for C alloca" >&5
1764 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1767 if test "$cross_compiling" = yes; then
1768 ac_cv_c_stack_direction
=0
1770 cat > conftest.
$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1773 find_stack_direction ()
1775 static char *addr = 0;
1780 return find_stack_direction ();
1783 return (&dummy > addr) ? 1 : -1;
1787 exit (find_stack_direction() < 0);
1790 if { (eval echo configure
:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1792 ac_cv_c_stack_direction
=1
1794 echo "configure: failed program was:" >&5
1795 cat conftest.
$ac_ext >&5
1797 ac_cv_c_stack_direction
=-1
1804 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1805 cat >> confdefs.h
<<EOF
1806 #define STACK_DIRECTION $ac_cv_c_stack_direction
1811 for ac_hdr
in unistd.h
1813 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_hdr" >&5
1816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 cat > conftest.
$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1824 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1825 { (eval echo configure
:1826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1826 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1827 if test -z "$ac_err"; then
1829 eval "ac_cv_header_$ac_safe=yes"
1832 echo "configure: failed program was:" >&5
1833 cat conftest.
$ac_ext >&5
1835 eval "ac_cv_header_$ac_safe=no"
1839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1840 echo "$ac_t""yes" 1>&6
1841 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1842 cat >> confdefs.h
<<EOF
1843 #define $ac_tr_hdr 1
1847 echo "$ac_t""no" 1>&6
1851 for ac_func
in getpagesize
1853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1854 echo "configure:1855: checking for $ac_func" >&5
1855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 cat > conftest.
$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1861 /* System header to define __stub macros and hopefully few prototypes,
1862 which can conflict with char $ac_func(); below. */
1864 /* Override any gcc2 internal prototype to avoid an error. */
1865 /* We use char because int might match the return type of a gcc2
1866 builtin and then its argument prototype would still apply. */
1871 /* The GNU C library defines this for functions which it implements
1872 to always fail with ENOSYS. Some functions are actually named
1873 something starting with __ and the normal name is an alias. */
1874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1882 if { (eval echo configure
:1883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1884 eval "ac_cv_func_$ac_func=yes"
1886 echo "configure: failed program was:" >&5
1887 cat conftest.
$ac_ext >&5
1889 eval "ac_cv_func_$ac_func=no"
1894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1895 echo "$ac_t""yes" 1>&6
1896 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1897 cat >> confdefs.h
<<EOF
1898 #define $ac_tr_func 1
1902 echo "$ac_t""no" 1>&6
1906 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1907 echo "configure:1908: checking for working mmap" >&5
1908 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 if test "$cross_compiling" = yes; then
1912 ac_cv_func_mmap_fixed_mapped
=no
1914 cat > conftest.
$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1918 /* Thanks to Mike Haertel and Jim Avera for this test.
1919 Here is a matrix of mmap possibilities:
1920 mmap private not fixed
1921 mmap private fixed at somewhere currently unmapped
1922 mmap private fixed at somewhere already mapped
1923 mmap shared not fixed
1924 mmap shared fixed at somewhere currently unmapped
1925 mmap shared fixed at somewhere already mapped
1926 For private mappings, we should verify that changes cannot be read()
1927 back from the file, nor mmap's back from the file at a different
1928 address. (There have been systems where private was not correctly
1929 implemented like the infamous i386 svr4.0, and systems where the
1930 VM page cache was not coherent with the filesystem buffer cache
1931 like early versions of FreeBSD and possibly contemporary NetBSD.)
1932 For shared mappings, we should conversely verify that changes get
1933 propogated back to all the places they're supposed to be.
1935 Grep wants private fixed already mapped.
1936 The main things grep needs to know about mmap are:
1937 * does it exist and is it safe to write into the mmap'd area
1938 * how to use it (BSD variants) */
1939 #include <sys/types.h>
1941 #include <sys/mman.h>
1943 /* This mess was copied from the GNU getpagesize.h. */
1944 #ifndef HAVE_GETPAGESIZE
1945 # ifdef HAVE_UNISTD_H
1946 # include <unistd.h>
1949 /* Assume that all systems that can run configure have sys/param.h. */
1950 # ifndef HAVE_SYS_PARAM_H
1951 # define HAVE_SYS_PARAM_H 1
1954 # ifdef _SC_PAGESIZE
1955 # define getpagesize() sysconf(_SC_PAGESIZE)
1956 # else /* no _SC_PAGESIZE */
1957 # ifdef HAVE_SYS_PARAM_H
1958 # include <sys/param.h>
1959 # ifdef EXEC_PAGESIZE
1960 # define getpagesize() EXEC_PAGESIZE
1961 # else /* no EXEC_PAGESIZE */
1963 # define getpagesize() NBPG * CLSIZE
1966 # endif /* no CLSIZE */
1967 # else /* no NBPG */
1969 # define getpagesize() NBPC
1970 # else /* no NBPC */
1972 # define getpagesize() PAGESIZE
1973 # endif /* PAGESIZE */
1974 # endif /* no NBPC */
1975 # endif /* no NBPG */
1976 # endif /* no EXEC_PAGESIZE */
1977 # else /* no HAVE_SYS_PARAM_H */
1978 # define getpagesize() 8192 /* punt totally */
1979 # endif /* no HAVE_SYS_PARAM_H */
1980 # endif /* no _SC_PAGESIZE */
1982 #endif /* no HAVE_GETPAGESIZE */
1985 extern "C" { void *malloc(unsigned); }
1993 char *data, *data2, *data3;
1997 pagesize = getpagesize();
2000 * First, make a file with some known garbage in it.
2002 data = malloc(pagesize);
2005 for (i = 0; i < pagesize; ++i)
2006 *(data + i) = rand();
2008 fd = creat("conftestmmap", 0600);
2011 if (write(fd, data, pagesize) != pagesize)
2016 * Next, try to mmap the file at a fixed address which
2017 * already has something else allocated at it. If we can,
2018 * also make sure that we see the same garbage.
2020 fd = open("conftestmmap", O_RDWR);
2023 data2 = malloc(2 * pagesize);
2026 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2027 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2028 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2030 for (i = 0; i < pagesize; ++i)
2031 if (*(data + i) != *(data2 + i))
2035 * Finally, make sure that changes to the mapped area
2036 * do not percolate back to the file as seen by read().
2037 * (This is a bug on some variants of i386 svr4.0.)
2039 for (i = 0; i < pagesize; ++i)
2040 *(data2 + i) = *(data2 + i) + 1;
2041 data3 = malloc(pagesize);
2044 if (read(fd, data3, pagesize) != pagesize)
2046 for (i = 0; i < pagesize; ++i)
2047 if (*(data + i) != *(data3 + i))
2050 unlink("conftestmmap");
2055 if { (eval echo configure
:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2057 ac_cv_func_mmap_fixed_mapped
=yes
2059 echo "configure: failed program was:" >&5
2060 cat conftest.
$ac_ext >&5
2062 ac_cv_func_mmap_fixed_mapped
=no
2069 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2070 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2071 cat >> confdefs.h
<<\EOF
2078 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2079 unistd.h values.h sys
/param.h
2081 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2083 echo "configure:2084: checking for $ac_hdr" >&5
2084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.
$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2092 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2093 { (eval echo configure
:2094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2094 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2095 if test -z "$ac_err"; then
2097 eval "ac_cv_header_$ac_safe=yes"
2100 echo "configure: failed program was:" >&5
2101 cat conftest.
$ac_ext >&5
2103 eval "ac_cv_header_$ac_safe=no"
2107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2108 echo "$ac_t""yes" 1>&6
2109 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2110 cat >> confdefs.h
<<EOF
2111 #define $ac_tr_hdr 1
2115 echo "$ac_t""no" 1>&6
2119 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2120 __argz_count __argz_stringify __argz_next
2122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_func" >&5
2124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 cat > conftest.
$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2130 /* System header to define __stub macros and hopefully few prototypes,
2131 which can conflict with char $ac_func(); below. */
2133 /* Override any gcc2 internal prototype to avoid an error. */
2134 /* We use char because int might match the return type of a gcc2
2135 builtin and then its argument prototype would still apply. */
2140 /* The GNU C library defines this for functions which it implements
2141 to always fail with ENOSYS. Some functions are actually named
2142 something starting with __ and the normal name is an alias. */
2143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2151 if { (eval echo configure
:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2153 eval "ac_cv_func_$ac_func=yes"
2155 echo "configure: failed program was:" >&5
2156 cat conftest.
$ac_ext >&5
2158 eval "ac_cv_func_$ac_func=no"
2163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2164 echo "$ac_t""yes" 1>&6
2165 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2166 cat >> confdefs.h
<<EOF
2167 #define $ac_tr_func 1
2171 echo "$ac_t""no" 1>&6
2176 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2177 for ac_func
in stpcpy
2179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2180 echo "configure:2181: checking for $ac_func" >&5
2181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 cat > conftest.
$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2187 /* System header to define __stub macros and hopefully few prototypes,
2188 which can conflict with char $ac_func(); below. */
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2197 /* The GNU C library defines this for functions which it implements
2198 to always fail with ENOSYS. Some functions are actually named
2199 something starting with __ and the normal name is an alias. */
2200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2208 if { (eval echo configure
:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2210 eval "ac_cv_func_$ac_func=yes"
2212 echo "configure: failed program was:" >&5
2213 cat conftest.
$ac_ext >&5
2215 eval "ac_cv_func_$ac_func=no"
2220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2221 echo "$ac_t""yes" 1>&6
2222 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2223 cat >> confdefs.h
<<EOF
2224 #define $ac_tr_func 1
2228 echo "$ac_t""no" 1>&6
2233 if test "${ac_cv_func_stpcpy}" = "yes"; then
2234 cat >> confdefs.h
<<\EOF
2235 #define HAVE_STPCPY 1
2240 if test $ac_cv_header_locale_h = yes; then
2241 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2242 echo "configure:2243: checking for LC_MESSAGES" >&5
2243 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2246 cat > conftest.
$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2254 if { (eval echo configure
:2255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2256 am_cv_val_LC_MESSAGES
=yes
2258 echo "configure: failed program was:" >&5
2259 cat conftest.
$ac_ext >&5
2261 am_cv_val_LC_MESSAGES
=no
2266 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2267 if test $am_cv_val_LC_MESSAGES = yes; then
2268 cat >> confdefs.h
<<\EOF
2269 #define HAVE_LC_MESSAGES 1
2274 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2275 echo "configure:2276: checking whether NLS is requested" >&5
2276 # Check whether --enable-nls or --disable-nls was given.
2277 if test "${enable_nls+set}" = set; then
2278 enableval
="$enable_nls"
2284 echo "$ac_t""$USE_NLS" 1>&6
2287 USE_INCLUDED_LIBINTL
=no
2289 if test "$USE_NLS" = "yes"; then
2290 cat >> confdefs.h
<<\EOF
2291 #define ENABLE_NLS 1
2294 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2295 echo "configure:2296: checking whether included gettext is requested" >&5
2296 # Check whether --with-included-gettext or --without-included-gettext was given.
2297 if test "${with_included_gettext+set}" = set; then
2298 withval
="$with_included_gettext"
2299 nls_cv_force_use_gnu_gettext
=$withval
2301 nls_cv_force_use_gnu_gettext
=no
2304 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2306 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2307 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2309 nls_cv_header_libgt
=
2312 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2313 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2314 echo "configure:2315: checking for libintl.h" >&5
2315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 cat > conftest.
$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2321 #include <libintl.h>
2323 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2324 { (eval echo configure
:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2325 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2326 if test -z "$ac_err"; then
2328 eval "ac_cv_header_$ac_safe=yes"
2331 echo "configure: failed program was:" >&5
2332 cat conftest.
$ac_ext >&5
2334 eval "ac_cv_header_$ac_safe=no"
2338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2339 echo "$ac_t""yes" 1>&6
2340 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2341 echo "configure:2342: checking for gettext in libc" >&5
2342 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2345 cat > conftest.
$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2348 #include <libintl.h>
2350 return (int) gettext ("")
2353 if { (eval echo configure
:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2355 gt_cv_func_gettext_libc
=yes
2357 echo "configure: failed program was:" >&5
2358 cat conftest.
$ac_ext >&5
2360 gt_cv_func_gettext_libc
=no
2365 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2367 if test "$gt_cv_func_gettext_libc" != "yes"; then
2368 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2369 echo "configure:2370: checking for bindtextdomain in -lintl" >&5
2370 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 ac_save_LIBS
="$LIBS"
2376 cat > conftest.
$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382 char bindtextdomain();
2388 if { (eval echo configure
:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2390 eval "ac_cv_lib_$ac_lib_var=yes"
2392 echo "configure: failed program was:" >&5
2393 cat conftest.
$ac_ext >&5
2395 eval "ac_cv_lib_$ac_lib_var=no"
2398 LIBS
="$ac_save_LIBS"
2401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2404 echo "configure:2405: checking for gettext in libintl" >&5
2405 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 cat > conftest.
$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2413 return (int) gettext ("")
2416 if { (eval echo configure
:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2418 gt_cv_func_gettext_libintl
=yes
2420 echo "configure: failed program was:" >&5
2421 cat conftest.
$ac_ext >&5
2423 gt_cv_func_gettext_libintl
=no
2428 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2430 echo "$ac_t""no" 1>&6
2435 if test "$gt_cv_func_gettext_libc" = "yes" \
2436 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2437 cat >> confdefs.h
<<\EOF
2438 #define HAVE_GETTEXT 1
2441 # Extract the first word of "msgfmt", so it can be a program name with args.
2442 set dummy msgfmt
; ac_word
=$2
2443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2444 echo "configure:2445: checking for $ac_word" >&5
2445 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2450 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2453 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2454 for ac_dir
in $PATH; do
2455 test -z "$ac_dir" && ac_dir
=.
2456 if test -f $ac_dir/$ac_word; then
2457 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2458 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2464 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2468 MSGFMT
="$ac_cv_path_MSGFMT"
2469 if test -n "$MSGFMT"; then
2470 echo "$ac_t""$MSGFMT" 1>&6
2472 echo "$ac_t""no" 1>&6
2474 if test "$MSGFMT" != "no"; then
2475 for ac_func
in dcgettext
2477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_func" >&5
2479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 cat > conftest.
$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 /* System header to define __stub macros and hopefully few prototypes,
2486 which can conflict with char $ac_func(); below. */
2488 /* Override any gcc2 internal prototype to avoid an error. */
2489 /* We use char because int might match the return type of a gcc2
2490 builtin and then its argument prototype would still apply. */
2495 /* The GNU C library defines this for functions which it implements
2496 to always fail with ENOSYS. Some functions are actually named
2497 something starting with __ and the normal name is an alias. */
2498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2506 if { (eval echo configure
:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2508 eval "ac_cv_func_$ac_func=yes"
2510 echo "configure: failed program was:" >&5
2511 cat conftest.
$ac_ext >&5
2513 eval "ac_cv_func_$ac_func=no"
2518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2519 echo "$ac_t""yes" 1>&6
2520 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2521 cat >> confdefs.h
<<EOF
2522 #define $ac_tr_func 1
2526 echo "$ac_t""no" 1>&6
2530 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2531 set dummy gmsgfmt
; ac_word
=$2
2532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2533 echo "configure:2534: checking for $ac_word" >&5
2534 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2539 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2542 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2545 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2547 for ac_dir
in $ac_dummy; do
2548 test -z "$ac_dir" && ac_dir
=.
2549 if test -f $ac_dir/$ac_word; then
2550 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2555 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2559 GMSGFMT
="$ac_cv_path_GMSGFMT"
2560 if test -n "$GMSGFMT"; then
2561 echo "$ac_t""$GMSGFMT" 1>&6
2563 echo "$ac_t""no" 1>&6
2566 # Extract the first word of "xgettext", so it can be a program name with args.
2567 set dummy xgettext
; ac_word
=$2
2568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2569 echo "configure:2570: checking for $ac_word" >&5
2570 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2575 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2578 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2579 for ac_dir
in $PATH; do
2580 test -z "$ac_dir" && ac_dir
=.
2581 if test -f $ac_dir/$ac_word; then
2582 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2583 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2589 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2593 XGETTEXT
="$ac_cv_path_XGETTEXT"
2594 if test -n "$XGETTEXT"; then
2595 echo "$ac_t""$XGETTEXT" 1>&6
2597 echo "$ac_t""no" 1>&6
2600 cat > conftest.
$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2605 extern int _nl_msg_cat_cntr;
2606 return _nl_msg_cat_cntr
2609 if { (eval echo configure
:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2614 echo "configure: failed program was:" >&5
2615 cat conftest.
$ac_ext >&5
2626 echo "$ac_t""no" 1>&6
2631 if test "$CATOBJEXT" = "NONE"; then
2632 nls_cv_use_gnu_gettext
=yes
2636 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2637 INTLOBJS
="\$(GETTOBJS)"
2638 # Extract the first word of "msgfmt", so it can be a program name with args.
2639 set dummy msgfmt
; ac_word
=$2
2640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2641 echo "configure:2642: checking for $ac_word" >&5
2642 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2647 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2650 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2651 for ac_dir
in $PATH; do
2652 test -z "$ac_dir" && ac_dir
=.
2653 if test -f $ac_dir/$ac_word; then
2654 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2655 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2661 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2665 MSGFMT
="$ac_cv_path_MSGFMT"
2666 if test -n "$MSGFMT"; then
2667 echo "$ac_t""$MSGFMT" 1>&6
2669 echo "$ac_t""no" 1>&6
2672 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2673 set dummy gmsgfmt
; ac_word
=$2
2674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2675 echo "configure:2676: checking for $ac_word" >&5
2676 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2681 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2684 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2687 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2689 for ac_dir
in $ac_dummy; do
2690 test -z "$ac_dir" && ac_dir
=.
2691 if test -f $ac_dir/$ac_word; then
2692 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2697 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2701 GMSGFMT
="$ac_cv_path_GMSGFMT"
2702 if test -n "$GMSGFMT"; then
2703 echo "$ac_t""$GMSGFMT" 1>&6
2705 echo "$ac_t""no" 1>&6
2708 # Extract the first word of "xgettext", so it can be a program name with args.
2709 set dummy xgettext
; ac_word
=$2
2710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_word" >&5
2712 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2717 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2720 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2721 for ac_dir
in $PATH; do
2722 test -z "$ac_dir" && ac_dir
=.
2723 if test -f $ac_dir/$ac_word; then
2724 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2725 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2731 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2735 XGETTEXT
="$ac_cv_path_XGETTEXT"
2736 if test -n "$XGETTEXT"; then
2737 echo "$ac_t""$XGETTEXT" 1>&6
2739 echo "$ac_t""no" 1>&6
2743 USE_INCLUDED_LIBINTL
=yes
2747 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2749 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2750 nls_cv_header_intl
=libintl.h
2751 nls_cv_header_libgt
=libgettext.h
2754 if test "$XGETTEXT" != ":"; then
2755 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2758 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2763 # We need to process the po/ directory.
2767 nls_cv_header_intl
=libintl.h
2768 nls_cv_header_libgt
=libgettext.h
2771 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2772 # because some of the sources are only built for this goal.
2773 if test "$PACKAGE" = gettext; then
2775 USE_INCLUDED_LIBINTL
=yes
2778 for lang
in $ALL_LINGUAS; do
2779 GMOFILES
="$GMOFILES $lang.gmo"
2780 POFILES
="$POFILES $lang.po"
2796 if test "x$CATOBJEXT" != "x"; then
2797 if test "x$ALL_LINGUAS" = "x"; then
2800 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2801 echo "configure:2802: checking for catalogs to be installed" >&5
2803 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2804 case "$ALL_LINGUAS" in
2805 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2808 LINGUAS
=$NEW_LINGUAS
2809 echo "$ac_t""$LINGUAS" 1>&6
2812 if test -n "$LINGUAS"; then
2813 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2817 if test $ac_cv_header_locale_h = yes; then
2818 INCLUDE_LOCALE_H
="#include <locale.h>"
2821 /* The system does not provide the header <locale.h>. Take care yourself. */"
2825 if test -f $srcdir/po2tbl.
sed.
in; then
2826 if test "$CATOBJEXT" = ".cat"; then
2827 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2828 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2829 echo "configure:2830: checking for linux/version.h" >&5
2830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2833 cat > conftest.
$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <linux/version.h>
2838 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2839 { (eval echo configure
:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2840 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2841 if test -z "$ac_err"; then
2843 eval "ac_cv_header_$ac_safe=yes"
2846 echo "configure: failed program was:" >&5
2847 cat conftest.
$ac_ext >&5
2849 eval "ac_cv_header_$ac_safe=no"
2853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2854 echo "$ac_t""yes" 1>&6
2857 echo "$ac_t""no" 1>&6
2862 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2864 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2865 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2868 if test "$PACKAGE" = "gettext"; then
2878 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2884 if test -f $srcdir/po
/POTFILES.
in; then
2885 test -d po || mkdir po
2886 if test "x$srcdir" != "x."; then
2887 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2888 posrcprefix
="$srcdir/"
2890 posrcprefix
="../$srcdir/"
2896 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2897 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2900 cat >> confdefs.h
<<\EOF
2901 #define PACKAGE "gdb"
2905 debugdir
=${libdir}/debug
2907 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
2908 if test "${with_separate_debug_dir+set}" = set; then
2909 withval
="$with_separate_debug_dir"
2910 debugdir
="${withval}"
2915 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
2916 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2917 ac_define_dir
=`eval echo $debugdir`
2918 ac_define_dir
=`eval echo $ac_define_dir`
2919 cat >> confdefs.h
<<EOF
2920 #define DEBUGDIR "$ac_define_dir"
2924 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
2938 subdirs
="doc testsuite"
2942 .
$srcdir/configure.
host
2944 .
$srcdir/configure.tgt
2946 # Fetch the default architecture and default target vector from BFD.
2947 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
2949 # We only want the first architecture, so strip off the others if
2950 # there is more than one.
2951 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
2953 if test "x$targ_archs" != x
; then
2954 cat >> confdefs.h
<<EOF
2955 #define DEFAULT_BFD_ARCH $targ_archs
2959 if test "x$targ_defvec" != x
; then
2960 cat >> confdefs.h
<<EOF
2961 #define DEFAULT_BFD_VEC $targ_defvec
2966 if test "$program_transform_name" = s
,x
,x
,; then
2967 program_transform_name
=
2969 # Double any \ or $. echo might interpret backslashes.
2970 cat <<\EOF_SED
> conftestsed
2971 s
,\\,\\\\,g
; s
,\$
,$$
,g
2973 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2976 test "$program_prefix" != NONE
&&
2977 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2978 # Use a double $ so make ignores it.
2979 test "$program_suffix" != NONE
&&
2980 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2982 # sed with no file args requires a program.
2983 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2986 # The CLI cannot be disabled yet, but may be in the future.
2989 # Check whether --enable-gdbcli or --disable-gdbcli was given.
2990 if test "${enable_gdbcli+set}" = set; then
2991 enableval
="$enable_gdbcli"
2996 { echo "configure: error: the command-line interface cannot be disabled yet" 1>&2; exit 1; } ;;
2998 { echo "configure: error: bad value $enableval for --enable-gdbcli" 1>&2; exit 1; } ;;
3004 if test x
"$enable_gdbcli" = xyes
; then
3005 if test -d $srcdir/cli
; then
3006 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3007 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3008 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3009 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_CLI_INITS)"
3010 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3011 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_CLI_ALL)"
3012 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_CLI_CLEAN)"
3013 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_CLI_INSTALL)"
3014 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_CLI_UNINSTALL)"
3019 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3020 if test "${enable_gdbmi+set}" = set; then
3021 enableval
="$enable_gdbmi"
3026 { echo "configure: error: bad value $enableval for --enable-gdbmi" 1>&2; exit 1; } ;;
3032 if test x
"$enable_gdbmi" = xyes
; then
3033 if test -d $srcdir/mi
; then
3034 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3035 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3036 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3037 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_MI_INITS)"
3038 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3039 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_MI_ALL)"
3040 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_MI_CLEAN)"
3041 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_MI_INSTALL)"
3042 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_MI_UNINSTALL)"
3047 # Check whether --enable-tui or --disable-tui was given.
3048 if test "${enable_tui+set}" = set; then
3049 enableval
="$enable_tui"
3054 { echo "configure: error: bad value $enableval for --enable-tui" 1>&2; exit 1; } ;;
3058 if test x
"$enable_tui" = xyes
; then
3059 if test -d $srcdir/tui
; then
3060 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
3061 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
3062 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
3063 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
3064 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
3065 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_TUI_ALL)"
3066 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_TUI_CLEAN)"
3067 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_TUI_INSTALL)"
3068 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_TUI_UNINSTALL)"
3074 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3075 if test "${enable_gdbtk+set}" = set; then
3076 enableval
="$enable_gdbtk"
3081 { echo "configure: error: bad value $enableval for --enable-gdbtk" 1>&2; exit 1; } ;;
3084 if test -d $srcdir/gdbtk
; then
3091 # We unconditionally disable gdbtk tests on selected platforms.
3094 echo "configure: warning: gdbtk isn't supported on $host; disabling" 1>&2
3098 # Profiling support.
3099 # Check whether --enable-profiling or --disable-profiling was given.
3100 if test "${enable_profiling+set}" = set; then
3101 enableval
="$enable_profiling"
3106 { echo "configure: error: bad value $enableval for --enable-profile" 1>&2; exit 1; } ;;
3113 for ac_func
in monstartup _mcleanup
3115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3116 echo "configure:3117: checking for $ac_func" >&5
3117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 cat > conftest.
$ac_ext <<EOF
3121 #line 3122 "configure"
3122 #include "confdefs.h"
3123 /* System header to define __stub macros and hopefully few prototypes,
3124 which can conflict with char $ac_func(); below. */
3126 /* Override any gcc2 internal prototype to avoid an error. */
3127 /* We use char because int might match the return type of a gcc2
3128 builtin and then its argument prototype would still apply. */
3133 /* The GNU C library defines this for functions which it implements
3134 to always fail with ENOSYS. Some functions are actually named
3135 something starting with __ and the normal name is an alias. */
3136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3144 if { (eval echo configure
:3145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3146 eval "ac_cv_func_$ac_func=yes"
3148 echo "configure: failed program was:" >&5
3149 cat conftest.
$ac_ext >&5
3151 eval "ac_cv_func_$ac_func=no"
3156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3157 echo "$ac_t""yes" 1>&6
3158 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3159 cat >> confdefs.h
<<EOF
3160 #define $ac_tr_func 1
3164 echo "$ac_t""no" 1>&6
3168 if test "$enable_profiling" = yes ; then
3169 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
3170 { echo "configure: error: --enable-profiling requires monstartup and _mcleanup" 1>&2; exit 1; }
3173 OLD_CFLAGS
="$CFLAGS"
3174 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
3176 echo $ac_n "checking whether $CC supports -pg""... $ac_c" 1>&6
3177 echo "configure:3178: checking whether $CC supports -pg" >&5
3178 if eval "test \"`echo '$''{'ac_cv_cc_supports_pg'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3181 cat > conftest.
$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3189 if { (eval echo configure
:3190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3191 ac_cv_cc_supports_pg
=yes
3193 echo "configure: failed program was:" >&5
3194 cat conftest.
$ac_ext >&5
3196 ac_cv_cc_supports_pg
=no
3201 echo "$ac_t""$ac_cv_cc_supports_pg" 1>&6
3203 if test $ac_cv_cc_supports_pg = no
; then
3204 { echo "configure: error: --enable-profiling requires a compiler which supports -pg" 1>&2; exit 1; }
3207 CFLAGS
="$OLD_CFLAGS"
3210 # --------------------- #
3211 # Checks for programs. #
3212 # --------------------- #
3214 for ac_prog
in mawk gawk nawk
awk
3216 # Extract the first word of "$ac_prog", so it can be a program name with args.
3217 set dummy
$ac_prog; ac_word
=$2
3218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3219 echo "configure:3220: checking for $ac_word" >&5
3220 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3221 echo $ac_n "(cached) $ac_c" 1>&6
3223 if test -n "$AWK"; then
3224 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3226 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3228 for ac_dir
in $ac_dummy; do
3229 test -z "$ac_dir" && ac_dir
=.
3230 if test -f $ac_dir/$ac_word; then
3231 ac_cv_prog_AWK
="$ac_prog"
3238 AWK
="$ac_cv_prog_AWK"
3239 if test -n "$AWK"; then
3240 echo "$ac_t""$AWK" 1>&6
3242 echo "$ac_t""no" 1>&6
3245 test -n "$AWK" && break
3248 # Find a good install program. We prefer a C program (faster),
3249 # so one script is as good as another. But avoid the broken or
3250 # incompatible versions:
3251 # SysV /etc/install, /usr/sbin/install
3252 # SunOS /usr/etc/install
3253 # IRIX /sbin/install
3255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3258 # ./install, which can be erroneously created by make from ./install.sh.
3259 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3260 echo "configure:3261: checking for a BSD compatible install" >&5
3261 if test -z "$INSTALL"; then
3262 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3265 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3266 for ac_dir
in $PATH; do
3267 # Account for people who put trailing slashes in PATH elements.
3269 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3271 # OSF1 and SCO ODT 3.0 have their own names for install.
3272 # Don't use installbsd from OSF since it installs stuff as root
3274 for ac_prog
in ginstall scoinst
install; do
3275 if test -f $ac_dir/$ac_prog; then
3276 if test $ac_prog = install &&
3277 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3278 # AIX install. It has an incompatible calling convention.
3281 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3292 if test "${ac_cv_path_install+set}" = set; then
3293 INSTALL
="$ac_cv_path_install"
3295 # As a last resort, use the slow shell script. We don't cache a
3296 # path for INSTALL within a source directory, because that will
3297 # break other packages using the cache if that directory is
3298 # removed, or if the path is relative.
3299 INSTALL
="$ac_install_sh"
3302 echo "$ac_t""$INSTALL" 1>&6
3304 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3305 # It thinks the first close brace ends the variable substitution.
3306 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3308 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3310 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3312 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3313 echo "configure:3314: checking whether ln -s works" >&5
3314 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3318 if ln -s X conftestdata
2>/dev
/null
3321 ac_cv_prog_LN_S
="ln -s"
3326 LN_S
="$ac_cv_prog_LN_S"
3327 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3328 echo "$ac_t""yes" 1>&6
3330 echo "$ac_t""no" 1>&6
3333 # Extract the first word of "ranlib", so it can be a program name with args.
3334 set dummy ranlib
; ac_word
=$2
3335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3336 echo "configure:3337: checking for $ac_word" >&5
3337 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3338 echo $ac_n "(cached) $ac_c" 1>&6
3340 if test -n "$RANLIB"; then
3341 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3343 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3345 for ac_dir
in $ac_dummy; do
3346 test -z "$ac_dir" && ac_dir
=.
3347 if test -f $ac_dir/$ac_word; then
3348 ac_cv_prog_RANLIB
="ranlib"
3353 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3356 RANLIB
="$ac_cv_prog_RANLIB"
3357 if test -n "$RANLIB"; then
3358 echo "$ac_t""$RANLIB" 1>&6
3360 echo "$ac_t""no" 1>&6
3363 for ac_prog
in 'bison -y' byacc
3365 # Extract the first word of "$ac_prog", so it can be a program name with args.
3366 set dummy
$ac_prog; ac_word
=$2
3367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3368 echo "configure:3369: checking for $ac_word" >&5
3369 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3370 echo $ac_n "(cached) $ac_c" 1>&6
3372 if test -n "$YACC"; then
3373 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3375 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3377 for ac_dir
in $ac_dummy; do
3378 test -z "$ac_dir" && ac_dir
=.
3379 if test -f $ac_dir/$ac_word; then
3380 ac_cv_prog_YACC
="$ac_prog"
3387 YACC
="$ac_cv_prog_YACC"
3388 if test -n "$YACC"; then
3389 echo "$ac_t""$YACC" 1>&6
3391 echo "$ac_t""no" 1>&6
3394 test -n "$YACC" && break
3396 test -n "$YACC" || YACC
="yacc"
3399 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3400 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3402 echo "configure:3403: checking for $ac_word" >&5
3403 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 if test -n "$AR"; then
3407 ac_cv_prog_AR
="$AR" # Let the user override the test.
3409 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3411 for ac_dir
in $ac_dummy; do
3412 test -z "$ac_dir" && ac_dir
=.
3413 if test -f $ac_dir/$ac_word; then
3414 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3419 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3423 if test -n "$AR"; then
3424 echo "$ac_t""$AR" 1>&6
3426 echo "$ac_t""no" 1>&6
3431 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3432 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3433 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3434 echo "configure:3435: checking for $ac_word" >&5
3435 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3436 echo $ac_n "(cached) $ac_c" 1>&6
3438 if test -n "$DLLTOOL"; then
3439 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3441 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3443 for ac_dir
in $ac_dummy; do
3444 test -z "$ac_dir" && ac_dir
=.
3445 if test -f $ac_dir/$ac_word; then
3446 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3451 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3454 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3455 if test -n "$DLLTOOL"; then
3456 echo "$ac_t""$DLLTOOL" 1>&6
3458 echo "$ac_t""no" 1>&6
3463 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3464 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3466 echo "configure:3467: checking for $ac_word" >&5
3467 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3470 if test -n "$WINDRES"; then
3471 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3473 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3475 for ac_dir
in $ac_dummy; do
3476 test -z "$ac_dir" && ac_dir
=.
3477 if test -f $ac_dir/$ac_word; then
3478 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3483 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3486 WINDRES
="$ac_cv_prog_WINDRES"
3487 if test -n "$WINDRES"; then
3488 echo "$ac_t""$WINDRES" 1>&6
3490 echo "$ac_t""no" 1>&6
3496 # Needed for GNU/Hurd.
3497 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3498 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3500 echo "configure:3501: checking for $ac_word" >&5
3501 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3504 if test -n "$MIG"; then
3505 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3507 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3509 for ac_dir
in $ac_dummy; do
3510 test -z "$ac_dir" && ac_dir
=.
3511 if test -f $ac_dir/$ac_word; then
3512 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3517 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3520 MIG
="$ac_cv_prog_MIG"
3521 if test -n "$MIG"; then
3522 echo "$ac_t""$MIG" 1>&6
3524 echo "$ac_t""no" 1>&6
3530 # ---------------------- #
3531 # Checks for libraries. #
3532 # ---------------------- #
3534 # We might need to link with -lm; most simulators need it.
3535 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3536 echo "configure:3537: checking for main in -lm" >&5
3537 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3538 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3541 ac_save_LIBS
="$LIBS"
3543 cat > conftest.
$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3551 if { (eval echo configure
:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3553 eval "ac_cv_lib_$ac_lib_var=yes"
3555 echo "configure: failed program was:" >&5
3556 cat conftest.
$ac_ext >&5
3558 eval "ac_cv_lib_$ac_lib_var=no"
3561 LIBS
="$ac_save_LIBS"
3564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3565 echo "$ac_t""yes" 1>&6
3566 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3567 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3568 cat >> confdefs.h
<<EOF
3569 #define $ac_tr_lib 1
3575 echo "$ac_t""no" 1>&6
3579 # We need to link with -lw to get `wctype' on Solaris before Solaris
3580 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
3581 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
3582 # is known to have this problem). Therefore we avoid libw if we can.
3583 echo $ac_n "checking for wctype""... $ac_c" 1>&6
3584 echo "configure:3585: checking for wctype" >&5
3585 if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3588 cat > conftest.
$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 /* System header to define __stub macros and hopefully few prototypes,
3592 which can conflict with char wctype(); below. */
3594 /* Override any gcc2 internal prototype to avoid an error. */
3595 /* We use char because int might match the return type of a gcc2
3596 builtin and then its argument prototype would still apply. */
3601 /* The GNU C library defines this for functions which it implements
3602 to always fail with ENOSYS. Some functions are actually named
3603 something starting with __ and the normal name is an alias. */
3604 #if defined (__stub_wctype) || defined (__stub___wctype)
3612 if { (eval echo configure
:3613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3614 eval "ac_cv_func_wctype=yes"
3616 echo "configure: failed program was:" >&5
3617 cat conftest.
$ac_ext >&5
3619 eval "ac_cv_func_wctype=no"
3624 if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
3625 echo "$ac_t""yes" 1>&6
3628 echo "$ac_t""no" 1>&6
3629 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3630 echo "configure:3631: checking for wctype in -lw" >&5
3631 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3633 echo $ac_n "(cached) $ac_c" 1>&6
3635 ac_save_LIBS
="$LIBS"
3637 cat > conftest.
$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3640 /* Override any gcc2 internal prototype to avoid an error. */
3641 /* We use char because int might match the return type of a gcc2
3642 builtin and then its argument prototype would still apply. */
3649 if { (eval echo configure
:3650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3651 eval "ac_cv_lib_$ac_lib_var=yes"
3653 echo "configure: failed program was:" >&5
3654 cat conftest.
$ac_ext >&5
3656 eval "ac_cv_lib_$ac_lib_var=no"
3659 LIBS
="$ac_save_LIBS"
3662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3663 echo "$ac_t""yes" 1>&6
3664 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3665 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3666 cat >> confdefs.h
<<EOF
3667 #define $ac_tr_lib 1
3673 echo "$ac_t""no" 1>&6
3679 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
3681 echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
3682 echo "configure:3683: checking for library containing socketpair" >&5
3683 if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
3686 ac_func_search_save_LIBS
="$LIBS"
3687 ac_cv_search_socketpair
="no"
3688 cat > conftest.
$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3691 /* Override any gcc2 internal prototype to avoid an error. */
3692 /* We use char because int might match the return type of a gcc2
3693 builtin and then its argument prototype would still apply. */
3700 if { (eval echo configure
:3701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3702 ac_cv_search_socketpair
="none required"
3704 echo "configure: failed program was:" >&5
3705 cat conftest.
$ac_ext >&5
3708 test "$ac_cv_search_socketpair" = "no" && for i
in socket
; do
3709 LIBS
="-l$i $ac_func_search_save_LIBS"
3710 cat > conftest.
$ac_ext <<EOF
3711 #line 3712 "configure"
3712 #include "confdefs.h"
3713 /* Override any gcc2 internal prototype to avoid an error. */
3714 /* We use char because int might match the return type of a gcc2
3715 builtin and then its argument prototype would still apply. */
3722 if { (eval echo configure
:3723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3724 ac_cv_search_socketpair
="-l$i"
3727 echo "configure: failed program was:" >&5
3728 cat conftest.
$ac_ext >&5
3732 LIBS
="$ac_func_search_save_LIBS"
3735 echo "$ac_t""$ac_cv_search_socketpair" 1>&6
3736 if test "$ac_cv_search_socketpair" != "no"; then
3737 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
3743 # Since GDB uses Readline, we need termcap functionality, so we need
3744 # to find a library that provides that. When GDB is configured with
3745 # --enable-tui, we need full curses functionality.
3747 # FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
3748 # Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
3749 # Makefile fragments. That's why we need to have `Hcurses' before
3750 # `curses'. I don't see why we should use HP curses if a more
3751 # standard curses is available, except that according to HP's
3752 # documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
3753 # HP-UX 10.10 and 10.20.
3755 if test "$need_curses" = yes; then
3757 echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6
3758 echo "configure:3759: checking for library containing initscr" >&5
3759 if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3762 ac_func_search_save_LIBS
="$LIBS"
3763 ac_cv_search_initscr
="no"
3764 cat > conftest.
$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3767 /* Override any gcc2 internal prototype to avoid an error. */
3768 /* We use char because int might match the return type of a gcc2
3769 builtin and then its argument prototype would still apply. */
3776 if { (eval echo configure
:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3778 ac_cv_search_initscr
="none required"
3780 echo "configure: failed program was:" >&5
3781 cat conftest.
$ac_ext >&5
3784 test "$ac_cv_search_initscr" = "no" && for i
in ncurses Hcurses curses
; do
3785 LIBS
="-l$i $ac_func_search_save_LIBS"
3786 cat > conftest.
$ac_ext <<EOF
3787 #line 3788 "configure"
3788 #include "confdefs.h"
3789 /* Override any gcc2 internal prototype to avoid an error. */
3790 /* We use char because int might match the return type of a gcc2
3791 builtin and then its argument prototype would still apply. */
3798 if { (eval echo configure
:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3800 ac_cv_search_initscr
="-l$i"
3803 echo "configure: failed program was:" >&5
3804 cat conftest.
$ac_ext >&5
3808 LIBS
="$ac_func_search_save_LIBS"
3811 echo "$ac_t""$ac_cv_search_initscr" 1>&6
3812 if test "$ac_cv_search_initscr" != "no"; then
3813 test "$ac_cv_search_initscr" = "none required" || LIBS
="$ac_cv_search_initscr $LIBS"
3816 { echo "configure: error: no curses library found" 1>&2; exit 1; }
3822 if test -d $srcdir/libtermcap
; then
3823 LIBS
="../libtermcap/libtermcap.a $LIBS"
3824 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
3827 # ??? Is this really true?
3828 ac_cv_search_tgetent
="none required"
3831 # Readline prefers curses over termcap on AIX.
3834 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
3835 echo "configure:3836: checking for library containing tgetent" >&5
3836 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
3837 echo $ac_n "(cached) $ac_c" 1>&6
3839 ac_func_search_save_LIBS
="$LIBS"
3840 ac_cv_search_tgetent
="no"
3841 cat > conftest.
$ac_ext <<EOF
3842 #line 3843 "configure"
3843 #include "confdefs.h"
3844 /* Override any gcc2 internal prototype to avoid an error. */
3845 /* We use char because int might match the return type of a gcc2
3846 builtin and then its argument prototype would still apply. */
3853 if { (eval echo configure
:3854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3855 ac_cv_search_tgetent
="none required"
3857 echo "configure: failed program was:" >&5
3858 cat conftest.
$ac_ext >&5
3861 test "$ac_cv_search_tgetent" = "no" && for i
in tinfo ncurses curses termcap
; do
3862 LIBS
="-l$i $ac_func_search_save_LIBS"
3863 cat > conftest.
$ac_ext <<EOF
3864 #line 3865 "configure"
3865 #include "confdefs.h"
3866 /* Override any gcc2 internal prototype to avoid an error. */
3867 /* We use char because int might match the return type of a gcc2
3868 builtin and then its argument prototype would still apply. */
3875 if { (eval echo configure
:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3877 ac_cv_search_tgetent
="-l$i"
3880 echo "configure: failed program was:" >&5
3881 cat conftest.
$ac_ext >&5
3885 LIBS
="$ac_func_search_save_LIBS"
3888 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
3889 if test "$ac_cv_search_tgetent" != "no"; then
3890 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
3898 # Note: We used to check for libtermlib and libterminfo too, but
3899 # Readline doesn't, so I think we're safe with leaving them out.
3901 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
3902 echo "configure:3903: checking for library containing tgetent" >&5
3903 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3906 ac_func_search_save_LIBS
="$LIBS"
3907 ac_cv_search_tgetent
="no"
3908 cat > conftest.
$ac_ext <<EOF
3909 #line 3910 "configure"
3910 #include "confdefs.h"
3911 /* Override any gcc2 internal prototype to avoid an error. */
3912 /* We use char because int might match the return type of a gcc2
3913 builtin and then its argument prototype would still apply. */
3920 if { (eval echo configure
:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3922 ac_cv_search_tgetent
="none required"
3924 echo "configure: failed program was:" >&5
3925 cat conftest.
$ac_ext >&5
3928 test "$ac_cv_search_tgetent" = "no" && for i
in termcap tinfo ncurses Hcurses curses
; do
3929 LIBS
="-l$i $ac_func_search_save_LIBS"
3930 cat > conftest.
$ac_ext <<EOF
3931 #line 3932 "configure"
3932 #include "confdefs.h"
3933 /* Override any gcc2 internal prototype to avoid an error. */
3934 /* We use char because int might match the return type of a gcc2
3935 builtin and then its argument prototype would still apply. */
3942 if { (eval echo configure
:3943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3944 ac_cv_search_tgetent
="-l$i"
3947 echo "configure: failed program was:" >&5
3948 cat conftest.
$ac_ext >&5
3952 LIBS
="$ac_func_search_save_LIBS"
3955 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
3956 if test "$ac_cv_search_tgetent" != "no"; then
3957 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
3963 if test "$ac_cv_search_tgetent" = no
; then
3964 { echo "configure: error: no termcap library found" 1>&2; exit 1; }
3967 # ------------------------- #
3968 # Checks for header files. #
3969 # ------------------------- #
3972 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
3974 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3975 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3976 echo "configure:3977: checking for $ac_hdr that defines DIR" >&5
3977 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3980 cat > conftest.
$ac_ext <<EOF
3981 #line 3982 "configure"
3982 #include "confdefs.h"
3983 #include <sys/types.h>
3989 if { (eval echo configure
:3990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3991 eval "ac_cv_header_dirent_$ac_safe=yes"
3993 echo "configure: failed program was:" >&5
3994 cat conftest.
$ac_ext >&5
3996 eval "ac_cv_header_dirent_$ac_safe=no"
4000 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4001 echo "$ac_t""yes" 1>&6
4002 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4003 cat >> confdefs.h
<<EOF
4004 #define $ac_tr_hdr 1
4006 ac_header_dirent
=$ac_hdr; break
4008 echo "$ac_t""no" 1>&6
4011 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4012 if test $ac_header_dirent = dirent.h
; then
4013 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4014 echo "configure:4015: checking for opendir in -ldir" >&5
4015 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4017 echo $ac_n "(cached) $ac_c" 1>&6
4019 ac_save_LIBS
="$LIBS"
4021 cat > conftest.
$ac_ext <<EOF
4022 #line 4023 "configure"
4023 #include "confdefs.h"
4024 /* Override any gcc2 internal prototype to avoid an error. */
4025 /* We use char because int might match the return type of a gcc2
4026 builtin and then its argument prototype would still apply. */
4033 if { (eval echo configure
:4034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4035 eval "ac_cv_lib_$ac_lib_var=yes"
4037 echo "configure: failed program was:" >&5
4038 cat conftest.
$ac_ext >&5
4040 eval "ac_cv_lib_$ac_lib_var=no"
4043 LIBS
="$ac_save_LIBS"
4046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4047 echo "$ac_t""yes" 1>&6
4050 echo "$ac_t""no" 1>&6
4054 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4055 echo "configure:4056: checking for opendir in -lx" >&5
4056 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4060 ac_save_LIBS
="$LIBS"
4062 cat > conftest.
$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4065 /* Override any gcc2 internal prototype to avoid an error. */
4066 /* We use char because int might match the return type of a gcc2
4067 builtin and then its argument prototype would still apply. */
4074 if { (eval echo configure
:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4076 eval "ac_cv_lib_$ac_lib_var=yes"
4078 echo "configure: failed program was:" >&5
4079 cat conftest.
$ac_ext >&5
4081 eval "ac_cv_lib_$ac_lib_var=no"
4084 LIBS
="$ac_save_LIBS"
4087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4088 echo "$ac_t""yes" 1>&6
4091 echo "$ac_t""no" 1>&6
4096 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4097 echo "configure:4098: checking whether stat file-mode macros are broken" >&5
4098 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4101 cat > conftest.
$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4104 #include <sys/types.h>
4105 #include <sys/stat.h>
4107 #if defined(S_ISBLK) && defined(S_IFDIR)
4108 # if S_ISBLK (S_IFDIR)
4113 #if defined(S_ISBLK) && defined(S_IFCHR)
4114 # if S_ISBLK (S_IFCHR)
4119 #if defined(S_ISLNK) && defined(S_IFREG)
4120 # if S_ISLNK (S_IFREG)
4125 #if defined(S_ISSOCK) && defined(S_IFREG)
4126 # if S_ISSOCK (S_IFREG)
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 egrep "You lose" >/dev
/null
2>&1; then
4135 ac_cv_header_stat_broken
=yes
4138 ac_cv_header_stat_broken
=no
4144 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4145 if test $ac_cv_header_stat_broken = yes; then
4146 cat >> confdefs.h
<<\EOF
4147 #define STAT_MACROS_BROKEN 1
4152 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4153 echo "configure:4154: checking for ANSI C header files" >&5
4154 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4157 cat > conftest.
$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4165 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4166 { (eval echo configure
:4167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4167 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4168 if test -z "$ac_err"; then
4170 ac_cv_header_stdc
=yes
4173 echo "configure: failed program was:" >&5
4174 cat conftest.
$ac_ext >&5
4176 ac_cv_header_stdc
=no
4180 if test $ac_cv_header_stdc = yes; then
4181 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4182 cat > conftest.
$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4188 egrep "memchr" >/dev
/null
2>&1; then
4192 ac_cv_header_stdc
=no
4198 if test $ac_cv_header_stdc = yes; then
4199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4200 cat > conftest.
$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206 egrep "free" >/dev
/null
2>&1; then
4210 ac_cv_header_stdc
=no
4216 if test $ac_cv_header_stdc = yes; then
4217 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4218 if test "$cross_compiling" = yes; then
4221 cat > conftest.
$ac_ext <<EOF
4222 #line 4223 "configure"
4223 #include "confdefs.h"
4225 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4226 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4227 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4228 int main () { int i; for (i = 0; i < 256; i++)
4229 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4233 if { (eval echo configure
:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4237 echo "configure: failed program was:" >&5
4238 cat conftest.
$ac_ext >&5
4240 ac_cv_header_stdc
=no
4248 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4249 if test $ac_cv_header_stdc = yes; then
4250 cat >> confdefs.h
<<\EOF
4251 #define STDC_HEADERS 1
4256 for ac_hdr
in link.h
4258 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4260 echo "configure:4261: checking for $ac_hdr" >&5
4261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4264 cat > conftest.
$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4269 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4270 { (eval echo configure
:4271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4271 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4272 if test -z "$ac_err"; then
4274 eval "ac_cv_header_$ac_safe=yes"
4277 echo "configure: failed program was:" >&5
4278 cat conftest.
$ac_ext >&5
4280 eval "ac_cv_header_$ac_safe=no"
4284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4285 echo "$ac_t""yes" 1>&6
4286 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4287 cat >> confdefs.h
<<EOF
4288 #define $ac_tr_hdr 1
4292 echo "$ac_t""no" 1>&6
4296 for ac_hdr
in nlist.h
4298 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4300 echo "configure:4301: checking for $ac_hdr" >&5
4301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4302 echo $ac_n "(cached) $ac_c" 1>&6
4304 cat > conftest.
$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4309 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4310 { (eval echo configure
:4311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4311 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4312 if test -z "$ac_err"; then
4314 eval "ac_cv_header_$ac_safe=yes"
4317 echo "configure: failed program was:" >&5
4318 cat conftest.
$ac_ext >&5
4320 eval "ac_cv_header_$ac_safe=no"
4324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4325 echo "$ac_t""yes" 1>&6
4326 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4327 cat >> confdefs.h
<<EOF
4328 #define $ac_tr_hdr 1
4332 echo "$ac_t""no" 1>&6
4336 for ac_hdr
in poll.h sys
/poll.h
4338 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4340 echo "configure:4341: checking for $ac_hdr" >&5
4341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4342 echo $ac_n "(cached) $ac_c" 1>&6
4344 cat > conftest.
$ac_ext <<EOF
4345 #line 4346 "configure"
4346 #include "confdefs.h"
4349 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4350 { (eval echo configure
:4351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4351 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4352 if test -z "$ac_err"; then
4354 eval "ac_cv_header_$ac_safe=yes"
4357 echo "configure: failed program was:" >&5
4358 cat conftest.
$ac_ext >&5
4360 eval "ac_cv_header_$ac_safe=no"
4364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4365 echo "$ac_t""yes" 1>&6
4366 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4367 cat >> confdefs.h
<<EOF
4368 #define $ac_tr_hdr 1
4372 echo "$ac_t""no" 1>&6
4376 for ac_hdr
in proc_service.h thread_db.h
4378 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4380 echo "configure:4381: checking for $ac_hdr" >&5
4381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4384 cat > conftest.
$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4389 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4390 { (eval echo configure
:4391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4391 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4392 if test -z "$ac_err"; then
4394 eval "ac_cv_header_$ac_safe=yes"
4397 echo "configure: failed program was:" >&5
4398 cat conftest.
$ac_ext >&5
4400 eval "ac_cv_header_$ac_safe=no"
4404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4405 echo "$ac_t""yes" 1>&6
4406 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4407 cat >> confdefs.h
<<EOF
4408 #define $ac_tr_hdr 1
4412 echo "$ac_t""no" 1>&6
4416 for ac_hdr
in stddef.h
4418 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4420 echo "configure:4421: checking for $ac_hdr" >&5
4421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4422 echo $ac_n "(cached) $ac_c" 1>&6
4424 cat > conftest.
$ac_ext <<EOF
4425 #line 4426 "configure"
4426 #include "confdefs.h"
4429 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4430 { (eval echo configure
:4431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4431 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4432 if test -z "$ac_err"; then
4434 eval "ac_cv_header_$ac_safe=yes"
4437 echo "configure: failed program was:" >&5
4438 cat conftest.
$ac_ext >&5
4440 eval "ac_cv_header_$ac_safe=no"
4444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4445 echo "$ac_t""yes" 1>&6
4446 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4447 cat >> confdefs.h
<<EOF
4448 #define $ac_tr_hdr 1
4452 echo "$ac_t""no" 1>&6
4456 for ac_hdr
in stdlib.h
4458 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4459 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4460 echo "configure:4461: checking for $ac_hdr" >&5
4461 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4462 echo $ac_n "(cached) $ac_c" 1>&6
4464 cat > conftest.
$ac_ext <<EOF
4465 #line 4466 "configure"
4466 #include "confdefs.h"
4469 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4470 { (eval echo configure
:4471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4471 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4472 if test -z "$ac_err"; then
4474 eval "ac_cv_header_$ac_safe=yes"
4477 echo "configure: failed program was:" >&5
4478 cat conftest.
$ac_ext >&5
4480 eval "ac_cv_header_$ac_safe=no"
4484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4485 echo "$ac_t""yes" 1>&6
4486 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4487 cat >> confdefs.h
<<EOF
4488 #define $ac_tr_hdr 1
4492 echo "$ac_t""no" 1>&6
4496 for ac_hdr
in stdint.h
4498 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4500 echo "configure:4501: checking for $ac_hdr" >&5
4501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4502 echo $ac_n "(cached) $ac_c" 1>&6
4504 cat > conftest.
$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4509 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4510 { (eval echo configure
:4511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4511 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4512 if test -z "$ac_err"; then
4514 eval "ac_cv_header_$ac_safe=yes"
4517 echo "configure: failed program was:" >&5
4518 cat conftest.
$ac_ext >&5
4520 eval "ac_cv_header_$ac_safe=no"
4524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4525 echo "$ac_t""yes" 1>&6
4526 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4527 cat >> confdefs.h
<<EOF
4528 #define $ac_tr_hdr 1
4532 echo "$ac_t""no" 1>&6
4536 for ac_hdr
in string.h memory.h
strings.h
4538 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4540 echo "configure:4541: checking for $ac_hdr" >&5
4541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4542 echo $ac_n "(cached) $ac_c" 1>&6
4544 cat > conftest.
$ac_ext <<EOF
4545 #line 4546 "configure"
4546 #include "confdefs.h"
4549 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4550 { (eval echo configure
:4551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4551 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4552 if test -z "$ac_err"; then
4554 eval "ac_cv_header_$ac_safe=yes"
4557 echo "configure: failed program was:" >&5
4558 cat conftest.
$ac_ext >&5
4560 eval "ac_cv_header_$ac_safe=no"
4564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4565 echo "$ac_t""yes" 1>&6
4566 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4567 cat >> confdefs.h
<<EOF
4568 #define $ac_tr_hdr 1
4572 echo "$ac_t""no" 1>&6
4576 for ac_hdr
in sys
/fault.h
4578 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4580 echo "configure:4581: checking for $ac_hdr" >&5
4581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4582 echo $ac_n "(cached) $ac_c" 1>&6
4584 cat > conftest.
$ac_ext <<EOF
4585 #line 4586 "configure"
4586 #include "confdefs.h"
4589 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4590 { (eval echo configure
:4591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4591 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4592 if test -z "$ac_err"; then
4594 eval "ac_cv_header_$ac_safe=yes"
4597 echo "configure: failed program was:" >&5
4598 cat conftest.
$ac_ext >&5
4600 eval "ac_cv_header_$ac_safe=no"
4604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4605 echo "$ac_t""yes" 1>&6
4606 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4607 cat >> confdefs.h
<<EOF
4608 #define $ac_tr_hdr 1
4612 echo "$ac_t""no" 1>&6
4616 for ac_hdr
in sys
/file.h
4618 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4620 echo "configure:4621: checking for $ac_hdr" >&5
4621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4624 cat > conftest.
$ac_ext <<EOF
4625 #line 4626 "configure"
4626 #include "confdefs.h"
4629 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4630 { (eval echo configure
:4631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4631 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4632 if test -z "$ac_err"; then
4634 eval "ac_cv_header_$ac_safe=yes"
4637 echo "configure: failed program was:" >&5
4638 cat conftest.
$ac_ext >&5
4640 eval "ac_cv_header_$ac_safe=no"
4644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4645 echo "$ac_t""yes" 1>&6
4646 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4647 cat >> confdefs.h
<<EOF
4648 #define $ac_tr_hdr 1
4652 echo "$ac_t""no" 1>&6
4656 for ac_hdr
in sys
/filio.h
4658 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4660 echo "configure:4661: checking for $ac_hdr" >&5
4661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4662 echo $ac_n "(cached) $ac_c" 1>&6
4664 cat > conftest.
$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4669 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4670 { (eval echo configure
:4671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4671 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4672 if test -z "$ac_err"; then
4674 eval "ac_cv_header_$ac_safe=yes"
4677 echo "configure: failed program was:" >&5
4678 cat conftest.
$ac_ext >&5
4680 eval "ac_cv_header_$ac_safe=no"
4684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4685 echo "$ac_t""yes" 1>&6
4686 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4687 cat >> confdefs.h
<<EOF
4688 #define $ac_tr_hdr 1
4692 echo "$ac_t""no" 1>&6
4696 for ac_hdr
in sys
/ioctl.h
4698 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4700 echo "configure:4701: checking for $ac_hdr" >&5
4701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4702 echo $ac_n "(cached) $ac_c" 1>&6
4704 cat > conftest.
$ac_ext <<EOF
4705 #line 4706 "configure"
4706 #include "confdefs.h"
4709 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4710 { (eval echo configure
:4711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4711 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4712 if test -z "$ac_err"; then
4714 eval "ac_cv_header_$ac_safe=yes"
4717 echo "configure: failed program was:" >&5
4718 cat conftest.
$ac_ext >&5
4720 eval "ac_cv_header_$ac_safe=no"
4724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4725 echo "$ac_t""yes" 1>&6
4726 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4727 cat >> confdefs.h
<<EOF
4728 #define $ac_tr_hdr 1
4732 echo "$ac_t""no" 1>&6
4736 for ac_hdr
in sys
/param.h
4738 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4740 echo "configure:4741: checking for $ac_hdr" >&5
4741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4742 echo $ac_n "(cached) $ac_c" 1>&6
4744 cat > conftest.
$ac_ext <<EOF
4745 #line 4746 "configure"
4746 #include "confdefs.h"
4749 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4750 { (eval echo configure
:4751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4751 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4752 if test -z "$ac_err"; then
4754 eval "ac_cv_header_$ac_safe=yes"
4757 echo "configure: failed program was:" >&5
4758 cat conftest.
$ac_ext >&5
4760 eval "ac_cv_header_$ac_safe=no"
4764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4765 echo "$ac_t""yes" 1>&6
4766 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4767 cat >> confdefs.h
<<EOF
4768 #define $ac_tr_hdr 1
4772 echo "$ac_t""no" 1>&6
4776 for ac_hdr
in sys
/proc.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
4816 for ac_hdr
in sys
/procfs.h
4818 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4820 echo "configure:4821: checking for $ac_hdr" >&5
4821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4822 echo $ac_n "(cached) $ac_c" 1>&6
4824 cat > conftest.
$ac_ext <<EOF
4825 #line 4826 "configure"
4826 #include "confdefs.h"
4829 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4830 { (eval echo configure
:4831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4831 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4832 if test -z "$ac_err"; then
4834 eval "ac_cv_header_$ac_safe=yes"
4837 echo "configure: failed program was:" >&5
4838 cat conftest.
$ac_ext >&5
4840 eval "ac_cv_header_$ac_safe=no"
4844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4845 echo "$ac_t""yes" 1>&6
4846 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4847 cat >> confdefs.h
<<EOF
4848 #define $ac_tr_hdr 1
4852 echo "$ac_t""no" 1>&6
4856 for ac_hdr
in sys
/ptrace.h ptrace.h
4858 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4860 echo "configure:4861: checking for $ac_hdr" >&5
4861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4862 echo $ac_n "(cached) $ac_c" 1>&6
4864 cat > conftest.
$ac_ext <<EOF
4865 #line 4866 "configure"
4866 #include "confdefs.h"
4869 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4870 { (eval echo configure
:4871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4871 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4872 if test -z "$ac_err"; then
4874 eval "ac_cv_header_$ac_safe=yes"
4877 echo "configure: failed program was:" >&5
4878 cat conftest.
$ac_ext >&5
4880 eval "ac_cv_header_$ac_safe=no"
4884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4885 echo "$ac_t""yes" 1>&6
4886 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4887 cat >> confdefs.h
<<EOF
4888 #define $ac_tr_hdr 1
4892 echo "$ac_t""no" 1>&6
4896 for ac_hdr
in sys
/reg.h sys
/debugreg.h
4898 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4900 echo "configure:4901: checking for $ac_hdr" >&5
4901 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4902 echo $ac_n "(cached) $ac_c" 1>&6
4904 cat > conftest.
$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4909 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4910 { (eval echo configure
:4911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4911 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4912 if test -z "$ac_err"; then
4914 eval "ac_cv_header_$ac_safe=yes"
4917 echo "configure: failed program was:" >&5
4918 cat conftest.
$ac_ext >&5
4920 eval "ac_cv_header_$ac_safe=no"
4924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4925 echo "$ac_t""yes" 1>&6
4926 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4927 cat >> confdefs.h
<<EOF
4928 #define $ac_tr_hdr 1
4932 echo "$ac_t""no" 1>&6
4936 for ac_hdr
in sys
/select.h
4938 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4939 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4940 echo "configure:4941: checking for $ac_hdr" >&5
4941 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4942 echo $ac_n "(cached) $ac_c" 1>&6
4944 cat > conftest.
$ac_ext <<EOF
4945 #line 4946 "configure"
4946 #include "confdefs.h"
4949 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4950 { (eval echo configure
:4951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4951 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4952 if test -z "$ac_err"; then
4954 eval "ac_cv_header_$ac_safe=yes"
4957 echo "configure: failed program was:" >&5
4958 cat conftest.
$ac_ext >&5
4960 eval "ac_cv_header_$ac_safe=no"
4964 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4965 echo "$ac_t""yes" 1>&6
4966 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4967 cat >> confdefs.h
<<EOF
4968 #define $ac_tr_hdr 1
4972 echo "$ac_t""no" 1>&6
4976 for ac_hdr
in sys
/syscall.h
4978 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4979 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4980 echo "configure:4981: checking for $ac_hdr" >&5
4981 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6
4984 cat > conftest.
$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4989 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4990 { (eval echo configure
:4991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4991 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4992 if test -z "$ac_err"; then
4994 eval "ac_cv_header_$ac_safe=yes"
4997 echo "configure: failed program was:" >&5
4998 cat conftest.
$ac_ext >&5
5000 eval "ac_cv_header_$ac_safe=no"
5004 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5005 echo "$ac_t""yes" 1>&6
5006 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5007 cat >> confdefs.h
<<EOF
5008 #define $ac_tr_hdr 1
5012 echo "$ac_t""no" 1>&6
5016 for ac_hdr
in sys
/user.h
5018 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5019 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5020 echo "configure:5021: checking for $ac_hdr" >&5
5021 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5022 echo $ac_n "(cached) $ac_c" 1>&6
5024 cat > conftest.
$ac_ext <<EOF
5025 #line 5026 "configure"
5026 #include "confdefs.h"
5029 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5030 { (eval echo configure
:5031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5031 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5032 if test -z "$ac_err"; then
5034 eval "ac_cv_header_$ac_safe=yes"
5037 echo "configure: failed program was:" >&5
5038 cat conftest.
$ac_ext >&5
5040 eval "ac_cv_header_$ac_safe=no"
5044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5045 echo "$ac_t""yes" 1>&6
5046 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5047 cat >> confdefs.h
<<EOF
5048 #define $ac_tr_hdr 1
5052 echo "$ac_t""no" 1>&6
5056 for ac_hdr
in sys
/wait.h
wait.h
5058 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5059 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5060 echo "configure:5061: checking for $ac_hdr" >&5
5061 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5062 echo $ac_n "(cached) $ac_c" 1>&6
5064 cat > conftest.
$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5069 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5070 { (eval echo configure
:5071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5071 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5072 if test -z "$ac_err"; then
5074 eval "ac_cv_header_$ac_safe=yes"
5077 echo "configure: failed program was:" >&5
5078 cat conftest.
$ac_ext >&5
5080 eval "ac_cv_header_$ac_safe=no"
5084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5085 echo "$ac_t""yes" 1>&6
5086 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5087 cat >> confdefs.h
<<EOF
5088 #define $ac_tr_hdr 1
5092 echo "$ac_t""no" 1>&6
5096 for ac_hdr
in termios.h termio.h sgtty.h
5098 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5100 echo "configure:5101: checking for $ac_hdr" >&5
5101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5102 echo $ac_n "(cached) $ac_c" 1>&6
5104 cat > conftest.
$ac_ext <<EOF
5105 #line 5106 "configure"
5106 #include "confdefs.h"
5109 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5110 { (eval echo configure
:5111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5111 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5112 if test -z "$ac_err"; then
5114 eval "ac_cv_header_$ac_safe=yes"
5117 echo "configure: failed program was:" >&5
5118 cat conftest.
$ac_ext >&5
5120 eval "ac_cv_header_$ac_safe=no"
5124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5125 echo "$ac_t""yes" 1>&6
5126 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5127 cat >> confdefs.h
<<EOF
5128 #define $ac_tr_hdr 1
5132 echo "$ac_t""no" 1>&6
5136 for ac_hdr
in unistd.h
5138 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5139 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5140 echo "configure:5141: checking for $ac_hdr" >&5
5141 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5142 echo $ac_n "(cached) $ac_c" 1>&6
5144 cat > conftest.
$ac_ext <<EOF
5145 #line 5146 "configure"
5146 #include "confdefs.h"
5149 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5150 { (eval echo configure
:5151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5151 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5152 if test -z "$ac_err"; then
5154 eval "ac_cv_header_$ac_safe=yes"
5157 echo "configure: failed program was:" >&5
5158 cat conftest.
$ac_ext >&5
5160 eval "ac_cv_header_$ac_safe=no"
5164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5165 echo "$ac_t""yes" 1>&6
5166 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5167 cat >> confdefs.h
<<EOF
5168 #define $ac_tr_hdr 1
5172 echo "$ac_t""no" 1>&6
5177 # On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
5178 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
5179 # think that we don't have <curses.h> if we're using GCC.
5182 if test "$GCC" = yes; then
5183 cat >> confdefs.h
<<\EOF
5184 #define _MSE_INT_H 1
5189 for ac_hdr
in curses.h ncurses.h term.h
5191 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5193 echo "configure:5194: checking for $ac_hdr" >&5
5194 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5195 echo $ac_n "(cached) $ac_c" 1>&6
5197 cat > conftest.
$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5202 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5203 { (eval echo configure
:5204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5204 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5205 if test -z "$ac_err"; then
5207 eval "ac_cv_header_$ac_safe=yes"
5210 echo "configure: failed program was:" >&5
5211 cat conftest.
$ac_ext >&5
5213 eval "ac_cv_header_$ac_safe=no"
5217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5218 echo "$ac_t""yes" 1>&6
5219 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5220 cat >> confdefs.h
<<EOF
5221 #define $ac_tr_hdr 1
5225 echo "$ac_t""no" 1>&6
5230 # FIXME: kettenis/20030102: In most cases we include these
5231 # unconditionally, so what's the point in checking these?
5232 for ac_hdr
in ctype.h
time.h
5234 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5236 echo "configure:5237: checking for $ac_hdr" >&5
5237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5238 echo $ac_n "(cached) $ac_c" 1>&6
5240 cat > conftest.
$ac_ext <<EOF
5241 #line 5242 "configure"
5242 #include "confdefs.h"
5245 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5246 { (eval echo configure
:5247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5247 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5248 if test -z "$ac_err"; then
5250 eval "ac_cv_header_$ac_safe=yes"
5253 echo "configure: failed program was:" >&5
5254 cat conftest.
$ac_ext >&5
5256 eval "ac_cv_header_$ac_safe=no"
5260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5261 echo "$ac_t""yes" 1>&6
5262 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5263 cat >> confdefs.h
<<EOF
5264 #define $ac_tr_hdr 1
5268 echo "$ac_t""no" 1>&6
5273 # ------------------ #
5274 # Checks for types. #
5275 # ------------------ #
5277 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5278 echo "configure:5279: checking return type of signal handlers" >&5
5279 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5282 cat > conftest.
$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5285 #include <sys/types.h>
5291 extern "C" void (*signal (int, void (*)(int)))(int);
5293 void (*signal ()) ();
5300 if { (eval echo configure
:5301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5302 ac_cv_type_signal
=void
5304 echo "configure: failed program was:" >&5
5305 cat conftest.
$ac_ext >&5
5307 ac_cv_type_signal
=int
5312 echo "$ac_t""$ac_cv_type_signal" 1>&6
5313 cat >> confdefs.h
<<EOF
5314 #define RETSIGTYPE $ac_cv_type_signal
5319 # ------------------------------------- #
5320 # Checks for compiler characteristics. #
5321 # ------------------------------------- #
5323 echo $ac_n "checking for working const""... $ac_c" 1>&6
5324 echo "configure:5325: checking for working const" >&5
5325 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5326 echo $ac_n "(cached) $ac_c" 1>&6
5328 cat > conftest.
$ac_ext <<EOF
5329 #line 5330 "configure"
5330 #include "confdefs.h"
5334 /* Ultrix mips cc rejects this. */
5335 typedef int charset[2]; const charset x;
5336 /* SunOS 4.1.1 cc rejects this. */
5337 char const *const *ccp;
5339 /* NEC SVR4.0.2 mips cc rejects this. */
5340 struct point {int x, y;};
5341 static struct point const zero = {0,0};
5342 /* AIX XL C 1.02.0.0 rejects this.
5343 It does not let you subtract one const X* pointer from another in an arm
5344 of an if-expression whose if-part is not a constant expression */
5345 const char *g = "string";
5346 ccp = &g + (g ? g-g : 0);
5347 /* HPUX 7.0 cc rejects these. */
5350 ccp = (char const *const *) p;
5351 { /* SCO 3.2v4 cc rejects this. */
5353 char const *s = 0 ? (char *) 0 : (char const *) 0;
5357 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5359 const int *foo = &x[0];
5362 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5363 typedef const int *iptr;
5367 { /* AIX XL C 1.02.0.0 rejects this saying
5368 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5369 struct s { int j; const int *ap[3]; };
5370 struct s *b; b->j = 5;
5372 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5378 if { (eval echo configure
:5379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5382 echo "configure: failed program was:" >&5
5383 cat conftest.
$ac_ext >&5
5390 echo "$ac_t""$ac_cv_c_const" 1>&6
5391 if test $ac_cv_c_const = no
; then
5392 cat >> confdefs.h
<<\EOF
5398 echo $ac_n "checking for inline""... $ac_c" 1>&6
5399 echo "configure:5400: checking for inline" >&5
5400 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5401 echo $ac_n "(cached) $ac_c" 1>&6
5404 for ac_kw
in inline __inline__ __inline
; do
5405 cat > conftest.
$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5413 if { (eval echo configure
:5414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5415 ac_cv_c_inline
=$ac_kw; break
5417 echo "configure: failed program was:" >&5
5418 cat conftest.
$ac_ext >&5
5425 echo "$ac_t""$ac_cv_c_inline" 1>&6
5426 case "$ac_cv_c_inline" in
5428 no
) cat >> confdefs.h
<<\EOF
5432 *) cat >> confdefs.h
<<EOF
5433 #define inline $ac_cv_c_inline
5439 # ------------------------------ #
5440 # Checks for library functions. #
5441 # ------------------------------ #
5443 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5444 # for constant arguments. Useless!
5445 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5446 echo "configure:5447: checking for working alloca.h" >&5
5447 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5448 echo $ac_n "(cached) $ac_c" 1>&6
5450 cat > conftest.
$ac_ext <<EOF
5451 #line 5452 "configure"
5452 #include "confdefs.h"
5455 char *p = alloca(2 * sizeof(int));
5458 if { (eval echo configure
:5459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5460 ac_cv_header_alloca_h
=yes
5462 echo "configure: failed program was:" >&5
5463 cat conftest.
$ac_ext >&5
5465 ac_cv_header_alloca_h
=no
5470 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5471 if test $ac_cv_header_alloca_h = yes; then
5472 cat >> confdefs.h
<<\EOF
5473 #define HAVE_ALLOCA_H 1
5478 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5479 echo "configure:5480: checking for alloca" >&5
5480 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5481 echo $ac_n "(cached) $ac_c" 1>&6
5483 cat > conftest.
$ac_ext <<EOF
5484 #line 5485 "configure"
5485 #include "confdefs.h"
5488 # define alloca __builtin_alloca
5491 # include <malloc.h>
5492 # define alloca _alloca
5495 # include <alloca.h>
5500 # ifndef alloca /* predefined by HP cc +Olibcalls */
5509 char *p = (char *) alloca(1);
5512 if { (eval echo configure
:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5514 ac_cv_func_alloca_works
=yes
5516 echo "configure: failed program was:" >&5
5517 cat conftest.
$ac_ext >&5
5519 ac_cv_func_alloca_works
=no
5524 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5525 if test $ac_cv_func_alloca_works = yes; then
5526 cat >> confdefs.h
<<\EOF
5527 #define HAVE_ALLOCA 1
5532 if test $ac_cv_func_alloca_works = no
; then
5533 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5534 # that cause trouble. Some versions do not even contain alloca or
5535 # contain a buggy version. If you still want to use their alloca,
5536 # use ar to extract alloca.o from them instead of compiling alloca.c.
5537 ALLOCA
=alloca.
${ac_objext}
5538 cat >> confdefs.h
<<\EOF
5543 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5544 echo "configure:5545: checking whether alloca needs Cray hooks" >&5
5545 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5546 echo $ac_n "(cached) $ac_c" 1>&6
5548 cat > conftest.
$ac_ext <<EOF
5549 #line 5550 "configure"
5550 #include "confdefs.h"
5551 #if defined(CRAY) && ! defined(CRAY2)
5558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5559 egrep "webecray" >/dev
/null
2>&1; then
5570 echo "$ac_t""$ac_cv_os_cray" 1>&6
5571 if test $ac_cv_os_cray = yes; then
5572 for ac_func
in _getb67 GETB67 getb67
; do
5573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5574 echo "configure:5575: checking for $ac_func" >&5
5575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5576 echo $ac_n "(cached) $ac_c" 1>&6
5578 cat > conftest.
$ac_ext <<EOF
5579 #line 5580 "configure"
5580 #include "confdefs.h"
5581 /* System header to define __stub macros and hopefully few prototypes,
5582 which can conflict with char $ac_func(); below. */
5584 /* Override any gcc2 internal prototype to avoid an error. */
5585 /* We use char because int might match the return type of a gcc2
5586 builtin and then its argument prototype would still apply. */
5591 /* The GNU C library defines this for functions which it implements
5592 to always fail with ENOSYS. Some functions are actually named
5593 something starting with __ and the normal name is an alias. */
5594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5602 if { (eval echo configure
:5603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5604 eval "ac_cv_func_$ac_func=yes"
5606 echo "configure: failed program was:" >&5
5607 cat conftest.
$ac_ext >&5
5609 eval "ac_cv_func_$ac_func=no"
5614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5615 echo "$ac_t""yes" 1>&6
5616 cat >> confdefs.h
<<EOF
5617 #define CRAY_STACKSEG_END $ac_func
5622 echo "$ac_t""no" 1>&6
5628 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5629 echo "configure:5630: checking stack direction for C alloca" >&5
5630 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5631 echo $ac_n "(cached) $ac_c" 1>&6
5633 if test "$cross_compiling" = yes; then
5634 ac_cv_c_stack_direction
=0
5636 cat > conftest.
$ac_ext <<EOF
5637 #line 5638 "configure"
5638 #include "confdefs.h"
5639 find_stack_direction ()
5641 static char *addr = 0;
5646 return find_stack_direction ();
5649 return (&dummy > addr) ? 1 : -1;
5653 exit (find_stack_direction() < 0);
5656 if { (eval echo configure
:5657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5658 ac_cv_c_stack_direction
=1
5660 echo "configure: failed program was:" >&5
5661 cat conftest.
$ac_ext >&5
5663 ac_cv_c_stack_direction
=-1
5670 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5671 cat >> confdefs.h
<<EOF
5672 #define STACK_DIRECTION $ac_cv_c_stack_direction
5677 for ac_hdr
in unistd.h
5679 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5681 echo "configure:5682: checking for $ac_hdr" >&5
5682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5683 echo $ac_n "(cached) $ac_c" 1>&6
5685 cat > conftest.
$ac_ext <<EOF
5686 #line 5687 "configure"
5687 #include "confdefs.h"
5690 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5691 { (eval echo configure
:5692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5692 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5693 if test -z "$ac_err"; then
5695 eval "ac_cv_header_$ac_safe=yes"
5698 echo "configure: failed program was:" >&5
5699 cat conftest.
$ac_ext >&5
5701 eval "ac_cv_header_$ac_safe=no"
5705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5706 echo "$ac_t""yes" 1>&6
5707 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5708 cat >> confdefs.h
<<EOF
5709 #define $ac_tr_hdr 1
5713 echo "$ac_t""no" 1>&6
5717 for ac_func
in getpagesize
5719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5720 echo "configure:5721: checking for $ac_func" >&5
5721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5722 echo $ac_n "(cached) $ac_c" 1>&6
5724 cat > conftest.
$ac_ext <<EOF
5725 #line 5726 "configure"
5726 #include "confdefs.h"
5727 /* System header to define __stub macros and hopefully few prototypes,
5728 which can conflict with char $ac_func(); below. */
5730 /* Override any gcc2 internal prototype to avoid an error. */
5731 /* We use char because int might match the return type of a gcc2
5732 builtin and then its argument prototype would still apply. */
5737 /* The GNU C library defines this for functions which it implements
5738 to always fail with ENOSYS. Some functions are actually named
5739 something starting with __ and the normal name is an alias. */
5740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5748 if { (eval echo configure
:5749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5750 eval "ac_cv_func_$ac_func=yes"
5752 echo "configure: failed program was:" >&5
5753 cat conftest.
$ac_ext >&5
5755 eval "ac_cv_func_$ac_func=no"
5760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5761 echo "$ac_t""yes" 1>&6
5762 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5763 cat >> confdefs.h
<<EOF
5764 #define $ac_tr_func 1
5768 echo "$ac_t""no" 1>&6
5772 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5773 echo "configure:5774: checking for working mmap" >&5
5774 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5775 echo $ac_n "(cached) $ac_c" 1>&6
5777 if test "$cross_compiling" = yes; then
5778 ac_cv_func_mmap_fixed_mapped
=no
5780 cat > conftest.
$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5784 /* Thanks to Mike Haertel and Jim Avera for this test.
5785 Here is a matrix of mmap possibilities:
5786 mmap private not fixed
5787 mmap private fixed at somewhere currently unmapped
5788 mmap private fixed at somewhere already mapped
5789 mmap shared not fixed
5790 mmap shared fixed at somewhere currently unmapped
5791 mmap shared fixed at somewhere already mapped
5792 For private mappings, we should verify that changes cannot be read()
5793 back from the file, nor mmap's back from the file at a different
5794 address. (There have been systems where private was not correctly
5795 implemented like the infamous i386 svr4.0, and systems where the
5796 VM page cache was not coherent with the filesystem buffer cache
5797 like early versions of FreeBSD and possibly contemporary NetBSD.)
5798 For shared mappings, we should conversely verify that changes get
5799 propogated back to all the places they're supposed to be.
5801 Grep wants private fixed already mapped.
5802 The main things grep needs to know about mmap are:
5803 * does it exist and is it safe to write into the mmap'd area
5804 * how to use it (BSD variants) */
5805 #include <sys/types.h>
5807 #include <sys/mman.h>
5809 /* This mess was copied from the GNU getpagesize.h. */
5810 #ifndef HAVE_GETPAGESIZE
5811 # ifdef HAVE_UNISTD_H
5812 # include <unistd.h>
5815 /* Assume that all systems that can run configure have sys/param.h. */
5816 # ifndef HAVE_SYS_PARAM_H
5817 # define HAVE_SYS_PARAM_H 1
5820 # ifdef _SC_PAGESIZE
5821 # define getpagesize() sysconf(_SC_PAGESIZE)
5822 # else /* no _SC_PAGESIZE */
5823 # ifdef HAVE_SYS_PARAM_H
5824 # include <sys/param.h>
5825 # ifdef EXEC_PAGESIZE
5826 # define getpagesize() EXEC_PAGESIZE
5827 # else /* no EXEC_PAGESIZE */
5829 # define getpagesize() NBPG * CLSIZE
5832 # endif /* no CLSIZE */
5833 # else /* no NBPG */
5835 # define getpagesize() NBPC
5836 # else /* no NBPC */
5838 # define getpagesize() PAGESIZE
5839 # endif /* PAGESIZE */
5840 # endif /* no NBPC */
5841 # endif /* no NBPG */
5842 # endif /* no EXEC_PAGESIZE */
5843 # else /* no HAVE_SYS_PARAM_H */
5844 # define getpagesize() 8192 /* punt totally */
5845 # endif /* no HAVE_SYS_PARAM_H */
5846 # endif /* no _SC_PAGESIZE */
5848 #endif /* no HAVE_GETPAGESIZE */
5851 extern "C" { void *malloc(unsigned); }
5859 char *data, *data2, *data3;
5863 pagesize = getpagesize();
5866 * First, make a file with some known garbage in it.
5868 data = malloc(pagesize);
5871 for (i = 0; i < pagesize; ++i)
5872 *(data + i) = rand();
5874 fd = creat("conftestmmap", 0600);
5877 if (write(fd, data, pagesize) != pagesize)
5882 * Next, try to mmap the file at a fixed address which
5883 * already has something else allocated at it. If we can,
5884 * also make sure that we see the same garbage.
5886 fd = open("conftestmmap", O_RDWR);
5889 data2 = malloc(2 * pagesize);
5892 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5893 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5894 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5896 for (i = 0; i < pagesize; ++i)
5897 if (*(data + i) != *(data2 + i))
5901 * Finally, make sure that changes to the mapped area
5902 * do not percolate back to the file as seen by read().
5903 * (This is a bug on some variants of i386 svr4.0.)
5905 for (i = 0; i < pagesize; ++i)
5906 *(data2 + i) = *(data2 + i) + 1;
5907 data3 = malloc(pagesize);
5910 if (read(fd, data3, pagesize) != pagesize)
5912 for (i = 0; i < pagesize; ++i)
5913 if (*(data + i) != *(data3 + i))
5916 unlink("conftestmmap");
5921 if { (eval echo configure
:5922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5923 ac_cv_func_mmap_fixed_mapped
=yes
5925 echo "configure: failed program was:" >&5
5926 cat conftest.
$ac_ext >&5
5928 ac_cv_func_mmap_fixed_mapped
=no
5935 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5936 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5937 cat >> confdefs.h
<<\EOF
5943 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5944 echo "configure:5945: checking for pid_t" >&5
5945 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5946 echo $ac_n "(cached) $ac_c" 1>&6
5948 cat > conftest.
$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5951 #include <sys/types.h>
5957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5958 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5960 ac_cv_type_pid_t
=yes
5968 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5969 if test $ac_cv_type_pid_t = no
; then
5970 cat >> confdefs.h
<<\EOF
5976 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
5977 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
5978 echo "configure:5979: checking for vfork.h" >&5
5979 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5980 echo $ac_n "(cached) $ac_c" 1>&6
5982 cat > conftest.
$ac_ext <<EOF
5983 #line 5984 "configure"
5984 #include "confdefs.h"
5987 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5988 { (eval echo configure
:5989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5989 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5990 if test -z "$ac_err"; then
5992 eval "ac_cv_header_$ac_safe=yes"
5995 echo "configure: failed program was:" >&5
5996 cat conftest.
$ac_ext >&5
5998 eval "ac_cv_header_$ac_safe=no"
6002 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6003 echo "$ac_t""yes" 1>&6
6004 cat >> confdefs.h
<<\EOF
6005 #define HAVE_VFORK_H 1
6009 echo "$ac_t""no" 1>&6
6012 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
6013 echo "configure:6014: checking for working vfork" >&5
6014 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
6015 echo $ac_n "(cached) $ac_c" 1>&6
6017 if test "$cross_compiling" = yes; then
6018 echo $ac_n "checking for vfork""... $ac_c" 1>&6
6019 echo "configure:6020: checking for vfork" >&5
6020 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
6021 echo $ac_n "(cached) $ac_c" 1>&6
6023 cat > conftest.
$ac_ext <<EOF
6024 #line 6025 "configure"
6025 #include "confdefs.h"
6026 /* System header to define __stub macros and hopefully few prototypes,
6027 which can conflict with char vfork(); below. */
6029 /* Override any gcc2 internal prototype to avoid an error. */
6030 /* We use char because int might match the return type of a gcc2
6031 builtin and then its argument prototype would still apply. */
6036 /* The GNU C library defines this for functions which it implements
6037 to always fail with ENOSYS. Some functions are actually named
6038 something starting with __ and the normal name is an alias. */
6039 #if defined (__stub_vfork) || defined (__stub___vfork)
6047 if { (eval echo configure
:6048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6049 eval "ac_cv_func_vfork=yes"
6051 echo "configure: failed program was:" >&5
6052 cat conftest.
$ac_ext >&5
6054 eval "ac_cv_func_vfork=no"
6059 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
6060 echo "$ac_t""yes" 1>&6
6063 echo "$ac_t""no" 1>&6
6066 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6068 cat > conftest.
$ac_ext <<EOF
6069 #line 6070 "configure"
6070 #include "confdefs.h"
6071 /* Thanks to Paul Eggert for this test. */
6073 #include <sys/types.h>
6074 #include <sys/stat.h>
6075 #ifdef HAVE_UNISTD_H
6081 /* On some sparc systems, changes by the child to local and incoming
6082 argument registers are propagated back to the parent.
6083 The compiler is told about this with #include <vfork.h>,
6084 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
6085 Test for this by using a static variable whose address
6086 is put into a register that is clobbered by the vfork. */
6089 sparc_address_test (int arg)
6091 sparc_address_test (arg) int arg;
6109 pid_t parent = getpid ();
6112 sparc_address_test ();
6117 /* Here is another test for sparc vfork register problems.
6118 This test uses lots of local variables, at least
6119 as many local variables as main has allocated so far
6120 including compiler temporaries. 4 locals are enough for
6121 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
6122 A buggy compiler should reuse the register of parent
6123 for one of the local variables, since it will think that
6124 parent can't possibly be used any more in this routine.
6125 Assigning to the local variable will thus munge parent
6126 in the parent process. */
6128 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6129 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6130 /* Convince the compiler that p..p7 are live; otherwise, it might
6131 use the same hardware register for all 8 local variables. */
6132 if (p != p1 || p != p2 || p != p3 || p != p4
6133 || p != p5 || p != p6 || p != p7)
6136 /* On some systems (e.g. IRIX 3.3),
6137 vfork doesn't separate parent from child file descriptors.
6138 If the child closes a descriptor before it execs or exits,
6139 this munges the parent's descriptor as well.
6140 Test for this by closing stdout in the child. */
6141 _exit(close(fileno(stdout)) != 0);
6146 while (wait(&status) != child)
6149 /* Was there some problem with vforking? */
6152 /* Did the child fail? (This shouldn't happen.) */
6155 /* Did the vfork/compiler bug occur? */
6156 || parent != getpid()
6158 /* Did the file descriptor bug occur? */
6159 || fstat(fileno(stdout), &st) != 0
6164 if { (eval echo configure
:6165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6166 ac_cv_func_vfork_works
=yes
6168 echo "configure: failed program was:" >&5
6169 cat conftest.
$ac_ext >&5
6171 ac_cv_func_vfork_works
=no
6178 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6179 if test $ac_cv_func_vfork_works = no
; then
6180 cat >> confdefs.h
<<\EOF
6186 for ac_func
in canonicalize_file_name realpath
6188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6189 echo "configure:6190: checking for $ac_func" >&5
6190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6191 echo $ac_n "(cached) $ac_c" 1>&6
6193 cat > conftest.
$ac_ext <<EOF
6194 #line 6195 "configure"
6195 #include "confdefs.h"
6196 /* System header to define __stub macros and hopefully few prototypes,
6197 which can conflict with char $ac_func(); below. */
6199 /* Override any gcc2 internal prototype to avoid an error. */
6200 /* We use char because int might match the return type of a gcc2
6201 builtin and then its argument prototype would still apply. */
6206 /* The GNU C library defines this for functions which it implements
6207 to always fail with ENOSYS. Some functions are actually named
6208 something starting with __ and the normal name is an alias. */
6209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6217 if { (eval echo configure
:6218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6219 eval "ac_cv_func_$ac_func=yes"
6221 echo "configure: failed program was:" >&5
6222 cat conftest.
$ac_ext >&5
6224 eval "ac_cv_func_$ac_func=no"
6229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6230 echo "$ac_t""yes" 1>&6
6231 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6232 cat >> confdefs.h
<<EOF
6233 #define $ac_tr_func 1
6237 echo "$ac_t""no" 1>&6
6243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6244 echo "configure:6245: checking for $ac_func" >&5
6245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6246 echo $ac_n "(cached) $ac_c" 1>&6
6248 cat > conftest.
$ac_ext <<EOF
6249 #line 6250 "configure"
6250 #include "confdefs.h"
6251 /* System header to define __stub macros and hopefully few prototypes,
6252 which can conflict with char $ac_func(); below. */
6254 /* Override any gcc2 internal prototype to avoid an error. */
6255 /* We use char because int might match the return type of a gcc2
6256 builtin and then its argument prototype would still apply. */
6261 /* The GNU C library defines this for functions which it implements
6262 to always fail with ENOSYS. Some functions are actually named
6263 something starting with __ and the normal name is an alias. */
6264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6272 if { (eval echo configure
:6273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6274 eval "ac_cv_func_$ac_func=yes"
6276 echo "configure: failed program was:" >&5
6277 cat conftest.
$ac_ext >&5
6279 eval "ac_cv_func_$ac_func=no"
6284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6285 echo "$ac_t""yes" 1>&6
6286 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6287 cat >> confdefs.h
<<EOF
6288 #define $ac_tr_func 1
6292 echo "$ac_t""no" 1>&6
6296 for ac_func
in pread64
6298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6299 echo "configure:6300: checking for $ac_func" >&5
6300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6301 echo $ac_n "(cached) $ac_c" 1>&6
6303 cat > conftest.
$ac_ext <<EOF
6304 #line 6305 "configure"
6305 #include "confdefs.h"
6306 /* System header to define __stub macros and hopefully few prototypes,
6307 which can conflict with char $ac_func(); below. */
6309 /* Override any gcc2 internal prototype to avoid an error. */
6310 /* We use char because int might match the return type of a gcc2
6311 builtin and then its argument prototype would still apply. */
6316 /* The GNU C library defines this for functions which it implements
6317 to always fail with ENOSYS. Some functions are actually named
6318 something starting with __ and the normal name is an alias. */
6319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6327 if { (eval echo configure
:6328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6329 eval "ac_cv_func_$ac_func=yes"
6331 echo "configure: failed program was:" >&5
6332 cat conftest.
$ac_ext >&5
6334 eval "ac_cv_func_$ac_func=no"
6339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6340 echo "$ac_t""yes" 1>&6
6341 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6342 cat >> confdefs.h
<<EOF
6343 #define $ac_tr_func 1
6347 echo "$ac_t""no" 1>&6
6353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6354 echo "configure:6355: checking for $ac_func" >&5
6355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6356 echo $ac_n "(cached) $ac_c" 1>&6
6358 cat > conftest.
$ac_ext <<EOF
6359 #line 6360 "configure"
6360 #include "confdefs.h"
6361 /* System header to define __stub macros and hopefully few prototypes,
6362 which can conflict with char $ac_func(); below. */
6364 /* Override any gcc2 internal prototype to avoid an error. */
6365 /* We use char because int might match the return type of a gcc2
6366 builtin and then its argument prototype would still apply. */
6371 /* The GNU C library defines this for functions which it implements
6372 to always fail with ENOSYS. Some functions are actually named
6373 something starting with __ and the normal name is an alias. */
6374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6382 if { (eval echo configure
:6383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6384 eval "ac_cv_func_$ac_func=yes"
6386 echo "configure: failed program was:" >&5
6387 cat conftest.
$ac_ext >&5
6389 eval "ac_cv_func_$ac_func=no"
6394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6395 echo "$ac_t""yes" 1>&6
6396 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6397 cat >> confdefs.h
<<EOF
6398 #define $ac_tr_func 1
6402 echo "$ac_t""no" 1>&6
6406 for ac_func
in setpgid setpgrp
6408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6409 echo "configure:6410: checking for $ac_func" >&5
6410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6411 echo $ac_n "(cached) $ac_c" 1>&6
6413 cat > conftest.
$ac_ext <<EOF
6414 #line 6415 "configure"
6415 #include "confdefs.h"
6416 /* System header to define __stub macros and hopefully few prototypes,
6417 which can conflict with char $ac_func(); below. */
6419 /* Override any gcc2 internal prototype to avoid an error. */
6420 /* We use char because int might match the return type of a gcc2
6421 builtin and then its argument prototype would still apply. */
6426 /* The GNU C library defines this for functions which it implements
6427 to always fail with ENOSYS. Some functions are actually named
6428 something starting with __ and the normal name is an alias. */
6429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6437 if { (eval echo configure
:6438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6439 eval "ac_cv_func_$ac_func=yes"
6441 echo "configure: failed program was:" >&5
6442 cat conftest.
$ac_ext >&5
6444 eval "ac_cv_func_$ac_func=no"
6449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6450 echo "$ac_t""yes" 1>&6
6451 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6452 cat >> confdefs.h
<<EOF
6453 #define $ac_tr_func 1
6457 echo "$ac_t""no" 1>&6
6461 for ac_func
in sigaction sigprocmask sigsetmask
6463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6464 echo "configure:6465: checking for $ac_func" >&5
6465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6466 echo $ac_n "(cached) $ac_c" 1>&6
6468 cat > conftest.
$ac_ext <<EOF
6469 #line 6470 "configure"
6470 #include "confdefs.h"
6471 /* System header to define __stub macros and hopefully few prototypes,
6472 which can conflict with char $ac_func(); below. */
6474 /* Override any gcc2 internal prototype to avoid an error. */
6475 /* We use char because int might match the return type of a gcc2
6476 builtin and then its argument prototype would still apply. */
6481 /* The GNU C library defines this for functions which it implements
6482 to always fail with ENOSYS. Some functions are actually named
6483 something starting with __ and the normal name is an alias. */
6484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6492 if { (eval echo configure
:6493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6494 eval "ac_cv_func_$ac_func=yes"
6496 echo "configure: failed program was:" >&5
6497 cat conftest.
$ac_ext >&5
6499 eval "ac_cv_func_$ac_func=no"
6504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6505 echo "$ac_t""yes" 1>&6
6506 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6507 cat >> confdefs.h
<<EOF
6508 #define $ac_tr_func 1
6512 echo "$ac_t""no" 1>&6
6516 for ac_func
in socketpair
6518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6519 echo "configure:6520: checking for $ac_func" >&5
6520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6521 echo $ac_n "(cached) $ac_c" 1>&6
6523 cat > conftest.
$ac_ext <<EOF
6524 #line 6525 "configure"
6525 #include "confdefs.h"
6526 /* System header to define __stub macros and hopefully few prototypes,
6527 which can conflict with char $ac_func(); below. */
6529 /* Override any gcc2 internal prototype to avoid an error. */
6530 /* We use char because int might match the return type of a gcc2
6531 builtin and then its argument prototype would still apply. */
6536 /* The GNU C library defines this for functions which it implements
6537 to always fail with ENOSYS. Some functions are actually named
6538 something starting with __ and the normal name is an alias. */
6539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6547 if { (eval echo configure
:6548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6549 eval "ac_cv_func_$ac_func=yes"
6551 echo "configure: failed program was:" >&5
6552 cat conftest.
$ac_ext >&5
6554 eval "ac_cv_func_$ac_func=no"
6559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6560 echo "$ac_t""yes" 1>&6
6561 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6562 cat >> confdefs.h
<<EOF
6563 #define $ac_tr_func 1
6567 echo "$ac_t""no" 1>&6
6572 if test "$cross_compiling" = no
; then
6573 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
6574 echo "configure:6575: checking whether setpgrp takes no argument" >&5
6575 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
6576 echo $ac_n "(cached) $ac_c" 1>&6
6578 if test "$cross_compiling" = yes; then
6579 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
6581 cat > conftest.
$ac_ext <<EOF
6582 #line 6583 "configure"
6583 #include "confdefs.h"
6585 #ifdef HAVE_UNISTD_H
6590 * If this system has a BSD-style setpgrp, which takes arguments, exit
6595 if (setpgrp(1,1) == -1)
6602 if { (eval echo configure
:6603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6604 ac_cv_func_setpgrp_void
=no
6606 echo "configure: failed program was:" >&5
6607 cat conftest.
$ac_ext >&5
6609 ac_cv_func_setpgrp_void
=yes
6617 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
6618 if test $ac_cv_func_setpgrp_void = yes; then
6619 cat >> confdefs.h
<<\EOF
6620 #define SETPGRP_VOID 1
6626 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
6627 echo "configure:6628: checking whether setpgrp takes no argument" >&5
6628 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
6629 echo $ac_n "(cached) $ac_c" 1>&6
6631 cat > conftest.
$ac_ext <<EOF
6632 #line 6633 "configure"
6633 #include "confdefs.h"
6639 if (setpgrp(1,1) == -1)
6646 if { (eval echo configure
:6647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6648 ac_cv_func_setpgrp_void
=no
6650 echo "configure: failed program was:" >&5
6651 cat conftest.
$ac_ext >&5
6653 ac_cv_func_setpgrp_void
=yes
6658 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
6659 if test $ac_cv_func_setpgrp_void = yes; then
6660 cat >> confdefs.h
<<\EOF
6661 #define SETPGRP_VOID 1
6667 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
6668 # since sigsetjmp might only be defined as a macro.
6669 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6670 echo "configure:6671: checking for sigsetjmp" >&5
6671 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
6672 echo $ac_n "(cached) $ac_c" 1>&6
6674 cat > conftest.
$ac_ext <<EOF
6675 #line 6676 "configure"
6676 #include "confdefs.h"
6681 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6684 if { (eval echo configure
:6685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6686 gdb_cv_func_sigsetjmp
=yes
6688 echo "configure: failed program was:" >&5
6689 cat conftest.
$ac_ext >&5
6691 gdb_cv_func_sigsetjmp
=no
6696 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
6697 if test $gdb_cv_func_sigsetjmp = yes; then
6698 cat >> confdefs.h
<<\EOF
6699 #define HAVE_SIGSETJMP 1
6704 # Assume we'll default to using the included libiberty regex.
6705 gdb_use_included_regex
=yes
6707 # However, if the system regex is GNU regex, then default to *not*
6708 # using the included regex.
6709 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
6710 echo "configure:6711: checking for GNU regex" >&5
6711 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
6712 echo $ac_n "(cached) $ac_c" 1>&6
6714 cat > conftest.
$ac_ext <<EOF
6715 #line 6716 "configure"
6716 #include "confdefs.h"
6717 #include <gnu-versions.h>
6719 #define REGEX_INTERFACE_VERSION 1
6720 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
6721 # error "Version mismatch"
6725 if { (eval echo configure
:6726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6727 gdb_cv_have_gnu_regex
=yes
6729 echo "configure: failed program was:" >&5
6730 cat conftest.
$ac_ext >&5
6732 gdb_cv_have_gnu_regex
=no
6737 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
6738 if test $gdb_cv_have_gnu_regex = yes; then
6739 gdb_use_included_regex
=no
6742 # Check whether --with-included-regex or --without-included-regex was given.
6743 if test "${with_included_regex+set}" = set; then
6744 withval
="$with_included_regex"
6745 gdb_with_regex
=$withval
6747 gdb_with_regex
=$gdb_use_included_regex
6750 if test "$gdb_with_regex" = yes; then
6751 cat >> confdefs.h
<<\EOF
6752 #define USE_INCLUDED_REGEX 1
6757 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
6758 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
6759 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
6760 echo "configure:6761: checking for r_fs in struct reg" >&5
6761 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
6762 echo $ac_n "(cached) $ac_c" 1>&6
6764 cat > conftest.
$ac_ext <<EOF
6765 #line 6766 "configure"
6766 #include "confdefs.h"
6767 #include <machine/reg.h>
6769 struct reg r; r.r_fs;
6772 if { (eval echo configure
:6773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6774 gdb_cv_struct_reg_r_fs
=yes
6776 echo "configure: failed program was:" >&5
6777 cat conftest.
$ac_ext >&5
6779 gdb_cv_struct_reg_r_fs
=no
6784 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
6785 if test $gdb_cv_struct_reg_r_fs = yes; then
6786 cat >> confdefs.h
<<\EOF
6787 #define HAVE_STRUCT_REG_R_FS 1
6791 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
6792 echo "configure:6793: checking for r_gs in struct reg" >&5
6793 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
6794 echo $ac_n "(cached) $ac_c" 1>&6
6796 cat > conftest.
$ac_ext <<EOF
6797 #line 6798 "configure"
6798 #include "confdefs.h"
6799 #include <machine/reg.h>
6801 struct reg r; r.r_gs;
6804 if { (eval echo configure
:6805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6806 gdb_cv_struct_reg_r_gs
=yes
6808 echo "configure: failed program was:" >&5
6809 cat conftest.
$ac_ext >&5
6811 gdb_cv_struct_reg_r_gs
=no
6816 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
6817 if test $gdb_cv_struct_reg_r_gs = yes; then
6818 cat >> confdefs.h
<<\EOF
6819 #define HAVE_STRUCT_REG_R_GS 1
6824 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
6825 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
6826 echo "configure:6827: checking for PTRACE_GETREGS" >&5
6827 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
6828 echo $ac_n "(cached) $ac_c" 1>&6
6830 cat > conftest.
$ac_ext <<EOF
6831 #line 6832 "configure"
6832 #include "confdefs.h"
6833 #include <sys/ptrace.h>
6838 if { (eval echo configure
:6839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6840 gdb_cv_have_ptrace_getregs
=yes
6842 echo "configure: failed program was:" >&5
6843 cat conftest.
$ac_ext >&5
6845 gdb_cv_have_ptrace_getregs
=no
6850 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
6851 if test $gdb_cv_have_ptrace_getregs = yes; then
6852 cat >> confdefs.h
<<\EOF
6853 #define HAVE_PTRACE_GETREGS 1
6858 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
6859 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
6860 echo "configure:6861: checking for PTRACE_GETFPXREGS" >&5
6861 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6864 cat > conftest.
$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6867 #include <sys/ptrace.h>
6872 if { (eval echo configure
:6873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6874 gdb_cv_have_ptrace_getfpxregs
=yes
6876 echo "configure: failed program was:" >&5
6877 cat conftest.
$ac_ext >&5
6879 gdb_cv_have_ptrace_getfpxregs
=no
6884 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
6885 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
6886 cat >> confdefs.h
<<\EOF
6887 #define HAVE_PTRACE_GETFPXREGS 1
6892 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
6893 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
6894 echo "configure:6895: checking for PT_GETDBREGS" >&5
6895 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
6896 echo $ac_n "(cached) $ac_c" 1>&6
6898 cat > conftest.
$ac_ext <<EOF
6899 #line 6900 "configure"
6900 #include "confdefs.h"
6901 #include <sys/types.h>
6902 #include <sys/ptrace.h>
6907 if { (eval echo configure
:6908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6909 gdb_cv_have_pt_getdbregs
=yes
6911 echo "configure: failed program was:" >&5
6912 cat conftest.
$ac_ext >&5
6914 gdb_cv_have_pt_getdbregs
=no
6919 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
6920 if test $gdb_cv_have_pt_getdbregs = yes; then
6921 cat >> confdefs.h
<<\EOF
6922 #define HAVE_PT_GETDBREGS 1
6927 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
6928 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
6929 echo "configure:6930: checking for PT_GETXMMREGS" >&5
6930 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+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"
6936 #include <sys/types.h>
6937 #include <sys/ptrace.h>
6942 if { (eval echo configure
:6943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6944 gdb_cv_have_pt_getxmmregs
=yes
6946 echo "configure: failed program was:" >&5
6947 cat conftest.
$ac_ext >&5
6949 gdb_cv_have_pt_getxmmregs
=no
6954 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
6955 if test $gdb_cv_have_pt_getxmmregs = yes; then
6956 cat >> confdefs.h
<<\EOF
6957 #define HAVE_PT_GETXMMREGS 1
6963 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
6964 echo "configure:6965: checking whether malloc must be declared" >&5
6965 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
6966 echo $ac_n "(cached) $ac_c" 1>&6
6968 cat > conftest.
$ac_ext <<EOF
6969 #line 6970 "configure"
6970 #include "confdefs.h"
6973 #ifdef HAVE_STRING_H
6976 #ifdef HAVE_STRINGS_H
6977 #include <strings.h>
6980 #ifdef HAVE_STDLIB_H
6983 #ifdef HAVE_UNISTD_H
6987 char *(*pfn) = (char *(*)) malloc
6990 if { (eval echo configure
:6991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6992 bfd_cv_decl_needed_malloc
=no
6994 echo "configure: failed program was:" >&5
6995 cat conftest.
$ac_ext >&5
6997 bfd_cv_decl_needed_malloc
=yes
7002 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
7003 if test $bfd_cv_decl_needed_malloc = yes; then
7004 cat >> confdefs.h
<<\EOF
7005 #define NEED_DECLARATION_MALLOC 1
7010 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
7011 echo "configure:7012: checking whether realloc must be declared" >&5
7012 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
7013 echo $ac_n "(cached) $ac_c" 1>&6
7015 cat > conftest.
$ac_ext <<EOF
7016 #line 7017 "configure"
7017 #include "confdefs.h"
7020 #ifdef HAVE_STRING_H
7023 #ifdef HAVE_STRINGS_H
7024 #include <strings.h>
7027 #ifdef HAVE_STDLIB_H
7030 #ifdef HAVE_UNISTD_H
7034 char *(*pfn) = (char *(*)) realloc
7037 if { (eval echo configure
:7038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7039 bfd_cv_decl_needed_realloc
=no
7041 echo "configure: failed program was:" >&5
7042 cat conftest.
$ac_ext >&5
7044 bfd_cv_decl_needed_realloc
=yes
7049 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
7050 if test $bfd_cv_decl_needed_realloc = yes; then
7051 cat >> confdefs.h
<<\EOF
7052 #define NEED_DECLARATION_REALLOC 1
7057 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
7058 echo "configure:7059: checking whether free must be declared" >&5
7059 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
7060 echo $ac_n "(cached) $ac_c" 1>&6
7062 cat > conftest.
$ac_ext <<EOF
7063 #line 7064 "configure"
7064 #include "confdefs.h"
7067 #ifdef HAVE_STRING_H
7070 #ifdef HAVE_STRINGS_H
7071 #include <strings.h>
7074 #ifdef HAVE_STDLIB_H
7077 #ifdef HAVE_UNISTD_H
7081 char *(*pfn) = (char *(*)) free
7084 if { (eval echo configure
:7085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7086 bfd_cv_decl_needed_free
=no
7088 echo "configure: failed program was:" >&5
7089 cat conftest.
$ac_ext >&5
7091 bfd_cv_decl_needed_free
=yes
7096 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
7097 if test $bfd_cv_decl_needed_free = yes; then
7098 cat >> confdefs.h
<<\EOF
7099 #define NEED_DECLARATION_FREE 1
7104 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
7105 echo "configure:7106: checking whether strerror must be declared" >&5
7106 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
7107 echo $ac_n "(cached) $ac_c" 1>&6
7109 cat > conftest.
$ac_ext <<EOF
7110 #line 7111 "configure"
7111 #include "confdefs.h"
7114 #ifdef HAVE_STRING_H
7117 #ifdef HAVE_STRINGS_H
7118 #include <strings.h>
7121 #ifdef HAVE_STDLIB_H
7124 #ifdef HAVE_UNISTD_H
7128 char *(*pfn) = (char *(*)) strerror
7131 if { (eval echo configure
:7132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7133 bfd_cv_decl_needed_strerror
=no
7135 echo "configure: failed program was:" >&5
7136 cat conftest.
$ac_ext >&5
7138 bfd_cv_decl_needed_strerror
=yes
7143 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
7144 if test $bfd_cv_decl_needed_strerror = yes; then
7145 cat >> confdefs.h
<<\EOF
7146 #define NEED_DECLARATION_STRERROR 1
7151 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
7152 echo "configure:7153: checking whether strdup must be declared" >&5
7153 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
7154 echo $ac_n "(cached) $ac_c" 1>&6
7156 cat > conftest.
$ac_ext <<EOF
7157 #line 7158 "configure"
7158 #include "confdefs.h"
7161 #ifdef HAVE_STRING_H
7164 #ifdef HAVE_STRINGS_H
7165 #include <strings.h>
7168 #ifdef HAVE_STDLIB_H
7171 #ifdef HAVE_UNISTD_H
7175 char *(*pfn) = (char *(*)) strdup
7178 if { (eval echo configure
:7179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7180 bfd_cv_decl_needed_strdup
=no
7182 echo "configure: failed program was:" >&5
7183 cat conftest.
$ac_ext >&5
7185 bfd_cv_decl_needed_strdup
=yes
7190 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
7191 if test $bfd_cv_decl_needed_strdup = yes; then
7192 cat >> confdefs.h
<<\EOF
7193 #define NEED_DECLARATION_STRDUP 1
7198 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
7199 echo "configure:7200: checking whether strstr must be declared" >&5
7200 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
7201 echo $ac_n "(cached) $ac_c" 1>&6
7203 cat > conftest.
$ac_ext <<EOF
7204 #line 7205 "configure"
7205 #include "confdefs.h"
7208 #ifdef HAVE_STRING_H
7211 #ifdef HAVE_STRINGS_H
7212 #include <strings.h>
7215 #ifdef HAVE_STDLIB_H
7218 #ifdef HAVE_UNISTD_H
7222 char *(*pfn) = (char *(*)) strstr
7225 if { (eval echo configure
:7226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7227 bfd_cv_decl_needed_strstr
=no
7229 echo "configure: failed program was:" >&5
7230 cat conftest.
$ac_ext >&5
7232 bfd_cv_decl_needed_strstr
=yes
7237 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
7238 if test $bfd_cv_decl_needed_strstr = yes; then
7239 cat >> confdefs.h
<<\EOF
7240 #define NEED_DECLARATION_STRSTR 1
7245 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
7246 echo "configure:7247: checking whether canonicalize_file_name must be declared" >&5
7247 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
7248 echo $ac_n "(cached) $ac_c" 1>&6
7250 cat > conftest.
$ac_ext <<EOF
7251 #line 7252 "configure"
7252 #include "confdefs.h"
7255 #ifdef HAVE_STRING_H
7258 #ifdef HAVE_STRINGS_H
7259 #include <strings.h>
7262 #ifdef HAVE_STDLIB_H
7265 #ifdef HAVE_UNISTD_H
7269 char *(*pfn) = (char *(*)) canonicalize_file_name
7272 if { (eval echo configure
:7273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7274 bfd_cv_decl_needed_canonicalize_file_name
=no
7276 echo "configure: failed program was:" >&5
7277 cat conftest.
$ac_ext >&5
7279 bfd_cv_decl_needed_canonicalize_file_name
=yes
7284 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
7285 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
7286 cat >> confdefs.h
<<\EOF
7287 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7293 # The following save_state_t checkery is only necessary for HPUX
7294 # versions earlier than 10.20. When those fade from memory, this
7295 # could be expunged. --jsm 1999-03-22
7297 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
7298 echo "configure:7299: checking for HPUX save_state structure" >&5
7299 cat > conftest.
$ac_ext <<EOF
7300 #line 7301 "configure"
7301 #include "confdefs.h"
7302 #include <machine/save_state.h>
7304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7305 egrep "save_state_t" >/dev
/null
2>&1; then
7307 gdb_cv_hpux_savestate
=yes
7310 gdb_cv_hpux_savestate
=no
7314 cat > conftest.
$ac_ext <<EOF
7315 #line 7316 "configure"
7316 #include "confdefs.h"
7317 #include <machine/save_state.h>
7319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7320 egrep "ss_wide" >/dev
/null
2>&1; then
7322 gdb_cv_hpux_sswide
=yes
7325 gdb_cv_hpux_sswide
=no
7329 if test $gdb_cv_hpux_savestate = yes
7331 cat >> confdefs.h
<<\EOF
7332 #define HAVE_STRUCT_SAVE_STATE_T 1
7336 if test $gdb_cv_hpux_sswide = yes
7338 cat >> confdefs.h
<<\EOF
7339 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
7343 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
7346 # If we are configured native on GNU/Linux, work around problems with
7348 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
7350 if test "${target}" = "${host}"; then
7353 cat >> confdefs.h
<<\EOF
7354 #define START_INFERIOR_TRAPS_EXPECTED 2
7357 cat >> confdefs.h
<<\EOF
7358 #define sys_quotactl 1
7363 cat >> confdefs.h
<<\EOF
7364 #define NEW_PROC_API 1
7368 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
7369 cat >> confdefs.h
<<\EOF
7370 #define NEW_PROC_API 1
7375 cat >> confdefs.h
<<\EOF
7376 #define NEW_PROC_API 1
7383 if test "$ac_cv_header_sys_procfs_h" = yes; then
7384 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
7385 echo "configure:7386: checking for pstatus_t in sys/procfs.h" >&5
7386 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
7387 echo $ac_n "(cached) $ac_c" 1>&6
7389 cat > conftest.
$ac_ext <<EOF
7390 #line 7391 "configure"
7391 #include "confdefs.h"
7394 #include <sys/procfs.h>
7399 if { (eval echo configure
:7400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7401 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
7403 echo "configure: failed program was:" >&5
7404 cat conftest.
$ac_ext >&5
7406 bfd_cv_have_sys_procfs_type_pstatus_t
=no
7412 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
7413 cat >> confdefs.h
<<\EOF
7414 #define HAVE_PSTATUS_T 1
7418 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
7420 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
7421 echo "configure:7422: checking for prrun_t in sys/procfs.h" >&5
7422 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
7423 echo $ac_n "(cached) $ac_c" 1>&6
7425 cat > conftest.
$ac_ext <<EOF
7426 #line 7427 "configure"
7427 #include "confdefs.h"
7430 #include <sys/procfs.h>
7435 if { (eval echo configure
:7436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7437 bfd_cv_have_sys_procfs_type_prrun_t
=yes
7439 echo "configure: failed program was:" >&5
7440 cat conftest.
$ac_ext >&5
7442 bfd_cv_have_sys_procfs_type_prrun_t
=no
7448 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
7449 cat >> confdefs.h
<<\EOF
7450 #define HAVE_PRRUN_T 1
7454 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
7456 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
7457 echo "configure:7458: checking for gregset_t in sys/procfs.h" >&5
7458 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
7459 echo $ac_n "(cached) $ac_c" 1>&6
7461 cat > conftest.
$ac_ext <<EOF
7462 #line 7463 "configure"
7463 #include "confdefs.h"
7466 #include <sys/procfs.h>
7471 if { (eval echo configure
:7472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7473 bfd_cv_have_sys_procfs_type_gregset_t
=yes
7475 echo "configure: failed program was:" >&5
7476 cat conftest.
$ac_ext >&5
7478 bfd_cv_have_sys_procfs_type_gregset_t
=no
7484 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
7485 cat >> confdefs.h
<<\EOF
7486 #define HAVE_GREGSET_T 1
7490 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
7492 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
7493 echo "configure:7494: checking for fpregset_t in sys/procfs.h" >&5
7494 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
7495 echo $ac_n "(cached) $ac_c" 1>&6
7497 cat > conftest.
$ac_ext <<EOF
7498 #line 7499 "configure"
7499 #include "confdefs.h"
7502 #include <sys/procfs.h>
7507 if { (eval echo configure
:7508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7509 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
7511 echo "configure: failed program was:" >&5
7512 cat conftest.
$ac_ext >&5
7514 bfd_cv_have_sys_procfs_type_fpregset_t
=no
7520 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
7521 cat >> confdefs.h
<<\EOF
7522 #define HAVE_FPREGSET_T 1
7526 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
7528 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
7529 echo "configure:7530: checking for prgregset_t in sys/procfs.h" >&5
7530 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
7531 echo $ac_n "(cached) $ac_c" 1>&6
7533 cat > conftest.
$ac_ext <<EOF
7534 #line 7535 "configure"
7535 #include "confdefs.h"
7538 #include <sys/procfs.h>
7543 if { (eval echo configure
:7544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7545 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
7547 echo "configure: failed program was:" >&5
7548 cat conftest.
$ac_ext >&5
7550 bfd_cv_have_sys_procfs_type_prgregset_t
=no
7556 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
7557 cat >> confdefs.h
<<\EOF
7558 #define HAVE_PRGREGSET_T 1
7562 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
7564 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
7565 echo "configure:7566: checking for prfpregset_t in sys/procfs.h" >&5
7566 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
7567 echo $ac_n "(cached) $ac_c" 1>&6
7569 cat > conftest.
$ac_ext <<EOF
7570 #line 7571 "configure"
7571 #include "confdefs.h"
7574 #include <sys/procfs.h>
7579 if { (eval echo configure
:7580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7581 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
7583 echo "configure: failed program was:" >&5
7584 cat conftest.
$ac_ext >&5
7586 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
7592 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7593 cat >> confdefs.h
<<\EOF
7594 #define HAVE_PRFPREGSET_T 1
7598 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
7600 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
7601 echo "configure:7602: checking for prgregset32_t in sys/procfs.h" >&5
7602 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
7603 echo $ac_n "(cached) $ac_c" 1>&6
7605 cat > conftest.
$ac_ext <<EOF
7606 #line 7607 "configure"
7607 #include "confdefs.h"
7610 #include <sys/procfs.h>
7615 if { (eval echo configure
:7616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7617 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
7619 echo "configure: failed program was:" >&5
7620 cat conftest.
$ac_ext >&5
7622 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
7628 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
7629 cat >> confdefs.h
<<\EOF
7630 #define HAVE_PRGREGSET32_T 1
7634 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
7636 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
7637 echo "configure:7638: checking for prfpregset32_t in sys/procfs.h" >&5
7638 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
7639 echo $ac_n "(cached) $ac_c" 1>&6
7641 cat > conftest.
$ac_ext <<EOF
7642 #line 7643 "configure"
7643 #include "confdefs.h"
7646 #include <sys/procfs.h>
7651 if { (eval echo configure
:7652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7653 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
7655 echo "configure: failed program was:" >&5
7656 cat conftest.
$ac_ext >&5
7658 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
7664 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
7665 cat >> confdefs.h
<<\EOF
7666 #define HAVE_PRFPREGSET32_T 1
7670 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
7672 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
7673 echo "configure:7674: checking for lwpid_t in sys/procfs.h" >&5
7674 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
7675 echo $ac_n "(cached) $ac_c" 1>&6
7677 cat > conftest.
$ac_ext <<EOF
7678 #line 7679 "configure"
7679 #include "confdefs.h"
7682 #include <sys/procfs.h>
7687 if { (eval echo configure
:7688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7689 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
7691 echo "configure: failed program was:" >&5
7692 cat conftest.
$ac_ext >&5
7694 bfd_cv_have_sys_procfs_type_lwpid_t
=no
7700 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
7701 cat >> confdefs.h
<<\EOF
7702 #define HAVE_LWPID_T 1
7706 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
7708 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
7709 echo "configure:7710: checking for psaddr_t in sys/procfs.h" >&5
7710 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
7711 echo $ac_n "(cached) $ac_c" 1>&6
7713 cat > conftest.
$ac_ext <<EOF
7714 #line 7715 "configure"
7715 #include "confdefs.h"
7718 #include <sys/procfs.h>
7723 if { (eval echo configure
:7724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7725 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
7727 echo "configure: failed program was:" >&5
7728 cat conftest.
$ac_ext >&5
7730 bfd_cv_have_sys_procfs_type_psaddr_t
=no
7736 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
7737 cat >> confdefs.h
<<\EOF
7738 #define HAVE_PSADDR_T 1
7742 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
7744 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
7745 echo "configure:7746: checking for prsysent_t in sys/procfs.h" >&5
7746 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
7747 echo $ac_n "(cached) $ac_c" 1>&6
7749 cat > conftest.
$ac_ext <<EOF
7750 #line 7751 "configure"
7751 #include "confdefs.h"
7754 #include <sys/procfs.h>
7759 if { (eval echo configure
:7760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7761 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
7763 echo "configure: failed program was:" >&5
7764 cat conftest.
$ac_ext >&5
7766 bfd_cv_have_sys_procfs_type_prsysent_t
=no
7772 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
7773 cat >> confdefs.h
<<\EOF
7774 #define HAVE_PRSYSENT_T 1
7778 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
7780 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
7781 echo "configure:7782: checking for pr_sigset_t in sys/procfs.h" >&5
7782 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
7783 echo $ac_n "(cached) $ac_c" 1>&6
7785 cat > conftest.
$ac_ext <<EOF
7786 #line 7787 "configure"
7787 #include "confdefs.h"
7790 #include <sys/procfs.h>
7795 if { (eval echo configure
:7796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7797 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
7799 echo "configure: failed program was:" >&5
7800 cat conftest.
$ac_ext >&5
7802 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
7808 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
7809 cat >> confdefs.h
<<\EOF
7810 #define HAVE_PR_SIGSET_T 1
7814 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
7816 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
7817 echo "configure:7818: checking for pr_sigaction64_t in sys/procfs.h" >&5
7818 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
7821 cat > conftest.
$ac_ext <<EOF
7822 #line 7823 "configure"
7823 #include "confdefs.h"
7826 #include <sys/procfs.h>
7828 pr_sigaction64_t avar
7831 if { (eval echo configure
:7832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7833 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
7835 echo "configure: failed program was:" >&5
7836 cat conftest.
$ac_ext >&5
7838 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
7844 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
7845 cat >> confdefs.h
<<\EOF
7846 #define HAVE_PR_SIGACTION64_T 1
7850 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
7852 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
7853 echo "configure:7854: checking for pr_siginfo64_t in sys/procfs.h" >&5
7854 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
7855 echo $ac_n "(cached) $ac_c" 1>&6
7857 cat > conftest.
$ac_ext <<EOF
7858 #line 7859 "configure"
7859 #include "confdefs.h"
7862 #include <sys/procfs.h>
7867 if { (eval echo configure
:7868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7869 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
7871 echo "configure: failed program was:" >&5
7872 cat conftest.
$ac_ext >&5
7874 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
7880 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
7881 cat >> confdefs.h
<<\EOF
7882 #define HAVE_PR_SIGINFO64_T 1
7886 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
7892 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7893 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
7894 echo "configure:7895: checking whether prfpregset_t type is broken" >&5
7895 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
7896 echo $ac_n "(cached) $ac_c" 1>&6
7898 if test "$cross_compiling" = yes; then
7899 gdb_cv_prfpregset_t_broken
=yes
7901 cat > conftest.
$ac_ext <<EOF
7902 #line 7903 "configure"
7903 #include "confdefs.h"
7904 #include <sys/procfs.h>
7907 if (sizeof (prfpregset_t) == sizeof (void *))
7912 if { (eval echo configure
:7913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7914 gdb_cv_prfpregset_t_broken
=no
7916 echo "configure: failed program was:" >&5
7917 cat conftest.
$ac_ext >&5
7919 gdb_cv_prfpregset_t_broken
=yes
7926 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
7927 if test $gdb_cv_prfpregset_t_broken = yes; then
7928 cat >> confdefs.h
<<\EOF
7929 #define PRFPREGSET_T_BROKEN 1
7936 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
7937 echo "configure:7938: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
7938 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
7939 echo $ac_n "(cached) $ac_c" 1>&6
7941 cat > conftest.
$ac_ext <<EOF
7942 #line 7943 "configure"
7943 #include "confdefs.h"
7945 #include <sys/types.h>
7946 #include <sys/procfs.h>
7951 dummy = ioctl(0, PIOCSET, &dummy);
7955 if { (eval echo configure
:7956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7957 gdb_cv_have_procfs_piocset
=yes
7959 echo "configure: failed program was:" >&5
7960 cat conftest.
$ac_ext >&5
7962 gdb_cv_have_procfs_piocset
=no
7967 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
7968 if test $gdb_cv_have_procfs_piocset = yes; then
7969 cat >> confdefs.h
<<\EOF
7970 #define HAVE_PROCFS_PIOCSET 1
7976 if test ${host} = ${target} ; then
7978 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
7979 echo "configure:7980: checking for member l_addr in struct link_map" >&5
7980 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
7981 echo $ac_n "(cached) $ac_c" 1>&6
7983 cat > conftest.
$ac_ext <<EOF
7984 #line 7985 "configure"
7985 #include "confdefs.h"
7988 struct link_map lm; (void) lm.l_addr;
7991 if { (eval echo configure
:7992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7993 gdb_cv_have_struct_link_map_with_l_members
=yes
7995 echo "configure: failed program was:" >&5
7996 cat conftest.
$ac_ext >&5
7998 gdb_cv_have_struct_link_map_with_l_members
=no
8003 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
8004 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
8005 cat >> confdefs.h
<<\EOF
8006 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
8012 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
8013 echo "configure:8014: checking for member lm_addr in struct link_map" >&5
8014 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
8015 echo $ac_n "(cached) $ac_c" 1>&6
8017 cat > conftest.
$ac_ext <<EOF
8018 #line 8019 "configure"
8019 #include "confdefs.h"
8020 #include <sys/types.h>
8023 struct link_map lm; (void) lm.lm_addr;
8026 if { (eval echo configure
:8027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8028 gdb_cv_have_struct_link_map_with_lm_members
=yes
8030 echo "configure: failed program was:" >&5
8031 cat conftest.
$ac_ext >&5
8033 gdb_cv_have_struct_link_map_with_lm_members
=no
8038 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
8039 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
8040 cat >> confdefs.h
<<\EOF
8041 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
8047 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
8048 echo "configure:8049: checking for member som_addr in struct so_map" >&5
8049 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
8050 echo $ac_n "(cached) $ac_c" 1>&6
8052 cat > conftest.
$ac_ext <<EOF
8053 #line 8054 "configure"
8054 #include "confdefs.h"
8055 #include <sys/types.h>
8061 struct so_map lm; (void) lm.som_addr;
8064 if { (eval echo configure
:8065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8066 gdb_cv_have_struct_so_map_with_som_members
=yes
8068 echo "configure: failed program was:" >&5
8069 cat conftest.
$ac_ext >&5
8071 gdb_cv_have_struct_so_map_with_som_members
=no
8076 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
8077 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
8078 cat >> confdefs.h
<<\EOF
8079 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
8085 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
8086 echo "configure:8087: checking for struct link_map32 in sys/link.h" >&5
8087 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
8088 echo $ac_n "(cached) $ac_c" 1>&6
8090 cat > conftest.
$ac_ext <<EOF
8091 #line 8092 "configure"
8092 #include "confdefs.h"
8094 #include <sys/link.h>
8096 struct link_map32 l;
8099 if { (eval echo configure
:8100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8101 gdb_cv_have_struct_link_map32
=yes
8103 echo "configure: failed program was:" >&5
8104 cat conftest.
$ac_ext >&5
8106 gdb_cv_have_struct_link_map32
=no
8111 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
8112 if test $gdb_cv_have_struct_link_map32 = yes; then
8113 cat >> confdefs.h
<<\EOF
8114 #define HAVE_STRUCT_LINK_MAP32 1
8117 cat >> confdefs.h
<<\EOF
8118 #define _SYSCALL32 1
8125 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
8126 echo "configure:8127: checking for long long support in compiler" >&5
8127 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
8128 echo $ac_n "(cached) $ac_c" 1>&6
8130 cat > conftest.
$ac_ext <<EOF
8131 #line 8132 "configure"
8132 #include "confdefs.h"
8136 extern long long foo;
8137 switch (foo & 2) { case 0: return 1; }
8141 if { (eval echo configure
:8142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8143 gdb_cv_c_long_long
=yes
8145 echo "configure: failed program was:" >&5
8146 cat conftest.
$ac_ext >&5
8148 gdb_cv_c_long_long
=no
8153 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
8154 if test $gdb_cv_c_long_long = yes; then
8155 cat >> confdefs.h
<<\EOF
8156 #define CC_HAS_LONG_LONG 1
8162 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
8163 echo "configure:8164: checking for long long support in printf" >&5
8164 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
8165 echo $ac_n "(cached) $ac_c" 1>&6
8167 if test "$cross_compiling" = yes; then
8168 gdb_cv_printf_has_long_long
=no
8170 cat > conftest.
$ac_ext <<EOF
8171 #line 8172 "configure"
8172 #include "confdefs.h"
8177 l = (l << 16) + 0x0123;
8178 l = (l << 16) + 0x4567;
8179 l = (l << 16) + 0x89ab;
8180 l = (l << 16) + 0xcdef;
8181 sprintf (buf, "0x%016llx", l);
8182 return (strcmp ("0x0123456789abcdef", buf));
8185 if { (eval echo configure
:8186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8187 gdb_cv_printf_has_long_long
=yes
8189 echo "configure: failed program was:" >&5
8190 cat conftest.
$ac_ext >&5
8192 gdb_cv_printf_has_long_long
=no
8199 if test $gdb_cv_printf_has_long_long = yes; then
8200 cat >> confdefs.h
<<\EOF
8201 #define PRINTF_HAS_LONG_LONG 1
8205 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
8208 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
8209 echo "configure:8210: checking for long double support in compiler" >&5
8210 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
8211 echo $ac_n "(cached) $ac_c" 1>&6
8213 cat > conftest.
$ac_ext <<EOF
8214 #line 8215 "configure"
8215 #include "confdefs.h"
8221 if { (eval echo configure
:8222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8223 ac_cv_c_long_double
=yes
8225 echo "configure: failed program was:" >&5
8226 cat conftest.
$ac_ext >&5
8228 ac_cv_c_long_double
=no
8233 echo "$ac_t""$ac_cv_c_long_double" 1>&6
8234 if test $ac_cv_c_long_double = yes; then
8235 cat >> confdefs.h
<<\EOF
8236 #define HAVE_LONG_DOUBLE 1
8242 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
8243 echo "configure:8244: checking for long double support in printf" >&5
8244 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
8245 echo $ac_n "(cached) $ac_c" 1>&6
8247 if test "$cross_compiling" = yes; then
8248 gdb_cv_printf_has_long_double
=no
8250 cat > conftest.
$ac_ext <<EOF
8251 #line 8252 "configure"
8252 #include "confdefs.h"
8256 long double f = 3.141592653;
8257 sprintf (buf, "%Lg", f);
8258 return (strncmp ("3.14159", buf, 7));
8261 if { (eval echo configure
:8262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8263 gdb_cv_printf_has_long_double
=yes
8265 echo "configure: failed program was:" >&5
8266 cat conftest.
$ac_ext >&5
8268 gdb_cv_printf_has_long_double
=no
8275 if test $gdb_cv_printf_has_long_double = yes; then
8276 cat >> confdefs.h
<<\EOF
8277 #define PRINTF_HAS_LONG_DOUBLE 1
8281 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
8284 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
8285 echo "configure:8286: checking for long double support in scanf" >&5
8286 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
8287 echo $ac_n "(cached) $ac_c" 1>&6
8289 if test "$cross_compiling" = yes; then
8290 gdb_cv_scanf_has_long_double
=no
8292 cat > conftest.
$ac_ext <<EOF
8293 #line 8294 "configure"
8294 #include "confdefs.h"
8297 char *buf = "3.141592653";
8299 sscanf (buf, "%Lg", &f);
8300 return !(f > 3.14159 && f < 3.14160);
8303 if { (eval echo configure
:8304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8305 gdb_cv_scanf_has_long_double
=yes
8307 echo "configure: failed program was:" >&5
8308 cat conftest.
$ac_ext >&5
8310 gdb_cv_scanf_has_long_double
=no
8317 if test $gdb_cv_scanf_has_long_double = yes; then
8318 cat >> confdefs.h
<<\EOF
8319 #define SCANF_HAS_LONG_DOUBLE 1
8323 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
8327 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
8328 echo "configure:8329: checking for -bbigtoc option" >&5
8329 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
8330 echo $ac_n "(cached) $ac_c" 1>&6
8333 SAVE_LDFLAGS
=$LDFLAGS
8336 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8337 *) gdb_cv_bigtoc
=-bbigtoc ;;
8340 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8341 cat > conftest.
$ac_ext <<EOF
8342 #line 8343 "configure"
8343 #include "confdefs.h"
8349 if { (eval echo configure
:8350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8352 echo "configure: failed program was:" >&5
8353 cat conftest.
$ac_ext >&5
8361 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
8362 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
8368 if test ${build} = ${host} -a ${host} = ${target} ; then
8371 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
8372 echo "configure:8373: checking for HPUX/OSF thread support" >&5
8373 if test -f /usr
/include
/dce
/cma_config.h
; then
8374 if test "$GCC" = "yes" ; then
8375 echo "$ac_t""yes" 1>&6
8376 cat >> confdefs.h
<<\EOF
8377 #define HAVE_HPUX_THREAD_SUPPORT 1
8380 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
8381 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
8383 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
8386 echo "$ac_t""no" 1>&6
8390 # See if thread_db library is around for Solaris thread debugging.
8391 # Note that we must explicitly test for version 1 of the library
8392 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
8394 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
8395 echo "configure:8396: checking for Solaris thread debugging library" >&5
8396 if test -f /usr
/lib
/libthread_db.so
.1 ; then
8397 echo "$ac_t""yes" 1>&6
8398 cat >> confdefs.h
<<\EOF
8399 #define HAVE_THREAD_DB_LIB 1
8402 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
8403 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
8404 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8405 echo "configure:8406: checking for dlopen in -ldl" >&5
8406 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
8407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8408 echo $ac_n "(cached) $ac_c" 1>&6
8410 ac_save_LIBS
="$LIBS"
8412 cat > conftest.
$ac_ext <<EOF
8413 #line 8414 "configure"
8414 #include "confdefs.h"
8415 /* Override any gcc2 internal prototype to avoid an error. */
8416 /* We use char because int might match the return type of a gcc2
8417 builtin and then its argument prototype would still apply. */
8424 if { (eval echo configure
:8425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8426 eval "ac_cv_lib_$ac_lib_var=yes"
8428 echo "configure: failed program was:" >&5
8429 cat conftest.
$ac_ext >&5
8431 eval "ac_cv_lib_$ac_lib_var=no"
8434 LIBS
="$ac_save_LIBS"
8437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8438 echo "$ac_t""yes" 1>&6
8439 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8440 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8441 cat >> confdefs.h
<<EOF
8442 #define $ac_tr_lib 1
8448 echo "$ac_t""no" 1>&6
8451 if test "$GCC" = "yes" ; then
8452 # The GNU linker requires the -export-dynamic option to make
8453 # all symbols visible in the dynamic symbol table.
8454 hold_ldflags
=$LDFLAGS
8455 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
8456 echo "configure:8457: checking for the ld -export-dynamic flag" >&5
8457 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
8458 cat > conftest.
$ac_ext <<EOF
8459 #line 8460 "configure"
8460 #include "confdefs.h"
8466 if { (eval echo configure
:8467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8470 echo "configure: failed program was:" >&5
8471 cat conftest.
$ac_ext >&5
8476 LDFLAGS
=$hold_ldflags
8477 echo "$ac_t""$found" 1>&6
8478 if test $found = yes; then
8479 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
8482 # Sun randomly tweaked the prototypes in <proc_service.h>
8484 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
8485 echo "configure:8486: checking if <proc_service.h> is old" >&5
8486 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
8487 echo $ac_n "(cached) $ac_c" 1>&6
8490 cat > conftest.
$ac_ext <<EOF
8491 #line 8492 "configure"
8492 #include "confdefs.h"
8494 #include <proc_service.h>
8496 (struct ps_prochandle*, psaddr_t, const void*, size_t);
8502 if { (eval echo configure
:8503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8504 gdb_cv_proc_service_is_old
=no
8506 echo "configure: failed program was:" >&5
8507 cat conftest.
$ac_ext >&5
8509 gdb_cv_proc_service_is_old
=yes
8515 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
8516 if test $gdb_cv_proc_service_is_old = yes; then
8517 cat >> confdefs.h
<<\EOF
8518 #define PROC_SERVICE_IS_OLD 1
8523 echo "$ac_t""no" 1>&6
8527 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
8528 echo "configure:8529: checking for AiX thread debugging library" >&5
8529 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
8530 echo $ac_n "(cached) $ac_c" 1>&6
8532 cat > conftest.
$ac_ext <<EOF
8533 #line 8534 "configure"
8534 #include "confdefs.h"
8535 #include <sys/pthdebug.h>
8537 #ifndef PTHDB_VERSION_3
8542 if { (eval echo configure
:8543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8544 gdb_cv_have_aix_thread_debug
=yes
8546 echo "configure: failed program was:" >&5
8547 cat conftest.
$ac_ext >&5
8549 gdb_cv_have_aix_thread_debug
=no
8554 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
8555 if test $gdb_cv_have_aix_thread_debug = yes; then
8556 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
8557 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} aix-thread.o"
8558 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
8565 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
8566 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
8567 echo "configure:8568: checking whether <thread_db.h> has TD_NOTALLOC" >&5
8568 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
8569 echo $ac_n "(cached) $ac_c" 1>&6
8571 cat > conftest.
$ac_ext <<EOF
8572 #line 8573 "configure"
8573 #include "confdefs.h"
8574 #include <thread_db.h>
8576 int i = TD_NOTALLOC;
8579 if { (eval echo configure
:8580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8581 gdb_cv_thread_db_h_has_td_notalloc
=yes
8583 echo "configure: failed program was:" >&5
8584 cat conftest.
$ac_ext >&5
8586 gdb_cv_thread_db_h_has_td_notalloc
=no
8593 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
8595 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
8596 cat >> confdefs.h
<<\EOF
8597 #define THREAD_DB_HAS_TD_NOTALLOC 1
8603 # Check whether --with-sysroot or --without-sysroot was given.
8604 if test "${with_sysroot+set}" = set; then
8605 withval
="$with_sysroot"
8607 case ${with_sysroot} in
8608 yes) { echo "configure: error: with-sysroot must specify path" 1>&2; exit 1; } ;;
8609 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
8612 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8614 if test "x$exec_prefix" = xNONE
; then
8615 if test "x$prefix" = xNONE
; then
8616 test_prefix
=/usr
/local
8621 test_prefix
=$exec_prefix
8623 case ${TARGET_SYSTEM_ROOT} in
8625 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8626 TARGET_SYSTEM_ROOT_DEFINE
="$t"
8633 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
8640 # NOTE: Don't add -Wall or -Wunused, they both include
8641 # -Wunused-parameter which reports bogus warnings.
8642 # NOTE: If you add to this list, remember to update
8643 # gdb/doc/gdbint.texinfo.
8644 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
8645 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
8646 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
8647 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
8648 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
8649 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
8650 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
8651 # -Woverloaded-virtual -Winline -Werror"
8652 # Check whether --enable-build-warnings or --disable-build-warnings was given.
8653 if test "${enable_build_warnings+set}" = set; then
8654 enableval
="$enable_build_warnings"
8655 case "${enableval}" in
8657 no
) build_warnings
="-w";;
8658 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8659 build_warnings
="${build_warnings} ${t}";;
8660 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8661 build_warnings
="${t} ${build_warnings}";;
8662 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8664 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8665 echo "Setting compiler warning flags = $build_warnings" 6>&1
8668 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
8669 if test "${enable_gdb_build_warnings+set}" = set; then
8670 enableval
="$enable_gdb_build_warnings"
8671 case "${enableval}" in
8673 no
) build_warnings
="-w";;
8674 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8675 build_warnings
="${build_warnings} ${t}";;
8676 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8677 build_warnings
="${t} ${build_warnings}";;
8678 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8680 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8681 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
8686 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
8688 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
8689 echo "configure:8690: checking compiler warning flags" >&5
8690 # Separate out the -Werror flag as some files just cannot be
8691 # compiled with it enabled.
8692 for w
in ${build_warnings}; do
8694 -Werr*) WERROR_CFLAGS
=-Werror ;;
8695 *) # Check that GCC accepts it
8696 saved_CFLAGS
="$CFLAGS"
8698 cat > conftest.
$ac_ext <<EOF
8699 #line 8700 "configure"
8700 #include "confdefs.h"
8706 if { (eval echo configure
:8707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8708 WARN_CFLAGS
="${WARN_CFLAGS} $w"
8710 echo "configure: failed program was:" >&5
8711 cat conftest.
$ac_ext >&5
8714 CFLAGS
="$saved_CFLAGS"
8717 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
8727 # Check whether --with-mmalloc or --without-mmalloc was given.
8728 if test "${with_mmalloc+set}" = set; then
8729 withval
="$with_mmalloc"
8730 case "${withval}" in
8731 yes) want_mmalloc
=true
;;
8732 no
) want_mmalloc
=false
;;
8733 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
8739 if test x
$want_mmalloc = xtrue
; then
8740 cat >> confdefs.h
<<\EOF
8741 #define USE_MMALLOC 1
8744 cat >> confdefs.h
<<\EOF
8745 #define MMCHECK_FORCE 1
8748 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
8749 MMALLOC
='../mmalloc/libmmalloc.a'
8752 # In the Cygwin environment, we need some additional flags.
8753 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
8754 echo "configure:8755: checking for cygwin" >&5
8755 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
8756 echo $ac_n "(cached) $ac_c" 1>&6
8758 cat > conftest.
$ac_ext <<EOF
8759 #line 8760 "configure"
8760 #include "confdefs.h"
8762 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
8766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8767 egrep "lose" >/dev
/null
2>&1; then
8769 gdb_cv_os_cygwin
=yes
8778 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
8781 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
8783 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
8784 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
8788 # libreadline needs libuser32.a in a cygwin environment
8790 if test x
$gdb_cv_os_cygwin = xyes
; then
8791 WIN32LIBS
="-luser32"
8793 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
8799 LIBGUI
="../libgui/src/libgui.a"
8800 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
8811 if test "${enable_gdbtk}" = "yes"; then
8813 # Gdbtk must have an absolute path to srcdir in order to run
8814 # properly when not installed.
8822 # Ok, lets find the tcl configuration
8823 # First, look for one uninstalled.
8824 # the alternative search directory is invoked by --with-tclconfig
8827 if test x
"${no_tcl}" = x
; then
8828 # we reset no_tcl in case something fails here
8830 # Check whether --with-tclconfig or --without-tclconfig was given.
8831 if test "${with_tclconfig+set}" = set; then
8832 withval
="$with_tclconfig"
8833 with_tclconfig
=${withval}
8836 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
8837 echo "configure:8838: checking for Tcl configuration" >&5
8838 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
8839 echo $ac_n "(cached) $ac_c" 1>&6
8843 # First check to see if --with-tclconfig was specified.
8844 if test x
"${with_tclconfig}" != x
; then
8845 if test -f "${with_tclconfig}/tclConfig.sh" ; then
8846 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
8848 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
8852 # then check for a private Tcl installation
8853 if test x
"${ac_cv_c_tclconfig}" = x
; then
8856 `ls -dr ../tcl[7-9]* 2>/dev/null` \
8858 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
8860 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
8861 if test -f "$i/${configdir}/tclConfig.sh" ; then
8862 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
8867 # check in a few common install locations
8868 if test x
"${ac_cv_c_tclconfig}" = x
; then
8869 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8870 if test -f "$i/tclConfig.sh" ; then
8871 ac_cv_c_tclconfig
=`(cd $i; pwd)`
8876 # check in a few other private locations
8877 if test x
"${ac_cv_c_tclconfig}" = x
; then
8880 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
8881 if test -f "$i/${configdir}/tclConfig.sh" ; then
8882 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
8890 if test x
"${ac_cv_c_tclconfig}" = x
; then
8891 TCLCONFIG
="# no Tcl configs found"
8892 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
8895 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
8896 echo "$ac_t""found $TCLCONFIG" 1>&6
8900 if test -z "${no_tcl}"; then
8930 # Ok, lets find the tk configuration
8931 # First, look for one uninstalled.
8932 # the alternative search directory is invoked by --with-tkconfig
8935 if test x
"${no_tk}" = x
; then
8936 # we reset no_tk in case something fails here
8938 # Check whether --with-tkconfig or --without-tkconfig was given.
8939 if test "${with_tkconfig+set}" = set; then
8940 withval
="$with_tkconfig"
8941 with_tkconfig
=${withval}
8944 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
8945 echo "configure:8946: checking for Tk configuration" >&5
8946 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
8947 echo $ac_n "(cached) $ac_c" 1>&6
8951 # First check to see if --with-tkconfig was specified.
8952 if test x
"${with_tkconfig}" != x
; then
8953 if test -f "${with_tkconfig}/tkConfig.sh" ; then
8954 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
8956 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
8960 # then check for a private Tk library
8961 if test x
"${ac_cv_c_tkconfig}" = x
; then
8964 `ls -dr ../tk[4-9]* 2>/dev/null` \
8966 `ls -dr ../../tk[4-9]* 2>/dev/null` \
8968 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
8969 if test -f "$i/${configdir}/tkConfig.sh" ; then
8970 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
8975 # check in a few common install locations
8976 if test x
"${ac_cv_c_tkconfig}" = x
; then
8977 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8978 if test -f "$i/tkConfig.sh" ; then
8979 ac_cv_c_tkconfig
=`(cd $i; pwd)`
8984 # check in a few other private locations
8985 if test x
"${ac_cv_c_tkconfig}" = x
; then
8988 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
8989 if test -f "$i/${configdir}/tkConfig.sh" ; then
8990 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
8998 if test x
"${ac_cv_c_tkconfig}" = x
; then
8999 TKCONFIG
="# no Tk configs found"
9000 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
9003 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
9004 echo "$ac_t""found $TKCONFIG" 1>&6
9010 # now look for Tcl library stuff
9021 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
9023 # If $no_tk is nonempty, then we can't do Tk, and there is no
9024 # point to doing Tcl.
9025 if test -z "${no_tk}"; then
9027 if test -f "$TKCONFIG" ; then
9045 # Ok, lets find the tcl source trees so we can use the headers
9046 # Warning: transition of version 9 to 10 will break this algorithm
9047 # because 10 sorts before 9. We also look for just tcl. We have to
9048 # be careful that we don't match stuff like tclX by accident.
9049 # the alternative search directory is involked by --with-tclinclude
9053 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
9054 echo "configure:9055: checking for Tcl private headers. dir=${configdir}" >&5
9055 # Check whether --with-tclinclude or --without-tclinclude was given.
9056 if test "${with_tclinclude+set}" = set; then
9057 withval
="$with_tclinclude"
9058 with_tclinclude
=${withval}
9061 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
9062 echo $ac_n "(cached) $ac_c" 1>&6
9065 # first check to see if --with-tclinclude was specified
9066 if test x
"${with_tclinclude}" != x
; then
9067 if test -f ${with_tclinclude}/tclInt.h
; then
9068 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
9069 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
9070 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
9072 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9076 # next check if it came with Tcl configuration file
9077 if test x
"${ac_cv_c_tclconfig}" = x
; then
9078 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
9079 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
9083 # next check in private source directory
9085 # since ls returns lowest version numbers first, reverse its output
9086 if test x
"${ac_cv_c_tclh}" = x
; then
9089 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
9090 ${srcdir}/..
/..
/tcl \
9091 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
9092 ${srcdir}/..
/..
/..
/tcl \
9093 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
9094 if test -f $i/generic
/tclInt.h
; then
9095 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9100 # finally check in a few common install locations
9102 # since ls returns lowest version numbers first, reverse its output
9103 if test x
"${ac_cv_c_tclh}" = x
; then
9105 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
9106 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
9107 /usr
/local
/src
/tcl \
9108 /usr
/local
/lib
/tcl \
9109 ${prefix}/include
; do
9110 if test -f $i/generic
/tclInt.h
; then
9111 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9116 # see if one is installed
9117 if test x
"${ac_cv_c_tclh}" = x
; then
9118 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
9119 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
9120 echo "configure:9121: checking for tclInt.h" >&5
9121 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9122 echo $ac_n "(cached) $ac_c" 1>&6
9124 cat > conftest.
$ac_ext <<EOF
9125 #line 9126 "configure"
9126 #include "confdefs.h"
9129 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9130 { (eval echo configure
:9131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9131 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9132 if test -z "$ac_err"; then
9134 eval "ac_cv_header_$ac_safe=yes"
9137 echo "configure: failed program was:" >&5
9138 cat conftest.
$ac_ext >&5
9140 eval "ac_cv_header_$ac_safe=no"
9144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9145 echo "$ac_t""yes" 1>&6
9146 ac_cv_c_tclh
=installed
9148 echo "$ac_t""no" 1>&6
9156 if test x
"${ac_cv_c_tclh}" = x
; then
9157 TCLHDIR
="# no Tcl private headers found"
9158 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
9160 if test x
"${ac_cv_c_tclh}" != x
; then
9162 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
9163 echo "$ac_t""is installed" 1>&6
9166 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
9167 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
9168 TCLHDIR
="-I${ac_cv_c_tclh}"
9176 # Ok, lets find the tk source trees so we can use the headers
9177 # If the directory (presumably symlink) named "tk" exists, use that one
9178 # in preference to any others. Same logic is used when choosing library
9179 # and again with Tcl. The search order is the best place to look first, then in
9180 # decreasing significance. The loop breaks if the trigger file is found.
9181 # Note the gross little conversion here of srcdir by cd'ing to the found
9182 # directory. This converts the path from a relative to an absolute, so
9183 # recursive cache variables for the path will work right. We check all
9184 # the possible paths in one loop rather than many seperate loops to speed
9186 # the alternative search directory is involked by --with-tkinclude
9189 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
9190 echo "configure:9191: checking for Tk private headers" >&5
9191 # Check whether --with-tkinclude or --without-tkinclude was given.
9192 if test "${with_tkinclude+set}" = set; then
9193 withval
="$with_tkinclude"
9194 with_tkinclude
=${withval}
9197 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
9198 echo $ac_n "(cached) $ac_c" 1>&6
9201 # first check to see if --with-tkinclude was specified
9202 if test x
"${with_tkinclude}" != x
; then
9203 if test -f ${with_tkinclude}/tk.h
; then
9204 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
9205 elif test -f ${with_tkinclude}/generic
/tk.h
; then
9206 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
9208 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9212 # next check if it came with Tk configuration file
9213 if test x
"${ac_cv_c_tkconfig}" = x
; then
9214 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
9215 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
9219 # next check in private source directory
9221 # since ls returns lowest version numbers first, reverse its output
9222 if test x
"${ac_cv_c_tkh}" = x
; then
9225 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
9226 ${srcdir}/..
/..
/tk \
9227 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
9228 ${srcdir}/..
/..
/..
/tk \
9229 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
9230 if test -f $i/generic
/tk.h
; then
9231 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9236 # finally check in a few common install locations
9238 # since ls returns lowest version numbers first, reverse its output
9239 if test x
"${ac_cv_c_tkh}" = x
; then
9241 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
9242 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
9245 ${prefix}/include
; do
9246 if test -f $i/generic
/tk.h
; then
9247 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9252 # see if one is installed
9253 if test x
"${ac_cv_c_tkh}" = x
; then
9254 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
9255 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
9256 echo "configure:9257: checking for tk.h" >&5
9257 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9258 echo $ac_n "(cached) $ac_c" 1>&6
9260 cat > conftest.
$ac_ext <<EOF
9261 #line 9262 "configure"
9262 #include "confdefs.h"
9265 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9266 { (eval echo configure
:9267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9267 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9268 if test -z "$ac_err"; then
9270 eval "ac_cv_header_$ac_safe=yes"
9273 echo "configure: failed program was:" >&5
9274 cat conftest.
$ac_ext >&5
9276 eval "ac_cv_header_$ac_safe=no"
9280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9281 echo "$ac_t""yes" 1>&6
9282 ac_cv_c_tkh
=installed
9284 echo "$ac_t""no" 1>&6
9292 if test x
"${ac_cv_c_tkh}" != x
; then
9294 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
9295 echo "$ac_t""is installed" 1>&6
9298 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
9299 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
9300 TKHDIR
="-I${ac_cv_c_tkh}"
9303 TKHDIR
="# no Tk directory found"
9304 echo "configure: warning: Can't find Tk private headers" 1>&2
9311 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9312 echo "configure:9313: checking for Itcl private headers. srcdir=${srcdir}" >&5
9313 if test x
"${ac_cv_c_itclh}" = x
; then
9314 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
9315 if test -f $i/generic
/itcl.h
; then
9316 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
9321 if test x
"${ac_cv_c_itclh}" = x
; then
9322 ITCLHDIR
="# no Itcl private headers found"
9323 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
9325 if test x
"${ac_cv_c_itclh}" != x
; then
9326 ITCLHDIR
="-I${ac_cv_c_itclh}"
9328 # should always be here
9329 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
9334 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9335 echo "configure:9336: checking for Itk private headers. srcdir=${srcdir}" >&5
9336 if test x
"${ac_cv_c_itkh}" = x
; then
9337 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
9338 if test -f $i/generic
/itk.h
; then
9339 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
9344 if test x
"${ac_cv_c_itkh}" = x
; then
9345 ITKHDIR
="# no Itk private headers found"
9346 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
9348 if test x
"${ac_cv_c_itkh}" != x
; then
9349 ITKHDIR
="-I${ac_cv_c_itkh}"
9351 # should always be here
9352 # ITKLIB="../itcl/itk/unix/libitk.a"
9358 # now look for Tk library stuff
9369 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
9371 # now look for Itcl library stuff
9375 # Ok, lets find the itcl configuration
9376 # First, look for one uninstalled.
9377 # the alternative search directory is invoked by --with-itclconfig
9380 if test x
"${no_itcl}" = x
; then
9381 # we reset no_itcl in case something fails here
9383 # Check whether --with-itclconfig or --without-itclconfig was given.
9384 if test "${with_itclconfig+set}" = set; then
9385 withval
="$with_itclconfig"
9386 with_itclconfig
=${withval}
9389 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
9390 echo "configure:9391: checking for Itcl configuration" >&5
9391 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
9392 echo $ac_n "(cached) $ac_c" 1>&6
9396 # First check to see if --with-itclconfig was specified.
9397 if test x
"${with_itclconfig}" != x
; then
9398 if test -f "${with_itclconfig}/itclConfig.sh" ; then
9399 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
9401 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
9405 # then check for a private Itcl library
9406 if test x
"${ac_cv_c_itclconfig}" = x
; then
9409 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
9411 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
9413 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
9414 if test -f "$i/itclConfig.sh" ; then
9415 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9420 # check in a few common install locations
9421 if test x
"${ac_cv_c_itclconfig}" = x
; then
9422 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9423 if test -f "$i/itclConfig.sh" ; then
9424 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9429 # check in a few other private locations
9430 if test x
"${ac_cv_c_itclconfig}" = x
; then
9432 ${srcdir}/..
/itcl
/itcl \
9433 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
9434 if test -f "$i/itclConfig.sh" ; then
9435 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9443 if test x
"${ac_cv_c_itclconfig}" = x
; then
9444 ITCLCONFIG
="# no Itcl configs found"
9445 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
9448 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
9449 echo "$ac_t""found $ITCLCONFIG" 1>&6
9453 if test -z "${no_itcl}"; then
9455 if test -f "$ITCLCONFIG" ; then
9470 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
9471 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
9475 # now look for Itk library stuff
9478 # Ok, lets find the itk configuration
9479 # First, look for one uninstalled.
9480 # the alternative search directory is invoked by --with-itkconfig
9483 if test x
"${no_itk}" = x
; then
9484 # we reset no_itk in case something fails here
9486 # Check whether --with-itkconfig or --without-itkconfig was given.
9487 if test "${with_itkconfig+set}" = set; then
9488 withval
="$with_itkconfig"
9489 with_itkconfig
=${withval}
9492 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
9493 echo "configure:9494: checking for Itk configuration" >&5
9494 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
9495 echo $ac_n "(cached) $ac_c" 1>&6
9499 # First check to see if --with-itkconfig was specified.
9500 if test x
"${with_itkconfig}" != x
; then
9501 if test -f "${with_itkconfig}/itkConfig.sh" ; then
9502 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
9504 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
9508 # then check for a private Itk library
9509 if test x
"${ac_cv_c_itkconfig}" = x
; then
9512 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
9514 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
9516 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
9517 if test -f "$i/itkConfig.sh" ; then
9518 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9523 # check in a few common install locations
9524 if test x
"${ac_cv_c_itkconfig}" = x
; then
9525 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9526 if test -f "$i/itkConfig.sh" ; then
9527 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9532 # check in a few other private locations
9533 if test x
"${ac_cv_c_itkconfig}" = x
; then
9535 ${srcdir}/..
/itcl
/itk \
9536 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
9537 if test -f "$i/itkConfig.sh" ; then
9538 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9546 if test x
"${ac_cv_c_itkconfig}" = x
; then
9547 ITKCONFIG
="# no Itk configs found"
9548 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
9551 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
9552 echo "$ac_t""found $ITKCONFIG" 1>&6
9557 if test -z "${no_itcl}"; then
9559 if test -f "$ITKCONFIG" ; then
9574 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
9575 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
9578 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
9579 # Tcl/Tk 8.1 require -fwritable strings. I don't
9580 # know whether 8.2 will or not, but I bet it will.
9581 # I don't have to worry about 7.x since we don't support it.
9583 if test "$GCC" = "yes"; then
9584 if test "$TCL_VERSION" != "8.0" ; then
9585 GDBTK_CFLAGS
="-fwritable-strings"
9589 # Include some libraries that Tcl and Tk want.
9590 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
9591 # Yes, the ordering seems wrong here. But it isn't.
9592 # TK_LIBS is the list of libraries that need to be linked
9593 # after Tcl/Tk. Note that this isn't put into LIBS. If it
9594 # were in LIBS then any link tests after this point would
9595 # try to include things like `$(LIBGUI)', which wouldn't work.
9596 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
9598 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
9599 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
9600 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
9601 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
9602 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
9603 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
9604 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
9605 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
9607 if test x
$gdb_cv_os_cygwin = xyes
; then
9608 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
9609 WIN32LDAPP
="-Wl,--subsystem,console"
9610 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
9615 configdirs
="${configdirs} gdbtk"
9631 # If we find X, set shell vars x_includes and x_libraries to the
9632 # paths, otherwise set no_x=yes.
9633 # Uses ac_ vars as temps to allow command line to override cache and checks.
9634 # --without-x overrides everything else, but does not touch the cache.
9635 echo $ac_n "checking for X""... $ac_c" 1>&6
9636 echo "configure:9637: checking for X" >&5
9638 # Check whether --with-x or --without-x was given.
9639 if test "${with_x+set}" = set; then
9644 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9645 if test "x$with_x" = xno
; then
9646 # The user explicitly disabled X.
9649 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
9650 # Both variables are already set.
9653 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9654 echo $ac_n "(cached) $ac_c" 1>&6
9656 # One or both of the vars are not set, and there is no cached value.
9657 ac_x_includes
=NO ac_x_libraries
=NO
9659 if mkdir conftestdir
; then
9661 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9662 cat > Imakefile
<<'EOF'
9664 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9666 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9667 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9668 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9669 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9670 for ac_extension
in a so sl
; do
9671 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
9672 test -f $ac_im_libdir/libX11.
$ac_extension; then
9673 ac_im_usrlibdir
=$ac_im_libdir; break
9676 # Screen out bogus values from the imake configuration. They are
9677 # bogus both because they are the default anyway, and because
9678 # using them would break gcc on systems where it needs fixed includes.
9679 case "$ac_im_incroot" in
9681 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
9683 case "$ac_im_usrlibdir" in
9685 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
9692 if test "$ac_x_includes" = NO
; then
9693 # Guess where to find include files, by looking for this one X11 .h file.
9694 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
9696 # First, try using that file with no special directory specified.
9697 cat > conftest.
$ac_ext <<EOF
9698 #line 9699 "configure"
9699 #include "confdefs.h"
9700 #include <$x_direct_test_include>
9702 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9703 { (eval echo configure
:9704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9704 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9705 if test -z "$ac_err"; then
9707 # We can compile using X headers with no special include directory.
9711 echo "configure: failed program was:" >&5
9712 cat conftest.
$ac_ext >&5
9714 # Look for the header file in a standard set of common directories.
9715 # Check X11 before X11Rn because it is often a symlink to the current release.
9718 /usr
/X11R
6/include \
9719 /usr
/X11R
5/include \
9720 /usr
/X11R
4/include \
9723 /usr
/include
/X11R6 \
9724 /usr
/include
/X11R5 \
9725 /usr
/include
/X11R4 \
9727 /usr
/local
/X11
/include \
9728 /usr
/local
/X11R
6/include \
9729 /usr
/local
/X11R
5/include \
9730 /usr
/local
/X11R
4/include \
9732 /usr
/local
/include
/X11 \
9733 /usr
/local
/include
/X11R6 \
9734 /usr
/local
/include
/X11R5 \
9735 /usr
/local
/include
/X11R4 \
9739 /usr
/XFree86
/include
/X11 \
9742 /usr
/local
/include \
9743 /usr
/unsupported
/include \
9744 /usr
/athena
/include \
9745 /usr
/local
/x11r
5/include \
9746 /usr
/lpp
/Xamples
/include \
9748 /usr
/openwin
/include \
9749 /usr
/openwin
/share
/include \
9752 if test -r "$ac_dir/$x_direct_test_include"; then
9753 ac_x_includes
=$ac_dir
9759 fi # $ac_x_includes = NO
9761 if test "$ac_x_libraries" = NO
; then
9762 # Check for the libraries.
9764 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
9765 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
9767 # See if we find them without any special options.
9768 # Don't add to $LIBS permanently.
9769 ac_save_LIBS
="$LIBS"
9770 LIBS
="-l$x_direct_test_library $LIBS"
9771 cat > conftest.
$ac_ext <<EOF
9772 #line 9773 "configure"
9773 #include "confdefs.h"
9776 ${x_direct_test_function}()
9779 if { (eval echo configure
:9780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9781 LIBS
="$ac_save_LIBS"
9782 # We can link X programs with no special library path.
9785 echo "configure: failed program was:" >&5
9786 cat conftest.
$ac_ext >&5
9788 LIBS
="$ac_save_LIBS"
9789 # First see if replacing the include by lib works.
9790 # Check X11 before X11Rn because it is often a symlink to the current release.
9791 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
9802 /usr
/local
/X11
/lib \
9803 /usr
/local
/X11R
6/lib \
9804 /usr
/local
/X11R
5/lib \
9805 /usr
/local
/X11R
4/lib \
9807 /usr
/local
/lib
/X11 \
9808 /usr
/local
/lib
/X11R6 \
9809 /usr
/local
/lib
/X11R5 \
9810 /usr
/local
/lib
/X11R4 \
9814 /usr
/XFree86
/lib
/X11 \
9818 /usr
/unsupported
/lib \
9820 /usr
/local
/x11r
5/lib \
9821 /usr
/lpp
/Xamples
/lib \
9825 /usr
/openwin
/share
/lib \
9828 for ac_extension
in a so sl
; do
9829 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
9830 ac_x_libraries
=$ac_dir
9837 fi # $ac_x_libraries = NO
9839 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
9840 # Didn't find X anywhere. Cache the known absence of X.
9841 ac_cv_have_x
="have_x=no"
9843 # Record where we found X for the cache.
9844 ac_cv_have_x
="have_x=yes \
9845 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9849 eval "$ac_cv_have_x"
9852 if test "$have_x" != yes; then
9853 echo "$ac_t""$have_x" 1>&6
9856 # If each of the values was on the command line, it overrides each guess.
9857 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9858 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9859 # Update the cache value to reflect the command line values.
9860 ac_cv_have_x
="have_x=yes \
9861 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9862 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9867 # Unlike the sim directory, whether a simulator is linked is controlled by
9868 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
9869 # This code just checks for a few cases where we'd like to ignore those
9870 # definitions, even when they're present in the '.mt' file. These cases
9871 # are when --disable-sim is specified, or if the simulator directory is
9872 # not part of the source tree.
9874 # Check whether --enable-sim or --disable-sim was given.
9875 if test "${enable_sim+set}" = set; then
9876 enableval
="$enable_sim"
9877 echo "enable_sim = $enable_sim";
9878 echo "enableval = ${enableval}";
9879 case "${enableval}" in
9880 yes) ignore_sim
=false
;;
9881 no
) ignore_sim
=true
;;
9882 *) ignore_sim
=false
;;
9889 if test ! -d "${srcdir}/../sim"; then
9893 if test "${ignore_sim}" = "true"; then
9895 IGNORE_SIM_OBS
="SIM_OBS="
9899 cat >> confdefs.h
<<\EOF
9920 # target_subdir is used by the testsuite to find the target libraries.
9922 if test "${host}" != "${target}"; then
9923 target_subdir
="${target_alias}/"
9928 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
9929 if test ! -f ${host_makefile_frag}; then
9930 # When building a native debuger the .mh file containing things
9931 # like NATDEPFILES is needed. Cross debuggers don't need .mh
9932 # since it no longer contains anything useful.
9933 if test "${target}" = "${host}"; then
9934 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
9936 host_makefile_frag
=/dev
/null
9939 frags
="$frags $host_makefile_frag"
9941 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
9942 if test ! -f ${target_makefile_frag}; then
9943 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
9945 frags
="$frags $target_makefile_frag"
9952 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9953 ' ${host_makefile_frag}`
9955 targetfile
=`sed -n '
9956 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9957 ' ${target_makefile_frag}`
9959 GDB_MULTI_ARCH
=`sed -n '
9960 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
9961 ' ${target_makefile_frag}`
9963 if test "${target}" = "${host}"; then
9964 # We pick this up from the host configuration file (.mh) because we
9965 # do not have a native configuration Makefile fragment.
9966 nativefile
=`sed -n '
9967 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9968 ' ${host_makefile_frag}`
9972 # New targets should just set gdb_multi_arch=yes in configure.tgt.
9973 # Old targets being converted can either do that or set GDB_MULTI_ARCH
9974 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
9975 # will be the default.
9976 if test x
"${GDB_MULTI_ARCH}" = x
; then
9977 case "${gdb_multi_arch}" in
9978 yes ) GDB_MULTI_ARCH
=GDB_MULTI_ARCH_PURE
;;
9979 no
) GDB_MULTI_ARCH
=0 ;;
9980 0|
1|
2 ) GDB_MULTI_ARCH
=${gdb_multi_arch} ;;
9983 if test x
"${GDB_MULTI_ARCH}" != x
; then
9984 cat >> confdefs.h
<<EOF
9985 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
9989 # Warn the user when they use an old practice
9990 case "${GDB_MULTI_ARCH}" in
9992 0 | GDB_MULTI_ARCH_PARTIAL |
1 | GDB_MULTI_ARCH_TM |
2 )
9993 echo "configure: warning: "GDB
: Target is not pure multi-arch
"" 1>&2 ;;
9994 GDB_MULTI_ARCH_PURE
)
9995 if test x
"${targetfile}" != x
; then
9996 echo "configure: warning: "GDB
: Ignoring TM_FILE
in ${target_makefile_frag}"" 1>&2
9999 *) { echo "configure: error: "GDB
: Unknown GDB_MULTI_ARCH value
${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
10002 if test x
"${gdb_osabi}" != x
; then
10003 cat >> confdefs.h
<<EOF
10004 #define GDB_OSABI_DEFAULT $gdb_osabi
10009 # Enable multi-ice-gdb-server.
10010 # Check whether --enable-multi-ice or --disable-multi-ice was given.
10011 if test "${enable_multi_ice+set}" = set; then
10012 enableval
="$enable_multi_ice"
10016 *) { echo "configure: error: bad value $enableval for --enable-multi-ice" 1>&2; exit 1; } ;;
10020 if test "x$enable_multi_ice" = xyes
; then
10021 configdirs
="$configdirs multi-ice"
10024 # We only build gdbserver automatically if host and target are the same.
10025 if test "x$target" = "x$host"; then
10026 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
10027 echo "configure:10028: checking whether gdbserver is supported on this host" >&5
10028 if test "x$build_gdbserver" = xyes
; then
10029 configdirs
="$configdirs gdbserver"
10030 echo "$ac_t""yes" 1>&6
10032 echo "$ac_t""no" 1>&6
10036 subdirs
="doc testsuite $configdirs"
10039 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
10040 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
10048 if test "${hostfile}" != ""; then
10050 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
10051 files
="${files} ${GDB_XM_FILE}"
10052 links
="${links} xm.h"
10053 cat >> confdefs.h
<<EOF
10054 #define GDB_XM_FILE ${GDB_XM_FILE}
10062 if test "${targetfile}" != ""; then
10064 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
10065 files
="${files} ${GDB_TM_FILE}"
10066 links
="${links} tm.h"
10067 cat >> confdefs.h
<<EOF
10068 #define GDB_TM_FILE ${GDB_TM_FILE}
10076 if test "${nativefile}" != ""; then
10078 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
10079 files
="${files} ${GDB_NM_FILE}"
10080 links
="${links} nm.h"
10081 cat >> confdefs.h
<<EOF
10082 #define GDB_NM_FILE ${GDB_NM_FILE}
10090 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
10091 echo "configure:10092: checking for Cygwin environment" >&5
10092 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
10093 echo $ac_n "(cached) $ac_c" 1>&6
10095 cat > conftest.
$ac_ext <<EOF
10096 #line 10097 "configure"
10097 #include "confdefs.h"
10102 #define __CYGWIN__ __CYGWIN32__
10107 if { (eval echo configure
:10108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10111 echo "configure: failed program was:" >&5
10112 cat conftest.
$ac_ext >&5
10120 echo "$ac_t""$ac_cv_cygwin" 1>&6
10122 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
10123 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
10124 echo "configure:10125: checking for mingw32 environment" >&5
10125 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
10126 echo $ac_n "(cached) $ac_c" 1>&6
10128 cat > conftest.
$ac_ext <<EOF
10129 #line 10130 "configure"
10130 #include "confdefs.h"
10133 return __MINGW32__;
10136 if { (eval echo configure
:10137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10140 echo "configure: failed program was:" >&5
10141 cat conftest.
$ac_ext >&5
10149 echo "$ac_t""$ac_cv_mingw32" 1>&6
10151 test "$ac_cv_mingw32" = yes && MINGW32
=yes
10154 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
10155 echo "configure:10156: checking for executable suffix" >&5
10156 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
10157 echo $ac_n "(cached) $ac_c" 1>&6
10159 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
10163 echo 'int main () { return 0; }' > conftest.
$ac_ext
10165 if { (eval echo configure
:10166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
10166 for file in conftest.
*; do
10168 *.c |
*.C |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
10169 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
10173 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
10176 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
10181 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
10182 echo "$ac_t""${ac_cv_exeext}" 1>&6
10187 cat >> confdefs.h
<<\EOF
10188 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
10194 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10195 if test "${with_libiconv_prefix+set}" = set; then
10196 withval
="$with_libiconv_prefix"
10198 for dir
in `echo "$withval" | tr : ' '`; do
10199 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
10200 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
10206 echo $ac_n "checking for iconv""... $ac_c" 1>&6
10207 echo "configure:10208: checking for iconv" >&5
10208 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
10209 echo $ac_n "(cached) $ac_c" 1>&6
10212 am_cv_func_iconv
="no, consider installing GNU libiconv"
10214 cat > conftest.
$ac_ext <<EOF
10215 #line 10216 "configure"
10216 #include "confdefs.h"
10217 #include <stdlib.h>
10220 iconv_t cd = iconv_open("","");
10221 iconv(cd,NULL,NULL,NULL,NULL);
10225 if { (eval echo configure
:10226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10227 am_cv_func_iconv
=yes
10229 echo "configure: failed program was:" >&5
10230 cat conftest.
$ac_ext >&5
10233 if test "$am_cv_func_iconv" != yes; then
10234 am_save_LIBS
="$LIBS"
10235 LIBS
="$LIBS -liconv"
10236 cat > conftest.
$ac_ext <<EOF
10237 #line 10238 "configure"
10238 #include "confdefs.h"
10239 #include <stdlib.h>
10242 iconv_t cd = iconv_open("","");
10243 iconv(cd,NULL,NULL,NULL,NULL);
10247 if { (eval echo configure
:10248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10249 am_cv_lib_iconv
=yes
10250 am_cv_func_iconv
=yes
10252 echo "configure: failed program was:" >&5
10253 cat conftest.
$ac_ext >&5
10256 LIBS
="$am_save_LIBS"
10261 echo "$ac_t""$am_cv_func_iconv" 1>&6
10262 if test "$am_cv_func_iconv" = yes; then
10263 cat >> confdefs.h
<<\EOF
10264 #define HAVE_ICONV 1
10267 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
10268 echo "configure:10269: checking for iconv declaration" >&5
10269 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
10270 echo $ac_n "(cached) $ac_c" 1>&6
10273 cat > conftest.
$ac_ext <<EOF
10274 #line 10275 "configure"
10275 #include "confdefs.h"
10277 #include <stdlib.h>
10283 #if defined(__STDC__) || defined(__cplusplus)
10284 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10293 if { (eval echo configure
:10294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10295 am_cv_proto_iconv_arg1
=""
10297 echo "configure: failed program was:" >&5
10298 cat conftest.
$ac_ext >&5
10300 am_cv_proto_iconv_arg1
="const"
10303 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);"
10306 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10307 echo "$ac_t""${ac_t:-
10308 }$am_cv_proto_iconv" 1>&6
10309 cat >> confdefs.h
<<EOF
10310 #define ICONV_CONST $am_cv_proto_iconv_arg1
10315 if test "$am_cv_lib_iconv" = yes; then
10322 cat > confcache
<<\EOF
10323 # This file is a shell script that caches the results of configure
10324 # tests run on this system so they can be shared between configure
10325 # scripts and configure runs. It is not useful on other systems.
10326 # If it contains results you don't want to keep, you may remove or edit it.
10328 # By default, configure uses ./config.cache as the cache file,
10329 # creating it if it does not exist already. You can give configure
10330 # the --cache-file=FILE option to use a different cache file; that is
10331 # what configure does when it calls configure scripts in
10332 # subdirectories, so they share the cache.
10333 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10334 # config.status only pays attention to the cache file if you give it the
10335 # --recheck option to rerun configure.
10338 # The following way of writing the cache mishandles newlines in values,
10339 # but we know of no workaround that is simple, portable, and efficient.
10340 # So, don't put newlines in cache variables' values.
10341 # Ultrix sh set writes to stderr and can't be redirected directly,
10342 # and sets the high bit in the cache file unless we assign to the vars.
10344 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10346 # `set' does not quote correctly, so add quotes (double-quote substitution
10347 # turns \\\\ into \\, and sed turns \\ into \).
10349 -e "s/'/'\\\\''/g" \
10350 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10353 # `set' quotes correctly as required by POSIX, so do not add quotes.
10354 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10357 if cmp -s $cache_file confcache
; then
10360 if test -w $cache_file; then
10361 echo "updating cache $cache_file"
10362 cat confcache
> $cache_file
10364 echo "not updating unwritable cache $cache_file"
10369 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10371 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10372 # Let make expand exec_prefix.
10373 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10375 # Any assignment to VPATH causes Sun make to only execute
10376 # the first set of double-colon rules, so remove it if not needed.
10377 # If there is a colon in the path, we need to keep it.
10378 if test "x$srcdir" = x.
; then
10379 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
10382 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10384 DEFS
=-DHAVE_CONFIG_H
10386 # Without the "./", some shells look in PATH for config.status.
10387 : ${CONFIG_STATUS=./config.status}
10389 echo creating
$CONFIG_STATUS
10390 rm -f $CONFIG_STATUS
10391 cat > $CONFIG_STATUS <<EOF
10393 # Generated automatically by configure.
10394 # Run this file to recreate the current configuration.
10395 # This directory was configured as follows,
10396 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10398 # $0 $ac_configure_args
10400 # Compiler output produced by configure, useful for debugging
10401 # configure, is in ./config.log if it exists.
10403 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10406 case "\$ac_option" in
10407 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10408 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10409 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10410 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10411 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10413 -help | --help | --hel | --he | --h)
10414 echo "\$ac_cs_usage"; exit 0 ;;
10415 *) echo "\$ac_cs_usage"; exit 1 ;;
10419 ac_given_srcdir=$srcdir
10420 ac_given_INSTALL="$INSTALL"
10422 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10424 cat >> $CONFIG_STATUS <<EOF
10426 # Protect against being on the right side of a sed subst in config.status.
10427 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10428 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10432 s%@CFLAGS@%$CFLAGS%g
10433 s%@CPPFLAGS@%$CPPFLAGS%g
10434 s%@CXXFLAGS@%$CXXFLAGS%g
10435 s%@FFLAGS@%$FFLAGS%g
10437 s%@LDFLAGS@%$LDFLAGS%g
10439 s%@exec_prefix@%$exec_prefix%g
10440 s%@prefix@%$prefix%g
10441 s%@program_transform_name@%$program_transform_name%g
10442 s%@bindir@%$bindir%g
10443 s%@sbindir@%$sbindir%g
10444 s%@libexecdir@%$libexecdir%g
10445 s%@datadir@%$datadir%g
10446 s%@sysconfdir@%$sysconfdir%g
10447 s%@sharedstatedir@%$sharedstatedir%g
10448 s%@localstatedir@%$localstatedir%g
10449 s%@libdir@%$libdir%g
10450 s%@includedir@%$includedir%g
10451 s%@oldincludedir@%$oldincludedir%g
10452 s%@infodir@%$infodir%g
10453 s%@mandir@%$mandir%g
10454 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
10455 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
10460 s%@host_alias@%$host_alias%g
10461 s%@host_cpu@%$host_cpu%g
10462 s%@host_vendor@%$host_vendor%g
10463 s%@host_os@%$host_os%g
10464 s%@target@%$target%g
10465 s%@target_alias@%$target_alias%g
10466 s%@target_cpu@%$target_cpu%g
10467 s%@target_vendor@%$target_vendor%g
10468 s%@target_os@%$target_os%g
10470 s%@build_alias@%$build_alias%g
10471 s%@build_cpu@%$build_cpu%g
10472 s%@build_vendor@%$build_vendor%g
10473 s%@build_os@%$build_os%g
10474 s%@RANLIB@%$RANLIB%g
10475 s%@SET_MAKE@%$SET_MAKE%g
10476 s%@ALLOCA@%$ALLOCA%g
10477 s%@USE_NLS@%$USE_NLS%g
10478 s%@MSGFMT@%$MSGFMT%g
10479 s%@GMSGFMT@%$GMSGFMT%g
10480 s%@XGETTEXT@%$XGETTEXT%g
10481 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
10482 s%@CATALOGS@%$CATALOGS%g
10483 s%@CATOBJEXT@%$CATOBJEXT%g
10484 s%@DATADIRNAME@%$DATADIRNAME%g
10485 s%@GMOFILES@%$GMOFILES%g
10486 s%@INSTOBJEXT@%$INSTOBJEXT%g
10487 s%@INTLDEPS@%$INTLDEPS%g
10488 s%@INTLLIBS@%$INTLLIBS%g
10489 s%@INTLOBJS@%$INTLOBJS%g
10490 s%@POFILES@%$POFILES%g
10492 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
10494 s%@GT_YES@%$GT_YES%g
10495 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
10497 s%@subdirs@%$subdirs%g
10499 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10500 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10501 s%@INSTALL_DATA@%$INSTALL_DATA%g
10505 s%@DLLTOOL@%$DLLTOOL%g
10506 s%@WINDRES@%$WINDRES%g
10508 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
10509 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
10510 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
10511 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
10512 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
10513 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
10514 s%@MMALLOC@%$MMALLOC%g
10515 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
10516 s%@WIN32LIBS@%$WIN32LIBS%g
10517 s%@LIBGUI@%$LIBGUI%g
10518 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
10519 s%@WIN32LDAPP@%$WIN32LDAPP%g
10520 s%@TCL_VERSION@%$TCL_VERSION%g
10521 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
10522 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
10523 s%@TCL_CC@%$TCL_CC%g
10524 s%@TCL_DEFS@%$TCL_DEFS%g
10525 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
10526 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
10527 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
10528 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
10529 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
10530 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
10531 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
10532 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
10533 s%@TCL_RANLIB@%$TCL_RANLIB%g
10534 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
10535 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
10536 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
10537 s%@TK_VERSION@%$TK_VERSION%g
10538 s%@TK_DEFS@%$TK_DEFS%g
10539 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
10540 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
10541 s%@TK_XLIBSW@%$TK_XLIBSW%g
10542 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
10543 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
10544 s%@TCLHDIR@%$TCLHDIR%g
10545 s%@TKHDIR@%$TKHDIR%g
10546 s%@ITCLHDIR@%$ITCLHDIR%g
10547 s%@ITKHDIR@%$ITKHDIR%g
10548 s%@ITCL_VERSION@%$ITCL_VERSION%g
10549 s%@ITCL_DEFS@%$ITCL_DEFS%g
10550 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
10551 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
10552 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
10553 s%@ITK_VERSION@%$ITK_VERSION%g
10554 s%@ITK_DEFS@%$ITK_DEFS%g
10555 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
10556 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
10557 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
10558 s%@X_CFLAGS@%$X_CFLAGS%g
10559 s%@X_LDFLAGS@%$X_LDFLAGS%g
10560 s%@X_LIBS@%$X_LIBS%g
10561 s%@TCL_DEPS@%$TCL_DEPS%g
10562 s%@TK_DEPS@%$TK_DEPS%g
10563 s%@ITCLLIB@%$ITCLLIB%g
10564 s%@ITCL_DEPS@%$ITCL_DEPS%g
10565 s%@ITKLIB@%$ITKLIB%g
10566 s%@ITK_DEPS@%$ITK_DEPS%g
10567 s%@GDBTKLIBS@%$GDBTKLIBS%g
10568 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
10569 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
10570 s%@IGNORE_SIM@%$IGNORE_SIM%g
10571 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
10572 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
10573 s%@PROFILE_CFLAGS@%$PROFILE_CFLAGS%g
10574 s%@CONFIG_OBS@%$CONFIG_OBS%g
10575 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
10576 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
10577 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
10578 s%@CONFIG_INITS@%$CONFIG_INITS%g
10579 s%@CONFIG_ALL@%$CONFIG_ALL%g
10580 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
10581 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
10582 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
10583 s%@target_subdir@%$target_subdir%g
10584 /@host_makefile_frag@/r $host_makefile_frag
10585 s%@host_makefile_frag@%%g
10586 /@target_makefile_frag@/r $target_makefile_frag
10587 s%@target_makefile_frag@%%g
10592 s%@EXEEXT@%$EXEEXT%g
10593 s%@LIBICONV@%$LIBICONV%g
10598 cat >> $CONFIG_STATUS <<\EOF
10600 # Split the substitutions into bite-sized pieces for seds with
10601 # small command number limits, like on Digital OSF/1 and HP-UX.
10602 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
10603 ac_file
=1 # Number of current file.
10604 ac_beg
=1 # First line for current file.
10605 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
10608 while $ac_more_lines; do
10609 if test $ac_beg -gt 1; then
10610 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
10612 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
10614 if test ! -s conftest.s
$ac_file; then
10615 ac_more_lines
=false
10616 rm -f conftest.s
$ac_file
10618 if test -z "$ac_sed_cmds"; then
10619 ac_sed_cmds
="sed -f conftest.s$ac_file"
10621 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
10623 ac_file
=`expr $ac_file + 1`
10625 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
10628 if test -z "$ac_sed_cmds"; then
10633 cat >> $CONFIG_STATUS <<EOF
10635 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
10637 cat >> $CONFIG_STATUS <<\EOF
10638 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
10639 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10641 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10642 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10643 *) ac_file_in
="${ac_file}.in" ;;
10646 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10648 # Remove last slash and all that follows it. Not all systems have dirname.
10649 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10650 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
10651 # The file is in a subdirectory.
10652 test ! -d "$ac_dir" && mkdir
"$ac_dir"
10653 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
10654 # A "../" for each directory in $ac_dir_suffix.
10655 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10657 ac_dir_suffix
= ac_dots
=
10660 case "$ac_given_srcdir" in
10662 if test -z "$ac_dots"; then top_srcdir
=.
10663 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10664 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
10665 *) # Relative path.
10666 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10667 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10670 case "$ac_given_INSTALL" in
10671 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
10672 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
10675 echo creating
"$ac_file"
10677 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10679 *Makefile
*) ac_comsub
="1i\\
10680 # $configure_input" ;;
10684 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10686 s%@configure_input@%$configure_input%g
10687 s%@srcdir@%$srcdir%g
10688 s%@top_srcdir@%$top_srcdir%g
10689 s%@INSTALL@%$INSTALL%g
10690 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10694 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10695 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10697 # ac_d sets the value in "#define NAME VALUE" lines.
10698 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10699 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10702 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10703 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10704 ac_uB
='\([ ]\)%\1#\2define\3'
10707 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10708 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10709 ac_eB
='$%\1#\2define\3'
10713 if test "${CONFIG_HEADERS+set}" != set; then
10715 cat >> $CONFIG_STATUS <<EOF
10716 CONFIG_HEADERS="config.h:config.in"
10718 cat >> $CONFIG_STATUS <<\EOF
10720 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10721 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10723 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10724 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10725 *) ac_file_in
="${ac_file}.in" ;;
10728 echo creating
$ac_file
10730 rm -f conftest.frag conftest.
in conftest.out
10731 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10732 cat $ac_file_inputs > conftest.
in
10736 # Transform confdefs.h into a sed script conftest.vals that substitutes
10737 # the proper values into config.h.in to produce config.h. And first:
10738 # Protect against being on the right side of a sed subst in config.status.
10739 # Protect against being in an unquoted here document in config.status.
10740 rm -f conftest.vals
10741 cat > conftest.hdr
<<\EOF
10744 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10748 sed -n -f conftest.hdr confdefs.h > conftest.vals
10751 # This sed command replaces #undef with comments. This is necessary, for
10752 # example, in the case of _POSIX_SOURCE, which is predefined and required
10753 # on some systems where configure will not decide to define it.
10754 cat >> conftest.vals <<\EOF
10755 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10758 # Break up conftest.vals because some shells have a limit on
10759 # the size of here documents, and old seds have small limits too.
10761 rm -f conftest.tail
10764 ac_lines=`grep -c . conftest.vals
`
10765 # grep -c gives empty output for an empty file on some AIX systems.
10766 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10767 # Write a limited-size here document to conftest.frag.
10768 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10769 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10771 sed -f conftest.frag conftest.in > conftest.out
10773 mv conftest.out conftest.in
10774 ' >> $CONFIG_STATUS
10775 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10776 rm -f conftest.vals
10777 mv conftest.tail conftest.vals
10779 rm -f conftest.vals
10781 cat >> $CONFIG_STATUS <<\EOF
10782 rm -f conftest.frag conftest.h
10783 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10784 cat conftest.in >> conftest.h
10786 if cmp -s $ac_file conftest.h 2>/dev/null; then
10787 echo "$ac_file is unchanged"
10790 # Remove last slash and all that follows it. Not all systems have dirname.
10791 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10792 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10793 # The file is in a subdirectory.
10794 test ! -d "$ac_dir" && mkdir "$ac_dir"
10797 mv conftest.h $ac_file
10803 cat >> $CONFIG_STATUS <<EOF
10804 ac_sources="$files"
10808 cat >> $CONFIG_STATUS <<\EOF
10809 srcdir=$ac_given_srcdir
10810 while test -n "$ac_sources"; do
10811 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10812 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10814 echo "linking $srcdir/$ac_source to $ac_dest"
10816 if test ! -r $srcdir/$ac_source; then
10817 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10821 # Make relative symlinks.
10822 # Remove last slash and all that follows it. Not all systems have dirname.
10823 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10824 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10825 # The dest file is in a subdirectory.
10826 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10827 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10828 # A "../" for each directory in $ac_dest_dir_suffix.
10829 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10831 ac_dest_dir_suffix= ac_dots=
10835 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10836 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10839 # Make a symlink if possible; otherwise try a hard link.
10840 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10841 ln $srcdir/$ac_source $ac_dest; then :
10843 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10847 cat >> $CONFIG_STATUS <<EOF
10849 gdb_host_cpu=$gdb_host_cpu
10850 gdb_target_cpu=$gdb_target_cpu
10851 nativefile=$nativefile
10854 cat >> $CONFIG_STATUS <<\EOF
10856 if test "${nativefile}" = ""; then
10858 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
10859 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
10860 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
10862 mv -f Makefile.tem Makefile
10865 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
10866 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
10867 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
10868 mv -f Makefile.tmp Makefile
10871 case x$CONFIG_HEADERS in
10872 xconfig.h:config.in)
10878 chmod +x $CONFIG_STATUS
10879 rm -fr confdefs* $ac_clean_files
10880 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10882 if test "$no_recursion" != yes; then
10884 # Remove --cache-file and --srcdir arguments so they do not pile up.
10885 ac_sub_configure_args=
10887 for ac_arg in $ac_configure_args; do
10888 if test -n "$ac_prev"; then
10893 -cache-file | --cache-file | --cache-fil | --cache-fi \
10894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10895 ac_prev=cache_file ;;
10896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
10899 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10901 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10903 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10907 for ac_config_dir in doc testsuite $configdirs; do
10909 # Do not complain, so a configure script can configure whichever
10910 # parts of a large source tree are present.
10911 if test ! -d $srcdir/$ac_config_dir; then
10915 echo configuring in $ac_config_dir
10920 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
10922 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
10930 # A "../" for each directory in /$ac_config_dir.
10931 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
10934 .) # No --srcdir option. We are building in place.
10935 ac_sub_srcdir=$srcdir ;;
10936 /*) # Absolute path.
10937 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
10938 *) # Relative path.
10939 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
10942 # Check for guested configure; otherwise get Cygnus style configure.
10943 if test -f $ac_sub_srcdir/configure; then
10944 ac_sub_configure=$ac_sub_srcdir/configure
10945 elif test -f $ac_sub_srcdir/configure.in; then
10946 ac_sub_configure=$ac_configure
10948 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
10952 # The recursion is here.
10953 if test -n "$ac_sub_configure"; then
10955 # Make the cache file name correct relative to the subdirectory.
10956 case "$cache_file" in
10957 /*) ac_sub_cache_file=$cache_file ;;
10958 *) # Relative path.
10959 ac_sub_cache_file="$ac_dots$cache_file" ;;
10961 case "$ac_given_INSTALL" in
10962 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10963 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10966 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
10967 # The eval makes quoting arguments work.
10968 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
10971 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }