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 --disable-gdbcli disable command-line interface (CLI)"
24 --disable-gdbmi disable machine-interface (MI)"
26 --enable-tui enable full-screen terminal user interface (TUI)"
28 --without-included-regex don't use included regex; this is the default
29 on systems with version 2 of the GNU C library
30 (use with caution on other system)"
32 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
34 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
36 --with-mmalloc Use memory mapped malloc package"
38 --enable-gdbtk Enable GDBTK GUI front end"
40 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
42 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
44 --with-tclinclude=DIR Directory where tcl private headers are"
46 --with-tkinclude=DIR Directory where tk private headers are"
48 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
50 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
52 --with-x use the X Window System"
54 --enable-sim Link gdb with simulator"
56 --enable-shared Use shared libraries"
58 --enable-multi-ice build the multi-ice-gdb-server"
60 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
62 # Initialize some variables set by options.
63 # The variables have the same names as the options, with
64 # dashes changed to underlines.
66 cache_file
=.
/config.cache
75 program_transform_name
=s
,x
,x
,
84 bindir
='${exec_prefix}/bin'
85 sbindir
='${exec_prefix}/sbin'
86 libexecdir
='${exec_prefix}/libexec'
87 datadir
='${prefix}/share'
88 sysconfdir
='${prefix}/etc'
89 sharedstatedir
='${prefix}/com'
90 localstatedir
='${prefix}/var'
91 libdir
='${exec_prefix}/lib'
92 includedir
='${prefix}/include'
93 oldincludedir
='/usr/include'
94 infodir
='${prefix}/info'
95 mandir
='${prefix}/man'
97 # Initialize some other variables.
100 SHELL
=${CONFIG_SHELL-/bin/sh}
101 # Maximum number of lines to put in a shell here document.
108 # If the previous option needs an argument, assign it.
109 if test -n "$ac_prev"; then
110 eval "$ac_prev=\$ac_option"
116 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120 # Accept the important Cygnus configure options, so we can diagnose typos.
124 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
126 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
127 bindir
="$ac_optarg" ;;
129 -build |
--build |
--buil |
--bui |
--bu)
131 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
132 build
="$ac_optarg" ;;
134 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
135 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
136 ac_prev
=cache_file
;;
137 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
138 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
139 cache_file
="$ac_optarg" ;;
141 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
143 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
145 datadir
="$ac_optarg" ;;
147 -disable-* |
--disable-*)
148 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
154 eval "enable_${ac_feature}=no" ;;
156 -enable-* |
--enable-*)
157 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}='$ac_optarg'" ;;
169 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
170 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
171 |
--exec |
--exe |
--ex)
172 ac_prev
=exec_prefix
;;
173 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
174 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
175 |
--exec=* |
--exe=* |
--ex=*)
176 exec_prefix
="$ac_optarg" ;;
178 -gas |
--gas |
--ga |
--g)
179 # Obsolete; use --with-gas.
182 -help |
--help |
--hel |
--he)
183 # Omit some internal or obsolete options to make the list less imposing.
184 # This message is too long to be a string in the A/UX 3.1 sh.
186 Usage: configure [options] [host]
187 Options: [defaults in brackets after descriptions]
189 --cache-file=FILE cache test results in FILE
190 --help print this message
191 --no-create do not create output files
192 --quiet, --silent do not print \`checking...' messages
193 --site-file=FILE use FILE as the site file
194 --version print the version of autoconf that created configure
195 Directory and file names:
196 --prefix=PREFIX install architecture-independent files in PREFIX
198 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
200 --bindir=DIR user executables in DIR [EPREFIX/bin]
201 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
202 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
203 --datadir=DIR read-only architecture-independent data in DIR
205 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
206 --sharedstatedir=DIR modifiable architecture-independent data in DIR
208 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
209 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
210 --includedir=DIR C header files in DIR [PREFIX/include]
211 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
212 --infodir=DIR info documentation in DIR [PREFIX/info]
213 --mandir=DIR man documentation in DIR [PREFIX/man]
214 --srcdir=DIR find the sources in DIR [configure dir or ..]
215 --program-prefix=PREFIX prepend PREFIX to installed program names
216 --program-suffix=SUFFIX append SUFFIX to installed program names
217 --program-transform-name=PROGRAM
218 run sed PROGRAM on installed program names
222 --build=BUILD configure for building on BUILD [BUILD=HOST]
223 --host=HOST configure for HOST [guessed]
224 --target=TARGET configure for TARGET [TARGET=HOST]
225 Features and packages:
226 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
227 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
228 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
229 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
230 --x-includes=DIR X include files are in DIR
231 --x-libraries=DIR X library files are in DIR
233 if test -n "$ac_help"; then
234 echo "--enable and --with options recognized:$ac_help"
238 -host |
--host |
--hos |
--ho)
240 -host=* |
--host=* |
--hos=* |
--ho=*)
243 -includedir |
--includedir |
--includedi |
--included |
--include \
244 |
--includ |
--inclu |
--incl |
--inc)
245 ac_prev
=includedir
;;
246 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
247 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
248 includedir
="$ac_optarg" ;;
250 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
252 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
253 infodir
="$ac_optarg" ;;
255 -libdir |
--libdir |
--libdi |
--libd)
257 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
258 libdir
="$ac_optarg" ;;
260 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
261 |
--libexe |
--libex |
--libe)
262 ac_prev
=libexecdir
;;
263 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
264 |
--libexe=* |
--libex=* |
--libe=*)
265 libexecdir
="$ac_optarg" ;;
267 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
268 |
--localstate |
--localstat |
--localsta |
--localst \
269 |
--locals |
--local |
--loca |
--loc |
--lo)
270 ac_prev
=localstatedir
;;
271 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
272 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
273 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
274 localstatedir
="$ac_optarg" ;;
276 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
278 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
279 mandir
="$ac_optarg" ;;
282 # Obsolete; use --without-fp.
285 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
289 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
290 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
293 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
294 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
295 |
--oldin |
--oldi |
--old |
--ol |
--o)
296 ac_prev
=oldincludedir
;;
297 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
298 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
299 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
300 oldincludedir
="$ac_optarg" ;;
302 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
304 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
305 prefix
="$ac_optarg" ;;
307 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
308 |
--program-pre |
--program-pr |
--program-p)
309 ac_prev
=program_prefix
;;
310 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
311 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
312 program_prefix
="$ac_optarg" ;;
314 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
315 |
--program-suf |
--program-su |
--program-s)
316 ac_prev
=program_suffix
;;
317 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
318 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
319 program_suffix
="$ac_optarg" ;;
321 -program-transform-name |
--program-transform-name \
322 |
--program-transform-nam |
--program-transform-na \
323 |
--program-transform-n |
--program-transform- \
324 |
--program-transform |
--program-transfor \
325 |
--program-transfo |
--program-transf \
326 |
--program-trans |
--program-tran \
327 |
--progr-tra |
--program-tr |
--program-t)
328 ac_prev
=program_transform_name
;;
329 -program-transform-name=* |
--program-transform-name=* \
330 |
--program-transform-nam=* |
--program-transform-na=* \
331 |
--program-transform-n=* |
--program-transform-=* \
332 |
--program-transform=* |
--program-transfor=* \
333 |
--program-transfo=* |
--program-transf=* \
334 |
--program-trans=* |
--program-tran=* \
335 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
336 program_transform_name
="$ac_optarg" ;;
338 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
339 |
-silent |
--silent |
--silen |
--sile |
--sil)
342 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
344 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
346 sbindir
="$ac_optarg" ;;
348 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
349 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
350 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
352 ac_prev
=sharedstatedir
;;
353 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
354 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
355 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
357 sharedstatedir
="$ac_optarg" ;;
359 -site |
--site |
--sit)
361 -site=* |
--site=* |
--sit=*)
364 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
366 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
367 sitefile
="$ac_optarg" ;;
369 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
371 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
372 srcdir
="$ac_optarg" ;;
374 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
375 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
376 ac_prev
=sysconfdir
;;
377 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
378 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
379 sysconfdir
="$ac_optarg" ;;
381 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
383 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
384 target
="$ac_optarg" ;;
386 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
389 -version |
--version |
--versio |
--versi |
--vers)
390 echo "configure generated by autoconf version 2.13"
394 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package
=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* |
--without-*)
407 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package
=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
416 # Obsolete; use --with-x.
419 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
420 |
--x-incl |
--x-inc |
--x-in |
--x-i)
421 ac_prev
=x_includes
;;
422 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
423 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
424 x_includes
="$ac_optarg" ;;
426 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
427 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
428 ac_prev
=x_libraries
;;
429 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
430 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
431 x_libraries
="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE
; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
481 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
482 |
--no-cr |
--no-c) ;;
483 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
484 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
485 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest
* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file
=main.c
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted
=yes
513 # Try the directory containing this script, then its parent.
515 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
518 if test ! -r $srcdir/$ac_unique_file; then
522 ac_srcdir_defaulted
=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$sitefile"; then
535 if test -z "$CONFIG_SITE"; then
536 if test "x$prefix" != xNONE
; then
537 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
539 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
543 CONFIG_SITE
="$sitefile"
545 for ac_site_file
in $CONFIG_SITE; do
546 if test -r "$ac_site_file"; then
547 echo "loading site script $ac_site_file"
552 if test -r "$cache_file"; then
553 echo "loading cache $cache_file"
556 echo "creating cache $cache_file"
561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
562 ac_cpp
='$CPP $CPPFLAGS'
563 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
564 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
565 cross_compiling
=$ac_cv_prog_cc_cross
569 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
570 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
571 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
578 ac_n
= ac_c
='\c' ac_t
=
583 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
584 echo "configure:585: checking whether to enable maintainer-specific portions of Makefiles" >&5
585 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
586 if test "${enable_maintainer_mode+set}" = set; then
587 enableval
="$enable_maintainer_mode"
588 USE_MAINTAINER_MODE
=$enableval
590 USE_MAINTAINER_MODE
=no
593 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
596 if test $USE_MAINTAINER_MODE = yes; then
597 MAINTAINER_MODE_TRUE
=
598 MAINTAINER_MODE_FALSE
='#'
600 MAINTAINER_MODE_TRUE
='#'
601 MAINTAINER_MODE_FALSE
=
603 MAINT
=$MAINTAINER_MODE_TRUE
607 # Extract the first word of "gcc", so it can be a program name with args.
608 set dummy gcc
; ac_word
=$2
609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
610 echo "configure:611: checking for $ac_word" >&5
611 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
612 echo $ac_n "(cached) $ac_c" 1>&6
614 if test -n "$CC"; then
615 ac_cv_prog_CC
="$CC" # Let the user override the test.
617 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
619 for ac_dir
in $ac_dummy; do
620 test -z "$ac_dir" && ac_dir
=.
621 if test -f $ac_dir/$ac_word; then
630 if test -n "$CC"; then
631 echo "$ac_t""$CC" 1>&6
633 echo "$ac_t""no" 1>&6
636 if test -z "$CC"; then
637 # Extract the first word of "cc", so it can be a program name with args.
638 set dummy cc
; ac_word
=$2
639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
640 echo "configure:641: checking for $ac_word" >&5
641 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
642 echo $ac_n "(cached) $ac_c" 1>&6
644 if test -n "$CC"; then
645 ac_cv_prog_CC
="$CC" # Let the user override the test.
647 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
650 for ac_dir
in $ac_dummy; do
651 test -z "$ac_dir" && ac_dir
=.
652 if test -f $ac_dir/$ac_word; then
653 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
662 if test $ac_prog_rejected = yes; then
663 # We found a bogon in the path, so make sure we never use it.
664 set dummy
$ac_cv_prog_CC
666 if test $# -gt 0; then
667 # We chose a different compiler from the bogus one.
668 # However, it has the same basename, so the bogon will be chosen
669 # first if we set CC to just the basename; use the full file name.
671 set dummy
"$ac_dir/$ac_word" "$@"
679 if test -n "$CC"; then
680 echo "$ac_t""$CC" 1>&6
682 echo "$ac_t""no" 1>&6
685 if test -z "$CC"; then
688 # Extract the first word of "cl", so it can be a program name with args.
689 set dummy cl
; ac_word
=$2
690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
691 echo "configure:692: checking for $ac_word" >&5
692 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
695 if test -n "$CC"; then
696 ac_cv_prog_CC
="$CC" # Let the user override the test.
698 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
700 for ac_dir
in $ac_dummy; do
701 test -z "$ac_dir" && ac_dir
=.
702 if test -f $ac_dir/$ac_word; then
711 if test -n "$CC"; then
712 echo "$ac_t""$CC" 1>&6
714 echo "$ac_t""no" 1>&6
719 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
722 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
723 echo "configure:724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
726 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
727 ac_cpp
='$CPP $CPPFLAGS'
728 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
729 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
730 cross_compiling
=$ac_cv_prog_cc_cross
732 cat > conftest.
$ac_ext << EOF
734 #line 735 "configure"
735 #include "confdefs.h"
739 if { (eval echo configure
:740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
740 ac_cv_prog_cc_works
=yes
741 # If we can't run a trivial program, we are probably using a cross compiler.
742 if (.
/conftest
; exit) 2>/dev
/null
; then
743 ac_cv_prog_cc_cross
=no
745 ac_cv_prog_cc_cross
=yes
748 echo "configure: failed program was:" >&5
749 cat conftest.
$ac_ext >&5
750 ac_cv_prog_cc_works
=no
754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
755 ac_cpp
='$CPP $CPPFLAGS'
756 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
757 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
758 cross_compiling
=$ac_cv_prog_cc_cross
760 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
761 if test $ac_cv_prog_cc_works = no
; then
762 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
764 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
765 echo "configure:766: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
766 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
767 cross_compiling
=$ac_cv_prog_cc_cross
769 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
770 echo "configure:771: checking whether we are using GNU C" >&5
771 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
772 echo $ac_n "(cached) $ac_c" 1>&6
774 cat > conftest.c
<<EOF
779 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
786 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
788 if test $ac_cv_prog_gcc = yes; then
794 ac_test_CFLAGS
="${CFLAGS+set}"
795 ac_save_CFLAGS
="$CFLAGS"
797 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
798 echo "configure:799: checking whether ${CC-cc} accepts -g" >&5
799 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
800 echo $ac_n "(cached) $ac_c" 1>&6
802 echo 'void f(){}' > conftest.c
803 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
812 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
813 if test "$ac_test_CFLAGS" = set; then
814 CFLAGS
="$ac_save_CFLAGS"
815 elif test $ac_cv_prog_cc_g = yes; then
816 if test "$GCC" = yes; then
822 if test "$GCC" = yes; then
829 cat >> confdefs.h
<<\EOF
830 #define _GNU_SOURCE 1
834 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
835 echo "configure:836: checking how to run the C preprocessor" >&5
836 # On Suns, sometimes $CPP names a directory.
837 if test -n "$CPP" && test -d "$CPP"; then
840 if test -z "$CPP"; then
841 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
842 echo $ac_n "(cached) $ac_c" 1>&6
844 # This must be in double quotes, not single quotes, because CPP may get
845 # substituted into the Makefile and "${CC-cc}" will confuse make.
847 # On the NeXT, cc -E runs the code through the compiler's parser,
848 # not just through cpp.
849 cat > conftest.
$ac_ext <<EOF
850 #line 851 "configure"
851 #include "confdefs.h"
855 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
856 { (eval echo configure
:857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
857 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
858 if test -z "$ac_err"; then
862 echo "configure: failed program was:" >&5
863 cat conftest.
$ac_ext >&5
865 CPP
="${CC-cc} -E -traditional-cpp"
866 cat > conftest.
$ac_ext <<EOF
867 #line 868 "configure"
868 #include "confdefs.h"
872 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
873 { (eval echo configure
:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
874 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
875 if test -z "$ac_err"; then
879 echo "configure: failed program was:" >&5
880 cat conftest.
$ac_ext >&5
882 CPP
="${CC-cc} -nologo -E"
883 cat > conftest.
$ac_ext <<EOF
884 #line 885 "configure"
885 #include "confdefs.h"
889 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
890 { (eval echo configure
:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
891 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
892 if test -z "$ac_err"; then
896 echo "configure: failed program was:" >&5
897 cat conftest.
$ac_ext >&5
906 ac_cv_prog_CPP
="$CPP"
908 CPP
="$ac_cv_prog_CPP"
910 ac_cv_prog_CPP
="$CPP"
912 echo "$ac_t""$CPP" 1>&6
914 echo $ac_n "checking for AIX""... $ac_c" 1>&6
915 echo "configure:916: checking for AIX" >&5
916 cat > conftest.
$ac_ext <<EOF
917 #line 918 "configure"
918 #include "confdefs.h"
924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
925 egrep "yes" >/dev
/null
2>&1; then
927 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
928 #define _ALL_SOURCE 1
933 echo "$ac_t""no" 1>&6
938 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
939 echo "configure:940: checking for POSIXized ISC" >&5
940 if test -d /etc
/conf
/kconfig.d
&&
941 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
943 echo "$ac_t""yes" 1>&6
944 ISC
=yes # If later tests want to check for ISC.
945 cat >> confdefs.h
<<\EOF
946 #define _POSIX_SOURCE 1
949 if test "$GCC" = yes; then
955 echo "$ac_t""no" 1>&6
962 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
963 echo "configure:964: checking for ${CC-cc} option to accept ANSI C" >&5
964 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 am_cv_prog_cc_stdc
=no
969 # Don't try gcc -ansi; that turns off useful extensions and
970 # breaks some systems' header files.
972 # Ultrix and OSF/1 -std1
973 # HP-UX 10.20 and later -Ae
974 # HP-UX older versions -Aa -D_HPUX_SOURCE
975 # SVR4 -Xc -D__EXTENSIONS__
976 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
978 CC
="$ac_save_CC $ac_arg"
979 cat > conftest.
$ac_ext <<EOF
980 #line 981 "configure"
981 #include "confdefs.h"
984 #include <sys/types.h>
985 #include <sys/stat.h>
986 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
987 struct buf { int x; };
988 FILE * (*rcsopen) (struct buf *, struct stat *, int);
989 static char *e (p, i)
995 static char *f (char * (*g) (char **, int), char **p, ...)
1000 s = g (p, va_arg (v,int));
1004 int test (int i, double x);
1005 struct s1 {int (*f) (int a);};
1006 struct s2 {int (*f) (double a);};
1007 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1013 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1017 if { (eval echo configure
:1018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1019 am_cv_prog_cc_stdc
="$ac_arg"; break
1021 echo "configure: failed program was:" >&5
1022 cat conftest.
$ac_ext >&5
1030 if test -z "$am_cv_prog_cc_stdc"; then
1031 echo "$ac_t""none needed" 1>&6
1033 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1035 case "x$am_cv_prog_cc_stdc" in
1037 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1042 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1043 if test -f $ac_dir/install-sh
; then
1045 ac_install_sh
="$ac_aux_dir/install-sh -c"
1047 elif test -f $ac_dir/install.sh
; then
1049 ac_install_sh
="$ac_aux_dir/install.sh -c"
1053 if test -z "$ac_aux_dir"; then
1054 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1056 ac_config_guess
=$ac_aux_dir/config.guess
1057 ac_config_sub
=$ac_aux_dir/config.sub
1058 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1061 # Do some error checking and defaulting for the host and target type.
1063 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1066 # 1. You are not allowed to specify --host, --target, and nonopt at the
1068 # 2. Host defaults to nonopt.
1069 # 3. If nonopt is not specified, then host defaults to the current host,
1070 # as determined by config.guess.
1071 # 4. Target and build default to nonopt.
1072 # 5. If nonopt is not specified, then target and build default to host.
1074 # The aliases save the names the user supplied, while $host etc.
1075 # will get canonicalized.
1076 case $host---$target---$nonopt in
1077 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1078 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1082 # Make sure we can run config.sub.
1083 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1084 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1087 echo $ac_n "checking host system type""... $ac_c" 1>&6
1088 echo "configure:1089: checking host system type" >&5
1091 case "$host_alias" in
1095 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1096 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1098 *) host_alias
=$nonopt ;;
1102 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1103 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1104 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1105 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1106 echo "$ac_t""$host" 1>&6
1108 echo $ac_n "checking target system type""... $ac_c" 1>&6
1109 echo "configure:1110: checking target system type" >&5
1111 target_alias
=$target
1112 case "$target_alias" in
1115 NONE
) target_alias
=$host_alias ;;
1116 *) target_alias
=$nonopt ;;
1120 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1121 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1122 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1123 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1124 echo "$ac_t""$target" 1>&6
1126 echo $ac_n "checking build system type""... $ac_c" 1>&6
1127 echo "configure:1128: checking build system type" >&5
1130 case "$build_alias" in
1133 NONE
) build_alias
=$host_alias ;;
1134 *) build_alias
=$nonopt ;;
1138 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1139 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1140 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1141 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1142 echo "$ac_t""$build" 1>&6
1144 test "$host_alias" != "$target_alias" &&
1145 test "$program_prefix$program_suffix$program_transform_name" = \
1147 program_prefix
=${target_alias}-
1150 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
1151 # doesn't support cross-compilation, but the one from Autoconf 2.5x
1152 # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
1153 # deal with the lossage. Note that CY_GNU_GETTEXT currently calls
1154 # AC_PROG_RANLIB. This can be removed when we switch to # Autoconf
1156 if test $host != $build; then
1157 ac_tool_prefix
=${host_alias}-
1162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1163 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1165 echo "configure:1166: checking for $ac_word" >&5
1166 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1169 if test -n "$RANLIB"; then
1170 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1172 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1174 for ac_dir
in $ac_dummy; do
1175 test -z "$ac_dir" && ac_dir
=.
1176 if test -f $ac_dir/$ac_word; then
1177 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1184 RANLIB
="$ac_cv_prog_RANLIB"
1185 if test -n "$RANLIB"; then
1186 echo "$ac_t""$RANLIB" 1>&6
1188 echo "$ac_t""no" 1>&6
1192 if test -z "$ac_cv_prog_RANLIB"; then
1193 if test -n "$ac_tool_prefix"; then
1194 # Extract the first word of "ranlib", so it can be a program name with args.
1195 set dummy ranlib
; ac_word
=$2
1196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1197 echo "configure:1198: checking for $ac_word" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 if test -n "$RANLIB"; then
1202 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1204 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1206 for ac_dir
in $ac_dummy; do
1207 test -z "$ac_dir" && ac_dir
=.
1208 if test -f $ac_dir/$ac_word; then
1209 ac_cv_prog_RANLIB
="ranlib"
1214 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1217 RANLIB
="$ac_cv_prog_RANLIB"
1218 if test -n "$RANLIB"; then
1219 echo "$ac_t""$RANLIB" 1>&6
1221 echo "$ac_t""no" 1>&6
1231 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1232 echo "configure:1233: checking whether ${MAKE-make} sets \${MAKE}" >&5
1233 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1234 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1237 cat > conftestmake
<<\EOF
1239 @
echo 'ac_maketemp="${MAKE}"'
1241 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1242 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1243 if test -n "$ac_maketemp"; then
1244 eval ac_cv_prog_make_
${ac_make}_set
=yes
1246 eval ac_cv_prog_make_
${ac_make}_set
=no
1250 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1251 echo "$ac_t""yes" 1>&6
1254 echo "$ac_t""no" 1>&6
1255 SET_MAKE
="MAKE=${MAKE-make}"
1258 # Extract the first word of "ranlib", so it can be a program name with args.
1259 set dummy ranlib
; ac_word
=$2
1260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1261 echo "configure:1262: checking for $ac_word" >&5
1262 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1265 if test -n "$RANLIB"; then
1266 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1268 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1270 for ac_dir
in $ac_dummy; do
1271 test -z "$ac_dir" && ac_dir
=.
1272 if test -f $ac_dir/$ac_word; then
1273 ac_cv_prog_RANLIB
="ranlib"
1278 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1281 RANLIB
="$ac_cv_prog_RANLIB"
1282 if test -n "$RANLIB"; then
1283 echo "$ac_t""$RANLIB" 1>&6
1285 echo "$ac_t""no" 1>&6
1288 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1289 echo "configure:1290: checking for ANSI C header files" >&5
1290 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1293 cat > conftest.
$ac_ext <<EOF
1294 #line 1295 "configure"
1295 #include "confdefs.h"
1301 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1302 { (eval echo configure
:1303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1303 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1304 if test -z "$ac_err"; then
1306 ac_cv_header_stdc
=yes
1309 echo "configure: failed program was:" >&5
1310 cat conftest.
$ac_ext >&5
1312 ac_cv_header_stdc
=no
1316 if test $ac_cv_header_stdc = yes; then
1317 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1318 cat > conftest.
$ac_ext <<EOF
1319 #line 1320 "configure"
1320 #include "confdefs.h"
1323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1324 egrep "memchr" >/dev
/null
2>&1; then
1328 ac_cv_header_stdc
=no
1334 if test $ac_cv_header_stdc = yes; then
1335 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1336 cat > conftest.
$ac_ext <<EOF
1337 #line 1338 "configure"
1338 #include "confdefs.h"
1341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1342 egrep "free" >/dev
/null
2>&1; then
1346 ac_cv_header_stdc
=no
1352 if test $ac_cv_header_stdc = yes; then
1353 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1354 if test "$cross_compiling" = yes; then
1357 cat > conftest.
$ac_ext <<EOF
1358 #line 1359 "configure"
1359 #include "confdefs.h"
1361 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1362 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1363 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1364 int main () { int i; for (i = 0; i < 256; i++)
1365 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1369 if { (eval echo configure
:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1373 echo "configure: failed program was:" >&5
1374 cat conftest.
$ac_ext >&5
1376 ac_cv_header_stdc
=no
1384 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1385 if test $ac_cv_header_stdc = yes; then
1386 cat >> confdefs.h
<<\EOF
1387 #define STDC_HEADERS 1
1392 echo $ac_n "checking for working const""... $ac_c" 1>&6
1393 echo "configure:1394: checking for working const" >&5
1394 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1397 cat > conftest.
$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1403 /* Ultrix mips cc rejects this. */
1404 typedef int charset[2]; const charset x;
1405 /* SunOS 4.1.1 cc rejects this. */
1406 char const *const *ccp;
1408 /* NEC SVR4.0.2 mips cc rejects this. */
1409 struct point {int x, y;};
1410 static struct point const zero = {0,0};
1411 /* AIX XL C 1.02.0.0 rejects this.
1412 It does not let you subtract one const X* pointer from another in an arm
1413 of an if-expression whose if-part is not a constant expression */
1414 const char *g = "string";
1415 ccp = &g + (g ? g-g : 0);
1416 /* HPUX 7.0 cc rejects these. */
1419 ccp = (char const *const *) p;
1420 { /* SCO 3.2v4 cc rejects this. */
1422 char const *s = 0 ? (char *) 0 : (char const *) 0;
1426 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1428 const int *foo = &x[0];
1431 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1432 typedef const int *iptr;
1436 { /* AIX XL C 1.02.0.0 rejects this saying
1437 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1438 struct s { int j; const int *ap[3]; };
1439 struct s *b; b->j = 5;
1441 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1447 if { (eval echo configure
:1448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1451 echo "configure: failed program was:" >&5
1452 cat conftest.
$ac_ext >&5
1459 echo "$ac_t""$ac_cv_c_const" 1>&6
1460 if test $ac_cv_c_const = no
; then
1461 cat >> confdefs.h
<<\EOF
1467 echo $ac_n "checking for inline""... $ac_c" 1>&6
1468 echo "configure:1469: checking for inline" >&5
1469 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1473 for ac_kw
in inline __inline__ __inline
; do
1474 cat > conftest.
$ac_ext <<EOF
1475 #line 1476 "configure"
1476 #include "confdefs.h"
1482 if { (eval echo configure
:1483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1484 ac_cv_c_inline
=$ac_kw; break
1486 echo "configure: failed program was:" >&5
1487 cat conftest.
$ac_ext >&5
1494 echo "$ac_t""$ac_cv_c_inline" 1>&6
1495 case "$ac_cv_c_inline" in
1497 no
) cat >> confdefs.h
<<\EOF
1501 *) cat >> confdefs.h
<<EOF
1502 #define inline $ac_cv_c_inline
1507 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1508 echo "configure:1509: checking for off_t" >&5
1509 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1512 cat > conftest.
$ac_ext <<EOF
1513 #line 1514 "configure"
1514 #include "confdefs.h"
1515 #include <sys/types.h>
1521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1522 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1524 ac_cv_type_off_t
=yes
1532 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1533 if test $ac_cv_type_off_t = no
; then
1534 cat >> confdefs.h
<<\EOF
1540 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1541 echo "configure:1542: checking for size_t" >&5
1542 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1545 cat > conftest.
$ac_ext <<EOF
1546 #line 1547 "configure"
1547 #include "confdefs.h"
1548 #include <sys/types.h>
1554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1555 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1557 ac_cv_type_size_t
=yes
1560 ac_cv_type_size_t
=no
1565 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1566 if test $ac_cv_type_size_t = no
; then
1567 cat >> confdefs.h
<<\EOF
1568 #define size_t unsigned
1573 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1574 # for constant arguments. Useless!
1575 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1576 echo "configure:1577: checking for working alloca.h" >&5
1577 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1578 echo $ac_n "(cached) $ac_c" 1>&6
1580 cat > conftest.
$ac_ext <<EOF
1581 #line 1582 "configure"
1582 #include "confdefs.h"
1585 char *p = alloca(2 * sizeof(int));
1588 if { (eval echo configure
:1589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1590 ac_cv_header_alloca_h
=yes
1592 echo "configure: failed program was:" >&5
1593 cat conftest.
$ac_ext >&5
1595 ac_cv_header_alloca_h
=no
1600 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1601 if test $ac_cv_header_alloca_h = yes; then
1602 cat >> confdefs.h
<<\EOF
1603 #define HAVE_ALLOCA_H 1
1608 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1609 echo "configure:1610: checking for alloca" >&5
1610 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1611 echo $ac_n "(cached) $ac_c" 1>&6
1613 cat > conftest.
$ac_ext <<EOF
1614 #line 1615 "configure"
1615 #include "confdefs.h"
1618 # define alloca __builtin_alloca
1621 # include <malloc.h>
1622 # define alloca _alloca
1625 # include <alloca.h>
1630 # ifndef alloca /* predefined by HP cc +Olibcalls */
1639 char *p = (char *) alloca(1);
1642 if { (eval echo configure
:1643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1644 ac_cv_func_alloca_works
=yes
1646 echo "configure: failed program was:" >&5
1647 cat conftest.
$ac_ext >&5
1649 ac_cv_func_alloca_works
=no
1654 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1655 if test $ac_cv_func_alloca_works = yes; then
1656 cat >> confdefs.h
<<\EOF
1657 #define HAVE_ALLOCA 1
1662 if test $ac_cv_func_alloca_works = no
; then
1663 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1664 # that cause trouble. Some versions do not even contain alloca or
1665 # contain a buggy version. If you still want to use their alloca,
1666 # use ar to extract alloca.o from them instead of compiling alloca.c.
1667 ALLOCA
=alloca.
${ac_objext}
1668 cat >> confdefs.h
<<\EOF
1673 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1674 echo "configure:1675: checking whether alloca needs Cray hooks" >&5
1675 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1678 cat > conftest.
$ac_ext <<EOF
1679 #line 1680 "configure"
1680 #include "confdefs.h"
1681 #if defined(CRAY) && ! defined(CRAY2)
1688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1689 egrep "webecray" >/dev
/null
2>&1; then
1700 echo "$ac_t""$ac_cv_os_cray" 1>&6
1701 if test $ac_cv_os_cray = yes; then
1702 for ac_func
in _getb67 GETB67 getb67
; do
1703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1704 echo "configure:1705: checking for $ac_func" >&5
1705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1708 cat > conftest.
$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1711 /* System header to define __stub macros and hopefully few prototypes,
1712 which can conflict with char $ac_func(); below. */
1714 /* Override any gcc2 internal prototype to avoid an error. */
1715 /* We use char because int might match the return type of a gcc2
1716 builtin and then its argument prototype would still apply. */
1721 /* The GNU C library defines this for functions which it implements
1722 to always fail with ENOSYS. Some functions are actually named
1723 something starting with __ and the normal name is an alias. */
1724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1732 if { (eval echo configure
:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1734 eval "ac_cv_func_$ac_func=yes"
1736 echo "configure: failed program was:" >&5
1737 cat conftest.
$ac_ext >&5
1739 eval "ac_cv_func_$ac_func=no"
1744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1745 echo "$ac_t""yes" 1>&6
1746 cat >> confdefs.h
<<EOF
1747 #define CRAY_STACKSEG_END $ac_func
1752 echo "$ac_t""no" 1>&6
1758 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1759 echo "configure:1760: checking stack direction for C alloca" >&5
1760 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1763 if test "$cross_compiling" = yes; then
1764 ac_cv_c_stack_direction
=0
1766 cat > conftest.
$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 find_stack_direction ()
1771 static char *addr = 0;
1776 return find_stack_direction ();
1779 return (&dummy > addr) ? 1 : -1;
1783 exit (find_stack_direction() < 0);
1786 if { (eval echo configure
:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1788 ac_cv_c_stack_direction
=1
1790 echo "configure: failed program was:" >&5
1791 cat conftest.
$ac_ext >&5
1793 ac_cv_c_stack_direction
=-1
1800 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1801 cat >> confdefs.h
<<EOF
1802 #define STACK_DIRECTION $ac_cv_c_stack_direction
1807 for ac_hdr
in unistd.h
1809 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1811 echo "configure:1812: checking for $ac_hdr" >&5
1812 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1815 cat > conftest.
$ac_ext <<EOF
1816 #line 1817 "configure"
1817 #include "confdefs.h"
1820 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1821 { (eval echo configure
:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1822 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1823 if test -z "$ac_err"; then
1825 eval "ac_cv_header_$ac_safe=yes"
1828 echo "configure: failed program was:" >&5
1829 cat conftest.
$ac_ext >&5
1831 eval "ac_cv_header_$ac_safe=no"
1835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1836 echo "$ac_t""yes" 1>&6
1837 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1838 cat >> confdefs.h
<<EOF
1839 #define $ac_tr_hdr 1
1843 echo "$ac_t""no" 1>&6
1847 for ac_func
in getpagesize
1849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1850 echo "configure:1851: checking for $ac_func" >&5
1851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1852 echo $ac_n "(cached) $ac_c" 1>&6
1854 cat > conftest.
$ac_ext <<EOF
1855 #line 1856 "configure"
1856 #include "confdefs.h"
1857 /* System header to define __stub macros and hopefully few prototypes,
1858 which can conflict with char $ac_func(); below. */
1860 /* Override any gcc2 internal prototype to avoid an error. */
1861 /* We use char because int might match the return type of a gcc2
1862 builtin and then its argument prototype would still apply. */
1867 /* The GNU C library defines this for functions which it implements
1868 to always fail with ENOSYS. Some functions are actually named
1869 something starting with __ and the normal name is an alias. */
1870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1878 if { (eval echo configure
:1879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1880 eval "ac_cv_func_$ac_func=yes"
1882 echo "configure: failed program was:" >&5
1883 cat conftest.
$ac_ext >&5
1885 eval "ac_cv_func_$ac_func=no"
1890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1891 echo "$ac_t""yes" 1>&6
1892 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1893 cat >> confdefs.h
<<EOF
1894 #define $ac_tr_func 1
1898 echo "$ac_t""no" 1>&6
1902 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1903 echo "configure:1904: checking for working mmap" >&5
1904 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1907 if test "$cross_compiling" = yes; then
1908 ac_cv_func_mmap_fixed_mapped
=no
1910 cat > conftest.
$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1914 /* Thanks to Mike Haertel and Jim Avera for this test.
1915 Here is a matrix of mmap possibilities:
1916 mmap private not fixed
1917 mmap private fixed at somewhere currently unmapped
1918 mmap private fixed at somewhere already mapped
1919 mmap shared not fixed
1920 mmap shared fixed at somewhere currently unmapped
1921 mmap shared fixed at somewhere already mapped
1922 For private mappings, we should verify that changes cannot be read()
1923 back from the file, nor mmap's back from the file at a different
1924 address. (There have been systems where private was not correctly
1925 implemented like the infamous i386 svr4.0, and systems where the
1926 VM page cache was not coherent with the filesystem buffer cache
1927 like early versions of FreeBSD and possibly contemporary NetBSD.)
1928 For shared mappings, we should conversely verify that changes get
1929 propogated back to all the places they're supposed to be.
1931 Grep wants private fixed already mapped.
1932 The main things grep needs to know about mmap are:
1933 * does it exist and is it safe to write into the mmap'd area
1934 * how to use it (BSD variants) */
1935 #include <sys/types.h>
1937 #include <sys/mman.h>
1939 /* This mess was copied from the GNU getpagesize.h. */
1940 #ifndef HAVE_GETPAGESIZE
1941 # ifdef HAVE_UNISTD_H
1942 # include <unistd.h>
1945 /* Assume that all systems that can run configure have sys/param.h. */
1946 # ifndef HAVE_SYS_PARAM_H
1947 # define HAVE_SYS_PARAM_H 1
1950 # ifdef _SC_PAGESIZE
1951 # define getpagesize() sysconf(_SC_PAGESIZE)
1952 # else /* no _SC_PAGESIZE */
1953 # ifdef HAVE_SYS_PARAM_H
1954 # include <sys/param.h>
1955 # ifdef EXEC_PAGESIZE
1956 # define getpagesize() EXEC_PAGESIZE
1957 # else /* no EXEC_PAGESIZE */
1959 # define getpagesize() NBPG * CLSIZE
1962 # endif /* no CLSIZE */
1963 # else /* no NBPG */
1965 # define getpagesize() NBPC
1966 # else /* no NBPC */
1968 # define getpagesize() PAGESIZE
1969 # endif /* PAGESIZE */
1970 # endif /* no NBPC */
1971 # endif /* no NBPG */
1972 # endif /* no EXEC_PAGESIZE */
1973 # else /* no HAVE_SYS_PARAM_H */
1974 # define getpagesize() 8192 /* punt totally */
1975 # endif /* no HAVE_SYS_PARAM_H */
1976 # endif /* no _SC_PAGESIZE */
1978 #endif /* no HAVE_GETPAGESIZE */
1981 extern "C" { void *malloc(unsigned); }
1989 char *data, *data2, *data3;
1993 pagesize = getpagesize();
1996 * First, make a file with some known garbage in it.
1998 data = malloc(pagesize);
2001 for (i = 0; i < pagesize; ++i)
2002 *(data + i) = rand();
2004 fd = creat("conftestmmap", 0600);
2007 if (write(fd, data, pagesize) != pagesize)
2012 * Next, try to mmap the file at a fixed address which
2013 * already has something else allocated at it. If we can,
2014 * also make sure that we see the same garbage.
2016 fd = open("conftestmmap", O_RDWR);
2019 data2 = malloc(2 * pagesize);
2022 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2023 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2024 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2026 for (i = 0; i < pagesize; ++i)
2027 if (*(data + i) != *(data2 + i))
2031 * Finally, make sure that changes to the mapped area
2032 * do not percolate back to the file as seen by read().
2033 * (This is a bug on some variants of i386 svr4.0.)
2035 for (i = 0; i < pagesize; ++i)
2036 *(data2 + i) = *(data2 + i) + 1;
2037 data3 = malloc(pagesize);
2040 if (read(fd, data3, pagesize) != pagesize)
2042 for (i = 0; i < pagesize; ++i)
2043 if (*(data + i) != *(data3 + i))
2046 unlink("conftestmmap");
2051 if { (eval echo configure
:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2053 ac_cv_func_mmap_fixed_mapped
=yes
2055 echo "configure: failed program was:" >&5
2056 cat conftest.
$ac_ext >&5
2058 ac_cv_func_mmap_fixed_mapped
=no
2065 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2066 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2067 cat >> confdefs.h
<<\EOF
2074 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2075 unistd.h values.h sys
/param.h
2077 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2078 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2079 echo "configure:2080: checking for $ac_hdr" >&5
2080 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
2083 cat > conftest.
$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2088 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2089 { (eval echo configure
:2090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2090 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2091 if test -z "$ac_err"; then
2093 eval "ac_cv_header_$ac_safe=yes"
2096 echo "configure: failed program was:" >&5
2097 cat conftest.
$ac_ext >&5
2099 eval "ac_cv_header_$ac_safe=no"
2103 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2104 echo "$ac_t""yes" 1>&6
2105 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2106 cat >> confdefs.h
<<EOF
2107 #define $ac_tr_hdr 1
2111 echo "$ac_t""no" 1>&6
2115 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2116 __argz_count __argz_stringify __argz_next
2118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2119 echo "configure:2120: checking for $ac_func" >&5
2120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2121 echo $ac_n "(cached) $ac_c" 1>&6
2123 cat > conftest.
$ac_ext <<EOF
2124 #line 2125 "configure"
2125 #include "confdefs.h"
2126 /* System header to define __stub macros and hopefully few prototypes,
2127 which can conflict with char $ac_func(); below. */
2129 /* Override any gcc2 internal prototype to avoid an error. */
2130 /* We use char because int might match the return type of a gcc2
2131 builtin and then its argument prototype would still apply. */
2136 /* The GNU C library defines this for functions which it implements
2137 to always fail with ENOSYS. Some functions are actually named
2138 something starting with __ and the normal name is an alias. */
2139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2147 if { (eval echo configure
:2148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2149 eval "ac_cv_func_$ac_func=yes"
2151 echo "configure: failed program was:" >&5
2152 cat conftest.
$ac_ext >&5
2154 eval "ac_cv_func_$ac_func=no"
2159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2160 echo "$ac_t""yes" 1>&6
2161 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2162 cat >> confdefs.h
<<EOF
2163 #define $ac_tr_func 1
2167 echo "$ac_t""no" 1>&6
2172 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2173 for ac_func
in stpcpy
2175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2176 echo "configure:2177: checking for $ac_func" >&5
2177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2180 cat > conftest.
$ac_ext <<EOF
2181 #line 2182 "configure"
2182 #include "confdefs.h"
2183 /* System header to define __stub macros and hopefully few prototypes,
2184 which can conflict with char $ac_func(); below. */
2186 /* Override any gcc2 internal prototype to avoid an error. */
2187 /* We use char because int might match the return type of a gcc2
2188 builtin and then its argument prototype would still apply. */
2193 /* The GNU C library defines this for functions which it implements
2194 to always fail with ENOSYS. Some functions are actually named
2195 something starting with __ and the normal name is an alias. */
2196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2204 if { (eval echo configure
:2205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2206 eval "ac_cv_func_$ac_func=yes"
2208 echo "configure: failed program was:" >&5
2209 cat conftest.
$ac_ext >&5
2211 eval "ac_cv_func_$ac_func=no"
2216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2217 echo "$ac_t""yes" 1>&6
2218 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2219 cat >> confdefs.h
<<EOF
2220 #define $ac_tr_func 1
2224 echo "$ac_t""no" 1>&6
2229 if test "${ac_cv_func_stpcpy}" = "yes"; then
2230 cat >> confdefs.h
<<\EOF
2231 #define HAVE_STPCPY 1
2236 if test $ac_cv_header_locale_h = yes; then
2237 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2238 echo "configure:2239: checking for LC_MESSAGES" >&5
2239 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2242 cat > conftest.
$ac_ext <<EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2250 if { (eval echo configure
:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2252 am_cv_val_LC_MESSAGES
=yes
2254 echo "configure: failed program was:" >&5
2255 cat conftest.
$ac_ext >&5
2257 am_cv_val_LC_MESSAGES
=no
2262 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2263 if test $am_cv_val_LC_MESSAGES = yes; then
2264 cat >> confdefs.h
<<\EOF
2265 #define HAVE_LC_MESSAGES 1
2270 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2271 echo "configure:2272: checking whether NLS is requested" >&5
2272 # Check whether --enable-nls or --disable-nls was given.
2273 if test "${enable_nls+set}" = set; then
2274 enableval
="$enable_nls"
2280 echo "$ac_t""$USE_NLS" 1>&6
2283 USE_INCLUDED_LIBINTL
=no
2285 if test "$USE_NLS" = "yes"; then
2286 cat >> confdefs.h
<<\EOF
2287 #define ENABLE_NLS 1
2290 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2291 echo "configure:2292: checking whether included gettext is requested" >&5
2292 # Check whether --with-included-gettext or --without-included-gettext was given.
2293 if test "${with_included_gettext+set}" = set; then
2294 withval
="$with_included_gettext"
2295 nls_cv_force_use_gnu_gettext
=$withval
2297 nls_cv_force_use_gnu_gettext
=no
2300 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2302 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2303 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2305 nls_cv_header_libgt
=
2308 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2309 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2310 echo "configure:2311: checking for libintl.h" >&5
2311 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2312 echo $ac_n "(cached) $ac_c" 1>&6
2314 cat > conftest.
$ac_ext <<EOF
2315 #line 2316 "configure"
2316 #include "confdefs.h"
2317 #include <libintl.h>
2319 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2320 { (eval echo configure
:2321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2321 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2322 if test -z "$ac_err"; then
2324 eval "ac_cv_header_$ac_safe=yes"
2327 echo "configure: failed program was:" >&5
2328 cat conftest.
$ac_ext >&5
2330 eval "ac_cv_header_$ac_safe=no"
2334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2335 echo "$ac_t""yes" 1>&6
2336 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2337 echo "configure:2338: checking for gettext in libc" >&5
2338 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 cat > conftest.
$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2344 #include <libintl.h>
2346 return (int) gettext ("")
2349 if { (eval echo configure
:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2351 gt_cv_func_gettext_libc
=yes
2353 echo "configure: failed program was:" >&5
2354 cat conftest.
$ac_ext >&5
2356 gt_cv_func_gettext_libc
=no
2361 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2363 if test "$gt_cv_func_gettext_libc" != "yes"; then
2364 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2365 echo "configure:2366: checking for bindtextdomain in -lintl" >&5
2366 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2370 ac_save_LIBS
="$LIBS"
2372 cat > conftest.
$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2375 /* Override any gcc2 internal prototype to avoid an error. */
2376 /* We use char because int might match the return type of a gcc2
2377 builtin and then its argument prototype would still apply. */
2378 char bindtextdomain();
2384 if { (eval echo configure
:2385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2386 eval "ac_cv_lib_$ac_lib_var=yes"
2388 echo "configure: failed program was:" >&5
2389 cat conftest.
$ac_ext >&5
2391 eval "ac_cv_lib_$ac_lib_var=no"
2394 LIBS
="$ac_save_LIBS"
2397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2398 echo "$ac_t""yes" 1>&6
2399 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2400 echo "configure:2401: checking for gettext in libintl" >&5
2401 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2404 cat > conftest.
$ac_ext <<EOF
2405 #line 2406 "configure"
2406 #include "confdefs.h"
2409 return (int) gettext ("")
2412 if { (eval echo configure
:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2414 gt_cv_func_gettext_libintl
=yes
2416 echo "configure: failed program was:" >&5
2417 cat conftest.
$ac_ext >&5
2419 gt_cv_func_gettext_libintl
=no
2424 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2426 echo "$ac_t""no" 1>&6
2431 if test "$gt_cv_func_gettext_libc" = "yes" \
2432 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2433 cat >> confdefs.h
<<\EOF
2434 #define HAVE_GETTEXT 1
2437 # Extract the first word of "msgfmt", so it can be a program name with args.
2438 set dummy msgfmt
; ac_word
=$2
2439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2440 echo "configure:2441: checking for $ac_word" >&5
2441 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2446 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2449 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2450 for ac_dir
in $PATH; do
2451 test -z "$ac_dir" && ac_dir
=.
2452 if test -f $ac_dir/$ac_word; then
2453 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2454 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2460 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2464 MSGFMT
="$ac_cv_path_MSGFMT"
2465 if test -n "$MSGFMT"; then
2466 echo "$ac_t""$MSGFMT" 1>&6
2468 echo "$ac_t""no" 1>&6
2470 if test "$MSGFMT" != "no"; then
2471 for ac_func
in dcgettext
2473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2474 echo "configure:2475: checking for $ac_func" >&5
2475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2478 cat > conftest.
$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2481 /* System header to define __stub macros and hopefully few prototypes,
2482 which can conflict with char $ac_func(); below. */
2484 /* Override any gcc2 internal prototype to avoid an error. */
2485 /* We use char because int might match the return type of a gcc2
2486 builtin and then its argument prototype would still apply. */
2491 /* The GNU C library defines this for functions which it implements
2492 to always fail with ENOSYS. Some functions are actually named
2493 something starting with __ and the normal name is an alias. */
2494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2502 if { (eval echo configure
:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2504 eval "ac_cv_func_$ac_func=yes"
2506 echo "configure: failed program was:" >&5
2507 cat conftest.
$ac_ext >&5
2509 eval "ac_cv_func_$ac_func=no"
2514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2515 echo "$ac_t""yes" 1>&6
2516 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2517 cat >> confdefs.h
<<EOF
2518 #define $ac_tr_func 1
2522 echo "$ac_t""no" 1>&6
2526 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2527 set dummy gmsgfmt
; ac_word
=$2
2528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2529 echo "configure:2530: checking for $ac_word" >&5
2530 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2535 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2538 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2541 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2543 for ac_dir
in $ac_dummy; do
2544 test -z "$ac_dir" && ac_dir
=.
2545 if test -f $ac_dir/$ac_word; then
2546 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2551 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2555 GMSGFMT
="$ac_cv_path_GMSGFMT"
2556 if test -n "$GMSGFMT"; then
2557 echo "$ac_t""$GMSGFMT" 1>&6
2559 echo "$ac_t""no" 1>&6
2562 # Extract the first word of "xgettext", so it can be a program name with args.
2563 set dummy xgettext
; ac_word
=$2
2564 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2565 echo "configure:2566: checking for $ac_word" >&5
2566 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2571 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2574 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2575 for ac_dir
in $PATH; do
2576 test -z "$ac_dir" && ac_dir
=.
2577 if test -f $ac_dir/$ac_word; then
2578 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2579 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2585 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2589 XGETTEXT
="$ac_cv_path_XGETTEXT"
2590 if test -n "$XGETTEXT"; then
2591 echo "$ac_t""$XGETTEXT" 1>&6
2593 echo "$ac_t""no" 1>&6
2596 cat > conftest.
$ac_ext <<EOF
2597 #line 2598 "configure"
2598 #include "confdefs.h"
2601 extern int _nl_msg_cat_cntr;
2602 return _nl_msg_cat_cntr
2605 if { (eval echo configure
:2606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2610 echo "configure: failed program was:" >&5
2611 cat conftest.
$ac_ext >&5
2622 echo "$ac_t""no" 1>&6
2627 if test "$CATOBJEXT" = "NONE"; then
2628 nls_cv_use_gnu_gettext
=yes
2632 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2633 INTLOBJS
="\$(GETTOBJS)"
2634 # Extract the first word of "msgfmt", so it can be a program name with args.
2635 set dummy msgfmt
; ac_word
=$2
2636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2637 echo "configure:2638: checking for $ac_word" >&5
2638 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2643 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2646 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2647 for ac_dir
in $PATH; do
2648 test -z "$ac_dir" && ac_dir
=.
2649 if test -f $ac_dir/$ac_word; then
2650 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2651 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2657 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2661 MSGFMT
="$ac_cv_path_MSGFMT"
2662 if test -n "$MSGFMT"; then
2663 echo "$ac_t""$MSGFMT" 1>&6
2665 echo "$ac_t""no" 1>&6
2668 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2669 set dummy gmsgfmt
; ac_word
=$2
2670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2671 echo "configure:2672: checking for $ac_word" >&5
2672 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2673 echo $ac_n "(cached) $ac_c" 1>&6
2677 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2680 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2683 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2685 for ac_dir
in $ac_dummy; do
2686 test -z "$ac_dir" && ac_dir
=.
2687 if test -f $ac_dir/$ac_word; then
2688 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2693 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2697 GMSGFMT
="$ac_cv_path_GMSGFMT"
2698 if test -n "$GMSGFMT"; then
2699 echo "$ac_t""$GMSGFMT" 1>&6
2701 echo "$ac_t""no" 1>&6
2704 # Extract the first word of "xgettext", so it can be a program name with args.
2705 set dummy xgettext
; ac_word
=$2
2706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2707 echo "configure:2708: checking for $ac_word" >&5
2708 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2709 echo $ac_n "(cached) $ac_c" 1>&6
2713 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2716 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2717 for ac_dir
in $PATH; do
2718 test -z "$ac_dir" && ac_dir
=.
2719 if test -f $ac_dir/$ac_word; then
2720 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2721 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2727 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2731 XGETTEXT
="$ac_cv_path_XGETTEXT"
2732 if test -n "$XGETTEXT"; then
2733 echo "$ac_t""$XGETTEXT" 1>&6
2735 echo "$ac_t""no" 1>&6
2739 USE_INCLUDED_LIBINTL
=yes
2743 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2745 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2746 nls_cv_header_intl
=libintl.h
2747 nls_cv_header_libgt
=libgettext.h
2750 if test "$XGETTEXT" != ":"; then
2751 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2754 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2759 # We need to process the po/ directory.
2763 nls_cv_header_intl
=libintl.h
2764 nls_cv_header_libgt
=libgettext.h
2767 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2768 # because some of the sources are only built for this goal.
2769 if test "$PACKAGE" = gettext; then
2771 USE_INCLUDED_LIBINTL
=yes
2774 for lang
in $ALL_LINGUAS; do
2775 GMOFILES
="$GMOFILES $lang.gmo"
2776 POFILES
="$POFILES $lang.po"
2792 if test "x$CATOBJEXT" != "x"; then
2793 if test "x$ALL_LINGUAS" = "x"; then
2796 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2797 echo "configure:2798: checking for catalogs to be installed" >&5
2799 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2800 case "$ALL_LINGUAS" in
2801 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2804 LINGUAS
=$NEW_LINGUAS
2805 echo "$ac_t""$LINGUAS" 1>&6
2808 if test -n "$LINGUAS"; then
2809 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2813 if test $ac_cv_header_locale_h = yes; then
2814 INCLUDE_LOCALE_H
="#include <locale.h>"
2817 /* The system does not provide the header <locale.h>. Take care yourself. */"
2821 if test -f $srcdir/po2tbl.
sed.
in; then
2822 if test "$CATOBJEXT" = ".cat"; then
2823 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2824 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2825 echo "configure:2826: checking for linux/version.h" >&5
2826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2829 cat > conftest.
$ac_ext <<EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2832 #include <linux/version.h>
2834 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2835 { (eval echo configure
:2836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2836 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2837 if test -z "$ac_err"; then
2839 eval "ac_cv_header_$ac_safe=yes"
2842 echo "configure: failed program was:" >&5
2843 cat conftest.
$ac_ext >&5
2845 eval "ac_cv_header_$ac_safe=no"
2849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2850 echo "$ac_t""yes" 1>&6
2853 echo "$ac_t""no" 1>&6
2858 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2860 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2861 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2864 if test "$PACKAGE" = "gettext"; then
2874 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2880 if test -f $srcdir/po
/POTFILES.
in; then
2881 test -d po || mkdir po
2882 if test "x$srcdir" != "x."; then
2883 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2884 posrcprefix
="$srcdir/"
2886 posrcprefix
="../$srcdir/"
2892 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2893 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2896 cat >> confdefs.h
<<\EOF
2897 #define PACKAGE "gdb"
2914 subdirs
="doc testsuite"
2918 .
$srcdir/configure.
host
2920 .
$srcdir/configure.tgt
2922 # Fetch the default architecture and default target vector from BFD.
2923 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
2925 # We only want the first architecture, so strip off the others if
2926 # there is more than one.
2927 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
2929 if test "x$targ_archs" != x
; then
2930 cat >> confdefs.h
<<EOF
2931 #define DEFAULT_BFD_ARCH $targ_archs
2935 if test "x$targ_defvec" != x
; then
2936 cat >> confdefs.h
<<EOF
2937 #define DEFAULT_BFD_VEC $targ_defvec
2942 if test "$program_transform_name" = s
,x
,x
,; then
2943 program_transform_name
=
2945 # Double any \ or $. echo might interpret backslashes.
2946 cat <<\EOF_SED
> conftestsed
2947 s
,\\,\\\\,g
; s
,\$
,$$
,g
2949 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2952 test "$program_prefix" != NONE
&&
2953 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2954 # Use a double $ so make ignores it.
2955 test "$program_suffix" != NONE
&&
2956 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2958 # sed with no file args requires a program.
2959 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2962 # The CLI cannot be disabled yet, but may be in the future.
2965 # Check whether --enable-gdbcli or --disable-gdbcli was given.
2966 if test "${enable_gdbcli+set}" = set; then
2967 enableval
="$enable_gdbcli"
2972 { echo "configure: error: the command-line interface cannot be disabled yet" 1>&2; exit 1; } ;;
2974 { echo "configure: error: bad value $enableval for --enable-gdbcli" 1>&2; exit 1; } ;;
2980 if test x
"$enable_gdbcli" = xyes
; then
2981 if test -d $srcdir/cli
; then
2982 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
2983 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
2984 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
2985 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_CLI_INITS)"
2986 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
2987 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_CLI_ALL)"
2988 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_CLI_CLEAN)"
2989 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_CLI_INSTALL)"
2990 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_CLI_UNINSTALL)"
2995 # Check whether --enable-gdbmi or --disable-gdbmi was given.
2996 if test "${enable_gdbmi+set}" = set; then
2997 enableval
="$enable_gdbmi"
3002 { echo "configure: error: bad value $enableval for --enable-gdbmi" 1>&2; exit 1; } ;;
3008 if test x
"$enable_gdbmi" = xyes
; then
3009 if test -d $srcdir/mi
; then
3010 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3011 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3012 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3013 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_MI_INITS)"
3014 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3015 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_MI_ALL)"
3016 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_MI_CLEAN)"
3017 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_MI_INSTALL)"
3018 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_MI_UNINSTALL)"
3023 # Check whether --enable-tui or --disable-tui was given.
3024 if test "${enable_tui+set}" = set; then
3025 enableval
="$enable_tui"
3030 { echo "configure: error: bad value $enableval for --enable-tui" 1>&2; exit 1; } ;;
3034 if test x
"$enable_tui" = xyes
; then
3035 if test -d $srcdir/tui
; then
3036 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
3037 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
3038 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
3039 CONFIG_INITS
="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
3040 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
3041 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_TUI_ALL)"
3042 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_TUI_CLEAN)"
3043 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_TUI_INSTALL)"
3044 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_TUI_UNINSTALL)"
3049 # --------------------- #
3050 # Checks for programs. #
3051 # --------------------- #
3053 for ac_prog
in mawk gawk nawk
awk
3055 # Extract the first word of "$ac_prog", so it can be a program name with args.
3056 set dummy
$ac_prog; ac_word
=$2
3057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3058 echo "configure:3059: checking for $ac_word" >&5
3059 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 if test -n "$AWK"; then
3063 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3065 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3067 for ac_dir
in $ac_dummy; do
3068 test -z "$ac_dir" && ac_dir
=.
3069 if test -f $ac_dir/$ac_word; then
3070 ac_cv_prog_AWK
="$ac_prog"
3077 AWK
="$ac_cv_prog_AWK"
3078 if test -n "$AWK"; then
3079 echo "$ac_t""$AWK" 1>&6
3081 echo "$ac_t""no" 1>&6
3084 test -n "$AWK" && break
3087 # Find a good install program. We prefer a C program (faster),
3088 # so one script is as good as another. But avoid the broken or
3089 # incompatible versions:
3090 # SysV /etc/install, /usr/sbin/install
3091 # SunOS /usr/etc/install
3092 # IRIX /sbin/install
3094 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3095 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3096 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3097 # ./install, which can be erroneously created by make from ./install.sh.
3098 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3099 echo "configure:3100: checking for a BSD compatible install" >&5
3100 if test -z "$INSTALL"; then
3101 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3105 for ac_dir
in $PATH; do
3106 # Account for people who put trailing slashes in PATH elements.
3108 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3110 # OSF1 and SCO ODT 3.0 have their own names for install.
3111 # Don't use installbsd from OSF since it installs stuff as root
3113 for ac_prog
in ginstall scoinst
install; do
3114 if test -f $ac_dir/$ac_prog; then
3115 if test $ac_prog = install &&
3116 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3117 # AIX install. It has an incompatible calling convention.
3120 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3131 if test "${ac_cv_path_install+set}" = set; then
3132 INSTALL
="$ac_cv_path_install"
3134 # As a last resort, use the slow shell script. We don't cache a
3135 # path for INSTALL within a source directory, because that will
3136 # break other packages using the cache if that directory is
3137 # removed, or if the path is relative.
3138 INSTALL
="$ac_install_sh"
3141 echo "$ac_t""$INSTALL" 1>&6
3143 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3144 # It thinks the first close brace ends the variable substitution.
3145 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3147 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3149 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3151 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3152 echo "configure:3153: checking whether ln -s works" >&5
3153 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3154 echo $ac_n "(cached) $ac_c" 1>&6
3157 if ln -s X conftestdata
2>/dev
/null
3160 ac_cv_prog_LN_S
="ln -s"
3165 LN_S
="$ac_cv_prog_LN_S"
3166 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3167 echo "$ac_t""yes" 1>&6
3169 echo "$ac_t""no" 1>&6
3172 # Extract the first word of "ranlib", so it can be a program name with args.
3173 set dummy ranlib
; ac_word
=$2
3174 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3175 echo "configure:3176: checking for $ac_word" >&5
3176 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3179 if test -n "$RANLIB"; then
3180 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3182 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3184 for ac_dir
in $ac_dummy; do
3185 test -z "$ac_dir" && ac_dir
=.
3186 if test -f $ac_dir/$ac_word; then
3187 ac_cv_prog_RANLIB
="ranlib"
3192 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3195 RANLIB
="$ac_cv_prog_RANLIB"
3196 if test -n "$RANLIB"; then
3197 echo "$ac_t""$RANLIB" 1>&6
3199 echo "$ac_t""no" 1>&6
3202 for ac_prog
in 'bison -y' byacc
3204 # Extract the first word of "$ac_prog", so it can be a program name with args.
3205 set dummy
$ac_prog; ac_word
=$2
3206 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3207 echo "configure:3208: checking for $ac_word" >&5
3208 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3211 if test -n "$YACC"; then
3212 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3214 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3216 for ac_dir
in $ac_dummy; do
3217 test -z "$ac_dir" && ac_dir
=.
3218 if test -f $ac_dir/$ac_word; then
3219 ac_cv_prog_YACC
="$ac_prog"
3226 YACC
="$ac_cv_prog_YACC"
3227 if test -n "$YACC"; then
3228 echo "$ac_t""$YACC" 1>&6
3230 echo "$ac_t""no" 1>&6
3233 test -n "$YACC" && break
3235 test -n "$YACC" || YACC
="yacc"
3238 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3239 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3240 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3241 echo "configure:3242: checking for $ac_word" >&5
3242 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 if test -n "$AR"; then
3246 ac_cv_prog_AR
="$AR" # Let the user override the test.
3248 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3250 for ac_dir
in $ac_dummy; do
3251 test -z "$ac_dir" && ac_dir
=.
3252 if test -f $ac_dir/$ac_word; then
3253 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3258 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3262 if test -n "$AR"; then
3263 echo "$ac_t""$AR" 1>&6
3265 echo "$ac_t""no" 1>&6
3270 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3271 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3273 echo "configure:3274: checking for $ac_word" >&5
3274 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3277 if test -n "$DLLTOOL"; then
3278 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3280 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3282 for ac_dir
in $ac_dummy; do
3283 test -z "$ac_dir" && ac_dir
=.
3284 if test -f $ac_dir/$ac_word; then
3285 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3290 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3293 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3294 if test -n "$DLLTOOL"; then
3295 echo "$ac_t""$DLLTOOL" 1>&6
3297 echo "$ac_t""no" 1>&6
3302 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3303 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3305 echo "configure:3306: checking for $ac_word" >&5
3306 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3309 if test -n "$WINDRES"; then
3310 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3312 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3314 for ac_dir
in $ac_dummy; do
3315 test -z "$ac_dir" && ac_dir
=.
3316 if test -f $ac_dir/$ac_word; then
3317 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3322 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3325 WINDRES
="$ac_cv_prog_WINDRES"
3326 if test -n "$WINDRES"; then
3327 echo "$ac_t""$WINDRES" 1>&6
3329 echo "$ac_t""no" 1>&6
3335 # Needed for GNU/Hurd.
3336 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3337 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3339 echo "configure:3340: checking for $ac_word" >&5
3340 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3341 echo $ac_n "(cached) $ac_c" 1>&6
3343 if test -n "$MIG"; then
3344 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3346 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3348 for ac_dir
in $ac_dummy; do
3349 test -z "$ac_dir" && ac_dir
=.
3350 if test -f $ac_dir/$ac_word; then
3351 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3356 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3359 MIG
="$ac_cv_prog_MIG"
3360 if test -n "$MIG"; then
3361 echo "$ac_t""$MIG" 1>&6
3363 echo "$ac_t""no" 1>&6
3369 # ---------------------- #
3370 # Checks for libraries. #
3371 # ---------------------- #
3373 # We might need to link with -lm; most simulators need it.
3374 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3375 echo "configure:3376: checking for main in -lm" >&5
3376 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3380 ac_save_LIBS
="$LIBS"
3382 cat > conftest.
$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3390 if { (eval echo configure
:3391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3392 eval "ac_cv_lib_$ac_lib_var=yes"
3394 echo "configure: failed program was:" >&5
3395 cat conftest.
$ac_ext >&5
3397 eval "ac_cv_lib_$ac_lib_var=no"
3400 LIBS
="$ac_save_LIBS"
3403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3404 echo "$ac_t""yes" 1>&6
3405 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3406 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3407 cat >> confdefs.h
<<EOF
3408 #define $ac_tr_lib 1
3414 echo "$ac_t""no" 1>&6
3418 # We need to link with -lw to get `wctype' on Solaris before Solaris
3419 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
3420 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
3421 # is known to have this problem). Therefore we avoid libw if we can.
3422 echo $ac_n "checking for wctype""... $ac_c" 1>&6
3423 echo "configure:3424: checking for wctype" >&5
3424 if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
3425 echo $ac_n "(cached) $ac_c" 1>&6
3427 cat > conftest.
$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3430 /* System header to define __stub macros and hopefully few prototypes,
3431 which can conflict with char wctype(); below. */
3433 /* Override any gcc2 internal prototype to avoid an error. */
3434 /* We use char because int might match the return type of a gcc2
3435 builtin and then its argument prototype would still apply. */
3440 /* The GNU C library defines this for functions which it implements
3441 to always fail with ENOSYS. Some functions are actually named
3442 something starting with __ and the normal name is an alias. */
3443 #if defined (__stub_wctype) || defined (__stub___wctype)
3451 if { (eval echo configure
:3452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3453 eval "ac_cv_func_wctype=yes"
3455 echo "configure: failed program was:" >&5
3456 cat conftest.
$ac_ext >&5
3458 eval "ac_cv_func_wctype=no"
3463 if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
3464 echo "$ac_t""yes" 1>&6
3467 echo "$ac_t""no" 1>&6
3468 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3469 echo "configure:3470: checking for wctype in -lw" >&5
3470 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3474 ac_save_LIBS
="$LIBS"
3476 cat > conftest.
$ac_ext <<EOF
3477 #line 3478 "configure"
3478 #include "confdefs.h"
3479 /* Override any gcc2 internal prototype to avoid an error. */
3480 /* We use char because int might match the return type of a gcc2
3481 builtin and then its argument prototype would still apply. */
3488 if { (eval echo configure
:3489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3490 eval "ac_cv_lib_$ac_lib_var=yes"
3492 echo "configure: failed program was:" >&5
3493 cat conftest.
$ac_ext >&5
3495 eval "ac_cv_lib_$ac_lib_var=no"
3498 LIBS
="$ac_save_LIBS"
3501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3502 echo "$ac_t""yes" 1>&6
3503 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3504 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3505 cat >> confdefs.h
<<EOF
3506 #define $ac_tr_lib 1
3512 echo "$ac_t""no" 1>&6
3518 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
3520 echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
3521 echo "configure:3522: checking for library containing socketpair" >&5
3522 if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
3523 echo $ac_n "(cached) $ac_c" 1>&6
3525 ac_func_search_save_LIBS
="$LIBS"
3526 ac_cv_search_socketpair
="no"
3527 cat > conftest.
$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 /* Override any gcc2 internal prototype to avoid an error. */
3531 /* We use char because int might match the return type of a gcc2
3532 builtin and then its argument prototype would still apply. */
3539 if { (eval echo configure
:3540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3541 ac_cv_search_socketpair
="none required"
3543 echo "configure: failed program was:" >&5
3544 cat conftest.
$ac_ext >&5
3547 test "$ac_cv_search_socketpair" = "no" && for i
in socket
; do
3548 LIBS
="-l$i $ac_func_search_save_LIBS"
3549 cat > conftest.
$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3552 /* Override any gcc2 internal prototype to avoid an error. */
3553 /* We use char because int might match the return type of a gcc2
3554 builtin and then its argument prototype would still apply. */
3561 if { (eval echo configure
:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3563 ac_cv_search_socketpair
="-l$i"
3566 echo "configure: failed program was:" >&5
3567 cat conftest.
$ac_ext >&5
3571 LIBS
="$ac_func_search_save_LIBS"
3574 echo "$ac_t""$ac_cv_search_socketpair" 1>&6
3575 if test "$ac_cv_search_socketpair" != "no"; then
3576 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
3582 # Since GDB uses Readline, we need termcap functionality, so we need
3583 # to find a library that provides that. When GDB is configured with
3584 # --enable-tui, we need full curses functionality.
3586 # FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
3587 # Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
3588 # Makefile fragments. That's why we need to have `Hcurses' before
3589 # `curses'. I don't see why we should use HP curses if a more
3590 # standard curses is available, except that according to HP's
3591 # documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
3592 # HP-UX 10.10 and 10.20.
3594 if test "$need_curses" = yes; then
3596 echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6
3597 echo "configure:3598: checking for library containing initscr" >&5
3598 if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3601 ac_func_search_save_LIBS
="$LIBS"
3602 ac_cv_search_initscr
="no"
3603 cat > conftest.
$ac_ext <<EOF
3604 #line 3605 "configure"
3605 #include "confdefs.h"
3606 /* Override any gcc2 internal prototype to avoid an error. */
3607 /* We use char because int might match the return type of a gcc2
3608 builtin and then its argument prototype would still apply. */
3615 if { (eval echo configure
:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3617 ac_cv_search_initscr
="none required"
3619 echo "configure: failed program was:" >&5
3620 cat conftest.
$ac_ext >&5
3623 test "$ac_cv_search_initscr" = "no" && for i
in ncurses Hcurses curses
; do
3624 LIBS
="-l$i $ac_func_search_save_LIBS"
3625 cat > conftest.
$ac_ext <<EOF
3626 #line 3627 "configure"
3627 #include "confdefs.h"
3628 /* Override any gcc2 internal prototype to avoid an error. */
3629 /* We use char because int might match the return type of a gcc2
3630 builtin and then its argument prototype would still apply. */
3637 if { (eval echo configure
:3638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3639 ac_cv_search_initscr
="-l$i"
3642 echo "configure: failed program was:" >&5
3643 cat conftest.
$ac_ext >&5
3647 LIBS
="$ac_func_search_save_LIBS"
3650 echo "$ac_t""$ac_cv_search_initscr" 1>&6
3651 if test "$ac_cv_search_initscr" != "no"; then
3652 test "$ac_cv_search_initscr" = "none required" || LIBS
="$ac_cv_search_initscr $LIBS"
3655 { echo "configure: error: no curses library found" 1>&2; exit 1; }
3661 if test -d $srcdir/libtermcap
; then
3662 LIBS
="../libtermcap/libtermcap.a $LIBS"
3663 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
3666 # ??? Is this really true?
3667 ac_cv_search_tgetent
="none required"
3670 # Readline prefers curses over termcap on AIX.
3673 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
3674 echo "configure:3675: checking for library containing tgetent" >&5
3675 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3678 ac_func_search_save_LIBS
="$LIBS"
3679 ac_cv_search_tgetent
="no"
3680 cat > conftest.
$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3683 /* Override any gcc2 internal prototype to avoid an error. */
3684 /* We use char because int might match the return type of a gcc2
3685 builtin and then its argument prototype would still apply. */
3692 if { (eval echo configure
:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3694 ac_cv_search_tgetent
="none required"
3696 echo "configure: failed program was:" >&5
3697 cat conftest.
$ac_ext >&5
3700 test "$ac_cv_search_tgetent" = "no" && for i
in tinfo ncurses curses termcap
; do
3701 LIBS
="-l$i $ac_func_search_save_LIBS"
3702 cat > conftest.
$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3705 /* Override any gcc2 internal prototype to avoid an error. */
3706 /* We use char because int might match the return type of a gcc2
3707 builtin and then its argument prototype would still apply. */
3714 if { (eval echo configure
:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3716 ac_cv_search_tgetent
="-l$i"
3719 echo "configure: failed program was:" >&5
3720 cat conftest.
$ac_ext >&5
3724 LIBS
="$ac_func_search_save_LIBS"
3727 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
3728 if test "$ac_cv_search_tgetent" != "no"; then
3729 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
3737 # Note: We used to check for libtermlib and libterminfo too, but
3738 # Readline doesn't, so I think we're safe with leaving them out.
3740 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
3741 echo "configure:3742: checking for library containing tgetent" >&5
3742 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
3743 echo $ac_n "(cached) $ac_c" 1>&6
3745 ac_func_search_save_LIBS
="$LIBS"
3746 ac_cv_search_tgetent
="no"
3747 cat > conftest.
$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3750 /* Override any gcc2 internal prototype to avoid an error. */
3751 /* We use char because int might match the return type of a gcc2
3752 builtin and then its argument prototype would still apply. */
3759 if { (eval echo configure
:3760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3761 ac_cv_search_tgetent
="none required"
3763 echo "configure: failed program was:" >&5
3764 cat conftest.
$ac_ext >&5
3767 test "$ac_cv_search_tgetent" = "no" && for i
in termcap tinfo ncurses Hcurses curses
; do
3768 LIBS
="-l$i $ac_func_search_save_LIBS"
3769 cat > conftest.
$ac_ext <<EOF
3770 #line 3771 "configure"
3771 #include "confdefs.h"
3772 /* Override any gcc2 internal prototype to avoid an error. */
3773 /* We use char because int might match the return type of a gcc2
3774 builtin and then its argument prototype would still apply. */
3781 if { (eval echo configure
:3782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3783 ac_cv_search_tgetent
="-l$i"
3786 echo "configure: failed program was:" >&5
3787 cat conftest.
$ac_ext >&5
3791 LIBS
="$ac_func_search_save_LIBS"
3794 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
3795 if test "$ac_cv_search_tgetent" != "no"; then
3796 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
3802 if test "$ac_cv_search_tgetent" = no
; then
3803 { echo "configure: error: no termcap library found" 1>&2; exit 1; }
3806 # ------------------------- #
3807 # Checks for header files. #
3808 # ------------------------- #
3811 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
3813 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3814 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3815 echo "configure:3816: checking for $ac_hdr that defines DIR" >&5
3816 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3819 cat > conftest.
$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3822 #include <sys/types.h>
3828 if { (eval echo configure
:3829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3830 eval "ac_cv_header_dirent_$ac_safe=yes"
3832 echo "configure: failed program was:" >&5
3833 cat conftest.
$ac_ext >&5
3835 eval "ac_cv_header_dirent_$ac_safe=no"
3839 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3840 echo "$ac_t""yes" 1>&6
3841 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3842 cat >> confdefs.h
<<EOF
3843 #define $ac_tr_hdr 1
3845 ac_header_dirent
=$ac_hdr; break
3847 echo "$ac_t""no" 1>&6
3850 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3851 if test $ac_header_dirent = dirent.h
; then
3852 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3853 echo "configure:3854: checking for opendir in -ldir" >&5
3854 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3858 ac_save_LIBS
="$LIBS"
3860 cat > conftest.
$ac_ext <<EOF
3861 #line 3862 "configure"
3862 #include "confdefs.h"
3863 /* Override any gcc2 internal prototype to avoid an error. */
3864 /* We use char because int might match the return type of a gcc2
3865 builtin and then its argument prototype would still apply. */
3872 if { (eval echo configure
:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3874 eval "ac_cv_lib_$ac_lib_var=yes"
3876 echo "configure: failed program was:" >&5
3877 cat conftest.
$ac_ext >&5
3879 eval "ac_cv_lib_$ac_lib_var=no"
3882 LIBS
="$ac_save_LIBS"
3885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3886 echo "$ac_t""yes" 1>&6
3889 echo "$ac_t""no" 1>&6
3893 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3894 echo "configure:3895: checking for opendir in -lx" >&5
3895 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3896 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3899 ac_save_LIBS
="$LIBS"
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. */
3913 if { (eval echo configure
:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3915 eval "ac_cv_lib_$ac_lib_var=yes"
3917 echo "configure: failed program was:" >&5
3918 cat conftest.
$ac_ext >&5
3920 eval "ac_cv_lib_$ac_lib_var=no"
3923 LIBS
="$ac_save_LIBS"
3926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3927 echo "$ac_t""yes" 1>&6
3930 echo "$ac_t""no" 1>&6
3935 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3936 echo "configure:3937: checking whether stat file-mode macros are broken" >&5
3937 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3940 cat > conftest.
$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3943 #include <sys/types.h>
3944 #include <sys/stat.h>
3946 #if defined(S_ISBLK) && defined(S_IFDIR)
3947 # if S_ISBLK (S_IFDIR)
3952 #if defined(S_ISBLK) && defined(S_IFCHR)
3953 # if S_ISBLK (S_IFCHR)
3958 #if defined(S_ISLNK) && defined(S_IFREG)
3959 # if S_ISLNK (S_IFREG)
3964 #if defined(S_ISSOCK) && defined(S_IFREG)
3965 # if S_ISSOCK (S_IFREG)
3971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3972 egrep "You lose" >/dev
/null
2>&1; then
3974 ac_cv_header_stat_broken
=yes
3977 ac_cv_header_stat_broken
=no
3983 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3984 if test $ac_cv_header_stat_broken = yes; then
3985 cat >> confdefs.h
<<\EOF
3986 #define STAT_MACROS_BROKEN 1
3991 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3992 echo "configure:3993: checking for ANSI C header files" >&5
3993 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3996 cat > conftest.
$ac_ext <<EOF
3997 #line 3998 "configure"
3998 #include "confdefs.h"
4004 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4005 { (eval echo configure
:4006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4006 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4007 if test -z "$ac_err"; then
4009 ac_cv_header_stdc
=yes
4012 echo "configure: failed program was:" >&5
4013 cat conftest.
$ac_ext >&5
4015 ac_cv_header_stdc
=no
4019 if test $ac_cv_header_stdc = yes; then
4020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4021 cat > conftest.
$ac_ext <<EOF
4022 #line 4023 "configure"
4023 #include "confdefs.h"
4026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4027 egrep "memchr" >/dev
/null
2>&1; then
4031 ac_cv_header_stdc
=no
4037 if test $ac_cv_header_stdc = yes; then
4038 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4039 cat > conftest.
$ac_ext <<EOF
4040 #line 4041 "configure"
4041 #include "confdefs.h"
4044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4045 egrep "free" >/dev
/null
2>&1; then
4049 ac_cv_header_stdc
=no
4055 if test $ac_cv_header_stdc = yes; then
4056 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4057 if test "$cross_compiling" = yes; then
4060 cat > conftest.
$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4064 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4065 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4066 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4067 int main () { int i; for (i = 0; i < 256; i++)
4068 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4072 if { (eval echo configure
:4073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4076 echo "configure: failed program was:" >&5
4077 cat conftest.
$ac_ext >&5
4079 ac_cv_header_stdc
=no
4087 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4088 if test $ac_cv_header_stdc = yes; then
4089 cat >> confdefs.h
<<\EOF
4090 #define STDC_HEADERS 1
4095 for ac_hdr
in link.h
4097 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4098 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4099 echo "configure:4100: checking for $ac_hdr" >&5
4100 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4101 echo $ac_n "(cached) $ac_c" 1>&6
4103 cat > conftest.
$ac_ext <<EOF
4104 #line 4105 "configure"
4105 #include "confdefs.h"
4108 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4109 { (eval echo configure
:4110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4110 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4111 if test -z "$ac_err"; then
4113 eval "ac_cv_header_$ac_safe=yes"
4116 echo "configure: failed program was:" >&5
4117 cat conftest.
$ac_ext >&5
4119 eval "ac_cv_header_$ac_safe=no"
4123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4124 echo "$ac_t""yes" 1>&6
4125 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4126 cat >> confdefs.h
<<EOF
4127 #define $ac_tr_hdr 1
4131 echo "$ac_t""no" 1>&6
4135 for ac_hdr
in nlist.h
4137 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4138 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4139 echo "configure:4140: checking for $ac_hdr" >&5
4140 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4141 echo $ac_n "(cached) $ac_c" 1>&6
4143 cat > conftest.
$ac_ext <<EOF
4144 #line 4145 "configure"
4145 #include "confdefs.h"
4148 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4149 { (eval echo configure
:4150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4150 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4151 if test -z "$ac_err"; then
4153 eval "ac_cv_header_$ac_safe=yes"
4156 echo "configure: failed program was:" >&5
4157 cat conftest.
$ac_ext >&5
4159 eval "ac_cv_header_$ac_safe=no"
4163 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4164 echo "$ac_t""yes" 1>&6
4165 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4166 cat >> confdefs.h
<<EOF
4167 #define $ac_tr_hdr 1
4171 echo "$ac_t""no" 1>&6
4175 for ac_hdr
in poll.h sys
/poll.h
4177 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4179 echo "configure:4180: checking for $ac_hdr" >&5
4180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4181 echo $ac_n "(cached) $ac_c" 1>&6
4183 cat > conftest.
$ac_ext <<EOF
4184 #line 4185 "configure"
4185 #include "confdefs.h"
4188 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4189 { (eval echo configure
:4190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4190 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4191 if test -z "$ac_err"; then
4193 eval "ac_cv_header_$ac_safe=yes"
4196 echo "configure: failed program was:" >&5
4197 cat conftest.
$ac_ext >&5
4199 eval "ac_cv_header_$ac_safe=no"
4203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4204 echo "$ac_t""yes" 1>&6
4205 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4206 cat >> confdefs.h
<<EOF
4207 #define $ac_tr_hdr 1
4211 echo "$ac_t""no" 1>&6
4215 for ac_hdr
in proc_service.h thread_db.h
4217 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4219 echo "configure:4220: checking for $ac_hdr" >&5
4220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4221 echo $ac_n "(cached) $ac_c" 1>&6
4223 cat > conftest.
$ac_ext <<EOF
4224 #line 4225 "configure"
4225 #include "confdefs.h"
4228 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4229 { (eval echo configure
:4230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4230 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4231 if test -z "$ac_err"; then
4233 eval "ac_cv_header_$ac_safe=yes"
4236 echo "configure: failed program was:" >&5
4237 cat conftest.
$ac_ext >&5
4239 eval "ac_cv_header_$ac_safe=no"
4243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4244 echo "$ac_t""yes" 1>&6
4245 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4246 cat >> confdefs.h
<<EOF
4247 #define $ac_tr_hdr 1
4251 echo "$ac_t""no" 1>&6
4255 for ac_hdr
in stddef.h
4257 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4258 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4259 echo "configure:4260: checking for $ac_hdr" >&5
4260 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4263 cat > conftest.
$ac_ext <<EOF
4264 #line 4265 "configure"
4265 #include "confdefs.h"
4268 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4269 { (eval echo configure
:4270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4270 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4271 if test -z "$ac_err"; then
4273 eval "ac_cv_header_$ac_safe=yes"
4276 echo "configure: failed program was:" >&5
4277 cat conftest.
$ac_ext >&5
4279 eval "ac_cv_header_$ac_safe=no"
4283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4284 echo "$ac_t""yes" 1>&6
4285 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4286 cat >> confdefs.h
<<EOF
4287 #define $ac_tr_hdr 1
4291 echo "$ac_t""no" 1>&6
4295 for ac_hdr
in stdlib.h
4297 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4298 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4299 echo "configure:4300: checking for $ac_hdr" >&5
4300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4301 echo $ac_n "(cached) $ac_c" 1>&6
4303 cat > conftest.
$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4308 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4309 { (eval echo configure
:4310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4310 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4311 if test -z "$ac_err"; then
4313 eval "ac_cv_header_$ac_safe=yes"
4316 echo "configure: failed program was:" >&5
4317 cat conftest.
$ac_ext >&5
4319 eval "ac_cv_header_$ac_safe=no"
4323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4324 echo "$ac_t""yes" 1>&6
4325 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4326 cat >> confdefs.h
<<EOF
4327 #define $ac_tr_hdr 1
4331 echo "$ac_t""no" 1>&6
4335 for ac_hdr
in stdint.h
4337 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4338 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4339 echo "configure:4340: checking for $ac_hdr" >&5
4340 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4341 echo $ac_n "(cached) $ac_c" 1>&6
4343 cat > conftest.
$ac_ext <<EOF
4344 #line 4345 "configure"
4345 #include "confdefs.h"
4348 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4349 { (eval echo configure
:4350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4350 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4351 if test -z "$ac_err"; then
4353 eval "ac_cv_header_$ac_safe=yes"
4356 echo "configure: failed program was:" >&5
4357 cat conftest.
$ac_ext >&5
4359 eval "ac_cv_header_$ac_safe=no"
4363 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4364 echo "$ac_t""yes" 1>&6
4365 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4366 cat >> confdefs.h
<<EOF
4367 #define $ac_tr_hdr 1
4371 echo "$ac_t""no" 1>&6
4375 for ac_hdr
in string.h memory.h
strings.h
4377 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4378 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4379 echo "configure:4380: checking for $ac_hdr" >&5
4380 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4381 echo $ac_n "(cached) $ac_c" 1>&6
4383 cat > conftest.
$ac_ext <<EOF
4384 #line 4385 "configure"
4385 #include "confdefs.h"
4388 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4389 { (eval echo configure
:4390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4390 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4391 if test -z "$ac_err"; then
4393 eval "ac_cv_header_$ac_safe=yes"
4396 echo "configure: failed program was:" >&5
4397 cat conftest.
$ac_ext >&5
4399 eval "ac_cv_header_$ac_safe=no"
4403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4404 echo "$ac_t""yes" 1>&6
4405 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4406 cat >> confdefs.h
<<EOF
4407 #define $ac_tr_hdr 1
4411 echo "$ac_t""no" 1>&6
4415 for ac_hdr
in sys
/fault.h
4417 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4418 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4419 echo "configure:4420: checking for $ac_hdr" >&5
4420 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4421 echo $ac_n "(cached) $ac_c" 1>&6
4423 cat > conftest.
$ac_ext <<EOF
4424 #line 4425 "configure"
4425 #include "confdefs.h"
4428 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4429 { (eval echo configure
:4430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4430 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4431 if test -z "$ac_err"; then
4433 eval "ac_cv_header_$ac_safe=yes"
4436 echo "configure: failed program was:" >&5
4437 cat conftest.
$ac_ext >&5
4439 eval "ac_cv_header_$ac_safe=no"
4443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4444 echo "$ac_t""yes" 1>&6
4445 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4446 cat >> confdefs.h
<<EOF
4447 #define $ac_tr_hdr 1
4451 echo "$ac_t""no" 1>&6
4455 for ac_hdr
in sys
/file.h
4457 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4458 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4459 echo "configure:4460: checking for $ac_hdr" >&5
4460 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4463 cat > conftest.
$ac_ext <<EOF
4464 #line 4465 "configure"
4465 #include "confdefs.h"
4468 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4469 { (eval echo configure
:4470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4470 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4471 if test -z "$ac_err"; then
4473 eval "ac_cv_header_$ac_safe=yes"
4476 echo "configure: failed program was:" >&5
4477 cat conftest.
$ac_ext >&5
4479 eval "ac_cv_header_$ac_safe=no"
4483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4484 echo "$ac_t""yes" 1>&6
4485 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4486 cat >> confdefs.h
<<EOF
4487 #define $ac_tr_hdr 1
4491 echo "$ac_t""no" 1>&6
4495 for ac_hdr
in sys
/filio.h
4497 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4499 echo "configure:4500: checking for $ac_hdr" >&5
4500 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4501 echo $ac_n "(cached) $ac_c" 1>&6
4503 cat > conftest.
$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4508 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4509 { (eval echo configure
:4510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4510 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4511 if test -z "$ac_err"; then
4513 eval "ac_cv_header_$ac_safe=yes"
4516 echo "configure: failed program was:" >&5
4517 cat conftest.
$ac_ext >&5
4519 eval "ac_cv_header_$ac_safe=no"
4523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4524 echo "$ac_t""yes" 1>&6
4525 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4526 cat >> confdefs.h
<<EOF
4527 #define $ac_tr_hdr 1
4531 echo "$ac_t""no" 1>&6
4535 for ac_hdr
in sys
/ioctl.h
4537 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4539 echo "configure:4540: checking for $ac_hdr" >&5
4540 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4541 echo $ac_n "(cached) $ac_c" 1>&6
4543 cat > conftest.
$ac_ext <<EOF
4544 #line 4545 "configure"
4545 #include "confdefs.h"
4548 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4549 { (eval echo configure
:4550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4550 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4551 if test -z "$ac_err"; then
4553 eval "ac_cv_header_$ac_safe=yes"
4556 echo "configure: failed program was:" >&5
4557 cat conftest.
$ac_ext >&5
4559 eval "ac_cv_header_$ac_safe=no"
4563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4564 echo "$ac_t""yes" 1>&6
4565 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4566 cat >> confdefs.h
<<EOF
4567 #define $ac_tr_hdr 1
4571 echo "$ac_t""no" 1>&6
4575 for ac_hdr
in sys
/param.h
4577 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4579 echo "configure:4580: checking for $ac_hdr" >&5
4580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4583 cat > conftest.
$ac_ext <<EOF
4584 #line 4585 "configure"
4585 #include "confdefs.h"
4588 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4589 { (eval echo configure
:4590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4590 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4591 if test -z "$ac_err"; then
4593 eval "ac_cv_header_$ac_safe=yes"
4596 echo "configure: failed program was:" >&5
4597 cat conftest.
$ac_ext >&5
4599 eval "ac_cv_header_$ac_safe=no"
4603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4604 echo "$ac_t""yes" 1>&6
4605 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4606 cat >> confdefs.h
<<EOF
4607 #define $ac_tr_hdr 1
4611 echo "$ac_t""no" 1>&6
4615 for ac_hdr
in sys
/proc.h
4617 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4618 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4619 echo "configure:4620: checking for $ac_hdr" >&5
4620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4621 echo $ac_n "(cached) $ac_c" 1>&6
4623 cat > conftest.
$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4628 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4629 { (eval echo configure
:4630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4630 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4631 if test -z "$ac_err"; then
4633 eval "ac_cv_header_$ac_safe=yes"
4636 echo "configure: failed program was:" >&5
4637 cat conftest.
$ac_ext >&5
4639 eval "ac_cv_header_$ac_safe=no"
4643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4644 echo "$ac_t""yes" 1>&6
4645 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4646 cat >> confdefs.h
<<EOF
4647 #define $ac_tr_hdr 1
4651 echo "$ac_t""no" 1>&6
4655 for ac_hdr
in sys
/procfs.h
4657 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4659 echo "configure:4660: checking for $ac_hdr" >&5
4660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4661 echo $ac_n "(cached) $ac_c" 1>&6
4663 cat > conftest.
$ac_ext <<EOF
4664 #line 4665 "configure"
4665 #include "confdefs.h"
4668 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4669 { (eval echo configure
:4670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4670 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4671 if test -z "$ac_err"; then
4673 eval "ac_cv_header_$ac_safe=yes"
4676 echo "configure: failed program was:" >&5
4677 cat conftest.
$ac_ext >&5
4679 eval "ac_cv_header_$ac_safe=no"
4683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4684 echo "$ac_t""yes" 1>&6
4685 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4686 cat >> confdefs.h
<<EOF
4687 #define $ac_tr_hdr 1
4691 echo "$ac_t""no" 1>&6
4695 for ac_hdr
in sys
/ptrace.h ptrace.h
4697 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4699 echo "configure:4700: checking for $ac_hdr" >&5
4700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4701 echo $ac_n "(cached) $ac_c" 1>&6
4703 cat > conftest.
$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4708 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4709 { (eval echo configure
:4710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4710 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4711 if test -z "$ac_err"; then
4713 eval "ac_cv_header_$ac_safe=yes"
4716 echo "configure: failed program was:" >&5
4717 cat conftest.
$ac_ext >&5
4719 eval "ac_cv_header_$ac_safe=no"
4723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4724 echo "$ac_t""yes" 1>&6
4725 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4726 cat >> confdefs.h
<<EOF
4727 #define $ac_tr_hdr 1
4731 echo "$ac_t""no" 1>&6
4735 for ac_hdr
in sys
/reg.h sys
/debugreg.h
4737 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4739 echo "configure:4740: checking for $ac_hdr" >&5
4740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4741 echo $ac_n "(cached) $ac_c" 1>&6
4743 cat > conftest.
$ac_ext <<EOF
4744 #line 4745 "configure"
4745 #include "confdefs.h"
4748 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4749 { (eval echo configure
:4750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4750 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4751 if test -z "$ac_err"; then
4753 eval "ac_cv_header_$ac_safe=yes"
4756 echo "configure: failed program was:" >&5
4757 cat conftest.
$ac_ext >&5
4759 eval "ac_cv_header_$ac_safe=no"
4763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4764 echo "$ac_t""yes" 1>&6
4765 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4766 cat >> confdefs.h
<<EOF
4767 #define $ac_tr_hdr 1
4771 echo "$ac_t""no" 1>&6
4775 for ac_hdr
in sys
/select.h
4777 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4778 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4779 echo "configure:4780: checking for $ac_hdr" >&5
4780 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4781 echo $ac_n "(cached) $ac_c" 1>&6
4783 cat > conftest.
$ac_ext <<EOF
4784 #line 4785 "configure"
4785 #include "confdefs.h"
4788 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4789 { (eval echo configure
:4790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4790 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4791 if test -z "$ac_err"; then
4793 eval "ac_cv_header_$ac_safe=yes"
4796 echo "configure: failed program was:" >&5
4797 cat conftest.
$ac_ext >&5
4799 eval "ac_cv_header_$ac_safe=no"
4803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4804 echo "$ac_t""yes" 1>&6
4805 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4806 cat >> confdefs.h
<<EOF
4807 #define $ac_tr_hdr 1
4811 echo "$ac_t""no" 1>&6
4815 for ac_hdr
in sys
/syscall.h
4817 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4819 echo "configure:4820: checking for $ac_hdr" >&5
4820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4821 echo $ac_n "(cached) $ac_c" 1>&6
4823 cat > conftest.
$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4828 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4829 { (eval echo configure
:4830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4830 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4831 if test -z "$ac_err"; then
4833 eval "ac_cv_header_$ac_safe=yes"
4836 echo "configure: failed program was:" >&5
4837 cat conftest.
$ac_ext >&5
4839 eval "ac_cv_header_$ac_safe=no"
4843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4844 echo "$ac_t""yes" 1>&6
4845 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4846 cat >> confdefs.h
<<EOF
4847 #define $ac_tr_hdr 1
4851 echo "$ac_t""no" 1>&6
4855 for ac_hdr
in sys
/user.h
4857 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4859 echo "configure:4860: checking for $ac_hdr" >&5
4860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4861 echo $ac_n "(cached) $ac_c" 1>&6
4863 cat > conftest.
$ac_ext <<EOF
4864 #line 4865 "configure"
4865 #include "confdefs.h"
4868 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4869 { (eval echo configure
:4870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4870 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4871 if test -z "$ac_err"; then
4873 eval "ac_cv_header_$ac_safe=yes"
4876 echo "configure: failed program was:" >&5
4877 cat conftest.
$ac_ext >&5
4879 eval "ac_cv_header_$ac_safe=no"
4883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4884 echo "$ac_t""yes" 1>&6
4885 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4886 cat >> confdefs.h
<<EOF
4887 #define $ac_tr_hdr 1
4891 echo "$ac_t""no" 1>&6
4895 for ac_hdr
in sys
/wait.h
wait.h
4897 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4899 echo "configure:4900: checking for $ac_hdr" >&5
4900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4901 echo $ac_n "(cached) $ac_c" 1>&6
4903 cat > conftest.
$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4908 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4909 { (eval echo configure
:4910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4910 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4911 if test -z "$ac_err"; then
4913 eval "ac_cv_header_$ac_safe=yes"
4916 echo "configure: failed program was:" >&5
4917 cat conftest.
$ac_ext >&5
4919 eval "ac_cv_header_$ac_safe=no"
4923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4924 echo "$ac_t""yes" 1>&6
4925 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4926 cat >> confdefs.h
<<EOF
4927 #define $ac_tr_hdr 1
4931 echo "$ac_t""no" 1>&6
4935 for ac_hdr
in termios.h termio.h sgtty.h
4937 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4939 echo "configure:4940: checking for $ac_hdr" >&5
4940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 cat > conftest.
$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4948 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4949 { (eval echo configure
:4950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4950 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4951 if test -z "$ac_err"; then
4953 eval "ac_cv_header_$ac_safe=yes"
4956 echo "configure: failed program was:" >&5
4957 cat conftest.
$ac_ext >&5
4959 eval "ac_cv_header_$ac_safe=no"
4963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4964 echo "$ac_t""yes" 1>&6
4965 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4966 cat >> confdefs.h
<<EOF
4967 #define $ac_tr_hdr 1
4971 echo "$ac_t""no" 1>&6
4975 for ac_hdr
in unistd.h
4977 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4978 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4979 echo "configure:4980: checking for $ac_hdr" >&5
4980 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4981 echo $ac_n "(cached) $ac_c" 1>&6
4983 cat > conftest.
$ac_ext <<EOF
4984 #line 4985 "configure"
4985 #include "confdefs.h"
4988 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4989 { (eval echo configure
:4990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4990 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4991 if test -z "$ac_err"; then
4993 eval "ac_cv_header_$ac_safe=yes"
4996 echo "configure: failed program was:" >&5
4997 cat conftest.
$ac_ext >&5
4999 eval "ac_cv_header_$ac_safe=no"
5003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5004 echo "$ac_t""yes" 1>&6
5005 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5006 cat >> confdefs.h
<<EOF
5007 #define $ac_tr_hdr 1
5011 echo "$ac_t""no" 1>&6
5016 # On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
5017 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
5018 # think that we don't have <curses.h> if we're using GCC.
5021 if test "$GCC" = yes; then
5022 cat >> confdefs.h
<<\EOF
5023 #define _MSE_INT_H 1
5028 for ac_hdr
in curses.h ncurses.h term.h
5030 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5031 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5032 echo "configure:5033: checking for $ac_hdr" >&5
5033 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5034 echo $ac_n "(cached) $ac_c" 1>&6
5036 cat > conftest.
$ac_ext <<EOF
5037 #line 5038 "configure"
5038 #include "confdefs.h"
5041 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5042 { (eval echo configure
:5043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5043 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5044 if test -z "$ac_err"; then
5046 eval "ac_cv_header_$ac_safe=yes"
5049 echo "configure: failed program was:" >&5
5050 cat conftest.
$ac_ext >&5
5052 eval "ac_cv_header_$ac_safe=no"
5056 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5057 echo "$ac_t""yes" 1>&6
5058 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5059 cat >> confdefs.h
<<EOF
5060 #define $ac_tr_hdr 1
5064 echo "$ac_t""no" 1>&6
5069 # FIXME: kettenis/20030102: In most cases we include these
5070 # unconditionally, so what's the point in checking these?
5071 for ac_hdr
in ctype.h
time.h
5073 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5074 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5075 echo "configure:5076: checking for $ac_hdr" >&5
5076 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5077 echo $ac_n "(cached) $ac_c" 1>&6
5079 cat > conftest.
$ac_ext <<EOF
5080 #line 5081 "configure"
5081 #include "confdefs.h"
5084 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5085 { (eval echo configure
:5086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5086 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5087 if test -z "$ac_err"; then
5089 eval "ac_cv_header_$ac_safe=yes"
5092 echo "configure: failed program was:" >&5
5093 cat conftest.
$ac_ext >&5
5095 eval "ac_cv_header_$ac_safe=no"
5099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5100 echo "$ac_t""yes" 1>&6
5101 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5102 cat >> confdefs.h
<<EOF
5103 #define $ac_tr_hdr 1
5107 echo "$ac_t""no" 1>&6
5112 # ------------------ #
5113 # Checks for types. #
5114 # ------------------ #
5116 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5117 echo "configure:5118: checking return type of signal handlers" >&5
5118 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5119 echo $ac_n "(cached) $ac_c" 1>&6
5121 cat > conftest.
$ac_ext <<EOF
5122 #line 5123 "configure"
5123 #include "confdefs.h"
5124 #include <sys/types.h>
5130 extern "C" void (*signal (int, void (*)(int)))(int);
5132 void (*signal ()) ();
5139 if { (eval echo configure
:5140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5141 ac_cv_type_signal
=void
5143 echo "configure: failed program was:" >&5
5144 cat conftest.
$ac_ext >&5
5146 ac_cv_type_signal
=int
5151 echo "$ac_t""$ac_cv_type_signal" 1>&6
5152 cat >> confdefs.h
<<EOF
5153 #define RETSIGTYPE $ac_cv_type_signal
5158 # ------------------------------------- #
5159 # Checks for compiler characteristics. #
5160 # ------------------------------------- #
5162 echo $ac_n "checking for working const""... $ac_c" 1>&6
5163 echo "configure:5164: checking for working const" >&5
5164 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5165 echo $ac_n "(cached) $ac_c" 1>&6
5167 cat > conftest.
$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5173 /* Ultrix mips cc rejects this. */
5174 typedef int charset[2]; const charset x;
5175 /* SunOS 4.1.1 cc rejects this. */
5176 char const *const *ccp;
5178 /* NEC SVR4.0.2 mips cc rejects this. */
5179 struct point {int x, y;};
5180 static struct point const zero = {0,0};
5181 /* AIX XL C 1.02.0.0 rejects this.
5182 It does not let you subtract one const X* pointer from another in an arm
5183 of an if-expression whose if-part is not a constant expression */
5184 const char *g = "string";
5185 ccp = &g + (g ? g-g : 0);
5186 /* HPUX 7.0 cc rejects these. */
5189 ccp = (char const *const *) p;
5190 { /* SCO 3.2v4 cc rejects this. */
5192 char const *s = 0 ? (char *) 0 : (char const *) 0;
5196 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5198 const int *foo = &x[0];
5201 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5202 typedef const int *iptr;
5206 { /* AIX XL C 1.02.0.0 rejects this saying
5207 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5208 struct s { int j; const int *ap[3]; };
5209 struct s *b; b->j = 5;
5211 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5217 if { (eval echo configure
:5218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5221 echo "configure: failed program was:" >&5
5222 cat conftest.
$ac_ext >&5
5229 echo "$ac_t""$ac_cv_c_const" 1>&6
5230 if test $ac_cv_c_const = no
; then
5231 cat >> confdefs.h
<<\EOF
5237 echo $ac_n "checking for inline""... $ac_c" 1>&6
5238 echo "configure:5239: checking for inline" >&5
5239 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5240 echo $ac_n "(cached) $ac_c" 1>&6
5243 for ac_kw
in inline __inline__ __inline
; do
5244 cat > conftest.
$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5252 if { (eval echo configure
:5253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5254 ac_cv_c_inline
=$ac_kw; break
5256 echo "configure: failed program was:" >&5
5257 cat conftest.
$ac_ext >&5
5264 echo "$ac_t""$ac_cv_c_inline" 1>&6
5265 case "$ac_cv_c_inline" in
5267 no
) cat >> confdefs.h
<<\EOF
5271 *) cat >> confdefs.h
<<EOF
5272 #define inline $ac_cv_c_inline
5278 # ------------------------------ #
5279 # Checks for library functions. #
5280 # ------------------------------ #
5282 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5283 # for constant arguments. Useless!
5284 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5285 echo "configure:5286: checking for working alloca.h" >&5
5286 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5287 echo $ac_n "(cached) $ac_c" 1>&6
5289 cat > conftest.
$ac_ext <<EOF
5290 #line 5291 "configure"
5291 #include "confdefs.h"
5294 char *p = alloca(2 * sizeof(int));
5297 if { (eval echo configure
:5298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5299 ac_cv_header_alloca_h
=yes
5301 echo "configure: failed program was:" >&5
5302 cat conftest.
$ac_ext >&5
5304 ac_cv_header_alloca_h
=no
5309 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5310 if test $ac_cv_header_alloca_h = yes; then
5311 cat >> confdefs.h
<<\EOF
5312 #define HAVE_ALLOCA_H 1
5317 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5318 echo "configure:5319: checking for alloca" >&5
5319 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5322 cat > conftest.
$ac_ext <<EOF
5323 #line 5324 "configure"
5324 #include "confdefs.h"
5327 # define alloca __builtin_alloca
5330 # include <malloc.h>
5331 # define alloca _alloca
5334 # include <alloca.h>
5339 # ifndef alloca /* predefined by HP cc +Olibcalls */
5348 char *p = (char *) alloca(1);
5351 if { (eval echo configure
:5352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5353 ac_cv_func_alloca_works
=yes
5355 echo "configure: failed program was:" >&5
5356 cat conftest.
$ac_ext >&5
5358 ac_cv_func_alloca_works
=no
5363 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5364 if test $ac_cv_func_alloca_works = yes; then
5365 cat >> confdefs.h
<<\EOF
5366 #define HAVE_ALLOCA 1
5371 if test $ac_cv_func_alloca_works = no
; then
5372 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5373 # that cause trouble. Some versions do not even contain alloca or
5374 # contain a buggy version. If you still want to use their alloca,
5375 # use ar to extract alloca.o from them instead of compiling alloca.c.
5376 ALLOCA
=alloca.
${ac_objext}
5377 cat >> confdefs.h
<<\EOF
5382 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5383 echo "configure:5384: checking whether alloca needs Cray hooks" >&5
5384 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5385 echo $ac_n "(cached) $ac_c" 1>&6
5387 cat > conftest.
$ac_ext <<EOF
5388 #line 5389 "configure"
5389 #include "confdefs.h"
5390 #if defined(CRAY) && ! defined(CRAY2)
5397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5398 egrep "webecray" >/dev
/null
2>&1; then
5409 echo "$ac_t""$ac_cv_os_cray" 1>&6
5410 if test $ac_cv_os_cray = yes; then
5411 for ac_func
in _getb67 GETB67 getb67
; do
5412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5413 echo "configure:5414: checking for $ac_func" >&5
5414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5415 echo $ac_n "(cached) $ac_c" 1>&6
5417 cat > conftest.
$ac_ext <<EOF
5418 #line 5419 "configure"
5419 #include "confdefs.h"
5420 /* System header to define __stub macros and hopefully few prototypes,
5421 which can conflict with char $ac_func(); below. */
5423 /* Override any gcc2 internal prototype to avoid an error. */
5424 /* We use char because int might match the return type of a gcc2
5425 builtin and then its argument prototype would still apply. */
5430 /* The GNU C library defines this for functions which it implements
5431 to always fail with ENOSYS. Some functions are actually named
5432 something starting with __ and the normal name is an alias. */
5433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5441 if { (eval echo configure
:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5443 eval "ac_cv_func_$ac_func=yes"
5445 echo "configure: failed program was:" >&5
5446 cat conftest.
$ac_ext >&5
5448 eval "ac_cv_func_$ac_func=no"
5453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5454 echo "$ac_t""yes" 1>&6
5455 cat >> confdefs.h
<<EOF
5456 #define CRAY_STACKSEG_END $ac_func
5461 echo "$ac_t""no" 1>&6
5467 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5468 echo "configure:5469: checking stack direction for C alloca" >&5
5469 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5470 echo $ac_n "(cached) $ac_c" 1>&6
5472 if test "$cross_compiling" = yes; then
5473 ac_cv_c_stack_direction
=0
5475 cat > conftest.
$ac_ext <<EOF
5476 #line 5477 "configure"
5477 #include "confdefs.h"
5478 find_stack_direction ()
5480 static char *addr = 0;
5485 return find_stack_direction ();
5488 return (&dummy > addr) ? 1 : -1;
5492 exit (find_stack_direction() < 0);
5495 if { (eval echo configure
:5496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5497 ac_cv_c_stack_direction
=1
5499 echo "configure: failed program was:" >&5
5500 cat conftest.
$ac_ext >&5
5502 ac_cv_c_stack_direction
=-1
5509 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5510 cat >> confdefs.h
<<EOF
5511 #define STACK_DIRECTION $ac_cv_c_stack_direction
5516 for ac_hdr
in unistd.h
5518 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5520 echo "configure:5521: checking for $ac_hdr" >&5
5521 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5522 echo $ac_n "(cached) $ac_c" 1>&6
5524 cat > conftest.
$ac_ext <<EOF
5525 #line 5526 "configure"
5526 #include "confdefs.h"
5529 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5530 { (eval echo configure
:5531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5531 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5532 if test -z "$ac_err"; then
5534 eval "ac_cv_header_$ac_safe=yes"
5537 echo "configure: failed program was:" >&5
5538 cat conftest.
$ac_ext >&5
5540 eval "ac_cv_header_$ac_safe=no"
5544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5545 echo "$ac_t""yes" 1>&6
5546 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5547 cat >> confdefs.h
<<EOF
5548 #define $ac_tr_hdr 1
5552 echo "$ac_t""no" 1>&6
5556 for ac_func
in getpagesize
5558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5559 echo "configure:5560: checking for $ac_func" >&5
5560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5561 echo $ac_n "(cached) $ac_c" 1>&6
5563 cat > conftest.
$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5566 /* System header to define __stub macros and hopefully few prototypes,
5567 which can conflict with char $ac_func(); below. */
5569 /* Override any gcc2 internal prototype to avoid an error. */
5570 /* We use char because int might match the return type of a gcc2
5571 builtin and then its argument prototype would still apply. */
5576 /* The GNU C library defines this for functions which it implements
5577 to always fail with ENOSYS. Some functions are actually named
5578 something starting with __ and the normal name is an alias. */
5579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5587 if { (eval echo configure
:5588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5589 eval "ac_cv_func_$ac_func=yes"
5591 echo "configure: failed program was:" >&5
5592 cat conftest.
$ac_ext >&5
5594 eval "ac_cv_func_$ac_func=no"
5599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5600 echo "$ac_t""yes" 1>&6
5601 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5602 cat >> confdefs.h
<<EOF
5603 #define $ac_tr_func 1
5607 echo "$ac_t""no" 1>&6
5611 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5612 echo "configure:5613: checking for working mmap" >&5
5613 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5614 echo $ac_n "(cached) $ac_c" 1>&6
5616 if test "$cross_compiling" = yes; then
5617 ac_cv_func_mmap_fixed_mapped
=no
5619 cat > conftest.
$ac_ext <<EOF
5620 #line 5621 "configure"
5621 #include "confdefs.h"
5623 /* Thanks to Mike Haertel and Jim Avera for this test.
5624 Here is a matrix of mmap possibilities:
5625 mmap private not fixed
5626 mmap private fixed at somewhere currently unmapped
5627 mmap private fixed at somewhere already mapped
5628 mmap shared not fixed
5629 mmap shared fixed at somewhere currently unmapped
5630 mmap shared fixed at somewhere already mapped
5631 For private mappings, we should verify that changes cannot be read()
5632 back from the file, nor mmap's back from the file at a different
5633 address. (There have been systems where private was not correctly
5634 implemented like the infamous i386 svr4.0, and systems where the
5635 VM page cache was not coherent with the filesystem buffer cache
5636 like early versions of FreeBSD and possibly contemporary NetBSD.)
5637 For shared mappings, we should conversely verify that changes get
5638 propogated back to all the places they're supposed to be.
5640 Grep wants private fixed already mapped.
5641 The main things grep needs to know about mmap are:
5642 * does it exist and is it safe to write into the mmap'd area
5643 * how to use it (BSD variants) */
5644 #include <sys/types.h>
5646 #include <sys/mman.h>
5648 /* This mess was copied from the GNU getpagesize.h. */
5649 #ifndef HAVE_GETPAGESIZE
5650 # ifdef HAVE_UNISTD_H
5651 # include <unistd.h>
5654 /* Assume that all systems that can run configure have sys/param.h. */
5655 # ifndef HAVE_SYS_PARAM_H
5656 # define HAVE_SYS_PARAM_H 1
5659 # ifdef _SC_PAGESIZE
5660 # define getpagesize() sysconf(_SC_PAGESIZE)
5661 # else /* no _SC_PAGESIZE */
5662 # ifdef HAVE_SYS_PARAM_H
5663 # include <sys/param.h>
5664 # ifdef EXEC_PAGESIZE
5665 # define getpagesize() EXEC_PAGESIZE
5666 # else /* no EXEC_PAGESIZE */
5668 # define getpagesize() NBPG * CLSIZE
5671 # endif /* no CLSIZE */
5672 # else /* no NBPG */
5674 # define getpagesize() NBPC
5675 # else /* no NBPC */
5677 # define getpagesize() PAGESIZE
5678 # endif /* PAGESIZE */
5679 # endif /* no NBPC */
5680 # endif /* no NBPG */
5681 # endif /* no EXEC_PAGESIZE */
5682 # else /* no HAVE_SYS_PARAM_H */
5683 # define getpagesize() 8192 /* punt totally */
5684 # endif /* no HAVE_SYS_PARAM_H */
5685 # endif /* no _SC_PAGESIZE */
5687 #endif /* no HAVE_GETPAGESIZE */
5690 extern "C" { void *malloc(unsigned); }
5698 char *data, *data2, *data3;
5702 pagesize = getpagesize();
5705 * First, make a file with some known garbage in it.
5707 data = malloc(pagesize);
5710 for (i = 0; i < pagesize; ++i)
5711 *(data + i) = rand();
5713 fd = creat("conftestmmap", 0600);
5716 if (write(fd, data, pagesize) != pagesize)
5721 * Next, try to mmap the file at a fixed address which
5722 * already has something else allocated at it. If we can,
5723 * also make sure that we see the same garbage.
5725 fd = open("conftestmmap", O_RDWR);
5728 data2 = malloc(2 * pagesize);
5731 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5732 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5733 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5735 for (i = 0; i < pagesize; ++i)
5736 if (*(data + i) != *(data2 + i))
5740 * Finally, make sure that changes to the mapped area
5741 * do not percolate back to the file as seen by read().
5742 * (This is a bug on some variants of i386 svr4.0.)
5744 for (i = 0; i < pagesize; ++i)
5745 *(data2 + i) = *(data2 + i) + 1;
5746 data3 = malloc(pagesize);
5749 if (read(fd, data3, pagesize) != pagesize)
5751 for (i = 0; i < pagesize; ++i)
5752 if (*(data + i) != *(data3 + i))
5755 unlink("conftestmmap");
5760 if { (eval echo configure
:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5762 ac_cv_func_mmap_fixed_mapped
=yes
5764 echo "configure: failed program was:" >&5
5765 cat conftest.
$ac_ext >&5
5767 ac_cv_func_mmap_fixed_mapped
=no
5774 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5775 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5776 cat >> confdefs.h
<<\EOF
5782 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5783 echo "configure:5784: checking for pid_t" >&5
5784 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5785 echo $ac_n "(cached) $ac_c" 1>&6
5787 cat > conftest.
$ac_ext <<EOF
5788 #line 5789 "configure"
5789 #include "confdefs.h"
5790 #include <sys/types.h>
5796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5797 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5799 ac_cv_type_pid_t
=yes
5807 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5808 if test $ac_cv_type_pid_t = no
; then
5809 cat >> confdefs.h
<<\EOF
5815 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
5816 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
5817 echo "configure:5818: checking for vfork.h" >&5
5818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5819 echo $ac_n "(cached) $ac_c" 1>&6
5821 cat > conftest.
$ac_ext <<EOF
5822 #line 5823 "configure"
5823 #include "confdefs.h"
5826 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5827 { (eval echo configure
:5828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5828 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5829 if test -z "$ac_err"; then
5831 eval "ac_cv_header_$ac_safe=yes"
5834 echo "configure: failed program was:" >&5
5835 cat conftest.
$ac_ext >&5
5837 eval "ac_cv_header_$ac_safe=no"
5841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5842 echo "$ac_t""yes" 1>&6
5843 cat >> confdefs.h
<<\EOF
5844 #define HAVE_VFORK_H 1
5848 echo "$ac_t""no" 1>&6
5851 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
5852 echo "configure:5853: checking for working vfork" >&5
5853 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5856 if test "$cross_compiling" = yes; then
5857 echo $ac_n "checking for vfork""... $ac_c" 1>&6
5858 echo "configure:5859: checking for vfork" >&5
5859 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
5860 echo $ac_n "(cached) $ac_c" 1>&6
5862 cat > conftest.
$ac_ext <<EOF
5863 #line 5864 "configure"
5864 #include "confdefs.h"
5865 /* System header to define __stub macros and hopefully few prototypes,
5866 which can conflict with char vfork(); below. */
5868 /* Override any gcc2 internal prototype to avoid an error. */
5869 /* We use char because int might match the return type of a gcc2
5870 builtin and then its argument prototype would still apply. */
5875 /* The GNU C library defines this for functions which it implements
5876 to always fail with ENOSYS. Some functions are actually named
5877 something starting with __ and the normal name is an alias. */
5878 #if defined (__stub_vfork) || defined (__stub___vfork)
5886 if { (eval echo configure
:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5888 eval "ac_cv_func_vfork=yes"
5890 echo "configure: failed program was:" >&5
5891 cat conftest.
$ac_ext >&5
5893 eval "ac_cv_func_vfork=no"
5898 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
5899 echo "$ac_t""yes" 1>&6
5902 echo "$ac_t""no" 1>&6
5905 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5907 cat > conftest.
$ac_ext <<EOF
5908 #line 5909 "configure"
5909 #include "confdefs.h"
5910 /* Thanks to Paul Eggert for this test. */
5912 #include <sys/types.h>
5913 #include <sys/stat.h>
5914 #ifdef HAVE_UNISTD_H
5920 /* On some sparc systems, changes by the child to local and incoming
5921 argument registers are propagated back to the parent.
5922 The compiler is told about this with #include <vfork.h>,
5923 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
5924 Test for this by using a static variable whose address
5925 is put into a register that is clobbered by the vfork. */
5928 sparc_address_test (int arg)
5930 sparc_address_test (arg) int arg;
5948 pid_t parent = getpid ();
5951 sparc_address_test ();
5956 /* Here is another test for sparc vfork register problems.
5957 This test uses lots of local variables, at least
5958 as many local variables as main has allocated so far
5959 including compiler temporaries. 4 locals are enough for
5960 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
5961 A buggy compiler should reuse the register of parent
5962 for one of the local variables, since it will think that
5963 parent can't possibly be used any more in this routine.
5964 Assigning to the local variable will thus munge parent
5965 in the parent process. */
5967 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5968 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5969 /* Convince the compiler that p..p7 are live; otherwise, it might
5970 use the same hardware register for all 8 local variables. */
5971 if (p != p1 || p != p2 || p != p3 || p != p4
5972 || p != p5 || p != p6 || p != p7)
5975 /* On some systems (e.g. IRIX 3.3),
5976 vfork doesn't separate parent from child file descriptors.
5977 If the child closes a descriptor before it execs or exits,
5978 this munges the parent's descriptor as well.
5979 Test for this by closing stdout in the child. */
5980 _exit(close(fileno(stdout)) != 0);
5985 while (wait(&status) != child)
5988 /* Was there some problem with vforking? */
5991 /* Did the child fail? (This shouldn't happen.) */
5994 /* Did the vfork/compiler bug occur? */
5995 || parent != getpid()
5997 /* Did the file descriptor bug occur? */
5998 || fstat(fileno(stdout), &st) != 0
6003 if { (eval echo configure
:6004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6005 ac_cv_func_vfork_works
=yes
6007 echo "configure: failed program was:" >&5
6008 cat conftest.
$ac_ext >&5
6010 ac_cv_func_vfork_works
=no
6017 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6018 if test $ac_cv_func_vfork_works = no
; then
6019 cat >> confdefs.h
<<\EOF
6025 for ac_func
in canonicalize_file_name realpath
6027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6028 echo "configure:6029: checking for $ac_func" >&5
6029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6030 echo $ac_n "(cached) $ac_c" 1>&6
6032 cat > conftest.
$ac_ext <<EOF
6033 #line 6034 "configure"
6034 #include "confdefs.h"
6035 /* System header to define __stub macros and hopefully few prototypes,
6036 which can conflict with char $ac_func(); below. */
6038 /* Override any gcc2 internal prototype to avoid an error. */
6039 /* We use char because int might match the return type of a gcc2
6040 builtin and then its argument prototype would still apply. */
6045 /* The GNU C library defines this for functions which it implements
6046 to always fail with ENOSYS. Some functions are actually named
6047 something starting with __ and the normal name is an alias. */
6048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6056 if { (eval echo configure
:6057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6058 eval "ac_cv_func_$ac_func=yes"
6060 echo "configure: failed program was:" >&5
6061 cat conftest.
$ac_ext >&5
6063 eval "ac_cv_func_$ac_func=no"
6068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6069 echo "$ac_t""yes" 1>&6
6070 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6071 cat >> confdefs.h
<<EOF
6072 #define $ac_tr_func 1
6076 echo "$ac_t""no" 1>&6
6082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6083 echo "configure:6084: checking for $ac_func" >&5
6084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6085 echo $ac_n "(cached) $ac_c" 1>&6
6087 cat > conftest.
$ac_ext <<EOF
6088 #line 6089 "configure"
6089 #include "confdefs.h"
6090 /* System header to define __stub macros and hopefully few prototypes,
6091 which can conflict with char $ac_func(); below. */
6093 /* Override any gcc2 internal prototype to avoid an error. */
6094 /* We use char because int might match the return type of a gcc2
6095 builtin and then its argument prototype would still apply. */
6100 /* The GNU C library defines this for functions which it implements
6101 to always fail with ENOSYS. Some functions are actually named
6102 something starting with __ and the normal name is an alias. */
6103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6111 if { (eval echo configure
:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6113 eval "ac_cv_func_$ac_func=yes"
6115 echo "configure: failed program was:" >&5
6116 cat conftest.
$ac_ext >&5
6118 eval "ac_cv_func_$ac_func=no"
6123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6124 echo "$ac_t""yes" 1>&6
6125 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6126 cat >> confdefs.h
<<EOF
6127 #define $ac_tr_func 1
6131 echo "$ac_t""no" 1>&6
6135 for ac_func
in pread64
6137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6138 echo "configure:6139: checking for $ac_func" >&5
6139 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6140 echo $ac_n "(cached) $ac_c" 1>&6
6142 cat > conftest.
$ac_ext <<EOF
6143 #line 6144 "configure"
6144 #include "confdefs.h"
6145 /* System header to define __stub macros and hopefully few prototypes,
6146 which can conflict with char $ac_func(); below. */
6148 /* Override any gcc2 internal prototype to avoid an error. */
6149 /* We use char because int might match the return type of a gcc2
6150 builtin and then its argument prototype would still apply. */
6155 /* The GNU C library defines this for functions which it implements
6156 to always fail with ENOSYS. Some functions are actually named
6157 something starting with __ and the normal name is an alias. */
6158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6166 if { (eval echo configure
:6167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6168 eval "ac_cv_func_$ac_func=yes"
6170 echo "configure: failed program was:" >&5
6171 cat conftest.
$ac_ext >&5
6173 eval "ac_cv_func_$ac_func=no"
6178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6179 echo "$ac_t""yes" 1>&6
6180 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6181 cat >> confdefs.h
<<EOF
6182 #define $ac_tr_func 1
6186 echo "$ac_t""no" 1>&6
6192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6193 echo "configure:6194: checking for $ac_func" >&5
6194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6197 cat > conftest.
$ac_ext <<EOF
6198 #line 6199 "configure"
6199 #include "confdefs.h"
6200 /* System header to define __stub macros and hopefully few prototypes,
6201 which can conflict with char $ac_func(); below. */
6203 /* Override any gcc2 internal prototype to avoid an error. */
6204 /* We use char because int might match the return type of a gcc2
6205 builtin and then its argument prototype would still apply. */
6210 /* The GNU C library defines this for functions which it implements
6211 to always fail with ENOSYS. Some functions are actually named
6212 something starting with __ and the normal name is an alias. */
6213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6221 if { (eval echo configure
:6222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6223 eval "ac_cv_func_$ac_func=yes"
6225 echo "configure: failed program was:" >&5
6226 cat conftest.
$ac_ext >&5
6228 eval "ac_cv_func_$ac_func=no"
6233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6234 echo "$ac_t""yes" 1>&6
6235 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6236 cat >> confdefs.h
<<EOF
6237 #define $ac_tr_func 1
6241 echo "$ac_t""no" 1>&6
6245 for ac_func
in setpgid setpgrp
6247 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6248 echo "configure:6249: checking for $ac_func" >&5
6249 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6250 echo $ac_n "(cached) $ac_c" 1>&6
6252 cat > conftest.
$ac_ext <<EOF
6253 #line 6254 "configure"
6254 #include "confdefs.h"
6255 /* System header to define __stub macros and hopefully few prototypes,
6256 which can conflict with char $ac_func(); below. */
6258 /* Override any gcc2 internal prototype to avoid an error. */
6259 /* We use char because int might match the return type of a gcc2
6260 builtin and then its argument prototype would still apply. */
6265 /* The GNU C library defines this for functions which it implements
6266 to always fail with ENOSYS. Some functions are actually named
6267 something starting with __ and the normal name is an alias. */
6268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6276 if { (eval echo configure
:6277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6278 eval "ac_cv_func_$ac_func=yes"
6280 echo "configure: failed program was:" >&5
6281 cat conftest.
$ac_ext >&5
6283 eval "ac_cv_func_$ac_func=no"
6288 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6289 echo "$ac_t""yes" 1>&6
6290 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6291 cat >> confdefs.h
<<EOF
6292 #define $ac_tr_func 1
6296 echo "$ac_t""no" 1>&6
6300 for ac_func
in sigaction sigprocmask sigsetmask
6302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6303 echo "configure:6304: checking for $ac_func" >&5
6304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6305 echo $ac_n "(cached) $ac_c" 1>&6
6307 cat > conftest.
$ac_ext <<EOF
6308 #line 6309 "configure"
6309 #include "confdefs.h"
6310 /* System header to define __stub macros and hopefully few prototypes,
6311 which can conflict with char $ac_func(); below. */
6313 /* Override any gcc2 internal prototype to avoid an error. */
6314 /* We use char because int might match the return type of a gcc2
6315 builtin and then its argument prototype would still apply. */
6320 /* The GNU C library defines this for functions which it implements
6321 to always fail with ENOSYS. Some functions are actually named
6322 something starting with __ and the normal name is an alias. */
6323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6331 if { (eval echo configure
:6332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6333 eval "ac_cv_func_$ac_func=yes"
6335 echo "configure: failed program was:" >&5
6336 cat conftest.
$ac_ext >&5
6338 eval "ac_cv_func_$ac_func=no"
6343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6344 echo "$ac_t""yes" 1>&6
6345 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6346 cat >> confdefs.h
<<EOF
6347 #define $ac_tr_func 1
6351 echo "$ac_t""no" 1>&6
6355 for ac_func
in socketpair
6357 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6358 echo "configure:6359: checking for $ac_func" >&5
6359 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6360 echo $ac_n "(cached) $ac_c" 1>&6
6362 cat > conftest.
$ac_ext <<EOF
6363 #line 6364 "configure"
6364 #include "confdefs.h"
6365 /* System header to define __stub macros and hopefully few prototypes,
6366 which can conflict with char $ac_func(); below. */
6368 /* Override any gcc2 internal prototype to avoid an error. */
6369 /* We use char because int might match the return type of a gcc2
6370 builtin and then its argument prototype would still apply. */
6375 /* The GNU C library defines this for functions which it implements
6376 to always fail with ENOSYS. Some functions are actually named
6377 something starting with __ and the normal name is an alias. */
6378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6386 if { (eval echo configure
:6387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6388 eval "ac_cv_func_$ac_func=yes"
6390 echo "configure: failed program was:" >&5
6391 cat conftest.
$ac_ext >&5
6393 eval "ac_cv_func_$ac_func=no"
6398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6399 echo "$ac_t""yes" 1>&6
6400 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6401 cat >> confdefs.h
<<EOF
6402 #define $ac_tr_func 1
6406 echo "$ac_t""no" 1>&6
6411 if test "$cross_compiling" = no
; then
6412 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
6413 echo "configure:6414: checking whether setpgrp takes no argument" >&5
6414 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
6415 echo $ac_n "(cached) $ac_c" 1>&6
6417 if test "$cross_compiling" = yes; then
6418 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
6420 cat > conftest.
$ac_ext <<EOF
6421 #line 6422 "configure"
6422 #include "confdefs.h"
6424 #ifdef HAVE_UNISTD_H
6429 * If this system has a BSD-style setpgrp, which takes arguments, exit
6434 if (setpgrp(1,1) == -1)
6441 if { (eval echo configure
:6442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6443 ac_cv_func_setpgrp_void
=no
6445 echo "configure: failed program was:" >&5
6446 cat conftest.
$ac_ext >&5
6448 ac_cv_func_setpgrp_void
=yes
6456 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
6457 if test $ac_cv_func_setpgrp_void = yes; then
6458 cat >> confdefs.h
<<\EOF
6459 #define SETPGRP_VOID 1
6465 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
6466 echo "configure:6467: checking whether setpgrp takes no argument" >&5
6467 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
6468 echo $ac_n "(cached) $ac_c" 1>&6
6470 cat > conftest.
$ac_ext <<EOF
6471 #line 6472 "configure"
6472 #include "confdefs.h"
6478 if (setpgrp(1,1) == -1)
6485 if { (eval echo configure
:6486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6487 ac_cv_func_setpgrp_void
=no
6489 echo "configure: failed program was:" >&5
6490 cat conftest.
$ac_ext >&5
6492 ac_cv_func_setpgrp_void
=yes
6497 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
6498 if test $ac_cv_func_setpgrp_void = yes; then
6499 cat >> confdefs.h
<<\EOF
6500 #define SETPGRP_VOID 1
6506 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
6507 # since sigsetjmp might only be defined as a macro.
6508 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6509 echo "configure:6510: checking for sigsetjmp" >&5
6510 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
6511 echo $ac_n "(cached) $ac_c" 1>&6
6513 cat > conftest.
$ac_ext <<EOF
6514 #line 6515 "configure"
6515 #include "confdefs.h"
6520 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6523 if { (eval echo configure
:6524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6525 gdb_cv_func_sigsetjmp
=yes
6527 echo "configure: failed program was:" >&5
6528 cat conftest.
$ac_ext >&5
6530 gdb_cv_func_sigsetjmp
=no
6535 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
6536 if test $gdb_cv_func_sigsetjmp = yes; then
6537 cat >> confdefs.h
<<\EOF
6538 #define HAVE_SIGSETJMP 1
6543 # Assume we'll default to using the included libiberty regex.
6544 gdb_use_included_regex
=yes
6546 # However, if the system regex is GNU regex, then default to *not*
6547 # using the included regex.
6548 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
6549 echo "configure:6550: checking for GNU regex" >&5
6550 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
6551 echo $ac_n "(cached) $ac_c" 1>&6
6553 cat > conftest.
$ac_ext <<EOF
6554 #line 6555 "configure"
6555 #include "confdefs.h"
6556 #include <gnu-versions.h>
6558 #define REGEX_INTERFACE_VERSION 1
6559 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
6560 # error "Version mismatch"
6564 if { (eval echo configure
:6565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6566 gdb_cv_have_gnu_regex
=yes
6568 echo "configure: failed program was:" >&5
6569 cat conftest.
$ac_ext >&5
6571 gdb_cv_have_gnu_regex
=no
6576 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
6577 if test $gdb_cv_have_gnu_regex = yes; then
6578 gdb_use_included_regex
=no
6581 # Check whether --with-included-regex or --without-included-regex was given.
6582 if test "${with_included_regex+set}" = set; then
6583 withval
="$with_included_regex"
6584 gdb_with_regex
=$withval
6586 gdb_with_regex
=$gdb_use_included_regex
6589 if test "$gdb_with_regex" = yes; then
6590 cat >> confdefs.h
<<\EOF
6591 #define USE_INCLUDED_REGEX 1
6596 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
6597 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
6598 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
6599 echo "configure:6600: checking for r_fs in struct reg" >&5
6600 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+set}'`\" = set"; then
6601 echo $ac_n "(cached) $ac_c" 1>&6
6603 cat > conftest.
$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6606 #include <machine/reg.h>
6608 struct reg r; r.r_fs;
6611 if { (eval echo configure
:6612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6613 gdb_cv_struct_reg_r_fs
=yes
6615 echo "configure: failed program was:" >&5
6616 cat conftest.
$ac_ext >&5
6618 gdb_cv_struct_reg_r_fs
=no
6623 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
6624 if test $gdb_cv_struct_reg_r_fs = yes; then
6625 cat >> confdefs.h
<<\EOF
6626 #define HAVE_STRUCT_REG_R_FS 1
6630 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
6631 echo "configure:6632: checking for r_gs in struct reg" >&5
6632 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
6633 echo $ac_n "(cached) $ac_c" 1>&6
6635 cat > conftest.
$ac_ext <<EOF
6636 #line 6637 "configure"
6637 #include "confdefs.h"
6638 #include <machine/reg.h>
6640 struct reg r; r.r_gs;
6643 if { (eval echo configure
:6644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6645 gdb_cv_struct_reg_r_gs
=yes
6647 echo "configure: failed program was:" >&5
6648 cat conftest.
$ac_ext >&5
6650 gdb_cv_struct_reg_r_gs
=no
6655 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
6656 if test $gdb_cv_struct_reg_r_gs = yes; then
6657 cat >> confdefs.h
<<\EOF
6658 #define HAVE_STRUCT_REG_R_GS 1
6663 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
6664 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
6665 echo "configure:6666: checking for PTRACE_GETREGS" >&5
6666 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
6667 echo $ac_n "(cached) $ac_c" 1>&6
6669 cat > conftest.
$ac_ext <<EOF
6670 #line 6671 "configure"
6671 #include "confdefs.h"
6672 #include <sys/ptrace.h>
6677 if { (eval echo configure
:6678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6679 gdb_cv_have_ptrace_getregs
=yes
6681 echo "configure: failed program was:" >&5
6682 cat conftest.
$ac_ext >&5
6684 gdb_cv_have_ptrace_getregs
=no
6689 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
6690 if test $gdb_cv_have_ptrace_getregs = yes; then
6691 cat >> confdefs.h
<<\EOF
6692 #define HAVE_PTRACE_GETREGS 1
6697 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
6698 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
6699 echo "configure:6700: checking for PTRACE_GETFPXREGS" >&5
6700 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
6701 echo $ac_n "(cached) $ac_c" 1>&6
6703 cat > conftest.
$ac_ext <<EOF
6704 #line 6705 "configure"
6705 #include "confdefs.h"
6706 #include <sys/ptrace.h>
6711 if { (eval echo configure
:6712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6713 gdb_cv_have_ptrace_getfpxregs
=yes
6715 echo "configure: failed program was:" >&5
6716 cat conftest.
$ac_ext >&5
6718 gdb_cv_have_ptrace_getfpxregs
=no
6723 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
6724 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
6725 cat >> confdefs.h
<<\EOF
6726 #define HAVE_PTRACE_GETFPXREGS 1
6731 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
6732 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
6733 echo "configure:6734: checking for PT_GETDBREGS" >&5
6734 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
6735 echo $ac_n "(cached) $ac_c" 1>&6
6737 cat > conftest.
$ac_ext <<EOF
6738 #line 6739 "configure"
6739 #include "confdefs.h"
6740 #include <sys/types.h>
6741 #include <sys/ptrace.h>
6746 if { (eval echo configure
:6747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6748 gdb_cv_have_pt_getdbregs
=yes
6750 echo "configure: failed program was:" >&5
6751 cat conftest.
$ac_ext >&5
6753 gdb_cv_have_pt_getdbregs
=no
6758 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
6759 if test $gdb_cv_have_pt_getdbregs = yes; then
6760 cat >> confdefs.h
<<\EOF
6761 #define HAVE_PT_GETDBREGS 1
6766 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
6767 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
6768 echo "configure:6769: checking for PT_GETXMMREGS" >&5
6769 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
6770 echo $ac_n "(cached) $ac_c" 1>&6
6772 cat > conftest.
$ac_ext <<EOF
6773 #line 6774 "configure"
6774 #include "confdefs.h"
6775 #include <sys/types.h>
6776 #include <sys/ptrace.h>
6781 if { (eval echo configure
:6782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6783 gdb_cv_have_pt_getxmmregs
=yes
6785 echo "configure: failed program was:" >&5
6786 cat conftest.
$ac_ext >&5
6788 gdb_cv_have_pt_getxmmregs
=no
6793 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
6794 if test $gdb_cv_have_pt_getxmmregs = yes; then
6795 cat >> confdefs.h
<<\EOF
6796 #define HAVE_PT_GETXMMREGS 1
6802 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
6803 echo "configure:6804: checking whether malloc must be declared" >&5
6804 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
6805 echo $ac_n "(cached) $ac_c" 1>&6
6807 cat > conftest.
$ac_ext <<EOF
6808 #line 6809 "configure"
6809 #include "confdefs.h"
6812 #ifdef HAVE_STRING_H
6815 #ifdef HAVE_STRINGS_H
6816 #include <strings.h>
6819 #ifdef HAVE_STDLIB_H
6822 #ifdef HAVE_UNISTD_H
6826 char *(*pfn) = (char *(*)) malloc
6829 if { (eval echo configure
:6830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6831 bfd_cv_decl_needed_malloc
=no
6833 echo "configure: failed program was:" >&5
6834 cat conftest.
$ac_ext >&5
6836 bfd_cv_decl_needed_malloc
=yes
6841 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
6842 if test $bfd_cv_decl_needed_malloc = yes; then
6843 cat >> confdefs.h
<<\EOF
6844 #define NEED_DECLARATION_MALLOC 1
6849 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
6850 echo "configure:6851: checking whether realloc must be declared" >&5
6851 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
6852 echo $ac_n "(cached) $ac_c" 1>&6
6854 cat > conftest.
$ac_ext <<EOF
6855 #line 6856 "configure"
6856 #include "confdefs.h"
6859 #ifdef HAVE_STRING_H
6862 #ifdef HAVE_STRINGS_H
6863 #include <strings.h>
6866 #ifdef HAVE_STDLIB_H
6869 #ifdef HAVE_UNISTD_H
6873 char *(*pfn) = (char *(*)) realloc
6876 if { (eval echo configure
:6877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6878 bfd_cv_decl_needed_realloc
=no
6880 echo "configure: failed program was:" >&5
6881 cat conftest.
$ac_ext >&5
6883 bfd_cv_decl_needed_realloc
=yes
6888 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
6889 if test $bfd_cv_decl_needed_realloc = yes; then
6890 cat >> confdefs.h
<<\EOF
6891 #define NEED_DECLARATION_REALLOC 1
6896 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
6897 echo "configure:6898: checking whether free must be declared" >&5
6898 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+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"
6906 #ifdef HAVE_STRING_H
6909 #ifdef HAVE_STRINGS_H
6910 #include <strings.h>
6913 #ifdef HAVE_STDLIB_H
6916 #ifdef HAVE_UNISTD_H
6920 char *(*pfn) = (char *(*)) free
6923 if { (eval echo configure
:6924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6925 bfd_cv_decl_needed_free
=no
6927 echo "configure: failed program was:" >&5
6928 cat conftest.
$ac_ext >&5
6930 bfd_cv_decl_needed_free
=yes
6935 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
6936 if test $bfd_cv_decl_needed_free = yes; then
6937 cat >> confdefs.h
<<\EOF
6938 #define NEED_DECLARATION_FREE 1
6943 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
6944 echo "configure:6945: checking whether strerror must be declared" >&5
6945 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
6946 echo $ac_n "(cached) $ac_c" 1>&6
6948 cat > conftest.
$ac_ext <<EOF
6949 #line 6950 "configure"
6950 #include "confdefs.h"
6953 #ifdef HAVE_STRING_H
6956 #ifdef HAVE_STRINGS_H
6957 #include <strings.h>
6960 #ifdef HAVE_STDLIB_H
6963 #ifdef HAVE_UNISTD_H
6967 char *(*pfn) = (char *(*)) strerror
6970 if { (eval echo configure
:6971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6972 bfd_cv_decl_needed_strerror
=no
6974 echo "configure: failed program was:" >&5
6975 cat conftest.
$ac_ext >&5
6977 bfd_cv_decl_needed_strerror
=yes
6982 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
6983 if test $bfd_cv_decl_needed_strerror = yes; then
6984 cat >> confdefs.h
<<\EOF
6985 #define NEED_DECLARATION_STRERROR 1
6990 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
6991 echo "configure:6992: checking whether strdup must be declared" >&5
6992 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
6993 echo $ac_n "(cached) $ac_c" 1>&6
6995 cat > conftest.
$ac_ext <<EOF
6996 #line 6997 "configure"
6997 #include "confdefs.h"
7000 #ifdef HAVE_STRING_H
7003 #ifdef HAVE_STRINGS_H
7004 #include <strings.h>
7007 #ifdef HAVE_STDLIB_H
7010 #ifdef HAVE_UNISTD_H
7014 char *(*pfn) = (char *(*)) strdup
7017 if { (eval echo configure
:7018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7019 bfd_cv_decl_needed_strdup
=no
7021 echo "configure: failed program was:" >&5
7022 cat conftest.
$ac_ext >&5
7024 bfd_cv_decl_needed_strdup
=yes
7029 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
7030 if test $bfd_cv_decl_needed_strdup = yes; then
7031 cat >> confdefs.h
<<\EOF
7032 #define NEED_DECLARATION_STRDUP 1
7037 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
7038 echo "configure:7039: checking whether strstr must be declared" >&5
7039 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
7040 echo $ac_n "(cached) $ac_c" 1>&6
7042 cat > conftest.
$ac_ext <<EOF
7043 #line 7044 "configure"
7044 #include "confdefs.h"
7047 #ifdef HAVE_STRING_H
7050 #ifdef HAVE_STRINGS_H
7051 #include <strings.h>
7054 #ifdef HAVE_STDLIB_H
7057 #ifdef HAVE_UNISTD_H
7061 char *(*pfn) = (char *(*)) strstr
7064 if { (eval echo configure
:7065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7066 bfd_cv_decl_needed_strstr
=no
7068 echo "configure: failed program was:" >&5
7069 cat conftest.
$ac_ext >&5
7071 bfd_cv_decl_needed_strstr
=yes
7076 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
7077 if test $bfd_cv_decl_needed_strstr = yes; then
7078 cat >> confdefs.h
<<\EOF
7079 #define NEED_DECLARATION_STRSTR 1
7084 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
7085 echo "configure:7086: checking whether canonicalize_file_name must be declared" >&5
7086 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
7087 echo $ac_n "(cached) $ac_c" 1>&6
7089 cat > conftest.
$ac_ext <<EOF
7090 #line 7091 "configure"
7091 #include "confdefs.h"
7094 #ifdef HAVE_STRING_H
7097 #ifdef HAVE_STRINGS_H
7098 #include <strings.h>
7101 #ifdef HAVE_STDLIB_H
7104 #ifdef HAVE_UNISTD_H
7108 char *(*pfn) = (char *(*)) canonicalize_file_name
7111 if { (eval echo configure
:7112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7113 bfd_cv_decl_needed_canonicalize_file_name
=no
7115 echo "configure: failed program was:" >&5
7116 cat conftest.
$ac_ext >&5
7118 bfd_cv_decl_needed_canonicalize_file_name
=yes
7123 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
7124 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
7125 cat >> confdefs.h
<<\EOF
7126 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7132 # The following save_state_t checkery is only necessary for HPUX
7133 # versions earlier than 10.20. When those fade from memory, this
7134 # could be expunged. --jsm 1999-03-22
7136 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
7137 echo "configure:7138: checking for HPUX save_state structure" >&5
7138 cat > conftest.
$ac_ext <<EOF
7139 #line 7140 "configure"
7140 #include "confdefs.h"
7141 #include <machine/save_state.h>
7143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7144 egrep "save_state_t" >/dev
/null
2>&1; then
7146 gdb_cv_hpux_savestate
=yes
7149 gdb_cv_hpux_savestate
=no
7153 cat > conftest.
$ac_ext <<EOF
7154 #line 7155 "configure"
7155 #include "confdefs.h"
7156 #include <machine/save_state.h>
7158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7159 egrep "ss_wide" >/dev
/null
2>&1; then
7161 gdb_cv_hpux_sswide
=yes
7164 gdb_cv_hpux_sswide
=no
7168 if test $gdb_cv_hpux_savestate = yes
7170 cat >> confdefs.h
<<\EOF
7171 #define HAVE_STRUCT_SAVE_STATE_T 1
7175 if test $gdb_cv_hpux_sswide = yes
7177 cat >> confdefs.h
<<\EOF
7178 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
7182 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
7185 # If we are configured native on GNU/Linux, work around problems with
7187 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
7189 if test "${target}" = "${host}"; then
7192 cat >> confdefs.h
<<\EOF
7193 #define START_INFERIOR_TRAPS_EXPECTED 2
7196 cat >> confdefs.h
<<\EOF
7197 #define sys_quotactl 1
7202 cat >> confdefs.h
<<\EOF
7203 #define NEW_PROC_API 1
7207 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
7208 cat >> confdefs.h
<<\EOF
7209 #define NEW_PROC_API 1
7214 cat >> confdefs.h
<<\EOF
7215 #define NEW_PROC_API 1
7222 if test "$ac_cv_header_sys_procfs_h" = yes; then
7223 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
7224 echo "configure:7225: checking for pstatus_t in sys/procfs.h" >&5
7225 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
7226 echo $ac_n "(cached) $ac_c" 1>&6
7228 cat > conftest.
$ac_ext <<EOF
7229 #line 7230 "configure"
7230 #include "confdefs.h"
7233 #include <sys/procfs.h>
7238 if { (eval echo configure
:7239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7240 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
7242 echo "configure: failed program was:" >&5
7243 cat conftest.
$ac_ext >&5
7245 bfd_cv_have_sys_procfs_type_pstatus_t
=no
7251 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
7252 cat >> confdefs.h
<<\EOF
7253 #define HAVE_PSTATUS_T 1
7257 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
7259 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
7260 echo "configure:7261: checking for prrun_t in sys/procfs.h" >&5
7261 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
7262 echo $ac_n "(cached) $ac_c" 1>&6
7264 cat > conftest.
$ac_ext <<EOF
7265 #line 7266 "configure"
7266 #include "confdefs.h"
7269 #include <sys/procfs.h>
7274 if { (eval echo configure
:7275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7276 bfd_cv_have_sys_procfs_type_prrun_t
=yes
7278 echo "configure: failed program was:" >&5
7279 cat conftest.
$ac_ext >&5
7281 bfd_cv_have_sys_procfs_type_prrun_t
=no
7287 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
7288 cat >> confdefs.h
<<\EOF
7289 #define HAVE_PRRUN_T 1
7293 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
7295 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
7296 echo "configure:7297: checking for gregset_t in sys/procfs.h" >&5
7297 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
7298 echo $ac_n "(cached) $ac_c" 1>&6
7300 cat > conftest.
$ac_ext <<EOF
7301 #line 7302 "configure"
7302 #include "confdefs.h"
7305 #include <sys/procfs.h>
7310 if { (eval echo configure
:7311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7312 bfd_cv_have_sys_procfs_type_gregset_t
=yes
7314 echo "configure: failed program was:" >&5
7315 cat conftest.
$ac_ext >&5
7317 bfd_cv_have_sys_procfs_type_gregset_t
=no
7323 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
7324 cat >> confdefs.h
<<\EOF
7325 #define HAVE_GREGSET_T 1
7329 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
7331 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
7332 echo "configure:7333: checking for fpregset_t in sys/procfs.h" >&5
7333 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
7334 echo $ac_n "(cached) $ac_c" 1>&6
7336 cat > conftest.
$ac_ext <<EOF
7337 #line 7338 "configure"
7338 #include "confdefs.h"
7341 #include <sys/procfs.h>
7346 if { (eval echo configure
:7347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7348 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
7350 echo "configure: failed program was:" >&5
7351 cat conftest.
$ac_ext >&5
7353 bfd_cv_have_sys_procfs_type_fpregset_t
=no
7359 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
7360 cat >> confdefs.h
<<\EOF
7361 #define HAVE_FPREGSET_T 1
7365 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
7367 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
7368 echo "configure:7369: checking for prgregset_t in sys/procfs.h" >&5
7369 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
7370 echo $ac_n "(cached) $ac_c" 1>&6
7372 cat > conftest.
$ac_ext <<EOF
7373 #line 7374 "configure"
7374 #include "confdefs.h"
7377 #include <sys/procfs.h>
7382 if { (eval echo configure
:7383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7384 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
7386 echo "configure: failed program was:" >&5
7387 cat conftest.
$ac_ext >&5
7389 bfd_cv_have_sys_procfs_type_prgregset_t
=no
7395 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
7396 cat >> confdefs.h
<<\EOF
7397 #define HAVE_PRGREGSET_T 1
7401 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
7403 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
7404 echo "configure:7405: checking for prfpregset_t in sys/procfs.h" >&5
7405 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
7406 echo $ac_n "(cached) $ac_c" 1>&6
7408 cat > conftest.
$ac_ext <<EOF
7409 #line 7410 "configure"
7410 #include "confdefs.h"
7413 #include <sys/procfs.h>
7418 if { (eval echo configure
:7419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7420 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
7422 echo "configure: failed program was:" >&5
7423 cat conftest.
$ac_ext >&5
7425 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
7431 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7432 cat >> confdefs.h
<<\EOF
7433 #define HAVE_PRFPREGSET_T 1
7437 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
7439 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
7440 echo "configure:7441: checking for prgregset32_t in sys/procfs.h" >&5
7441 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
7442 echo $ac_n "(cached) $ac_c" 1>&6
7444 cat > conftest.
$ac_ext <<EOF
7445 #line 7446 "configure"
7446 #include "confdefs.h"
7449 #include <sys/procfs.h>
7454 if { (eval echo configure
:7455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7456 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
7458 echo "configure: failed program was:" >&5
7459 cat conftest.
$ac_ext >&5
7461 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
7467 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
7468 cat >> confdefs.h
<<\EOF
7469 #define HAVE_PRGREGSET32_T 1
7473 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
7475 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
7476 echo "configure:7477: checking for prfpregset32_t in sys/procfs.h" >&5
7477 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
7478 echo $ac_n "(cached) $ac_c" 1>&6
7480 cat > conftest.
$ac_ext <<EOF
7481 #line 7482 "configure"
7482 #include "confdefs.h"
7485 #include <sys/procfs.h>
7490 if { (eval echo configure
:7491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7492 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
7494 echo "configure: failed program was:" >&5
7495 cat conftest.
$ac_ext >&5
7497 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
7503 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
7504 cat >> confdefs.h
<<\EOF
7505 #define HAVE_PRFPREGSET32_T 1
7509 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
7511 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
7512 echo "configure:7513: checking for lwpid_t in sys/procfs.h" >&5
7513 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
7514 echo $ac_n "(cached) $ac_c" 1>&6
7516 cat > conftest.
$ac_ext <<EOF
7517 #line 7518 "configure"
7518 #include "confdefs.h"
7521 #include <sys/procfs.h>
7526 if { (eval echo configure
:7527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7528 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
7530 echo "configure: failed program was:" >&5
7531 cat conftest.
$ac_ext >&5
7533 bfd_cv_have_sys_procfs_type_lwpid_t
=no
7539 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
7540 cat >> confdefs.h
<<\EOF
7541 #define HAVE_LWPID_T 1
7545 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
7547 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
7548 echo "configure:7549: checking for psaddr_t in sys/procfs.h" >&5
7549 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
7550 echo $ac_n "(cached) $ac_c" 1>&6
7552 cat > conftest.
$ac_ext <<EOF
7553 #line 7554 "configure"
7554 #include "confdefs.h"
7557 #include <sys/procfs.h>
7562 if { (eval echo configure
:7563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7564 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
7566 echo "configure: failed program was:" >&5
7567 cat conftest.
$ac_ext >&5
7569 bfd_cv_have_sys_procfs_type_psaddr_t
=no
7575 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
7576 cat >> confdefs.h
<<\EOF
7577 #define HAVE_PSADDR_T 1
7581 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
7583 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
7584 echo "configure:7585: checking for prsysent_t in sys/procfs.h" >&5
7585 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
7586 echo $ac_n "(cached) $ac_c" 1>&6
7588 cat > conftest.
$ac_ext <<EOF
7589 #line 7590 "configure"
7590 #include "confdefs.h"
7593 #include <sys/procfs.h>
7598 if { (eval echo configure
:7599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7600 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
7602 echo "configure: failed program was:" >&5
7603 cat conftest.
$ac_ext >&5
7605 bfd_cv_have_sys_procfs_type_prsysent_t
=no
7611 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
7612 cat >> confdefs.h
<<\EOF
7613 #define HAVE_PRSYSENT_T 1
7617 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
7619 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
7620 echo "configure:7621: checking for pr_sigset_t in sys/procfs.h" >&5
7621 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
7622 echo $ac_n "(cached) $ac_c" 1>&6
7624 cat > conftest.
$ac_ext <<EOF
7625 #line 7626 "configure"
7626 #include "confdefs.h"
7629 #include <sys/procfs.h>
7634 if { (eval echo configure
:7635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7636 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
7638 echo "configure: failed program was:" >&5
7639 cat conftest.
$ac_ext >&5
7641 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
7647 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
7648 cat >> confdefs.h
<<\EOF
7649 #define HAVE_PR_SIGSET_T 1
7653 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
7655 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
7656 echo "configure:7657: checking for pr_sigaction64_t in sys/procfs.h" >&5
7657 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
7658 echo $ac_n "(cached) $ac_c" 1>&6
7660 cat > conftest.
$ac_ext <<EOF
7661 #line 7662 "configure"
7662 #include "confdefs.h"
7665 #include <sys/procfs.h>
7667 pr_sigaction64_t avar
7670 if { (eval echo configure
:7671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7672 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
7674 echo "configure: failed program was:" >&5
7675 cat conftest.
$ac_ext >&5
7677 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
7683 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
7684 cat >> confdefs.h
<<\EOF
7685 #define HAVE_PR_SIGACTION64_T 1
7689 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
7691 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
7692 echo "configure:7693: checking for pr_siginfo64_t in sys/procfs.h" >&5
7693 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
7694 echo $ac_n "(cached) $ac_c" 1>&6
7696 cat > conftest.
$ac_ext <<EOF
7697 #line 7698 "configure"
7698 #include "confdefs.h"
7701 #include <sys/procfs.h>
7706 if { (eval echo configure
:7707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7708 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
7710 echo "configure: failed program was:" >&5
7711 cat conftest.
$ac_ext >&5
7713 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
7719 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
7720 cat >> confdefs.h
<<\EOF
7721 #define HAVE_PR_SIGINFO64_T 1
7725 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
7731 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
7732 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
7733 echo "configure:7734: checking whether prfpregset_t type is broken" >&5
7734 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
7735 echo $ac_n "(cached) $ac_c" 1>&6
7737 if test "$cross_compiling" = yes; then
7738 gdb_cv_prfpregset_t_broken
=yes
7740 cat > conftest.
$ac_ext <<EOF
7741 #line 7742 "configure"
7742 #include "confdefs.h"
7743 #include <sys/procfs.h>
7746 if (sizeof (prfpregset_t) == sizeof (void *))
7751 if { (eval echo configure
:7752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7753 gdb_cv_prfpregset_t_broken
=no
7755 echo "configure: failed program was:" >&5
7756 cat conftest.
$ac_ext >&5
7758 gdb_cv_prfpregset_t_broken
=yes
7765 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
7766 if test $gdb_cv_prfpregset_t_broken = yes; then
7767 cat >> confdefs.h
<<\EOF
7768 #define PRFPREGSET_T_BROKEN 1
7775 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
7776 echo "configure:7777: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
7777 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7780 cat > conftest.
$ac_ext <<EOF
7781 #line 7782 "configure"
7782 #include "confdefs.h"
7784 #include <sys/types.h>
7785 #include <sys/procfs.h>
7790 dummy = ioctl(0, PIOCSET, &dummy);
7794 if { (eval echo configure
:7795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7796 gdb_cv_have_procfs_piocset
=yes
7798 echo "configure: failed program was:" >&5
7799 cat conftest.
$ac_ext >&5
7801 gdb_cv_have_procfs_piocset
=no
7806 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
7807 if test $gdb_cv_have_procfs_piocset = yes; then
7808 cat >> confdefs.h
<<\EOF
7809 #define HAVE_PROCFS_PIOCSET 1
7815 if test ${host} = ${target} ; then
7817 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
7818 echo "configure:7819: checking for member l_addr in struct link_map" >&5
7819 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
7820 echo $ac_n "(cached) $ac_c" 1>&6
7822 cat > conftest.
$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7827 struct link_map lm; (void) lm.l_addr;
7830 if { (eval echo configure
:7831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7832 gdb_cv_have_struct_link_map_with_l_members
=yes
7834 echo "configure: failed program was:" >&5
7835 cat conftest.
$ac_ext >&5
7837 gdb_cv_have_struct_link_map_with_l_members
=no
7842 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
7843 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
7844 cat >> confdefs.h
<<\EOF
7845 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
7851 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
7852 echo "configure:7853: checking for member lm_addr in struct link_map" >&5
7853 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
7854 echo $ac_n "(cached) $ac_c" 1>&6
7856 cat > conftest.
$ac_ext <<EOF
7857 #line 7858 "configure"
7858 #include "confdefs.h"
7859 #include <sys/types.h>
7862 struct link_map lm; (void) lm.lm_addr;
7865 if { (eval echo configure
:7866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7867 gdb_cv_have_struct_link_map_with_lm_members
=yes
7869 echo "configure: failed program was:" >&5
7870 cat conftest.
$ac_ext >&5
7872 gdb_cv_have_struct_link_map_with_lm_members
=no
7877 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
7878 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
7879 cat >> confdefs.h
<<\EOF
7880 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
7886 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
7887 echo "configure:7888: checking for member som_addr in struct so_map" >&5
7888 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
7889 echo $ac_n "(cached) $ac_c" 1>&6
7891 cat > conftest.
$ac_ext <<EOF
7892 #line 7893 "configure"
7893 #include "confdefs.h"
7894 #include <sys/types.h>
7900 struct so_map lm; (void) lm.som_addr;
7903 if { (eval echo configure
:7904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7905 gdb_cv_have_struct_so_map_with_som_members
=yes
7907 echo "configure: failed program was:" >&5
7908 cat conftest.
$ac_ext >&5
7910 gdb_cv_have_struct_so_map_with_som_members
=no
7915 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
7916 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
7917 cat >> confdefs.h
<<\EOF
7918 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
7924 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
7925 echo "configure:7926: checking for struct link_map32 in sys/link.h" >&5
7926 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
7927 echo $ac_n "(cached) $ac_c" 1>&6
7929 cat > conftest.
$ac_ext <<EOF
7930 #line 7931 "configure"
7931 #include "confdefs.h"
7933 #include <sys/link.h>
7935 struct link_map32 l;
7938 if { (eval echo configure
:7939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7940 gdb_cv_have_struct_link_map32
=yes
7942 echo "configure: failed program was:" >&5
7943 cat conftest.
$ac_ext >&5
7945 gdb_cv_have_struct_link_map32
=no
7950 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
7951 if test $gdb_cv_have_struct_link_map32 = yes; then
7952 cat >> confdefs.h
<<\EOF
7953 #define HAVE_STRUCT_LINK_MAP32 1
7956 cat >> confdefs.h
<<\EOF
7957 #define _SYSCALL32 1
7964 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
7965 echo "configure:7966: checking for long long support in compiler" >&5
7966 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
7967 echo $ac_n "(cached) $ac_c" 1>&6
7969 cat > conftest.
$ac_ext <<EOF
7970 #line 7971 "configure"
7971 #include "confdefs.h"
7975 extern long long foo;
7976 switch (foo & 2) { case 0: return 1; }
7980 if { (eval echo configure
:7981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7982 gdb_cv_c_long_long
=yes
7984 echo "configure: failed program was:" >&5
7985 cat conftest.
$ac_ext >&5
7987 gdb_cv_c_long_long
=no
7992 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
7993 if test $gdb_cv_c_long_long = yes; then
7994 cat >> confdefs.h
<<\EOF
7995 #define CC_HAS_LONG_LONG 1
8001 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
8002 echo "configure:8003: checking for long long support in printf" >&5
8003 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
8004 echo $ac_n "(cached) $ac_c" 1>&6
8006 if test "$cross_compiling" = yes; then
8007 gdb_cv_printf_has_long_long
=no
8009 cat > conftest.
$ac_ext <<EOF
8010 #line 8011 "configure"
8011 #include "confdefs.h"
8016 l = (l << 16) + 0x0123;
8017 l = (l << 16) + 0x4567;
8018 l = (l << 16) + 0x89ab;
8019 l = (l << 16) + 0xcdef;
8020 sprintf (buf, "0x%016llx", l);
8021 return (strcmp ("0x0123456789abcdef", buf));
8024 if { (eval echo configure
:8025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8026 gdb_cv_printf_has_long_long
=yes
8028 echo "configure: failed program was:" >&5
8029 cat conftest.
$ac_ext >&5
8031 gdb_cv_printf_has_long_long
=no
8038 if test $gdb_cv_printf_has_long_long = yes; then
8039 cat >> confdefs.h
<<\EOF
8040 #define PRINTF_HAS_LONG_LONG 1
8044 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
8047 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
8048 echo "configure:8049: checking for long double support in compiler" >&5
8049 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
8050 echo $ac_n "(cached) $ac_c" 1>&6
8052 cat > conftest.
$ac_ext <<EOF
8053 #line 8054 "configure"
8054 #include "confdefs.h"
8060 if { (eval echo configure
:8061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8062 ac_cv_c_long_double
=yes
8064 echo "configure: failed program was:" >&5
8065 cat conftest.
$ac_ext >&5
8067 ac_cv_c_long_double
=no
8072 echo "$ac_t""$ac_cv_c_long_double" 1>&6
8073 if test $ac_cv_c_long_double = yes; then
8074 cat >> confdefs.h
<<\EOF
8075 #define HAVE_LONG_DOUBLE 1
8081 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
8082 echo "configure:8083: checking for long double support in printf" >&5
8083 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
8084 echo $ac_n "(cached) $ac_c" 1>&6
8086 if test "$cross_compiling" = yes; then
8087 gdb_cv_printf_has_long_double
=no
8089 cat > conftest.
$ac_ext <<EOF
8090 #line 8091 "configure"
8091 #include "confdefs.h"
8095 long double f = 3.141592653;
8096 sprintf (buf, "%Lg", f);
8097 return (strncmp ("3.14159", buf, 7));
8100 if { (eval echo configure
:8101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8102 gdb_cv_printf_has_long_double
=yes
8104 echo "configure: failed program was:" >&5
8105 cat conftest.
$ac_ext >&5
8107 gdb_cv_printf_has_long_double
=no
8114 if test $gdb_cv_printf_has_long_double = yes; then
8115 cat >> confdefs.h
<<\EOF
8116 #define PRINTF_HAS_LONG_DOUBLE 1
8120 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
8123 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
8124 echo "configure:8125: checking for long double support in scanf" >&5
8125 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
8126 echo $ac_n "(cached) $ac_c" 1>&6
8128 if test "$cross_compiling" = yes; then
8129 gdb_cv_scanf_has_long_double
=no
8131 cat > conftest.
$ac_ext <<EOF
8132 #line 8133 "configure"
8133 #include "confdefs.h"
8136 char *buf = "3.141592653";
8138 sscanf (buf, "%Lg", &f);
8139 return !(f > 3.14159 && f < 3.14160);
8142 if { (eval echo configure
:8143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8144 gdb_cv_scanf_has_long_double
=yes
8146 echo "configure: failed program was:" >&5
8147 cat conftest.
$ac_ext >&5
8149 gdb_cv_scanf_has_long_double
=no
8156 if test $gdb_cv_scanf_has_long_double = yes; then
8157 cat >> confdefs.h
<<\EOF
8158 #define SCANF_HAS_LONG_DOUBLE 1
8162 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
8166 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
8167 echo "configure:8168: checking for -bbigtoc option" >&5
8168 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
8169 echo $ac_n "(cached) $ac_c" 1>&6
8172 SAVE_LDFLAGS
=$LDFLAGS
8175 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8176 *) gdb_cv_bigtoc
=-bbigtoc ;;
8179 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8180 cat > conftest.
$ac_ext <<EOF
8181 #line 8182 "configure"
8182 #include "confdefs.h"
8188 if { (eval echo configure
:8189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8191 echo "configure: failed program was:" >&5
8192 cat conftest.
$ac_ext >&5
8200 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
8201 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
8207 if test ${build} = ${host} -a ${host} = ${target} ; then
8210 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
8211 echo "configure:8212: checking for HPUX/OSF thread support" >&5
8212 if test -f /usr
/include
/dce
/cma_config.h
; then
8213 if test "$GCC" = "yes" ; then
8214 echo "$ac_t""yes" 1>&6
8215 cat >> confdefs.h
<<\EOF
8216 #define HAVE_HPUX_THREAD_SUPPORT 1
8219 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
8220 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
8222 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
8225 echo "$ac_t""no" 1>&6
8229 # See if thread_db library is around for Solaris thread debugging.
8230 # Note that we must explicitly test for version 1 of the library
8231 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
8233 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
8234 echo "configure:8235: checking for Solaris thread debugging library" >&5
8235 if test -f /usr
/lib
/libthread_db.so
.1 ; then
8236 echo "$ac_t""yes" 1>&6
8237 cat >> confdefs.h
<<\EOF
8238 #define HAVE_THREAD_DB_LIB 1
8241 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
8242 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
8243 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8244 echo "configure:8245: checking for dlopen in -ldl" >&5
8245 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
8246 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8247 echo $ac_n "(cached) $ac_c" 1>&6
8249 ac_save_LIBS
="$LIBS"
8251 cat > conftest.
$ac_ext <<EOF
8252 #line 8253 "configure"
8253 #include "confdefs.h"
8254 /* Override any gcc2 internal prototype to avoid an error. */
8255 /* We use char because int might match the return type of a gcc2
8256 builtin and then its argument prototype would still apply. */
8263 if { (eval echo configure
:8264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8265 eval "ac_cv_lib_$ac_lib_var=yes"
8267 echo "configure: failed program was:" >&5
8268 cat conftest.
$ac_ext >&5
8270 eval "ac_cv_lib_$ac_lib_var=no"
8273 LIBS
="$ac_save_LIBS"
8276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8277 echo "$ac_t""yes" 1>&6
8278 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8279 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8280 cat >> confdefs.h
<<EOF
8281 #define $ac_tr_lib 1
8287 echo "$ac_t""no" 1>&6
8290 if test "$GCC" = "yes" ; then
8291 # The GNU linker requires the -export-dynamic option to make
8292 # all symbols visible in the dynamic symbol table.
8293 hold_ldflags
=$LDFLAGS
8294 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
8295 echo "configure:8296: checking for the ld -export-dynamic flag" >&5
8296 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
8297 cat > conftest.
$ac_ext <<EOF
8298 #line 8299 "configure"
8299 #include "confdefs.h"
8305 if { (eval echo configure
:8306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8309 echo "configure: failed program was:" >&5
8310 cat conftest.
$ac_ext >&5
8315 LDFLAGS
=$hold_ldflags
8316 echo "$ac_t""$found" 1>&6
8317 if test $found = yes; then
8318 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
8321 # Sun randomly tweaked the prototypes in <proc_service.h>
8323 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
8324 echo "configure:8325: checking if <proc_service.h> is old" >&5
8325 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
8326 echo $ac_n "(cached) $ac_c" 1>&6
8329 cat > conftest.
$ac_ext <<EOF
8330 #line 8331 "configure"
8331 #include "confdefs.h"
8333 #include <proc_service.h>
8335 (struct ps_prochandle*, psaddr_t, const void*, size_t);
8341 if { (eval echo configure
:8342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8343 gdb_cv_proc_service_is_old
=no
8345 echo "configure: failed program was:" >&5
8346 cat conftest.
$ac_ext >&5
8348 gdb_cv_proc_service_is_old
=yes
8354 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
8355 if test $gdb_cv_proc_service_is_old = yes; then
8356 cat >> confdefs.h
<<\EOF
8357 #define PROC_SERVICE_IS_OLD 1
8362 echo "$ac_t""no" 1>&6
8366 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
8367 echo "configure:8368: checking for AiX thread debugging library" >&5
8368 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
8369 echo $ac_n "(cached) $ac_c" 1>&6
8371 cat > conftest.
$ac_ext <<EOF
8372 #line 8373 "configure"
8373 #include "confdefs.h"
8374 #include <sys/pthdebug.h>
8376 #ifndef PTHDB_VERSION_3
8381 if { (eval echo configure
:8382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8383 gdb_cv_have_aix_thread_debug
=yes
8385 echo "configure: failed program was:" >&5
8386 cat conftest.
$ac_ext >&5
8388 gdb_cv_have_aix_thread_debug
=no
8393 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
8394 if test $gdb_cv_have_aix_thread_debug = yes; then
8395 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
8396 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} aix-thread.o"
8397 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
8404 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
8405 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
8406 echo "configure:8407: checking whether <thread_db.h> has TD_NOTALLOC" >&5
8407 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
8408 echo $ac_n "(cached) $ac_c" 1>&6
8410 cat > conftest.
$ac_ext <<EOF
8411 #line 8412 "configure"
8412 #include "confdefs.h"
8413 #include <thread_db.h>
8415 int i = TD_NOTALLOC;
8418 if { (eval echo configure
:8419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8420 gdb_cv_thread_db_h_has_td_notalloc
=yes
8422 echo "configure: failed program was:" >&5
8423 cat conftest.
$ac_ext >&5
8425 gdb_cv_thread_db_h_has_td_notalloc
=no
8432 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
8434 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
8435 cat >> confdefs.h
<<\EOF
8436 #define THREAD_DB_HAS_TD_NOTALLOC 1
8442 # NOTE: Don't add -Wall or -Wunused, they both include
8443 # -Wunused-parameter which reports bogus warnings.
8444 # NOTE: If you add to this list, remember to update
8445 # gdb/doc/gdbint.texinfo.
8446 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
8447 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
8448 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
8449 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
8450 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
8451 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
8452 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
8453 # -Woverloaded-virtual -Winline -Werror"
8454 # Check whether --enable-build-warnings or --disable-build-warnings was given.
8455 if test "${enable_build_warnings+set}" = set; then
8456 enableval
="$enable_build_warnings"
8457 case "${enableval}" in
8459 no
) build_warnings
="-w";;
8460 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8461 build_warnings
="${build_warnings} ${t}";;
8462 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8463 build_warnings
="${t} ${build_warnings}";;
8464 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8466 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8467 echo "Setting compiler warning flags = $build_warnings" 6>&1
8470 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
8471 if test "${enable_gdb_build_warnings+set}" = set; then
8472 enableval
="$enable_gdb_build_warnings"
8473 case "${enableval}" in
8475 no
) build_warnings
="-w";;
8476 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8477 build_warnings
="${build_warnings} ${t}";;
8478 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8479 build_warnings
="${t} ${build_warnings}";;
8480 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8482 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
8483 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
8488 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
8490 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
8491 echo "configure:8492: checking compiler warning flags" >&5
8492 # Separate out the -Werror flag as some files just cannot be
8493 # compiled with it enabled.
8494 for w
in ${build_warnings}; do
8496 -Werr*) WERROR_CFLAGS
=-Werror ;;
8497 *) # Check that GCC accepts it
8498 saved_CFLAGS
="$CFLAGS"
8500 cat > conftest.
$ac_ext <<EOF
8501 #line 8502 "configure"
8502 #include "confdefs.h"
8508 if { (eval echo configure
:8509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8510 WARN_CFLAGS
="${WARN_CFLAGS} $w"
8512 echo "configure: failed program was:" >&5
8513 cat conftest.
$ac_ext >&5
8516 CFLAGS
="$saved_CFLAGS"
8519 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
8529 # Check whether --with-mmalloc or --without-mmalloc was given.
8530 if test "${with_mmalloc+set}" = set; then
8531 withval
="$with_mmalloc"
8532 case "${withval}" in
8533 yes) want_mmalloc
=true
;;
8534 no
) want_mmalloc
=false
;;
8535 *) { echo "configure: error: bad value ${withval} for GDB with-mmalloc option" 1>&2; exit 1; } ;;
8541 if test x
$want_mmalloc = xtrue
; then
8542 cat >> confdefs.h
<<\EOF
8543 #define USE_MMALLOC 1
8546 cat >> confdefs.h
<<\EOF
8547 #define MMCHECK_FORCE 1
8550 MMALLOC_CFLAGS
="-I$srcdir/../mmalloc"
8551 MMALLOC
='../mmalloc/libmmalloc.a'
8554 # In the Cygwin environment, we need some additional flags.
8555 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
8556 echo "configure:8557: checking for cygwin" >&5
8557 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
8558 echo $ac_n "(cached) $ac_c" 1>&6
8560 cat > conftest.
$ac_ext <<EOF
8561 #line 8562 "configure"
8562 #include "confdefs.h"
8564 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
8568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8569 egrep "lose" >/dev
/null
2>&1; then
8571 gdb_cv_os_cygwin
=yes
8580 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
8583 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
8585 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
8586 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
8590 # libreadline needs libuser32.a in a cygwin environment
8592 if test x
$gdb_cv_os_cygwin = xyes
; then
8593 WIN32LIBS
="-luser32"
8595 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
8601 LIBGUI
="../libgui/src/libgui.a"
8602 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
8606 # Check whether --enable-gdbtk or --disable-gdbtk was given.
8607 if test "${enable_gdbtk+set}" = set; then
8608 enableval
="$enable_gdbtk"
8609 case "${enableval}" in
8613 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
8616 echo "configure: warning: GDB does not support GDBtk on host ${host}. GDBtk will be disabled." 1>&2
8624 { echo "configure: error: bad value ${enableval} given for gdbtk option" 1>&2; exit 1; } ;;
8628 # Default is on for everything but go32 and Cygwin
8633 if test -d "${srcdir}/gdbtk" ; then
8649 if test "${enable_gdbtk}" = "yes"; then
8651 # Gdbtk must have an absolute path to srcdir in order to run
8652 # properly when not installed.
8660 # Ok, lets find the tcl configuration
8661 # First, look for one uninstalled.
8662 # the alternative search directory is invoked by --with-tclconfig
8665 if test x
"${no_tcl}" = x
; then
8666 # we reset no_tcl in case something fails here
8668 # Check whether --with-tclconfig or --without-tclconfig was given.
8669 if test "${with_tclconfig+set}" = set; then
8670 withval
="$with_tclconfig"
8671 with_tclconfig
=${withval}
8674 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
8675 echo "configure:8676: checking for Tcl configuration" >&5
8676 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
8677 echo $ac_n "(cached) $ac_c" 1>&6
8681 # First check to see if --with-tclconfig was specified.
8682 if test x
"${with_tclconfig}" != x
; then
8683 if test -f "${with_tclconfig}/tclConfig.sh" ; then
8684 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
8686 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
8690 # then check for a private Tcl installation
8691 if test x
"${ac_cv_c_tclconfig}" = x
; then
8694 `ls -dr ../tcl[7-9]* 2>/dev/null` \
8696 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
8698 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
8699 if test -f "$i/${configdir}/tclConfig.sh" ; then
8700 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
8705 # check in a few common install locations
8706 if test x
"${ac_cv_c_tclconfig}" = x
; then
8707 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8708 if test -f "$i/tclConfig.sh" ; then
8709 ac_cv_c_tclconfig
=`(cd $i; pwd)`
8714 # check in a few other private locations
8715 if test x
"${ac_cv_c_tclconfig}" = x
; then
8718 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
8719 if test -f "$i/${configdir}/tclConfig.sh" ; then
8720 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
8728 if test x
"${ac_cv_c_tclconfig}" = x
; then
8729 TCLCONFIG
="# no Tcl configs found"
8730 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
8733 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
8734 echo "$ac_t""found $TCLCONFIG" 1>&6
8738 if test -z "${no_tcl}"; then
8768 # Ok, lets find the tk configuration
8769 # First, look for one uninstalled.
8770 # the alternative search directory is invoked by --with-tkconfig
8773 if test x
"${no_tk}" = x
; then
8774 # we reset no_tk in case something fails here
8776 # Check whether --with-tkconfig or --without-tkconfig was given.
8777 if test "${with_tkconfig+set}" = set; then
8778 withval
="$with_tkconfig"
8779 with_tkconfig
=${withval}
8782 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
8783 echo "configure:8784: checking for Tk configuration" >&5
8784 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
8785 echo $ac_n "(cached) $ac_c" 1>&6
8789 # First check to see if --with-tkconfig was specified.
8790 if test x
"${with_tkconfig}" != x
; then
8791 if test -f "${with_tkconfig}/tkConfig.sh" ; then
8792 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
8794 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
8798 # then check for a private Tk library
8799 if test x
"${ac_cv_c_tkconfig}" = x
; then
8802 `ls -dr ../tk[4-9]* 2>/dev/null` \
8804 `ls -dr ../../tk[4-9]* 2>/dev/null` \
8806 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
8807 if test -f "$i/${configdir}/tkConfig.sh" ; then
8808 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
8813 # check in a few common install locations
8814 if test x
"${ac_cv_c_tkconfig}" = x
; then
8815 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
8816 if test -f "$i/tkConfig.sh" ; then
8817 ac_cv_c_tkconfig
=`(cd $i; pwd)`
8822 # check in a few other private locations
8823 if test x
"${ac_cv_c_tkconfig}" = x
; then
8826 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
8827 if test -f "$i/${configdir}/tkConfig.sh" ; then
8828 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
8836 if test x
"${ac_cv_c_tkconfig}" = x
; then
8837 TKCONFIG
="# no Tk configs found"
8838 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
8841 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
8842 echo "$ac_t""found $TKCONFIG" 1>&6
8848 # now look for Tcl library stuff
8859 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
8861 # If $no_tk is nonempty, then we can't do Tk, and there is no
8862 # point to doing Tcl.
8863 if test -z "${no_tk}"; then
8865 if test -f "$TKCONFIG" ; then
8883 # Ok, lets find the tcl source trees so we can use the headers
8884 # Warning: transition of version 9 to 10 will break this algorithm
8885 # because 10 sorts before 9. We also look for just tcl. We have to
8886 # be careful that we don't match stuff like tclX by accident.
8887 # the alternative search directory is involked by --with-tclinclude
8891 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
8892 echo "configure:8893: checking for Tcl private headers. dir=${configdir}" >&5
8893 # Check whether --with-tclinclude or --without-tclinclude was given.
8894 if test "${with_tclinclude+set}" = set; then
8895 withval
="$with_tclinclude"
8896 with_tclinclude
=${withval}
8899 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
8900 echo $ac_n "(cached) $ac_c" 1>&6
8903 # first check to see if --with-tclinclude was specified
8904 if test x
"${with_tclinclude}" != x
; then
8905 if test -f ${with_tclinclude}/tclInt.h
; then
8906 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
8907 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
8908 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
8910 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
8914 # next check if it came with Tcl configuration file
8915 if test x
"${ac_cv_c_tclconfig}" = x
; then
8916 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
8917 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
8921 # next check in private source directory
8923 # since ls returns lowest version numbers first, reverse its output
8924 if test x
"${ac_cv_c_tclh}" = x
; then
8927 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
8928 ${srcdir}/..
/..
/tcl \
8929 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
8930 ${srcdir}/..
/..
/..
/tcl \
8931 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
8932 if test -f $i/generic
/tclInt.h
; then
8933 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
8938 # finally check in a few common install locations
8940 # since ls returns lowest version numbers first, reverse its output
8941 if test x
"${ac_cv_c_tclh}" = x
; then
8943 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
8944 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
8945 /usr
/local
/src
/tcl \
8946 /usr
/local
/lib
/tcl \
8947 ${prefix}/include
; do
8948 if test -f $i/generic
/tclInt.h
; then
8949 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
8954 # see if one is installed
8955 if test x
"${ac_cv_c_tclh}" = x
; then
8956 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
8957 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
8958 echo "configure:8959: checking for tclInt.h" >&5
8959 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8960 echo $ac_n "(cached) $ac_c" 1>&6
8962 cat > conftest.
$ac_ext <<EOF
8963 #line 8964 "configure"
8964 #include "confdefs.h"
8967 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8968 { (eval echo configure
:8969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8969 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8970 if test -z "$ac_err"; then
8972 eval "ac_cv_header_$ac_safe=yes"
8975 echo "configure: failed program was:" >&5
8976 cat conftest.
$ac_ext >&5
8978 eval "ac_cv_header_$ac_safe=no"
8982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8983 echo "$ac_t""yes" 1>&6
8984 ac_cv_c_tclh
=installed
8986 echo "$ac_t""no" 1>&6
8994 if test x
"${ac_cv_c_tclh}" = x
; then
8995 TCLHDIR
="# no Tcl private headers found"
8996 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
8998 if test x
"${ac_cv_c_tclh}" != x
; then
9000 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
9001 echo "$ac_t""is installed" 1>&6
9004 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
9005 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
9006 TCLHDIR
="-I${ac_cv_c_tclh}"
9014 # Ok, lets find the tk source trees so we can use the headers
9015 # If the directory (presumably symlink) named "tk" exists, use that one
9016 # in preference to any others. Same logic is used when choosing library
9017 # and again with Tcl. The search order is the best place to look first, then in
9018 # decreasing significance. The loop breaks if the trigger file is found.
9019 # Note the gross little conversion here of srcdir by cd'ing to the found
9020 # directory. This converts the path from a relative to an absolute, so
9021 # recursive cache variables for the path will work right. We check all
9022 # the possible paths in one loop rather than many seperate loops to speed
9024 # the alternative search directory is involked by --with-tkinclude
9027 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
9028 echo "configure:9029: checking for Tk private headers" >&5
9029 # Check whether --with-tkinclude or --without-tkinclude was given.
9030 if test "${with_tkinclude+set}" = set; then
9031 withval
="$with_tkinclude"
9032 with_tkinclude
=${withval}
9035 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
9036 echo $ac_n "(cached) $ac_c" 1>&6
9039 # first check to see if --with-tkinclude was specified
9040 if test x
"${with_tkinclude}" != x
; then
9041 if test -f ${with_tkinclude}/tk.h
; then
9042 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
9043 elif test -f ${with_tkinclude}/generic
/tk.h
; then
9044 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
9046 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9050 # next check if it came with Tk configuration file
9051 if test x
"${ac_cv_c_tkconfig}" = x
; then
9052 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
9053 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
9057 # next check in private source directory
9059 # since ls returns lowest version numbers first, reverse its output
9060 if test x
"${ac_cv_c_tkh}" = x
; then
9063 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
9064 ${srcdir}/..
/..
/tk \
9065 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
9066 ${srcdir}/..
/..
/..
/tk \
9067 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
9068 if test -f $i/generic
/tk.h
; then
9069 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9074 # finally check in a few common install locations
9076 # since ls returns lowest version numbers first, reverse its output
9077 if test x
"${ac_cv_c_tkh}" = x
; then
9079 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
9080 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
9083 ${prefix}/include
; do
9084 if test -f $i/generic
/tk.h
; then
9085 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9090 # see if one is installed
9091 if test x
"${ac_cv_c_tkh}" = x
; then
9092 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
9093 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
9094 echo "configure:9095: checking for tk.h" >&5
9095 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9096 echo $ac_n "(cached) $ac_c" 1>&6
9098 cat > conftest.
$ac_ext <<EOF
9099 #line 9100 "configure"
9100 #include "confdefs.h"
9103 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9104 { (eval echo configure
:9105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9105 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9106 if test -z "$ac_err"; then
9108 eval "ac_cv_header_$ac_safe=yes"
9111 echo "configure: failed program was:" >&5
9112 cat conftest.
$ac_ext >&5
9114 eval "ac_cv_header_$ac_safe=no"
9118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9119 echo "$ac_t""yes" 1>&6
9120 ac_cv_c_tkh
=installed
9122 echo "$ac_t""no" 1>&6
9130 if test x
"${ac_cv_c_tkh}" != x
; then
9132 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
9133 echo "$ac_t""is installed" 1>&6
9136 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
9137 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
9138 TKHDIR
="-I${ac_cv_c_tkh}"
9141 TKHDIR
="# no Tk directory found"
9142 echo "configure: warning: Can't find Tk private headers" 1>&2
9149 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9150 echo "configure:9151: checking for Itcl private headers. srcdir=${srcdir}" >&5
9151 if test x
"${ac_cv_c_itclh}" = x
; then
9152 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
9153 if test -f $i/generic
/itcl.h
; then
9154 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
9159 if test x
"${ac_cv_c_itclh}" = x
; then
9160 ITCLHDIR
="# no Itcl private headers found"
9161 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
9163 if test x
"${ac_cv_c_itclh}" != x
; then
9164 ITCLHDIR
="-I${ac_cv_c_itclh}"
9166 # should always be here
9167 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
9172 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9173 echo "configure:9174: checking for Itk private headers. srcdir=${srcdir}" >&5
9174 if test x
"${ac_cv_c_itkh}" = x
; then
9175 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
9176 if test -f $i/generic
/itk.h
; then
9177 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
9182 if test x
"${ac_cv_c_itkh}" = x
; then
9183 ITKHDIR
="# no Itk private headers found"
9184 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
9186 if test x
"${ac_cv_c_itkh}" != x
; then
9187 ITKHDIR
="-I${ac_cv_c_itkh}"
9189 # should always be here
9190 # ITKLIB="../itcl/itk/unix/libitk.a"
9196 # now look for Tk library stuff
9207 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
9209 # now look for Itcl library stuff
9213 # Ok, lets find the itcl configuration
9214 # First, look for one uninstalled.
9215 # the alternative search directory is invoked by --with-itclconfig
9218 if test x
"${no_itcl}" = x
; then
9219 # we reset no_itcl in case something fails here
9221 # Check whether --with-itclconfig or --without-itclconfig was given.
9222 if test "${with_itclconfig+set}" = set; then
9223 withval
="$with_itclconfig"
9224 with_itclconfig
=${withval}
9227 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
9228 echo "configure:9229: checking for Itcl configuration" >&5
9229 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
9230 echo $ac_n "(cached) $ac_c" 1>&6
9234 # First check to see if --with-itclconfig was specified.
9235 if test x
"${with_itclconfig}" != x
; then
9236 if test -f "${with_itclconfig}/itclConfig.sh" ; then
9237 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
9239 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
9243 # then check for a private Itcl library
9244 if test x
"${ac_cv_c_itclconfig}" = x
; then
9247 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
9249 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
9251 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
9252 if test -f "$i/itclConfig.sh" ; then
9253 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9258 # check in a few common install locations
9259 if test x
"${ac_cv_c_itclconfig}" = x
; then
9260 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9261 if test -f "$i/itclConfig.sh" ; then
9262 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9267 # check in a few other private locations
9268 if test x
"${ac_cv_c_itclconfig}" = x
; then
9270 ${srcdir}/..
/itcl
/itcl \
9271 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
9272 if test -f "$i/itclConfig.sh" ; then
9273 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9281 if test x
"${ac_cv_c_itclconfig}" = x
; then
9282 ITCLCONFIG
="# no Itcl configs found"
9283 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
9286 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
9287 echo "$ac_t""found $ITCLCONFIG" 1>&6
9291 if test -z "${no_itcl}"; then
9293 if test -f "$ITCLCONFIG" ; then
9308 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
9309 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
9313 # now look for Itk library stuff
9316 # Ok, lets find the itk configuration
9317 # First, look for one uninstalled.
9318 # the alternative search directory is invoked by --with-itkconfig
9321 if test x
"${no_itk}" = x
; then
9322 # we reset no_itk in case something fails here
9324 # Check whether --with-itkconfig or --without-itkconfig was given.
9325 if test "${with_itkconfig+set}" = set; then
9326 withval
="$with_itkconfig"
9327 with_itkconfig
=${withval}
9330 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
9331 echo "configure:9332: checking for Itk configuration" >&5
9332 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
9333 echo $ac_n "(cached) $ac_c" 1>&6
9337 # First check to see if --with-itkconfig was specified.
9338 if test x
"${with_itkconfig}" != x
; then
9339 if test -f "${with_itkconfig}/itkConfig.sh" ; then
9340 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
9342 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
9346 # then check for a private Itk library
9347 if test x
"${ac_cv_c_itkconfig}" = x
; then
9350 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
9352 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
9354 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
9355 if test -f "$i/itkConfig.sh" ; then
9356 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9361 # check in a few common install locations
9362 if test x
"${ac_cv_c_itkconfig}" = x
; then
9363 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9364 if test -f "$i/itkConfig.sh" ; then
9365 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9370 # check in a few other private locations
9371 if test x
"${ac_cv_c_itkconfig}" = x
; then
9373 ${srcdir}/..
/itcl
/itk \
9374 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
9375 if test -f "$i/itkConfig.sh" ; then
9376 ac_cv_c_itkconfig
=`(cd $i; pwd)`
9384 if test x
"${ac_cv_c_itkconfig}" = x
; then
9385 ITKCONFIG
="# no Itk configs found"
9386 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
9389 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
9390 echo "$ac_t""found $ITKCONFIG" 1>&6
9395 if test -z "${no_itcl}"; then
9397 if test -f "$ITKCONFIG" ; then
9412 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
9413 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
9416 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
9417 # Tcl/Tk 8.1 require -fwritable strings. I don't
9418 # know whether 8.2 will or not, but I bet it will.
9419 # I don't have to worry about 7.x since we don't support it.
9421 if test "$GCC" = "yes"; then
9422 if test "$TCL_VERSION" != "8.0" ; then
9423 GDBTK_CFLAGS
="-fwritable-strings"
9427 # Include some libraries that Tcl and Tk want.
9428 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
9429 # Yes, the ordering seems wrong here. But it isn't.
9430 # TK_LIBS is the list of libraries that need to be linked
9431 # after Tcl/Tk. Note that this isn't put into LIBS. If it
9432 # were in LIBS then any link tests after this point would
9433 # try to include things like `$(LIBGUI)', which wouldn't work.
9434 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
9436 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
9437 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
9438 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
9439 CONFIG_INITS
="${CONFIG_INITS} \$(SUBDIR_GDBTK_INITS)"
9440 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
9441 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
9442 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
9443 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
9445 if test x
$gdb_cv_os_cygwin = xyes
; then
9446 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
9447 WIN32LDAPP
="-Wl,--subsystem,console"
9448 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
9453 configdirs
="${configdirs} gdbtk"
9469 # If we find X, set shell vars x_includes and x_libraries to the
9470 # paths, otherwise set no_x=yes.
9471 # Uses ac_ vars as temps to allow command line to override cache and checks.
9472 # --without-x overrides everything else, but does not touch the cache.
9473 echo $ac_n "checking for X""... $ac_c" 1>&6
9474 echo "configure:9475: checking for X" >&5
9476 # Check whether --with-x or --without-x was given.
9477 if test "${with_x+set}" = set; then
9482 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9483 if test "x$with_x" = xno
; then
9484 # The user explicitly disabled X.
9487 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
9488 # Both variables are already set.
9491 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9492 echo $ac_n "(cached) $ac_c" 1>&6
9494 # One or both of the vars are not set, and there is no cached value.
9495 ac_x_includes
=NO ac_x_libraries
=NO
9497 if mkdir conftestdir
; then
9499 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9500 cat > Imakefile
<<'EOF'
9502 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9504 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9505 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9506 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9507 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9508 for ac_extension
in a so sl
; do
9509 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
9510 test -f $ac_im_libdir/libX11.
$ac_extension; then
9511 ac_im_usrlibdir
=$ac_im_libdir; break
9514 # Screen out bogus values from the imake configuration. They are
9515 # bogus both because they are the default anyway, and because
9516 # using them would break gcc on systems where it needs fixed includes.
9517 case "$ac_im_incroot" in
9519 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
9521 case "$ac_im_usrlibdir" in
9523 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
9530 if test "$ac_x_includes" = NO
; then
9531 # Guess where to find include files, by looking for this one X11 .h file.
9532 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
9534 # First, try using that file with no special directory specified.
9535 cat > conftest.
$ac_ext <<EOF
9536 #line 9537 "configure"
9537 #include "confdefs.h"
9538 #include <$x_direct_test_include>
9540 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9541 { (eval echo configure
:9542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9542 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9543 if test -z "$ac_err"; then
9545 # We can compile using X headers with no special include directory.
9549 echo "configure: failed program was:" >&5
9550 cat conftest.
$ac_ext >&5
9552 # Look for the header file in a standard set of common directories.
9553 # Check X11 before X11Rn because it is often a symlink to the current release.
9556 /usr
/X11R
6/include \
9557 /usr
/X11R
5/include \
9558 /usr
/X11R
4/include \
9561 /usr
/include
/X11R6 \
9562 /usr
/include
/X11R5 \
9563 /usr
/include
/X11R4 \
9565 /usr
/local
/X11
/include \
9566 /usr
/local
/X11R
6/include \
9567 /usr
/local
/X11R
5/include \
9568 /usr
/local
/X11R
4/include \
9570 /usr
/local
/include
/X11 \
9571 /usr
/local
/include
/X11R6 \
9572 /usr
/local
/include
/X11R5 \
9573 /usr
/local
/include
/X11R4 \
9577 /usr
/XFree86
/include
/X11 \
9580 /usr
/local
/include \
9581 /usr
/unsupported
/include \
9582 /usr
/athena
/include \
9583 /usr
/local
/x11r
5/include \
9584 /usr
/lpp
/Xamples
/include \
9586 /usr
/openwin
/include \
9587 /usr
/openwin
/share
/include \
9590 if test -r "$ac_dir/$x_direct_test_include"; then
9591 ac_x_includes
=$ac_dir
9597 fi # $ac_x_includes = NO
9599 if test "$ac_x_libraries" = NO
; then
9600 # Check for the libraries.
9602 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
9603 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
9605 # See if we find them without any special options.
9606 # Don't add to $LIBS permanently.
9607 ac_save_LIBS
="$LIBS"
9608 LIBS
="-l$x_direct_test_library $LIBS"
9609 cat > conftest.
$ac_ext <<EOF
9610 #line 9611 "configure"
9611 #include "confdefs.h"
9614 ${x_direct_test_function}()
9617 if { (eval echo configure
:9618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9619 LIBS
="$ac_save_LIBS"
9620 # We can link X programs with no special library path.
9623 echo "configure: failed program was:" >&5
9624 cat conftest.
$ac_ext >&5
9626 LIBS
="$ac_save_LIBS"
9627 # First see if replacing the include by lib works.
9628 # Check X11 before X11Rn because it is often a symlink to the current release.
9629 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
9640 /usr
/local
/X11
/lib \
9641 /usr
/local
/X11R
6/lib \
9642 /usr
/local
/X11R
5/lib \
9643 /usr
/local
/X11R
4/lib \
9645 /usr
/local
/lib
/X11 \
9646 /usr
/local
/lib
/X11R6 \
9647 /usr
/local
/lib
/X11R5 \
9648 /usr
/local
/lib
/X11R4 \
9652 /usr
/XFree86
/lib
/X11 \
9656 /usr
/unsupported
/lib \
9658 /usr
/local
/x11r
5/lib \
9659 /usr
/lpp
/Xamples
/lib \
9663 /usr
/openwin
/share
/lib \
9666 for ac_extension
in a so sl
; do
9667 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
9668 ac_x_libraries
=$ac_dir
9675 fi # $ac_x_libraries = NO
9677 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
9678 # Didn't find X anywhere. Cache the known absence of X.
9679 ac_cv_have_x
="have_x=no"
9681 # Record where we found X for the cache.
9682 ac_cv_have_x
="have_x=yes \
9683 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9687 eval "$ac_cv_have_x"
9690 if test "$have_x" != yes; then
9691 echo "$ac_t""$have_x" 1>&6
9694 # If each of the values was on the command line, it overrides each guess.
9695 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9696 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9697 # Update the cache value to reflect the command line values.
9698 ac_cv_have_x
="have_x=yes \
9699 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9700 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9705 # Unlike the sim directory, whether a simulator is linked is controlled by
9706 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
9707 # This code just checks for a few cases where we'd like to ignore those
9708 # definitions, even when they're present in the '.mt' file. These cases
9709 # are when --disable-sim is specified, or if the simulator directory is
9710 # not part of the source tree.
9712 # Check whether --enable-sim or --disable-sim was given.
9713 if test "${enable_sim+set}" = set; then
9714 enableval
="$enable_sim"
9715 echo "enable_sim = $enable_sim";
9716 echo "enableval = ${enableval}";
9717 case "${enableval}" in
9718 yes) ignore_sim
=false
;;
9719 no
) ignore_sim
=true
;;
9720 *) ignore_sim
=false
;;
9727 if test ! -d "${srcdir}/../sim"; then
9731 if test "${ignore_sim}" = "true"; then
9733 IGNORE_SIM_OBS
="SIM_OBS="
9737 cat >> confdefs.h
<<\EOF
9757 # Begin stuff to support --enable-shared
9758 # Check whether --enable-shared or --disable-shared was given.
9759 if test "${enable_shared+set}" = set; then
9760 enableval
="$enable_shared"
9761 case "${enableval}" in
9770 # If we have shared libraries, try to set rpath reasonably.
9771 if test "${shared}" = "true"; then
9774 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
9776 *-*-irix5* |
*-*-irix6*)
9777 HLDFLAGS
='-Wl,-rpath,$(libdir)'
9781 *-*-linux* |
*-pc-linux-gnu*)
9782 HLDFLAGS
='-Wl,-rpath,$(libdir)'
9785 HLDFLAGS
='-R $(libdir)'
9788 HLDENV
='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
9793 # On SunOS, if the linker supports the -rpath option, use it to
9794 # prevent ../bfd and ../opcodes from being included in the run time
9798 echo 'main () { }' > conftest.c
9799 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
9800 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
9802 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
9804 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
9806 elif grep 'some text already loaded' conftest.t
>/dev
/null
2>&1; then
9808 elif test "${shared}" = "true"; then
9809 HLDFLAGS
='-Wl,-rpath=$(libdir)'
9811 HLDFLAGS
='-Wl,-rpath='
9813 rm -f conftest.t conftest.c conftest
9818 # End stuff to support --enable-shared
9820 # target_subdir is used by the testsuite to find the target libraries.
9822 if test "${host}" != "${target}"; then
9823 target_subdir
="${target_alias}/"
9828 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
9829 if test ! -f ${host_makefile_frag}; then
9830 # When building a native debuger the .mh file containing things
9831 # like NATDEPFILES is needed. Cross debuggers don't need .mh
9832 # since it no longer contains anything useful.
9833 if test "${target}" = "${host}"; then
9834 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
9836 host_makefile_frag
=/dev
/null
9839 frags
="$frags $host_makefile_frag"
9841 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
9842 if test ! -f ${target_makefile_frag}; then
9843 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
9845 frags
="$frags $target_makefile_frag"
9852 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9853 ' ${host_makefile_frag}`
9855 targetfile
=`sed -n '
9856 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9857 ' ${target_makefile_frag}`
9859 GDB_MULTI_ARCH
=`sed -n '
9860 s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
9861 ' ${target_makefile_frag}`
9863 if test "${target}" = "${host}"; then
9864 # We pick this up from the host configuration file (.mh) because we
9865 # do not have a native configuration Makefile fragment.
9866 nativefile
=`sed -n '
9867 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
9868 ' ${host_makefile_frag}`
9872 # New targets should just set gdb_multi_arch=yes in configure.tgt.
9873 # Old targets being converted can either do that or set GDB_MULTI_ARCH
9874 # in the target specific makefile frag. Eventually gdb_multi_arch=yes
9875 # will be the default.
9876 if test x
"${GDB_MULTI_ARCH}" = x
; then
9877 case "${gdb_multi_arch}" in
9878 yes ) GDB_MULTI_ARCH
=GDB_MULTI_ARCH_PURE
;;
9879 no
) GDB_MULTI_ARCH
=0 ;;
9880 0|
1|
2 ) GDB_MULTI_ARCH
=${gdb_multi_arch} ;;
9883 if test x
"${GDB_MULTI_ARCH}" != x
; then
9884 cat >> confdefs.h
<<EOF
9885 #define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
9889 # Warn the user when they use an old practice
9890 case "${GDB_MULTI_ARCH}" in
9892 0 | GDB_MULTI_ARCH_PARTIAL |
1 | GDB_MULTI_ARCH_TM |
2 )
9893 echo "configure: warning: "GDB
: Target is not pure multi-arch
"" 1>&2 ;;
9894 GDB_MULTI_ARCH_PURE
)
9895 if test x
"${targetfile}" != x
; then
9896 echo "configure: warning: "GDB
: Ignoring TM_FILE
in ${target_makefile_frag}"" 1>&2
9899 *) { echo "configure: error: "GDB
: Unknown GDB_MULTI_ARCH value
${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
9902 # Enable multi-ice-gdb-server.
9903 # Check whether --enable-multi-ice or --disable-multi-ice was given.
9904 if test "${enable_multi_ice+set}" = set; then
9905 enableval
="$enable_multi_ice"
9909 *) { echo "configure: error: bad value $enableval for --enable-multi-ice" 1>&2; exit 1; } ;;
9913 if test "x$enable_multi_ice" = xyes
; then
9914 configdirs
="$configdirs multi-ice"
9917 # We only build gdbserver automatically if host and target are the same.
9918 if test "x$target" = "x$host"; then
9919 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
9920 echo "configure:9921: checking whether gdbserver is supported on this host" >&5
9921 if test "x$build_gdbserver" = xyes
; then
9922 configdirs
="$configdirs gdbserver"
9923 echo "$ac_t""yes" 1>&6
9925 echo "$ac_t""no" 1>&6
9929 subdirs
="doc testsuite $configdirs"
9934 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
9935 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
9943 if test "${hostfile}" != ""; then
9945 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
9946 files
="${files} ${GDB_XM_FILE}"
9947 links
="${links} xm.h"
9948 cat >> confdefs.h
<<EOF
9949 #define GDB_XM_FILE ${GDB_XM_FILE}
9957 if test "${targetfile}" != ""; then
9959 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
9960 files
="${files} ${GDB_TM_FILE}"
9961 links
="${links} tm.h"
9962 cat >> confdefs.h
<<EOF
9963 #define GDB_TM_FILE ${GDB_TM_FILE}
9971 if test "${nativefile}" != ""; then
9973 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
9974 files
="${files} ${GDB_NM_FILE}"
9975 links
="${links} nm.h"
9976 cat >> confdefs.h
<<EOF
9977 #define GDB_NM_FILE ${GDB_NM_FILE}
9985 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
9986 echo "configure:9987: checking for Cygwin environment" >&5
9987 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
9988 echo $ac_n "(cached) $ac_c" 1>&6
9990 cat > conftest.
$ac_ext <<EOF
9991 #line 9992 "configure"
9992 #include "confdefs.h"
9997 #define __CYGWIN__ __CYGWIN32__
10002 if { (eval echo configure
:10003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10006 echo "configure: failed program was:" >&5
10007 cat conftest.
$ac_ext >&5
10015 echo "$ac_t""$ac_cv_cygwin" 1>&6
10017 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
10018 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
10019 echo "configure:10020: checking for mingw32 environment" >&5
10020 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
10021 echo $ac_n "(cached) $ac_c" 1>&6
10023 cat > conftest.
$ac_ext <<EOF
10024 #line 10025 "configure"
10025 #include "confdefs.h"
10028 return __MINGW32__;
10031 if { (eval echo configure
:10032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10035 echo "configure: failed program was:" >&5
10036 cat conftest.
$ac_ext >&5
10044 echo "$ac_t""$ac_cv_mingw32" 1>&6
10046 test "$ac_cv_mingw32" = yes && MINGW32
=yes
10049 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
10050 echo "configure:10051: checking for executable suffix" >&5
10051 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
10052 echo $ac_n "(cached) $ac_c" 1>&6
10054 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
10058 echo 'int main () { return 0; }' > conftest.
$ac_ext
10060 if { (eval echo configure
:10061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
10061 for file in conftest.
*; do
10063 *.c |
*.C |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
10064 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
10068 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
10071 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
10076 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
10077 echo "$ac_t""${ac_cv_exeext}" 1>&6
10082 cat >> confdefs.h
<<\EOF
10083 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
10089 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10090 if test "${with_libiconv_prefix+set}" = set; then
10091 withval
="$with_libiconv_prefix"
10093 for dir
in `echo "$withval" | tr : ' '`; do
10094 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
10095 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
10101 echo $ac_n "checking for iconv""... $ac_c" 1>&6
10102 echo "configure:10103: checking for iconv" >&5
10103 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
10104 echo $ac_n "(cached) $ac_c" 1>&6
10107 am_cv_func_iconv
="no, consider installing GNU libiconv"
10109 cat > conftest.
$ac_ext <<EOF
10110 #line 10111 "configure"
10111 #include "confdefs.h"
10112 #include <stdlib.h>
10115 iconv_t cd = iconv_open("","");
10116 iconv(cd,NULL,NULL,NULL,NULL);
10120 if { (eval echo configure
:10121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10122 am_cv_func_iconv
=yes
10124 echo "configure: failed program was:" >&5
10125 cat conftest.
$ac_ext >&5
10128 if test "$am_cv_func_iconv" != yes; then
10129 am_save_LIBS
="$LIBS"
10130 LIBS
="$LIBS -liconv"
10131 cat > conftest.
$ac_ext <<EOF
10132 #line 10133 "configure"
10133 #include "confdefs.h"
10134 #include <stdlib.h>
10137 iconv_t cd = iconv_open("","");
10138 iconv(cd,NULL,NULL,NULL,NULL);
10142 if { (eval echo configure
:10143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10144 am_cv_lib_iconv
=yes
10145 am_cv_func_iconv
=yes
10147 echo "configure: failed program was:" >&5
10148 cat conftest.
$ac_ext >&5
10151 LIBS
="$am_save_LIBS"
10156 echo "$ac_t""$am_cv_func_iconv" 1>&6
10157 if test "$am_cv_func_iconv" = yes; then
10158 cat >> confdefs.h
<<\EOF
10159 #define HAVE_ICONV 1
10162 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
10163 echo "configure:10164: checking for iconv declaration" >&5
10164 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
10165 echo $ac_n "(cached) $ac_c" 1>&6
10168 cat > conftest.
$ac_ext <<EOF
10169 #line 10170 "configure"
10170 #include "confdefs.h"
10172 #include <stdlib.h>
10178 #if defined(__STDC__) || defined(__cplusplus)
10179 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10188 if { (eval echo configure
:10189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10190 am_cv_proto_iconv_arg1
=""
10192 echo "configure: failed program was:" >&5
10193 cat conftest.
$ac_ext >&5
10195 am_cv_proto_iconv_arg1
="const"
10198 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);"
10201 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10202 echo "$ac_t""${ac_t:-
10203 }$am_cv_proto_iconv" 1>&6
10204 cat >> confdefs.h
<<EOF
10205 #define ICONV_CONST $am_cv_proto_iconv_arg1
10210 if test "$am_cv_lib_iconv" = yes; then
10217 cat > confcache
<<\EOF
10218 # This file is a shell script that caches the results of configure
10219 # tests run on this system so they can be shared between configure
10220 # scripts and configure runs. It is not useful on other systems.
10221 # If it contains results you don't want to keep, you may remove or edit it.
10223 # By default, configure uses ./config.cache as the cache file,
10224 # creating it if it does not exist already. You can give configure
10225 # the --cache-file=FILE option to use a different cache file; that is
10226 # what configure does when it calls configure scripts in
10227 # subdirectories, so they share the cache.
10228 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10229 # config.status only pays attention to the cache file if you give it the
10230 # --recheck option to rerun configure.
10233 # The following way of writing the cache mishandles newlines in values,
10234 # but we know of no workaround that is simple, portable, and efficient.
10235 # So, don't put newlines in cache variables' values.
10236 # Ultrix sh set writes to stderr and can't be redirected directly,
10237 # and sets the high bit in the cache file unless we assign to the vars.
10239 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10241 # `set' does not quote correctly, so add quotes (double-quote substitution
10242 # turns \\\\ into \\, and sed turns \\ into \).
10244 -e "s/'/'\\\\''/g" \
10245 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10248 # `set' quotes correctly as required by POSIX, so do not add quotes.
10249 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10252 if cmp -s $cache_file confcache
; then
10255 if test -w $cache_file; then
10256 echo "updating cache $cache_file"
10257 cat confcache
> $cache_file
10259 echo "not updating unwritable cache $cache_file"
10264 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10266 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10267 # Let make expand exec_prefix.
10268 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10270 # Any assignment to VPATH causes Sun make to only execute
10271 # the first set of double-colon rules, so remove it if not needed.
10272 # If there is a colon in the path, we need to keep it.
10273 if test "x$srcdir" = x.
; then
10274 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
10277 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10279 DEFS
=-DHAVE_CONFIG_H
10281 # Without the "./", some shells look in PATH for config.status.
10282 : ${CONFIG_STATUS=./config.status}
10284 echo creating
$CONFIG_STATUS
10285 rm -f $CONFIG_STATUS
10286 cat > $CONFIG_STATUS <<EOF
10288 # Generated automatically by configure.
10289 # Run this file to recreate the current configuration.
10290 # This directory was configured as follows,
10291 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10293 # $0 $ac_configure_args
10295 # Compiler output produced by configure, useful for debugging
10296 # configure, is in ./config.log if it exists.
10298 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10301 case "\$ac_option" in
10302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10303 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10304 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10305 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10306 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10308 -help | --help | --hel | --he | --h)
10309 echo "\$ac_cs_usage"; exit 0 ;;
10310 *) echo "\$ac_cs_usage"; exit 1 ;;
10314 ac_given_srcdir=$srcdir
10315 ac_given_INSTALL="$INSTALL"
10317 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10319 cat >> $CONFIG_STATUS <<EOF
10321 # Protect against being on the right side of a sed subst in config.status.
10322 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10323 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10327 s%@CFLAGS@%$CFLAGS%g
10328 s%@CPPFLAGS@%$CPPFLAGS%g
10329 s%@CXXFLAGS@%$CXXFLAGS%g
10330 s%@FFLAGS@%$FFLAGS%g
10332 s%@LDFLAGS@%$LDFLAGS%g
10334 s%@exec_prefix@%$exec_prefix%g
10335 s%@prefix@%$prefix%g
10336 s%@program_transform_name@%$program_transform_name%g
10337 s%@bindir@%$bindir%g
10338 s%@sbindir@%$sbindir%g
10339 s%@libexecdir@%$libexecdir%g
10340 s%@datadir@%$datadir%g
10341 s%@sysconfdir@%$sysconfdir%g
10342 s%@sharedstatedir@%$sharedstatedir%g
10343 s%@localstatedir@%$localstatedir%g
10344 s%@libdir@%$libdir%g
10345 s%@includedir@%$includedir%g
10346 s%@oldincludedir@%$oldincludedir%g
10347 s%@infodir@%$infodir%g
10348 s%@mandir@%$mandir%g
10349 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
10350 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
10355 s%@host_alias@%$host_alias%g
10356 s%@host_cpu@%$host_cpu%g
10357 s%@host_vendor@%$host_vendor%g
10358 s%@host_os@%$host_os%g
10359 s%@target@%$target%g
10360 s%@target_alias@%$target_alias%g
10361 s%@target_cpu@%$target_cpu%g
10362 s%@target_vendor@%$target_vendor%g
10363 s%@target_os@%$target_os%g
10365 s%@build_alias@%$build_alias%g
10366 s%@build_cpu@%$build_cpu%g
10367 s%@build_vendor@%$build_vendor%g
10368 s%@build_os@%$build_os%g
10369 s%@RANLIB@%$RANLIB%g
10370 s%@SET_MAKE@%$SET_MAKE%g
10371 s%@ALLOCA@%$ALLOCA%g
10372 s%@USE_NLS@%$USE_NLS%g
10373 s%@MSGFMT@%$MSGFMT%g
10374 s%@GMSGFMT@%$GMSGFMT%g
10375 s%@XGETTEXT@%$XGETTEXT%g
10376 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
10377 s%@CATALOGS@%$CATALOGS%g
10378 s%@CATOBJEXT@%$CATOBJEXT%g
10379 s%@DATADIRNAME@%$DATADIRNAME%g
10380 s%@GMOFILES@%$GMOFILES%g
10381 s%@INSTOBJEXT@%$INSTOBJEXT%g
10382 s%@INTLDEPS@%$INTLDEPS%g
10383 s%@INTLLIBS@%$INTLLIBS%g
10384 s%@INTLOBJS@%$INTLOBJS%g
10385 s%@POFILES@%$POFILES%g
10387 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
10389 s%@GT_YES@%$GT_YES%g
10390 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
10392 s%@subdirs@%$subdirs%g
10394 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10395 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10396 s%@INSTALL_DATA@%$INSTALL_DATA%g
10400 s%@DLLTOOL@%$DLLTOOL%g
10401 s%@WINDRES@%$WINDRES%g
10403 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
10404 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
10405 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
10406 s%@MMALLOC_CFLAGS@%$MMALLOC_CFLAGS%g
10407 s%@MMALLOC@%$MMALLOC%g
10408 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
10409 s%@WIN32LIBS@%$WIN32LIBS%g
10410 s%@LIBGUI@%$LIBGUI%g
10411 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
10412 s%@WIN32LDAPP@%$WIN32LDAPP%g
10413 s%@TCL_VERSION@%$TCL_VERSION%g
10414 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
10415 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
10416 s%@TCL_CC@%$TCL_CC%g
10417 s%@TCL_DEFS@%$TCL_DEFS%g
10418 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
10419 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
10420 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
10421 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
10422 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
10423 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
10424 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
10425 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
10426 s%@TCL_RANLIB@%$TCL_RANLIB%g
10427 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
10428 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
10429 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
10430 s%@TK_VERSION@%$TK_VERSION%g
10431 s%@TK_DEFS@%$TK_DEFS%g
10432 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
10433 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
10434 s%@TK_XLIBSW@%$TK_XLIBSW%g
10435 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
10436 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
10437 s%@TCLHDIR@%$TCLHDIR%g
10438 s%@TKHDIR@%$TKHDIR%g
10439 s%@ITCLHDIR@%$ITCLHDIR%g
10440 s%@ITKHDIR@%$ITKHDIR%g
10441 s%@ITCL_VERSION@%$ITCL_VERSION%g
10442 s%@ITCL_DEFS@%$ITCL_DEFS%g
10443 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
10444 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
10445 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
10446 s%@ITK_VERSION@%$ITK_VERSION%g
10447 s%@ITK_DEFS@%$ITK_DEFS%g
10448 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
10449 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
10450 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
10451 s%@X_CFLAGS@%$X_CFLAGS%g
10452 s%@X_LDFLAGS@%$X_LDFLAGS%g
10453 s%@X_LIBS@%$X_LIBS%g
10454 s%@TCL_DEPS@%$TCL_DEPS%g
10455 s%@TK_DEPS@%$TK_DEPS%g
10456 s%@ITCLLIB@%$ITCLLIB%g
10457 s%@ITCL_DEPS@%$ITCL_DEPS%g
10458 s%@ITKLIB@%$ITKLIB%g
10459 s%@ITK_DEPS@%$ITK_DEPS%g
10460 s%@GDBTKLIBS@%$GDBTKLIBS%g
10461 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
10462 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
10463 s%@IGNORE_SIM@%$IGNORE_SIM%g
10464 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
10465 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
10466 s%@CONFIG_OBS@%$CONFIG_OBS%g
10467 s%@CONFIG_LIB_OBS@%$CONFIG_LIB_OBS%g
10468 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
10469 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
10470 s%@CONFIG_INITS@%$CONFIG_INITS%g
10471 s%@CONFIG_ALL@%$CONFIG_ALL%g
10472 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
10473 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
10474 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
10475 s%@HLDFLAGS@%$HLDFLAGS%g
10476 s%@HLDENV@%$HLDENV%g
10477 s%@target_subdir@%$target_subdir%g
10478 /@host_makefile_frag@/r $host_makefile_frag
10479 s%@host_makefile_frag@%%g
10480 /@target_makefile_frag@/r $target_makefile_frag
10481 s%@target_makefile_frag@%%g
10483 s%@SUBDIRS@%$SUBDIRS%g
10487 s%@EXEEXT@%$EXEEXT%g
10488 s%@LIBICONV@%$LIBICONV%g
10493 cat >> $CONFIG_STATUS <<\EOF
10495 # Split the substitutions into bite-sized pieces for seds with
10496 # small command number limits, like on Digital OSF/1 and HP-UX.
10497 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
10498 ac_file
=1 # Number of current file.
10499 ac_beg
=1 # First line for current file.
10500 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
10503 while $ac_more_lines; do
10504 if test $ac_beg -gt 1; then
10505 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
10507 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
10509 if test ! -s conftest.s
$ac_file; then
10510 ac_more_lines
=false
10511 rm -f conftest.s
$ac_file
10513 if test -z "$ac_sed_cmds"; then
10514 ac_sed_cmds
="sed -f conftest.s$ac_file"
10516 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
10518 ac_file
=`expr $ac_file + 1`
10520 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
10523 if test -z "$ac_sed_cmds"; then
10528 cat >> $CONFIG_STATUS <<EOF
10530 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
10532 cat >> $CONFIG_STATUS <<\EOF
10533 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
10534 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10536 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10537 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10538 *) ac_file_in
="${ac_file}.in" ;;
10541 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10543 # Remove last slash and all that follows it. Not all systems have dirname.
10544 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10545 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
10546 # The file is in a subdirectory.
10547 test ! -d "$ac_dir" && mkdir
"$ac_dir"
10548 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
10549 # A "../" for each directory in $ac_dir_suffix.
10550 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10552 ac_dir_suffix
= ac_dots
=
10555 case "$ac_given_srcdir" in
10557 if test -z "$ac_dots"; then top_srcdir
=.
10558 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10559 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
10560 *) # Relative path.
10561 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10562 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10565 case "$ac_given_INSTALL" in
10566 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
10567 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
10570 echo creating
"$ac_file"
10572 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10574 *Makefile
*) ac_comsub
="1i\\
10575 # $configure_input" ;;
10579 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10581 s%@configure_input@%$configure_input%g
10582 s%@srcdir@%$srcdir%g
10583 s%@top_srcdir@%$top_srcdir%g
10584 s%@INSTALL@%$INSTALL%g
10585 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10589 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10590 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10592 # ac_d sets the value in "#define NAME VALUE" lines.
10593 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10594 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10597 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10598 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10599 ac_uB
='\([ ]\)%\1#\2define\3'
10602 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10603 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10604 ac_eB
='$%\1#\2define\3'
10608 if test "${CONFIG_HEADERS+set}" != set; then
10610 cat >> $CONFIG_STATUS <<EOF
10611 CONFIG_HEADERS="config.h:config.in"
10613 cat >> $CONFIG_STATUS <<\EOF
10615 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10616 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10618 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10619 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10620 *) ac_file_in
="${ac_file}.in" ;;
10623 echo creating
$ac_file
10625 rm -f conftest.frag conftest.
in conftest.out
10626 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10627 cat $ac_file_inputs > conftest.
in
10631 # Transform confdefs.h into a sed script conftest.vals that substitutes
10632 # the proper values into config.h.in to produce config.h. And first:
10633 # Protect against being on the right side of a sed subst in config.status.
10634 # Protect against being in an unquoted here document in config.status.
10635 rm -f conftest.vals
10636 cat > conftest.hdr
<<\EOF
10639 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10643 sed -n -f conftest.hdr confdefs.h > conftest.vals
10646 # This sed command replaces #undef with comments. This is necessary, for
10647 # example, in the case of _POSIX_SOURCE, which is predefined and required
10648 # on some systems where configure will not decide to define it.
10649 cat >> conftest.vals <<\EOF
10650 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10653 # Break up conftest.vals because some shells have a limit on
10654 # the size of here documents, and old seds have small limits too.
10656 rm -f conftest.tail
10659 ac_lines=`grep -c . conftest.vals
`
10660 # grep -c gives empty output for an empty file on some AIX systems.
10661 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10662 # Write a limited-size here document to conftest.frag.
10663 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10664 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10666 sed -f conftest.frag conftest.in > conftest.out
10668 mv conftest.out conftest.in
10669 ' >> $CONFIG_STATUS
10670 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10671 rm -f conftest.vals
10672 mv conftest.tail conftest.vals
10674 rm -f conftest.vals
10676 cat >> $CONFIG_STATUS <<\EOF
10677 rm -f conftest.frag conftest.h
10678 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10679 cat conftest.in >> conftest.h
10681 if cmp -s $ac_file conftest.h 2>/dev/null; then
10682 echo "$ac_file is unchanged"
10685 # Remove last slash and all that follows it. Not all systems have dirname.
10686 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10687 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10688 # The file is in a subdirectory.
10689 test ! -d "$ac_dir" && mkdir "$ac_dir"
10692 mv conftest.h $ac_file
10698 cat >> $CONFIG_STATUS <<EOF
10699 ac_sources="$files"
10703 cat >> $CONFIG_STATUS <<\EOF
10704 srcdir=$ac_given_srcdir
10705 while test -n "$ac_sources"; do
10706 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10707 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10709 echo "linking $srcdir/$ac_source to $ac_dest"
10711 if test ! -r $srcdir/$ac_source; then
10712 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10716 # Make relative symlinks.
10717 # Remove last slash and all that follows it. Not all systems have dirname.
10718 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10719 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10720 # The dest file is in a subdirectory.
10721 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10722 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10723 # A "../" for each directory in $ac_dest_dir_suffix.
10724 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10726 ac_dest_dir_suffix= ac_dots=
10730 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10731 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10734 # Make a symlink if possible; otherwise try a hard link.
10735 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10736 ln $srcdir/$ac_source $ac_dest; then :
10738 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10742 cat >> $CONFIG_STATUS <<EOF
10744 gdb_host_cpu=$gdb_host_cpu
10745 gdb_target_cpu=$gdb_target_cpu
10746 nativefile=$nativefile
10749 cat >> $CONFIG_STATUS <<\EOF
10751 if test "${nativefile}" = ""; then
10753 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
10754 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
10755 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
10757 mv -f Makefile.tem Makefile
10760 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
10761 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
10762 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
10763 mv -f Makefile.tmp Makefile
10766 case x$CONFIG_HEADERS in
10767 xconfig.h:config.in)
10773 chmod +x $CONFIG_STATUS
10774 rm -fr confdefs* $ac_clean_files
10775 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10777 if test "$no_recursion" != yes; then
10779 # Remove --cache-file and --srcdir arguments so they do not pile up.
10780 ac_sub_configure_args=
10782 for ac_arg in $ac_configure_args; do
10783 if test -n "$ac_prev"; then
10788 -cache-file | --cache-file | --cache-fil | --cache-fi \
10789 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10790 ac_prev=cache_file ;;
10791 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10792 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
10794 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10796 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10798 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10802 for ac_config_dir in doc testsuite $configdirs; do
10804 # Do not complain, so a configure script can configure whichever
10805 # parts of a large source tree are present.
10806 if test ! -d $srcdir/$ac_config_dir; then
10810 echo configuring in $ac_config_dir
10815 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
10817 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
10825 # A "../" for each directory in /$ac_config_dir.
10826 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
10829 .) # No --srcdir option. We are building in place.
10830 ac_sub_srcdir=$srcdir ;;
10831 /*) # Absolute path.
10832 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
10833 *) # Relative path.
10834 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
10837 # Check for guested configure; otherwise get Cygnus style configure.
10838 if test -f $ac_sub_srcdir/configure; then
10839 ac_sub_configure=$ac_sub_srcdir/configure
10840 elif test -f $ac_sub_srcdir/configure.in; then
10841 ac_sub_configure=$ac_configure
10843 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
10847 # The recursion is here.
10848 if test -n "$ac_sub_configure"; then
10850 # Make the cache file name correct relative to the subdirectory.
10851 case "$cache_file" in
10852 /*) ac_sub_cache_file=$cache_file ;;
10853 *) # Relative path.
10854 ac_sub_cache_file="$ac_dots$cache_file" ;;
10856 case "$ac_given_INSTALL" in
10857 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10858 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10861 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
10862 # The eval makes quoting arguments work.
10863 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
10866 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }