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 --with-libunwind Use libunwind frame unwinding support"
34 --enable-profiling enable profiling of GDB"
36 --without-included-regex don't use included regex; this is the default
37 on systems with version 2 of the GNU C library
38 (use with caution on other system)"
40 --with-sysroot[=DIR] Search for usr/lib et al within DIR."
42 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
44 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
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"),
2936 subdirs
="doc testsuite"
2940 .
$srcdir/configure.
host
2942 .
$srcdir/configure.tgt
2944 # Fetch the default architecture and default target vector from BFD.
2945 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
2947 # We only want the first architecture, so strip off the others if
2948 # there is more than one.
2949 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
2951 if test "x$targ_archs" != x
; then
2952 cat >> confdefs.h
<<EOF
2953 #define DEFAULT_BFD_ARCH $targ_archs
2957 if test "x$targ_defvec" != x
; then
2958 cat >> confdefs.h
<<EOF
2959 #define DEFAULT_BFD_VEC $targ_defvec
2964 if test "$program_transform_name" = s
,x
,x
,; then
2965 program_transform_name
=
2967 # Double any \ or $. echo might interpret backslashes.
2968 cat <<\EOF_SED
> conftestsed
2969 s
,\\,\\\\,g
; s
,\$
,$$
,g
2971 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2974 test "$program_prefix" != NONE
&&
2975 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2976 # Use a double $ so make ignores it.
2977 test "$program_suffix" != NONE
&&
2978 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2980 # sed with no file args requires a program.
2981 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2984 # The CLI cannot be disabled yet, but may be in the future.
2987 # Check whether --enable-gdbcli or --disable-gdbcli was given.
2988 if test "${enable_gdbcli+set}" = set; then
2989 enableval
="$enable_gdbcli"
2994 { echo "configure: error: the command-line interface cannot be disabled yet" 1>&2; exit 1; } ;;
2996 { echo "configure: error: bad value $enableval for --enable-gdbcli" 1>&2; exit 1; } ;;
3002 if test x
"$enable_gdbcli" = xyes
; then
3003 if test -d $srcdir/cli
; then
3004 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3005 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3006 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3007 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3012 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3013 if test "${enable_gdbmi+set}" = set; then
3014 enableval
="$enable_gdbmi"
3019 { echo "configure: error: bad value $enableval for --enable-gdbmi" 1>&2; exit 1; } ;;
3025 if test x
"$enable_gdbmi" = xyes
; then
3026 if test -d $srcdir/mi
; then
3027 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3028 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3029 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3030 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3035 # Check whether --enable-tui or --disable-tui was given.
3036 if test "${enable_tui+set}" = set; then
3037 enableval
="$enable_tui"
3042 { echo "configure: error: bad value $enableval for --enable-tui" 1>&2; exit 1; } ;;
3048 if test x
"$enable_tui" = xyes
; then
3049 if test -d $srcdir/tui
; then
3050 if test "$ac_cv_search_initscr" != no
-a "$ac_cv_search_wborder" != no
; then
3051 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
3052 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
3053 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
3054 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
3055 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
3056 CONFIG_ALL
="${CONFIG_ALL} all-tui"
3057 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
3058 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
3059 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
3065 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3066 if test "${enable_gdbtk+set}" = set; then
3067 enableval
="$enable_gdbtk"
3072 { echo "configure: error: bad value $enableval for --enable-gdbtk" 1>&2; exit 1; } ;;
3075 if test -d $srcdir/gdbtk
; then
3082 # We unconditionally disable gdbtk tests on selected platforms.
3085 echo "configure: warning: gdbtk isn't supported on $host; disabling" 1>&2
3089 # Libunwind support.
3090 # Check whether --with-libunwind or --without-libunwind was given.
3091 if test "${with_libunwind+set}" = set; then
3092 withval
="$with_libunwind"
3093 case "${withval}" in
3094 yes) enable_libunwind
=yes ;;
3095 no
) enable_libunwind
=no
;;
3096 *) { echo "configure: error: bad value ${withval} for GDB with-libunwind option" 1>&2; exit 1; } ;;
3100 for ac_hdr
in libunwind.h
3102 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3103 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3104 echo "configure:3105: checking for $ac_hdr" >&5
3105 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 cat > conftest.
$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3113 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3114 { (eval echo configure
:3115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3115 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3116 if test -z "$ac_err"; then
3118 eval "ac_cv_header_$ac_safe=yes"
3121 echo "configure: failed program was:" >&5
3122 cat conftest.
$ac_ext >&5
3124 eval "ac_cv_header_$ac_safe=no"
3128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3129 echo "$ac_t""yes" 1>&6
3130 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3131 cat >> confdefs.h
<<EOF
3132 #define $ac_tr_hdr 1
3136 echo "$ac_t""no" 1>&6
3140 for ac_hdr
in libunwind-ia64.h
3142 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3143 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3144 echo "configure:3145: checking for $ac_hdr" >&5
3145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3148 cat > conftest.
$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3153 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3154 { (eval echo configure
:3155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3155 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3156 if test -z "$ac_err"; then
3158 eval "ac_cv_header_$ac_safe=yes"
3161 echo "configure: failed program was:" >&5
3162 cat conftest.
$ac_ext >&5
3164 eval "ac_cv_header_$ac_safe=no"
3168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3169 echo "$ac_t""yes" 1>&6
3170 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3171 cat >> confdefs.h
<<EOF
3172 #define $ac_tr_hdr 1
3176 echo "$ac_t""no" 1>&6
3180 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
3181 enable_libunwind
=yes;
3187 if test x
"$enable_libunwind" = xyes
; then
3188 for ac_hdr
in libunwind.h
3190 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3191 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3192 echo "configure:3193: checking for $ac_hdr" >&5
3193 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3194 echo $ac_n "(cached) $ac_c" 1>&6
3196 cat > conftest.
$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3201 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3202 { (eval echo configure
:3203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3203 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3204 if test -z "$ac_err"; then
3206 eval "ac_cv_header_$ac_safe=yes"
3209 echo "configure: failed program was:" >&5
3210 cat conftest.
$ac_ext >&5
3212 eval "ac_cv_header_$ac_safe=no"
3216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3217 echo "$ac_t""yes" 1>&6
3218 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3219 cat >> confdefs.h
<<EOF
3220 #define $ac_tr_hdr 1
3224 echo "$ac_t""no" 1>&6
3228 for ac_hdr
in libunwind-ia64.h
3230 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3232 echo "configure:3233: checking for $ac_hdr" >&5
3233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 cat > conftest.
$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3241 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3242 { (eval echo configure
:3243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3243 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3244 if test -z "$ac_err"; then
3246 eval "ac_cv_header_$ac_safe=yes"
3249 echo "configure: failed program was:" >&5
3250 cat conftest.
$ac_ext >&5
3252 eval "ac_cv_header_$ac_safe=no"
3256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3257 echo "$ac_t""yes" 1>&6
3258 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3259 cat >> confdefs.h
<<EOF
3260 #define $ac_tr_hdr 1
3264 echo "$ac_t""no" 1>&6
3268 cat >> confdefs.h
<<\EOF
3269 #define HAVE_LIBUNWIND 1
3272 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
3273 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
3274 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
3277 # Profiling support.
3278 # Check whether --enable-profiling or --disable-profiling was given.
3279 if test "${enable_profiling+set}" = set; then
3280 enableval
="$enable_profiling"
3285 { echo "configure: error: bad value $enableval for --enable-profile" 1>&2; exit 1; } ;;
3292 for ac_func
in monstartup _mcleanup
3294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3295 echo "configure:3296: checking for $ac_func" >&5
3296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3299 cat > conftest.
$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3302 /* System header to define __stub macros and hopefully few prototypes,
3303 which can conflict with char $ac_func(); below. */
3305 /* Override any gcc2 internal prototype to avoid an error. */
3306 /* We use char because int might match the return type of a gcc2
3307 builtin and then its argument prototype would still apply. */
3312 /* The GNU C library defines this for functions which it implements
3313 to always fail with ENOSYS. Some functions are actually named
3314 something starting with __ and the normal name is an alias. */
3315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3323 if { (eval echo configure
:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3325 eval "ac_cv_func_$ac_func=yes"
3327 echo "configure: failed program was:" >&5
3328 cat conftest.
$ac_ext >&5
3330 eval "ac_cv_func_$ac_func=no"
3335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3336 echo "$ac_t""yes" 1>&6
3337 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3338 cat >> confdefs.h
<<EOF
3339 #define $ac_tr_func 1
3343 echo "$ac_t""no" 1>&6
3347 echo $ac_n "checking for _etext""... $ac_c" 1>&6
3348 echo "configure:3349: checking for _etext" >&5
3349 if eval "test \"`echo '$''{'ac_cv_var__etext'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3352 cat > conftest.
$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3362 if { (eval echo configure
:3363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3364 ac_cv_var__etext
=yes
3366 echo "configure: failed program was:" >&5
3367 cat conftest.
$ac_ext >&5
3374 echo "$ac_t""$ac_cv_var__etext" 1>&6
3375 if test $ac_cv_var__etext = yes; then
3376 cat >> confdefs.h
<<\EOF
3377 #define HAVE__ETEXT 1
3381 if test "$enable_profiling" = yes ; then
3382 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
3383 { echo "configure: error: --enable-profiling requires monstartup and _mcleanup" 1>&2; exit 1; }
3386 OLD_CFLAGS
="$CFLAGS"
3387 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
3389 echo $ac_n "checking whether $CC supports -pg""... $ac_c" 1>&6
3390 echo "configure:3391: checking whether $CC supports -pg" >&5
3391 if eval "test \"`echo '$''{'ac_cv_cc_supports_pg'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3394 cat > conftest.
$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3402 if { (eval echo configure
:3403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3404 ac_cv_cc_supports_pg
=yes
3406 echo "configure: failed program was:" >&5
3407 cat conftest.
$ac_ext >&5
3409 ac_cv_cc_supports_pg
=no
3414 echo "$ac_t""$ac_cv_cc_supports_pg" 1>&6
3416 if test $ac_cv_cc_supports_pg = no
; then
3417 { echo "configure: error: --enable-profiling requires a compiler which supports -pg" 1>&2; exit 1; }
3420 CFLAGS
="$OLD_CFLAGS"
3423 # --------------------- #
3424 # Checks for programs. #
3425 # --------------------- #
3427 for ac_prog
in mawk gawk nawk
awk
3429 # Extract the first word of "$ac_prog", so it can be a program name with args.
3430 set dummy
$ac_prog; ac_word
=$2
3431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3432 echo "configure:3433: checking for $ac_word" >&5
3433 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3436 if test -n "$AWK"; then
3437 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3439 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3441 for ac_dir
in $ac_dummy; do
3442 test -z "$ac_dir" && ac_dir
=.
3443 if test -f $ac_dir/$ac_word; then
3444 ac_cv_prog_AWK
="$ac_prog"
3451 AWK
="$ac_cv_prog_AWK"
3452 if test -n "$AWK"; then
3453 echo "$ac_t""$AWK" 1>&6
3455 echo "$ac_t""no" 1>&6
3458 test -n "$AWK" && break
3461 # Find a good install program. We prefer a C program (faster),
3462 # so one script is as good as another. But avoid the broken or
3463 # incompatible versions:
3464 # SysV /etc/install, /usr/sbin/install
3465 # SunOS /usr/etc/install
3466 # IRIX /sbin/install
3468 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3469 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3470 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3471 # ./install, which can be erroneously created by make from ./install.sh.
3472 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3473 echo "configure:3474: checking for a BSD compatible install" >&5
3474 if test -z "$INSTALL"; then
3475 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3476 echo $ac_n "(cached) $ac_c" 1>&6
3478 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3479 for ac_dir
in $PATH; do
3480 # Account for people who put trailing slashes in PATH elements.
3482 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3484 # OSF1 and SCO ODT 3.0 have their own names for install.
3485 # Don't use installbsd from OSF since it installs stuff as root
3487 for ac_prog
in ginstall scoinst
install; do
3488 if test -f $ac_dir/$ac_prog; then
3489 if test $ac_prog = install &&
3490 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3491 # AIX install. It has an incompatible calling convention.
3494 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3505 if test "${ac_cv_path_install+set}" = set; then
3506 INSTALL
="$ac_cv_path_install"
3508 # As a last resort, use the slow shell script. We don't cache a
3509 # path for INSTALL within a source directory, because that will
3510 # break other packages using the cache if that directory is
3511 # removed, or if the path is relative.
3512 INSTALL
="$ac_install_sh"
3515 echo "$ac_t""$INSTALL" 1>&6
3517 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3518 # It thinks the first close brace ends the variable substitution.
3519 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3521 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3523 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3525 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3526 echo "configure:3527: checking whether ln -s works" >&5
3527 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3531 if ln -s X conftestdata
2>/dev
/null
3534 ac_cv_prog_LN_S
="ln -s"
3539 LN_S
="$ac_cv_prog_LN_S"
3540 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3541 echo "$ac_t""yes" 1>&6
3543 echo "$ac_t""no" 1>&6
3546 # Extract the first word of "ranlib", so it can be a program name with args.
3547 set dummy ranlib
; ac_word
=$2
3548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3549 echo "configure:3550: checking for $ac_word" >&5
3550 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3553 if test -n "$RANLIB"; then
3554 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3556 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3558 for ac_dir
in $ac_dummy; do
3559 test -z "$ac_dir" && ac_dir
=.
3560 if test -f $ac_dir/$ac_word; then
3561 ac_cv_prog_RANLIB
="ranlib"
3566 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3569 RANLIB
="$ac_cv_prog_RANLIB"
3570 if test -n "$RANLIB"; then
3571 echo "$ac_t""$RANLIB" 1>&6
3573 echo "$ac_t""no" 1>&6
3576 for ac_prog
in 'bison -y' byacc
3578 # Extract the first word of "$ac_prog", so it can be a program name with args.
3579 set dummy
$ac_prog; ac_word
=$2
3580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3581 echo "configure:3582: checking for $ac_word" >&5
3582 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3583 echo $ac_n "(cached) $ac_c" 1>&6
3585 if test -n "$YACC"; then
3586 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3588 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3590 for ac_dir
in $ac_dummy; do
3591 test -z "$ac_dir" && ac_dir
=.
3592 if test -f $ac_dir/$ac_word; then
3593 ac_cv_prog_YACC
="$ac_prog"
3600 YACC
="$ac_cv_prog_YACC"
3601 if test -n "$YACC"; then
3602 echo "$ac_t""$YACC" 1>&6
3604 echo "$ac_t""no" 1>&6
3607 test -n "$YACC" && break
3609 test -n "$YACC" || YACC
="yacc"
3612 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3613 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3615 echo "configure:3616: checking for $ac_word" >&5
3616 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3619 if test -n "$AR"; then
3620 ac_cv_prog_AR
="$AR" # Let the user override the test.
3622 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3624 for ac_dir
in $ac_dummy; do
3625 test -z "$ac_dir" && ac_dir
=.
3626 if test -f $ac_dir/$ac_word; then
3627 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3632 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3636 if test -n "$AR"; then
3637 echo "$ac_t""$AR" 1>&6
3639 echo "$ac_t""no" 1>&6
3644 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3645 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3647 echo "configure:3648: checking for $ac_word" >&5
3648 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3649 echo $ac_n "(cached) $ac_c" 1>&6
3651 if test -n "$DLLTOOL"; then
3652 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3654 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3656 for ac_dir
in $ac_dummy; do
3657 test -z "$ac_dir" && ac_dir
=.
3658 if test -f $ac_dir/$ac_word; then
3659 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3664 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3667 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3668 if test -n "$DLLTOOL"; then
3669 echo "$ac_t""$DLLTOOL" 1>&6
3671 echo "$ac_t""no" 1>&6
3676 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3677 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3679 echo "configure:3680: checking for $ac_word" >&5
3680 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3681 echo $ac_n "(cached) $ac_c" 1>&6
3683 if test -n "$WINDRES"; then
3684 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3686 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3688 for ac_dir
in $ac_dummy; do
3689 test -z "$ac_dir" && ac_dir
=.
3690 if test -f $ac_dir/$ac_word; then
3691 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3696 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3699 WINDRES
="$ac_cv_prog_WINDRES"
3700 if test -n "$WINDRES"; then
3701 echo "$ac_t""$WINDRES" 1>&6
3703 echo "$ac_t""no" 1>&6
3709 # Needed for GNU/Hurd.
3710 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3711 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3713 echo "configure:3714: checking for $ac_word" >&5
3714 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3715 echo $ac_n "(cached) $ac_c" 1>&6
3717 if test -n "$MIG"; then
3718 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3720 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3722 for ac_dir
in $ac_dummy; do
3723 test -z "$ac_dir" && ac_dir
=.
3724 if test -f $ac_dir/$ac_word; then
3725 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3730 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3733 MIG
="$ac_cv_prog_MIG"
3734 if test -n "$MIG"; then
3735 echo "$ac_t""$MIG" 1>&6
3737 echo "$ac_t""no" 1>&6
3743 # ---------------------- #
3744 # Checks for libraries. #
3745 # ---------------------- #
3747 # We might need to link with -lm; most simulators need it.
3748 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3749 echo "configure:3750: checking for main in -lm" >&5
3750 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3754 ac_save_LIBS
="$LIBS"
3756 cat > conftest.
$ac_ext <<EOF
3757 #line 3758 "configure"
3758 #include "confdefs.h"
3764 if { (eval echo configure
:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3766 eval "ac_cv_lib_$ac_lib_var=yes"
3768 echo "configure: failed program was:" >&5
3769 cat conftest.
$ac_ext >&5
3771 eval "ac_cv_lib_$ac_lib_var=no"
3774 LIBS
="$ac_save_LIBS"
3777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3778 echo "$ac_t""yes" 1>&6
3779 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3780 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3781 cat >> confdefs.h
<<EOF
3782 #define $ac_tr_lib 1
3788 echo "$ac_t""no" 1>&6
3792 # We need to link with -lw to get `wctype' on Solaris before Solaris
3793 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
3794 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
3795 # is known to have this problem). Therefore we avoid libw if we can.
3796 echo $ac_n "checking for wctype""... $ac_c" 1>&6
3797 echo "configure:3798: checking for wctype" >&5
3798 if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3801 cat > conftest.
$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 /* System header to define __stub macros and hopefully few prototypes,
3805 which can conflict with char wctype(); below. */
3807 /* Override any gcc2 internal prototype to avoid an error. */
3808 /* We use char because int might match the return type of a gcc2
3809 builtin and then its argument prototype would still apply. */
3814 /* The GNU C library defines this for functions which it implements
3815 to always fail with ENOSYS. Some functions are actually named
3816 something starting with __ and the normal name is an alias. */
3817 #if defined (__stub_wctype) || defined (__stub___wctype)
3825 if { (eval echo configure
:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3827 eval "ac_cv_func_wctype=yes"
3829 echo "configure: failed program was:" >&5
3830 cat conftest.
$ac_ext >&5
3832 eval "ac_cv_func_wctype=no"
3837 if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
3838 echo "$ac_t""yes" 1>&6
3841 echo "$ac_t""no" 1>&6
3842 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3843 echo "configure:3844: checking for wctype in -lw" >&5
3844 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 ac_save_LIBS
="$LIBS"
3850 cat > conftest.
$ac_ext <<EOF
3851 #line 3852 "configure"
3852 #include "confdefs.h"
3853 /* Override any gcc2 internal prototype to avoid an error. */
3854 /* We use char because int might match the return type of a gcc2
3855 builtin and then its argument prototype would still apply. */
3862 if { (eval echo configure
:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3864 eval "ac_cv_lib_$ac_lib_var=yes"
3866 echo "configure: failed program was:" >&5
3867 cat conftest.
$ac_ext >&5
3869 eval "ac_cv_lib_$ac_lib_var=no"
3872 LIBS
="$ac_save_LIBS"
3875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3876 echo "$ac_t""yes" 1>&6
3877 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3878 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3879 cat >> confdefs.h
<<EOF
3880 #define $ac_tr_lib 1
3886 echo "$ac_t""no" 1>&6
3892 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
3894 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
3895 echo "configure:3896: checking for library containing gethostbyname" >&5
3896 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3899 ac_func_search_save_LIBS
="$LIBS"
3900 ac_cv_search_gethostbyname
="no"
3901 cat > conftest.
$ac_ext <<EOF
3902 #line 3903 "configure"
3903 #include "confdefs.h"
3904 /* Override any gcc2 internal prototype to avoid an error. */
3905 /* We use char because int might match the return type of a gcc2
3906 builtin and then its argument prototype would still apply. */
3907 char gethostbyname();
3913 if { (eval echo configure
:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3915 ac_cv_search_gethostbyname
="none required"
3917 echo "configure: failed program was:" >&5
3918 cat conftest.
$ac_ext >&5
3921 test "$ac_cv_search_gethostbyname" = "no" && for i
in nsl
; do
3922 LIBS
="-l$i $ac_func_search_save_LIBS"
3923 cat > conftest.
$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3926 /* Override any gcc2 internal prototype to avoid an error. */
3927 /* We use char because int might match the return type of a gcc2
3928 builtin and then its argument prototype would still apply. */
3929 char gethostbyname();
3935 if { (eval echo configure
:3936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3937 ac_cv_search_gethostbyname
="-l$i"
3940 echo "configure: failed program was:" >&5
3941 cat conftest.
$ac_ext >&5
3945 LIBS
="$ac_func_search_save_LIBS"
3948 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
3949 if test "$ac_cv_search_gethostbyname" != "no"; then
3950 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
3956 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
3958 echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
3959 echo "configure:3960: checking for library containing socketpair" >&5
3960 if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
3961 echo $ac_n "(cached) $ac_c" 1>&6
3963 ac_func_search_save_LIBS
="$LIBS"
3964 ac_cv_search_socketpair
="no"
3965 cat > conftest.
$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3968 /* Override any gcc2 internal prototype to avoid an error. */
3969 /* We use char because int might match the return type of a gcc2
3970 builtin and then its argument prototype would still apply. */
3977 if { (eval echo configure
:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3979 ac_cv_search_socketpair
="none required"
3981 echo "configure: failed program was:" >&5
3982 cat conftest.
$ac_ext >&5
3985 test "$ac_cv_search_socketpair" = "no" && for i
in socket
; do
3986 LIBS
="-l$i $ac_func_search_save_LIBS"
3987 cat > conftest.
$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3990 /* Override any gcc2 internal prototype to avoid an error. */
3991 /* We use char because int might match the return type of a gcc2
3992 builtin and then its argument prototype would still apply. */
3999 if { (eval echo configure
:4000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4001 ac_cv_search_socketpair
="-l$i"
4004 echo "configure: failed program was:" >&5
4005 cat conftest.
$ac_ext >&5
4009 LIBS
="$ac_func_search_save_LIBS"
4012 echo "$ac_t""$ac_cv_search_socketpair" 1>&6
4013 if test "$ac_cv_search_socketpair" != "no"; then
4014 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
4020 # Since GDB uses Readline, we need termcap functionality, so we need
4021 # to find a library that provides that. When GDB is configured with
4022 # the TUI, we need full curses functionality.
4026 if test -d $srcdir/libtermcap
; then
4027 LIBS
="../libtermcap/libtermcap.a $LIBS"
4028 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
4031 ac_cv_search_tgetent
="none required"
4034 # Readline prefers curses over termcap on AIX.
4037 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4038 echo "configure:4039: checking for library containing tgetent" >&5
4039 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
4040 echo $ac_n "(cached) $ac_c" 1>&6
4042 ac_func_search_save_LIBS
="$LIBS"
4043 ac_cv_search_tgetent
="no"
4044 cat > conftest.
$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 /* Override any gcc2 internal prototype to avoid an error. */
4048 /* We use char because int might match the return type of a gcc2
4049 builtin and then its argument prototype would still apply. */
4056 if { (eval echo configure
:4057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4058 ac_cv_search_tgetent
="none required"
4060 echo "configure: failed program was:" >&5
4061 cat conftest.
$ac_ext >&5
4064 test "$ac_cv_search_tgetent" = "no" && for i
in tinfo ncurses curses termcap
; do
4065 LIBS
="-l$i $ac_func_search_save_LIBS"
4066 cat > conftest.
$ac_ext <<EOF
4067 #line 4068 "configure"
4068 #include "confdefs.h"
4069 /* Override any gcc2 internal prototype to avoid an error. */
4070 /* We use char because int might match the return type of a gcc2
4071 builtin and then its argument prototype would still apply. */
4078 if { (eval echo configure
:4079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4080 ac_cv_search_tgetent
="-l$i"
4083 echo "configure: failed program was:" >&5
4084 cat conftest.
$ac_ext >&5
4088 LIBS
="$ac_func_search_save_LIBS"
4091 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
4092 if test "$ac_cv_search_tgetent" != "no"; then
4093 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
4101 # Note: We used to check for libtermlib and libterminfo too, but
4102 # Readline doesn't, so I think we're safe with leaving them out.
4104 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4105 echo "configure:4106: checking for library containing tgetent" >&5
4106 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
4107 echo $ac_n "(cached) $ac_c" 1>&6
4109 ac_func_search_save_LIBS
="$LIBS"
4110 ac_cv_search_tgetent
="no"
4111 cat > conftest.
$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4114 /* Override any gcc2 internal prototype to avoid an error. */
4115 /* We use char because int might match the return type of a gcc2
4116 builtin and then its argument prototype would still apply. */
4123 if { (eval echo configure
:4124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4125 ac_cv_search_tgetent
="none required"
4127 echo "configure: failed program was:" >&5
4128 cat conftest.
$ac_ext >&5
4131 test "$ac_cv_search_tgetent" = "no" && for i
in termcap tinfo ncurses Hcurses curses
; do
4132 LIBS
="-l$i $ac_func_search_save_LIBS"
4133 cat > conftest.
$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4136 /* Override any gcc2 internal prototype to avoid an error. */
4137 /* We use char because int might match the return type of a gcc2
4138 builtin and then its argument prototype would still apply. */
4145 if { (eval echo configure
:4146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4147 ac_cv_search_tgetent
="-l$i"
4150 echo "configure: failed program was:" >&5
4151 cat conftest.
$ac_ext >&5
4155 LIBS
="$ac_func_search_save_LIBS"
4158 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
4159 if test "$ac_cv_search_tgetent" != "no"; then
4160 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
4166 if test "$ac_cv_search_tgetent" = no
; then
4167 { echo "configure: error: no termcap library found" 1>&2; exit 1; }
4170 # FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
4171 # Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
4172 # Makefile fragments. That's why we need to have `Hcurses' before
4173 # `curses'. I don't see why we should use HP curses if a more
4174 # standard curses is available, except that according to HP's
4175 # documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
4176 # HP-UX 10.10 and 10.20.
4180 # ncurses does not work on native alphaev68-dec-osf5.1
4181 # -- chastain 2004-04-24
4183 echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6
4184 echo "configure:4185: checking for library containing initscr" >&5
4185 if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4188 ac_func_search_save_LIBS
="$LIBS"
4189 ac_cv_search_initscr
="no"
4190 cat > conftest.
$ac_ext <<EOF
4191 #line 4192 "configure"
4192 #include "confdefs.h"
4193 /* Override any gcc2 internal prototype to avoid an error. */
4194 /* We use char because int might match the return type of a gcc2
4195 builtin and then its argument prototype would still apply. */
4202 if { (eval echo configure
:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4204 ac_cv_search_initscr
="none required"
4206 echo "configure: failed program was:" >&5
4207 cat conftest.
$ac_ext >&5
4210 test "$ac_cv_search_initscr" = "no" && for i
in curses
; do
4211 LIBS
="-l$i $ac_func_search_save_LIBS"
4212 cat > conftest.
$ac_ext <<EOF
4213 #line 4214 "configure"
4214 #include "confdefs.h"
4215 /* Override any gcc2 internal prototype to avoid an error. */
4216 /* We use char because int might match the return type of a gcc2
4217 builtin and then its argument prototype would still apply. */
4224 if { (eval echo configure
:4225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4226 ac_cv_search_initscr
="-l$i"
4229 echo "configure: failed program was:" >&5
4230 cat conftest.
$ac_ext >&5
4234 LIBS
="$ac_func_search_save_LIBS"
4237 echo "$ac_t""$ac_cv_search_initscr" 1>&6
4238 if test "$ac_cv_search_initscr" != "no"; then
4239 test "$ac_cv_search_initscr" = "none required" || LIBS
="$ac_cv_search_initscr $LIBS"
4242 echo "configure: warning: no curses library found" 1>&2
4247 echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6
4248 echo "configure:4249: checking for library containing initscr" >&5
4249 if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4252 ac_func_search_save_LIBS
="$LIBS"
4253 ac_cv_search_initscr
="no"
4254 cat > conftest.
$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4257 /* Override any gcc2 internal prototype to avoid an error. */
4258 /* We use char because int might match the return type of a gcc2
4259 builtin and then its argument prototype would still apply. */
4266 if { (eval echo configure
:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4268 ac_cv_search_initscr
="none required"
4270 echo "configure: failed program was:" >&5
4271 cat conftest.
$ac_ext >&5
4274 test "$ac_cv_search_initscr" = "no" && for i
in ncurses Hcurses curses pdcurses
; do
4275 LIBS
="-l$i $ac_func_search_save_LIBS"
4276 cat > conftest.
$ac_ext <<EOF
4277 #line 4278 "configure"
4278 #include "confdefs.h"
4279 /* Override any gcc2 internal prototype to avoid an error. */
4280 /* We use char because int might match the return type of a gcc2
4281 builtin and then its argument prototype would still apply. */
4288 if { (eval echo configure
:4289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4290 ac_cv_search_initscr
="-l$i"
4293 echo "configure: failed program was:" >&5
4294 cat conftest.
$ac_ext >&5
4298 LIBS
="$ac_func_search_save_LIBS"
4301 echo "$ac_t""$ac_cv_search_initscr" 1>&6
4302 if test "$ac_cv_search_initscr" != "no"; then
4303 test "$ac_cv_search_initscr" = "none required" || LIBS
="$ac_cv_search_initscr $LIBS"
4306 echo "configure: warning: no curses library found" 1>&2
4311 # Check whether the wborder function is provided by the curses
4312 # library detected above. In certain implementations such as
4313 # the HP/UX Hcurses for instance, this function is provided by an
4314 # additional library. So if we did not find this function inside
4315 # the curses library, try some alternate libraries we know might
4318 echo $ac_n "checking for library containing wborder""... $ac_c" 1>&6
4319 echo "configure:4320: checking for library containing wborder" >&5
4320 if eval "test \"`echo '$''{'ac_cv_search_wborder'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4323 ac_func_search_save_LIBS
="$LIBS"
4324 ac_cv_search_wborder
="no"
4325 cat > conftest.
$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4328 /* Override any gcc2 internal prototype to avoid an error. */
4329 /* We use char because int might match the return type of a gcc2
4330 builtin and then its argument prototype would still apply. */
4337 if { (eval echo configure
:4338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4339 ac_cv_search_wborder
="none required"
4341 echo "configure: failed program was:" >&5
4342 cat conftest.
$ac_ext >&5
4345 test "$ac_cv_search_wborder" = "no" && for i
in cur_colr
; do
4346 LIBS
="-l$i $ac_func_search_save_LIBS"
4347 cat > conftest.
$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4350 /* Override any gcc2 internal prototype to avoid an error. */
4351 /* We use char because int might match the return type of a gcc2
4352 builtin and then its argument prototype would still apply. */
4359 if { (eval echo configure
:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4361 ac_cv_search_wborder
="-l$i"
4364 echo "configure: failed program was:" >&5
4365 cat conftest.
$ac_ext >&5
4369 LIBS
="$ac_func_search_save_LIBS"
4372 echo "$ac_t""$ac_cv_search_wborder" 1>&6
4373 if test "$ac_cv_search_wborder" != "no"; then
4374 test "$ac_cv_search_wborder" = "none required" || LIBS
="$ac_cv_search_wborder $LIBS"
4377 echo "configure: warning: wborder function not found, tui will be disabled" 1>&2
4380 # ------------------------- #
4381 # Checks for header files. #
4382 # ------------------------- #
4385 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4387 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4388 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4389 echo "configure:4390: checking for $ac_hdr that defines DIR" >&5
4390 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4393 cat > conftest.
$ac_ext <<EOF
4394 #line 4395 "configure"
4395 #include "confdefs.h"
4396 #include <sys/types.h>
4402 if { (eval echo configure
:4403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4404 eval "ac_cv_header_dirent_$ac_safe=yes"
4406 echo "configure: failed program was:" >&5
4407 cat conftest.
$ac_ext >&5
4409 eval "ac_cv_header_dirent_$ac_safe=no"
4413 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4414 echo "$ac_t""yes" 1>&6
4415 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4416 cat >> confdefs.h
<<EOF
4417 #define $ac_tr_hdr 1
4419 ac_header_dirent
=$ac_hdr; break
4421 echo "$ac_t""no" 1>&6
4424 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4425 if test $ac_header_dirent = dirent.h
; then
4426 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4427 echo "configure:4428: checking for opendir in -ldir" >&5
4428 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4432 ac_save_LIBS
="$LIBS"
4434 cat > conftest.
$ac_ext <<EOF
4435 #line 4436 "configure"
4436 #include "confdefs.h"
4437 /* Override any gcc2 internal prototype to avoid an error. */
4438 /* We use char because int might match the return type of a gcc2
4439 builtin and then its argument prototype would still apply. */
4446 if { (eval echo configure
:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4448 eval "ac_cv_lib_$ac_lib_var=yes"
4450 echo "configure: failed program was:" >&5
4451 cat conftest.
$ac_ext >&5
4453 eval "ac_cv_lib_$ac_lib_var=no"
4456 LIBS
="$ac_save_LIBS"
4459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4460 echo "$ac_t""yes" 1>&6
4463 echo "$ac_t""no" 1>&6
4467 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4468 echo "configure:4469: checking for opendir in -lx" >&5
4469 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4471 echo $ac_n "(cached) $ac_c" 1>&6
4473 ac_save_LIBS
="$LIBS"
4475 cat > conftest.
$ac_ext <<EOF
4476 #line 4477 "configure"
4477 #include "confdefs.h"
4478 /* Override any gcc2 internal prototype to avoid an error. */
4479 /* We use char because int might match the return type of a gcc2
4480 builtin and then its argument prototype would still apply. */
4487 if { (eval echo configure
:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4489 eval "ac_cv_lib_$ac_lib_var=yes"
4491 echo "configure: failed program was:" >&5
4492 cat conftest.
$ac_ext >&5
4494 eval "ac_cv_lib_$ac_lib_var=no"
4497 LIBS
="$ac_save_LIBS"
4500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4501 echo "$ac_t""yes" 1>&6
4504 echo "$ac_t""no" 1>&6
4509 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4510 echo "configure:4511: checking whether stat file-mode macros are broken" >&5
4511 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4512 echo $ac_n "(cached) $ac_c" 1>&6
4514 cat > conftest.
$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4517 #include <sys/types.h>
4518 #include <sys/stat.h>
4520 #if defined(S_ISBLK) && defined(S_IFDIR)
4521 # if S_ISBLK (S_IFDIR)
4526 #if defined(S_ISBLK) && defined(S_IFCHR)
4527 # if S_ISBLK (S_IFCHR)
4532 #if defined(S_ISLNK) && defined(S_IFREG)
4533 # if S_ISLNK (S_IFREG)
4538 #if defined(S_ISSOCK) && defined(S_IFREG)
4539 # if S_ISSOCK (S_IFREG)
4545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4546 egrep "You lose" >/dev
/null
2>&1; then
4548 ac_cv_header_stat_broken
=yes
4551 ac_cv_header_stat_broken
=no
4557 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4558 if test $ac_cv_header_stat_broken = yes; then
4559 cat >> confdefs.h
<<\EOF
4560 #define STAT_MACROS_BROKEN 1
4565 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4566 echo "configure:4567: checking for ANSI C header files" >&5
4567 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4570 cat > conftest.
$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4578 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4579 { (eval echo configure
:4580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4580 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4581 if test -z "$ac_err"; then
4583 ac_cv_header_stdc
=yes
4586 echo "configure: failed program was:" >&5
4587 cat conftest.
$ac_ext >&5
4589 ac_cv_header_stdc
=no
4593 if test $ac_cv_header_stdc = yes; then
4594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4595 cat > conftest.
$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4601 egrep "memchr" >/dev
/null
2>&1; then
4605 ac_cv_header_stdc
=no
4611 if test $ac_cv_header_stdc = yes; then
4612 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4613 cat > conftest.
$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4619 egrep "free" >/dev
/null
2>&1; then
4623 ac_cv_header_stdc
=no
4629 if test $ac_cv_header_stdc = yes; then
4630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4631 if test "$cross_compiling" = yes; then
4634 cat > conftest.
$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4638 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4639 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4640 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4641 int main () { int i; for (i = 0; i < 256; i++)
4642 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4646 if { (eval echo configure
:4647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4650 echo "configure: failed program was:" >&5
4651 cat conftest.
$ac_ext >&5
4653 ac_cv_header_stdc
=no
4661 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4662 if test $ac_cv_header_stdc = yes; then
4663 cat >> confdefs.h
<<\EOF
4664 #define STDC_HEADERS 1
4669 for ac_hdr
in link.h
4671 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4673 echo "configure:4674: checking for $ac_hdr" >&5
4674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4675 echo $ac_n "(cached) $ac_c" 1>&6
4677 cat > conftest.
$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4682 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4683 { (eval echo configure
:4684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4684 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4685 if test -z "$ac_err"; then
4687 eval "ac_cv_header_$ac_safe=yes"
4690 echo "configure: failed program was:" >&5
4691 cat conftest.
$ac_ext >&5
4693 eval "ac_cv_header_$ac_safe=no"
4697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4698 echo "$ac_t""yes" 1>&6
4699 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4700 cat >> confdefs.h
<<EOF
4701 #define $ac_tr_hdr 1
4705 echo "$ac_t""no" 1>&6
4709 for ac_hdr
in machine
/reg.h
4711 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4712 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4713 echo "configure:4714: checking for $ac_hdr" >&5
4714 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4715 echo $ac_n "(cached) $ac_c" 1>&6
4717 cat > conftest.
$ac_ext <<EOF
4718 #line 4719 "configure"
4719 #include "confdefs.h"
4722 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4723 { (eval echo configure
:4724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4724 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4725 if test -z "$ac_err"; then
4727 eval "ac_cv_header_$ac_safe=yes"
4730 echo "configure: failed program was:" >&5
4731 cat conftest.
$ac_ext >&5
4733 eval "ac_cv_header_$ac_safe=no"
4737 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4738 echo "$ac_t""yes" 1>&6
4739 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4740 cat >> confdefs.h
<<EOF
4741 #define $ac_tr_hdr 1
4745 echo "$ac_t""no" 1>&6
4749 for ac_hdr
in nlist.h
4751 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4753 echo "configure:4754: checking for $ac_hdr" >&5
4754 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4755 echo $ac_n "(cached) $ac_c" 1>&6
4757 cat > conftest.
$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4762 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4763 { (eval echo configure
:4764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4764 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4765 if test -z "$ac_err"; then
4767 eval "ac_cv_header_$ac_safe=yes"
4770 echo "configure: failed program was:" >&5
4771 cat conftest.
$ac_ext >&5
4773 eval "ac_cv_header_$ac_safe=no"
4777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4778 echo "$ac_t""yes" 1>&6
4779 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4780 cat >> confdefs.h
<<EOF
4781 #define $ac_tr_hdr 1
4785 echo "$ac_t""no" 1>&6
4789 for ac_hdr
in poll.h sys
/poll.h
4791 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4792 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4793 echo "configure:4794: checking for $ac_hdr" >&5
4794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4795 echo $ac_n "(cached) $ac_c" 1>&6
4797 cat > conftest.
$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4802 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4803 { (eval echo configure
:4804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4804 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4805 if test -z "$ac_err"; then
4807 eval "ac_cv_header_$ac_safe=yes"
4810 echo "configure: failed program was:" >&5
4811 cat conftest.
$ac_ext >&5
4813 eval "ac_cv_header_$ac_safe=no"
4817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4818 echo "$ac_t""yes" 1>&6
4819 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4820 cat >> confdefs.h
<<EOF
4821 #define $ac_tr_hdr 1
4825 echo "$ac_t""no" 1>&6
4829 for ac_hdr
in proc_service.h thread_db.h gnu
/libc-version.h
4831 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4833 echo "configure:4834: checking for $ac_hdr" >&5
4834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4835 echo $ac_n "(cached) $ac_c" 1>&6
4837 cat > conftest.
$ac_ext <<EOF
4838 #line 4839 "configure"
4839 #include "confdefs.h"
4842 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4843 { (eval echo configure
:4844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4844 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4845 if test -z "$ac_err"; then
4847 eval "ac_cv_header_$ac_safe=yes"
4850 echo "configure: failed program was:" >&5
4851 cat conftest.
$ac_ext >&5
4853 eval "ac_cv_header_$ac_safe=no"
4857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4858 echo "$ac_t""yes" 1>&6
4859 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4860 cat >> confdefs.h
<<EOF
4861 #define $ac_tr_hdr 1
4865 echo "$ac_t""no" 1>&6
4869 for ac_hdr
in stddef.h
4871 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4872 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4873 echo "configure:4874: checking for $ac_hdr" >&5
4874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4877 cat > conftest.
$ac_ext <<EOF
4878 #line 4879 "configure"
4879 #include "confdefs.h"
4882 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4883 { (eval echo configure
:4884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4884 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4885 if test -z "$ac_err"; then
4887 eval "ac_cv_header_$ac_safe=yes"
4890 echo "configure: failed program was:" >&5
4891 cat conftest.
$ac_ext >&5
4893 eval "ac_cv_header_$ac_safe=no"
4897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4898 echo "$ac_t""yes" 1>&6
4899 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4900 cat >> confdefs.h
<<EOF
4901 #define $ac_tr_hdr 1
4905 echo "$ac_t""no" 1>&6
4909 for ac_hdr
in stdlib.h
4911 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4912 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4913 echo "configure:4914: checking for $ac_hdr" >&5
4914 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4915 echo $ac_n "(cached) $ac_c" 1>&6
4917 cat > conftest.
$ac_ext <<EOF
4918 #line 4919 "configure"
4919 #include "confdefs.h"
4922 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4923 { (eval echo configure
:4924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4924 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4925 if test -z "$ac_err"; then
4927 eval "ac_cv_header_$ac_safe=yes"
4930 echo "configure: failed program was:" >&5
4931 cat conftest.
$ac_ext >&5
4933 eval "ac_cv_header_$ac_safe=no"
4937 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4938 echo "$ac_t""yes" 1>&6
4939 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4940 cat >> confdefs.h
<<EOF
4941 #define $ac_tr_hdr 1
4945 echo "$ac_t""no" 1>&6
4949 for ac_hdr
in stdint.h
4951 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4952 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4953 echo "configure:4954: checking for $ac_hdr" >&5
4954 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4957 cat > conftest.
$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4962 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4963 { (eval echo configure
:4964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4964 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4965 if test -z "$ac_err"; then
4967 eval "ac_cv_header_$ac_safe=yes"
4970 echo "configure: failed program was:" >&5
4971 cat conftest.
$ac_ext >&5
4973 eval "ac_cv_header_$ac_safe=no"
4977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4978 echo "$ac_t""yes" 1>&6
4979 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4980 cat >> confdefs.h
<<EOF
4981 #define $ac_tr_hdr 1
4985 echo "$ac_t""no" 1>&6
4989 for ac_hdr
in string.h memory.h
strings.h
4991 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4992 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4993 echo "configure:4994: checking for $ac_hdr" >&5
4994 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4995 echo $ac_n "(cached) $ac_c" 1>&6
4997 cat > conftest.
$ac_ext <<EOF
4998 #line 4999 "configure"
4999 #include "confdefs.h"
5002 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5003 { (eval echo configure
:5004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5004 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5005 if test -z "$ac_err"; then
5007 eval "ac_cv_header_$ac_safe=yes"
5010 echo "configure: failed program was:" >&5
5011 cat conftest.
$ac_ext >&5
5013 eval "ac_cv_header_$ac_safe=no"
5017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5018 echo "$ac_t""yes" 1>&6
5019 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5020 cat >> confdefs.h
<<EOF
5021 #define $ac_tr_hdr 1
5025 echo "$ac_t""no" 1>&6
5029 for ac_hdr
in sys
/fault.h
5031 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5033 echo "configure:5034: checking for $ac_hdr" >&5
5034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5035 echo $ac_n "(cached) $ac_c" 1>&6
5037 cat > conftest.
$ac_ext <<EOF
5038 #line 5039 "configure"
5039 #include "confdefs.h"
5042 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5043 { (eval echo configure
:5044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5044 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5045 if test -z "$ac_err"; then
5047 eval "ac_cv_header_$ac_safe=yes"
5050 echo "configure: failed program was:" >&5
5051 cat conftest.
$ac_ext >&5
5053 eval "ac_cv_header_$ac_safe=no"
5057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5058 echo "$ac_t""yes" 1>&6
5059 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5060 cat >> confdefs.h
<<EOF
5061 #define $ac_tr_hdr 1
5065 echo "$ac_t""no" 1>&6
5069 for ac_hdr
in sys
/file.h
5071 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5072 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5073 echo "configure:5074: checking for $ac_hdr" >&5
5074 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5075 echo $ac_n "(cached) $ac_c" 1>&6
5077 cat > conftest.
$ac_ext <<EOF
5078 #line 5079 "configure"
5079 #include "confdefs.h"
5082 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5083 { (eval echo configure
:5084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5084 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5085 if test -z "$ac_err"; then
5087 eval "ac_cv_header_$ac_safe=yes"
5090 echo "configure: failed program was:" >&5
5091 cat conftest.
$ac_ext >&5
5093 eval "ac_cv_header_$ac_safe=no"
5097 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5098 echo "$ac_t""yes" 1>&6
5099 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5100 cat >> confdefs.h
<<EOF
5101 #define $ac_tr_hdr 1
5105 echo "$ac_t""no" 1>&6
5109 for ac_hdr
in sys
/filio.h
5111 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5112 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5113 echo "configure:5114: checking for $ac_hdr" >&5
5114 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5115 echo $ac_n "(cached) $ac_c" 1>&6
5117 cat > conftest.
$ac_ext <<EOF
5118 #line 5119 "configure"
5119 #include "confdefs.h"
5122 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5123 { (eval echo configure
:5124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5124 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5125 if test -z "$ac_err"; then
5127 eval "ac_cv_header_$ac_safe=yes"
5130 echo "configure: failed program was:" >&5
5131 cat conftest.
$ac_ext >&5
5133 eval "ac_cv_header_$ac_safe=no"
5137 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5138 echo "$ac_t""yes" 1>&6
5139 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5140 cat >> confdefs.h
<<EOF
5141 #define $ac_tr_hdr 1
5145 echo "$ac_t""no" 1>&6
5149 for ac_hdr
in sys
/ioctl.h
5151 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5153 echo "configure:5154: checking for $ac_hdr" >&5
5154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5155 echo $ac_n "(cached) $ac_c" 1>&6
5157 cat > conftest.
$ac_ext <<EOF
5158 #line 5159 "configure"
5159 #include "confdefs.h"
5162 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5163 { (eval echo configure
:5164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5164 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5165 if test -z "$ac_err"; then
5167 eval "ac_cv_header_$ac_safe=yes"
5170 echo "configure: failed program was:" >&5
5171 cat conftest.
$ac_ext >&5
5173 eval "ac_cv_header_$ac_safe=no"
5177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5178 echo "$ac_t""yes" 1>&6
5179 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5180 cat >> confdefs.h
<<EOF
5181 #define $ac_tr_hdr 1
5185 echo "$ac_t""no" 1>&6
5189 for ac_hdr
in sys
/param.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
5229 for ac_hdr
in sys
/proc.h
5231 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5232 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5233 echo "configure:5234: checking for $ac_hdr" >&5
5234 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6
5237 cat > conftest.
$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5242 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5243 { (eval echo configure
:5244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5244 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5245 if test -z "$ac_err"; then
5247 eval "ac_cv_header_$ac_safe=yes"
5250 echo "configure: failed program was:" >&5
5251 cat conftest.
$ac_ext >&5
5253 eval "ac_cv_header_$ac_safe=no"
5257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5258 echo "$ac_t""yes" 1>&6
5259 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5260 cat >> confdefs.h
<<EOF
5261 #define $ac_tr_hdr 1
5265 echo "$ac_t""no" 1>&6
5269 for ac_hdr
in sys
/procfs.h
5271 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5272 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5273 echo "configure:5274: checking for $ac_hdr" >&5
5274 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5277 cat > conftest.
$ac_ext <<EOF
5278 #line 5279 "configure"
5279 #include "confdefs.h"
5282 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5283 { (eval echo configure
:5284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5284 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5285 if test -z "$ac_err"; then
5287 eval "ac_cv_header_$ac_safe=yes"
5290 echo "configure: failed program was:" >&5
5291 cat conftest.
$ac_ext >&5
5293 eval "ac_cv_header_$ac_safe=no"
5297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5298 echo "$ac_t""yes" 1>&6
5299 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5300 cat >> confdefs.h
<<EOF
5301 #define $ac_tr_hdr 1
5305 echo "$ac_t""no" 1>&6
5309 for ac_hdr
in sys
/ptrace.h ptrace.h
5311 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5313 echo "configure:5314: checking for $ac_hdr" >&5
5314 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5315 echo $ac_n "(cached) $ac_c" 1>&6
5317 cat > conftest.
$ac_ext <<EOF
5318 #line 5319 "configure"
5319 #include "confdefs.h"
5322 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5323 { (eval echo configure
:5324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5324 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5325 if test -z "$ac_err"; then
5327 eval "ac_cv_header_$ac_safe=yes"
5330 echo "configure: failed program was:" >&5
5331 cat conftest.
$ac_ext >&5
5333 eval "ac_cv_header_$ac_safe=no"
5337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5338 echo "$ac_t""yes" 1>&6
5339 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5340 cat >> confdefs.h
<<EOF
5341 #define $ac_tr_hdr 1
5345 echo "$ac_t""no" 1>&6
5349 for ac_hdr
in sys
/reg.h sys
/debugreg.h
5351 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5352 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5353 echo "configure:5354: checking for $ac_hdr" >&5
5354 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5355 echo $ac_n "(cached) $ac_c" 1>&6
5357 cat > conftest.
$ac_ext <<EOF
5358 #line 5359 "configure"
5359 #include "confdefs.h"
5362 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5363 { (eval echo configure
:5364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5364 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5365 if test -z "$ac_err"; then
5367 eval "ac_cv_header_$ac_safe=yes"
5370 echo "configure: failed program was:" >&5
5371 cat conftest.
$ac_ext >&5
5373 eval "ac_cv_header_$ac_safe=no"
5377 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5378 echo "$ac_t""yes" 1>&6
5379 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5380 cat >> confdefs.h
<<EOF
5381 #define $ac_tr_hdr 1
5385 echo "$ac_t""no" 1>&6
5389 for ac_hdr
in sys
/select.h
5391 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5393 echo "configure:5394: checking for $ac_hdr" >&5
5394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5395 echo $ac_n "(cached) $ac_c" 1>&6
5397 cat > conftest.
$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5402 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5403 { (eval echo configure
:5404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5404 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5405 if test -z "$ac_err"; then
5407 eval "ac_cv_header_$ac_safe=yes"
5410 echo "configure: failed program was:" >&5
5411 cat conftest.
$ac_ext >&5
5413 eval "ac_cv_header_$ac_safe=no"
5417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5418 echo "$ac_t""yes" 1>&6
5419 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5420 cat >> confdefs.h
<<EOF
5421 #define $ac_tr_hdr 1
5425 echo "$ac_t""no" 1>&6
5429 for ac_hdr
in sys
/syscall.h
5431 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5432 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5433 echo "configure:5434: checking for $ac_hdr" >&5
5434 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5435 echo $ac_n "(cached) $ac_c" 1>&6
5437 cat > conftest.
$ac_ext <<EOF
5438 #line 5439 "configure"
5439 #include "confdefs.h"
5442 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5443 { (eval echo configure
:5444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5444 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5445 if test -z "$ac_err"; then
5447 eval "ac_cv_header_$ac_safe=yes"
5450 echo "configure: failed program was:" >&5
5451 cat conftest.
$ac_ext >&5
5453 eval "ac_cv_header_$ac_safe=no"
5457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5458 echo "$ac_t""yes" 1>&6
5459 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5460 cat >> confdefs.h
<<EOF
5461 #define $ac_tr_hdr 1
5465 echo "$ac_t""no" 1>&6
5469 for ac_hdr
in sys
/user.h
5471 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5473 echo "configure:5474: checking for $ac_hdr" >&5
5474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5475 echo $ac_n "(cached) $ac_c" 1>&6
5477 cat > conftest.
$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5482 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5483 { (eval echo configure
:5484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5484 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5485 if test -z "$ac_err"; then
5487 eval "ac_cv_header_$ac_safe=yes"
5490 echo "configure: failed program was:" >&5
5491 cat conftest.
$ac_ext >&5
5493 eval "ac_cv_header_$ac_safe=no"
5497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5498 echo "$ac_t""yes" 1>&6
5499 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5500 cat >> confdefs.h
<<EOF
5501 #define $ac_tr_hdr 1
5505 echo "$ac_t""no" 1>&6
5509 for ac_hdr
in sys
/wait.h
wait.h
5511 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5512 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5513 echo "configure:5514: checking for $ac_hdr" >&5
5514 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5515 echo $ac_n "(cached) $ac_c" 1>&6
5517 cat > conftest.
$ac_ext <<EOF
5518 #line 5519 "configure"
5519 #include "confdefs.h"
5522 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5523 { (eval echo configure
:5524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5524 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5525 if test -z "$ac_err"; then
5527 eval "ac_cv_header_$ac_safe=yes"
5530 echo "configure: failed program was:" >&5
5531 cat conftest.
$ac_ext >&5
5533 eval "ac_cv_header_$ac_safe=no"
5537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5538 echo "$ac_t""yes" 1>&6
5539 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5540 cat >> confdefs.h
<<EOF
5541 #define $ac_tr_hdr 1
5545 echo "$ac_t""no" 1>&6
5549 for ac_hdr
in termios.h termio.h sgtty.h
5551 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5553 echo "configure:5554: checking for $ac_hdr" >&5
5554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5555 echo $ac_n "(cached) $ac_c" 1>&6
5557 cat > conftest.
$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5562 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5563 { (eval echo configure
:5564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5564 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5565 if test -z "$ac_err"; then
5567 eval "ac_cv_header_$ac_safe=yes"
5570 echo "configure: failed program was:" >&5
5571 cat conftest.
$ac_ext >&5
5573 eval "ac_cv_header_$ac_safe=no"
5577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5578 echo "$ac_t""yes" 1>&6
5579 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5580 cat >> confdefs.h
<<EOF
5581 #define $ac_tr_hdr 1
5585 echo "$ac_t""no" 1>&6
5589 for ac_hdr
in unistd.h
5591 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5592 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5593 echo "configure:5594: checking for $ac_hdr" >&5
5594 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5595 echo $ac_n "(cached) $ac_c" 1>&6
5597 cat > conftest.
$ac_ext <<EOF
5598 #line 5599 "configure"
5599 #include "confdefs.h"
5602 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5603 { (eval echo configure
:5604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5604 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5605 if test -z "$ac_err"; then
5607 eval "ac_cv_header_$ac_safe=yes"
5610 echo "configure: failed program was:" >&5
5611 cat conftest.
$ac_ext >&5
5613 eval "ac_cv_header_$ac_safe=no"
5617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5618 echo "$ac_t""yes" 1>&6
5619 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5620 cat >> confdefs.h
<<EOF
5621 #define $ac_tr_hdr 1
5625 echo "$ac_t""no" 1>&6
5630 # On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
5631 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
5632 # think that we don't have <curses.h> if we're using GCC.
5635 if test "$GCC" = yes; then
5636 cat >> confdefs.h
<<\EOF
5637 #define _MSE_INT_H 1
5642 for ac_hdr
in curses.h ncurses.h term.h
5644 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5645 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5646 echo "configure:5647: checking for $ac_hdr" >&5
5647 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5648 echo $ac_n "(cached) $ac_c" 1>&6
5650 cat > conftest.
$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5655 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5656 { (eval echo configure
:5657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5657 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5658 if test -z "$ac_err"; then
5660 eval "ac_cv_header_$ac_safe=yes"
5663 echo "configure: failed program was:" >&5
5664 cat conftest.
$ac_ext >&5
5666 eval "ac_cv_header_$ac_safe=no"
5670 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5671 echo "$ac_t""yes" 1>&6
5672 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5673 cat >> confdefs.h
<<EOF
5674 #define $ac_tr_hdr 1
5678 echo "$ac_t""no" 1>&6
5683 # FIXME: kettenis/20030102: In most cases we include these
5684 # unconditionally, so what's the point in checking these?
5685 for ac_hdr
in ctype.h
time.h
5687 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5689 echo "configure:5690: checking for $ac_hdr" >&5
5690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5691 echo $ac_n "(cached) $ac_c" 1>&6
5693 cat > conftest.
$ac_ext <<EOF
5694 #line 5695 "configure"
5695 #include "confdefs.h"
5698 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5699 { (eval echo configure
:5700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5700 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5701 if test -z "$ac_err"; then
5703 eval "ac_cv_header_$ac_safe=yes"
5706 echo "configure: failed program was:" >&5
5707 cat conftest.
$ac_ext >&5
5709 eval "ac_cv_header_$ac_safe=no"
5713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5714 echo "$ac_t""yes" 1>&6
5715 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5716 cat >> confdefs.h
<<EOF
5717 #define $ac_tr_hdr 1
5721 echo "$ac_t""no" 1>&6
5726 echo $ac_n "checking for member st_blocks in struct stat""... $ac_c" 1>&6
5727 echo "configure:5728: checking for member st_blocks in struct stat" >&5
5728 if eval "test \"`echo '$''{'gdb_cv_have_struct_stat_with_st_blocks_member'+set}'`\" = set"; then
5729 echo $ac_n "(cached) $ac_c" 1>&6
5731 cat > conftest.
$ac_ext <<EOF
5732 #line 5733 "configure"
5733 #include "confdefs.h"
5734 #include <sys/types.h>
5735 #include <sys/stat.h>
5737 struct stat st; (void) st.st_blocks;
5740 if { (eval echo configure
:5741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5742 gdb_cv_have_struct_stat_with_st_blocks_member
=yes
5744 echo "configure: failed program was:" >&5
5745 cat conftest.
$ac_ext >&5
5747 gdb_cv_have_struct_stat_with_st_blocks_member
=no
5752 echo "$ac_t""$gdb_cv_have_struct_stat_with_st_blocks_member" 1>&6
5753 if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then
5754 cat >> confdefs.h
<<\EOF
5755 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5759 # ------------------------- #
5760 # Checks for declarations. #
5761 # ------------------------- #
5763 for ac_func
in getopt
5765 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5766 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
5767 echo "configure:5768: checking whether $ac_func is declared" >&5
5768 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
5769 echo $ac_n "(cached) $ac_c" 1>&6
5771 cat > conftest.
$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5775 #define $ac_tr_decl 1
5780 char *(*pfn) = (char *(*)) $ac_func ;
5784 if { (eval echo configure
:5785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5786 eval "gcc_cv_have_decl_$ac_func=yes"
5788 echo "configure: failed program was:" >&5
5789 cat conftest.
$ac_ext >&5
5791 eval "gcc_cv_have_decl_$ac_func=no"
5796 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
5797 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
5798 #define $ac_tr_decl 1
5802 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
5803 #define $ac_tr_decl 0
5809 if test x
= y
; then
5810 cat >> confdefs.h
<<\EOF
5811 #define HAVE_DECL_GETOPT 1
5816 # ------------------ #
5817 # Checks for types. #
5818 # ------------------ #
5820 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5821 echo "configure:5822: checking return type of signal handlers" >&5
5822 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5823 echo $ac_n "(cached) $ac_c" 1>&6
5825 cat > conftest.
$ac_ext <<EOF
5826 #line 5827 "configure"
5827 #include "confdefs.h"
5828 #include <sys/types.h>
5834 extern "C" void (*signal (int, void (*)(int)))(int);
5836 void (*signal ()) ();
5843 if { (eval echo configure
:5844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5845 ac_cv_type_signal
=void
5847 echo "configure: failed program was:" >&5
5848 cat conftest.
$ac_ext >&5
5850 ac_cv_type_signal
=int
5855 echo "$ac_t""$ac_cv_type_signal" 1>&6
5856 cat >> confdefs.h
<<EOF
5857 #define RETSIGTYPE $ac_cv_type_signal
5862 # ------------------------------------- #
5863 # Checks for compiler characteristics. #
5864 # ------------------------------------- #
5866 echo $ac_n "checking for working const""... $ac_c" 1>&6
5867 echo "configure:5868: checking for working const" >&5
5868 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5869 echo $ac_n "(cached) $ac_c" 1>&6
5871 cat > conftest.
$ac_ext <<EOF
5872 #line 5873 "configure"
5873 #include "confdefs.h"
5877 /* Ultrix mips cc rejects this. */
5878 typedef int charset[2]; const charset x;
5879 /* SunOS 4.1.1 cc rejects this. */
5880 char const *const *ccp;
5882 /* NEC SVR4.0.2 mips cc rejects this. */
5883 struct point {int x, y;};
5884 static struct point const zero = {0,0};
5885 /* AIX XL C 1.02.0.0 rejects this.
5886 It does not let you subtract one const X* pointer from another in an arm
5887 of an if-expression whose if-part is not a constant expression */
5888 const char *g = "string";
5889 ccp = &g + (g ? g-g : 0);
5890 /* HPUX 7.0 cc rejects these. */
5893 ccp = (char const *const *) p;
5894 { /* SCO 3.2v4 cc rejects this. */
5896 char const *s = 0 ? (char *) 0 : (char const *) 0;
5900 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5902 const int *foo = &x[0];
5905 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5906 typedef const int *iptr;
5910 { /* AIX XL C 1.02.0.0 rejects this saying
5911 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5912 struct s { int j; const int *ap[3]; };
5913 struct s *b; b->j = 5;
5915 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5921 if { (eval echo configure
:5922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5925 echo "configure: failed program was:" >&5
5926 cat conftest.
$ac_ext >&5
5933 echo "$ac_t""$ac_cv_c_const" 1>&6
5934 if test $ac_cv_c_const = no
; then
5935 cat >> confdefs.h
<<\EOF
5941 echo $ac_n "checking for inline""... $ac_c" 1>&6
5942 echo "configure:5943: checking for inline" >&5
5943 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5944 echo $ac_n "(cached) $ac_c" 1>&6
5947 for ac_kw
in inline __inline__ __inline
; do
5948 cat > conftest.
$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5956 if { (eval echo configure
:5957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5958 ac_cv_c_inline
=$ac_kw; break
5960 echo "configure: failed program was:" >&5
5961 cat conftest.
$ac_ext >&5
5968 echo "$ac_t""$ac_cv_c_inline" 1>&6
5969 case "$ac_cv_c_inline" in
5971 no
) cat >> confdefs.h
<<\EOF
5975 *) cat >> confdefs.h
<<EOF
5976 #define inline $ac_cv_c_inline
5982 # ------------------------------ #
5983 # Checks for library functions. #
5984 # ------------------------------ #
5986 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5987 # for constant arguments. Useless!
5988 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5989 echo "configure:5990: checking for working alloca.h" >&5
5990 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5991 echo $ac_n "(cached) $ac_c" 1>&6
5993 cat > conftest.
$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5998 char *p = alloca(2 * sizeof(int));
6001 if { (eval echo configure
:6002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6003 ac_cv_header_alloca_h
=yes
6005 echo "configure: failed program was:" >&5
6006 cat conftest.
$ac_ext >&5
6008 ac_cv_header_alloca_h
=no
6013 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6014 if test $ac_cv_header_alloca_h = yes; then
6015 cat >> confdefs.h
<<\EOF
6016 #define HAVE_ALLOCA_H 1
6021 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6022 echo "configure:6023: checking for alloca" >&5
6023 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6024 echo $ac_n "(cached) $ac_c" 1>&6
6026 cat > conftest.
$ac_ext <<EOF
6027 #line 6028 "configure"
6028 #include "confdefs.h"
6031 # define alloca __builtin_alloca
6034 # include <malloc.h>
6035 # define alloca _alloca
6038 # include <alloca.h>
6043 # ifndef alloca /* predefined by HP cc +Olibcalls */
6052 char *p = (char *) alloca(1);
6055 if { (eval echo configure
:6056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6057 ac_cv_func_alloca_works
=yes
6059 echo "configure: failed program was:" >&5
6060 cat conftest.
$ac_ext >&5
6062 ac_cv_func_alloca_works
=no
6067 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6068 if test $ac_cv_func_alloca_works = yes; then
6069 cat >> confdefs.h
<<\EOF
6070 #define HAVE_ALLOCA 1
6075 if test $ac_cv_func_alloca_works = no
; then
6076 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6077 # that cause trouble. Some versions do not even contain alloca or
6078 # contain a buggy version. If you still want to use their alloca,
6079 # use ar to extract alloca.o from them instead of compiling alloca.c.
6080 ALLOCA
=alloca.
${ac_objext}
6081 cat >> confdefs.h
<<\EOF
6086 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6087 echo "configure:6088: checking whether alloca needs Cray hooks" >&5
6088 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6089 echo $ac_n "(cached) $ac_c" 1>&6
6091 cat > conftest.
$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6094 #if defined(CRAY) && ! defined(CRAY2)
6101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6102 egrep "webecray" >/dev
/null
2>&1; then
6113 echo "$ac_t""$ac_cv_os_cray" 1>&6
6114 if test $ac_cv_os_cray = yes; then
6115 for ac_func
in _getb67 GETB67 getb67
; do
6116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6117 echo "configure:6118: checking for $ac_func" >&5
6118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6119 echo $ac_n "(cached) $ac_c" 1>&6
6121 cat > conftest.
$ac_ext <<EOF
6122 #line 6123 "configure"
6123 #include "confdefs.h"
6124 /* System header to define __stub macros and hopefully few prototypes,
6125 which can conflict with char $ac_func(); below. */
6127 /* Override any gcc2 internal prototype to avoid an error. */
6128 /* We use char because int might match the return type of a gcc2
6129 builtin and then its argument prototype would still apply. */
6134 /* The GNU C library defines this for functions which it implements
6135 to always fail with ENOSYS. Some functions are actually named
6136 something starting with __ and the normal name is an alias. */
6137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6145 if { (eval echo configure
:6146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6147 eval "ac_cv_func_$ac_func=yes"
6149 echo "configure: failed program was:" >&5
6150 cat conftest.
$ac_ext >&5
6152 eval "ac_cv_func_$ac_func=no"
6157 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6158 echo "$ac_t""yes" 1>&6
6159 cat >> confdefs.h
<<EOF
6160 #define CRAY_STACKSEG_END $ac_func
6165 echo "$ac_t""no" 1>&6
6171 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6172 echo "configure:6173: checking stack direction for C alloca" >&5
6173 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6174 echo $ac_n "(cached) $ac_c" 1>&6
6176 if test "$cross_compiling" = yes; then
6177 ac_cv_c_stack_direction
=0
6179 cat > conftest.
$ac_ext <<EOF
6180 #line 6181 "configure"
6181 #include "confdefs.h"
6182 find_stack_direction ()
6184 static char *addr = 0;
6189 return find_stack_direction ();
6192 return (&dummy > addr) ? 1 : -1;
6196 exit (find_stack_direction() < 0);
6199 if { (eval echo configure
:6200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6201 ac_cv_c_stack_direction
=1
6203 echo "configure: failed program was:" >&5
6204 cat conftest.
$ac_ext >&5
6206 ac_cv_c_stack_direction
=-1
6213 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6214 cat >> confdefs.h
<<EOF
6215 #define STACK_DIRECTION $ac_cv_c_stack_direction
6220 for ac_hdr
in unistd.h
6222 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6223 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6224 echo "configure:6225: checking for $ac_hdr" >&5
6225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6226 echo $ac_n "(cached) $ac_c" 1>&6
6228 cat > conftest.
$ac_ext <<EOF
6229 #line 6230 "configure"
6230 #include "confdefs.h"
6233 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6234 { (eval echo configure
:6235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6235 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6236 if test -z "$ac_err"; then
6238 eval "ac_cv_header_$ac_safe=yes"
6241 echo "configure: failed program was:" >&5
6242 cat conftest.
$ac_ext >&5
6244 eval "ac_cv_header_$ac_safe=no"
6248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6249 echo "$ac_t""yes" 1>&6
6250 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6251 cat >> confdefs.h
<<EOF
6252 #define $ac_tr_hdr 1
6256 echo "$ac_t""no" 1>&6
6260 for ac_func
in getpagesize
6262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6263 echo "configure:6264: checking for $ac_func" >&5
6264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6265 echo $ac_n "(cached) $ac_c" 1>&6
6267 cat > conftest.
$ac_ext <<EOF
6268 #line 6269 "configure"
6269 #include "confdefs.h"
6270 /* System header to define __stub macros and hopefully few prototypes,
6271 which can conflict with char $ac_func(); below. */
6273 /* Override any gcc2 internal prototype to avoid an error. */
6274 /* We use char because int might match the return type of a gcc2
6275 builtin and then its argument prototype would still apply. */
6280 /* The GNU C library defines this for functions which it implements
6281 to always fail with ENOSYS. Some functions are actually named
6282 something starting with __ and the normal name is an alias. */
6283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6291 if { (eval echo configure
:6292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6293 eval "ac_cv_func_$ac_func=yes"
6295 echo "configure: failed program was:" >&5
6296 cat conftest.
$ac_ext >&5
6298 eval "ac_cv_func_$ac_func=no"
6303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6304 echo "$ac_t""yes" 1>&6
6305 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6306 cat >> confdefs.h
<<EOF
6307 #define $ac_tr_func 1
6311 echo "$ac_t""no" 1>&6
6315 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6316 echo "configure:6317: checking for working mmap" >&5
6317 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6318 echo $ac_n "(cached) $ac_c" 1>&6
6320 if test "$cross_compiling" = yes; then
6321 ac_cv_func_mmap_fixed_mapped
=no
6323 cat > conftest.
$ac_ext <<EOF
6324 #line 6325 "configure"
6325 #include "confdefs.h"
6327 /* Thanks to Mike Haertel and Jim Avera for this test.
6328 Here is a matrix of mmap possibilities:
6329 mmap private not fixed
6330 mmap private fixed at somewhere currently unmapped
6331 mmap private fixed at somewhere already mapped
6332 mmap shared not fixed
6333 mmap shared fixed at somewhere currently unmapped
6334 mmap shared fixed at somewhere already mapped
6335 For private mappings, we should verify that changes cannot be read()
6336 back from the file, nor mmap's back from the file at a different
6337 address. (There have been systems where private was not correctly
6338 implemented like the infamous i386 svr4.0, and systems where the
6339 VM page cache was not coherent with the filesystem buffer cache
6340 like early versions of FreeBSD and possibly contemporary NetBSD.)
6341 For shared mappings, we should conversely verify that changes get
6342 propogated back to all the places they're supposed to be.
6344 Grep wants private fixed already mapped.
6345 The main things grep needs to know about mmap are:
6346 * does it exist and is it safe to write into the mmap'd area
6347 * how to use it (BSD variants) */
6348 #include <sys/types.h>
6350 #include <sys/mman.h>
6352 /* This mess was copied from the GNU getpagesize.h. */
6353 #ifndef HAVE_GETPAGESIZE
6354 # ifdef HAVE_UNISTD_H
6355 # include <unistd.h>
6358 /* Assume that all systems that can run configure have sys/param.h. */
6359 # ifndef HAVE_SYS_PARAM_H
6360 # define HAVE_SYS_PARAM_H 1
6363 # ifdef _SC_PAGESIZE
6364 # define getpagesize() sysconf(_SC_PAGESIZE)
6365 # else /* no _SC_PAGESIZE */
6366 # ifdef HAVE_SYS_PARAM_H
6367 # include <sys/param.h>
6368 # ifdef EXEC_PAGESIZE
6369 # define getpagesize() EXEC_PAGESIZE
6370 # else /* no EXEC_PAGESIZE */
6372 # define getpagesize() NBPG * CLSIZE
6375 # endif /* no CLSIZE */
6376 # else /* no NBPG */
6378 # define getpagesize() NBPC
6379 # else /* no NBPC */
6381 # define getpagesize() PAGESIZE
6382 # endif /* PAGESIZE */
6383 # endif /* no NBPC */
6384 # endif /* no NBPG */
6385 # endif /* no EXEC_PAGESIZE */
6386 # else /* no HAVE_SYS_PARAM_H */
6387 # define getpagesize() 8192 /* punt totally */
6388 # endif /* no HAVE_SYS_PARAM_H */
6389 # endif /* no _SC_PAGESIZE */
6391 #endif /* no HAVE_GETPAGESIZE */
6394 extern "C" { void *malloc(unsigned); }
6402 char *data, *data2, *data3;
6406 pagesize = getpagesize();
6409 * First, make a file with some known garbage in it.
6411 data = malloc(pagesize);
6414 for (i = 0; i < pagesize; ++i)
6415 *(data + i) = rand();
6417 fd = creat("conftestmmap", 0600);
6420 if (write(fd, data, pagesize) != pagesize)
6425 * Next, try to mmap the file at a fixed address which
6426 * already has something else allocated at it. If we can,
6427 * also make sure that we see the same garbage.
6429 fd = open("conftestmmap", O_RDWR);
6432 data2 = malloc(2 * pagesize);
6435 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6436 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6437 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6439 for (i = 0; i < pagesize; ++i)
6440 if (*(data + i) != *(data2 + i))
6444 * Finally, make sure that changes to the mapped area
6445 * do not percolate back to the file as seen by read().
6446 * (This is a bug on some variants of i386 svr4.0.)
6448 for (i = 0; i < pagesize; ++i)
6449 *(data2 + i) = *(data2 + i) + 1;
6450 data3 = malloc(pagesize);
6453 if (read(fd, data3, pagesize) != pagesize)
6455 for (i = 0; i < pagesize; ++i)
6456 if (*(data + i) != *(data3 + i))
6459 unlink("conftestmmap");
6464 if { (eval echo configure
:6465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6466 ac_cv_func_mmap_fixed_mapped
=yes
6468 echo "configure: failed program was:" >&5
6469 cat conftest.
$ac_ext >&5
6471 ac_cv_func_mmap_fixed_mapped
=no
6478 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6479 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6480 cat >> confdefs.h
<<\EOF
6486 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6487 echo "configure:6488: checking for pid_t" >&5
6488 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6489 echo $ac_n "(cached) $ac_c" 1>&6
6491 cat > conftest.
$ac_ext <<EOF
6492 #line 6493 "configure"
6493 #include "confdefs.h"
6494 #include <sys/types.h>
6500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6501 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6503 ac_cv_type_pid_t
=yes
6511 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6512 if test $ac_cv_type_pid_t = no
; then
6513 cat >> confdefs.h
<<\EOF
6519 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
6520 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
6521 echo "configure:6522: checking for vfork.h" >&5
6522 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6523 echo $ac_n "(cached) $ac_c" 1>&6
6525 cat > conftest.
$ac_ext <<EOF
6526 #line 6527 "configure"
6527 #include "confdefs.h"
6530 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6531 { (eval echo configure
:6532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6532 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6533 if test -z "$ac_err"; then
6535 eval "ac_cv_header_$ac_safe=yes"
6538 echo "configure: failed program was:" >&5
6539 cat conftest.
$ac_ext >&5
6541 eval "ac_cv_header_$ac_safe=no"
6545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6546 echo "$ac_t""yes" 1>&6
6547 cat >> confdefs.h
<<\EOF
6548 #define HAVE_VFORK_H 1
6552 echo "$ac_t""no" 1>&6
6555 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
6556 echo "configure:6557: checking for working vfork" >&5
6557 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
6558 echo $ac_n "(cached) $ac_c" 1>&6
6560 if test "$cross_compiling" = yes; then
6561 echo $ac_n "checking for vfork""... $ac_c" 1>&6
6562 echo "configure:6563: checking for vfork" >&5
6563 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
6564 echo $ac_n "(cached) $ac_c" 1>&6
6566 cat > conftest.
$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6569 /* System header to define __stub macros and hopefully few prototypes,
6570 which can conflict with char vfork(); below. */
6572 /* Override any gcc2 internal prototype to avoid an error. */
6573 /* We use char because int might match the return type of a gcc2
6574 builtin and then its argument prototype would still apply. */
6579 /* The GNU C library defines this for functions which it implements
6580 to always fail with ENOSYS. Some functions are actually named
6581 something starting with __ and the normal name is an alias. */
6582 #if defined (__stub_vfork) || defined (__stub___vfork)
6590 if { (eval echo configure
:6591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6592 eval "ac_cv_func_vfork=yes"
6594 echo "configure: failed program was:" >&5
6595 cat conftest.
$ac_ext >&5
6597 eval "ac_cv_func_vfork=no"
6602 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
6603 echo "$ac_t""yes" 1>&6
6606 echo "$ac_t""no" 1>&6
6609 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6611 cat > conftest.
$ac_ext <<EOF
6612 #line 6613 "configure"
6613 #include "confdefs.h"
6614 /* Thanks to Paul Eggert for this test. */
6616 #include <sys/types.h>
6617 #include <sys/stat.h>
6618 #ifdef HAVE_UNISTD_H
6624 /* On some sparc systems, changes by the child to local and incoming
6625 argument registers are propagated back to the parent.
6626 The compiler is told about this with #include <vfork.h>,
6627 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
6628 Test for this by using a static variable whose address
6629 is put into a register that is clobbered by the vfork. */
6632 sparc_address_test (int arg)
6634 sparc_address_test (arg) int arg;
6652 pid_t parent = getpid ();
6655 sparc_address_test ();
6660 /* Here is another test for sparc vfork register problems.
6661 This test uses lots of local variables, at least
6662 as many local variables as main has allocated so far
6663 including compiler temporaries. 4 locals are enough for
6664 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
6665 A buggy compiler should reuse the register of parent
6666 for one of the local variables, since it will think that
6667 parent can't possibly be used any more in this routine.
6668 Assigning to the local variable will thus munge parent
6669 in the parent process. */
6671 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6672 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6673 /* Convince the compiler that p..p7 are live; otherwise, it might
6674 use the same hardware register for all 8 local variables. */
6675 if (p != p1 || p != p2 || p != p3 || p != p4
6676 || p != p5 || p != p6 || p != p7)
6679 /* On some systems (e.g. IRIX 3.3),
6680 vfork doesn't separate parent from child file descriptors.
6681 If the child closes a descriptor before it execs or exits,
6682 this munges the parent's descriptor as well.
6683 Test for this by closing stdout in the child. */
6684 _exit(close(fileno(stdout)) != 0);
6689 while (wait(&status) != child)
6692 /* Was there some problem with vforking? */
6695 /* Did the child fail? (This shouldn't happen.) */
6698 /* Did the vfork/compiler bug occur? */
6699 || parent != getpid()
6701 /* Did the file descriptor bug occur? */
6702 || fstat(fileno(stdout), &st) != 0
6707 if { (eval echo configure
:6708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6709 ac_cv_func_vfork_works
=yes
6711 echo "configure: failed program was:" >&5
6712 cat conftest.
$ac_ext >&5
6714 ac_cv_func_vfork_works
=no
6721 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6722 if test $ac_cv_func_vfork_works = no
; then
6723 cat >> confdefs.h
<<\EOF
6729 for ac_func
in canonicalize_file_name realpath
6731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6732 echo "configure:6733: checking for $ac_func" >&5
6733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6734 echo $ac_n "(cached) $ac_c" 1>&6
6736 cat > conftest.
$ac_ext <<EOF
6737 #line 6738 "configure"
6738 #include "confdefs.h"
6739 /* System header to define __stub macros and hopefully few prototypes,
6740 which can conflict with char $ac_func(); below. */
6742 /* Override any gcc2 internal prototype to avoid an error. */
6743 /* We use char because int might match the return type of a gcc2
6744 builtin and then its argument prototype would still apply. */
6749 /* The GNU C library defines this for functions which it implements
6750 to always fail with ENOSYS. Some functions are actually named
6751 something starting with __ and the normal name is an alias. */
6752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6760 if { (eval echo configure
:6761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6762 eval "ac_cv_func_$ac_func=yes"
6764 echo "configure: failed program was:" >&5
6765 cat conftest.
$ac_ext >&5
6767 eval "ac_cv_func_$ac_func=no"
6772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6773 echo "$ac_t""yes" 1>&6
6774 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6775 cat >> confdefs.h
<<EOF
6776 #define $ac_tr_func 1
6780 echo "$ac_t""no" 1>&6
6786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6787 echo "configure:6788: checking for $ac_func" >&5
6788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6789 echo $ac_n "(cached) $ac_c" 1>&6
6791 cat > conftest.
$ac_ext <<EOF
6792 #line 6793 "configure"
6793 #include "confdefs.h"
6794 /* System header to define __stub macros and hopefully few prototypes,
6795 which can conflict with char $ac_func(); below. */
6797 /* Override any gcc2 internal prototype to avoid an error. */
6798 /* We use char because int might match the return type of a gcc2
6799 builtin and then its argument prototype would still apply. */
6804 /* The GNU C library defines this for functions which it implements
6805 to always fail with ENOSYS. Some functions are actually named
6806 something starting with __ and the normal name is an alias. */
6807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6815 if { (eval echo configure
:6816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6817 eval "ac_cv_func_$ac_func=yes"
6819 echo "configure: failed program was:" >&5
6820 cat conftest.
$ac_ext >&5
6822 eval "ac_cv_func_$ac_func=no"
6827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6828 echo "$ac_t""yes" 1>&6
6829 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6830 cat >> confdefs.h
<<EOF
6831 #define $ac_tr_func 1
6835 echo "$ac_t""no" 1>&6
6839 for ac_func
in pread64
6841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6842 echo "configure:6843: checking for $ac_func" >&5
6843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6844 echo $ac_n "(cached) $ac_c" 1>&6
6846 cat > conftest.
$ac_ext <<EOF
6847 #line 6848 "configure"
6848 #include "confdefs.h"
6849 /* System header to define __stub macros and hopefully few prototypes,
6850 which can conflict with char $ac_func(); below. */
6852 /* Override any gcc2 internal prototype to avoid an error. */
6853 /* We use char because int might match the return type of a gcc2
6854 builtin and then its argument prototype would still apply. */
6859 /* The GNU C library defines this for functions which it implements
6860 to always fail with ENOSYS. Some functions are actually named
6861 something starting with __ and the normal name is an alias. */
6862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6870 if { (eval echo configure
:6871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6872 eval "ac_cv_func_$ac_func=yes"
6874 echo "configure: failed program was:" >&5
6875 cat conftest.
$ac_ext >&5
6877 eval "ac_cv_func_$ac_func=no"
6882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6883 echo "$ac_t""yes" 1>&6
6884 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6885 cat >> confdefs.h
<<EOF
6886 #define $ac_tr_func 1
6890 echo "$ac_t""no" 1>&6
6896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6897 echo "configure:6898: checking for $ac_func" >&5
6898 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6899 echo $ac_n "(cached) $ac_c" 1>&6
6901 cat > conftest.
$ac_ext <<EOF
6902 #line 6903 "configure"
6903 #include "confdefs.h"
6904 /* System header to define __stub macros and hopefully few prototypes,
6905 which can conflict with char $ac_func(); below. */
6907 /* Override any gcc2 internal prototype to avoid an error. */
6908 /* We use char because int might match the return type of a gcc2
6909 builtin and then its argument prototype would still apply. */
6914 /* The GNU C library defines this for functions which it implements
6915 to always fail with ENOSYS. Some functions are actually named
6916 something starting with __ and the normal name is an alias. */
6917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6925 if { (eval echo configure
:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6927 eval "ac_cv_func_$ac_func=yes"
6929 echo "configure: failed program was:" >&5
6930 cat conftest.
$ac_ext >&5
6932 eval "ac_cv_func_$ac_func=no"
6937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6938 echo "$ac_t""yes" 1>&6
6939 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6940 cat >> confdefs.h
<<EOF
6941 #define $ac_tr_func 1
6945 echo "$ac_t""no" 1>&6
6949 for ac_func
in setpgid setpgrp
6951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6952 echo "configure:6953: checking for $ac_func" >&5
6953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6954 echo $ac_n "(cached) $ac_c" 1>&6
6956 cat > conftest.
$ac_ext <<EOF
6957 #line 6958 "configure"
6958 #include "confdefs.h"
6959 /* System header to define __stub macros and hopefully few prototypes,
6960 which can conflict with char $ac_func(); below. */
6962 /* Override any gcc2 internal prototype to avoid an error. */
6963 /* We use char because int might match the return type of a gcc2
6964 builtin and then its argument prototype would still apply. */
6969 /* The GNU C library defines this for functions which it implements
6970 to always fail with ENOSYS. Some functions are actually named
6971 something starting with __ and the normal name is an alias. */
6972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6980 if { (eval echo configure
:6981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6982 eval "ac_cv_func_$ac_func=yes"
6984 echo "configure: failed program was:" >&5
6985 cat conftest.
$ac_ext >&5
6987 eval "ac_cv_func_$ac_func=no"
6992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6993 echo "$ac_t""yes" 1>&6
6994 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6995 cat >> confdefs.h
<<EOF
6996 #define $ac_tr_func 1
7000 echo "$ac_t""no" 1>&6
7004 for ac_func
in sigaction sigprocmask sigsetmask
7006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7007 echo "configure:7008: checking for $ac_func" >&5
7008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7009 echo $ac_n "(cached) $ac_c" 1>&6
7011 cat > conftest.
$ac_ext <<EOF
7012 #line 7013 "configure"
7013 #include "confdefs.h"
7014 /* System header to define __stub macros and hopefully few prototypes,
7015 which can conflict with char $ac_func(); below. */
7017 /* Override any gcc2 internal prototype to avoid an error. */
7018 /* We use char because int might match the return type of a gcc2
7019 builtin and then its argument prototype would still apply. */
7024 /* The GNU C library defines this for functions which it implements
7025 to always fail with ENOSYS. Some functions are actually named
7026 something starting with __ and the normal name is an alias. */
7027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7035 if { (eval echo configure
:7036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7037 eval "ac_cv_func_$ac_func=yes"
7039 echo "configure: failed program was:" >&5
7040 cat conftest.
$ac_ext >&5
7042 eval "ac_cv_func_$ac_func=no"
7047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7048 echo "$ac_t""yes" 1>&6
7049 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7050 cat >> confdefs.h
<<EOF
7051 #define $ac_tr_func 1
7055 echo "$ac_t""no" 1>&6
7059 for ac_func
in socketpair
7061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7062 echo "configure:7063: checking for $ac_func" >&5
7063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7064 echo $ac_n "(cached) $ac_c" 1>&6
7066 cat > conftest.
$ac_ext <<EOF
7067 #line 7068 "configure"
7068 #include "confdefs.h"
7069 /* System header to define __stub macros and hopefully few prototypes,
7070 which can conflict with char $ac_func(); below. */
7072 /* Override any gcc2 internal prototype to avoid an error. */
7073 /* We use char because int might match the return type of a gcc2
7074 builtin and then its argument prototype would still apply. */
7079 /* The GNU C library defines this for functions which it implements
7080 to always fail with ENOSYS. Some functions are actually named
7081 something starting with __ and the normal name is an alias. */
7082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7090 if { (eval echo configure
:7091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7092 eval "ac_cv_func_$ac_func=yes"
7094 echo "configure: failed program was:" >&5
7095 cat conftest.
$ac_ext >&5
7097 eval "ac_cv_func_$ac_func=no"
7102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7103 echo "$ac_t""yes" 1>&6
7104 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7105 cat >> confdefs.h
<<EOF
7106 #define $ac_tr_func 1
7110 echo "$ac_t""no" 1>&6
7114 for ac_func
in syscall
7116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7117 echo "configure:7118: checking for $ac_func" >&5
7118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7119 echo $ac_n "(cached) $ac_c" 1>&6
7121 cat > conftest.
$ac_ext <<EOF
7122 #line 7123 "configure"
7123 #include "confdefs.h"
7124 /* System header to define __stub macros and hopefully few prototypes,
7125 which can conflict with char $ac_func(); below. */
7127 /* Override any gcc2 internal prototype to avoid an error. */
7128 /* We use char because int might match the return type of a gcc2
7129 builtin and then its argument prototype would still apply. */
7134 /* The GNU C library defines this for functions which it implements
7135 to always fail with ENOSYS. Some functions are actually named
7136 something starting with __ and the normal name is an alias. */
7137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7145 if { (eval echo configure
:7146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7147 eval "ac_cv_func_$ac_func=yes"
7149 echo "configure: failed program was:" >&5
7150 cat conftest.
$ac_ext >&5
7152 eval "ac_cv_func_$ac_func=no"
7157 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7158 echo "$ac_t""yes" 1>&6
7159 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7160 cat >> confdefs.h
<<EOF
7161 #define $ac_tr_func 1
7165 echo "$ac_t""no" 1>&6
7170 if test "$cross_compiling" = no
; then
7171 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
7172 echo "configure:7173: checking whether setpgrp takes no argument" >&5
7173 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
7174 echo $ac_n "(cached) $ac_c" 1>&6
7176 if test "$cross_compiling" = yes; then
7177 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
7179 cat > conftest.
$ac_ext <<EOF
7180 #line 7181 "configure"
7181 #include "confdefs.h"
7183 #ifdef HAVE_UNISTD_H
7188 * If this system has a BSD-style setpgrp, which takes arguments, exit
7193 if (setpgrp(1,1) == -1)
7200 if { (eval echo configure
:7201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7202 ac_cv_func_setpgrp_void
=no
7204 echo "configure: failed program was:" >&5
7205 cat conftest.
$ac_ext >&5
7207 ac_cv_func_setpgrp_void
=yes
7215 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
7216 if test $ac_cv_func_setpgrp_void = yes; then
7217 cat >> confdefs.h
<<\EOF
7218 #define SETPGRP_VOID 1
7224 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
7225 echo "configure:7226: checking whether setpgrp takes no argument" >&5
7226 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
7227 echo $ac_n "(cached) $ac_c" 1>&6
7229 cat > conftest.
$ac_ext <<EOF
7230 #line 7231 "configure"
7231 #include "confdefs.h"
7237 if (setpgrp(1,1) == -1)
7244 if { (eval echo configure
:7245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7246 ac_cv_func_setpgrp_void
=no
7248 echo "configure: failed program was:" >&5
7249 cat conftest.
$ac_ext >&5
7251 ac_cv_func_setpgrp_void
=yes
7256 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
7257 if test $ac_cv_func_setpgrp_void = yes; then
7258 cat >> confdefs.h
<<\EOF
7259 #define SETPGRP_VOID 1
7265 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
7266 # since sigsetjmp might only be defined as a macro.
7267 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7268 echo "configure:7269: checking for sigsetjmp" >&5
7269 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
7270 echo $ac_n "(cached) $ac_c" 1>&6
7272 cat > conftest.
$ac_ext <<EOF
7273 #line 7274 "configure"
7274 #include "confdefs.h"
7279 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
7282 if { (eval echo configure
:7283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7284 gdb_cv_func_sigsetjmp
=yes
7286 echo "configure: failed program was:" >&5
7287 cat conftest.
$ac_ext >&5
7289 gdb_cv_func_sigsetjmp
=no
7294 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
7295 if test $gdb_cv_func_sigsetjmp = yes; then
7296 cat >> confdefs.h
<<\EOF
7297 #define HAVE_SIGSETJMP 1
7302 # Assume we'll default to using the included libiberty regex.
7303 gdb_use_included_regex
=yes
7305 # However, if the system regex is GNU regex, then default to *not*
7306 # using the included regex.
7307 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
7308 echo "configure:7309: checking for GNU regex" >&5
7309 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
7310 echo $ac_n "(cached) $ac_c" 1>&6
7312 cat > conftest.
$ac_ext <<EOF
7313 #line 7314 "configure"
7314 #include "confdefs.h"
7315 #include <gnu-versions.h>
7317 #define REGEX_INTERFACE_VERSION 1
7318 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
7319 # error "Version mismatch"
7323 if { (eval echo configure
:7324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7325 gdb_cv_have_gnu_regex
=yes
7327 echo "configure: failed program was:" >&5
7328 cat conftest.
$ac_ext >&5
7330 gdb_cv_have_gnu_regex
=no
7335 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
7336 if test $gdb_cv_have_gnu_regex = yes; then
7337 gdb_use_included_regex
=no
7340 # Check whether --with-included-regex or --without-included-regex was given.
7341 if test "${with_included_regex+set}" = set; then
7342 withval
="$with_included_regex"
7343 gdb_with_regex
=$withval
7345 gdb_with_regex
=$gdb_use_included_regex
7348 if test "$gdb_with_regex" = yes; then
7349 cat >> confdefs.h
<<\EOF
7350 #define USE_INCLUDED_REGEX 1
7355 # See if <machine/reg.h> degines `struct reg'.
7356 echo $ac_n "checking for struct reg in machine/reg.h""... $ac_c" 1>&6
7357 echo "configure:7358: checking for struct reg in machine/reg.h" >&5
7358 if eval "test \"`echo '$''{'gdb_cv_struct_reg'+set}'`\" = set"; then
7359 echo $ac_n "(cached) $ac_c" 1>&6
7361 cat > conftest.
$ac_ext <<EOF
7362 #line 7363 "configure"
7363 #include "confdefs.h"
7364 #include <sys/types.h>
7365 #include <machine/reg.h>
7370 if { (eval echo configure
:7371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7372 gdb_cv_struct_reg
=yes
7374 echo "configure: failed program was:" >&5
7375 cat conftest.
$ac_ext >&5
7377 gdb_cv_struct_reg
=no
7382 echo "$ac_t""$gdb_cv_struct_reg" 1>&6
7383 if test $gdb_cv_struct_reg = yes; then
7384 cat >> confdefs.h
<<\EOF
7385 #define HAVE_STRUCT_REG 1
7390 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
7391 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
7392 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
7393 echo "configure:7394: checking for r_fs in struct reg" >&5
7394 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
7395 echo $ac_n "(cached) $ac_c" 1>&6
7397 cat > conftest.
$ac_ext <<EOF
7398 #line 7399 "configure"
7399 #include "confdefs.h"
7400 #include <machine/reg.h>
7402 struct reg r; r.r_fs;
7405 if { (eval echo configure
:7406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7407 gdb_cv_struct_reg_r_fs
=yes
7409 echo "configure: failed program was:" >&5
7410 cat conftest.
$ac_ext >&5
7412 gdb_cv_struct_reg_r_fs
=no
7417 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
7418 if test $gdb_cv_struct_reg_r_fs = yes; then
7419 cat >> confdefs.h
<<\EOF
7420 #define HAVE_STRUCT_REG_R_FS 1
7424 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
7425 echo "configure:7426: checking for r_gs in struct reg" >&5
7426 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
7427 echo $ac_n "(cached) $ac_c" 1>&6
7429 cat > conftest.
$ac_ext <<EOF
7430 #line 7431 "configure"
7431 #include "confdefs.h"
7432 #include <machine/reg.h>
7434 struct reg r; r.r_gs;
7437 if { (eval echo configure
:7438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7439 gdb_cv_struct_reg_r_gs
=yes
7441 echo "configure: failed program was:" >&5
7442 cat conftest.
$ac_ext >&5
7444 gdb_cv_struct_reg_r_gs
=no
7449 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
7450 if test $gdb_cv_struct_reg_r_gs = yes; then
7451 cat >> confdefs.h
<<\EOF
7452 #define HAVE_STRUCT_REG_R_GS 1
7457 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
7458 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
7459 echo "configure:7460: checking for PTRACE_GETREGS" >&5
7460 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
7461 echo $ac_n "(cached) $ac_c" 1>&6
7463 cat > conftest.
$ac_ext <<EOF
7464 #line 7465 "configure"
7465 #include "confdefs.h"
7466 #include <sys/ptrace.h>
7471 if { (eval echo configure
:7472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7473 gdb_cv_have_ptrace_getregs
=yes
7475 echo "configure: failed program was:" >&5
7476 cat conftest.
$ac_ext >&5
7478 gdb_cv_have_ptrace_getregs
=no
7483 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
7484 if test $gdb_cv_have_ptrace_getregs = yes; then
7485 cat >> confdefs.h
<<\EOF
7486 #define HAVE_PTRACE_GETREGS 1
7491 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
7492 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
7493 echo "configure:7494: checking for PTRACE_GETFPXREGS" >&5
7494 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+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"
7500 #include <sys/ptrace.h>
7505 if { (eval echo configure
:7506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7507 gdb_cv_have_ptrace_getfpxregs
=yes
7509 echo "configure: failed program was:" >&5
7510 cat conftest.
$ac_ext >&5
7512 gdb_cv_have_ptrace_getfpxregs
=no
7517 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
7518 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
7519 cat >> confdefs.h
<<\EOF
7520 #define HAVE_PTRACE_GETFPXREGS 1
7525 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
7526 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
7527 echo "configure:7528: checking for PT_GETDBREGS" >&5
7528 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
7529 echo $ac_n "(cached) $ac_c" 1>&6
7531 cat > conftest.
$ac_ext <<EOF
7532 #line 7533 "configure"
7533 #include "confdefs.h"
7534 #include <sys/types.h>
7535 #include <sys/ptrace.h>
7540 if { (eval echo configure
:7541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7542 gdb_cv_have_pt_getdbregs
=yes
7544 echo "configure: failed program was:" >&5
7545 cat conftest.
$ac_ext >&5
7547 gdb_cv_have_pt_getdbregs
=no
7552 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
7553 if test $gdb_cv_have_pt_getdbregs = yes; then
7554 cat >> confdefs.h
<<\EOF
7555 #define HAVE_PT_GETDBREGS 1
7560 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
7561 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
7562 echo "configure:7563: checking for PT_GETXMMREGS" >&5
7563 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
7564 echo $ac_n "(cached) $ac_c" 1>&6
7566 cat > conftest.
$ac_ext <<EOF
7567 #line 7568 "configure"
7568 #include "confdefs.h"
7569 #include <sys/types.h>
7570 #include <sys/ptrace.h>
7575 if { (eval echo configure
:7576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7577 gdb_cv_have_pt_getxmmregs
=yes
7579 echo "configure: failed program was:" >&5
7580 cat conftest.
$ac_ext >&5
7582 gdb_cv_have_pt_getxmmregs
=no
7587 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
7588 if test $gdb_cv_have_pt_getxmmregs = yes; then
7589 cat >> confdefs.h
<<\EOF
7590 #define HAVE_PT_GETXMMREGS 1
7595 # See if stdint.h provides the uintptr_t type.
7596 # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
7597 echo $ac_n "checking for uintptr_t in stdint.h""... $ac_c" 1>&6
7598 echo "configure:7599: checking for uintptr_t in stdint.h" >&5
7599 if eval "test \"`echo '$''{'gdb_cv_have_uintptr_t'+set}'`\" = set"; then
7600 echo $ac_n "(cached) $ac_c" 1>&6
7602 cat > conftest.
$ac_ext <<EOF
7603 #line 7604 "configure"
7604 #include "confdefs.h"
7610 if { (eval echo configure
:7611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7612 gdb_cv_have_uintptr_t
=yes
7614 echo "configure: failed program was:" >&5
7615 cat conftest.
$ac_ext >&5
7617 gdb_cv_have_uintptr_t
=no
7622 echo "$ac_t""$gdb_cv_have_uintptr_t" 1>&6
7623 if test $gdb_cv_have_uintptr_t = yes; then
7624 cat >> confdefs.h
<<\EOF
7625 #define HAVE_UINTPTR_T 1
7630 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
7631 echo "configure:7632: checking whether malloc must be declared" >&5
7632 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
7633 echo $ac_n "(cached) $ac_c" 1>&6
7635 cat > conftest.
$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7640 #ifdef HAVE_STRING_H
7643 #ifdef HAVE_STRINGS_H
7644 #include <strings.h>
7647 #ifdef HAVE_STDLIB_H
7650 #ifdef HAVE_UNISTD_H
7654 char *(*pfn) = (char *(*)) malloc
7657 if { (eval echo configure
:7658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7659 bfd_cv_decl_needed_malloc
=no
7661 echo "configure: failed program was:" >&5
7662 cat conftest.
$ac_ext >&5
7664 bfd_cv_decl_needed_malloc
=yes
7669 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
7670 if test $bfd_cv_decl_needed_malloc = yes; then
7671 cat >> confdefs.h
<<\EOF
7672 #define NEED_DECLARATION_MALLOC 1
7677 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
7678 echo "configure:7679: checking whether realloc must be declared" >&5
7679 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
7680 echo $ac_n "(cached) $ac_c" 1>&6
7682 cat > conftest.
$ac_ext <<EOF
7683 #line 7684 "configure"
7684 #include "confdefs.h"
7687 #ifdef HAVE_STRING_H
7690 #ifdef HAVE_STRINGS_H
7691 #include <strings.h>
7694 #ifdef HAVE_STDLIB_H
7697 #ifdef HAVE_UNISTD_H
7701 char *(*pfn) = (char *(*)) realloc
7704 if { (eval echo configure
:7705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7706 bfd_cv_decl_needed_realloc
=no
7708 echo "configure: failed program was:" >&5
7709 cat conftest.
$ac_ext >&5
7711 bfd_cv_decl_needed_realloc
=yes
7716 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
7717 if test $bfd_cv_decl_needed_realloc = yes; then
7718 cat >> confdefs.h
<<\EOF
7719 #define NEED_DECLARATION_REALLOC 1
7724 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
7725 echo "configure:7726: checking whether free must be declared" >&5
7726 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
7727 echo $ac_n "(cached) $ac_c" 1>&6
7729 cat > conftest.
$ac_ext <<EOF
7730 #line 7731 "configure"
7731 #include "confdefs.h"
7734 #ifdef HAVE_STRING_H
7737 #ifdef HAVE_STRINGS_H
7738 #include <strings.h>
7741 #ifdef HAVE_STDLIB_H
7744 #ifdef HAVE_UNISTD_H
7748 char *(*pfn) = (char *(*)) free
7751 if { (eval echo configure
:7752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7753 bfd_cv_decl_needed_free
=no
7755 echo "configure: failed program was:" >&5
7756 cat conftest.
$ac_ext >&5
7758 bfd_cv_decl_needed_free
=yes
7763 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
7764 if test $bfd_cv_decl_needed_free = yes; then
7765 cat >> confdefs.h
<<\EOF
7766 #define NEED_DECLARATION_FREE 1
7771 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
7772 echo "configure:7773: checking whether strerror must be declared" >&5
7773 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
7774 echo $ac_n "(cached) $ac_c" 1>&6
7776 cat > conftest.
$ac_ext <<EOF
7777 #line 7778 "configure"
7778 #include "confdefs.h"
7781 #ifdef HAVE_STRING_H
7784 #ifdef HAVE_STRINGS_H
7785 #include <strings.h>
7788 #ifdef HAVE_STDLIB_H
7791 #ifdef HAVE_UNISTD_H
7795 char *(*pfn) = (char *(*)) strerror
7798 if { (eval echo configure
:7799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7800 bfd_cv_decl_needed_strerror
=no
7802 echo "configure: failed program was:" >&5
7803 cat conftest.
$ac_ext >&5
7805 bfd_cv_decl_needed_strerror
=yes
7810 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
7811 if test $bfd_cv_decl_needed_strerror = yes; then
7812 cat >> confdefs.h
<<\EOF
7813 #define NEED_DECLARATION_STRERROR 1
7818 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
7819 echo "configure:7820: checking whether strdup must be declared" >&5
7820 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
7821 echo $ac_n "(cached) $ac_c" 1>&6
7823 cat > conftest.
$ac_ext <<EOF
7824 #line 7825 "configure"
7825 #include "confdefs.h"
7828 #ifdef HAVE_STRING_H
7831 #ifdef HAVE_STRINGS_H
7832 #include <strings.h>
7835 #ifdef HAVE_STDLIB_H
7838 #ifdef HAVE_UNISTD_H
7842 char *(*pfn) = (char *(*)) strdup
7845 if { (eval echo configure
:7846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7847 bfd_cv_decl_needed_strdup
=no
7849 echo "configure: failed program was:" >&5
7850 cat conftest.
$ac_ext >&5
7852 bfd_cv_decl_needed_strdup
=yes
7857 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
7858 if test $bfd_cv_decl_needed_strdup = yes; then
7859 cat >> confdefs.h
<<\EOF
7860 #define NEED_DECLARATION_STRDUP 1
7865 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
7866 echo "configure:7867: checking whether strstr must be declared" >&5
7867 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
7868 echo $ac_n "(cached) $ac_c" 1>&6
7870 cat > conftest.
$ac_ext <<EOF
7871 #line 7872 "configure"
7872 #include "confdefs.h"
7875 #ifdef HAVE_STRING_H
7878 #ifdef HAVE_STRINGS_H
7879 #include <strings.h>
7882 #ifdef HAVE_STDLIB_H
7885 #ifdef HAVE_UNISTD_H
7889 char *(*pfn) = (char *(*)) strstr
7892 if { (eval echo configure
:7893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7894 bfd_cv_decl_needed_strstr
=no
7896 echo "configure: failed program was:" >&5
7897 cat conftest.
$ac_ext >&5
7899 bfd_cv_decl_needed_strstr
=yes
7904 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
7905 if test $bfd_cv_decl_needed_strstr = yes; then
7906 cat >> confdefs.h
<<\EOF
7907 #define NEED_DECLARATION_STRSTR 1
7912 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
7913 echo "configure:7914: checking whether canonicalize_file_name must be declared" >&5
7914 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
7915 echo $ac_n "(cached) $ac_c" 1>&6
7917 cat > conftest.
$ac_ext <<EOF
7918 #line 7919 "configure"
7919 #include "confdefs.h"
7922 #ifdef HAVE_STRING_H
7925 #ifdef HAVE_STRINGS_H
7926 #include <strings.h>
7929 #ifdef HAVE_STDLIB_H
7932 #ifdef HAVE_UNISTD_H
7936 char *(*pfn) = (char *(*)) canonicalize_file_name
7939 if { (eval echo configure
:7940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7941 bfd_cv_decl_needed_canonicalize_file_name
=no
7943 echo "configure: failed program was:" >&5
7944 cat conftest.
$ac_ext >&5
7946 bfd_cv_decl_needed_canonicalize_file_name
=yes
7951 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
7952 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
7953 cat >> confdefs.h
<<\EOF
7954 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7960 # The following save_state_t checkery is only necessary for HPUX
7961 # versions earlier than 10.20. When those fade from memory, this
7962 # could be expunged. --jsm 1999-03-22
7964 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
7965 echo "configure:7966: checking for HPUX save_state structure" >&5
7966 cat > conftest.
$ac_ext <<EOF
7967 #line 7968 "configure"
7968 #include "confdefs.h"
7969 #include <machine/save_state.h>
7971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7972 egrep "save_state_t" >/dev
/null
2>&1; then
7974 gdb_cv_hpux_savestate
=yes
7977 gdb_cv_hpux_savestate
=no
7981 cat > conftest.
$ac_ext <<EOF
7982 #line 7983 "configure"
7983 #include "confdefs.h"
7984 #include <machine/save_state.h>
7986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7987 egrep "ss_wide" >/dev
/null
2>&1; then
7989 gdb_cv_hpux_sswide
=yes
7992 gdb_cv_hpux_sswide
=no
7996 if test $gdb_cv_hpux_savestate = yes
7998 cat >> confdefs.h
<<\EOF
7999 #define HAVE_STRUCT_SAVE_STATE_T 1
8003 if test $gdb_cv_hpux_sswide = yes
8005 cat >> confdefs.h
<<\EOF
8006 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
8010 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
8013 # If we are configured native on GNU/Linux, work around problems with
8015 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
8017 if test "${target}" = "${host}"; then
8020 cat >> confdefs.h
<<\EOF
8021 #define START_INFERIOR_TRAPS_EXPECTED 2
8024 cat >> confdefs.h
<<\EOF
8025 #define sys_quotactl 1
8030 cat >> confdefs.h
<<\EOF
8031 #define NEW_PROC_API 1
8035 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
8036 cat >> confdefs.h
<<\EOF
8037 #define NEW_PROC_API 1
8041 *-*-solaris2.
[6789])
8042 cat >> confdefs.h
<<\EOF
8043 #define NEW_PROC_API 1
8048 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
8049 cat >> confdefs.h
<<\EOF
8057 if test "$ac_cv_header_sys_procfs_h" = yes; then
8058 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
8059 echo "configure:8060: checking for pstatus_t in sys/procfs.h" >&5
8060 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
8061 echo $ac_n "(cached) $ac_c" 1>&6
8063 cat > conftest.
$ac_ext <<EOF
8064 #line 8065 "configure"
8065 #include "confdefs.h"
8068 #include <sys/procfs.h>
8073 if { (eval echo configure
:8074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8075 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
8077 echo "configure: failed program was:" >&5
8078 cat conftest.
$ac_ext >&5
8080 bfd_cv_have_sys_procfs_type_pstatus_t
=no
8086 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
8087 cat >> confdefs.h
<<\EOF
8088 #define HAVE_PSTATUS_T 1
8092 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
8094 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
8095 echo "configure:8096: checking for prrun_t in sys/procfs.h" >&5
8096 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
8097 echo $ac_n "(cached) $ac_c" 1>&6
8099 cat > conftest.
$ac_ext <<EOF
8100 #line 8101 "configure"
8101 #include "confdefs.h"
8104 #include <sys/procfs.h>
8109 if { (eval echo configure
:8110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8111 bfd_cv_have_sys_procfs_type_prrun_t
=yes
8113 echo "configure: failed program was:" >&5
8114 cat conftest.
$ac_ext >&5
8116 bfd_cv_have_sys_procfs_type_prrun_t
=no
8122 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
8123 cat >> confdefs.h
<<\EOF
8124 #define HAVE_PRRUN_T 1
8128 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
8130 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
8131 echo "configure:8132: checking for gregset_t in sys/procfs.h" >&5
8132 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
8133 echo $ac_n "(cached) $ac_c" 1>&6
8135 cat > conftest.
$ac_ext <<EOF
8136 #line 8137 "configure"
8137 #include "confdefs.h"
8140 #include <sys/procfs.h>
8145 if { (eval echo configure
:8146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8147 bfd_cv_have_sys_procfs_type_gregset_t
=yes
8149 echo "configure: failed program was:" >&5
8150 cat conftest.
$ac_ext >&5
8152 bfd_cv_have_sys_procfs_type_gregset_t
=no
8158 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
8159 cat >> confdefs.h
<<\EOF
8160 #define HAVE_GREGSET_T 1
8164 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
8166 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
8167 echo "configure:8168: checking for fpregset_t in sys/procfs.h" >&5
8168 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
8169 echo $ac_n "(cached) $ac_c" 1>&6
8171 cat > conftest.
$ac_ext <<EOF
8172 #line 8173 "configure"
8173 #include "confdefs.h"
8176 #include <sys/procfs.h>
8181 if { (eval echo configure
:8182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8183 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
8185 echo "configure: failed program was:" >&5
8186 cat conftest.
$ac_ext >&5
8188 bfd_cv_have_sys_procfs_type_fpregset_t
=no
8194 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
8195 cat >> confdefs.h
<<\EOF
8196 #define HAVE_FPREGSET_T 1
8200 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
8202 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
8203 echo "configure:8204: checking for prgregset_t in sys/procfs.h" >&5
8204 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
8205 echo $ac_n "(cached) $ac_c" 1>&6
8207 cat > conftest.
$ac_ext <<EOF
8208 #line 8209 "configure"
8209 #include "confdefs.h"
8212 #include <sys/procfs.h>
8217 if { (eval echo configure
:8218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8219 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
8221 echo "configure: failed program was:" >&5
8222 cat conftest.
$ac_ext >&5
8224 bfd_cv_have_sys_procfs_type_prgregset_t
=no
8230 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8231 cat >> confdefs.h
<<\EOF
8232 #define HAVE_PRGREGSET_T 1
8236 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
8238 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
8239 echo "configure:8240: checking for prfpregset_t in sys/procfs.h" >&5
8240 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
8241 echo $ac_n "(cached) $ac_c" 1>&6
8243 cat > conftest.
$ac_ext <<EOF
8244 #line 8245 "configure"
8245 #include "confdefs.h"
8248 #include <sys/procfs.h>
8253 if { (eval echo configure
:8254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8255 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
8257 echo "configure: failed program was:" >&5
8258 cat conftest.
$ac_ext >&5
8260 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
8266 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8267 cat >> confdefs.h
<<\EOF
8268 #define HAVE_PRFPREGSET_T 1
8272 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
8274 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
8275 echo "configure:8276: checking for prgregset32_t in sys/procfs.h" >&5
8276 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
8277 echo $ac_n "(cached) $ac_c" 1>&6
8279 cat > conftest.
$ac_ext <<EOF
8280 #line 8281 "configure"
8281 #include "confdefs.h"
8284 #include <sys/procfs.h>
8289 if { (eval echo configure
:8290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8291 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
8293 echo "configure: failed program was:" >&5
8294 cat conftest.
$ac_ext >&5
8296 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
8302 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
8303 cat >> confdefs.h
<<\EOF
8304 #define HAVE_PRGREGSET32_T 1
8308 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
8310 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
8311 echo "configure:8312: checking for prfpregset32_t in sys/procfs.h" >&5
8312 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
8313 echo $ac_n "(cached) $ac_c" 1>&6
8315 cat > conftest.
$ac_ext <<EOF
8316 #line 8317 "configure"
8317 #include "confdefs.h"
8320 #include <sys/procfs.h>
8325 if { (eval echo configure
:8326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8327 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
8329 echo "configure: failed program was:" >&5
8330 cat conftest.
$ac_ext >&5
8332 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
8338 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
8339 cat >> confdefs.h
<<\EOF
8340 #define HAVE_PRFPREGSET32_T 1
8344 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
8346 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
8347 echo "configure:8348: checking for lwpid_t in sys/procfs.h" >&5
8348 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
8349 echo $ac_n "(cached) $ac_c" 1>&6
8351 cat > conftest.
$ac_ext <<EOF
8352 #line 8353 "configure"
8353 #include "confdefs.h"
8356 #include <sys/procfs.h>
8361 if { (eval echo configure
:8362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8363 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
8365 echo "configure: failed program was:" >&5
8366 cat conftest.
$ac_ext >&5
8368 bfd_cv_have_sys_procfs_type_lwpid_t
=no
8374 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8375 cat >> confdefs.h
<<\EOF
8376 #define HAVE_LWPID_T 1
8380 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
8382 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
8383 echo "configure:8384: checking for psaddr_t in sys/procfs.h" >&5
8384 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
8385 echo $ac_n "(cached) $ac_c" 1>&6
8387 cat > conftest.
$ac_ext <<EOF
8388 #line 8389 "configure"
8389 #include "confdefs.h"
8392 #include <sys/procfs.h>
8397 if { (eval echo configure
:8398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8399 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
8401 echo "configure: failed program was:" >&5
8402 cat conftest.
$ac_ext >&5
8404 bfd_cv_have_sys_procfs_type_psaddr_t
=no
8410 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8411 cat >> confdefs.h
<<\EOF
8412 #define HAVE_PSADDR_T 1
8416 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
8418 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
8419 echo "configure:8420: checking for prsysent_t in sys/procfs.h" >&5
8420 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
8421 echo $ac_n "(cached) $ac_c" 1>&6
8423 cat > conftest.
$ac_ext <<EOF
8424 #line 8425 "configure"
8425 #include "confdefs.h"
8428 #include <sys/procfs.h>
8433 if { (eval echo configure
:8434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8435 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
8437 echo "configure: failed program was:" >&5
8438 cat conftest.
$ac_ext >&5
8440 bfd_cv_have_sys_procfs_type_prsysent_t
=no
8446 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
8447 cat >> confdefs.h
<<\EOF
8448 #define HAVE_PRSYSENT_T 1
8452 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
8454 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
8455 echo "configure:8456: checking for pr_sigset_t in sys/procfs.h" >&5
8456 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
8457 echo $ac_n "(cached) $ac_c" 1>&6
8459 cat > conftest.
$ac_ext <<EOF
8460 #line 8461 "configure"
8461 #include "confdefs.h"
8464 #include <sys/procfs.h>
8469 if { (eval echo configure
:8470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8471 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
8473 echo "configure: failed program was:" >&5
8474 cat conftest.
$ac_ext >&5
8476 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
8482 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
8483 cat >> confdefs.h
<<\EOF
8484 #define HAVE_PR_SIGSET_T 1
8488 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
8490 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
8491 echo "configure:8492: checking for pr_sigaction64_t in sys/procfs.h" >&5
8492 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
8493 echo $ac_n "(cached) $ac_c" 1>&6
8495 cat > conftest.
$ac_ext <<EOF
8496 #line 8497 "configure"
8497 #include "confdefs.h"
8500 #include <sys/procfs.h>
8502 pr_sigaction64_t avar
8505 if { (eval echo configure
:8506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8507 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
8509 echo "configure: failed program was:" >&5
8510 cat conftest.
$ac_ext >&5
8512 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
8518 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
8519 cat >> confdefs.h
<<\EOF
8520 #define HAVE_PR_SIGACTION64_T 1
8524 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
8526 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
8527 echo "configure:8528: checking for pr_siginfo64_t in sys/procfs.h" >&5
8528 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
8529 echo $ac_n "(cached) $ac_c" 1>&6
8531 cat > conftest.
$ac_ext <<EOF
8532 #line 8533 "configure"
8533 #include "confdefs.h"
8536 #include <sys/procfs.h>
8541 if { (eval echo configure
:8542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8543 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
8545 echo "configure: failed program was:" >&5
8546 cat conftest.
$ac_ext >&5
8548 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
8554 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
8555 cat >> confdefs.h
<<\EOF
8556 #define HAVE_PR_SIGINFO64_T 1
8560 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
8566 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8567 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
8568 echo "configure:8569: checking whether prfpregset_t type is broken" >&5
8569 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
8570 echo $ac_n "(cached) $ac_c" 1>&6
8572 if test "$cross_compiling" = yes; then
8573 gdb_cv_prfpregset_t_broken
=yes
8575 cat > conftest.
$ac_ext <<EOF
8576 #line 8577 "configure"
8577 #include "confdefs.h"
8578 #include <sys/procfs.h>
8581 if (sizeof (prfpregset_t) == sizeof (void *))
8586 if { (eval echo configure
:8587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8588 gdb_cv_prfpregset_t_broken
=no
8590 echo "configure: failed program was:" >&5
8591 cat conftest.
$ac_ext >&5
8593 gdb_cv_prfpregset_t_broken
=yes
8600 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
8601 if test $gdb_cv_prfpregset_t_broken = yes; then
8602 cat >> confdefs.h
<<\EOF
8603 #define PRFPREGSET_T_BROKEN 1
8610 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
8611 echo "configure:8612: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
8612 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
8613 echo $ac_n "(cached) $ac_c" 1>&6
8615 cat > conftest.
$ac_ext <<EOF
8616 #line 8617 "configure"
8617 #include "confdefs.h"
8619 #include <sys/types.h>
8620 #include <sys/procfs.h>
8625 dummy = ioctl(0, PIOCSET, &dummy);
8629 if { (eval echo configure
:8630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8631 gdb_cv_have_procfs_piocset
=yes
8633 echo "configure: failed program was:" >&5
8634 cat conftest.
$ac_ext >&5
8636 gdb_cv_have_procfs_piocset
=no
8641 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
8642 if test $gdb_cv_have_procfs_piocset = yes; then
8643 cat >> confdefs.h
<<\EOF
8644 #define HAVE_PROCFS_PIOCSET 1
8650 if test ${host} = ${target} ; then
8652 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
8653 echo "configure:8654: checking for member l_addr in struct link_map" >&5
8654 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
8655 echo $ac_n "(cached) $ac_c" 1>&6
8657 cat > conftest.
$ac_ext <<EOF
8658 #line 8659 "configure"
8659 #include "confdefs.h"
8662 struct link_map lm; (void) lm.l_addr;
8665 if { (eval echo configure
:8666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8667 gdb_cv_have_struct_link_map_with_l_members
=yes
8669 echo "configure: failed program was:" >&5
8670 cat conftest.
$ac_ext >&5
8672 gdb_cv_have_struct_link_map_with_l_members
=no
8677 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
8678 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
8679 cat >> confdefs.h
<<\EOF
8680 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
8686 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
8687 echo "configure:8688: checking for member lm_addr in struct link_map" >&5
8688 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
8689 echo $ac_n "(cached) $ac_c" 1>&6
8691 cat > conftest.
$ac_ext <<EOF
8692 #line 8693 "configure"
8693 #include "confdefs.h"
8694 #include <sys/types.h>
8697 struct link_map lm; (void) lm.lm_addr;
8700 if { (eval echo configure
:8701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8702 gdb_cv_have_struct_link_map_with_lm_members
=yes
8704 echo "configure: failed program was:" >&5
8705 cat conftest.
$ac_ext >&5
8707 gdb_cv_have_struct_link_map_with_lm_members
=no
8712 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
8713 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
8714 cat >> confdefs.h
<<\EOF
8715 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
8721 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
8722 echo "configure:8723: checking for member som_addr in struct so_map" >&5
8723 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
8724 echo $ac_n "(cached) $ac_c" 1>&6
8726 cat > conftest.
$ac_ext <<EOF
8727 #line 8728 "configure"
8728 #include "confdefs.h"
8729 #include <sys/types.h>
8735 struct so_map lm; (void) lm.som_addr;
8738 if { (eval echo configure
:8739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8740 gdb_cv_have_struct_so_map_with_som_members
=yes
8742 echo "configure: failed program was:" >&5
8743 cat conftest.
$ac_ext >&5
8745 gdb_cv_have_struct_so_map_with_som_members
=no
8750 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
8751 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
8752 cat >> confdefs.h
<<\EOF
8753 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
8759 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
8760 echo "configure:8761: checking for struct link_map32 in sys/link.h" >&5
8761 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
8764 cat > conftest.
$ac_ext <<EOF
8765 #line 8766 "configure"
8766 #include "confdefs.h"
8768 #include <sys/link.h>
8770 struct link_map32 l;
8773 if { (eval echo configure
:8774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8775 gdb_cv_have_struct_link_map32
=yes
8777 echo "configure: failed program was:" >&5
8778 cat conftest.
$ac_ext >&5
8780 gdb_cv_have_struct_link_map32
=no
8785 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
8786 if test $gdb_cv_have_struct_link_map32 = yes; then
8787 cat >> confdefs.h
<<\EOF
8788 #define HAVE_STRUCT_LINK_MAP32 1
8791 cat >> confdefs.h
<<\EOF
8792 #define _SYSCALL32 1
8799 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
8800 echo "configure:8801: checking for long long support in compiler" >&5
8801 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
8802 echo $ac_n "(cached) $ac_c" 1>&6
8804 cat > conftest.
$ac_ext <<EOF
8805 #line 8806 "configure"
8806 #include "confdefs.h"
8810 extern long long foo;
8811 switch (foo & 2) { case 0: return 1; }
8815 if { (eval echo configure
:8816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8817 gdb_cv_c_long_long
=yes
8819 echo "configure: failed program was:" >&5
8820 cat conftest.
$ac_ext >&5
8822 gdb_cv_c_long_long
=no
8827 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
8828 if test $gdb_cv_c_long_long = yes; then
8829 cat >> confdefs.h
<<\EOF
8830 #define CC_HAS_LONG_LONG 1
8836 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
8837 echo "configure:8838: checking for long long support in printf" >&5
8838 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
8839 echo $ac_n "(cached) $ac_c" 1>&6
8841 if test "$cross_compiling" = yes; then
8842 gdb_cv_printf_has_long_long
=no
8844 cat > conftest.
$ac_ext <<EOF
8845 #line 8846 "configure"
8846 #include "confdefs.h"
8851 l = (l << 16) + 0x0123;
8852 l = (l << 16) + 0x4567;
8853 l = (l << 16) + 0x89ab;
8854 l = (l << 16) + 0xcdef;
8855 sprintf (buf, "0x%016llx", l);
8856 return (strcmp ("0x0123456789abcdef", buf));
8859 if { (eval echo configure
:8860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8861 gdb_cv_printf_has_long_long
=yes
8863 echo "configure: failed program was:" >&5
8864 cat conftest.
$ac_ext >&5
8866 gdb_cv_printf_has_long_long
=no
8873 if test $gdb_cv_printf_has_long_long = yes; then
8874 cat >> confdefs.h
<<\EOF
8875 #define PRINTF_HAS_LONG_LONG 1
8879 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
8882 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
8883 echo "configure:8884: checking for long double support in compiler" >&5
8884 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
8885 echo $ac_n "(cached) $ac_c" 1>&6
8887 cat > conftest.
$ac_ext <<EOF
8888 #line 8889 "configure"
8889 #include "confdefs.h"
8895 if { (eval echo configure
:8896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8897 ac_cv_c_long_double
=yes
8899 echo "configure: failed program was:" >&5
8900 cat conftest.
$ac_ext >&5
8902 ac_cv_c_long_double
=no
8907 echo "$ac_t""$ac_cv_c_long_double" 1>&6
8908 if test $ac_cv_c_long_double = yes; then
8909 cat >> confdefs.h
<<\EOF
8910 #define HAVE_LONG_DOUBLE 1
8916 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
8917 echo "configure:8918: checking for long double support in printf" >&5
8918 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
8919 echo $ac_n "(cached) $ac_c" 1>&6
8921 if test "$cross_compiling" = yes; then
8922 gdb_cv_printf_has_long_double
=no
8924 cat > conftest.
$ac_ext <<EOF
8925 #line 8926 "configure"
8926 #include "confdefs.h"
8930 long double f = 3.141592653;
8931 sprintf (buf, "%Lg", f);
8932 return (strncmp ("3.14159", buf, 7));
8935 if { (eval echo configure
:8936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8937 gdb_cv_printf_has_long_double
=yes
8939 echo "configure: failed program was:" >&5
8940 cat conftest.
$ac_ext >&5
8942 gdb_cv_printf_has_long_double
=no
8949 if test $gdb_cv_printf_has_long_double = yes; then
8950 cat >> confdefs.h
<<\EOF
8951 #define PRINTF_HAS_LONG_DOUBLE 1
8955 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
8958 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
8959 echo "configure:8960: checking for long double support in scanf" >&5
8960 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
8961 echo $ac_n "(cached) $ac_c" 1>&6
8963 if test "$cross_compiling" = yes; then
8964 gdb_cv_scanf_has_long_double
=no
8966 cat > conftest.
$ac_ext <<EOF
8967 #line 8968 "configure"
8968 #include "confdefs.h"
8971 char *buf = "3.141592653";
8973 sscanf (buf, "%Lg", &f);
8974 return !(f > 3.14159 && f < 3.14160);
8977 if { (eval echo configure
:8978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8979 gdb_cv_scanf_has_long_double
=yes
8981 echo "configure: failed program was:" >&5
8982 cat conftest.
$ac_ext >&5
8984 gdb_cv_scanf_has_long_double
=no
8991 if test $gdb_cv_scanf_has_long_double = yes; then
8992 cat >> confdefs.h
<<\EOF
8993 #define SCANF_HAS_LONG_DOUBLE 1
8997 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
9001 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
9002 echo "configure:9003: checking for -bbigtoc option" >&5
9003 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
9004 echo $ac_n "(cached) $ac_c" 1>&6
9007 SAVE_LDFLAGS
=$LDFLAGS
9010 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9011 *) gdb_cv_bigtoc
=-bbigtoc ;;
9014 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9015 cat > conftest.
$ac_ext <<EOF
9016 #line 9017 "configure"
9017 #include "confdefs.h"
9023 if { (eval echo configure
:9024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9026 echo "configure: failed program was:" >&5
9027 cat conftest.
$ac_ext >&5
9035 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
9036 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
9042 if test ${build} = ${host} -a ${host} = ${target} ; then
9045 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
9046 echo "configure:9047: checking for HPUX/OSF thread support" >&5
9047 if test -f /usr
/include
/dce
/cma_config.h
; then
9048 if test "$GCC" = "yes" ; then
9049 echo "$ac_t""yes" 1>&6
9050 cat >> confdefs.h
<<\EOF
9051 #define HAVE_HPUX_THREAD_SUPPORT 1
9054 CONFIG_OBS
="${CONFIG_OBS} hpux-thread.o"
9055 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
9057 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
9060 echo "$ac_t""no" 1>&6
9064 # See if thread_db library is around for Solaris thread debugging.
9065 # Note that we must explicitly test for version 1 of the library
9066 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
9068 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
9069 echo "configure:9070: checking for Solaris thread debugging library" >&5
9070 if test -f /usr
/lib
/libthread_db.so
.1 ; then
9071 echo "$ac_t""yes" 1>&6
9072 cat >> confdefs.h
<<\EOF
9073 #define HAVE_THREAD_DB_LIB 1
9076 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
9077 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
9078 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9079 echo "configure:9080: checking for dlopen in -ldl" >&5
9080 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
9081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9082 echo $ac_n "(cached) $ac_c" 1>&6
9084 ac_save_LIBS
="$LIBS"
9086 cat > conftest.
$ac_ext <<EOF
9087 #line 9088 "configure"
9088 #include "confdefs.h"
9089 /* Override any gcc2 internal prototype to avoid an error. */
9090 /* We use char because int might match the return type of a gcc2
9091 builtin and then its argument prototype would still apply. */
9098 if { (eval echo configure
:9099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9100 eval "ac_cv_lib_$ac_lib_var=yes"
9102 echo "configure: failed program was:" >&5
9103 cat conftest.
$ac_ext >&5
9105 eval "ac_cv_lib_$ac_lib_var=no"
9108 LIBS
="$ac_save_LIBS"
9111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9112 echo "$ac_t""yes" 1>&6
9113 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9114 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9115 cat >> confdefs.h
<<EOF
9116 #define $ac_tr_lib 1
9122 echo "$ac_t""no" 1>&6
9125 if test "$GCC" = "yes" ; then
9126 # The GNU linker requires the -export-dynamic option to make
9127 # all symbols visible in the dynamic symbol table.
9128 hold_ldflags
=$LDFLAGS
9129 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
9130 echo "configure:9131: checking for the ld -export-dynamic flag" >&5
9131 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
9132 cat > conftest.
$ac_ext <<EOF
9133 #line 9134 "configure"
9134 #include "confdefs.h"
9140 if { (eval echo configure
:9141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9144 echo "configure: failed program was:" >&5
9145 cat conftest.
$ac_ext >&5
9150 LDFLAGS
=$hold_ldflags
9151 echo "$ac_t""$found" 1>&6
9152 if test $found = yes; then
9153 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
9156 # Sun randomly tweaked the prototypes in <proc_service.h>
9158 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
9159 echo "configure:9160: checking if <proc_service.h> is old" >&5
9160 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
9161 echo $ac_n "(cached) $ac_c" 1>&6
9164 cat > conftest.
$ac_ext <<EOF
9165 #line 9166 "configure"
9166 #include "confdefs.h"
9168 #include <proc_service.h>
9170 (struct ps_prochandle*, psaddr_t, const void*, size_t);
9176 if { (eval echo configure
:9177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9178 gdb_cv_proc_service_is_old
=no
9180 echo "configure: failed program was:" >&5
9181 cat conftest.
$ac_ext >&5
9183 gdb_cv_proc_service_is_old
=yes
9189 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
9190 if test $gdb_cv_proc_service_is_old = yes; then
9191 cat >> confdefs.h
<<\EOF
9192 #define PROC_SERVICE_IS_OLD 1
9197 echo "$ac_t""no" 1>&6
9201 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
9202 echo "configure:9203: checking for AiX thread debugging library" >&5
9203 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
9204 echo $ac_n "(cached) $ac_c" 1>&6
9206 cat > conftest.
$ac_ext <<EOF
9207 #line 9208 "configure"
9208 #include "confdefs.h"
9209 #include <sys/pthdebug.h>
9211 #ifndef PTHDB_VERSION_3
9216 if { (eval echo configure
:9217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9218 gdb_cv_have_aix_thread_debug
=yes
9220 echo "configure: failed program was:" >&5
9221 cat conftest.
$ac_ext >&5
9223 gdb_cv_have_aix_thread_debug
=no
9228 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
9229 if test $gdb_cv_have_aix_thread_debug = yes; then
9230 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
9231 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
9232 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
9239 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
9240 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
9241 echo "configure:9242: checking whether <thread_db.h> has TD_NOTALLOC" >&5
9242 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
9243 echo $ac_n "(cached) $ac_c" 1>&6
9245 cat > conftest.
$ac_ext <<EOF
9246 #line 9247 "configure"
9247 #include "confdefs.h"
9248 #include <thread_db.h>
9250 int i = TD_NOTALLOC;
9253 if { (eval echo configure
:9254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9255 gdb_cv_thread_db_h_has_td_notalloc
=yes
9257 echo "configure: failed program was:" >&5
9258 cat conftest.
$ac_ext >&5
9260 gdb_cv_thread_db_h_has_td_notalloc
=no
9267 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
9269 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
9270 cat >> confdefs.h
<<\EOF
9271 #define THREAD_DB_HAS_TD_NOTALLOC 1
9276 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
9277 echo $ac_n "checking whether <sys/syscall.h> has __NR_tkill""... $ac_c" 1>&6
9278 echo "configure:9279: checking whether <sys/syscall.h> has __NR_tkill" >&5
9279 if eval "test \"`echo '$''{'gdb_cv_sys_syscall_h_has_tkill'+set}'`\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9282 cat > conftest.
$ac_ext <<EOF
9283 #line 9284 "configure"
9284 #include "confdefs.h"
9285 #include <sys/syscall.h>
9290 if { (eval echo configure
:9291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9292 gdb_cv_sys_syscall_h_has_tkill
=yes
9294 echo "configure: failed program was:" >&5
9295 cat conftest.
$ac_ext >&5
9297 gdb_cv_sys_syscall_h_has_tkill
=no
9304 echo "$ac_t""$gdb_cv_sys_syscall_h_has_tkill" 1>&6
9306 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
9307 cat >> confdefs.h
<<\EOF
9308 #define HAVE_TKILL_SYSCALL 1
9314 # Check whether --with-sysroot or --without-sysroot was given.
9315 if test "${with_sysroot+set}" = set; then
9316 withval
="$with_sysroot"
9318 case ${with_sysroot} in
9319 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
9320 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
9323 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
9325 if test "x$exec_prefix" = xNONE
; then
9326 if test "x$prefix" = xNONE
; then
9327 test_prefix
=/usr
/local
9332 test_prefix
=$exec_prefix
9334 case ${TARGET_SYSTEM_ROOT} in
9335 "${test_prefix}"|
"${test_prefix}/"*|\
9336 '${exec_prefix}'|
'${exec_prefix}/'*)
9337 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
9338 TARGET_SYSTEM_ROOT_DEFINE
="$t"
9345 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
9352 # NOTE: Don't add -Wall or -Wunused, they both include
9353 # -Wunused-parameter which reports bogus warnings.
9354 # NOTE: If you add to this list, remember to update
9355 # gdb/doc/gdbint.texinfo.
9356 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
9357 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
9358 -Wunused-label -Wunused-function"
9359 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
9360 # -Wunused-function -Wunused-variable -Wunused-value
9361 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
9362 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
9363 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
9364 # -Woverloaded-virtual -Winline -Werror"
9365 # Check whether --enable-build-warnings or --disable-build-warnings was given.
9366 if test "${enable_build_warnings+set}" = set; then
9367 enableval
="$enable_build_warnings"
9368 case "${enableval}" in
9370 no
) build_warnings
="-w";;
9371 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9372 build_warnings
="${build_warnings} ${t}";;
9373 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9374 build_warnings
="${t} ${build_warnings}";;
9375 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9377 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9378 echo "Setting compiler warning flags = $build_warnings" 6>&1
9381 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
9382 if test "${enable_gdb_build_warnings+set}" = set; then
9383 enableval
="$enable_gdb_build_warnings"
9384 case "${enableval}" in
9386 no
) build_warnings
="-w";;
9387 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9388 build_warnings
="${build_warnings} ${t}";;
9389 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9390 build_warnings
="${t} ${build_warnings}";;
9391 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9393 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9394 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
9399 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
9401 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
9402 echo "configure:9403: checking compiler warning flags" >&5
9403 # Separate out the -Werror flag as some files just cannot be
9404 # compiled with it enabled.
9405 for w
in ${build_warnings}; do
9407 -Werr*) WERROR_CFLAGS
=-Werror ;;
9408 *) # Check that GCC accepts it
9409 saved_CFLAGS
="$CFLAGS"
9411 cat > conftest.
$ac_ext <<EOF
9412 #line 9413 "configure"
9413 #include "confdefs.h"
9419 if { (eval echo configure
:9420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9421 WARN_CFLAGS
="${WARN_CFLAGS} $w"
9423 echo "configure: failed program was:" >&5
9424 cat conftest.
$ac_ext >&5
9427 CFLAGS
="$saved_CFLAGS"
9430 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
9435 # In the Cygwin environment, we need some additional flags.
9436 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
9437 echo "configure:9438: checking for cygwin" >&5
9438 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
9439 echo $ac_n "(cached) $ac_c" 1>&6
9441 cat > conftest.
$ac_ext <<EOF
9442 #line 9443 "configure"
9443 #include "confdefs.h"
9445 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
9449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9450 egrep "lose" >/dev
/null
2>&1; then
9452 gdb_cv_os_cygwin
=yes
9461 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
9464 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
9466 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
9467 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
9471 # libreadline needs libuser32.a in a cygwin environment
9473 if test x
$gdb_cv_os_cygwin = xyes
; then
9474 WIN32LIBS
="-luser32"
9476 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
9482 LIBGUI
="../libgui/src/libgui.a"
9483 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
9494 if test "${enable_gdbtk}" = "yes"; then
9496 # Gdbtk must have an absolute path to srcdir in order to run
9497 # properly when not installed.
9505 # Ok, lets find the tcl configuration
9506 # First, look for one uninstalled.
9507 # the alternative search directory is invoked by --with-tclconfig
9510 if test x
"${no_tcl}" = x
; then
9511 # we reset no_tcl in case something fails here
9513 # Check whether --with-tclconfig or --without-tclconfig was given.
9514 if test "${with_tclconfig+set}" = set; then
9515 withval
="$with_tclconfig"
9516 with_tclconfig
=${withval}
9519 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
9520 echo "configure:9521: checking for Tcl configuration" >&5
9521 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
9522 echo $ac_n "(cached) $ac_c" 1>&6
9526 # First check to see if --with-tclconfig was specified.
9527 if test x
"${with_tclconfig}" != x
; then
9528 if test -f "${with_tclconfig}/tclConfig.sh" ; then
9529 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
9531 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
9535 # then check for a private Tcl installation
9536 if test x
"${ac_cv_c_tclconfig}" = x
; then
9539 `ls -dr ../tcl[7-9]* 2>/dev/null` \
9541 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
9543 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
9544 if test -f "$i/${configdir}/tclConfig.sh" ; then
9545 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
9550 # check in a few common install locations
9551 if test x
"${ac_cv_c_tclconfig}" = x
; then
9552 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9553 if test -f "$i/tclConfig.sh" ; then
9554 ac_cv_c_tclconfig
=`(cd $i; pwd)`
9559 # check in a few other private locations
9560 if test x
"${ac_cv_c_tclconfig}" = x
; then
9563 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
9564 if test -f "$i/${configdir}/tclConfig.sh" ; then
9565 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
9573 if test x
"${ac_cv_c_tclconfig}" = x
; then
9574 TCLCONFIG
="# no Tcl configs found"
9575 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
9578 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
9579 echo "$ac_t""found $TCLCONFIG" 1>&6
9583 if test -z "${no_tcl}"; then
9614 # Ok, lets find the tk configuration
9615 # First, look for one uninstalled.
9616 # the alternative search directory is invoked by --with-tkconfig
9619 if test x
"${no_tk}" = x
; then
9620 # we reset no_tk in case something fails here
9622 # Check whether --with-tkconfig or --without-tkconfig was given.
9623 if test "${with_tkconfig+set}" = set; then
9624 withval
="$with_tkconfig"
9625 with_tkconfig
=${withval}
9628 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
9629 echo "configure:9630: checking for Tk configuration" >&5
9630 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
9631 echo $ac_n "(cached) $ac_c" 1>&6
9635 # First check to see if --with-tkconfig was specified.
9636 if test x
"${with_tkconfig}" != x
; then
9637 if test -f "${with_tkconfig}/tkConfig.sh" ; then
9638 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
9640 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
9644 # then check for a private Tk library
9645 if test x
"${ac_cv_c_tkconfig}" = x
; then
9648 `ls -dr ../tk[4-9]* 2>/dev/null` \
9650 `ls -dr ../../tk[4-9]* 2>/dev/null` \
9652 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
9653 if test -f "$i/${configdir}/tkConfig.sh" ; then
9654 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
9659 # check in a few common install locations
9660 if test x
"${ac_cv_c_tkconfig}" = x
; then
9661 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9662 if test -f "$i/tkConfig.sh" ; then
9663 ac_cv_c_tkconfig
=`(cd $i; pwd)`
9668 # check in a few other private locations
9669 if test x
"${ac_cv_c_tkconfig}" = x
; then
9672 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
9673 if test -f "$i/${configdir}/tkConfig.sh" ; then
9674 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
9682 if test x
"${ac_cv_c_tkconfig}" = x
; then
9683 TKCONFIG
="# no Tk configs found"
9684 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
9687 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
9688 echo "$ac_t""found $TKCONFIG" 1>&6
9694 # now look for Tcl library stuff
9705 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
9707 # If $no_tk is nonempty, then we can't do Tk, and there is no
9708 # point to doing Tcl.
9709 if test -z "${no_tk}"; then
9711 if test -f "$TKCONFIG" ; then
9729 # Ok, lets find the tcl source trees so we can use the headers
9730 # Warning: transition of version 9 to 10 will break this algorithm
9731 # because 10 sorts before 9. We also look for just tcl. We have to
9732 # be careful that we don't match stuff like tclX by accident.
9733 # the alternative search directory is involked by --with-tclinclude
9737 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
9738 echo "configure:9739: checking for Tcl private headers. dir=${configdir}" >&5
9739 # Check whether --with-tclinclude or --without-tclinclude was given.
9740 if test "${with_tclinclude+set}" = set; then
9741 withval
="$with_tclinclude"
9742 with_tclinclude
=${withval}
9745 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
9746 echo $ac_n "(cached) $ac_c" 1>&6
9749 # first check to see if --with-tclinclude was specified
9750 if test x
"${with_tclinclude}" != x
; then
9751 if test -f ${with_tclinclude}/tclInt.h
; then
9752 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
9753 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
9754 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
9756 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9760 # next check if it came with Tcl configuration file
9761 if test x
"${ac_cv_c_tclconfig}" = x
; then
9762 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
9763 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
9767 # next check in private source directory
9769 # since ls returns lowest version numbers first, reverse its output
9770 if test x
"${ac_cv_c_tclh}" = x
; then
9773 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
9774 ${srcdir}/..
/..
/tcl \
9775 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
9776 ${srcdir}/..
/..
/..
/tcl \
9777 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
9778 if test -f $i/generic
/tclInt.h
; then
9779 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9784 # finally check in a few common install locations
9786 # since ls returns lowest version numbers first, reverse its output
9787 if test x
"${ac_cv_c_tclh}" = x
; then
9789 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
9790 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
9791 /usr
/local
/src
/tcl \
9792 /usr
/local
/lib
/tcl \
9793 ${prefix}/include
; do
9794 if test -f $i/generic
/tclInt.h
; then
9795 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9800 # see if one is installed
9801 if test x
"${ac_cv_c_tclh}" = x
; then
9802 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
9803 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
9804 echo "configure:9805: checking for tclInt.h" >&5
9805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9806 echo $ac_n "(cached) $ac_c" 1>&6
9808 cat > conftest.
$ac_ext <<EOF
9809 #line 9810 "configure"
9810 #include "confdefs.h"
9813 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9814 { (eval echo configure
:9815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9815 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9816 if test -z "$ac_err"; then
9818 eval "ac_cv_header_$ac_safe=yes"
9821 echo "configure: failed program was:" >&5
9822 cat conftest.
$ac_ext >&5
9824 eval "ac_cv_header_$ac_safe=no"
9828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9829 echo "$ac_t""yes" 1>&6
9830 ac_cv_c_tclh
=installed
9832 echo "$ac_t""no" 1>&6
9840 if test x
"${ac_cv_c_tclh}" = x
; then
9841 TCLHDIR
="# no Tcl private headers found"
9842 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
9844 if test x
"${ac_cv_c_tclh}" != x
; then
9846 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
9847 echo "$ac_t""is installed" 1>&6
9850 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
9851 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
9852 TCLHDIR
="-I${ac_cv_c_tclh}"
9860 # Ok, lets find the tk source trees so we can use the headers
9861 # If the directory (presumably symlink) named "tk" exists, use that one
9862 # in preference to any others. Same logic is used when choosing library
9863 # and again with Tcl. The search order is the best place to look first, then in
9864 # decreasing significance. The loop breaks if the trigger file is found.
9865 # Note the gross little conversion here of srcdir by cd'ing to the found
9866 # directory. This converts the path from a relative to an absolute, so
9867 # recursive cache variables for the path will work right. We check all
9868 # the possible paths in one loop rather than many seperate loops to speed
9870 # the alternative search directory is involked by --with-tkinclude
9873 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
9874 echo "configure:9875: checking for Tk private headers" >&5
9875 # Check whether --with-tkinclude or --without-tkinclude was given.
9876 if test "${with_tkinclude+set}" = set; then
9877 withval
="$with_tkinclude"
9878 with_tkinclude
=${withval}
9881 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
9882 echo $ac_n "(cached) $ac_c" 1>&6
9885 # first check to see if --with-tkinclude was specified
9886 if test x
"${with_tkinclude}" != x
; then
9887 if test -f ${with_tkinclude}/tk.h
; then
9888 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
9889 elif test -f ${with_tkinclude}/generic
/tk.h
; then
9890 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
9892 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9896 # next check if it came with Tk configuration file
9897 if test x
"${ac_cv_c_tkconfig}" = x
; then
9898 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
9899 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
9903 # next check in private source directory
9905 # since ls returns lowest version numbers first, reverse its output
9906 if test x
"${ac_cv_c_tkh}" = x
; then
9909 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
9910 ${srcdir}/..
/..
/tk \
9911 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
9912 ${srcdir}/..
/..
/..
/tk \
9913 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
9914 if test -f $i/generic
/tk.h
; then
9915 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9920 # finally check in a few common install locations
9922 # since ls returns lowest version numbers first, reverse its output
9923 if test x
"${ac_cv_c_tkh}" = x
; then
9925 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
9926 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
9929 ${prefix}/include
; do
9930 if test -f $i/generic
/tk.h
; then
9931 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9936 # see if one is installed
9937 if test x
"${ac_cv_c_tkh}" = x
; then
9938 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
9939 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
9940 echo "configure:9941: checking for tk.h" >&5
9941 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9942 echo $ac_n "(cached) $ac_c" 1>&6
9944 cat > conftest.
$ac_ext <<EOF
9945 #line 9946 "configure"
9946 #include "confdefs.h"
9949 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9950 { (eval echo configure
:9951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9951 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9952 if test -z "$ac_err"; then
9954 eval "ac_cv_header_$ac_safe=yes"
9957 echo "configure: failed program was:" >&5
9958 cat conftest.
$ac_ext >&5
9960 eval "ac_cv_header_$ac_safe=no"
9964 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9965 echo "$ac_t""yes" 1>&6
9966 ac_cv_c_tkh
=installed
9968 echo "$ac_t""no" 1>&6
9976 if test x
"${ac_cv_c_tkh}" != x
; then
9978 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
9979 echo "$ac_t""is installed" 1>&6
9982 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
9983 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
9984 TKHDIR
="-I${ac_cv_c_tkh}"
9987 TKHDIR
="# no Tk directory found"
9988 echo "configure: warning: Can't find Tk private headers" 1>&2
9995 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9996 echo "configure:9997: checking for Itcl private headers. srcdir=${srcdir}" >&5
9997 if test x
"${ac_cv_c_itclh}" = x
; then
9998 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
9999 if test -f $i/generic
/itcl.h
; then
10000 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
10005 if test x
"${ac_cv_c_itclh}" = x
; then
10006 ITCLHDIR
="# no Itcl private headers found"
10007 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
10009 if test x
"${ac_cv_c_itclh}" != x
; then
10010 ITCLHDIR
="-I${ac_cv_c_itclh}"
10012 # should always be here
10013 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
10018 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
10019 echo "configure:10020: checking for Itk private headers. srcdir=${srcdir}" >&5
10020 if test x
"${ac_cv_c_itkh}" = x
; then
10021 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
10022 if test -f $i/generic
/itk.h
; then
10023 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
10028 if test x
"${ac_cv_c_itkh}" = x
; then
10029 ITKHDIR
="# no Itk private headers found"
10030 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
10032 if test x
"${ac_cv_c_itkh}" != x
; then
10033 ITKHDIR
="-I${ac_cv_c_itkh}"
10035 # should always be here
10036 # ITKLIB="../itcl/itk/unix/libitk.a"
10042 # now look for Tk library stuff
10053 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
10055 # now look for Itcl library stuff
10059 # Ok, lets find the itcl configuration
10060 # First, look for one uninstalled.
10061 # the alternative search directory is invoked by --with-itclconfig
10064 if test x
"${no_itcl}" = x
; then
10065 # we reset no_itcl in case something fails here
10067 # Check whether --with-itclconfig or --without-itclconfig was given.
10068 if test "${with_itclconfig+set}" = set; then
10069 withval
="$with_itclconfig"
10070 with_itclconfig
=${withval}
10073 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
10074 echo "configure:10075: checking for Itcl configuration" >&5
10075 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
10076 echo $ac_n "(cached) $ac_c" 1>&6
10080 # First check to see if --with-itclconfig was specified.
10081 if test x
"${with_itclconfig}" != x
; then
10082 if test -f "${with_itclconfig}/itclConfig.sh" ; then
10083 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
10085 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
10089 # then check for a private Itcl library
10090 if test x
"${ac_cv_c_itclconfig}" = x
; then
10093 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
10095 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
10097 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
10098 if test -f "$i/itclConfig.sh" ; then
10099 ac_cv_c_itclconfig
=`(cd $i; pwd)`
10104 # check in a few common install locations
10105 if test x
"${ac_cv_c_itclconfig}" = x
; then
10106 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10107 if test -f "$i/itclConfig.sh" ; then
10108 ac_cv_c_itclconfig
=`(cd $i; pwd)`
10113 # check in a few other private locations
10114 if test x
"${ac_cv_c_itclconfig}" = x
; then
10116 ${srcdir}/..
/itcl
/itcl \
10117 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
10118 if test -f "$i/itclConfig.sh" ; then
10119 ac_cv_c_itclconfig
=`(cd $i; pwd)`
10127 if test x
"${ac_cv_c_itclconfig}" = x
; then
10128 ITCLCONFIG
="# no Itcl configs found"
10129 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
10132 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
10133 echo "$ac_t""found $ITCLCONFIG" 1>&6
10137 if test -z "${no_itcl}"; then
10139 if test -f "$ITCLCONFIG" ; then
10154 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
10155 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
10159 # now look for Itk library stuff
10162 # Ok, lets find the itk configuration
10163 # First, look for one uninstalled.
10164 # the alternative search directory is invoked by --with-itkconfig
10167 if test x
"${no_itk}" = x
; then
10168 # we reset no_itk in case something fails here
10170 # Check whether --with-itkconfig or --without-itkconfig was given.
10171 if test "${with_itkconfig+set}" = set; then
10172 withval
="$with_itkconfig"
10173 with_itkconfig
=${withval}
10176 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
10177 echo "configure:10178: checking for Itk configuration" >&5
10178 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
10179 echo $ac_n "(cached) $ac_c" 1>&6
10183 # First check to see if --with-itkconfig was specified.
10184 if test x
"${with_itkconfig}" != x
; then
10185 if test -f "${with_itkconfig}/itkConfig.sh" ; then
10186 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
10188 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
10192 # then check for a private Itk library
10193 if test x
"${ac_cv_c_itkconfig}" = x
; then
10196 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
10198 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
10200 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
10201 if test -f "$i/itkConfig.sh" ; then
10202 ac_cv_c_itkconfig
=`(cd $i; pwd)`
10207 # check in a few common install locations
10208 if test x
"${ac_cv_c_itkconfig}" = x
; then
10209 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10210 if test -f "$i/itkConfig.sh" ; then
10211 ac_cv_c_itkconfig
=`(cd $i; pwd)`
10216 # check in a few other private locations
10217 if test x
"${ac_cv_c_itkconfig}" = x
; then
10219 ${srcdir}/..
/itcl
/itk \
10220 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
10221 if test -f "$i/itkConfig.sh" ; then
10222 ac_cv_c_itkconfig
=`(cd $i; pwd)`
10230 if test x
"${ac_cv_c_itkconfig}" = x
; then
10231 ITKCONFIG
="# no Itk configs found"
10232 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
10235 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
10236 echo "$ac_t""found $ITKCONFIG" 1>&6
10241 if test -z "${no_itcl}"; then
10243 if test -f "$ITKCONFIG" ; then
10258 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
10259 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
10262 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
10263 # Tcl/Tk 8.1 require -fwritable strings. I don't
10264 # know whether 8.2 will or not, but I bet it will.
10265 # I don't have to worry about 7.x since we don't support it.
10267 if test "$GCC" = "yes"; then
10268 if test "$TCL_VERSION" != "8.0" ; then
10269 GDBTK_CFLAGS
="-fwritable-strings"
10273 # Include some libraries that Tcl and Tk want.
10274 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
10275 # Yes, the ordering seems wrong here. But it isn't.
10276 # TK_LIBS is the list of libraries that need to be linked
10277 # after Tcl/Tk. Note that this isn't put into LIBS. If it
10278 # were in LIBS then any link tests after this point would
10279 # try to include things like `$(LIBGUI)', which wouldn't work.
10280 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
10282 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
10283 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
10284 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
10285 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
10286 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
10287 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
10288 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
10290 if test x
$gdb_cv_os_cygwin = xyes
; then
10291 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
10292 WIN32LDAPP
="-Wl,--subsystem,console"
10293 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
10298 configdirs
="${configdirs} gdbtk"
10314 # If we find X, set shell vars x_includes and x_libraries to the
10315 # paths, otherwise set no_x=yes.
10316 # Uses ac_ vars as temps to allow command line to override cache and checks.
10317 # --without-x overrides everything else, but does not touch the cache.
10318 echo $ac_n "checking for X""... $ac_c" 1>&6
10319 echo "configure:10320: checking for X" >&5
10321 # Check whether --with-x or --without-x was given.
10322 if test "${with_x+set}" = set; then
10327 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10328 if test "x$with_x" = xno
; then
10329 # The user explicitly disabled X.
10332 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
10333 # Both variables are already set.
10336 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10337 echo $ac_n "(cached) $ac_c" 1>&6
10339 # One or both of the vars are not set, and there is no cached value.
10340 ac_x_includes
=NO ac_x_libraries
=NO
10342 if mkdir conftestdir
; then
10344 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10345 cat > Imakefile
<<'EOF'
10347 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10349 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
10350 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10351 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10352 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10353 for ac_extension
in a so sl
; do
10354 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
10355 test -f $ac_im_libdir/libX11.
$ac_extension; then
10356 ac_im_usrlibdir
=$ac_im_libdir; break
10359 # Screen out bogus values from the imake configuration. They are
10360 # bogus both because they are the default anyway, and because
10361 # using them would break gcc on systems where it needs fixed includes.
10362 case "$ac_im_incroot" in
10364 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
10366 case "$ac_im_usrlibdir" in
10367 /usr
/lib |
/lib
) ;;
10368 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
10375 if test "$ac_x_includes" = NO
; then
10376 # Guess where to find include files, by looking for this one X11 .h file.
10377 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
10379 # First, try using that file with no special directory specified.
10380 cat > conftest.
$ac_ext <<EOF
10381 #line 10382 "configure"
10382 #include "confdefs.h"
10383 #include <$x_direct_test_include>
10385 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10386 { (eval echo configure
:10387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10387 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10388 if test -z "$ac_err"; then
10390 # We can compile using X headers with no special include directory.
10394 echo "configure: failed program was:" >&5
10395 cat conftest.
$ac_ext >&5
10397 # Look for the header file in a standard set of common directories.
10398 # Check X11 before X11Rn because it is often a symlink to the current release.
10401 /usr
/X11R
6/include \
10402 /usr
/X11R
5/include \
10403 /usr
/X11R
4/include \
10406 /usr
/include
/X11R6 \
10407 /usr
/include
/X11R5 \
10408 /usr
/include
/X11R4 \
10410 /usr
/local
/X11
/include \
10411 /usr
/local
/X11R
6/include \
10412 /usr
/local
/X11R
5/include \
10413 /usr
/local
/X11R
4/include \
10415 /usr
/local
/include
/X11 \
10416 /usr
/local
/include
/X11R6 \
10417 /usr
/local
/include
/X11R5 \
10418 /usr
/local
/include
/X11R4 \
10420 /usr
/X386
/include \
10421 /usr
/x386
/include \
10422 /usr
/XFree86
/include
/X11 \
10425 /usr
/local
/include \
10426 /usr
/unsupported
/include \
10427 /usr
/athena
/include \
10428 /usr
/local
/x11r
5/include \
10429 /usr
/lpp
/Xamples
/include \
10431 /usr
/openwin
/include \
10432 /usr
/openwin
/share
/include \
10435 if test -r "$ac_dir/$x_direct_test_include"; then
10436 ac_x_includes
=$ac_dir
10442 fi # $ac_x_includes = NO
10444 if test "$ac_x_libraries" = NO
; then
10445 # Check for the libraries.
10447 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
10448 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
10450 # See if we find them without any special options.
10451 # Don't add to $LIBS permanently.
10452 ac_save_LIBS
="$LIBS"
10453 LIBS
="-l$x_direct_test_library $LIBS"
10454 cat > conftest.
$ac_ext <<EOF
10455 #line 10456 "configure"
10456 #include "confdefs.h"
10459 ${x_direct_test_function}()
10462 if { (eval echo configure
:10463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10464 LIBS
="$ac_save_LIBS"
10465 # We can link X programs with no special library path.
10468 echo "configure: failed program was:" >&5
10469 cat conftest.
$ac_ext >&5
10471 LIBS
="$ac_save_LIBS"
10472 # First see if replacing the include by lib works.
10473 # Check X11 before X11Rn because it is often a symlink to the current release.
10474 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
10485 /usr
/local
/X11
/lib \
10486 /usr
/local
/X11R
6/lib \
10487 /usr
/local
/X11R
5/lib \
10488 /usr
/local
/X11R
4/lib \
10490 /usr
/local
/lib
/X11 \
10491 /usr
/local
/lib
/X11R6 \
10492 /usr
/local
/lib
/X11R5 \
10493 /usr
/local
/lib
/X11R4 \
10497 /usr
/XFree86
/lib
/X11 \
10501 /usr
/unsupported
/lib \
10503 /usr
/local
/x11r
5/lib \
10504 /usr
/lpp
/Xamples
/lib \
10508 /usr
/openwin
/share
/lib \
10511 for ac_extension
in a so sl
; do
10512 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
10513 ac_x_libraries
=$ac_dir
10520 fi # $ac_x_libraries = NO
10522 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
10523 # Didn't find X anywhere. Cache the known absence of X.
10524 ac_cv_have_x
="have_x=no"
10526 # Record where we found X for the cache.
10527 ac_cv_have_x
="have_x=yes \
10528 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10532 eval "$ac_cv_have_x"
10535 if test "$have_x" != yes; then
10536 echo "$ac_t""$have_x" 1>&6
10539 # If each of the values was on the command line, it overrides each guess.
10540 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
10541 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
10542 # Update the cache value to reflect the command line values.
10543 ac_cv_have_x
="have_x=yes \
10544 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10545 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10550 # Unlike the sim directory, whether a simulator is linked is controlled by
10551 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
10552 # This code just checks for a few cases where we'd like to ignore those
10553 # definitions, even when they're present in the '.mt' file. These cases
10554 # are when --disable-sim is specified, or if the simulator directory is
10555 # not part of the source tree.
10557 # Check whether --enable-sim or --disable-sim was given.
10558 if test "${enable_sim+set}" = set; then
10559 enableval
="$enable_sim"
10560 echo "enable_sim = $enable_sim";
10561 echo "enableval = ${enableval}";
10562 case "${enableval}" in
10563 yes) ignore_sim
=false
;;
10564 no
) ignore_sim
=true
;;
10565 *) ignore_sim
=false
;;
10572 if test ! -d "${srcdir}/../sim"; then
10576 if test "${ignore_sim}" = "true"; then
10578 IGNORE_SIM_OBS
="SIM_OBS="
10582 cat >> confdefs.h
<<\EOF
10601 # target_subdir is used by the testsuite to find the target libraries.
10603 if test "${host}" != "${target}"; then
10604 target_subdir
="${target_alias}/"
10609 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
10610 if test ! -f ${host_makefile_frag}; then
10611 # When building a native debuger the .mh file containing things
10612 # like NATDEPFILES is needed. Cross debuggers don't need .mh
10613 # since it no longer contains anything useful.
10614 if test "${target}" = "${host}"; then
10615 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
10617 host_makefile_frag
=/dev
/null
10620 frags
="$frags $host_makefile_frag"
10622 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
10623 if test ! -f ${target_makefile_frag}; then
10624 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
10626 frags
="$frags $target_makefile_frag"
10633 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10634 ' ${host_makefile_frag}`
10636 targetfile
=`sed -n '
10637 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10638 ' ${target_makefile_frag}`
10640 if test "${target}" = "${host}"; then
10641 # We pick this up from the host configuration file (.mh) because we
10642 # do not have a native configuration Makefile fragment.
10643 nativefile
=`sed -n '
10644 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10645 ' ${host_makefile_frag}`
10649 if test x
"${gdb_osabi}" != x
; then
10650 cat >> confdefs.h
<<EOF
10651 #define GDB_OSABI_DEFAULT $gdb_osabi
10656 # Enable multi-ice-gdb-server.
10657 # Check whether --enable-multi-ice or --disable-multi-ice was given.
10658 if test "${enable_multi_ice+set}" = set; then
10659 enableval
="$enable_multi_ice"
10663 *) { echo "configure: error: bad value $enableval for --enable-multi-ice" 1>&2; exit 1; } ;;
10667 if test "x$enable_multi_ice" = xyes
; then
10668 configdirs
="$configdirs multi-ice"
10671 # We only build gdbserver automatically if host and target are the same.
10672 if test "x$target" = "x$host"; then
10673 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
10674 echo "configure:10675: checking whether gdbserver is supported on this host" >&5
10675 if test "x$build_gdbserver" = xyes
; then
10676 configdirs
="$configdirs gdbserver"
10677 echo "$ac_t""yes" 1>&6
10679 echo "$ac_t""no" 1>&6
10683 subdirs
="doc testsuite $configdirs"
10686 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
10687 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
10695 if test "${hostfile}" != ""; then
10697 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
10698 files
="${files} ${GDB_XM_FILE}"
10699 links
="${links} xm.h"
10700 cat >> confdefs.h
<<EOF
10701 #define GDB_XM_FILE ${GDB_XM_FILE}
10709 if test "${targetfile}" != ""; then
10711 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
10712 files
="${files} ${GDB_TM_FILE}"
10713 links
="${links} tm.h"
10714 cat >> confdefs.h
<<EOF
10715 #define GDB_TM_FILE ${GDB_TM_FILE}
10723 if test "${nativefile}" != ""; then
10725 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
10726 files
="${files} ${GDB_NM_FILE}"
10727 links
="${links} nm.h"
10728 cat >> confdefs.h
<<EOF
10729 #define GDB_NM_FILE ${GDB_NM_FILE}
10737 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
10738 echo "configure:10739: checking for Cygwin environment" >&5
10739 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10742 cat > conftest.
$ac_ext <<EOF
10743 #line 10744 "configure"
10744 #include "confdefs.h"
10749 #define __CYGWIN__ __CYGWIN32__
10754 if { (eval echo configure
:10755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10758 echo "configure: failed program was:" >&5
10759 cat conftest.
$ac_ext >&5
10767 echo "$ac_t""$ac_cv_cygwin" 1>&6
10769 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
10770 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
10771 echo "configure:10772: checking for mingw32 environment" >&5
10772 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
10773 echo $ac_n "(cached) $ac_c" 1>&6
10775 cat > conftest.
$ac_ext <<EOF
10776 #line 10777 "configure"
10777 #include "confdefs.h"
10780 return __MINGW32__;
10783 if { (eval echo configure
:10784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10787 echo "configure: failed program was:" >&5
10788 cat conftest.
$ac_ext >&5
10796 echo "$ac_t""$ac_cv_mingw32" 1>&6
10798 test "$ac_cv_mingw32" = yes && MINGW32
=yes
10801 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
10802 echo "configure:10803: checking for executable suffix" >&5
10803 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
10804 echo $ac_n "(cached) $ac_c" 1>&6
10806 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
10810 echo 'int main () { return 0; }' > conftest.
$ac_ext
10812 if { (eval echo configure
:10813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
10813 for file in conftest.
*; do
10815 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
10816 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
10820 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
10823 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
10828 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
10829 echo "$ac_t""${ac_cv_exeext}" 1>&6
10834 cat >> confdefs.h
<<\EOF
10835 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
10841 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10842 if test "${with_libiconv_prefix+set}" = set; then
10843 withval
="$with_libiconv_prefix"
10845 for dir
in `echo "$withval" | tr : ' '`; do
10846 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
10847 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
10853 echo $ac_n "checking for iconv""... $ac_c" 1>&6
10854 echo "configure:10855: checking for iconv" >&5
10855 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
10856 echo $ac_n "(cached) $ac_c" 1>&6
10859 am_cv_func_iconv
="no, consider installing GNU libiconv"
10861 cat > conftest.
$ac_ext <<EOF
10862 #line 10863 "configure"
10863 #include "confdefs.h"
10864 #include <stdlib.h>
10867 iconv_t cd = iconv_open("","");
10868 iconv(cd,NULL,NULL,NULL,NULL);
10872 if { (eval echo configure
:10873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10874 am_cv_func_iconv
=yes
10876 echo "configure: failed program was:" >&5
10877 cat conftest.
$ac_ext >&5
10880 if test "$am_cv_func_iconv" != yes; then
10881 am_save_LIBS
="$LIBS"
10882 LIBS
="$LIBS -liconv"
10883 cat > conftest.
$ac_ext <<EOF
10884 #line 10885 "configure"
10885 #include "confdefs.h"
10886 #include <stdlib.h>
10889 iconv_t cd = iconv_open("","");
10890 iconv(cd,NULL,NULL,NULL,NULL);
10894 if { (eval echo configure
:10895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10896 am_cv_lib_iconv
=yes
10897 am_cv_func_iconv
=yes
10899 echo "configure: failed program was:" >&5
10900 cat conftest.
$ac_ext >&5
10903 LIBS
="$am_save_LIBS"
10908 echo "$ac_t""$am_cv_func_iconv" 1>&6
10909 if test "$am_cv_func_iconv" = yes; then
10910 cat >> confdefs.h
<<\EOF
10911 #define HAVE_ICONV 1
10914 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
10915 echo "configure:10916: checking for iconv declaration" >&5
10916 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
10917 echo $ac_n "(cached) $ac_c" 1>&6
10920 cat > conftest.
$ac_ext <<EOF
10921 #line 10922 "configure"
10922 #include "confdefs.h"
10924 #include <stdlib.h>
10930 #if defined(__STDC__) || defined(__cplusplus)
10931 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10940 if { (eval echo configure
:10941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10942 am_cv_proto_iconv_arg1
=""
10944 echo "configure: failed program was:" >&5
10945 cat conftest.
$ac_ext >&5
10947 am_cv_proto_iconv_arg1
="const"
10950 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);"
10953 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10954 echo "$ac_t""${ac_t:-
10955 }$am_cv_proto_iconv" 1>&6
10956 cat >> confdefs.h
<<EOF
10957 #define ICONV_CONST $am_cv_proto_iconv_arg1
10962 if test "$am_cv_lib_iconv" = yes; then
10969 cat > confcache
<<\EOF
10970 # This file is a shell script that caches the results of configure
10971 # tests run on this system so they can be shared between configure
10972 # scripts and configure runs. It is not useful on other systems.
10973 # If it contains results you don't want to keep, you may remove or edit it.
10975 # By default, configure uses ./config.cache as the cache file,
10976 # creating it if it does not exist already. You can give configure
10977 # the --cache-file=FILE option to use a different cache file; that is
10978 # what configure does when it calls configure scripts in
10979 # subdirectories, so they share the cache.
10980 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10981 # config.status only pays attention to the cache file if you give it the
10982 # --recheck option to rerun configure.
10985 # The following way of writing the cache mishandles newlines in values,
10986 # but we know of no workaround that is simple, portable, and efficient.
10987 # So, don't put newlines in cache variables' values.
10988 # Ultrix sh set writes to stderr and can't be redirected directly,
10989 # and sets the high bit in the cache file unless we assign to the vars.
10991 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10993 # `set' does not quote correctly, so add quotes (double-quote substitution
10994 # turns \\\\ into \\, and sed turns \\ into \).
10996 -e "s/'/'\\\\''/g" \
10997 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11000 # `set' quotes correctly as required by POSIX, so do not add quotes.
11001 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11004 if cmp -s $cache_file confcache
; then
11007 if test -w $cache_file; then
11008 echo "updating cache $cache_file"
11009 cat confcache
> $cache_file
11011 echo "not updating unwritable cache $cache_file"
11016 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11018 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11019 # Let make expand exec_prefix.
11020 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11022 # Any assignment to VPATH causes Sun make to only execute
11023 # the first set of double-colon rules, so remove it if not needed.
11024 # If there is a colon in the path, we need to keep it.
11025 if test "x$srcdir" = x.
; then
11026 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
11029 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11031 DEFS
=-DHAVE_CONFIG_H
11033 # Without the "./", some shells look in PATH for config.status.
11034 : ${CONFIG_STATUS=./config.status}
11036 echo creating
$CONFIG_STATUS
11037 rm -f $CONFIG_STATUS
11038 cat > $CONFIG_STATUS <<EOF
11040 # Generated automatically by configure.
11041 # Run this file to recreate the current configuration.
11042 # This directory was configured as follows,
11043 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11045 # $0 $ac_configure_args
11047 # Compiler output produced by configure, useful for debugging
11048 # configure, is in ./config.log if it exists.
11050 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11053 case "\$ac_option" in
11054 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11055 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11056 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11057 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11058 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11060 -help | --help | --hel | --he | --h)
11061 echo "\$ac_cs_usage"; exit 0 ;;
11062 *) echo "\$ac_cs_usage"; exit 1 ;;
11066 ac_given_srcdir=$srcdir
11067 ac_given_INSTALL="$INSTALL"
11069 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11071 cat >> $CONFIG_STATUS <<EOF
11073 # Protect against being on the right side of a sed subst in config.status.
11074 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11075 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11079 s%@CFLAGS@%$CFLAGS%g
11080 s%@CPPFLAGS@%$CPPFLAGS%g
11081 s%@CXXFLAGS@%$CXXFLAGS%g
11082 s%@FFLAGS@%$FFLAGS%g
11084 s%@LDFLAGS@%$LDFLAGS%g
11086 s%@exec_prefix@%$exec_prefix%g
11087 s%@prefix@%$prefix%g
11088 s%@program_transform_name@%$program_transform_name%g
11089 s%@bindir@%$bindir%g
11090 s%@sbindir@%$sbindir%g
11091 s%@libexecdir@%$libexecdir%g
11092 s%@datadir@%$datadir%g
11093 s%@sysconfdir@%$sysconfdir%g
11094 s%@sharedstatedir@%$sharedstatedir%g
11095 s%@localstatedir@%$localstatedir%g
11096 s%@libdir@%$libdir%g
11097 s%@includedir@%$includedir%g
11098 s%@oldincludedir@%$oldincludedir%g
11099 s%@infodir@%$infodir%g
11100 s%@mandir@%$mandir%g
11101 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
11102 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
11107 s%@host_alias@%$host_alias%g
11108 s%@host_cpu@%$host_cpu%g
11109 s%@host_vendor@%$host_vendor%g
11110 s%@host_os@%$host_os%g
11111 s%@target@%$target%g
11112 s%@target_alias@%$target_alias%g
11113 s%@target_cpu@%$target_cpu%g
11114 s%@target_vendor@%$target_vendor%g
11115 s%@target_os@%$target_os%g
11117 s%@build_alias@%$build_alias%g
11118 s%@build_cpu@%$build_cpu%g
11119 s%@build_vendor@%$build_vendor%g
11120 s%@build_os@%$build_os%g
11121 s%@RANLIB@%$RANLIB%g
11122 s%@SET_MAKE@%$SET_MAKE%g
11123 s%@ALLOCA@%$ALLOCA%g
11124 s%@USE_NLS@%$USE_NLS%g
11125 s%@MSGFMT@%$MSGFMT%g
11126 s%@GMSGFMT@%$GMSGFMT%g
11127 s%@XGETTEXT@%$XGETTEXT%g
11128 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
11129 s%@CATALOGS@%$CATALOGS%g
11130 s%@CATOBJEXT@%$CATOBJEXT%g
11131 s%@DATADIRNAME@%$DATADIRNAME%g
11132 s%@GMOFILES@%$GMOFILES%g
11133 s%@INSTOBJEXT@%$INSTOBJEXT%g
11134 s%@INTLDEPS@%$INTLDEPS%g
11135 s%@INTLLIBS@%$INTLLIBS%g
11136 s%@INTLOBJS@%$INTLOBJS%g
11137 s%@POFILES@%$POFILES%g
11139 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
11141 s%@GT_YES@%$GT_YES%g
11142 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
11144 s%@subdirs@%$subdirs%g
11146 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11147 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11148 s%@INSTALL_DATA@%$INSTALL_DATA%g
11152 s%@DLLTOOL@%$DLLTOOL%g
11153 s%@WINDRES@%$WINDRES%g
11155 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
11156 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
11157 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
11158 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
11159 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
11160 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
11161 s%@WIN32LIBS@%$WIN32LIBS%g
11162 s%@LIBGUI@%$LIBGUI%g
11163 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
11164 s%@WIN32LDAPP@%$WIN32LDAPP%g
11165 s%@TCL_VERSION@%$TCL_VERSION%g
11166 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
11167 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
11168 s%@TCL_CC@%$TCL_CC%g
11169 s%@TCL_DEFS@%$TCL_DEFS%g
11170 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
11171 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
11172 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
11173 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
11174 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
11175 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
11176 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
11177 s%@TCL_CC_SEARCH_FLAGS@%$TCL_CC_SEARCH_FLAGS%g
11178 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
11179 s%@TCL_RANLIB@%$TCL_RANLIB%g
11180 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
11181 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
11182 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
11183 s%@TK_VERSION@%$TK_VERSION%g
11184 s%@TK_DEFS@%$TK_DEFS%g
11185 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
11186 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
11187 s%@TK_XLIBSW@%$TK_XLIBSW%g
11188 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
11189 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
11190 s%@TCLHDIR@%$TCLHDIR%g
11191 s%@TKHDIR@%$TKHDIR%g
11192 s%@ITCLHDIR@%$ITCLHDIR%g
11193 s%@ITKHDIR@%$ITKHDIR%g
11194 s%@ITCL_VERSION@%$ITCL_VERSION%g
11195 s%@ITCL_DEFS@%$ITCL_DEFS%g
11196 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
11197 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
11198 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
11199 s%@ITK_VERSION@%$ITK_VERSION%g
11200 s%@ITK_DEFS@%$ITK_DEFS%g
11201 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
11202 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
11203 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
11204 s%@X_CFLAGS@%$X_CFLAGS%g
11205 s%@X_LDFLAGS@%$X_LDFLAGS%g
11206 s%@X_LIBS@%$X_LIBS%g
11207 s%@TCL_DEPS@%$TCL_DEPS%g
11208 s%@TK_DEPS@%$TK_DEPS%g
11209 s%@ITCLLIB@%$ITCLLIB%g
11210 s%@ITCL_DEPS@%$ITCL_DEPS%g
11211 s%@ITKLIB@%$ITKLIB%g
11212 s%@ITK_DEPS@%$ITK_DEPS%g
11213 s%@GDBTKLIBS@%$GDBTKLIBS%g
11214 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
11215 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
11216 s%@IGNORE_SIM@%$IGNORE_SIM%g
11217 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
11218 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
11219 s%@PROFILE_CFLAGS@%$PROFILE_CFLAGS%g
11220 s%@CONFIG_OBS@%$CONFIG_OBS%g
11221 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
11222 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
11223 s%@CONFIG_ALL@%$CONFIG_ALL%g
11224 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
11225 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
11226 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
11227 s%@target_subdir@%$target_subdir%g
11228 /@host_makefile_frag@/r $host_makefile_frag
11229 s%@host_makefile_frag@%%g
11230 /@target_makefile_frag@/r $target_makefile_frag
11231 s%@target_makefile_frag@%%g
11236 s%@EXEEXT@%$EXEEXT%g
11237 s%@LIBICONV@%$LIBICONV%g
11242 cat >> $CONFIG_STATUS <<\EOF
11244 # Split the substitutions into bite-sized pieces for seds with
11245 # small command number limits, like on Digital OSF/1 and HP-UX.
11246 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
11247 ac_file
=1 # Number of current file.
11248 ac_beg
=1 # First line for current file.
11249 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
11252 while $ac_more_lines; do
11253 if test $ac_beg -gt 1; then
11254 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
11256 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
11258 if test ! -s conftest.s
$ac_file; then
11259 ac_more_lines
=false
11260 rm -f conftest.s
$ac_file
11262 if test -z "$ac_sed_cmds"; then
11263 ac_sed_cmds
="sed -f conftest.s$ac_file"
11265 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
11267 ac_file
=`expr $ac_file + 1`
11269 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
11272 if test -z "$ac_sed_cmds"; then
11277 cat >> $CONFIG_STATUS <<EOF
11279 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
11281 cat >> $CONFIG_STATUS <<\EOF
11282 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
11283 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11285 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11286 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11287 *) ac_file_in
="${ac_file}.in" ;;
11290 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11292 # Remove last slash and all that follows it. Not all systems have dirname.
11293 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11294 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
11295 # The file is in a subdirectory.
11296 test ! -d "$ac_dir" && mkdir
"$ac_dir"
11297 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
11298 # A "../" for each directory in $ac_dir_suffix.
11299 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11301 ac_dir_suffix
= ac_dots
=
11304 case "$ac_given_srcdir" in
11306 if test -z "$ac_dots"; then top_srcdir
=.
11307 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11308 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
11309 *) # Relative path.
11310 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11311 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
11314 case "$ac_given_INSTALL" in
11315 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
11316 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
11319 echo creating
"$ac_file"
11321 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11323 *Makefile
*) ac_comsub
="1i\\
11324 # $configure_input" ;;
11328 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11330 s%@configure_input@%$configure_input%g
11331 s%@srcdir@%$srcdir%g
11332 s%@top_srcdir@%$top_srcdir%g
11333 s%@INSTALL@%$INSTALL%g
11334 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
11338 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11339 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11341 # ac_d sets the value in "#define NAME VALUE" lines.
11342 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11343 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
11346 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11347 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11348 ac_uB
='\([ ]\)%\1#\2define\3'
11351 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11352 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11353 ac_eB
='$%\1#\2define\3'
11357 if test "${CONFIG_HEADERS+set}" != set; then
11359 cat >> $CONFIG_STATUS <<EOF
11360 CONFIG_HEADERS="config.h:config.in"
11362 cat >> $CONFIG_STATUS <<\EOF
11364 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
11365 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11367 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11368 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11369 *) ac_file_in
="${ac_file}.in" ;;
11372 echo creating
$ac_file
11374 rm -f conftest.frag conftest.
in conftest.out
11375 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11376 cat $ac_file_inputs > conftest.
in
11380 # Transform confdefs.h into a sed script conftest.vals that substitutes
11381 # the proper values into config.h.in to produce config.h. And first:
11382 # Protect against being on the right side of a sed subst in config.status.
11383 # Protect against being in an unquoted here document in config.status.
11384 rm -f conftest.vals
11385 cat > conftest.hdr
<<\EOF
11388 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11392 sed -n -f conftest.hdr confdefs.h > conftest.vals
11395 # This sed command replaces #undef with comments. This is necessary, for
11396 # example, in the case of _POSIX_SOURCE, which is predefined and required
11397 # on some systems where configure will not decide to define it.
11398 cat >> conftest.vals <<\EOF
11399 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11402 # Break up conftest.vals because some shells have a limit on
11403 # the size of here documents, and old seds have small limits too.
11405 rm -f conftest.tail
11408 ac_lines=`grep -c . conftest.vals
`
11409 # grep -c gives empty output for an empty file on some AIX systems.
11410 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11411 # Write a limited-size here document to conftest.frag.
11412 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11413 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11415 sed -f conftest.frag conftest.in > conftest.out
11417 mv conftest.out conftest.in
11418 ' >> $CONFIG_STATUS
11419 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11420 rm -f conftest.vals
11421 mv conftest.tail conftest.vals
11423 rm -f conftest.vals
11425 cat >> $CONFIG_STATUS <<\EOF
11426 rm -f conftest.frag conftest.h
11427 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11428 cat conftest.in >> conftest.h
11430 if cmp -s $ac_file conftest.h 2>/dev/null; then
11431 echo "$ac_file is unchanged"
11434 # Remove last slash and all that follows it. Not all systems have dirname.
11435 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
11436 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11437 # The file is in a subdirectory.
11438 test ! -d "$ac_dir" && mkdir "$ac_dir"
11441 mv conftest.h $ac_file
11447 cat >> $CONFIG_STATUS <<EOF
11448 ac_sources="$files"
11452 cat >> $CONFIG_STATUS <<\EOF
11453 srcdir=$ac_given_srcdir
11454 while test -n "$ac_sources"; do
11455 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
11456 set $ac_sources; ac_source=$1; shift; ac_sources=$*
11458 echo "linking $srcdir/$ac_source to $ac_dest"
11460 if test ! -r $srcdir/$ac_source; then
11461 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
11465 # Make relative symlinks.
11466 # Remove last slash and all that follows it. Not all systems have dirname.
11467 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
11468 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
11469 # The dest file is in a subdirectory.
11470 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
11471 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
11472 # A "../" for each directory in $ac_dest_dir_suffix.
11473 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
11475 ac_dest_dir_suffix= ac_dots=
11479 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
11480 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
11483 # Make a symlink if possible; otherwise try a hard link.
11484 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
11485 ln $srcdir/$ac_source $ac_dest; then :
11487 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
11491 cat >> $CONFIG_STATUS <<EOF
11493 gdb_host_cpu=$gdb_host_cpu
11494 gdb_target_cpu=$gdb_target_cpu
11495 nativefile=$nativefile
11498 cat >> $CONFIG_STATUS <<\EOF
11500 if test "${nativefile}" = ""; then
11502 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
11503 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
11504 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
11506 mv -f Makefile.tem Makefile
11509 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
11510 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
11511 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
11512 mv -f Makefile.tmp Makefile
11515 case x$CONFIG_HEADERS in
11516 xconfig.h:config.in)
11522 chmod +x $CONFIG_STATUS
11523 rm -fr confdefs* $ac_clean_files
11524 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
11526 if test "$no_recursion" != yes; then
11528 # Remove --cache-file and --srcdir arguments so they do not pile up.
11529 ac_sub_configure_args=
11531 for ac_arg in $ac_configure_args; do
11532 if test -n "$ac_prev"; then
11537 -cache-file | --cache-file | --cache-fil | --cache-fi \
11538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11539 ac_prev=cache_file ;;
11540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
11543 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11545 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11547 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
11551 for ac_config_dir in doc testsuite $configdirs; do
11553 # Do not complain, so a configure script can configure whichever
11554 # parts of a large source tree are present.
11555 if test ! -d $srcdir/$ac_config_dir; then
11559 echo configuring in $ac_config_dir
11564 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
11566 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
11574 # A "../" for each directory in /$ac_config_dir.
11575 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
11578 .) # No --srcdir option. We are building in place.
11579 ac_sub_srcdir=$srcdir ;;
11580 /*) # Absolute path.
11581 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
11582 *) # Relative path.
11583 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
11586 # Check for guested configure; otherwise get Cygnus style configure.
11587 if test -f $ac_sub_srcdir/configure; then
11588 ac_sub_configure=$ac_sub_srcdir/configure
11589 elif test -f $ac_sub_srcdir/configure.in; then
11590 ac_sub_configure=$ac_configure
11592 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
11596 # The recursion is here.
11597 if test -n "$ac_sub_configure"; then
11599 # Make the cache file name correct relative to the subdirectory.
11600 case "$cache_file" in
11601 /*) ac_sub_cache_file=$cache_file ;;
11602 *) # Relative path.
11603 ac_sub_cache_file="$ac_dots$cache_file" ;;
11605 case "$ac_given_INSTALL" in
11606 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11607 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11610 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
11611 # The eval makes quoting arguments work.
11612 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
11615 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }