3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --disable-nls do not use Native Language Support"
20 --with-included-gettext use the GNU gettext library included here"
22 --with-separate-debug-dir=path Look for global separate debug info in this path [LIBDIR/debug]"
24 --disable-gdbcli disable command-line interface (CLI)"
26 --disable-gdbmi disable machine-interface (MI)"
28 --enable-tui enable full-screen terminal user interface (TUI)"
30 --enable-gdbtk enable gdbtk graphical user interface (GUI)"
32 --with-libunwind Use libunwind frame unwinding support"
34 --enable-profiling enable profiling of GDB"
36 --without-included-regex don't use included regex; this is the default
37 on systems with version 2 of the GNU C library
38 (use with caution on other system)"
40 --with-sysroot[=DIR] Search for usr/lib et al within DIR."
42 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
44 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used"
46 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)"
48 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)"
50 --with-tclinclude=DIR Directory where tcl private headers are"
52 --with-tkinclude=DIR Directory where tk private headers are"
54 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)"
56 --with-itkconfig Directory containing itk configuration (itkConfig.sh)"
58 --with-x use the X Window System"
60 --enable-sim Link gdb with simulator"
62 --enable-multi-ice build the multi-ice-gdb-server"
64 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
70 cache_file
=.
/config.cache
79 program_transform_name
=s
,x
,x
,
88 bindir
='${exec_prefix}/bin'
89 sbindir
='${exec_prefix}/sbin'
90 libexecdir
='${exec_prefix}/libexec'
91 datadir
='${prefix}/share'
92 sysconfdir
='${prefix}/etc'
93 sharedstatedir
='${prefix}/com'
94 localstatedir
='${prefix}/var'
95 libdir
='${exec_prefix}/lib'
96 includedir
='${prefix}/include'
97 oldincludedir
='/usr/include'
98 infodir
='${prefix}/info'
99 mandir
='${prefix}/man'
101 # Initialize some other variables.
104 SHELL
=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
120 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 # Accept the important Cygnus configure options, so we can diagnose typos.
128 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
130 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
131 bindir
="$ac_optarg" ;;
133 -build |
--build |
--buil |
--bui |
--bu)
135 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
136 build
="$ac_optarg" ;;
138 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
139 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
140 ac_prev
=cache_file
;;
141 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
142 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
143 cache_file
="$ac_optarg" ;;
145 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
147 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
149 datadir
="$ac_optarg" ;;
151 -disable-* |
--disable-*)
152 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
160 -enable-* |
--enable-*)
161 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
173 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
174 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
175 |
--exec |
--exe |
--ex)
176 ac_prev
=exec_prefix
;;
177 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
178 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
179 |
--exec=* |
--exe=* |
--ex=*)
180 exec_prefix
="$ac_optarg" ;;
182 -gas |
--gas |
--ga |
--g)
183 # Obsolete; use --with-gas.
186 -help |
--help |
--hel |
--he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --site-file=FILE use FILE as the site file
198 --version print the version of autoconf that created configure
199 Directory and file names:
200 --prefix=PREFIX install architecture-independent files in PREFIX
202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 --bindir=DIR user executables in DIR [EPREFIX/bin]
205 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
206 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
207 --datadir=DIR read-only architecture-independent data in DIR
209 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
210 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
213 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
214 --includedir=DIR C header files in DIR [PREFIX/include]
215 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
216 --infodir=DIR info documentation in DIR [PREFIX/info]
217 --mandir=DIR man documentation in DIR [PREFIX/man]
218 --srcdir=DIR find the sources in DIR [configure dir or ..]
219 --program-prefix=PREFIX prepend PREFIX to installed program names
220 --program-suffix=SUFFIX append SUFFIX to installed program names
221 --program-transform-name=PROGRAM
222 run sed PROGRAM on installed program names
226 --build=BUILD configure for building on BUILD [BUILD=HOST]
227 --host=HOST configure for HOST [guessed]
228 --target=TARGET configure for TARGET [TARGET=HOST]
229 Features and packages:
230 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
231 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
232 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
233 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
234 --x-includes=DIR X include files are in DIR
235 --x-libraries=DIR X library files are in DIR
237 if test -n "$ac_help"; then
238 echo "--enable and --with options recognized:$ac_help"
242 -host |
--host |
--hos |
--ho)
244 -host=* |
--host=* |
--hos=* |
--ho=*)
247 -includedir |
--includedir |
--includedi |
--included |
--include \
248 |
--includ |
--inclu |
--incl |
--inc)
249 ac_prev
=includedir
;;
250 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
251 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
252 includedir
="$ac_optarg" ;;
254 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
256 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
257 infodir
="$ac_optarg" ;;
259 -libdir |
--libdir |
--libdi |
--libd)
261 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
262 libdir
="$ac_optarg" ;;
264 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
265 |
--libexe |
--libex |
--libe)
266 ac_prev
=libexecdir
;;
267 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
268 |
--libexe=* |
--libex=* |
--libe=*)
269 libexecdir
="$ac_optarg" ;;
271 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
272 |
--localstate |
--localstat |
--localsta |
--localst \
273 |
--locals |
--local |
--loca |
--loc |
--lo)
274 ac_prev
=localstatedir
;;
275 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
276 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
277 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
278 localstatedir
="$ac_optarg" ;;
280 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
282 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
283 mandir
="$ac_optarg" ;;
286 # Obsolete; use --without-fp.
289 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
293 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
294 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
297 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
298 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
299 |
--oldin |
--oldi |
--old |
--ol |
--o)
300 ac_prev
=oldincludedir
;;
301 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
302 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
303 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
304 oldincludedir
="$ac_optarg" ;;
306 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
308 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
309 prefix
="$ac_optarg" ;;
311 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
312 |
--program-pre |
--program-pr |
--program-p)
313 ac_prev
=program_prefix
;;
314 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
315 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
316 program_prefix
="$ac_optarg" ;;
318 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
319 |
--program-suf |
--program-su |
--program-s)
320 ac_prev
=program_suffix
;;
321 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
322 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
323 program_suffix
="$ac_optarg" ;;
325 -program-transform-name |
--program-transform-name \
326 |
--program-transform-nam |
--program-transform-na \
327 |
--program-transform-n |
--program-transform- \
328 |
--program-transform |
--program-transfor \
329 |
--program-transfo |
--program-transf \
330 |
--program-trans |
--program-tran \
331 |
--progr-tra |
--program-tr |
--program-t)
332 ac_prev
=program_transform_name
;;
333 -program-transform-name=* |
--program-transform-name=* \
334 |
--program-transform-nam=* |
--program-transform-na=* \
335 |
--program-transform-n=* |
--program-transform-=* \
336 |
--program-transform=* |
--program-transfor=* \
337 |
--program-transfo=* |
--program-transf=* \
338 |
--program-trans=* |
--program-tran=* \
339 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
340 program_transform_name
="$ac_optarg" ;;
342 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
343 |
-silent |
--silent |
--silen |
--sile |
--sil)
346 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
348 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
350 sbindir
="$ac_optarg" ;;
352 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
353 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
354 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
356 ac_prev
=sharedstatedir
;;
357 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
358 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
359 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
361 sharedstatedir
="$ac_optarg" ;;
363 -site |
--site |
--sit)
365 -site=* |
--site=* |
--sit=*)
368 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
370 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
371 sitefile
="$ac_optarg" ;;
373 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
375 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
376 srcdir
="$ac_optarg" ;;
378 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
379 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
380 ac_prev
=sysconfdir
;;
381 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
382 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
383 sysconfdir
="$ac_optarg" ;;
385 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
387 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
388 target
="$ac_optarg" ;;
390 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
393 -version |
--version |
--versio |
--versi |
--vers)
394 echo "configure generated by autoconf version 2.13"
398 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package
=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}='$ac_optarg'" ;;
410 -without-* |
--without-*)
411 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package
=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
420 # Obsolete; use --with-x.
423 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
424 |
--x-incl |
--x-inc |
--x-in |
--x-i)
425 ac_prev
=x_includes
;;
426 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
427 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
428 x_includes
="$ac_optarg" ;;
430 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
431 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
432 ac_prev
=x_libraries
;;
433 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
434 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
435 x_libraries
="$ac_optarg" ;;
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
444 if test "x$nonopt" != xNONE
; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459 # File descriptor usage:
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c) ;;
487 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
488 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
489 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest
* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file
=main.c
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted
=yes
517 # Try the directory containing this script, then its parent.
519 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
522 if test ! -r $srcdir/$ac_unique_file; then
526 ac_srcdir_defaulted
=no
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$sitefile"; then
539 if test -z "$CONFIG_SITE"; then
540 if test "x$prefix" != xNONE
; then
541 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
543 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 CONFIG_SITE
="$sitefile"
549 for ac_site_file
in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp
='$CPP $CPPFLAGS'
567 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling
=$ac_cv_prog_cc_cross
573 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
582 ac_n
= ac_c
='\c' ac_t
=
587 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
588 echo "configure:589: checking whether to enable maintainer-specific portions of Makefiles" >&5
589 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
590 if test "${enable_maintainer_mode+set}" = set; then
591 enableval
="$enable_maintainer_mode"
592 USE_MAINTAINER_MODE
=$enableval
594 USE_MAINTAINER_MODE
=no
597 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
600 if test $USE_MAINTAINER_MODE = yes; then
601 MAINTAINER_MODE_TRUE
=
602 MAINTAINER_MODE_FALSE
='#'
604 MAINTAINER_MODE_TRUE
='#'
605 MAINTAINER_MODE_FALSE
=
607 MAINT
=$MAINTAINER_MODE_TRUE
611 # Extract the first word of "gcc", so it can be a program name with args.
612 set dummy gcc
; ac_word
=$2
613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
614 echo "configure:615: checking for $ac_word" >&5
615 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
618 if test -n "$CC"; then
619 ac_cv_prog_CC
="$CC" # Let the user override the test.
621 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
623 for ac_dir
in $ac_dummy; do
624 test -z "$ac_dir" && ac_dir
=.
625 if test -f $ac_dir/$ac_word; then
634 if test -n "$CC"; then
635 echo "$ac_t""$CC" 1>&6
637 echo "$ac_t""no" 1>&6
640 if test -z "$CC"; then
641 # Extract the first word of "cc", so it can be a program name with args.
642 set dummy cc
; ac_word
=$2
643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
644 echo "configure:645: checking for $ac_word" >&5
645 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
646 echo $ac_n "(cached) $ac_c" 1>&6
648 if test -n "$CC"; then
649 ac_cv_prog_CC
="$CC" # Let the user override the test.
651 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
654 for ac_dir
in $ac_dummy; do
655 test -z "$ac_dir" && ac_dir
=.
656 if test -f $ac_dir/$ac_word; then
657 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
666 if test $ac_prog_rejected = yes; then
667 # We found a bogon in the path, so make sure we never use it.
668 set dummy
$ac_cv_prog_CC
670 if test $# -gt 0; then
671 # We chose a different compiler from the bogus one.
672 # However, it has the same basename, so the bogon will be chosen
673 # first if we set CC to just the basename; use the full file name.
675 set dummy
"$ac_dir/$ac_word" "$@"
683 if test -n "$CC"; then
684 echo "$ac_t""$CC" 1>&6
686 echo "$ac_t""no" 1>&6
689 if test -z "$CC"; then
692 # Extract the first word of "cl", so it can be a program name with args.
693 set dummy cl
; ac_word
=$2
694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
695 echo "configure:696: checking for $ac_word" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 if test -n "$CC"; then
700 ac_cv_prog_CC
="$CC" # Let the user override the test.
702 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
704 for ac_dir
in $ac_dummy; do
705 test -z "$ac_dir" && ac_dir
=.
706 if test -f $ac_dir/$ac_word; then
715 if test -n "$CC"; then
716 echo "$ac_t""$CC" 1>&6
718 echo "$ac_t""no" 1>&6
723 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
726 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
727 echo "configure:728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
731 ac_cpp
='$CPP $CPPFLAGS'
732 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
733 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
734 cross_compiling
=$ac_cv_prog_cc_cross
736 cat > conftest.
$ac_ext << EOF
738 #line 739 "configure"
739 #include "confdefs.h"
743 if { (eval echo configure
:744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
744 ac_cv_prog_cc_works
=yes
745 # If we can't run a trivial program, we are probably using a cross compiler.
746 if (.
/conftest
; exit) 2>/dev
/null
; then
747 ac_cv_prog_cc_cross
=no
749 ac_cv_prog_cc_cross
=yes
752 echo "configure: failed program was:" >&5
753 cat conftest.
$ac_ext >&5
754 ac_cv_prog_cc_works
=no
758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
759 ac_cpp
='$CPP $CPPFLAGS'
760 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
761 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
762 cross_compiling
=$ac_cv_prog_cc_cross
764 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
765 if test $ac_cv_prog_cc_works = no
; then
766 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
768 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
769 echo "configure:770: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
770 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
771 cross_compiling
=$ac_cv_prog_cc_cross
773 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
774 echo "configure:775: checking whether we are using GNU C" >&5
775 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
778 cat > conftest.c
<<EOF
783 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
790 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
792 if test $ac_cv_prog_gcc = yes; then
798 ac_test_CFLAGS
="${CFLAGS+set}"
799 ac_save_CFLAGS
="$CFLAGS"
801 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
802 echo "configure:803: checking whether ${CC-cc} accepts -g" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 echo 'void f(){}' > conftest.c
807 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
816 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
817 if test "$ac_test_CFLAGS" = set; then
818 CFLAGS
="$ac_save_CFLAGS"
819 elif test $ac_cv_prog_cc_g = yes; then
820 if test "$GCC" = yes; then
826 if test "$GCC" = yes; then
833 cat >> confdefs.h
<<\EOF
834 #define _GNU_SOURCE 1
838 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
839 echo "configure:840: checking how to run the C preprocessor" >&5
840 # On Suns, sometimes $CPP names a directory.
841 if test -n "$CPP" && test -d "$CPP"; then
844 if test -z "$CPP"; then
845 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 # This must be in double quotes, not single quotes, because CPP may get
849 # substituted into the Makefile and "${CC-cc}" will confuse make.
851 # On the NeXT, cc -E runs the code through the compiler's parser,
852 # not just through cpp.
853 cat > conftest.
$ac_ext <<EOF
854 #line 855 "configure"
855 #include "confdefs.h"
859 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
860 { (eval echo configure
:861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
861 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
862 if test -z "$ac_err"; then
866 echo "configure: failed program was:" >&5
867 cat conftest.
$ac_ext >&5
869 CPP
="${CC-cc} -E -traditional-cpp"
870 cat > conftest.
$ac_ext <<EOF
871 #line 872 "configure"
872 #include "confdefs.h"
876 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
877 { (eval echo configure
:878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
878 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
879 if test -z "$ac_err"; then
883 echo "configure: failed program was:" >&5
884 cat conftest.
$ac_ext >&5
886 CPP
="${CC-cc} -nologo -E"
887 cat > conftest.
$ac_ext <<EOF
888 #line 889 "configure"
889 #include "confdefs.h"
893 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
894 { (eval echo configure
:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
895 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
896 if test -z "$ac_err"; then
900 echo "configure: failed program was:" >&5
901 cat conftest.
$ac_ext >&5
910 ac_cv_prog_CPP
="$CPP"
912 CPP
="$ac_cv_prog_CPP"
914 ac_cv_prog_CPP
="$CPP"
916 echo "$ac_t""$CPP" 1>&6
918 echo $ac_n "checking for AIX""... $ac_c" 1>&6
919 echo "configure:920: checking for AIX" >&5
920 cat > conftest.
$ac_ext <<EOF
921 #line 922 "configure"
922 #include "confdefs.h"
928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
929 egrep "yes" >/dev
/null
2>&1; then
931 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
932 #define _ALL_SOURCE 1
937 echo "$ac_t""no" 1>&6
942 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
943 echo "configure:944: checking for POSIXized ISC" >&5
944 if test -d /etc
/conf
/kconfig.d
&&
945 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
947 echo "$ac_t""yes" 1>&6
948 ISC
=yes # If later tests want to check for ISC.
949 cat >> confdefs.h
<<\EOF
950 #define _POSIX_SOURCE 1
953 if test "$GCC" = yes; then
959 echo "$ac_t""no" 1>&6
966 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
967 echo "configure:968: checking for ${CC-cc} option to accept ANSI C" >&5
968 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 am_cv_prog_cc_stdc
=no
973 # Don't try gcc -ansi; that turns off useful extensions and
974 # breaks some systems' header files.
976 # Ultrix and OSF/1 -std1
977 # HP-UX 10.20 and later -Ae
978 # HP-UX older versions -Aa -D_HPUX_SOURCE
979 # SVR4 -Xc -D__EXTENSIONS__
980 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
982 CC
="$ac_save_CC $ac_arg"
983 cat > conftest.
$ac_ext <<EOF
984 #line 985 "configure"
985 #include "confdefs.h"
988 #include <sys/types.h>
989 #include <sys/stat.h>
990 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
991 struct buf { int x; };
992 FILE * (*rcsopen) (struct buf *, struct stat *, int);
993 static char *e (p, i)
999 static char *f (char * (*g) (char **, int), char **p, ...)
1004 s = g (p, va_arg (v,int));
1008 int test (int i, double x);
1009 struct s1 {int (*f) (int a);};
1010 struct s2 {int (*f) (double a);};
1011 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1017 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1021 if { (eval echo configure
:1022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1023 am_cv_prog_cc_stdc
="$ac_arg"; break
1025 echo "configure: failed program was:" >&5
1026 cat conftest.
$ac_ext >&5
1034 if test -z "$am_cv_prog_cc_stdc"; then
1035 echo "$ac_t""none needed" 1>&6
1037 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1039 case "x$am_cv_prog_cc_stdc" in
1041 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1046 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
1047 if test -f $ac_dir/install-sh
; then
1049 ac_install_sh
="$ac_aux_dir/install-sh -c"
1051 elif test -f $ac_dir/install.sh
; then
1053 ac_install_sh
="$ac_aux_dir/install.sh -c"
1057 if test -z "$ac_aux_dir"; then
1058 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
1060 ac_config_guess
=$ac_aux_dir/config.guess
1061 ac_config_sub
=$ac_aux_dir/config.sub
1062 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1065 # Do some error checking and defaulting for the host and target type.
1067 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1070 # 1. You are not allowed to specify --host, --target, and nonopt at the
1072 # 2. Host defaults to nonopt.
1073 # 3. If nonopt is not specified, then host defaults to the current host,
1074 # as determined by config.guess.
1075 # 4. Target and build default to nonopt.
1076 # 5. If nonopt is not specified, then target and build default to host.
1078 # The aliases save the names the user supplied, while $host etc.
1079 # will get canonicalized.
1080 case $host---$target---$nonopt in
1081 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1082 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1086 # Make sure we can run config.sub.
1087 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1088 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1091 echo $ac_n "checking host system type""... $ac_c" 1>&6
1092 echo "configure:1093: checking host system type" >&5
1095 case "$host_alias" in
1099 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1100 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1102 *) host_alias
=$nonopt ;;
1106 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1107 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1108 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1109 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1110 echo "$ac_t""$host" 1>&6
1112 echo $ac_n "checking target system type""... $ac_c" 1>&6
1113 echo "configure:1114: checking target system type" >&5
1115 target_alias
=$target
1116 case "$target_alias" in
1119 NONE
) target_alias
=$host_alias ;;
1120 *) target_alias
=$nonopt ;;
1124 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1125 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1126 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1127 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1128 echo "$ac_t""$target" 1>&6
1130 echo $ac_n "checking build system type""... $ac_c" 1>&6
1131 echo "configure:1132: checking build system type" >&5
1134 case "$build_alias" in
1137 NONE
) build_alias
=$host_alias ;;
1138 *) build_alias
=$nonopt ;;
1142 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1143 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1144 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1145 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1146 echo "$ac_t""$build" 1>&6
1148 test "$host_alias" != "$target_alias" &&
1149 test "$program_prefix$program_suffix$program_transform_name" = \
1151 program_prefix
=${target_alias}-
1154 # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13
1155 # doesn't support cross-compilation, but the one from Autoconf 2.5x
1156 # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to
1157 # deal with the lossage. Note that CY_GNU_GETTEXT currently calls
1158 # AC_PROG_RANLIB. This can be removed when we switch to Autoconf
1160 if test $host != $build; then
1161 ac_tool_prefix
=${host_alias}-
1166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1167 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1169 echo "configure:1170: checking for $ac_word" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 if test -n "$RANLIB"; then
1174 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1176 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1178 for ac_dir
in $ac_dummy; do
1179 test -z "$ac_dir" && ac_dir
=.
1180 if test -f $ac_dir/$ac_word; then
1181 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1188 RANLIB
="$ac_cv_prog_RANLIB"
1189 if test -n "$RANLIB"; then
1190 echo "$ac_t""$RANLIB" 1>&6
1192 echo "$ac_t""no" 1>&6
1196 if test -z "$ac_cv_prog_RANLIB"; then
1197 if test -n "$ac_tool_prefix"; then
1198 # Extract the first word of "ranlib", so it can be a program name with args.
1199 set dummy ranlib
; ac_word
=$2
1200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1201 echo "configure:1202: checking for $ac_word" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 if test -n "$RANLIB"; then
1206 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1208 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1210 for ac_dir
in $ac_dummy; do
1211 test -z "$ac_dir" && ac_dir
=.
1212 if test -f $ac_dir/$ac_word; then
1213 ac_cv_prog_RANLIB
="ranlib"
1218 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1221 RANLIB
="$ac_cv_prog_RANLIB"
1222 if test -n "$RANLIB"; then
1223 echo "$ac_t""$RANLIB" 1>&6
1225 echo "$ac_t""no" 1>&6
1235 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1236 echo "configure:1237: checking whether ${MAKE-make} sets \${MAKE}" >&5
1237 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1238 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 cat > conftestmake
<<\EOF
1243 @
echo 'ac_maketemp="${MAKE}"'
1245 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1246 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1247 if test -n "$ac_maketemp"; then
1248 eval ac_cv_prog_make_
${ac_make}_set
=yes
1250 eval ac_cv_prog_make_
${ac_make}_set
=no
1254 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1255 echo "$ac_t""yes" 1>&6
1258 echo "$ac_t""no" 1>&6
1259 SET_MAKE
="MAKE=${MAKE-make}"
1262 # Extract the first word of "ranlib", so it can be a program name with args.
1263 set dummy ranlib
; ac_word
=$2
1264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1265 echo "configure:1266: checking for $ac_word" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 if test -n "$RANLIB"; then
1270 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1272 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1274 for ac_dir
in $ac_dummy; do
1275 test -z "$ac_dir" && ac_dir
=.
1276 if test -f $ac_dir/$ac_word; then
1277 ac_cv_prog_RANLIB
="ranlib"
1282 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1285 RANLIB
="$ac_cv_prog_RANLIB"
1286 if test -n "$RANLIB"; then
1287 echo "$ac_t""$RANLIB" 1>&6
1289 echo "$ac_t""no" 1>&6
1292 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1293 echo "configure:1294: checking for ANSI C header files" >&5
1294 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 cat > conftest.
$ac_ext <<EOF
1298 #line 1299 "configure"
1299 #include "confdefs.h"
1305 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1306 { (eval echo configure
:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1307 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1308 if test -z "$ac_err"; then
1310 ac_cv_header_stdc
=yes
1313 echo "configure: failed program was:" >&5
1314 cat conftest.
$ac_ext >&5
1316 ac_cv_header_stdc
=no
1320 if test $ac_cv_header_stdc = yes; then
1321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1322 cat > conftest.
$ac_ext <<EOF
1323 #line 1324 "configure"
1324 #include "confdefs.h"
1327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1328 egrep "memchr" >/dev
/null
2>&1; then
1332 ac_cv_header_stdc
=no
1338 if test $ac_cv_header_stdc = yes; then
1339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1340 cat > conftest.
$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1346 egrep "free" >/dev
/null
2>&1; then
1350 ac_cv_header_stdc
=no
1356 if test $ac_cv_header_stdc = yes; then
1357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1358 if test "$cross_compiling" = yes; then
1361 cat > conftest.
$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1365 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1366 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1368 int main () { int i; for (i = 0; i < 256; i++)
1369 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1373 if { (eval echo configure
:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1377 echo "configure: failed program was:" >&5
1378 cat conftest.
$ac_ext >&5
1380 ac_cv_header_stdc
=no
1388 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1389 if test $ac_cv_header_stdc = yes; then
1390 cat >> confdefs.h
<<\EOF
1391 #define STDC_HEADERS 1
1396 echo $ac_n "checking for working const""... $ac_c" 1>&6
1397 echo "configure:1398: checking for working const" >&5
1398 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 cat > conftest.
$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1407 /* Ultrix mips cc rejects this. */
1408 typedef int charset[2]; const charset x;
1409 /* SunOS 4.1.1 cc rejects this. */
1410 char const *const *ccp;
1412 /* NEC SVR4.0.2 mips cc rejects this. */
1413 struct point {int x, y;};
1414 static struct point const zero = {0,0};
1415 /* AIX XL C 1.02.0.0 rejects this.
1416 It does not let you subtract one const X* pointer from another in an arm
1417 of an if-expression whose if-part is not a constant expression */
1418 const char *g = "string";
1419 ccp = &g + (g ? g-g : 0);
1420 /* HPUX 7.0 cc rejects these. */
1423 ccp = (char const *const *) p;
1424 { /* SCO 3.2v4 cc rejects this. */
1426 char const *s = 0 ? (char *) 0 : (char const *) 0;
1430 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1432 const int *foo = &x[0];
1435 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1436 typedef const int *iptr;
1440 { /* AIX XL C 1.02.0.0 rejects this saying
1441 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1442 struct s { int j; const int *ap[3]; };
1443 struct s *b; b->j = 5;
1445 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1451 if { (eval echo configure
:1452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1455 echo "configure: failed program was:" >&5
1456 cat conftest.
$ac_ext >&5
1463 echo "$ac_t""$ac_cv_c_const" 1>&6
1464 if test $ac_cv_c_const = no
; then
1465 cat >> confdefs.h
<<\EOF
1471 echo $ac_n "checking for inline""... $ac_c" 1>&6
1472 echo "configure:1473: checking for inline" >&5
1473 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1477 for ac_kw
in inline __inline__ __inline
; do
1478 cat > conftest.
$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1486 if { (eval echo configure
:1487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1488 ac_cv_c_inline
=$ac_kw; break
1490 echo "configure: failed program was:" >&5
1491 cat conftest.
$ac_ext >&5
1498 echo "$ac_t""$ac_cv_c_inline" 1>&6
1499 case "$ac_cv_c_inline" in
1501 no
) cat >> confdefs.h
<<\EOF
1505 *) cat >> confdefs.h
<<EOF
1506 #define inline $ac_cv_c_inline
1511 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1512 echo "configure:1513: checking for off_t" >&5
1513 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1516 cat > conftest.
$ac_ext <<EOF
1517 #line 1518 "configure"
1518 #include "confdefs.h"
1519 #include <sys/types.h>
1525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1526 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1528 ac_cv_type_off_t
=yes
1536 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1537 if test $ac_cv_type_off_t = no
; then
1538 cat >> confdefs.h
<<\EOF
1544 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1545 echo "configure:1546: checking for size_t" >&5
1546 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1549 cat > conftest.
$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1552 #include <sys/types.h>
1558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1559 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1561 ac_cv_type_size_t
=yes
1564 ac_cv_type_size_t
=no
1569 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1570 if test $ac_cv_type_size_t = no
; then
1571 cat >> confdefs.h
<<\EOF
1572 #define size_t unsigned
1577 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1578 # for constant arguments. Useless!
1579 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1580 echo "configure:1581: checking for working alloca.h" >&5
1581 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 cat > conftest.
$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1589 char *p = alloca(2 * sizeof(int));
1592 if { (eval echo configure
:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1594 ac_cv_header_alloca_h
=yes
1596 echo "configure: failed program was:" >&5
1597 cat conftest.
$ac_ext >&5
1599 ac_cv_header_alloca_h
=no
1604 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1605 if test $ac_cv_header_alloca_h = yes; then
1606 cat >> confdefs.h
<<\EOF
1607 #define HAVE_ALLOCA_H 1
1612 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1613 echo "configure:1614: checking for alloca" >&5
1614 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 cat > conftest.
$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1622 # define alloca __builtin_alloca
1625 # include <malloc.h>
1626 # define alloca _alloca
1629 # include <alloca.h>
1634 # ifndef alloca /* predefined by HP cc +Olibcalls */
1643 char *p = (char *) alloca(1);
1646 if { (eval echo configure
:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1648 ac_cv_func_alloca_works
=yes
1650 echo "configure: failed program was:" >&5
1651 cat conftest.
$ac_ext >&5
1653 ac_cv_func_alloca_works
=no
1658 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1659 if test $ac_cv_func_alloca_works = yes; then
1660 cat >> confdefs.h
<<\EOF
1661 #define HAVE_ALLOCA 1
1666 if test $ac_cv_func_alloca_works = no
; then
1667 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1668 # that cause trouble. Some versions do not even contain alloca or
1669 # contain a buggy version. If you still want to use their alloca,
1670 # use ar to extract alloca.o from them instead of compiling alloca.c.
1671 ALLOCA
=alloca.
${ac_objext}
1672 cat >> confdefs.h
<<\EOF
1677 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1678 echo "configure:1679: checking whether alloca needs Cray hooks" >&5
1679 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 cat > conftest.
$ac_ext <<EOF
1683 #line 1684 "configure"
1684 #include "confdefs.h"
1685 #if defined(CRAY) && ! defined(CRAY2)
1692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1693 egrep "webecray" >/dev
/null
2>&1; then
1704 echo "$ac_t""$ac_cv_os_cray" 1>&6
1705 if test $ac_cv_os_cray = yes; then
1706 for ac_func
in _getb67 GETB67 getb67
; do
1707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1708 echo "configure:1709: checking for $ac_func" >&5
1709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 cat > conftest.
$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715 /* System header to define __stub macros and hopefully few prototypes,
1716 which can conflict with char $ac_func(); below. */
1718 /* Override any gcc2 internal prototype to avoid an error. */
1719 /* We use char because int might match the return type of a gcc2
1720 builtin and then its argument prototype would still apply. */
1725 /* The GNU C library defines this for functions which it implements
1726 to always fail with ENOSYS. Some functions are actually named
1727 something starting with __ and the normal name is an alias. */
1728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1736 if { (eval echo configure
:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1738 eval "ac_cv_func_$ac_func=yes"
1740 echo "configure: failed program was:" >&5
1741 cat conftest.
$ac_ext >&5
1743 eval "ac_cv_func_$ac_func=no"
1748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1749 echo "$ac_t""yes" 1>&6
1750 cat >> confdefs.h
<<EOF
1751 #define CRAY_STACKSEG_END $ac_func
1756 echo "$ac_t""no" 1>&6
1762 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1763 echo "configure:1764: checking stack direction for C alloca" >&5
1764 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1767 if test "$cross_compiling" = yes; then
1768 ac_cv_c_stack_direction
=0
1770 cat > conftest.
$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1773 find_stack_direction ()
1775 static char *addr = 0;
1780 return find_stack_direction ();
1783 return (&dummy > addr) ? 1 : -1;
1787 exit (find_stack_direction() < 0);
1790 if { (eval echo configure
:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1792 ac_cv_c_stack_direction
=1
1794 echo "configure: failed program was:" >&5
1795 cat conftest.
$ac_ext >&5
1797 ac_cv_c_stack_direction
=-1
1804 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1805 cat >> confdefs.h
<<EOF
1806 #define STACK_DIRECTION $ac_cv_c_stack_direction
1811 for ac_hdr
in unistd.h
1813 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_hdr" >&5
1816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 cat > conftest.
$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1824 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1825 { (eval echo configure
:1826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1826 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1827 if test -z "$ac_err"; then
1829 eval "ac_cv_header_$ac_safe=yes"
1832 echo "configure: failed program was:" >&5
1833 cat conftest.
$ac_ext >&5
1835 eval "ac_cv_header_$ac_safe=no"
1839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1840 echo "$ac_t""yes" 1>&6
1841 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1842 cat >> confdefs.h
<<EOF
1843 #define $ac_tr_hdr 1
1847 echo "$ac_t""no" 1>&6
1851 for ac_func
in getpagesize
1853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1854 echo "configure:1855: checking for $ac_func" >&5
1855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 cat > conftest.
$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1861 /* System header to define __stub macros and hopefully few prototypes,
1862 which can conflict with char $ac_func(); below. */
1864 /* Override any gcc2 internal prototype to avoid an error. */
1865 /* We use char because int might match the return type of a gcc2
1866 builtin and then its argument prototype would still apply. */
1871 /* The GNU C library defines this for functions which it implements
1872 to always fail with ENOSYS. Some functions are actually named
1873 something starting with __ and the normal name is an alias. */
1874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1882 if { (eval echo configure
:1883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1884 eval "ac_cv_func_$ac_func=yes"
1886 echo "configure: failed program was:" >&5
1887 cat conftest.
$ac_ext >&5
1889 eval "ac_cv_func_$ac_func=no"
1894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1895 echo "$ac_t""yes" 1>&6
1896 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1897 cat >> confdefs.h
<<EOF
1898 #define $ac_tr_func 1
1902 echo "$ac_t""no" 1>&6
1906 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
1907 echo "configure:1908: checking for working mmap" >&5
1908 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 if test "$cross_compiling" = yes; then
1912 ac_cv_func_mmap_fixed_mapped
=no
1914 cat > conftest.
$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1918 /* Thanks to Mike Haertel and Jim Avera for this test.
1919 Here is a matrix of mmap possibilities:
1920 mmap private not fixed
1921 mmap private fixed at somewhere currently unmapped
1922 mmap private fixed at somewhere already mapped
1923 mmap shared not fixed
1924 mmap shared fixed at somewhere currently unmapped
1925 mmap shared fixed at somewhere already mapped
1926 For private mappings, we should verify that changes cannot be read()
1927 back from the file, nor mmap's back from the file at a different
1928 address. (There have been systems where private was not correctly
1929 implemented like the infamous i386 svr4.0, and systems where the
1930 VM page cache was not coherent with the filesystem buffer cache
1931 like early versions of FreeBSD and possibly contemporary NetBSD.)
1932 For shared mappings, we should conversely verify that changes get
1933 propogated back to all the places they're supposed to be.
1935 Grep wants private fixed already mapped.
1936 The main things grep needs to know about mmap are:
1937 * does it exist and is it safe to write into the mmap'd area
1938 * how to use it (BSD variants) */
1939 #include <sys/types.h>
1941 #include <sys/mman.h>
1943 /* This mess was copied from the GNU getpagesize.h. */
1944 #ifndef HAVE_GETPAGESIZE
1945 # ifdef HAVE_UNISTD_H
1946 # include <unistd.h>
1949 /* Assume that all systems that can run configure have sys/param.h. */
1950 # ifndef HAVE_SYS_PARAM_H
1951 # define HAVE_SYS_PARAM_H 1
1954 # ifdef _SC_PAGESIZE
1955 # define getpagesize() sysconf(_SC_PAGESIZE)
1956 # else /* no _SC_PAGESIZE */
1957 # ifdef HAVE_SYS_PARAM_H
1958 # include <sys/param.h>
1959 # ifdef EXEC_PAGESIZE
1960 # define getpagesize() EXEC_PAGESIZE
1961 # else /* no EXEC_PAGESIZE */
1963 # define getpagesize() NBPG * CLSIZE
1966 # endif /* no CLSIZE */
1967 # else /* no NBPG */
1969 # define getpagesize() NBPC
1970 # else /* no NBPC */
1972 # define getpagesize() PAGESIZE
1973 # endif /* PAGESIZE */
1974 # endif /* no NBPC */
1975 # endif /* no NBPG */
1976 # endif /* no EXEC_PAGESIZE */
1977 # else /* no HAVE_SYS_PARAM_H */
1978 # define getpagesize() 8192 /* punt totally */
1979 # endif /* no HAVE_SYS_PARAM_H */
1980 # endif /* no _SC_PAGESIZE */
1982 #endif /* no HAVE_GETPAGESIZE */
1985 extern "C" { void *malloc(unsigned); }
1993 char *data, *data2, *data3;
1997 pagesize = getpagesize();
2000 * First, make a file with some known garbage in it.
2002 data = malloc(pagesize);
2005 for (i = 0; i < pagesize; ++i)
2006 *(data + i) = rand();
2008 fd = creat("conftestmmap", 0600);
2011 if (write(fd, data, pagesize) != pagesize)
2016 * Next, try to mmap the file at a fixed address which
2017 * already has something else allocated at it. If we can,
2018 * also make sure that we see the same garbage.
2020 fd = open("conftestmmap", O_RDWR);
2023 data2 = malloc(2 * pagesize);
2026 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2027 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2028 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2030 for (i = 0; i < pagesize; ++i)
2031 if (*(data + i) != *(data2 + i))
2035 * Finally, make sure that changes to the mapped area
2036 * do not percolate back to the file as seen by read().
2037 * (This is a bug on some variants of i386 svr4.0.)
2039 for (i = 0; i < pagesize; ++i)
2040 *(data2 + i) = *(data2 + i) + 1;
2041 data3 = malloc(pagesize);
2044 if (read(fd, data3, pagesize) != pagesize)
2046 for (i = 0; i < pagesize; ++i)
2047 if (*(data + i) != *(data3 + i))
2050 unlink("conftestmmap");
2055 if { (eval echo configure
:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2057 ac_cv_func_mmap_fixed_mapped
=yes
2059 echo "configure: failed program was:" >&5
2060 cat conftest.
$ac_ext >&5
2062 ac_cv_func_mmap_fixed_mapped
=no
2069 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2070 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2071 cat >> confdefs.h
<<\EOF
2078 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2079 unistd.h values.h sys
/param.h
2081 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2083 echo "configure:2084: checking for $ac_hdr" >&5
2084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.
$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2092 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2093 { (eval echo configure
:2094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2094 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2095 if test -z "$ac_err"; then
2097 eval "ac_cv_header_$ac_safe=yes"
2100 echo "configure: failed program was:" >&5
2101 cat conftest.
$ac_ext >&5
2103 eval "ac_cv_header_$ac_safe=no"
2107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2108 echo "$ac_t""yes" 1>&6
2109 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2110 cat >> confdefs.h
<<EOF
2111 #define $ac_tr_hdr 1
2115 echo "$ac_t""no" 1>&6
2119 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2120 __argz_count __argz_stringify __argz_next
2122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_func" >&5
2124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 cat > conftest.
$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2130 /* System header to define __stub macros and hopefully few prototypes,
2131 which can conflict with char $ac_func(); below. */
2133 /* Override any gcc2 internal prototype to avoid an error. */
2134 /* We use char because int might match the return type of a gcc2
2135 builtin and then its argument prototype would still apply. */
2140 /* The GNU C library defines this for functions which it implements
2141 to always fail with ENOSYS. Some functions are actually named
2142 something starting with __ and the normal name is an alias. */
2143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2151 if { (eval echo configure
:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2153 eval "ac_cv_func_$ac_func=yes"
2155 echo "configure: failed program was:" >&5
2156 cat conftest.
$ac_ext >&5
2158 eval "ac_cv_func_$ac_func=no"
2163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2164 echo "$ac_t""yes" 1>&6
2165 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2166 cat >> confdefs.h
<<EOF
2167 #define $ac_tr_func 1
2171 echo "$ac_t""no" 1>&6
2176 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2177 for ac_func
in stpcpy
2179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2180 echo "configure:2181: checking for $ac_func" >&5
2181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 cat > conftest.
$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2187 /* System header to define __stub macros and hopefully few prototypes,
2188 which can conflict with char $ac_func(); below. */
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2197 /* The GNU C library defines this for functions which it implements
2198 to always fail with ENOSYS. Some functions are actually named
2199 something starting with __ and the normal name is an alias. */
2200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2208 if { (eval echo configure
:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2210 eval "ac_cv_func_$ac_func=yes"
2212 echo "configure: failed program was:" >&5
2213 cat conftest.
$ac_ext >&5
2215 eval "ac_cv_func_$ac_func=no"
2220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2221 echo "$ac_t""yes" 1>&6
2222 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2223 cat >> confdefs.h
<<EOF
2224 #define $ac_tr_func 1
2228 echo "$ac_t""no" 1>&6
2233 if test "${ac_cv_func_stpcpy}" = "yes"; then
2234 cat >> confdefs.h
<<\EOF
2235 #define HAVE_STPCPY 1
2240 if test $ac_cv_header_locale_h = yes; then
2241 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2242 echo "configure:2243: checking for LC_MESSAGES" >&5
2243 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2246 cat > conftest.
$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2254 if { (eval echo configure
:2255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2256 am_cv_val_LC_MESSAGES
=yes
2258 echo "configure: failed program was:" >&5
2259 cat conftest.
$ac_ext >&5
2261 am_cv_val_LC_MESSAGES
=no
2266 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2267 if test $am_cv_val_LC_MESSAGES = yes; then
2268 cat >> confdefs.h
<<\EOF
2269 #define HAVE_LC_MESSAGES 1
2274 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2275 echo "configure:2276: checking whether NLS is requested" >&5
2276 # Check whether --enable-nls or --disable-nls was given.
2277 if test "${enable_nls+set}" = set; then
2278 enableval
="$enable_nls"
2284 echo "$ac_t""$USE_NLS" 1>&6
2287 USE_INCLUDED_LIBINTL
=no
2289 if test "$USE_NLS" = "yes"; then
2290 cat >> confdefs.h
<<\EOF
2291 #define ENABLE_NLS 1
2294 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2295 echo "configure:2296: checking whether included gettext is requested" >&5
2296 # Check whether --with-included-gettext or --without-included-gettext was given.
2297 if test "${with_included_gettext+set}" = set; then
2298 withval
="$with_included_gettext"
2299 nls_cv_force_use_gnu_gettext
=$withval
2301 nls_cv_force_use_gnu_gettext
=no
2304 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2306 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
2307 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2309 nls_cv_header_libgt
=
2312 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2313 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2314 echo "configure:2315: checking for libintl.h" >&5
2315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 cat > conftest.
$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2321 #include <libintl.h>
2323 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2324 { (eval echo configure
:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2325 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2326 if test -z "$ac_err"; then
2328 eval "ac_cv_header_$ac_safe=yes"
2331 echo "configure: failed program was:" >&5
2332 cat conftest.
$ac_ext >&5
2334 eval "ac_cv_header_$ac_safe=no"
2338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2339 echo "$ac_t""yes" 1>&6
2340 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2341 echo "configure:2342: checking for gettext in libc" >&5
2342 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2345 cat > conftest.
$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2348 #include <libintl.h>
2350 return (int) gettext ("")
2353 if { (eval echo configure
:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2355 gt_cv_func_gettext_libc
=yes
2357 echo "configure: failed program was:" >&5
2358 cat conftest.
$ac_ext >&5
2360 gt_cv_func_gettext_libc
=no
2365 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2367 if test "$gt_cv_func_gettext_libc" != "yes"; then
2368 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2369 echo "configure:2370: checking for bindtextdomain in -lintl" >&5
2370 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 ac_save_LIBS
="$LIBS"
2376 cat > conftest.
$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382 char bindtextdomain();
2388 if { (eval echo configure
:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2390 eval "ac_cv_lib_$ac_lib_var=yes"
2392 echo "configure: failed program was:" >&5
2393 cat conftest.
$ac_ext >&5
2395 eval "ac_cv_lib_$ac_lib_var=no"
2398 LIBS
="$ac_save_LIBS"
2401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2404 echo "configure:2405: checking for gettext in libintl" >&5
2405 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 cat > conftest.
$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2413 return (int) gettext ("")
2416 if { (eval echo configure
:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2418 gt_cv_func_gettext_libintl
=yes
2420 echo "configure: failed program was:" >&5
2421 cat conftest.
$ac_ext >&5
2423 gt_cv_func_gettext_libintl
=no
2428 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2430 echo "$ac_t""no" 1>&6
2435 if test "$gt_cv_func_gettext_libc" = "yes" \
2436 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
2437 cat >> confdefs.h
<<\EOF
2438 #define HAVE_GETTEXT 1
2441 # Extract the first word of "msgfmt", so it can be a program name with args.
2442 set dummy msgfmt
; ac_word
=$2
2443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2444 echo "configure:2445: checking for $ac_word" >&5
2445 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2450 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2453 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2454 for ac_dir
in $PATH; do
2455 test -z "$ac_dir" && ac_dir
=.
2456 if test -f $ac_dir/$ac_word; then
2457 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2458 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2464 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
2468 MSGFMT
="$ac_cv_path_MSGFMT"
2469 if test -n "$MSGFMT"; then
2470 echo "$ac_t""$MSGFMT" 1>&6
2472 echo "$ac_t""no" 1>&6
2474 if test "$MSGFMT" != "no"; then
2475 for ac_func
in dcgettext
2477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_func" >&5
2479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 cat > conftest.
$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2485 /* System header to define __stub macros and hopefully few prototypes,
2486 which can conflict with char $ac_func(); below. */
2488 /* Override any gcc2 internal prototype to avoid an error. */
2489 /* We use char because int might match the return type of a gcc2
2490 builtin and then its argument prototype would still apply. */
2495 /* The GNU C library defines this for functions which it implements
2496 to always fail with ENOSYS. Some functions are actually named
2497 something starting with __ and the normal name is an alias. */
2498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2506 if { (eval echo configure
:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2508 eval "ac_cv_func_$ac_func=yes"
2510 echo "configure: failed program was:" >&5
2511 cat conftest.
$ac_ext >&5
2513 eval "ac_cv_func_$ac_func=no"
2518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2519 echo "$ac_t""yes" 1>&6
2520 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2521 cat >> confdefs.h
<<EOF
2522 #define $ac_tr_func 1
2526 echo "$ac_t""no" 1>&6
2530 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2531 set dummy gmsgfmt
; ac_word
=$2
2532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2533 echo "configure:2534: checking for $ac_word" >&5
2534 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2539 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2542 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2545 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2547 for ac_dir
in $ac_dummy; do
2548 test -z "$ac_dir" && ac_dir
=.
2549 if test -f $ac_dir/$ac_word; then
2550 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2555 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2559 GMSGFMT
="$ac_cv_path_GMSGFMT"
2560 if test -n "$GMSGFMT"; then
2561 echo "$ac_t""$GMSGFMT" 1>&6
2563 echo "$ac_t""no" 1>&6
2566 # Extract the first word of "xgettext", so it can be a program name with args.
2567 set dummy xgettext
; ac_word
=$2
2568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2569 echo "configure:2570: checking for $ac_word" >&5
2570 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2575 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2578 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2579 for ac_dir
in $PATH; do
2580 test -z "$ac_dir" && ac_dir
=.
2581 if test -f $ac_dir/$ac_word; then
2582 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2583 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2589 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2593 XGETTEXT
="$ac_cv_path_XGETTEXT"
2594 if test -n "$XGETTEXT"; then
2595 echo "$ac_t""$XGETTEXT" 1>&6
2597 echo "$ac_t""no" 1>&6
2600 cat > conftest.
$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2605 extern int _nl_msg_cat_cntr;
2606 return _nl_msg_cat_cntr
2609 if { (eval echo configure
:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2614 echo "configure: failed program was:" >&5
2615 cat conftest.
$ac_ext >&5
2626 echo "$ac_t""no" 1>&6
2631 if test "$CATOBJEXT" = "NONE"; then
2632 nls_cv_use_gnu_gettext
=yes
2636 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2637 INTLOBJS
="\$(GETTOBJS)"
2638 # Extract the first word of "msgfmt", so it can be a program name with args.
2639 set dummy msgfmt
; ac_word
=$2
2640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2641 echo "configure:2642: checking for $ac_word" >&5
2642 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2647 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
2650 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2651 for ac_dir
in $PATH; do
2652 test -z "$ac_dir" && ac_dir
=.
2653 if test -f $ac_dir/$ac_word; then
2654 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2655 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
2661 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
2665 MSGFMT
="$ac_cv_path_MSGFMT"
2666 if test -n "$MSGFMT"; then
2667 echo "$ac_t""$MSGFMT" 1>&6
2669 echo "$ac_t""no" 1>&6
2672 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2673 set dummy gmsgfmt
; ac_word
=$2
2674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2675 echo "configure:2676: checking for $ac_word" >&5
2676 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2681 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
2684 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
2687 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2689 for ac_dir
in $ac_dummy; do
2690 test -z "$ac_dir" && ac_dir
=.
2691 if test -f $ac_dir/$ac_word; then
2692 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
2697 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
2701 GMSGFMT
="$ac_cv_path_GMSGFMT"
2702 if test -n "$GMSGFMT"; then
2703 echo "$ac_t""$GMSGFMT" 1>&6
2705 echo "$ac_t""no" 1>&6
2708 # Extract the first word of "xgettext", so it can be a program name with args.
2709 set dummy xgettext
; ac_word
=$2
2710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_word" >&5
2712 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2717 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
2720 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2721 for ac_dir
in $PATH; do
2722 test -z "$ac_dir" && ac_dir
=.
2723 if test -f $ac_dir/$ac_word; then
2724 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2725 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
2731 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
2735 XGETTEXT
="$ac_cv_path_XGETTEXT"
2736 if test -n "$XGETTEXT"; then
2737 echo "$ac_t""$XGETTEXT" 1>&6
2739 echo "$ac_t""no" 1>&6
2743 USE_INCLUDED_LIBINTL
=yes
2747 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
2749 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
2750 nls_cv_header_intl
=libintl.h
2751 nls_cv_header_libgt
=libgettext.h
2754 if test "$XGETTEXT" != ":"; then
2755 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
2758 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
2763 # We need to process the po/ directory.
2767 nls_cv_header_intl
=libintl.h
2768 nls_cv_header_libgt
=libgettext.h
2771 # If this is used in GNU gettext we have to set USE_NLS to `yes'
2772 # because some of the sources are only built for this goal.
2773 if test "$PACKAGE" = gettext; then
2775 USE_INCLUDED_LIBINTL
=yes
2778 for lang
in $ALL_LINGUAS; do
2779 GMOFILES
="$GMOFILES $lang.gmo"
2780 POFILES
="$POFILES $lang.po"
2796 if test "x$CATOBJEXT" != "x"; then
2797 if test "x$ALL_LINGUAS" = "x"; then
2800 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2801 echo "configure:2802: checking for catalogs to be installed" >&5
2803 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
2804 case "$ALL_LINGUAS" in
2805 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
2808 LINGUAS
=$NEW_LINGUAS
2809 echo "$ac_t""$LINGUAS" 1>&6
2812 if test -n "$LINGUAS"; then
2813 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
2817 if test $ac_cv_header_locale_h = yes; then
2818 INCLUDE_LOCALE_H
="#include <locale.h>"
2821 /* The system does not provide the header <locale.h>. Take care yourself. */"
2825 if test -f $srcdir/po2tbl.
sed.
in; then
2826 if test "$CATOBJEXT" = ".cat"; then
2827 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
2828 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
2829 echo "configure:2830: checking for linux/version.h" >&5
2830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2833 cat > conftest.
$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <linux/version.h>
2838 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2839 { (eval echo configure
:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2840 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2841 if test -z "$ac_err"; then
2843 eval "ac_cv_header_$ac_safe=yes"
2846 echo "configure: failed program was:" >&5
2847 cat conftest.
$ac_ext >&5
2849 eval "ac_cv_header_$ac_safe=no"
2853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2854 echo "$ac_t""yes" 1>&6
2857 echo "$ac_t""no" 1>&6
2862 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
2864 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
2865 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
2868 if test "$PACKAGE" = "gettext"; then
2878 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
2884 if test -f $srcdir/po
/POTFILES.
in; then
2885 test -d po || mkdir po
2886 if test "x$srcdir" != "x."; then
2887 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
2888 posrcprefix
="$srcdir/"
2890 posrcprefix
="../$srcdir/"
2896 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
2897 < $srcdir/po
/POTFILES.
in > po
/POTFILES
2900 cat >> confdefs.h
<<\EOF
2901 #define PACKAGE "gdb"
2905 debugdir
=${libdir}/debug
2907 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
2908 if test "${with_separate_debug_dir+set}" = set; then
2909 withval
="$with_separate_debug_dir"
2910 debugdir
="${withval}"
2915 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
2916 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2917 ac_define_dir
=`eval echo $debugdir`
2918 ac_define_dir
=`eval echo $ac_define_dir`
2919 cat >> confdefs.h
<<EOF
2920 #define DEBUGDIR "$ac_define_dir"
2924 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
2936 subdirs
="doc testsuite"
2940 .
$srcdir/configure.
host
2942 .
$srcdir/configure.tgt
2944 # Fetch the default architecture and default target vector from BFD.
2945 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
2947 # We only want the first architecture, so strip off the others if
2948 # there is more than one.
2949 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
2951 if test "x$targ_archs" != x
; then
2952 cat >> confdefs.h
<<EOF
2953 #define DEFAULT_BFD_ARCH $targ_archs
2957 if test "x$targ_defvec" != x
; then
2958 cat >> confdefs.h
<<EOF
2959 #define DEFAULT_BFD_VEC $targ_defvec
2964 if test "$program_transform_name" = s
,x
,x
,; then
2965 program_transform_name
=
2967 # Double any \ or $. echo might interpret backslashes.
2968 cat <<\EOF_SED
> conftestsed
2969 s
,\\,\\\\,g
; s
,\$
,$$
,g
2971 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2974 test "$program_prefix" != NONE
&&
2975 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2976 # Use a double $ so make ignores it.
2977 test "$program_suffix" != NONE
&&
2978 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2980 # sed with no file args requires a program.
2981 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2984 # The CLI cannot be disabled yet, but may be in the future.
2987 # Check whether --enable-gdbcli or --disable-gdbcli was given.
2988 if test "${enable_gdbcli+set}" = set; then
2989 enableval
="$enable_gdbcli"
2994 { echo "configure: error: the command-line interface cannot be disabled yet" 1>&2; exit 1; } ;;
2996 { echo "configure: error: bad value $enableval for --enable-gdbcli" 1>&2; exit 1; } ;;
3002 if test x
"$enable_gdbcli" = xyes
; then
3003 if test -d $srcdir/cli
; then
3004 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3005 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3006 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3007 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3008 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_CLI_ALL)"
3009 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_CLI_CLEAN)"
3010 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_CLI_INSTALL)"
3011 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_CLI_UNINSTALL)"
3016 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3017 if test "${enable_gdbmi+set}" = set; then
3018 enableval
="$enable_gdbmi"
3023 { echo "configure: error: bad value $enableval for --enable-gdbmi" 1>&2; exit 1; } ;;
3029 if test x
"$enable_gdbmi" = xyes
; then
3030 if test -d $srcdir/mi
; then
3031 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3032 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3033 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3034 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3035 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_MI_ALL)"
3036 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_MI_CLEAN)"
3037 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_MI_INSTALL)"
3038 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_MI_UNINSTALL)"
3043 # Check whether --enable-tui or --disable-tui was given.
3044 if test "${enable_tui+set}" = set; then
3045 enableval
="$enable_tui"
3050 { echo "configure: error: bad value $enableval for --enable-tui" 1>&2; exit 1; } ;;
3054 if test x
"$enable_tui" = xyes
; then
3055 if test -d $srcdir/tui
; then
3056 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
3057 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
3058 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
3059 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
3060 CONFIG_ALL
="$CONFIG_ALL \$(SUBDIR_TUI_ALL)"
3061 CONFIG_CLEAN
="$CONFIG_CLEAN \$(SUBDIR_TUI_CLEAN)"
3062 CONFIG_INSTALL
="$CONFIG_INSTALL \$(SUBDIR_TUI_INSTALL)"
3063 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL \$(SUBDIR_TUI_UNINSTALL)"
3069 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3070 if test "${enable_gdbtk+set}" = set; then
3071 enableval
="$enable_gdbtk"
3076 { echo "configure: error: bad value $enableval for --enable-gdbtk" 1>&2; exit 1; } ;;
3079 if test -d $srcdir/gdbtk
; then
3086 # We unconditionally disable gdbtk tests on selected platforms.
3089 echo "configure: warning: gdbtk isn't supported on $host; disabling" 1>&2
3093 # Libunwind support.
3094 # Check whether --with-libunwind or --without-libunwind was given.
3095 if test "${with_libunwind+set}" = set; then
3096 withval
="$with_libunwind"
3097 case "${withval}" in
3098 yes) enable_libunwind
=yes ;;
3099 no
) enable_libunwind
=no
;;
3100 *) { echo "configure: error: bad value ${withval} for GDB with-libunwind option" 1>&2; exit 1; } ;;
3104 for ac_hdr
in libunwind.h
3106 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3107 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3108 echo "configure:3109: checking for $ac_hdr" >&5
3109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3110 echo $ac_n "(cached) $ac_c" 1>&6
3112 cat > conftest.
$ac_ext <<EOF
3113 #line 3114 "configure"
3114 #include "confdefs.h"
3117 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3118 { (eval echo configure
:3119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3119 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3120 if test -z "$ac_err"; then
3122 eval "ac_cv_header_$ac_safe=yes"
3125 echo "configure: failed program was:" >&5
3126 cat conftest.
$ac_ext >&5
3128 eval "ac_cv_header_$ac_safe=no"
3132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3133 echo "$ac_t""yes" 1>&6
3134 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3135 cat >> confdefs.h
<<EOF
3136 #define $ac_tr_hdr 1
3140 echo "$ac_t""no" 1>&6
3144 for ac_hdr
in libunwind-ia64.h
3146 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3147 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3148 echo "configure:3149: checking for $ac_hdr" >&5
3149 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3150 echo $ac_n "(cached) $ac_c" 1>&6
3152 cat > conftest.
$ac_ext <<EOF
3153 #line 3154 "configure"
3154 #include "confdefs.h"
3157 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3158 { (eval echo configure
:3159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3159 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3160 if test -z "$ac_err"; then
3162 eval "ac_cv_header_$ac_safe=yes"
3165 echo "configure: failed program was:" >&5
3166 cat conftest.
$ac_ext >&5
3168 eval "ac_cv_header_$ac_safe=no"
3172 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3173 echo "$ac_t""yes" 1>&6
3174 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3175 cat >> confdefs.h
<<EOF
3176 #define $ac_tr_hdr 1
3180 echo "$ac_t""no" 1>&6
3184 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
3185 enable_libunwind
=yes;
3191 if test x
"$enable_libunwind" = xyes
; then
3192 for ac_hdr
in libunwind.h
3194 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3195 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3196 echo "configure:3197: checking for $ac_hdr" >&5
3197 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3200 cat > conftest.
$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3205 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3206 { (eval echo configure
:3207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3207 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3208 if test -z "$ac_err"; then
3210 eval "ac_cv_header_$ac_safe=yes"
3213 echo "configure: failed program was:" >&5
3214 cat conftest.
$ac_ext >&5
3216 eval "ac_cv_header_$ac_safe=no"
3220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3221 echo "$ac_t""yes" 1>&6
3222 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3223 cat >> confdefs.h
<<EOF
3224 #define $ac_tr_hdr 1
3228 echo "$ac_t""no" 1>&6
3232 for ac_hdr
in libunwind-ia64.h
3234 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3236 echo "configure:3237: checking for $ac_hdr" >&5
3237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3238 echo $ac_n "(cached) $ac_c" 1>&6
3240 cat > conftest.
$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3245 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3246 { (eval echo configure
:3247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3247 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3248 if test -z "$ac_err"; then
3250 eval "ac_cv_header_$ac_safe=yes"
3253 echo "configure: failed program was:" >&5
3254 cat conftest.
$ac_ext >&5
3256 eval "ac_cv_header_$ac_safe=no"
3260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3261 echo "$ac_t""yes" 1>&6
3262 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3263 cat >> confdefs.h
<<EOF
3264 #define $ac_tr_hdr 1
3268 echo "$ac_t""no" 1>&6
3272 cat >> confdefs.h
<<\EOF
3273 #define HAVE_LIBUNWIND 1
3276 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
3277 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
3278 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
3281 # Profiling support.
3282 # Check whether --enable-profiling or --disable-profiling was given.
3283 if test "${enable_profiling+set}" = set; then
3284 enableval
="$enable_profiling"
3289 { echo "configure: error: bad value $enableval for --enable-profile" 1>&2; exit 1; } ;;
3296 for ac_func
in monstartup _mcleanup
3298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3299 echo "configure:3300: checking for $ac_func" >&5
3300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3303 cat > conftest.
$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3306 /* System header to define __stub macros and hopefully few prototypes,
3307 which can conflict with char $ac_func(); below. */
3309 /* Override any gcc2 internal prototype to avoid an error. */
3310 /* We use char because int might match the return type of a gcc2
3311 builtin and then its argument prototype would still apply. */
3316 /* The GNU C library defines this for functions which it implements
3317 to always fail with ENOSYS. Some functions are actually named
3318 something starting with __ and the normal name is an alias. */
3319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3327 if { (eval echo configure
:3328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3329 eval "ac_cv_func_$ac_func=yes"
3331 echo "configure: failed program was:" >&5
3332 cat conftest.
$ac_ext >&5
3334 eval "ac_cv_func_$ac_func=no"
3339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3340 echo "$ac_t""yes" 1>&6
3341 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3342 cat >> confdefs.h
<<EOF
3343 #define $ac_tr_func 1
3347 echo "$ac_t""no" 1>&6
3351 echo $ac_n "checking for _etext""... $ac_c" 1>&6
3352 echo "configure:3353: checking for _etext" >&5
3353 if eval "test \"`echo '$''{'ac_cv_var__etext'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 cat > conftest.
$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3366 if { (eval echo configure
:3367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3368 ac_cv_var__etext
=yes
3370 echo "configure: failed program was:" >&5
3371 cat conftest.
$ac_ext >&5
3378 echo "$ac_t""$ac_cv_var__etext" 1>&6
3379 if test $ac_cv_var__etext = yes; then
3380 cat >> confdefs.h
<<\EOF
3381 #define HAVE__ETEXT 1
3385 if test "$enable_profiling" = yes ; then
3386 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
3387 { echo "configure: error: --enable-profiling requires monstartup and _mcleanup" 1>&2; exit 1; }
3390 OLD_CFLAGS
="$CFLAGS"
3391 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
3393 echo $ac_n "checking whether $CC supports -pg""... $ac_c" 1>&6
3394 echo "configure:3395: checking whether $CC supports -pg" >&5
3395 if eval "test \"`echo '$''{'ac_cv_cc_supports_pg'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3398 cat > conftest.
$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3406 if { (eval echo configure
:3407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3408 ac_cv_cc_supports_pg
=yes
3410 echo "configure: failed program was:" >&5
3411 cat conftest.
$ac_ext >&5
3413 ac_cv_cc_supports_pg
=no
3418 echo "$ac_t""$ac_cv_cc_supports_pg" 1>&6
3420 if test $ac_cv_cc_supports_pg = no
; then
3421 { echo "configure: error: --enable-profiling requires a compiler which supports -pg" 1>&2; exit 1; }
3424 CFLAGS
="$OLD_CFLAGS"
3427 # --------------------- #
3428 # Checks for programs. #
3429 # --------------------- #
3431 for ac_prog
in mawk gawk nawk
awk
3433 # Extract the first word of "$ac_prog", so it can be a program name with args.
3434 set dummy
$ac_prog; ac_word
=$2
3435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3436 echo "configure:3437: checking for $ac_word" >&5
3437 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3440 if test -n "$AWK"; then
3441 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3443 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3445 for ac_dir
in $ac_dummy; do
3446 test -z "$ac_dir" && ac_dir
=.
3447 if test -f $ac_dir/$ac_word; then
3448 ac_cv_prog_AWK
="$ac_prog"
3455 AWK
="$ac_cv_prog_AWK"
3456 if test -n "$AWK"; then
3457 echo "$ac_t""$AWK" 1>&6
3459 echo "$ac_t""no" 1>&6
3462 test -n "$AWK" && break
3465 # Find a good install program. We prefer a C program (faster),
3466 # so one script is as good as another. But avoid the broken or
3467 # incompatible versions:
3468 # SysV /etc/install, /usr/sbin/install
3469 # SunOS /usr/etc/install
3470 # IRIX /sbin/install
3472 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3473 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3474 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3475 # ./install, which can be erroneously created by make from ./install.sh.
3476 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3477 echo "configure:3478: checking for a BSD compatible install" >&5
3478 if test -z "$INSTALL"; then
3479 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3482 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
3483 for ac_dir
in $PATH; do
3484 # Account for people who put trailing slashes in PATH elements.
3486 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
3488 # OSF1 and SCO ODT 3.0 have their own names for install.
3489 # Don't use installbsd from OSF since it installs stuff as root
3491 for ac_prog
in ginstall scoinst
install; do
3492 if test -f $ac_dir/$ac_prog; then
3493 if test $ac_prog = install &&
3494 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
3495 # AIX install. It has an incompatible calling convention.
3498 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3509 if test "${ac_cv_path_install+set}" = set; then
3510 INSTALL
="$ac_cv_path_install"
3512 # As a last resort, use the slow shell script. We don't cache a
3513 # path for INSTALL within a source directory, because that will
3514 # break other packages using the cache if that directory is
3515 # removed, or if the path is relative.
3516 INSTALL
="$ac_install_sh"
3519 echo "$ac_t""$INSTALL" 1>&6
3521 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3522 # It thinks the first close brace ends the variable substitution.
3523 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3525 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3527 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3529 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3530 echo "configure:3531: checking whether ln -s works" >&5
3531 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3535 if ln -s X conftestdata
2>/dev
/null
3538 ac_cv_prog_LN_S
="ln -s"
3543 LN_S
="$ac_cv_prog_LN_S"
3544 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3545 echo "$ac_t""yes" 1>&6
3547 echo "$ac_t""no" 1>&6
3550 # Extract the first word of "ranlib", so it can be a program name with args.
3551 set dummy ranlib
; ac_word
=$2
3552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3553 echo "configure:3554: checking for $ac_word" >&5
3554 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3557 if test -n "$RANLIB"; then
3558 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3560 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3562 for ac_dir
in $ac_dummy; do
3563 test -z "$ac_dir" && ac_dir
=.
3564 if test -f $ac_dir/$ac_word; then
3565 ac_cv_prog_RANLIB
="ranlib"
3570 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3573 RANLIB
="$ac_cv_prog_RANLIB"
3574 if test -n "$RANLIB"; then
3575 echo "$ac_t""$RANLIB" 1>&6
3577 echo "$ac_t""no" 1>&6
3580 for ac_prog
in 'bison -y' byacc
3582 # Extract the first word of "$ac_prog", so it can be a program name with args.
3583 set dummy
$ac_prog; ac_word
=$2
3584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3585 echo "configure:3586: checking for $ac_word" >&5
3586 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3587 echo $ac_n "(cached) $ac_c" 1>&6
3589 if test -n "$YACC"; then
3590 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3592 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3594 for ac_dir
in $ac_dummy; do
3595 test -z "$ac_dir" && ac_dir
=.
3596 if test -f $ac_dir/$ac_word; then
3597 ac_cv_prog_YACC
="$ac_prog"
3604 YACC
="$ac_cv_prog_YACC"
3605 if test -n "$YACC"; then
3606 echo "$ac_t""$YACC" 1>&6
3608 echo "$ac_t""no" 1>&6
3611 test -n "$YACC" && break
3613 test -n "$YACC" || YACC
="yacc"
3616 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3617 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3619 echo "configure:3620: checking for $ac_word" >&5
3620 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3623 if test -n "$AR"; then
3624 ac_cv_prog_AR
="$AR" # Let the user override the test.
3626 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3628 for ac_dir
in $ac_dummy; do
3629 test -z "$ac_dir" && ac_dir
=.
3630 if test -f $ac_dir/$ac_word; then
3631 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3636 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
3640 if test -n "$AR"; then
3641 echo "$ac_t""$AR" 1>&6
3643 echo "$ac_t""no" 1>&6
3648 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3649 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3651 echo "configure:3652: checking for $ac_word" >&5
3652 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 if test -n "$DLLTOOL"; then
3656 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3658 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3660 for ac_dir
in $ac_dummy; do
3661 test -z "$ac_dir" && ac_dir
=.
3662 if test -f $ac_dir/$ac_word; then
3663 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3668 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="dlltool"
3671 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3672 if test -n "$DLLTOOL"; then
3673 echo "$ac_t""$DLLTOOL" 1>&6
3675 echo "$ac_t""no" 1>&6
3680 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3681 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
3682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3683 echo "configure:3684: checking for $ac_word" >&5
3684 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 if test -n "$WINDRES"; then
3688 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
3690 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3692 for ac_dir
in $ac_dummy; do
3693 test -z "$ac_dir" && ac_dir
=.
3694 if test -f $ac_dir/$ac_word; then
3695 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
3700 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES
="windres"
3703 WINDRES
="$ac_cv_prog_WINDRES"
3704 if test -n "$WINDRES"; then
3705 echo "$ac_t""$WINDRES" 1>&6
3707 echo "$ac_t""no" 1>&6
3713 # Needed for GNU/Hurd.
3714 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
3715 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
3716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3717 echo "configure:3718: checking for $ac_word" >&5
3718 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
3719 echo $ac_n "(cached) $ac_c" 1>&6
3721 if test -n "$MIG"; then
3722 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
3724 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3726 for ac_dir
in $ac_dummy; do
3727 test -z "$ac_dir" && ac_dir
=.
3728 if test -f $ac_dir/$ac_word; then
3729 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
3734 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
3737 MIG
="$ac_cv_prog_MIG"
3738 if test -n "$MIG"; then
3739 echo "$ac_t""$MIG" 1>&6
3741 echo "$ac_t""no" 1>&6
3747 # ---------------------- #
3748 # Checks for libraries. #
3749 # ---------------------- #
3751 # We might need to link with -lm; most simulators need it.
3752 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3753 echo "configure:3754: checking for main in -lm" >&5
3754 ac_lib_var
=`echo m'_'main | sed 'y%./+-%__p_%'`
3755 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3758 ac_save_LIBS
="$LIBS"
3760 cat > conftest.
$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3768 if { (eval echo configure
:3769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3770 eval "ac_cv_lib_$ac_lib_var=yes"
3772 echo "configure: failed program was:" >&5
3773 cat conftest.
$ac_ext >&5
3775 eval "ac_cv_lib_$ac_lib_var=no"
3778 LIBS
="$ac_save_LIBS"
3781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3782 echo "$ac_t""yes" 1>&6
3783 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3784 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3785 cat >> confdefs.h
<<EOF
3786 #define $ac_tr_lib 1
3792 echo "$ac_t""no" 1>&6
3796 # We need to link with -lw to get `wctype' on Solaris before Solaris
3797 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
3798 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
3799 # is known to have this problem). Therefore we avoid libw if we can.
3800 echo $ac_n "checking for wctype""... $ac_c" 1>&6
3801 echo "configure:3802: checking for wctype" >&5
3802 if eval "test \"`echo '$''{'ac_cv_func_wctype'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3805 cat > conftest.
$ac_ext <<EOF
3806 #line 3807 "configure"
3807 #include "confdefs.h"
3808 /* System header to define __stub macros and hopefully few prototypes,
3809 which can conflict with char wctype(); below. */
3811 /* Override any gcc2 internal prototype to avoid an error. */
3812 /* We use char because int might match the return type of a gcc2
3813 builtin and then its argument prototype would still apply. */
3818 /* The GNU C library defines this for functions which it implements
3819 to always fail with ENOSYS. Some functions are actually named
3820 something starting with __ and the normal name is an alias. */
3821 #if defined (__stub_wctype) || defined (__stub___wctype)
3829 if { (eval echo configure
:3830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3831 eval "ac_cv_func_wctype=yes"
3833 echo "configure: failed program was:" >&5
3834 cat conftest.
$ac_ext >&5
3836 eval "ac_cv_func_wctype=no"
3841 if eval "test \"`echo '$ac_cv_func_'wctype`\" = yes"; then
3842 echo "$ac_t""yes" 1>&6
3845 echo "$ac_t""no" 1>&6
3846 echo $ac_n "checking for wctype in -lw""... $ac_c" 1>&6
3847 echo "configure:3848: checking for wctype in -lw" >&5
3848 ac_lib_var
=`echo w'_'wctype | sed 'y%./+-%__p_%'`
3849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3850 echo $ac_n "(cached) $ac_c" 1>&6
3852 ac_save_LIBS
="$LIBS"
3854 cat > conftest.
$ac_ext <<EOF
3855 #line 3856 "configure"
3856 #include "confdefs.h"
3857 /* Override any gcc2 internal prototype to avoid an error. */
3858 /* We use char because int might match the return type of a gcc2
3859 builtin and then its argument prototype would still apply. */
3866 if { (eval echo configure
:3867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3868 eval "ac_cv_lib_$ac_lib_var=yes"
3870 echo "configure: failed program was:" >&5
3871 cat conftest.
$ac_ext >&5
3873 eval "ac_cv_lib_$ac_lib_var=no"
3876 LIBS
="$ac_save_LIBS"
3879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3880 echo "$ac_t""yes" 1>&6
3881 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3882 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3883 cat >> confdefs.h
<<EOF
3884 #define $ac_tr_lib 1
3890 echo "$ac_t""no" 1>&6
3896 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
3898 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
3899 echo "configure:3900: checking for library containing gethostbyname" >&5
3900 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
3901 echo $ac_n "(cached) $ac_c" 1>&6
3903 ac_func_search_save_LIBS
="$LIBS"
3904 ac_cv_search_gethostbyname
="no"
3905 cat > conftest.
$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3908 /* Override any gcc2 internal prototype to avoid an error. */
3909 /* We use char because int might match the return type of a gcc2
3910 builtin and then its argument prototype would still apply. */
3911 char gethostbyname();
3917 if { (eval echo configure
:3918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3919 ac_cv_search_gethostbyname
="none required"
3921 echo "configure: failed program was:" >&5
3922 cat conftest.
$ac_ext >&5
3925 test "$ac_cv_search_gethostbyname" = "no" && for i
in nsl
; do
3926 LIBS
="-l$i $ac_func_search_save_LIBS"
3927 cat > conftest.
$ac_ext <<EOF
3928 #line 3929 "configure"
3929 #include "confdefs.h"
3930 /* Override any gcc2 internal prototype to avoid an error. */
3931 /* We use char because int might match the return type of a gcc2
3932 builtin and then its argument prototype would still apply. */
3933 char gethostbyname();
3939 if { (eval echo configure
:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3941 ac_cv_search_gethostbyname
="-l$i"
3944 echo "configure: failed program was:" >&5
3945 cat conftest.
$ac_ext >&5
3949 LIBS
="$ac_func_search_save_LIBS"
3952 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
3953 if test "$ac_cv_search_gethostbyname" != "no"; then
3954 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
3960 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
3962 echo $ac_n "checking for library containing socketpair""... $ac_c" 1>&6
3963 echo "configure:3964: checking for library containing socketpair" >&5
3964 if eval "test \"`echo '$''{'ac_cv_search_socketpair'+set}'`\" = set"; then
3965 echo $ac_n "(cached) $ac_c" 1>&6
3967 ac_func_search_save_LIBS
="$LIBS"
3968 ac_cv_search_socketpair
="no"
3969 cat > conftest.
$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3972 /* Override any gcc2 internal prototype to avoid an error. */
3973 /* We use char because int might match the return type of a gcc2
3974 builtin and then its argument prototype would still apply. */
3981 if { (eval echo configure
:3982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3983 ac_cv_search_socketpair
="none required"
3985 echo "configure: failed program was:" >&5
3986 cat conftest.
$ac_ext >&5
3989 test "$ac_cv_search_socketpair" = "no" && for i
in socket
; do
3990 LIBS
="-l$i $ac_func_search_save_LIBS"
3991 cat > conftest.
$ac_ext <<EOF
3992 #line 3993 "configure"
3993 #include "confdefs.h"
3994 /* Override any gcc2 internal prototype to avoid an error. */
3995 /* We use char because int might match the return type of a gcc2
3996 builtin and then its argument prototype would still apply. */
4003 if { (eval echo configure
:4004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4005 ac_cv_search_socketpair
="-l$i"
4008 echo "configure: failed program was:" >&5
4009 cat conftest.
$ac_ext >&5
4013 LIBS
="$ac_func_search_save_LIBS"
4016 echo "$ac_t""$ac_cv_search_socketpair" 1>&6
4017 if test "$ac_cv_search_socketpair" != "no"; then
4018 test "$ac_cv_search_socketpair" = "none required" || LIBS
="$ac_cv_search_socketpair $LIBS"
4024 # Since GDB uses Readline, we need termcap functionality, so we need
4025 # to find a library that provides that. When GDB is configured with
4026 # --enable-tui, we need full curses functionality.
4028 # FIXME: kettenis/20030102: We seem to prefer HP curses (Hcurses) over
4029 # Xcurses on HP-UX; see the `-D__HP_CURSES' in the relevant host
4030 # Makefile fragments. That's why we need to have `Hcurses' before
4031 # `curses'. I don't see why we should use HP curses if a more
4032 # standard curses is available, except that according to HP's
4033 # documentation one needs to compile `-D_XOPEN_SOURCE_EXTENDED' on
4034 # HP-UX 10.10 and 10.20.
4036 if test "$need_curses" = yes; then
4038 echo $ac_n "checking for library containing initscr""... $ac_c" 1>&6
4039 echo "configure:4040: checking for library containing initscr" >&5
4040 if eval "test \"`echo '$''{'ac_cv_search_initscr'+set}'`\" = set"; then
4041 echo $ac_n "(cached) $ac_c" 1>&6
4043 ac_func_search_save_LIBS
="$LIBS"
4044 ac_cv_search_initscr
="no"
4045 cat > conftest.
$ac_ext <<EOF
4046 #line 4047 "configure"
4047 #include "confdefs.h"
4048 /* Override any gcc2 internal prototype to avoid an error. */
4049 /* We use char because int might match the return type of a gcc2
4050 builtin and then its argument prototype would still apply. */
4057 if { (eval echo configure
:4058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4059 ac_cv_search_initscr
="none required"
4061 echo "configure: failed program was:" >&5
4062 cat conftest.
$ac_ext >&5
4065 test "$ac_cv_search_initscr" = "no" && for i
in ncurses Hcurses curses
; do
4066 LIBS
="-l$i $ac_func_search_save_LIBS"
4067 cat > conftest.
$ac_ext <<EOF
4068 #line 4069 "configure"
4069 #include "confdefs.h"
4070 /* Override any gcc2 internal prototype to avoid an error. */
4071 /* We use char because int might match the return type of a gcc2
4072 builtin and then its argument prototype would still apply. */
4079 if { (eval echo configure
:4080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4081 ac_cv_search_initscr
="-l$i"
4084 echo "configure: failed program was:" >&5
4085 cat conftest.
$ac_ext >&5
4089 LIBS
="$ac_func_search_save_LIBS"
4092 echo "$ac_t""$ac_cv_search_initscr" 1>&6
4093 if test "$ac_cv_search_initscr" != "no"; then
4094 test "$ac_cv_search_initscr" = "none required" || LIBS
="$ac_cv_search_initscr $LIBS"
4097 { echo "configure: error: no curses library found" 1>&2; exit 1; }
4103 if test -d $srcdir/libtermcap
; then
4104 LIBS
="../libtermcap/libtermcap.a $LIBS"
4105 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
4108 ac_cv_search_tgetent
="none required"
4111 # Readline prefers curses over termcap on AIX.
4114 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4115 echo "configure:4116: checking for library containing tgetent" >&5
4116 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
4117 echo $ac_n "(cached) $ac_c" 1>&6
4119 ac_func_search_save_LIBS
="$LIBS"
4120 ac_cv_search_tgetent
="no"
4121 cat > conftest.
$ac_ext <<EOF
4122 #line 4123 "configure"
4123 #include "confdefs.h"
4124 /* Override any gcc2 internal prototype to avoid an error. */
4125 /* We use char because int might match the return type of a gcc2
4126 builtin and then its argument prototype would still apply. */
4133 if { (eval echo configure
:4134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4135 ac_cv_search_tgetent
="none required"
4137 echo "configure: failed program was:" >&5
4138 cat conftest.
$ac_ext >&5
4141 test "$ac_cv_search_tgetent" = "no" && for i
in tinfo ncurses curses termcap
; do
4142 LIBS
="-l$i $ac_func_search_save_LIBS"
4143 cat > conftest.
$ac_ext <<EOF
4144 #line 4145 "configure"
4145 #include "confdefs.h"
4146 /* Override any gcc2 internal prototype to avoid an error. */
4147 /* We use char because int might match the return type of a gcc2
4148 builtin and then its argument prototype would still apply. */
4155 if { (eval echo configure
:4156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4157 ac_cv_search_tgetent
="-l$i"
4160 echo "configure: failed program was:" >&5
4161 cat conftest.
$ac_ext >&5
4165 LIBS
="$ac_func_search_save_LIBS"
4168 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
4169 if test "$ac_cv_search_tgetent" != "no"; then
4170 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
4178 # Note: We used to check for libtermlib and libterminfo too, but
4179 # Readline doesn't, so I think we're safe with leaving them out.
4181 echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
4182 echo "configure:4183: checking for library containing tgetent" >&5
4183 if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4186 ac_func_search_save_LIBS
="$LIBS"
4187 ac_cv_search_tgetent
="no"
4188 cat > conftest.
$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4191 /* Override any gcc2 internal prototype to avoid an error. */
4192 /* We use char because int might match the return type of a gcc2
4193 builtin and then its argument prototype would still apply. */
4200 if { (eval echo configure
:4201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4202 ac_cv_search_tgetent
="none required"
4204 echo "configure: failed program was:" >&5
4205 cat conftest.
$ac_ext >&5
4208 test "$ac_cv_search_tgetent" = "no" && for i
in termcap tinfo ncurses Hcurses curses
; do
4209 LIBS
="-l$i $ac_func_search_save_LIBS"
4210 cat > conftest.
$ac_ext <<EOF
4211 #line 4212 "configure"
4212 #include "confdefs.h"
4213 /* Override any gcc2 internal prototype to avoid an error. */
4214 /* We use char because int might match the return type of a gcc2
4215 builtin and then its argument prototype would still apply. */
4222 if { (eval echo configure
:4223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4224 ac_cv_search_tgetent
="-l$i"
4227 echo "configure: failed program was:" >&5
4228 cat conftest.
$ac_ext >&5
4232 LIBS
="$ac_func_search_save_LIBS"
4235 echo "$ac_t""$ac_cv_search_tgetent" 1>&6
4236 if test "$ac_cv_search_tgetent" != "no"; then
4237 test "$ac_cv_search_tgetent" = "none required" || LIBS
="$ac_cv_search_tgetent $LIBS"
4243 if test "$ac_cv_search_tgetent" = no
; then
4244 { echo "configure: error: no termcap library found" 1>&2; exit 1; }
4247 # ------------------------- #
4248 # Checks for header files. #
4249 # ------------------------- #
4252 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4254 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4255 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4256 echo "configure:4257: checking for $ac_hdr that defines DIR" >&5
4257 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4260 cat > conftest.
$ac_ext <<EOF
4261 #line 4262 "configure"
4262 #include "confdefs.h"
4263 #include <sys/types.h>
4269 if { (eval echo configure
:4270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4271 eval "ac_cv_header_dirent_$ac_safe=yes"
4273 echo "configure: failed program was:" >&5
4274 cat conftest.
$ac_ext >&5
4276 eval "ac_cv_header_dirent_$ac_safe=no"
4280 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4281 echo "$ac_t""yes" 1>&6
4282 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4283 cat >> confdefs.h
<<EOF
4284 #define $ac_tr_hdr 1
4286 ac_header_dirent
=$ac_hdr; break
4288 echo "$ac_t""no" 1>&6
4291 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4292 if test $ac_header_dirent = dirent.h
; then
4293 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4294 echo "configure:4295: checking for opendir in -ldir" >&5
4295 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4297 echo $ac_n "(cached) $ac_c" 1>&6
4299 ac_save_LIBS
="$LIBS"
4301 cat > conftest.
$ac_ext <<EOF
4302 #line 4303 "configure"
4303 #include "confdefs.h"
4304 /* Override any gcc2 internal prototype to avoid an error. */
4305 /* We use char because int might match the return type of a gcc2
4306 builtin and then its argument prototype would still apply. */
4313 if { (eval echo configure
:4314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4315 eval "ac_cv_lib_$ac_lib_var=yes"
4317 echo "configure: failed program was:" >&5
4318 cat conftest.
$ac_ext >&5
4320 eval "ac_cv_lib_$ac_lib_var=no"
4323 LIBS
="$ac_save_LIBS"
4326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4327 echo "$ac_t""yes" 1>&6
4330 echo "$ac_t""no" 1>&6
4334 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4335 echo "configure:4336: checking for opendir in -lx" >&5
4336 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4337 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4338 echo $ac_n "(cached) $ac_c" 1>&6
4340 ac_save_LIBS
="$LIBS"
4342 cat > conftest.
$ac_ext <<EOF
4343 #line 4344 "configure"
4344 #include "confdefs.h"
4345 /* Override any gcc2 internal prototype to avoid an error. */
4346 /* We use char because int might match the return type of a gcc2
4347 builtin and then its argument prototype would still apply. */
4354 if { (eval echo configure
:4355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4356 eval "ac_cv_lib_$ac_lib_var=yes"
4358 echo "configure: failed program was:" >&5
4359 cat conftest.
$ac_ext >&5
4361 eval "ac_cv_lib_$ac_lib_var=no"
4364 LIBS
="$ac_save_LIBS"
4367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4368 echo "$ac_t""yes" 1>&6
4371 echo "$ac_t""no" 1>&6
4376 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4377 echo "configure:4378: checking whether stat file-mode macros are broken" >&5
4378 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4381 cat > conftest.
$ac_ext <<EOF
4382 #line 4383 "configure"
4383 #include "confdefs.h"
4384 #include <sys/types.h>
4385 #include <sys/stat.h>
4387 #if defined(S_ISBLK) && defined(S_IFDIR)
4388 # if S_ISBLK (S_IFDIR)
4393 #if defined(S_ISBLK) && defined(S_IFCHR)
4394 # if S_ISBLK (S_IFCHR)
4399 #if defined(S_ISLNK) && defined(S_IFREG)
4400 # if S_ISLNK (S_IFREG)
4405 #if defined(S_ISSOCK) && defined(S_IFREG)
4406 # if S_ISSOCK (S_IFREG)
4412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4413 egrep "You lose" >/dev
/null
2>&1; then
4415 ac_cv_header_stat_broken
=yes
4418 ac_cv_header_stat_broken
=no
4424 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4425 if test $ac_cv_header_stat_broken = yes; then
4426 cat >> confdefs.h
<<\EOF
4427 #define STAT_MACROS_BROKEN 1
4432 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4433 echo "configure:4434: checking for ANSI C header files" >&5
4434 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4437 cat > conftest.
$ac_ext <<EOF
4438 #line 4439 "configure"
4439 #include "confdefs.h"
4445 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4446 { (eval echo configure
:4447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4447 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4448 if test -z "$ac_err"; then
4450 ac_cv_header_stdc
=yes
4453 echo "configure: failed program was:" >&5
4454 cat conftest.
$ac_ext >&5
4456 ac_cv_header_stdc
=no
4460 if test $ac_cv_header_stdc = yes; then
4461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4462 cat > conftest.
$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4468 egrep "memchr" >/dev
/null
2>&1; then
4472 ac_cv_header_stdc
=no
4478 if test $ac_cv_header_stdc = yes; then
4479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4480 cat > conftest.
$ac_ext <<EOF
4481 #line 4482 "configure"
4482 #include "confdefs.h"
4485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486 egrep "free" >/dev
/null
2>&1; then
4490 ac_cv_header_stdc
=no
4496 if test $ac_cv_header_stdc = yes; then
4497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4498 if test "$cross_compiling" = yes; then
4501 cat > conftest.
$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4505 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4506 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4507 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4508 int main () { int i; for (i = 0; i < 256; i++)
4509 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4513 if { (eval echo configure
:4514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4517 echo "configure: failed program was:" >&5
4518 cat conftest.
$ac_ext >&5
4520 ac_cv_header_stdc
=no
4528 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4529 if test $ac_cv_header_stdc = yes; then
4530 cat >> confdefs.h
<<\EOF
4531 #define STDC_HEADERS 1
4536 for ac_hdr
in link.h
4538 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4540 echo "configure:4541: checking for $ac_hdr" >&5
4541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4542 echo $ac_n "(cached) $ac_c" 1>&6
4544 cat > conftest.
$ac_ext <<EOF
4545 #line 4546 "configure"
4546 #include "confdefs.h"
4549 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4550 { (eval echo configure
:4551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4551 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4552 if test -z "$ac_err"; then
4554 eval "ac_cv_header_$ac_safe=yes"
4557 echo "configure: failed program was:" >&5
4558 cat conftest.
$ac_ext >&5
4560 eval "ac_cv_header_$ac_safe=no"
4564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4565 echo "$ac_t""yes" 1>&6
4566 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4567 cat >> confdefs.h
<<EOF
4568 #define $ac_tr_hdr 1
4572 echo "$ac_t""no" 1>&6
4576 for ac_hdr
in machine
/reg.h
4578 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4580 echo "configure:4581: checking for $ac_hdr" >&5
4581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4582 echo $ac_n "(cached) $ac_c" 1>&6
4584 cat > conftest.
$ac_ext <<EOF
4585 #line 4586 "configure"
4586 #include "confdefs.h"
4589 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4590 { (eval echo configure
:4591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4591 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4592 if test -z "$ac_err"; then
4594 eval "ac_cv_header_$ac_safe=yes"
4597 echo "configure: failed program was:" >&5
4598 cat conftest.
$ac_ext >&5
4600 eval "ac_cv_header_$ac_safe=no"
4604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4605 echo "$ac_t""yes" 1>&6
4606 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4607 cat >> confdefs.h
<<EOF
4608 #define $ac_tr_hdr 1
4612 echo "$ac_t""no" 1>&6
4616 for ac_hdr
in nlist.h
4618 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4620 echo "configure:4621: checking for $ac_hdr" >&5
4621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4624 cat > conftest.
$ac_ext <<EOF
4625 #line 4626 "configure"
4626 #include "confdefs.h"
4629 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4630 { (eval echo configure
:4631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4631 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4632 if test -z "$ac_err"; then
4634 eval "ac_cv_header_$ac_safe=yes"
4637 echo "configure: failed program was:" >&5
4638 cat conftest.
$ac_ext >&5
4640 eval "ac_cv_header_$ac_safe=no"
4644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4645 echo "$ac_t""yes" 1>&6
4646 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4647 cat >> confdefs.h
<<EOF
4648 #define $ac_tr_hdr 1
4652 echo "$ac_t""no" 1>&6
4656 for ac_hdr
in poll.h sys
/poll.h
4658 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4660 echo "configure:4661: checking for $ac_hdr" >&5
4661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4662 echo $ac_n "(cached) $ac_c" 1>&6
4664 cat > conftest.
$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4669 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4670 { (eval echo configure
:4671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4671 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4672 if test -z "$ac_err"; then
4674 eval "ac_cv_header_$ac_safe=yes"
4677 echo "configure: failed program was:" >&5
4678 cat conftest.
$ac_ext >&5
4680 eval "ac_cv_header_$ac_safe=no"
4684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4685 echo "$ac_t""yes" 1>&6
4686 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4687 cat >> confdefs.h
<<EOF
4688 #define $ac_tr_hdr 1
4692 echo "$ac_t""no" 1>&6
4696 for ac_hdr
in proc_service.h thread_db.h
4698 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4700 echo "configure:4701: checking for $ac_hdr" >&5
4701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4702 echo $ac_n "(cached) $ac_c" 1>&6
4704 cat > conftest.
$ac_ext <<EOF
4705 #line 4706 "configure"
4706 #include "confdefs.h"
4709 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4710 { (eval echo configure
:4711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4711 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4712 if test -z "$ac_err"; then
4714 eval "ac_cv_header_$ac_safe=yes"
4717 echo "configure: failed program was:" >&5
4718 cat conftest.
$ac_ext >&5
4720 eval "ac_cv_header_$ac_safe=no"
4724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4725 echo "$ac_t""yes" 1>&6
4726 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4727 cat >> confdefs.h
<<EOF
4728 #define $ac_tr_hdr 1
4732 echo "$ac_t""no" 1>&6
4736 for ac_hdr
in stddef.h
4738 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4740 echo "configure:4741: checking for $ac_hdr" >&5
4741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4742 echo $ac_n "(cached) $ac_c" 1>&6
4744 cat > conftest.
$ac_ext <<EOF
4745 #line 4746 "configure"
4746 #include "confdefs.h"
4749 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4750 { (eval echo configure
:4751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4751 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4752 if test -z "$ac_err"; then
4754 eval "ac_cv_header_$ac_safe=yes"
4757 echo "configure: failed program was:" >&5
4758 cat conftest.
$ac_ext >&5
4760 eval "ac_cv_header_$ac_safe=no"
4764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4765 echo "$ac_t""yes" 1>&6
4766 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4767 cat >> confdefs.h
<<EOF
4768 #define $ac_tr_hdr 1
4772 echo "$ac_t""no" 1>&6
4776 for ac_hdr
in stdlib.h
4778 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4780 echo "configure:4781: checking for $ac_hdr" >&5
4781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4784 cat > conftest.
$ac_ext <<EOF
4785 #line 4786 "configure"
4786 #include "confdefs.h"
4789 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4790 { (eval echo configure
:4791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4791 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4792 if test -z "$ac_err"; then
4794 eval "ac_cv_header_$ac_safe=yes"
4797 echo "configure: failed program was:" >&5
4798 cat conftest.
$ac_ext >&5
4800 eval "ac_cv_header_$ac_safe=no"
4804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4805 echo "$ac_t""yes" 1>&6
4806 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4807 cat >> confdefs.h
<<EOF
4808 #define $ac_tr_hdr 1
4812 echo "$ac_t""no" 1>&6
4816 for ac_hdr
in stdint.h
4818 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4820 echo "configure:4821: checking for $ac_hdr" >&5
4821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4822 echo $ac_n "(cached) $ac_c" 1>&6
4824 cat > conftest.
$ac_ext <<EOF
4825 #line 4826 "configure"
4826 #include "confdefs.h"
4829 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4830 { (eval echo configure
:4831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4831 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4832 if test -z "$ac_err"; then
4834 eval "ac_cv_header_$ac_safe=yes"
4837 echo "configure: failed program was:" >&5
4838 cat conftest.
$ac_ext >&5
4840 eval "ac_cv_header_$ac_safe=no"
4844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4845 echo "$ac_t""yes" 1>&6
4846 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4847 cat >> confdefs.h
<<EOF
4848 #define $ac_tr_hdr 1
4852 echo "$ac_t""no" 1>&6
4856 for ac_hdr
in string.h memory.h
strings.h
4858 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4860 echo "configure:4861: checking for $ac_hdr" >&5
4861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4862 echo $ac_n "(cached) $ac_c" 1>&6
4864 cat > conftest.
$ac_ext <<EOF
4865 #line 4866 "configure"
4866 #include "confdefs.h"
4869 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4870 { (eval echo configure
:4871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4871 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4872 if test -z "$ac_err"; then
4874 eval "ac_cv_header_$ac_safe=yes"
4877 echo "configure: failed program was:" >&5
4878 cat conftest.
$ac_ext >&5
4880 eval "ac_cv_header_$ac_safe=no"
4884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4885 echo "$ac_t""yes" 1>&6
4886 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4887 cat >> confdefs.h
<<EOF
4888 #define $ac_tr_hdr 1
4892 echo "$ac_t""no" 1>&6
4896 for ac_hdr
in sys
/fault.h
4898 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4900 echo "configure:4901: checking for $ac_hdr" >&5
4901 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4902 echo $ac_n "(cached) $ac_c" 1>&6
4904 cat > conftest.
$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4909 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4910 { (eval echo configure
:4911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4911 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4912 if test -z "$ac_err"; then
4914 eval "ac_cv_header_$ac_safe=yes"
4917 echo "configure: failed program was:" >&5
4918 cat conftest.
$ac_ext >&5
4920 eval "ac_cv_header_$ac_safe=no"
4924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4925 echo "$ac_t""yes" 1>&6
4926 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4927 cat >> confdefs.h
<<EOF
4928 #define $ac_tr_hdr 1
4932 echo "$ac_t""no" 1>&6
4936 for ac_hdr
in sys
/file.h
4938 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4939 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4940 echo "configure:4941: checking for $ac_hdr" >&5
4941 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4942 echo $ac_n "(cached) $ac_c" 1>&6
4944 cat > conftest.
$ac_ext <<EOF
4945 #line 4946 "configure"
4946 #include "confdefs.h"
4949 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4950 { (eval echo configure
:4951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4951 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4952 if test -z "$ac_err"; then
4954 eval "ac_cv_header_$ac_safe=yes"
4957 echo "configure: failed program was:" >&5
4958 cat conftest.
$ac_ext >&5
4960 eval "ac_cv_header_$ac_safe=no"
4964 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4965 echo "$ac_t""yes" 1>&6
4966 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4967 cat >> confdefs.h
<<EOF
4968 #define $ac_tr_hdr 1
4972 echo "$ac_t""no" 1>&6
4976 for ac_hdr
in sys
/filio.h
4978 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4979 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4980 echo "configure:4981: checking for $ac_hdr" >&5
4981 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6
4984 cat > conftest.
$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4989 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4990 { (eval echo configure
:4991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4991 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4992 if test -z "$ac_err"; then
4994 eval "ac_cv_header_$ac_safe=yes"
4997 echo "configure: failed program was:" >&5
4998 cat conftest.
$ac_ext >&5
5000 eval "ac_cv_header_$ac_safe=no"
5004 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5005 echo "$ac_t""yes" 1>&6
5006 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5007 cat >> confdefs.h
<<EOF
5008 #define $ac_tr_hdr 1
5012 echo "$ac_t""no" 1>&6
5016 for ac_hdr
in sys
/ioctl.h
5018 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5019 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5020 echo "configure:5021: checking for $ac_hdr" >&5
5021 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5022 echo $ac_n "(cached) $ac_c" 1>&6
5024 cat > conftest.
$ac_ext <<EOF
5025 #line 5026 "configure"
5026 #include "confdefs.h"
5029 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5030 { (eval echo configure
:5031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5031 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5032 if test -z "$ac_err"; then
5034 eval "ac_cv_header_$ac_safe=yes"
5037 echo "configure: failed program was:" >&5
5038 cat conftest.
$ac_ext >&5
5040 eval "ac_cv_header_$ac_safe=no"
5044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5045 echo "$ac_t""yes" 1>&6
5046 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5047 cat >> confdefs.h
<<EOF
5048 #define $ac_tr_hdr 1
5052 echo "$ac_t""no" 1>&6
5056 for ac_hdr
in sys
/param.h
5058 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5059 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5060 echo "configure:5061: checking for $ac_hdr" >&5
5061 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5062 echo $ac_n "(cached) $ac_c" 1>&6
5064 cat > conftest.
$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5069 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5070 { (eval echo configure
:5071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5071 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5072 if test -z "$ac_err"; then
5074 eval "ac_cv_header_$ac_safe=yes"
5077 echo "configure: failed program was:" >&5
5078 cat conftest.
$ac_ext >&5
5080 eval "ac_cv_header_$ac_safe=no"
5084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5085 echo "$ac_t""yes" 1>&6
5086 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5087 cat >> confdefs.h
<<EOF
5088 #define $ac_tr_hdr 1
5092 echo "$ac_t""no" 1>&6
5096 for ac_hdr
in sys
/proc.h
5098 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5100 echo "configure:5101: checking for $ac_hdr" >&5
5101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5102 echo $ac_n "(cached) $ac_c" 1>&6
5104 cat > conftest.
$ac_ext <<EOF
5105 #line 5106 "configure"
5106 #include "confdefs.h"
5109 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5110 { (eval echo configure
:5111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5111 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5112 if test -z "$ac_err"; then
5114 eval "ac_cv_header_$ac_safe=yes"
5117 echo "configure: failed program was:" >&5
5118 cat conftest.
$ac_ext >&5
5120 eval "ac_cv_header_$ac_safe=no"
5124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5125 echo "$ac_t""yes" 1>&6
5126 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5127 cat >> confdefs.h
<<EOF
5128 #define $ac_tr_hdr 1
5132 echo "$ac_t""no" 1>&6
5136 for ac_hdr
in sys
/procfs.h
5138 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5139 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5140 echo "configure:5141: checking for $ac_hdr" >&5
5141 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5142 echo $ac_n "(cached) $ac_c" 1>&6
5144 cat > conftest.
$ac_ext <<EOF
5145 #line 5146 "configure"
5146 #include "confdefs.h"
5149 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5150 { (eval echo configure
:5151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5151 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5152 if test -z "$ac_err"; then
5154 eval "ac_cv_header_$ac_safe=yes"
5157 echo "configure: failed program was:" >&5
5158 cat conftest.
$ac_ext >&5
5160 eval "ac_cv_header_$ac_safe=no"
5164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5165 echo "$ac_t""yes" 1>&6
5166 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5167 cat >> confdefs.h
<<EOF
5168 #define $ac_tr_hdr 1
5172 echo "$ac_t""no" 1>&6
5176 for ac_hdr
in sys
/ptrace.h ptrace.h
5178 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5179 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5180 echo "configure:5181: checking for $ac_hdr" >&5
5181 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5182 echo $ac_n "(cached) $ac_c" 1>&6
5184 cat > conftest.
$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5189 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5190 { (eval echo configure
:5191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5191 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5192 if test -z "$ac_err"; then
5194 eval "ac_cv_header_$ac_safe=yes"
5197 echo "configure: failed program was:" >&5
5198 cat conftest.
$ac_ext >&5
5200 eval "ac_cv_header_$ac_safe=no"
5204 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5205 echo "$ac_t""yes" 1>&6
5206 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5207 cat >> confdefs.h
<<EOF
5208 #define $ac_tr_hdr 1
5212 echo "$ac_t""no" 1>&6
5216 for ac_hdr
in sys
/reg.h sys
/debugreg.h
5218 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5220 echo "configure:5221: checking for $ac_hdr" >&5
5221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5222 echo $ac_n "(cached) $ac_c" 1>&6
5224 cat > conftest.
$ac_ext <<EOF
5225 #line 5226 "configure"
5226 #include "confdefs.h"
5229 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5230 { (eval echo configure
:5231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5231 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5232 if test -z "$ac_err"; then
5234 eval "ac_cv_header_$ac_safe=yes"
5237 echo "configure: failed program was:" >&5
5238 cat conftest.
$ac_ext >&5
5240 eval "ac_cv_header_$ac_safe=no"
5244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5245 echo "$ac_t""yes" 1>&6
5246 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5247 cat >> confdefs.h
<<EOF
5248 #define $ac_tr_hdr 1
5252 echo "$ac_t""no" 1>&6
5256 for ac_hdr
in sys
/select.h
5258 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5260 echo "configure:5261: checking for $ac_hdr" >&5
5261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5262 echo $ac_n "(cached) $ac_c" 1>&6
5264 cat > conftest.
$ac_ext <<EOF
5265 #line 5266 "configure"
5266 #include "confdefs.h"
5269 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5270 { (eval echo configure
:5271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5271 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5272 if test -z "$ac_err"; then
5274 eval "ac_cv_header_$ac_safe=yes"
5277 echo "configure: failed program was:" >&5
5278 cat conftest.
$ac_ext >&5
5280 eval "ac_cv_header_$ac_safe=no"
5284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5285 echo "$ac_t""yes" 1>&6
5286 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5287 cat >> confdefs.h
<<EOF
5288 #define $ac_tr_hdr 1
5292 echo "$ac_t""no" 1>&6
5296 for ac_hdr
in sys
/syscall.h
5298 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5300 echo "configure:5301: checking for $ac_hdr" >&5
5301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5302 echo $ac_n "(cached) $ac_c" 1>&6
5304 cat > conftest.
$ac_ext <<EOF
5305 #line 5306 "configure"
5306 #include "confdefs.h"
5309 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5310 { (eval echo configure
:5311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5311 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5312 if test -z "$ac_err"; then
5314 eval "ac_cv_header_$ac_safe=yes"
5317 echo "configure: failed program was:" >&5
5318 cat conftest.
$ac_ext >&5
5320 eval "ac_cv_header_$ac_safe=no"
5324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5325 echo "$ac_t""yes" 1>&6
5326 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5327 cat >> confdefs.h
<<EOF
5328 #define $ac_tr_hdr 1
5332 echo "$ac_t""no" 1>&6
5336 for ac_hdr
in sys
/user.h
5338 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5340 echo "configure:5341: checking for $ac_hdr" >&5
5341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5342 echo $ac_n "(cached) $ac_c" 1>&6
5344 cat > conftest.
$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5349 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5350 { (eval echo configure
:5351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5351 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5352 if test -z "$ac_err"; then
5354 eval "ac_cv_header_$ac_safe=yes"
5357 echo "configure: failed program was:" >&5
5358 cat conftest.
$ac_ext >&5
5360 eval "ac_cv_header_$ac_safe=no"
5364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5365 echo "$ac_t""yes" 1>&6
5366 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5367 cat >> confdefs.h
<<EOF
5368 #define $ac_tr_hdr 1
5372 echo "$ac_t""no" 1>&6
5376 for ac_hdr
in sys
/wait.h
wait.h
5378 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5380 echo "configure:5381: checking for $ac_hdr" >&5
5381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5382 echo $ac_n "(cached) $ac_c" 1>&6
5384 cat > conftest.
$ac_ext <<EOF
5385 #line 5386 "configure"
5386 #include "confdefs.h"
5389 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5390 { (eval echo configure
:5391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5391 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5392 if test -z "$ac_err"; then
5394 eval "ac_cv_header_$ac_safe=yes"
5397 echo "configure: failed program was:" >&5
5398 cat conftest.
$ac_ext >&5
5400 eval "ac_cv_header_$ac_safe=no"
5404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5405 echo "$ac_t""yes" 1>&6
5406 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5407 cat >> confdefs.h
<<EOF
5408 #define $ac_tr_hdr 1
5412 echo "$ac_t""no" 1>&6
5416 for ac_hdr
in termios.h termio.h sgtty.h
5418 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5420 echo "configure:5421: checking for $ac_hdr" >&5
5421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5422 echo $ac_n "(cached) $ac_c" 1>&6
5424 cat > conftest.
$ac_ext <<EOF
5425 #line 5426 "configure"
5426 #include "confdefs.h"
5429 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5430 { (eval echo configure
:5431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5431 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5432 if test -z "$ac_err"; then
5434 eval "ac_cv_header_$ac_safe=yes"
5437 echo "configure: failed program was:" >&5
5438 cat conftest.
$ac_ext >&5
5440 eval "ac_cv_header_$ac_safe=no"
5444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5445 echo "$ac_t""yes" 1>&6
5446 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5447 cat >> confdefs.h
<<EOF
5448 #define $ac_tr_hdr 1
5452 echo "$ac_t""no" 1>&6
5456 for ac_hdr
in unistd.h
5458 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5459 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5460 echo "configure:5461: checking for $ac_hdr" >&5
5461 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5462 echo $ac_n "(cached) $ac_c" 1>&6
5464 cat > conftest.
$ac_ext <<EOF
5465 #line 5466 "configure"
5466 #include "confdefs.h"
5469 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5470 { (eval echo configure
:5471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5471 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5472 if test -z "$ac_err"; then
5474 eval "ac_cv_header_$ac_safe=yes"
5477 echo "configure: failed program was:" >&5
5478 cat conftest.
$ac_ext >&5
5480 eval "ac_cv_header_$ac_safe=no"
5484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5485 echo "$ac_t""yes" 1>&6
5486 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5487 cat >> confdefs.h
<<EOF
5488 #define $ac_tr_hdr 1
5492 echo "$ac_t""no" 1>&6
5497 # On Solaris 2.[78], we need to define _MSE_INT_H to avoid a clash
5498 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
5499 # think that we don't have <curses.h> if we're using GCC.
5502 if test "$GCC" = yes; then
5503 cat >> confdefs.h
<<\EOF
5504 #define _MSE_INT_H 1
5509 for ac_hdr
in curses.h ncurses.h term.h
5511 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5512 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5513 echo "configure:5514: checking for $ac_hdr" >&5
5514 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5515 echo $ac_n "(cached) $ac_c" 1>&6
5517 cat > conftest.
$ac_ext <<EOF
5518 #line 5519 "configure"
5519 #include "confdefs.h"
5522 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5523 { (eval echo configure
:5524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5524 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5525 if test -z "$ac_err"; then
5527 eval "ac_cv_header_$ac_safe=yes"
5530 echo "configure: failed program was:" >&5
5531 cat conftest.
$ac_ext >&5
5533 eval "ac_cv_header_$ac_safe=no"
5537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5538 echo "$ac_t""yes" 1>&6
5539 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5540 cat >> confdefs.h
<<EOF
5541 #define $ac_tr_hdr 1
5545 echo "$ac_t""no" 1>&6
5550 # FIXME: kettenis/20030102: In most cases we include these
5551 # unconditionally, so what's the point in checking these?
5552 for ac_hdr
in ctype.h
time.h
5554 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5556 echo "configure:5557: checking for $ac_hdr" >&5
5557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5558 echo $ac_n "(cached) $ac_c" 1>&6
5560 cat > conftest.
$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5565 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5566 { (eval echo configure
:5567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5567 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5568 if test -z "$ac_err"; then
5570 eval "ac_cv_header_$ac_safe=yes"
5573 echo "configure: failed program was:" >&5
5574 cat conftest.
$ac_ext >&5
5576 eval "ac_cv_header_$ac_safe=no"
5580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5581 echo "$ac_t""yes" 1>&6
5582 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5583 cat >> confdefs.h
<<EOF
5584 #define $ac_tr_hdr 1
5588 echo "$ac_t""no" 1>&6
5593 echo $ac_n "checking for member st_blocks in struct stat""... $ac_c" 1>&6
5594 echo "configure:5595: checking for member st_blocks in struct stat" >&5
5595 if eval "test \"`echo '$''{'gdb_cv_have_struct_stat_with_st_blocks_member'+set}'`\" = set"; then
5596 echo $ac_n "(cached) $ac_c" 1>&6
5598 cat > conftest.
$ac_ext <<EOF
5599 #line 5600 "configure"
5600 #include "confdefs.h"
5601 #include <sys/types.h>
5602 #include <sys/stat.h>
5604 struct stat st; (void) st.st_blocks;
5607 if { (eval echo configure
:5608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5609 gdb_cv_have_struct_stat_with_st_blocks_member
=yes
5611 echo "configure: failed program was:" >&5
5612 cat conftest.
$ac_ext >&5
5614 gdb_cv_have_struct_stat_with_st_blocks_member
=no
5619 echo "$ac_t""$gdb_cv_have_struct_stat_with_st_blocks_member" 1>&6
5620 if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then
5621 cat >> confdefs.h
<<\EOF
5622 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5626 # ------------------------- #
5627 # Checks for declarations. #
5628 # ------------------------- #
5630 for ac_func
in getopt
5632 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5633 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
5634 echo "configure:5635: checking whether $ac_func is declared" >&5
5635 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
5636 echo $ac_n "(cached) $ac_c" 1>&6
5638 cat > conftest.
$ac_ext <<EOF
5639 #line 5640 "configure"
5640 #include "confdefs.h"
5642 #define $ac_tr_decl 1
5647 char *(*pfn) = (char *(*)) $ac_func ;
5651 if { (eval echo configure
:5652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5653 eval "gcc_cv_have_decl_$ac_func=yes"
5655 echo "configure: failed program was:" >&5
5656 cat conftest.
$ac_ext >&5
5658 eval "gcc_cv_have_decl_$ac_func=no"
5663 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
5664 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
5665 #define $ac_tr_decl 1
5669 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
5670 #define $ac_tr_decl 0
5676 if test x
= y
; then
5677 cat >> confdefs.h
<<\EOF
5678 #define HAVE_DECL_GETOPT 1
5683 # ------------------ #
5684 # Checks for types. #
5685 # ------------------ #
5687 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5688 echo "configure:5689: checking return type of signal handlers" >&5
5689 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5690 echo $ac_n "(cached) $ac_c" 1>&6
5692 cat > conftest.
$ac_ext <<EOF
5693 #line 5694 "configure"
5694 #include "confdefs.h"
5695 #include <sys/types.h>
5701 extern "C" void (*signal (int, void (*)(int)))(int);
5703 void (*signal ()) ();
5710 if { (eval echo configure
:5711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5712 ac_cv_type_signal
=void
5714 echo "configure: failed program was:" >&5
5715 cat conftest.
$ac_ext >&5
5717 ac_cv_type_signal
=int
5722 echo "$ac_t""$ac_cv_type_signal" 1>&6
5723 cat >> confdefs.h
<<EOF
5724 #define RETSIGTYPE $ac_cv_type_signal
5729 # ------------------------------------- #
5730 # Checks for compiler characteristics. #
5731 # ------------------------------------- #
5733 echo $ac_n "checking for working const""... $ac_c" 1>&6
5734 echo "configure:5735: checking for working const" >&5
5735 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5736 echo $ac_n "(cached) $ac_c" 1>&6
5738 cat > conftest.
$ac_ext <<EOF
5739 #line 5740 "configure"
5740 #include "confdefs.h"
5744 /* Ultrix mips cc rejects this. */
5745 typedef int charset[2]; const charset x;
5746 /* SunOS 4.1.1 cc rejects this. */
5747 char const *const *ccp;
5749 /* NEC SVR4.0.2 mips cc rejects this. */
5750 struct point {int x, y;};
5751 static struct point const zero = {0,0};
5752 /* AIX XL C 1.02.0.0 rejects this.
5753 It does not let you subtract one const X* pointer from another in an arm
5754 of an if-expression whose if-part is not a constant expression */
5755 const char *g = "string";
5756 ccp = &g + (g ? g-g : 0);
5757 /* HPUX 7.0 cc rejects these. */
5760 ccp = (char const *const *) p;
5761 { /* SCO 3.2v4 cc rejects this. */
5763 char const *s = 0 ? (char *) 0 : (char const *) 0;
5767 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5769 const int *foo = &x[0];
5772 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5773 typedef const int *iptr;
5777 { /* AIX XL C 1.02.0.0 rejects this saying
5778 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5779 struct s { int j; const int *ap[3]; };
5780 struct s *b; b->j = 5;
5782 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5788 if { (eval echo configure
:5789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5792 echo "configure: failed program was:" >&5
5793 cat conftest.
$ac_ext >&5
5800 echo "$ac_t""$ac_cv_c_const" 1>&6
5801 if test $ac_cv_c_const = no
; then
5802 cat >> confdefs.h
<<\EOF
5808 echo $ac_n "checking for inline""... $ac_c" 1>&6
5809 echo "configure:5810: checking for inline" >&5
5810 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5811 echo $ac_n "(cached) $ac_c" 1>&6
5814 for ac_kw
in inline __inline__ __inline
; do
5815 cat > conftest.
$ac_ext <<EOF
5816 #line 5817 "configure"
5817 #include "confdefs.h"
5823 if { (eval echo configure
:5824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5825 ac_cv_c_inline
=$ac_kw; break
5827 echo "configure: failed program was:" >&5
5828 cat conftest.
$ac_ext >&5
5835 echo "$ac_t""$ac_cv_c_inline" 1>&6
5836 case "$ac_cv_c_inline" in
5838 no
) cat >> confdefs.h
<<\EOF
5842 *) cat >> confdefs.h
<<EOF
5843 #define inline $ac_cv_c_inline
5849 # ------------------------------ #
5850 # Checks for library functions. #
5851 # ------------------------------ #
5853 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5854 # for constant arguments. Useless!
5855 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5856 echo "configure:5857: checking for working alloca.h" >&5
5857 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5858 echo $ac_n "(cached) $ac_c" 1>&6
5860 cat > conftest.
$ac_ext <<EOF
5861 #line 5862 "configure"
5862 #include "confdefs.h"
5865 char *p = alloca(2 * sizeof(int));
5868 if { (eval echo configure
:5869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5870 ac_cv_header_alloca_h
=yes
5872 echo "configure: failed program was:" >&5
5873 cat conftest.
$ac_ext >&5
5875 ac_cv_header_alloca_h
=no
5880 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5881 if test $ac_cv_header_alloca_h = yes; then
5882 cat >> confdefs.h
<<\EOF
5883 #define HAVE_ALLOCA_H 1
5888 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5889 echo "configure:5890: checking for alloca" >&5
5890 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5891 echo $ac_n "(cached) $ac_c" 1>&6
5893 cat > conftest.
$ac_ext <<EOF
5894 #line 5895 "configure"
5895 #include "confdefs.h"
5898 # define alloca __builtin_alloca
5901 # include <malloc.h>
5902 # define alloca _alloca
5905 # include <alloca.h>
5910 # ifndef alloca /* predefined by HP cc +Olibcalls */
5919 char *p = (char *) alloca(1);
5922 if { (eval echo configure
:5923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5924 ac_cv_func_alloca_works
=yes
5926 echo "configure: failed program was:" >&5
5927 cat conftest.
$ac_ext >&5
5929 ac_cv_func_alloca_works
=no
5934 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5935 if test $ac_cv_func_alloca_works = yes; then
5936 cat >> confdefs.h
<<\EOF
5937 #define HAVE_ALLOCA 1
5942 if test $ac_cv_func_alloca_works = no
; then
5943 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5944 # that cause trouble. Some versions do not even contain alloca or
5945 # contain a buggy version. If you still want to use their alloca,
5946 # use ar to extract alloca.o from them instead of compiling alloca.c.
5947 ALLOCA
=alloca.
${ac_objext}
5948 cat >> confdefs.h
<<\EOF
5953 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5954 echo "configure:5955: checking whether alloca needs Cray hooks" >&5
5955 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5956 echo $ac_n "(cached) $ac_c" 1>&6
5958 cat > conftest.
$ac_ext <<EOF
5959 #line 5960 "configure"
5960 #include "confdefs.h"
5961 #if defined(CRAY) && ! defined(CRAY2)
5968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5969 egrep "webecray" >/dev
/null
2>&1; then
5980 echo "$ac_t""$ac_cv_os_cray" 1>&6
5981 if test $ac_cv_os_cray = yes; then
5982 for ac_func
in _getb67 GETB67 getb67
; do
5983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5984 echo "configure:5985: checking for $ac_func" >&5
5985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5986 echo $ac_n "(cached) $ac_c" 1>&6
5988 cat > conftest.
$ac_ext <<EOF
5989 #line 5990 "configure"
5990 #include "confdefs.h"
5991 /* System header to define __stub macros and hopefully few prototypes,
5992 which can conflict with char $ac_func(); below. */
5994 /* Override any gcc2 internal prototype to avoid an error. */
5995 /* We use char because int might match the return type of a gcc2
5996 builtin and then its argument prototype would still apply. */
6001 /* The GNU C library defines this for functions which it implements
6002 to always fail with ENOSYS. Some functions are actually named
6003 something starting with __ and the normal name is an alias. */
6004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6012 if { (eval echo configure
:6013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6014 eval "ac_cv_func_$ac_func=yes"
6016 echo "configure: failed program was:" >&5
6017 cat conftest.
$ac_ext >&5
6019 eval "ac_cv_func_$ac_func=no"
6024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6025 echo "$ac_t""yes" 1>&6
6026 cat >> confdefs.h
<<EOF
6027 #define CRAY_STACKSEG_END $ac_func
6032 echo "$ac_t""no" 1>&6
6038 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6039 echo "configure:6040: checking stack direction for C alloca" >&5
6040 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6041 echo $ac_n "(cached) $ac_c" 1>&6
6043 if test "$cross_compiling" = yes; then
6044 ac_cv_c_stack_direction
=0
6046 cat > conftest.
$ac_ext <<EOF
6047 #line 6048 "configure"
6048 #include "confdefs.h"
6049 find_stack_direction ()
6051 static char *addr = 0;
6056 return find_stack_direction ();
6059 return (&dummy > addr) ? 1 : -1;
6063 exit (find_stack_direction() < 0);
6066 if { (eval echo configure
:6067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6068 ac_cv_c_stack_direction
=1
6070 echo "configure: failed program was:" >&5
6071 cat conftest.
$ac_ext >&5
6073 ac_cv_c_stack_direction
=-1
6080 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6081 cat >> confdefs.h
<<EOF
6082 #define STACK_DIRECTION $ac_cv_c_stack_direction
6087 for ac_hdr
in unistd.h
6089 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6090 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6091 echo "configure:6092: checking for $ac_hdr" >&5
6092 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6093 echo $ac_n "(cached) $ac_c" 1>&6
6095 cat > conftest.
$ac_ext <<EOF
6096 #line 6097 "configure"
6097 #include "confdefs.h"
6100 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6101 { (eval echo configure
:6102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6102 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6103 if test -z "$ac_err"; then
6105 eval "ac_cv_header_$ac_safe=yes"
6108 echo "configure: failed program was:" >&5
6109 cat conftest.
$ac_ext >&5
6111 eval "ac_cv_header_$ac_safe=no"
6115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6116 echo "$ac_t""yes" 1>&6
6117 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6118 cat >> confdefs.h
<<EOF
6119 #define $ac_tr_hdr 1
6123 echo "$ac_t""no" 1>&6
6127 for ac_func
in getpagesize
6129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6130 echo "configure:6131: checking for $ac_func" >&5
6131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6134 cat > conftest.
$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6137 /* System header to define __stub macros and hopefully few prototypes,
6138 which can conflict with char $ac_func(); below. */
6140 /* Override any gcc2 internal prototype to avoid an error. */
6141 /* We use char because int might match the return type of a gcc2
6142 builtin and then its argument prototype would still apply. */
6147 /* The GNU C library defines this for functions which it implements
6148 to always fail with ENOSYS. Some functions are actually named
6149 something starting with __ and the normal name is an alias. */
6150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6158 if { (eval echo configure
:6159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6160 eval "ac_cv_func_$ac_func=yes"
6162 echo "configure: failed program was:" >&5
6163 cat conftest.
$ac_ext >&5
6165 eval "ac_cv_func_$ac_func=no"
6170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6171 echo "$ac_t""yes" 1>&6
6172 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6173 cat >> confdefs.h
<<EOF
6174 #define $ac_tr_func 1
6178 echo "$ac_t""no" 1>&6
6182 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6183 echo "configure:6184: checking for working mmap" >&5
6184 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6185 echo $ac_n "(cached) $ac_c" 1>&6
6187 if test "$cross_compiling" = yes; then
6188 ac_cv_func_mmap_fixed_mapped
=no
6190 cat > conftest.
$ac_ext <<EOF
6191 #line 6192 "configure"
6192 #include "confdefs.h"
6194 /* Thanks to Mike Haertel and Jim Avera for this test.
6195 Here is a matrix of mmap possibilities:
6196 mmap private not fixed
6197 mmap private fixed at somewhere currently unmapped
6198 mmap private fixed at somewhere already mapped
6199 mmap shared not fixed
6200 mmap shared fixed at somewhere currently unmapped
6201 mmap shared fixed at somewhere already mapped
6202 For private mappings, we should verify that changes cannot be read()
6203 back from the file, nor mmap's back from the file at a different
6204 address. (There have been systems where private was not correctly
6205 implemented like the infamous i386 svr4.0, and systems where the
6206 VM page cache was not coherent with the filesystem buffer cache
6207 like early versions of FreeBSD and possibly contemporary NetBSD.)
6208 For shared mappings, we should conversely verify that changes get
6209 propogated back to all the places they're supposed to be.
6211 Grep wants private fixed already mapped.
6212 The main things grep needs to know about mmap are:
6213 * does it exist and is it safe to write into the mmap'd area
6214 * how to use it (BSD variants) */
6215 #include <sys/types.h>
6217 #include <sys/mman.h>
6219 /* This mess was copied from the GNU getpagesize.h. */
6220 #ifndef HAVE_GETPAGESIZE
6221 # ifdef HAVE_UNISTD_H
6222 # include <unistd.h>
6225 /* Assume that all systems that can run configure have sys/param.h. */
6226 # ifndef HAVE_SYS_PARAM_H
6227 # define HAVE_SYS_PARAM_H 1
6230 # ifdef _SC_PAGESIZE
6231 # define getpagesize() sysconf(_SC_PAGESIZE)
6232 # else /* no _SC_PAGESIZE */
6233 # ifdef HAVE_SYS_PARAM_H
6234 # include <sys/param.h>
6235 # ifdef EXEC_PAGESIZE
6236 # define getpagesize() EXEC_PAGESIZE
6237 # else /* no EXEC_PAGESIZE */
6239 # define getpagesize() NBPG * CLSIZE
6242 # endif /* no CLSIZE */
6243 # else /* no NBPG */
6245 # define getpagesize() NBPC
6246 # else /* no NBPC */
6248 # define getpagesize() PAGESIZE
6249 # endif /* PAGESIZE */
6250 # endif /* no NBPC */
6251 # endif /* no NBPG */
6252 # endif /* no EXEC_PAGESIZE */
6253 # else /* no HAVE_SYS_PARAM_H */
6254 # define getpagesize() 8192 /* punt totally */
6255 # endif /* no HAVE_SYS_PARAM_H */
6256 # endif /* no _SC_PAGESIZE */
6258 #endif /* no HAVE_GETPAGESIZE */
6261 extern "C" { void *malloc(unsigned); }
6269 char *data, *data2, *data3;
6273 pagesize = getpagesize();
6276 * First, make a file with some known garbage in it.
6278 data = malloc(pagesize);
6281 for (i = 0; i < pagesize; ++i)
6282 *(data + i) = rand();
6284 fd = creat("conftestmmap", 0600);
6287 if (write(fd, data, pagesize) != pagesize)
6292 * Next, try to mmap the file at a fixed address which
6293 * already has something else allocated at it. If we can,
6294 * also make sure that we see the same garbage.
6296 fd = open("conftestmmap", O_RDWR);
6299 data2 = malloc(2 * pagesize);
6302 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6303 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6304 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6306 for (i = 0; i < pagesize; ++i)
6307 if (*(data + i) != *(data2 + i))
6311 * Finally, make sure that changes to the mapped area
6312 * do not percolate back to the file as seen by read().
6313 * (This is a bug on some variants of i386 svr4.0.)
6315 for (i = 0; i < pagesize; ++i)
6316 *(data2 + i) = *(data2 + i) + 1;
6317 data3 = malloc(pagesize);
6320 if (read(fd, data3, pagesize) != pagesize)
6322 for (i = 0; i < pagesize; ++i)
6323 if (*(data + i) != *(data3 + i))
6326 unlink("conftestmmap");
6331 if { (eval echo configure
:6332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6333 ac_cv_func_mmap_fixed_mapped
=yes
6335 echo "configure: failed program was:" >&5
6336 cat conftest.
$ac_ext >&5
6338 ac_cv_func_mmap_fixed_mapped
=no
6345 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6346 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6347 cat >> confdefs.h
<<\EOF
6353 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6354 echo "configure:6355: checking for pid_t" >&5
6355 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6356 echo $ac_n "(cached) $ac_c" 1>&6
6358 cat > conftest.
$ac_ext <<EOF
6359 #line 6360 "configure"
6360 #include "confdefs.h"
6361 #include <sys/types.h>
6367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6368 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6370 ac_cv_type_pid_t
=yes
6378 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6379 if test $ac_cv_type_pid_t = no
; then
6380 cat >> confdefs.h
<<\EOF
6386 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
6387 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
6388 echo "configure:6389: checking for vfork.h" >&5
6389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6390 echo $ac_n "(cached) $ac_c" 1>&6
6392 cat > conftest.
$ac_ext <<EOF
6393 #line 6394 "configure"
6394 #include "confdefs.h"
6397 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6398 { (eval echo configure
:6399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6399 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6400 if test -z "$ac_err"; then
6402 eval "ac_cv_header_$ac_safe=yes"
6405 echo "configure: failed program was:" >&5
6406 cat conftest.
$ac_ext >&5
6408 eval "ac_cv_header_$ac_safe=no"
6412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6413 echo "$ac_t""yes" 1>&6
6414 cat >> confdefs.h
<<\EOF
6415 #define HAVE_VFORK_H 1
6419 echo "$ac_t""no" 1>&6
6422 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
6423 echo "configure:6424: checking for working vfork" >&5
6424 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
6425 echo $ac_n "(cached) $ac_c" 1>&6
6427 if test "$cross_compiling" = yes; then
6428 echo $ac_n "checking for vfork""... $ac_c" 1>&6
6429 echo "configure:6430: checking for vfork" >&5
6430 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
6431 echo $ac_n "(cached) $ac_c" 1>&6
6433 cat > conftest.
$ac_ext <<EOF
6434 #line 6435 "configure"
6435 #include "confdefs.h"
6436 /* System header to define __stub macros and hopefully few prototypes,
6437 which can conflict with char vfork(); below. */
6439 /* Override any gcc2 internal prototype to avoid an error. */
6440 /* We use char because int might match the return type of a gcc2
6441 builtin and then its argument prototype would still apply. */
6446 /* The GNU C library defines this for functions which it implements
6447 to always fail with ENOSYS. Some functions are actually named
6448 something starting with __ and the normal name is an alias. */
6449 #if defined (__stub_vfork) || defined (__stub___vfork)
6457 if { (eval echo configure
:6458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6459 eval "ac_cv_func_vfork=yes"
6461 echo "configure: failed program was:" >&5
6462 cat conftest.
$ac_ext >&5
6464 eval "ac_cv_func_vfork=no"
6469 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
6470 echo "$ac_t""yes" 1>&6
6473 echo "$ac_t""no" 1>&6
6476 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6478 cat > conftest.
$ac_ext <<EOF
6479 #line 6480 "configure"
6480 #include "confdefs.h"
6481 /* Thanks to Paul Eggert for this test. */
6483 #include <sys/types.h>
6484 #include <sys/stat.h>
6485 #ifdef HAVE_UNISTD_H
6491 /* On some sparc systems, changes by the child to local and incoming
6492 argument registers are propagated back to the parent.
6493 The compiler is told about this with #include <vfork.h>,
6494 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
6495 Test for this by using a static variable whose address
6496 is put into a register that is clobbered by the vfork. */
6499 sparc_address_test (int arg)
6501 sparc_address_test (arg) int arg;
6519 pid_t parent = getpid ();
6522 sparc_address_test ();
6527 /* Here is another test for sparc vfork register problems.
6528 This test uses lots of local variables, at least
6529 as many local variables as main has allocated so far
6530 including compiler temporaries. 4 locals are enough for
6531 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
6532 A buggy compiler should reuse the register of parent
6533 for one of the local variables, since it will think that
6534 parent can't possibly be used any more in this routine.
6535 Assigning to the local variable will thus munge parent
6536 in the parent process. */
6538 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6539 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6540 /* Convince the compiler that p..p7 are live; otherwise, it might
6541 use the same hardware register for all 8 local variables. */
6542 if (p != p1 || p != p2 || p != p3 || p != p4
6543 || p != p5 || p != p6 || p != p7)
6546 /* On some systems (e.g. IRIX 3.3),
6547 vfork doesn't separate parent from child file descriptors.
6548 If the child closes a descriptor before it execs or exits,
6549 this munges the parent's descriptor as well.
6550 Test for this by closing stdout in the child. */
6551 _exit(close(fileno(stdout)) != 0);
6556 while (wait(&status) != child)
6559 /* Was there some problem with vforking? */
6562 /* Did the child fail? (This shouldn't happen.) */
6565 /* Did the vfork/compiler bug occur? */
6566 || parent != getpid()
6568 /* Did the file descriptor bug occur? */
6569 || fstat(fileno(stdout), &st) != 0
6574 if { (eval echo configure
:6575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6576 ac_cv_func_vfork_works
=yes
6578 echo "configure: failed program was:" >&5
6579 cat conftest.
$ac_ext >&5
6581 ac_cv_func_vfork_works
=no
6588 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6589 if test $ac_cv_func_vfork_works = no
; then
6590 cat >> confdefs.h
<<\EOF
6596 for ac_func
in canonicalize_file_name realpath
6598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6599 echo "configure:6600: checking for $ac_func" >&5
6600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
6607 which can conflict with char $ac_func(); below. */
6609 /* Override any gcc2 internal prototype to avoid an error. */
6610 /* We use char because int might match the return type of a gcc2
6611 builtin and then its argument prototype would still apply. */
6616 /* The GNU C library defines this for functions which it implements
6617 to always fail with ENOSYS. Some functions are actually named
6618 something starting with __ and the normal name is an alias. */
6619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6627 if { (eval echo configure
:6628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6629 eval "ac_cv_func_$ac_func=yes"
6631 echo "configure: failed program was:" >&5
6632 cat conftest.
$ac_ext >&5
6634 eval "ac_cv_func_$ac_func=no"
6639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6640 echo "$ac_t""yes" 1>&6
6641 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6642 cat >> confdefs.h
<<EOF
6643 #define $ac_tr_func 1
6647 echo "$ac_t""no" 1>&6
6653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6654 echo "configure:6655: checking for $ac_func" >&5
6655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6656 echo $ac_n "(cached) $ac_c" 1>&6
6658 cat > conftest.
$ac_ext <<EOF
6659 #line 6660 "configure"
6660 #include "confdefs.h"
6661 /* System header to define __stub macros and hopefully few prototypes,
6662 which can conflict with char $ac_func(); below. */
6664 /* Override any gcc2 internal prototype to avoid an error. */
6665 /* We use char because int might match the return type of a gcc2
6666 builtin and then its argument prototype would still apply. */
6671 /* The GNU C library defines this for functions which it implements
6672 to always fail with ENOSYS. Some functions are actually named
6673 something starting with __ and the normal name is an alias. */
6674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6682 if { (eval echo configure
:6683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6684 eval "ac_cv_func_$ac_func=yes"
6686 echo "configure: failed program was:" >&5
6687 cat conftest.
$ac_ext >&5
6689 eval "ac_cv_func_$ac_func=no"
6694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6695 echo "$ac_t""yes" 1>&6
6696 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6697 cat >> confdefs.h
<<EOF
6698 #define $ac_tr_func 1
6702 echo "$ac_t""no" 1>&6
6706 for ac_func
in pread64
6708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6709 echo "configure:6710: checking for $ac_func" >&5
6710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6711 echo $ac_n "(cached) $ac_c" 1>&6
6713 cat > conftest.
$ac_ext <<EOF
6714 #line 6715 "configure"
6715 #include "confdefs.h"
6716 /* System header to define __stub macros and hopefully few prototypes,
6717 which can conflict with char $ac_func(); below. */
6719 /* Override any gcc2 internal prototype to avoid an error. */
6720 /* We use char because int might match the return type of a gcc2
6721 builtin and then its argument prototype would still apply. */
6726 /* The GNU C library defines this for functions which it implements
6727 to always fail with ENOSYS. Some functions are actually named
6728 something starting with __ and the normal name is an alias. */
6729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6737 if { (eval echo configure
:6738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6739 eval "ac_cv_func_$ac_func=yes"
6741 echo "configure: failed program was:" >&5
6742 cat conftest.
$ac_ext >&5
6744 eval "ac_cv_func_$ac_func=no"
6749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6750 echo "$ac_t""yes" 1>&6
6751 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6752 cat >> confdefs.h
<<EOF
6753 #define $ac_tr_func 1
6757 echo "$ac_t""no" 1>&6
6763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6764 echo "configure:6765: checking for $ac_func" >&5
6765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6766 echo $ac_n "(cached) $ac_c" 1>&6
6768 cat > conftest.
$ac_ext <<EOF
6769 #line 6770 "configure"
6770 #include "confdefs.h"
6771 /* System header to define __stub macros and hopefully few prototypes,
6772 which can conflict with char $ac_func(); below. */
6774 /* Override any gcc2 internal prototype to avoid an error. */
6775 /* We use char because int might match the return type of a gcc2
6776 builtin and then its argument prototype would still apply. */
6781 /* The GNU C library defines this for functions which it implements
6782 to always fail with ENOSYS. Some functions are actually named
6783 something starting with __ and the normal name is an alias. */
6784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6792 if { (eval echo configure
:6793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6794 eval "ac_cv_func_$ac_func=yes"
6796 echo "configure: failed program was:" >&5
6797 cat conftest.
$ac_ext >&5
6799 eval "ac_cv_func_$ac_func=no"
6804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6805 echo "$ac_t""yes" 1>&6
6806 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6807 cat >> confdefs.h
<<EOF
6808 #define $ac_tr_func 1
6812 echo "$ac_t""no" 1>&6
6816 for ac_func
in setpgid setpgrp
6818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6819 echo "configure:6820: checking for $ac_func" >&5
6820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6821 echo $ac_n "(cached) $ac_c" 1>&6
6823 cat > conftest.
$ac_ext <<EOF
6824 #line 6825 "configure"
6825 #include "confdefs.h"
6826 /* System header to define __stub macros and hopefully few prototypes,
6827 which can conflict with char $ac_func(); below. */
6829 /* Override any gcc2 internal prototype to avoid an error. */
6830 /* We use char because int might match the return type of a gcc2
6831 builtin and then its argument prototype would still apply. */
6836 /* The GNU C library defines this for functions which it implements
6837 to always fail with ENOSYS. Some functions are actually named
6838 something starting with __ and the normal name is an alias. */
6839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6847 if { (eval echo configure
:6848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6849 eval "ac_cv_func_$ac_func=yes"
6851 echo "configure: failed program was:" >&5
6852 cat conftest.
$ac_ext >&5
6854 eval "ac_cv_func_$ac_func=no"
6859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6860 echo "$ac_t""yes" 1>&6
6861 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6862 cat >> confdefs.h
<<EOF
6863 #define $ac_tr_func 1
6867 echo "$ac_t""no" 1>&6
6871 for ac_func
in sigaction sigprocmask sigsetmask
6873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6874 echo "configure:6875: checking for $ac_func" >&5
6875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6876 echo $ac_n "(cached) $ac_c" 1>&6
6878 cat > conftest.
$ac_ext <<EOF
6879 #line 6880 "configure"
6880 #include "confdefs.h"
6881 /* System header to define __stub macros and hopefully few prototypes,
6882 which can conflict with char $ac_func(); below. */
6884 /* Override any gcc2 internal prototype to avoid an error. */
6885 /* We use char because int might match the return type of a gcc2
6886 builtin and then its argument prototype would still apply. */
6891 /* The GNU C library defines this for functions which it implements
6892 to always fail with ENOSYS. Some functions are actually named
6893 something starting with __ and the normal name is an alias. */
6894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6902 if { (eval echo configure
:6903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6904 eval "ac_cv_func_$ac_func=yes"
6906 echo "configure: failed program was:" >&5
6907 cat conftest.
$ac_ext >&5
6909 eval "ac_cv_func_$ac_func=no"
6914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6915 echo "$ac_t""yes" 1>&6
6916 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6917 cat >> confdefs.h
<<EOF
6918 #define $ac_tr_func 1
6922 echo "$ac_t""no" 1>&6
6926 for ac_func
in socketpair
6928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6929 echo "configure:6930: checking for $ac_func" >&5
6930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6931 echo $ac_n "(cached) $ac_c" 1>&6
6933 cat > conftest.
$ac_ext <<EOF
6934 #line 6935 "configure"
6935 #include "confdefs.h"
6936 /* System header to define __stub macros and hopefully few prototypes,
6937 which can conflict with char $ac_func(); below. */
6939 /* Override any gcc2 internal prototype to avoid an error. */
6940 /* We use char because int might match the return type of a gcc2
6941 builtin and then its argument prototype would still apply. */
6946 /* The GNU C library defines this for functions which it implements
6947 to always fail with ENOSYS. Some functions are actually named
6948 something starting with __ and the normal name is an alias. */
6949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6957 if { (eval echo configure
:6958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6959 eval "ac_cv_func_$ac_func=yes"
6961 echo "configure: failed program was:" >&5
6962 cat conftest.
$ac_ext >&5
6964 eval "ac_cv_func_$ac_func=no"
6969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6970 echo "$ac_t""yes" 1>&6
6971 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6972 cat >> confdefs.h
<<EOF
6973 #define $ac_tr_func 1
6977 echo "$ac_t""no" 1>&6
6981 for ac_func
in syscall
6983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6984 echo "configure:6985: checking for $ac_func" >&5
6985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6986 echo $ac_n "(cached) $ac_c" 1>&6
6988 cat > conftest.
$ac_ext <<EOF
6989 #line 6990 "configure"
6990 #include "confdefs.h"
6991 /* System header to define __stub macros and hopefully few prototypes,
6992 which can conflict with char $ac_func(); below. */
6994 /* Override any gcc2 internal prototype to avoid an error. */
6995 /* We use char because int might match the return type of a gcc2
6996 builtin and then its argument prototype would still apply. */
7001 /* The GNU C library defines this for functions which it implements
7002 to always fail with ENOSYS. Some functions are actually named
7003 something starting with __ and the normal name is an alias. */
7004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7012 if { (eval echo configure
:7013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7014 eval "ac_cv_func_$ac_func=yes"
7016 echo "configure: failed program was:" >&5
7017 cat conftest.
$ac_ext >&5
7019 eval "ac_cv_func_$ac_func=no"
7024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7025 echo "$ac_t""yes" 1>&6
7026 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7027 cat >> confdefs.h
<<EOF
7028 #define $ac_tr_func 1
7032 echo "$ac_t""no" 1>&6
7037 if test "$cross_compiling" = no
; then
7038 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
7039 echo "configure:7040: checking whether setpgrp takes no argument" >&5
7040 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
7041 echo $ac_n "(cached) $ac_c" 1>&6
7043 if test "$cross_compiling" = yes; then
7044 { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
7046 cat > conftest.
$ac_ext <<EOF
7047 #line 7048 "configure"
7048 #include "confdefs.h"
7050 #ifdef HAVE_UNISTD_H
7055 * If this system has a BSD-style setpgrp, which takes arguments, exit
7060 if (setpgrp(1,1) == -1)
7067 if { (eval echo configure
:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7069 ac_cv_func_setpgrp_void
=no
7071 echo "configure: failed program was:" >&5
7072 cat conftest.
$ac_ext >&5
7074 ac_cv_func_setpgrp_void
=yes
7082 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
7083 if test $ac_cv_func_setpgrp_void = yes; then
7084 cat >> confdefs.h
<<\EOF
7085 #define SETPGRP_VOID 1
7091 echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
7092 echo "configure:7093: checking whether setpgrp takes no argument" >&5
7093 if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
7094 echo $ac_n "(cached) $ac_c" 1>&6
7096 cat > conftest.
$ac_ext <<EOF
7097 #line 7098 "configure"
7098 #include "confdefs.h"
7104 if (setpgrp(1,1) == -1)
7111 if { (eval echo configure
:7112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7113 ac_cv_func_setpgrp_void
=no
7115 echo "configure: failed program was:" >&5
7116 cat conftest.
$ac_ext >&5
7118 ac_cv_func_setpgrp_void
=yes
7123 echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
7124 if test $ac_cv_func_setpgrp_void = yes; then
7125 cat >> confdefs.h
<<\EOF
7126 #define SETPGRP_VOID 1
7132 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
7133 # since sigsetjmp might only be defined as a macro.
7134 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7135 echo "configure:7136: checking for sigsetjmp" >&5
7136 if eval "test \"`echo '$''{'gdb_cv_func_sigsetjmp'+set}'`\" = set"; then
7137 echo $ac_n "(cached) $ac_c" 1>&6
7139 cat > conftest.
$ac_ext <<EOF
7140 #line 7141 "configure"
7141 #include "confdefs.h"
7146 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
7149 if { (eval echo configure
:7150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7151 gdb_cv_func_sigsetjmp
=yes
7153 echo "configure: failed program was:" >&5
7154 cat conftest.
$ac_ext >&5
7156 gdb_cv_func_sigsetjmp
=no
7161 echo "$ac_t""$gdb_cv_func_sigsetjmp" 1>&6
7162 if test $gdb_cv_func_sigsetjmp = yes; then
7163 cat >> confdefs.h
<<\EOF
7164 #define HAVE_SIGSETJMP 1
7169 # Assume we'll default to using the included libiberty regex.
7170 gdb_use_included_regex
=yes
7172 # However, if the system regex is GNU regex, then default to *not*
7173 # using the included regex.
7174 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
7175 echo "configure:7176: checking for GNU regex" >&5
7176 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
7177 echo $ac_n "(cached) $ac_c" 1>&6
7179 cat > conftest.
$ac_ext <<EOF
7180 #line 7181 "configure"
7181 #include "confdefs.h"
7182 #include <gnu-versions.h>
7184 #define REGEX_INTERFACE_VERSION 1
7185 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
7186 # error "Version mismatch"
7190 if { (eval echo configure
:7191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7192 gdb_cv_have_gnu_regex
=yes
7194 echo "configure: failed program was:" >&5
7195 cat conftest.
$ac_ext >&5
7197 gdb_cv_have_gnu_regex
=no
7202 echo "$ac_t""$gdb_cv_have_gnu_regex" 1>&6
7203 if test $gdb_cv_have_gnu_regex = yes; then
7204 gdb_use_included_regex
=no
7207 # Check whether --with-included-regex or --without-included-regex was given.
7208 if test "${with_included_regex+set}" = set; then
7209 withval
="$with_included_regex"
7210 gdb_with_regex
=$withval
7212 gdb_with_regex
=$gdb_use_included_regex
7215 if test "$gdb_with_regex" = yes; then
7216 cat >> confdefs.h
<<\EOF
7217 #define USE_INCLUDED_REGEX 1
7222 # See if <machine/reg.h> degines `struct reg'.
7223 echo $ac_n "checking for struct reg in machine/reg.h""... $ac_c" 1>&6
7224 echo "configure:7225: checking for struct reg in machine/reg.h" >&5
7225 if eval "test \"`echo '$''{'gdb_cv_struct_reg'+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"
7231 #include <sys/types.h>
7232 #include <machine/reg.h>
7237 if { (eval echo configure
:7238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7239 gdb_cv_struct_reg
=yes
7241 echo "configure: failed program was:" >&5
7242 cat conftest.
$ac_ext >&5
7244 gdb_cv_struct_reg
=no
7249 echo "$ac_t""$gdb_cv_struct_reg" 1>&6
7250 if test $gdb_cv_struct_reg = yes; then
7251 cat >> confdefs.h
<<\EOF
7252 #define HAVE_STRUCT_REG 1
7257 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
7258 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
7259 echo $ac_n "checking for r_fs in struct reg""... $ac_c" 1>&6
7260 echo "configure:7261: checking for r_fs in struct reg" >&5
7261 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_fs'+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"
7267 #include <machine/reg.h>
7269 struct reg r; r.r_fs;
7272 if { (eval echo configure
:7273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7274 gdb_cv_struct_reg_r_fs
=yes
7276 echo "configure: failed program was:" >&5
7277 cat conftest.
$ac_ext >&5
7279 gdb_cv_struct_reg_r_fs
=no
7284 echo "$ac_t""$gdb_cv_struct_reg_r_fs" 1>&6
7285 if test $gdb_cv_struct_reg_r_fs = yes; then
7286 cat >> confdefs.h
<<\EOF
7287 #define HAVE_STRUCT_REG_R_FS 1
7291 echo $ac_n "checking for r_gs in struct reg""... $ac_c" 1>&6
7292 echo "configure:7293: checking for r_gs in struct reg" >&5
7293 if eval "test \"`echo '$''{'gdb_cv_struct_reg_r_gs'+set}'`\" = set"; then
7294 echo $ac_n "(cached) $ac_c" 1>&6
7296 cat > conftest.
$ac_ext <<EOF
7297 #line 7298 "configure"
7298 #include "confdefs.h"
7299 #include <machine/reg.h>
7301 struct reg r; r.r_gs;
7304 if { (eval echo configure
:7305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7306 gdb_cv_struct_reg_r_gs
=yes
7308 echo "configure: failed program was:" >&5
7309 cat conftest.
$ac_ext >&5
7311 gdb_cv_struct_reg_r_gs
=no
7316 echo "$ac_t""$gdb_cv_struct_reg_r_gs" 1>&6
7317 if test $gdb_cv_struct_reg_r_gs = yes; then
7318 cat >> confdefs.h
<<\EOF
7319 #define HAVE_STRUCT_REG_R_GS 1
7324 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
7325 echo $ac_n "checking for PTRACE_GETREGS""... $ac_c" 1>&6
7326 echo "configure:7327: checking for PTRACE_GETREGS" >&5
7327 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getregs'+set}'`\" = set"; then
7328 echo $ac_n "(cached) $ac_c" 1>&6
7330 cat > conftest.
$ac_ext <<EOF
7331 #line 7332 "configure"
7332 #include "confdefs.h"
7333 #include <sys/ptrace.h>
7338 if { (eval echo configure
:7339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7340 gdb_cv_have_ptrace_getregs
=yes
7342 echo "configure: failed program was:" >&5
7343 cat conftest.
$ac_ext >&5
7345 gdb_cv_have_ptrace_getregs
=no
7350 echo "$ac_t""$gdb_cv_have_ptrace_getregs" 1>&6
7351 if test $gdb_cv_have_ptrace_getregs = yes; then
7352 cat >> confdefs.h
<<\EOF
7353 #define HAVE_PTRACE_GETREGS 1
7358 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
7359 echo $ac_n "checking for PTRACE_GETFPXREGS""... $ac_c" 1>&6
7360 echo "configure:7361: checking for PTRACE_GETFPXREGS" >&5
7361 if eval "test \"`echo '$''{'gdb_cv_have_ptrace_getfpxregs'+set}'`\" = set"; then
7362 echo $ac_n "(cached) $ac_c" 1>&6
7364 cat > conftest.
$ac_ext <<EOF
7365 #line 7366 "configure"
7366 #include "confdefs.h"
7367 #include <sys/ptrace.h>
7372 if { (eval echo configure
:7373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7374 gdb_cv_have_ptrace_getfpxregs
=yes
7376 echo "configure: failed program was:" >&5
7377 cat conftest.
$ac_ext >&5
7379 gdb_cv_have_ptrace_getfpxregs
=no
7384 echo "$ac_t""$gdb_cv_have_ptrace_getfpxregs" 1>&6
7385 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
7386 cat >> confdefs.h
<<\EOF
7387 #define HAVE_PTRACE_GETFPXREGS 1
7392 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
7393 echo $ac_n "checking for PT_GETDBREGS""... $ac_c" 1>&6
7394 echo "configure:7395: checking for PT_GETDBREGS" >&5
7395 if eval "test \"`echo '$''{'gdb_cv_have_pt_getdbregs'+set}'`\" = set"; then
7396 echo $ac_n "(cached) $ac_c" 1>&6
7398 cat > conftest.
$ac_ext <<EOF
7399 #line 7400 "configure"
7400 #include "confdefs.h"
7401 #include <sys/types.h>
7402 #include <sys/ptrace.h>
7407 if { (eval echo configure
:7408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7409 gdb_cv_have_pt_getdbregs
=yes
7411 echo "configure: failed program was:" >&5
7412 cat conftest.
$ac_ext >&5
7414 gdb_cv_have_pt_getdbregs
=no
7419 echo "$ac_t""$gdb_cv_have_pt_getdbregs" 1>&6
7420 if test $gdb_cv_have_pt_getdbregs = yes; then
7421 cat >> confdefs.h
<<\EOF
7422 #define HAVE_PT_GETDBREGS 1
7427 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
7428 echo $ac_n "checking for PT_GETXMMREGS""... $ac_c" 1>&6
7429 echo "configure:7430: checking for PT_GETXMMREGS" >&5
7430 if eval "test \"`echo '$''{'gdb_cv_have_pt_getxmmregs'+set}'`\" = set"; then
7431 echo $ac_n "(cached) $ac_c" 1>&6
7433 cat > conftest.
$ac_ext <<EOF
7434 #line 7435 "configure"
7435 #include "confdefs.h"
7436 #include <sys/types.h>
7437 #include <sys/ptrace.h>
7442 if { (eval echo configure
:7443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7444 gdb_cv_have_pt_getxmmregs
=yes
7446 echo "configure: failed program was:" >&5
7447 cat conftest.
$ac_ext >&5
7449 gdb_cv_have_pt_getxmmregs
=no
7454 echo "$ac_t""$gdb_cv_have_pt_getxmmregs" 1>&6
7455 if test $gdb_cv_have_pt_getxmmregs = yes; then
7456 cat >> confdefs.h
<<\EOF
7457 #define HAVE_PT_GETXMMREGS 1
7462 # See if stdint.h provides the uintptr_t type.
7463 # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
7464 echo $ac_n "checking for uintptr_t in stdint.h""... $ac_c" 1>&6
7465 echo "configure:7466: checking for uintptr_t in stdint.h" >&5
7466 if eval "test \"`echo '$''{'gdb_cv_have_uintptr_t'+set}'`\" = set"; then
7467 echo $ac_n "(cached) $ac_c" 1>&6
7469 cat > conftest.
$ac_ext <<EOF
7470 #line 7471 "configure"
7471 #include "confdefs.h"
7477 if { (eval echo configure
:7478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7479 gdb_cv_have_uintptr_t
=yes
7481 echo "configure: failed program was:" >&5
7482 cat conftest.
$ac_ext >&5
7484 gdb_cv_have_uintptr_t
=no
7489 echo "$ac_t""$gdb_cv_have_uintptr_t" 1>&6
7490 if test $gdb_cv_have_uintptr_t = yes; then
7491 cat >> confdefs.h
<<\EOF
7492 #define HAVE_UINTPTR_T 1
7497 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
7498 echo "configure:7499: checking whether malloc must be declared" >&5
7499 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
7500 echo $ac_n "(cached) $ac_c" 1>&6
7502 cat > conftest.
$ac_ext <<EOF
7503 #line 7504 "configure"
7504 #include "confdefs.h"
7507 #ifdef HAVE_STRING_H
7510 #ifdef HAVE_STRINGS_H
7511 #include <strings.h>
7514 #ifdef HAVE_STDLIB_H
7517 #ifdef HAVE_UNISTD_H
7521 char *(*pfn) = (char *(*)) malloc
7524 if { (eval echo configure
:7525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7526 bfd_cv_decl_needed_malloc
=no
7528 echo "configure: failed program was:" >&5
7529 cat conftest.
$ac_ext >&5
7531 bfd_cv_decl_needed_malloc
=yes
7536 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
7537 if test $bfd_cv_decl_needed_malloc = yes; then
7538 cat >> confdefs.h
<<\EOF
7539 #define NEED_DECLARATION_MALLOC 1
7544 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
7545 echo "configure:7546: checking whether realloc must be declared" >&5
7546 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
7547 echo $ac_n "(cached) $ac_c" 1>&6
7549 cat > conftest.
$ac_ext <<EOF
7550 #line 7551 "configure"
7551 #include "confdefs.h"
7554 #ifdef HAVE_STRING_H
7557 #ifdef HAVE_STRINGS_H
7558 #include <strings.h>
7561 #ifdef HAVE_STDLIB_H
7564 #ifdef HAVE_UNISTD_H
7568 char *(*pfn) = (char *(*)) realloc
7571 if { (eval echo configure
:7572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7573 bfd_cv_decl_needed_realloc
=no
7575 echo "configure: failed program was:" >&5
7576 cat conftest.
$ac_ext >&5
7578 bfd_cv_decl_needed_realloc
=yes
7583 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
7584 if test $bfd_cv_decl_needed_realloc = yes; then
7585 cat >> confdefs.h
<<\EOF
7586 #define NEED_DECLARATION_REALLOC 1
7591 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
7592 echo "configure:7593: checking whether free must be declared" >&5
7593 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
7594 echo $ac_n "(cached) $ac_c" 1>&6
7596 cat > conftest.
$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7601 #ifdef HAVE_STRING_H
7604 #ifdef HAVE_STRINGS_H
7605 #include <strings.h>
7608 #ifdef HAVE_STDLIB_H
7611 #ifdef HAVE_UNISTD_H
7615 char *(*pfn) = (char *(*)) free
7618 if { (eval echo configure
:7619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7620 bfd_cv_decl_needed_free
=no
7622 echo "configure: failed program was:" >&5
7623 cat conftest.
$ac_ext >&5
7625 bfd_cv_decl_needed_free
=yes
7630 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
7631 if test $bfd_cv_decl_needed_free = yes; then
7632 cat >> confdefs.h
<<\EOF
7633 #define NEED_DECLARATION_FREE 1
7638 echo $ac_n "checking whether strerror must be declared""... $ac_c" 1>&6
7639 echo "configure:7640: checking whether strerror must be declared" >&5
7640 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strerror'+set}'`\" = set"; then
7641 echo $ac_n "(cached) $ac_c" 1>&6
7643 cat > conftest.
$ac_ext <<EOF
7644 #line 7645 "configure"
7645 #include "confdefs.h"
7648 #ifdef HAVE_STRING_H
7651 #ifdef HAVE_STRINGS_H
7652 #include <strings.h>
7655 #ifdef HAVE_STDLIB_H
7658 #ifdef HAVE_UNISTD_H
7662 char *(*pfn) = (char *(*)) strerror
7665 if { (eval echo configure
:7666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7667 bfd_cv_decl_needed_strerror
=no
7669 echo "configure: failed program was:" >&5
7670 cat conftest.
$ac_ext >&5
7672 bfd_cv_decl_needed_strerror
=yes
7677 echo "$ac_t""$bfd_cv_decl_needed_strerror" 1>&6
7678 if test $bfd_cv_decl_needed_strerror = yes; then
7679 cat >> confdefs.h
<<\EOF
7680 #define NEED_DECLARATION_STRERROR 1
7685 echo $ac_n "checking whether strdup must be declared""... $ac_c" 1>&6
7686 echo "configure:7687: checking whether strdup must be declared" >&5
7687 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strdup'+set}'`\" = set"; then
7688 echo $ac_n "(cached) $ac_c" 1>&6
7690 cat > conftest.
$ac_ext <<EOF
7691 #line 7692 "configure"
7692 #include "confdefs.h"
7695 #ifdef HAVE_STRING_H
7698 #ifdef HAVE_STRINGS_H
7699 #include <strings.h>
7702 #ifdef HAVE_STDLIB_H
7705 #ifdef HAVE_UNISTD_H
7709 char *(*pfn) = (char *(*)) strdup
7712 if { (eval echo configure
:7713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7714 bfd_cv_decl_needed_strdup
=no
7716 echo "configure: failed program was:" >&5
7717 cat conftest.
$ac_ext >&5
7719 bfd_cv_decl_needed_strdup
=yes
7724 echo "$ac_t""$bfd_cv_decl_needed_strdup" 1>&6
7725 if test $bfd_cv_decl_needed_strdup = yes; then
7726 cat >> confdefs.h
<<\EOF
7727 #define NEED_DECLARATION_STRDUP 1
7732 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
7733 echo "configure:7734: checking whether strstr must be declared" >&5
7734 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
7735 echo $ac_n "(cached) $ac_c" 1>&6
7737 cat > conftest.
$ac_ext <<EOF
7738 #line 7739 "configure"
7739 #include "confdefs.h"
7742 #ifdef HAVE_STRING_H
7745 #ifdef HAVE_STRINGS_H
7746 #include <strings.h>
7749 #ifdef HAVE_STDLIB_H
7752 #ifdef HAVE_UNISTD_H
7756 char *(*pfn) = (char *(*)) strstr
7759 if { (eval echo configure
:7760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7761 bfd_cv_decl_needed_strstr
=no
7763 echo "configure: failed program was:" >&5
7764 cat conftest.
$ac_ext >&5
7766 bfd_cv_decl_needed_strstr
=yes
7771 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
7772 if test $bfd_cv_decl_needed_strstr = yes; then
7773 cat >> confdefs.h
<<\EOF
7774 #define NEED_DECLARATION_STRSTR 1
7779 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
7780 echo "configure:7781: checking whether canonicalize_file_name must be declared" >&5
7781 if eval "test \"`echo '$''{'bfd_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
7782 echo $ac_n "(cached) $ac_c" 1>&6
7784 cat > conftest.
$ac_ext <<EOF
7785 #line 7786 "configure"
7786 #include "confdefs.h"
7789 #ifdef HAVE_STRING_H
7792 #ifdef HAVE_STRINGS_H
7793 #include <strings.h>
7796 #ifdef HAVE_STDLIB_H
7799 #ifdef HAVE_UNISTD_H
7803 char *(*pfn) = (char *(*)) canonicalize_file_name
7806 if { (eval echo configure
:7807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7808 bfd_cv_decl_needed_canonicalize_file_name
=no
7810 echo "configure: failed program was:" >&5
7811 cat conftest.
$ac_ext >&5
7813 bfd_cv_decl_needed_canonicalize_file_name
=yes
7818 echo "$ac_t""$bfd_cv_decl_needed_canonicalize_file_name" 1>&6
7819 if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then
7820 cat >> confdefs.h
<<\EOF
7821 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7827 # The following save_state_t checkery is only necessary for HPUX
7828 # versions earlier than 10.20. When those fade from memory, this
7829 # could be expunged. --jsm 1999-03-22
7831 echo $ac_n "checking for HPUX save_state structure""... $ac_c" 1>&6
7832 echo "configure:7833: checking for HPUX save_state structure" >&5
7833 cat > conftest.
$ac_ext <<EOF
7834 #line 7835 "configure"
7835 #include "confdefs.h"
7836 #include <machine/save_state.h>
7838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7839 egrep "save_state_t" >/dev
/null
2>&1; then
7841 gdb_cv_hpux_savestate
=yes
7844 gdb_cv_hpux_savestate
=no
7848 cat > conftest.
$ac_ext <<EOF
7849 #line 7850 "configure"
7850 #include "confdefs.h"
7851 #include <machine/save_state.h>
7853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7854 egrep "ss_wide" >/dev
/null
2>&1; then
7856 gdb_cv_hpux_sswide
=yes
7859 gdb_cv_hpux_sswide
=no
7863 if test $gdb_cv_hpux_savestate = yes
7865 cat >> confdefs.h
<<\EOF
7866 #define HAVE_STRUCT_SAVE_STATE_T 1
7870 if test $gdb_cv_hpux_sswide = yes
7872 cat >> confdefs.h
<<\EOF
7873 #define HAVE_STRUCT_MEMBER_SS_WIDE 1
7877 echo "$ac_t""$gdb_cv_hpux_sswide" 1>&6
7880 # If we are configured native on GNU/Linux, work around problems with
7882 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
7884 if test "${target}" = "${host}"; then
7887 cat >> confdefs.h
<<\EOF
7888 #define START_INFERIOR_TRAPS_EXPECTED 2
7891 cat >> confdefs.h
<<\EOF
7892 #define sys_quotactl 1
7897 cat >> confdefs.h
<<\EOF
7898 #define NEW_PROC_API 1
7902 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
7903 cat >> confdefs.h
<<\EOF
7904 #define NEW_PROC_API 1
7908 *-*-solaris2.
[6789])
7909 cat >> confdefs.h
<<\EOF
7910 #define NEW_PROC_API 1
7917 if test "$ac_cv_header_sys_procfs_h" = yes; then
7918 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
7919 echo "configure:7920: checking for pstatus_t in sys/procfs.h" >&5
7920 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
7921 echo $ac_n "(cached) $ac_c" 1>&6
7923 cat > conftest.
$ac_ext <<EOF
7924 #line 7925 "configure"
7925 #include "confdefs.h"
7928 #include <sys/procfs.h>
7933 if { (eval echo configure
:7934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7935 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
7937 echo "configure: failed program was:" >&5
7938 cat conftest.
$ac_ext >&5
7940 bfd_cv_have_sys_procfs_type_pstatus_t
=no
7946 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
7947 cat >> confdefs.h
<<\EOF
7948 #define HAVE_PSTATUS_T 1
7952 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
7954 echo $ac_n "checking for prrun_t in sys/procfs.h""... $ac_c" 1>&6
7955 echo "configure:7956: checking for prrun_t in sys/procfs.h" >&5
7956 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prrun_t'+set}'`\" = set"; then
7957 echo $ac_n "(cached) $ac_c" 1>&6
7959 cat > conftest.
$ac_ext <<EOF
7960 #line 7961 "configure"
7961 #include "confdefs.h"
7964 #include <sys/procfs.h>
7969 if { (eval echo configure
:7970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7971 bfd_cv_have_sys_procfs_type_prrun_t
=yes
7973 echo "configure: failed program was:" >&5
7974 cat conftest.
$ac_ext >&5
7976 bfd_cv_have_sys_procfs_type_prrun_t
=no
7982 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
7983 cat >> confdefs.h
<<\EOF
7984 #define HAVE_PRRUN_T 1
7988 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prrun_t" 1>&6
7990 echo $ac_n "checking for gregset_t in sys/procfs.h""... $ac_c" 1>&6
7991 echo "configure:7992: checking for gregset_t in sys/procfs.h" >&5
7992 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_gregset_t'+set}'`\" = set"; then
7993 echo $ac_n "(cached) $ac_c" 1>&6
7995 cat > conftest.
$ac_ext <<EOF
7996 #line 7997 "configure"
7997 #include "confdefs.h"
8000 #include <sys/procfs.h>
8005 if { (eval echo configure
:8006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8007 bfd_cv_have_sys_procfs_type_gregset_t
=yes
8009 echo "configure: failed program was:" >&5
8010 cat conftest.
$ac_ext >&5
8012 bfd_cv_have_sys_procfs_type_gregset_t
=no
8018 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
8019 cat >> confdefs.h
<<\EOF
8020 #define HAVE_GREGSET_T 1
8024 echo "$ac_t""$bfd_cv_have_sys_procfs_type_gregset_t" 1>&6
8026 echo $ac_n "checking for fpregset_t in sys/procfs.h""... $ac_c" 1>&6
8027 echo "configure:8028: checking for fpregset_t in sys/procfs.h" >&5
8028 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_fpregset_t'+set}'`\" = set"; then
8029 echo $ac_n "(cached) $ac_c" 1>&6
8031 cat > conftest.
$ac_ext <<EOF
8032 #line 8033 "configure"
8033 #include "confdefs.h"
8036 #include <sys/procfs.h>
8041 if { (eval echo configure
:8042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8043 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
8045 echo "configure: failed program was:" >&5
8046 cat conftest.
$ac_ext >&5
8048 bfd_cv_have_sys_procfs_type_fpregset_t
=no
8054 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
8055 cat >> confdefs.h
<<\EOF
8056 #define HAVE_FPREGSET_T 1
8060 echo "$ac_t""$bfd_cv_have_sys_procfs_type_fpregset_t" 1>&6
8062 echo $ac_n "checking for prgregset_t in sys/procfs.h""... $ac_c" 1>&6
8063 echo "configure:8064: checking for prgregset_t in sys/procfs.h" >&5
8064 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset_t'+set}'`\" = set"; then
8065 echo $ac_n "(cached) $ac_c" 1>&6
8067 cat > conftest.
$ac_ext <<EOF
8068 #line 8069 "configure"
8069 #include "confdefs.h"
8072 #include <sys/procfs.h>
8077 if { (eval echo configure
:8078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8079 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
8081 echo "configure: failed program was:" >&5
8082 cat conftest.
$ac_ext >&5
8084 bfd_cv_have_sys_procfs_type_prgregset_t
=no
8090 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8091 cat >> confdefs.h
<<\EOF
8092 #define HAVE_PRGREGSET_T 1
8096 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset_t" 1>&6
8098 echo $ac_n "checking for prfpregset_t in sys/procfs.h""... $ac_c" 1>&6
8099 echo "configure:8100: checking for prfpregset_t in sys/procfs.h" >&5
8100 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset_t'+set}'`\" = set"; then
8101 echo $ac_n "(cached) $ac_c" 1>&6
8103 cat > conftest.
$ac_ext <<EOF
8104 #line 8105 "configure"
8105 #include "confdefs.h"
8108 #include <sys/procfs.h>
8113 if { (eval echo configure
:8114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8115 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
8117 echo "configure: failed program was:" >&5
8118 cat conftest.
$ac_ext >&5
8120 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
8126 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8127 cat >> confdefs.h
<<\EOF
8128 #define HAVE_PRFPREGSET_T 1
8132 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset_t" 1>&6
8134 echo $ac_n "checking for prgregset32_t in sys/procfs.h""... $ac_c" 1>&6
8135 echo "configure:8136: checking for prgregset32_t in sys/procfs.h" >&5
8136 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prgregset32_t'+set}'`\" = set"; then
8137 echo $ac_n "(cached) $ac_c" 1>&6
8139 cat > conftest.
$ac_ext <<EOF
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8144 #include <sys/procfs.h>
8149 if { (eval echo configure
:8150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8151 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
8153 echo "configure: failed program was:" >&5
8154 cat conftest.
$ac_ext >&5
8156 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
8162 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
8163 cat >> confdefs.h
<<\EOF
8164 #define HAVE_PRGREGSET32_T 1
8168 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prgregset32_t" 1>&6
8170 echo $ac_n "checking for prfpregset32_t in sys/procfs.h""... $ac_c" 1>&6
8171 echo "configure:8172: checking for prfpregset32_t in sys/procfs.h" >&5
8172 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prfpregset32_t'+set}'`\" = set"; then
8173 echo $ac_n "(cached) $ac_c" 1>&6
8175 cat > conftest.
$ac_ext <<EOF
8176 #line 8177 "configure"
8177 #include "confdefs.h"
8180 #include <sys/procfs.h>
8185 if { (eval echo configure
:8186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8187 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
8189 echo "configure: failed program was:" >&5
8190 cat conftest.
$ac_ext >&5
8192 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
8198 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
8199 cat >> confdefs.h
<<\EOF
8200 #define HAVE_PRFPREGSET32_T 1
8204 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prfpregset32_t" 1>&6
8206 echo $ac_n "checking for lwpid_t in sys/procfs.h""... $ac_c" 1>&6
8207 echo "configure:8208: checking for lwpid_t in sys/procfs.h" >&5
8208 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpid_t'+set}'`\" = set"; then
8209 echo $ac_n "(cached) $ac_c" 1>&6
8211 cat > conftest.
$ac_ext <<EOF
8212 #line 8213 "configure"
8213 #include "confdefs.h"
8216 #include <sys/procfs.h>
8221 if { (eval echo configure
:8222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8223 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
8225 echo "configure: failed program was:" >&5
8226 cat conftest.
$ac_ext >&5
8228 bfd_cv_have_sys_procfs_type_lwpid_t
=no
8234 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
8235 cat >> confdefs.h
<<\EOF
8236 #define HAVE_LWPID_T 1
8240 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpid_t" 1>&6
8242 echo $ac_n "checking for psaddr_t in sys/procfs.h""... $ac_c" 1>&6
8243 echo "configure:8244: checking for psaddr_t in sys/procfs.h" >&5
8244 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psaddr_t'+set}'`\" = set"; then
8245 echo $ac_n "(cached) $ac_c" 1>&6
8247 cat > conftest.
$ac_ext <<EOF
8248 #line 8249 "configure"
8249 #include "confdefs.h"
8252 #include <sys/procfs.h>
8257 if { (eval echo configure
:8258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8259 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
8261 echo "configure: failed program was:" >&5
8262 cat conftest.
$ac_ext >&5
8264 bfd_cv_have_sys_procfs_type_psaddr_t
=no
8270 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8271 cat >> confdefs.h
<<\EOF
8272 #define HAVE_PSADDR_T 1
8276 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psaddr_t" 1>&6
8278 echo $ac_n "checking for prsysent_t in sys/procfs.h""... $ac_c" 1>&6
8279 echo "configure:8280: checking for prsysent_t in sys/procfs.h" >&5
8280 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prsysent_t'+set}'`\" = set"; then
8281 echo $ac_n "(cached) $ac_c" 1>&6
8283 cat > conftest.
$ac_ext <<EOF
8284 #line 8285 "configure"
8285 #include "confdefs.h"
8288 #include <sys/procfs.h>
8293 if { (eval echo configure
:8294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8295 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
8297 echo "configure: failed program was:" >&5
8298 cat conftest.
$ac_ext >&5
8300 bfd_cv_have_sys_procfs_type_prsysent_t
=no
8306 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
8307 cat >> confdefs.h
<<\EOF
8308 #define HAVE_PRSYSENT_T 1
8312 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prsysent_t" 1>&6
8314 echo $ac_n "checking for pr_sigset_t in sys/procfs.h""... $ac_c" 1>&6
8315 echo "configure:8316: checking for pr_sigset_t in sys/procfs.h" >&5
8316 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigset_t'+set}'`\" = set"; then
8317 echo $ac_n "(cached) $ac_c" 1>&6
8319 cat > conftest.
$ac_ext <<EOF
8320 #line 8321 "configure"
8321 #include "confdefs.h"
8324 #include <sys/procfs.h>
8329 if { (eval echo configure
:8330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8331 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
8333 echo "configure: failed program was:" >&5
8334 cat conftest.
$ac_ext >&5
8336 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
8342 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
8343 cat >> confdefs.h
<<\EOF
8344 #define HAVE_PR_SIGSET_T 1
8348 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigset_t" 1>&6
8350 echo $ac_n "checking for pr_sigaction64_t in sys/procfs.h""... $ac_c" 1>&6
8351 echo "configure:8352: checking for pr_sigaction64_t in sys/procfs.h" >&5
8352 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_sigaction64_t'+set}'`\" = set"; then
8353 echo $ac_n "(cached) $ac_c" 1>&6
8355 cat > conftest.
$ac_ext <<EOF
8356 #line 8357 "configure"
8357 #include "confdefs.h"
8360 #include <sys/procfs.h>
8362 pr_sigaction64_t avar
8365 if { (eval echo configure
:8366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8367 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
8369 echo "configure: failed program was:" >&5
8370 cat conftest.
$ac_ext >&5
8372 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
8378 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
8379 cat >> confdefs.h
<<\EOF
8380 #define HAVE_PR_SIGACTION64_T 1
8384 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" 1>&6
8386 echo $ac_n "checking for pr_siginfo64_t in sys/procfs.h""... $ac_c" 1>&6
8387 echo "configure:8388: checking for pr_siginfo64_t in sys/procfs.h" >&5
8388 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pr_siginfo64_t'+set}'`\" = set"; then
8389 echo $ac_n "(cached) $ac_c" 1>&6
8391 cat > conftest.
$ac_ext <<EOF
8392 #line 8393 "configure"
8393 #include "confdefs.h"
8396 #include <sys/procfs.h>
8401 if { (eval echo configure
:8402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8403 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
8405 echo "configure: failed program was:" >&5
8406 cat conftest.
$ac_ext >&5
8408 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
8414 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
8415 cat >> confdefs.h
<<\EOF
8416 #define HAVE_PR_SIGINFO64_T 1
8420 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" 1>&6
8426 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8427 echo $ac_n "checking whether prfpregset_t type is broken""... $ac_c" 1>&6
8428 echo "configure:8429: checking whether prfpregset_t type is broken" >&5
8429 if eval "test \"`echo '$''{'gdb_cv_prfpregset_t_broken'+set}'`\" = set"; then
8430 echo $ac_n "(cached) $ac_c" 1>&6
8432 if test "$cross_compiling" = yes; then
8433 gdb_cv_prfpregset_t_broken
=yes
8435 cat > conftest.
$ac_ext <<EOF
8436 #line 8437 "configure"
8437 #include "confdefs.h"
8438 #include <sys/procfs.h>
8441 if (sizeof (prfpregset_t) == sizeof (void *))
8446 if { (eval echo configure
:8447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8448 gdb_cv_prfpregset_t_broken
=no
8450 echo "configure: failed program was:" >&5
8451 cat conftest.
$ac_ext >&5
8453 gdb_cv_prfpregset_t_broken
=yes
8460 echo "$ac_t""$gdb_cv_prfpregset_t_broken" 1>&6
8461 if test $gdb_cv_prfpregset_t_broken = yes; then
8462 cat >> confdefs.h
<<\EOF
8463 #define PRFPREGSET_T_BROKEN 1
8470 echo $ac_n "checking for PIOCSET ioctl entry in sys/procfs.h""... $ac_c" 1>&6
8471 echo "configure:8472: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
8472 if eval "test \"`echo '$''{'gdb_cv_have_procfs_piocset'+set}'`\" = set"; then
8473 echo $ac_n "(cached) $ac_c" 1>&6
8475 cat > conftest.
$ac_ext <<EOF
8476 #line 8477 "configure"
8477 #include "confdefs.h"
8479 #include <sys/types.h>
8480 #include <sys/procfs.h>
8485 dummy = ioctl(0, PIOCSET, &dummy);
8489 if { (eval echo configure
:8490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8491 gdb_cv_have_procfs_piocset
=yes
8493 echo "configure: failed program was:" >&5
8494 cat conftest.
$ac_ext >&5
8496 gdb_cv_have_procfs_piocset
=no
8501 echo "$ac_t""$gdb_cv_have_procfs_piocset" 1>&6
8502 if test $gdb_cv_have_procfs_piocset = yes; then
8503 cat >> confdefs.h
<<\EOF
8504 #define HAVE_PROCFS_PIOCSET 1
8510 if test ${host} = ${target} ; then
8512 echo $ac_n "checking for member l_addr in struct link_map""... $ac_c" 1>&6
8513 echo "configure:8514: checking for member l_addr in struct link_map" >&5
8514 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_l_members'+set}'`\" = set"; then
8515 echo $ac_n "(cached) $ac_c" 1>&6
8517 cat > conftest.
$ac_ext <<EOF
8518 #line 8519 "configure"
8519 #include "confdefs.h"
8522 struct link_map lm; (void) lm.l_addr;
8525 if { (eval echo configure
:8526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8527 gdb_cv_have_struct_link_map_with_l_members
=yes
8529 echo "configure: failed program was:" >&5
8530 cat conftest.
$ac_ext >&5
8532 gdb_cv_have_struct_link_map_with_l_members
=no
8537 echo "$ac_t""$gdb_cv_have_struct_link_map_with_l_members" 1>&6
8538 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
8539 cat >> confdefs.h
<<\EOF
8540 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
8546 echo $ac_n "checking for member lm_addr in struct link_map""... $ac_c" 1>&6
8547 echo "configure:8548: checking for member lm_addr in struct link_map" >&5
8548 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map_with_lm_members'+set}'`\" = set"; then
8549 echo $ac_n "(cached) $ac_c" 1>&6
8551 cat > conftest.
$ac_ext <<EOF
8552 #line 8553 "configure"
8553 #include "confdefs.h"
8554 #include <sys/types.h>
8557 struct link_map lm; (void) lm.lm_addr;
8560 if { (eval echo configure
:8561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8562 gdb_cv_have_struct_link_map_with_lm_members
=yes
8564 echo "configure: failed program was:" >&5
8565 cat conftest.
$ac_ext >&5
8567 gdb_cv_have_struct_link_map_with_lm_members
=no
8572 echo "$ac_t""$gdb_cv_have_struct_link_map_with_lm_members" 1>&6
8573 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
8574 cat >> confdefs.h
<<\EOF
8575 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
8581 echo $ac_n "checking for member som_addr in struct so_map""... $ac_c" 1>&6
8582 echo "configure:8583: checking for member som_addr in struct so_map" >&5
8583 if eval "test \"`echo '$''{'gdb_cv_have_struct_so_map_with_som_members'+set}'`\" = set"; then
8584 echo $ac_n "(cached) $ac_c" 1>&6
8586 cat > conftest.
$ac_ext <<EOF
8587 #line 8588 "configure"
8588 #include "confdefs.h"
8589 #include <sys/types.h>
8595 struct so_map lm; (void) lm.som_addr;
8598 if { (eval echo configure
:8599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8600 gdb_cv_have_struct_so_map_with_som_members
=yes
8602 echo "configure: failed program was:" >&5
8603 cat conftest.
$ac_ext >&5
8605 gdb_cv_have_struct_so_map_with_som_members
=no
8610 echo "$ac_t""$gdb_cv_have_struct_so_map_with_som_members" 1>&6
8611 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
8612 cat >> confdefs.h
<<\EOF
8613 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
8619 echo $ac_n "checking for struct link_map32 in sys/link.h""... $ac_c" 1>&6
8620 echo "configure:8621: checking for struct link_map32 in sys/link.h" >&5
8621 if eval "test \"`echo '$''{'gdb_cv_have_struct_link_map32'+set}'`\" = set"; then
8622 echo $ac_n "(cached) $ac_c" 1>&6
8624 cat > conftest.
$ac_ext <<EOF
8625 #line 8626 "configure"
8626 #include "confdefs.h"
8628 #include <sys/link.h>
8630 struct link_map32 l;
8633 if { (eval echo configure
:8634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8635 gdb_cv_have_struct_link_map32
=yes
8637 echo "configure: failed program was:" >&5
8638 cat conftest.
$ac_ext >&5
8640 gdb_cv_have_struct_link_map32
=no
8645 echo "$ac_t""$gdb_cv_have_struct_link_map32" 1>&6
8646 if test $gdb_cv_have_struct_link_map32 = yes; then
8647 cat >> confdefs.h
<<\EOF
8648 #define HAVE_STRUCT_LINK_MAP32 1
8651 cat >> confdefs.h
<<\EOF
8652 #define _SYSCALL32 1
8659 echo $ac_n "checking for long long support in compiler""... $ac_c" 1>&6
8660 echo "configure:8661: checking for long long support in compiler" >&5
8661 if eval "test \"`echo '$''{'gdb_cv_c_long_long'+set}'`\" = set"; then
8662 echo $ac_n "(cached) $ac_c" 1>&6
8664 cat > conftest.
$ac_ext <<EOF
8665 #line 8666 "configure"
8666 #include "confdefs.h"
8670 extern long long foo;
8671 switch (foo & 2) { case 0: return 1; }
8675 if { (eval echo configure
:8676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8677 gdb_cv_c_long_long
=yes
8679 echo "configure: failed program was:" >&5
8680 cat conftest.
$ac_ext >&5
8682 gdb_cv_c_long_long
=no
8687 echo "$ac_t""$gdb_cv_c_long_long" 1>&6
8688 if test $gdb_cv_c_long_long = yes; then
8689 cat >> confdefs.h
<<\EOF
8690 #define CC_HAS_LONG_LONG 1
8696 echo $ac_n "checking for long long support in printf""... $ac_c" 1>&6
8697 echo "configure:8698: checking for long long support in printf" >&5
8698 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_long'+set}'`\" = set"; then
8699 echo $ac_n "(cached) $ac_c" 1>&6
8701 if test "$cross_compiling" = yes; then
8702 gdb_cv_printf_has_long_long
=no
8704 cat > conftest.
$ac_ext <<EOF
8705 #line 8706 "configure"
8706 #include "confdefs.h"
8711 l = (l << 16) + 0x0123;
8712 l = (l << 16) + 0x4567;
8713 l = (l << 16) + 0x89ab;
8714 l = (l << 16) + 0xcdef;
8715 sprintf (buf, "0x%016llx", l);
8716 return (strcmp ("0x0123456789abcdef", buf));
8719 if { (eval echo configure
:8720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8721 gdb_cv_printf_has_long_long
=yes
8723 echo "configure: failed program was:" >&5
8724 cat conftest.
$ac_ext >&5
8726 gdb_cv_printf_has_long_long
=no
8733 if test $gdb_cv_printf_has_long_long = yes; then
8734 cat >> confdefs.h
<<\EOF
8735 #define PRINTF_HAS_LONG_LONG 1
8739 echo "$ac_t""$gdb_cv_printf_has_long_long" 1>&6
8742 echo $ac_n "checking for long double support in compiler""... $ac_c" 1>&6
8743 echo "configure:8744: checking for long double support in compiler" >&5
8744 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
8745 echo $ac_n "(cached) $ac_c" 1>&6
8747 cat > conftest.
$ac_ext <<EOF
8748 #line 8749 "configure"
8749 #include "confdefs.h"
8755 if { (eval echo configure
:8756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8757 ac_cv_c_long_double
=yes
8759 echo "configure: failed program was:" >&5
8760 cat conftest.
$ac_ext >&5
8762 ac_cv_c_long_double
=no
8767 echo "$ac_t""$ac_cv_c_long_double" 1>&6
8768 if test $ac_cv_c_long_double = yes; then
8769 cat >> confdefs.h
<<\EOF
8770 #define HAVE_LONG_DOUBLE 1
8776 echo $ac_n "checking for long double support in printf""... $ac_c" 1>&6
8777 echo "configure:8778: checking for long double support in printf" >&5
8778 if eval "test \"`echo '$''{'gdb_cv_printf_has_long_double'+set}'`\" = set"; then
8779 echo $ac_n "(cached) $ac_c" 1>&6
8781 if test "$cross_compiling" = yes; then
8782 gdb_cv_printf_has_long_double
=no
8784 cat > conftest.
$ac_ext <<EOF
8785 #line 8786 "configure"
8786 #include "confdefs.h"
8790 long double f = 3.141592653;
8791 sprintf (buf, "%Lg", f);
8792 return (strncmp ("3.14159", buf, 7));
8795 if { (eval echo configure
:8796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8797 gdb_cv_printf_has_long_double
=yes
8799 echo "configure: failed program was:" >&5
8800 cat conftest.
$ac_ext >&5
8802 gdb_cv_printf_has_long_double
=no
8809 if test $gdb_cv_printf_has_long_double = yes; then
8810 cat >> confdefs.h
<<\EOF
8811 #define PRINTF_HAS_LONG_DOUBLE 1
8815 echo "$ac_t""$gdb_cv_printf_has_long_double" 1>&6
8818 echo $ac_n "checking for long double support in scanf""... $ac_c" 1>&6
8819 echo "configure:8820: checking for long double support in scanf" >&5
8820 if eval "test \"`echo '$''{'gdb_cv_scanf_has_long_double'+set}'`\" = set"; then
8821 echo $ac_n "(cached) $ac_c" 1>&6
8823 if test "$cross_compiling" = yes; then
8824 gdb_cv_scanf_has_long_double
=no
8826 cat > conftest.
$ac_ext <<EOF
8827 #line 8828 "configure"
8828 #include "confdefs.h"
8831 char *buf = "3.141592653";
8833 sscanf (buf, "%Lg", &f);
8834 return !(f > 3.14159 && f < 3.14160);
8837 if { (eval echo configure
:8838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8839 gdb_cv_scanf_has_long_double
=yes
8841 echo "configure: failed program was:" >&5
8842 cat conftest.
$ac_ext >&5
8844 gdb_cv_scanf_has_long_double
=no
8851 if test $gdb_cv_scanf_has_long_double = yes; then
8852 cat >> confdefs.h
<<\EOF
8853 #define SCANF_HAS_LONG_DOUBLE 1
8857 echo "$ac_t""$gdb_cv_scanf_has_long_double" 1>&6
8861 echo $ac_n "checking for -bbigtoc option""... $ac_c" 1>&6
8862 echo "configure:8863: checking for -bbigtoc option" >&5
8863 if eval "test \"`echo '$''{'gdb_cv_bigtoc'+set}'`\" = set"; then
8864 echo $ac_n "(cached) $ac_c" 1>&6
8867 SAVE_LDFLAGS
=$LDFLAGS
8870 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8871 *) gdb_cv_bigtoc
=-bbigtoc ;;
8874 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8875 cat > conftest.
$ac_ext <<EOF
8876 #line 8877 "configure"
8877 #include "confdefs.h"
8883 if { (eval echo configure
:8884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8886 echo "configure: failed program was:" >&5
8887 cat conftest.
$ac_ext >&5
8895 echo "$ac_t""$gdb_cv_bigtoc" 1>&6
8896 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
8902 if test ${build} = ${host} -a ${host} = ${target} ; then
8905 echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
8906 echo "configure:8907: checking for HPUX/OSF thread support" >&5
8907 if test -f /usr
/include
/dce
/cma_config.h
; then
8908 if test "$GCC" = "yes" ; then
8909 echo "$ac_t""yes" 1>&6
8910 cat >> confdefs.h
<<\EOF
8911 #define HAVE_HPUX_THREAD_SUPPORT 1
8914 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} hpux-thread.o"
8915 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
8917 echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
8920 echo "$ac_t""no" 1>&6
8924 # See if thread_db library is around for Solaris thread debugging.
8925 # Note that we must explicitly test for version 1 of the library
8926 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
8928 echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
8929 echo "configure:8930: checking for Solaris thread debugging library" >&5
8930 if test -f /usr
/lib
/libthread_db.so
.1 ; then
8931 echo "$ac_t""yes" 1>&6
8932 cat >> confdefs.h
<<\EOF
8933 #define HAVE_THREAD_DB_LIB 1
8936 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} sol-thread.o"
8937 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
8938 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8939 echo "configure:8940: checking for dlopen in -ldl" >&5
8940 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
8941 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8942 echo $ac_n "(cached) $ac_c" 1>&6
8944 ac_save_LIBS
="$LIBS"
8946 cat > conftest.
$ac_ext <<EOF
8947 #line 8948 "configure"
8948 #include "confdefs.h"
8949 /* Override any gcc2 internal prototype to avoid an error. */
8950 /* We use char because int might match the return type of a gcc2
8951 builtin and then its argument prototype would still apply. */
8958 if { (eval echo configure
:8959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8960 eval "ac_cv_lib_$ac_lib_var=yes"
8962 echo "configure: failed program was:" >&5
8963 cat conftest.
$ac_ext >&5
8965 eval "ac_cv_lib_$ac_lib_var=no"
8968 LIBS
="$ac_save_LIBS"
8971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8972 echo "$ac_t""yes" 1>&6
8973 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8974 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8975 cat >> confdefs.h
<<EOF
8976 #define $ac_tr_lib 1
8982 echo "$ac_t""no" 1>&6
8985 if test "$GCC" = "yes" ; then
8986 # The GNU linker requires the -export-dynamic option to make
8987 # all symbols visible in the dynamic symbol table.
8988 hold_ldflags
=$LDFLAGS
8989 echo $ac_n "checking for the ld -export-dynamic flag""... $ac_c" 1>&6
8990 echo "configure:8991: checking for the ld -export-dynamic flag" >&5
8991 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
8992 cat > conftest.
$ac_ext <<EOF
8993 #line 8994 "configure"
8994 #include "confdefs.h"
9000 if { (eval echo configure
:9001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9004 echo "configure: failed program was:" >&5
9005 cat conftest.
$ac_ext >&5
9010 LDFLAGS
=$hold_ldflags
9011 echo "$ac_t""$found" 1>&6
9012 if test $found = yes; then
9013 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
9016 # Sun randomly tweaked the prototypes in <proc_service.h>
9018 echo $ac_n "checking if <proc_service.h> is old""... $ac_c" 1>&6
9019 echo "configure:9020: checking if <proc_service.h> is old" >&5
9020 if eval "test \"`echo '$''{'gdb_cv_proc_service_is_old'+set}'`\" = set"; then
9021 echo $ac_n "(cached) $ac_c" 1>&6
9024 cat > conftest.
$ac_ext <<EOF
9025 #line 9026 "configure"
9026 #include "confdefs.h"
9028 #include <proc_service.h>
9030 (struct ps_prochandle*, psaddr_t, const void*, size_t);
9036 if { (eval echo configure
:9037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9038 gdb_cv_proc_service_is_old
=no
9040 echo "configure: failed program was:" >&5
9041 cat conftest.
$ac_ext >&5
9043 gdb_cv_proc_service_is_old
=yes
9049 echo "$ac_t""$gdb_cv_proc_service_is_old" 1>&6
9050 if test $gdb_cv_proc_service_is_old = yes; then
9051 cat >> confdefs.h
<<\EOF
9052 #define PROC_SERVICE_IS_OLD 1
9057 echo "$ac_t""no" 1>&6
9061 echo $ac_n "checking for AiX thread debugging library""... $ac_c" 1>&6
9062 echo "configure:9063: checking for AiX thread debugging library" >&5
9063 if eval "test \"`echo '$''{'gdb_cv_have_aix_thread_debug'+set}'`\" = set"; then
9064 echo $ac_n "(cached) $ac_c" 1>&6
9066 cat > conftest.
$ac_ext <<EOF
9067 #line 9068 "configure"
9068 #include "confdefs.h"
9069 #include <sys/pthdebug.h>
9071 #ifndef PTHDB_VERSION_3
9076 if { (eval echo configure
:9077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9078 gdb_cv_have_aix_thread_debug
=yes
9080 echo "configure: failed program was:" >&5
9081 cat conftest.
$ac_ext >&5
9083 gdb_cv_have_aix_thread_debug
=no
9088 echo "$ac_t""$gdb_cv_have_aix_thread_debug" 1>&6
9089 if test $gdb_cv_have_aix_thread_debug = yes; then
9090 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
9091 CONFIG_LIB_OBS
="${CONFIG_LIB_OBS} aix-thread.o"
9092 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
9099 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
9100 echo $ac_n "checking whether <thread_db.h> has TD_NOTALLOC""... $ac_c" 1>&6
9101 echo "configure:9102: checking whether <thread_db.h> has TD_NOTALLOC" >&5
9102 if eval "test \"`echo '$''{'gdb_cv_thread_db_h_has_td_notalloc'+set}'`\" = set"; then
9103 echo $ac_n "(cached) $ac_c" 1>&6
9105 cat > conftest.
$ac_ext <<EOF
9106 #line 9107 "configure"
9107 #include "confdefs.h"
9108 #include <thread_db.h>
9110 int i = TD_NOTALLOC;
9113 if { (eval echo configure
:9114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9115 gdb_cv_thread_db_h_has_td_notalloc
=yes
9117 echo "configure: failed program was:" >&5
9118 cat conftest.
$ac_ext >&5
9120 gdb_cv_thread_db_h_has_td_notalloc
=no
9127 echo "$ac_t""$gdb_cv_thread_db_h_has_td_notalloc" 1>&6
9129 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
9130 cat >> confdefs.h
<<\EOF
9131 #define THREAD_DB_HAS_TD_NOTALLOC 1
9136 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
9137 echo $ac_n "checking whether <sys/syscall.h> has __NR_tkill""... $ac_c" 1>&6
9138 echo "configure:9139: checking whether <sys/syscall.h> has __NR_tkill" >&5
9139 if eval "test \"`echo '$''{'gdb_cv_sys_syscall_h_has_tkill'+set}'`\" = set"; then
9140 echo $ac_n "(cached) $ac_c" 1>&6
9142 cat > conftest.
$ac_ext <<EOF
9143 #line 9144 "configure"
9144 #include "confdefs.h"
9145 #include <sys/syscall.h>
9150 if { (eval echo configure
:9151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9152 gdb_cv_sys_syscall_h_has_tkill
=yes
9154 echo "configure: failed program was:" >&5
9155 cat conftest.
$ac_ext >&5
9157 gdb_cv_sys_syscall_h_has_tkill
=no
9164 echo "$ac_t""$gdb_cv_sys_syscall_h_has_tkill" 1>&6
9166 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
9167 cat >> confdefs.h
<<\EOF
9168 #define HAVE_TKILL_SYSCALL 1
9174 # Check whether --with-sysroot or --without-sysroot was given.
9175 if test "${with_sysroot+set}" = set; then
9176 withval
="$with_sysroot"
9178 case ${with_sysroot} in
9179 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
9180 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
9183 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
9185 if test "x$exec_prefix" = xNONE
; then
9186 if test "x$prefix" = xNONE
; then
9187 test_prefix
=/usr
/local
9192 test_prefix
=$exec_prefix
9194 case ${TARGET_SYSTEM_ROOT} in
9195 "${test_prefix}"|
"${test_prefix}/"*|\
9196 '${exec_prefix}'|
'${exec_prefix}/'*)
9197 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
9198 TARGET_SYSTEM_ROOT_DEFINE
="$t"
9205 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
9212 # NOTE: Don't add -Wall or -Wunused, they both include
9213 # -Wunused-parameter which reports bogus warnings.
9214 # NOTE: If you add to this list, remember to update
9215 # gdb/doc/gdbint.texinfo.
9216 build_warnings
="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
9217 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
9219 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
9220 # -Wunused-function -Wunused-variable -Wunused-value
9221 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
9222 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
9223 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
9224 # -Woverloaded-virtual -Winline -Werror"
9225 # Check whether --enable-build-warnings or --disable-build-warnings was given.
9226 if test "${enable_build_warnings+set}" = set; then
9227 enableval
="$enable_build_warnings"
9228 case "${enableval}" in
9230 no
) build_warnings
="-w";;
9231 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9232 build_warnings
="${build_warnings} ${t}";;
9233 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9234 build_warnings
="${t} ${build_warnings}";;
9235 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9237 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9238 echo "Setting compiler warning flags = $build_warnings" 6>&1
9241 # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
9242 if test "${enable_gdb_build_warnings+set}" = set; then
9243 enableval
="$enable_gdb_build_warnings"
9244 case "${enableval}" in
9246 no
) build_warnings
="-w";;
9247 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9248 build_warnings
="${build_warnings} ${t}";;
9249 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9250 build_warnings
="${t} ${build_warnings}";;
9251 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9253 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
9254 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
9259 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
9261 echo $ac_n "checking compiler warning flags""... $ac_c" 1>&6
9262 echo "configure:9263: checking compiler warning flags" >&5
9263 # Separate out the -Werror flag as some files just cannot be
9264 # compiled with it enabled.
9265 for w
in ${build_warnings}; do
9267 -Werr*) WERROR_CFLAGS
=-Werror ;;
9268 *) # Check that GCC accepts it
9269 saved_CFLAGS
="$CFLAGS"
9271 cat > conftest.
$ac_ext <<EOF
9272 #line 9273 "configure"
9273 #include "confdefs.h"
9279 if { (eval echo configure
:9280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9281 WARN_CFLAGS
="${WARN_CFLAGS} $w"
9283 echo "configure: failed program was:" >&5
9284 cat conftest.
$ac_ext >&5
9287 CFLAGS
="$saved_CFLAGS"
9290 echo "$ac_t""${WARN_CFLAGS}${WERROR_CFLAGS}" 1>&6
9295 # In the Cygwin environment, we need some additional flags.
9296 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
9297 echo "configure:9298: checking for cygwin" >&5
9298 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
9299 echo $ac_n "(cached) $ac_c" 1>&6
9301 cat > conftest.
$ac_ext <<EOF
9302 #line 9303 "configure"
9303 #include "confdefs.h"
9305 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
9309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9310 egrep "lose" >/dev
/null
2>&1; then
9312 gdb_cv_os_cygwin
=yes
9321 echo "$ac_t""$gdb_cv_os_cygwin" 1>&6
9324 SER_HARDWIRE
="ser-unix.o ser-pipe.o ser-tcp.o"
9326 *go32
* ) SER_HARDWIRE
=ser-go32.o
;;
9327 *djgpp
* ) SER_HARDWIRE
=ser-go32.o
;;
9331 # libreadline needs libuser32.a in a cygwin environment
9333 if test x
$gdb_cv_os_cygwin = xyes
; then
9334 WIN32LIBS
="-luser32"
9336 *cygwin
*) WIN32LIBS
="$WIN32LIBS -limagehlp"
9342 LIBGUI
="../libgui/src/libgui.a"
9343 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
9354 if test "${enable_gdbtk}" = "yes"; then
9356 # Gdbtk must have an absolute path to srcdir in order to run
9357 # properly when not installed.
9365 # Ok, lets find the tcl configuration
9366 # First, look for one uninstalled.
9367 # the alternative search directory is invoked by --with-tclconfig
9370 if test x
"${no_tcl}" = x
; then
9371 # we reset no_tcl in case something fails here
9373 # Check whether --with-tclconfig or --without-tclconfig was given.
9374 if test "${with_tclconfig+set}" = set; then
9375 withval
="$with_tclconfig"
9376 with_tclconfig
=${withval}
9379 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
9380 echo "configure:9381: checking for Tcl configuration" >&5
9381 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
9382 echo $ac_n "(cached) $ac_c" 1>&6
9386 # First check to see if --with-tclconfig was specified.
9387 if test x
"${with_tclconfig}" != x
; then
9388 if test -f "${with_tclconfig}/tclConfig.sh" ; then
9389 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
9391 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
9395 # then check for a private Tcl installation
9396 if test x
"${ac_cv_c_tclconfig}" = x
; then
9399 `ls -dr ../tcl[7-9]* 2>/dev/null` \
9401 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
9403 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
9404 if test -f "$i/${configdir}/tclConfig.sh" ; then
9405 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
9410 # check in a few common install locations
9411 if test x
"${ac_cv_c_tclconfig}" = x
; then
9412 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9413 if test -f "$i/tclConfig.sh" ; then
9414 ac_cv_c_tclconfig
=`(cd $i; pwd)`
9419 # check in a few other private locations
9420 if test x
"${ac_cv_c_tclconfig}" = x
; then
9423 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
9424 if test -f "$i/${configdir}/tclConfig.sh" ; then
9425 ac_cv_c_tclconfig
=`(cd $i/${configdir}; pwd)`
9433 if test x
"${ac_cv_c_tclconfig}" = x
; then
9434 TCLCONFIG
="# no Tcl configs found"
9435 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
9438 TCLCONFIG
=${ac_cv_c_tclconfig}/tclConfig.sh
9439 echo "$ac_t""found $TCLCONFIG" 1>&6
9443 if test -z "${no_tcl}"; then
9474 # Ok, lets find the tk configuration
9475 # First, look for one uninstalled.
9476 # the alternative search directory is invoked by --with-tkconfig
9479 if test x
"${no_tk}" = x
; then
9480 # we reset no_tk in case something fails here
9482 # Check whether --with-tkconfig or --without-tkconfig was given.
9483 if test "${with_tkconfig+set}" = set; then
9484 withval
="$with_tkconfig"
9485 with_tkconfig
=${withval}
9488 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
9489 echo "configure:9490: checking for Tk configuration" >&5
9490 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
9491 echo $ac_n "(cached) $ac_c" 1>&6
9495 # First check to see if --with-tkconfig was specified.
9496 if test x
"${with_tkconfig}" != x
; then
9497 if test -f "${with_tkconfig}/tkConfig.sh" ; then
9498 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
9500 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
9504 # then check for a private Tk library
9505 if test x
"${ac_cv_c_tkconfig}" = x
; then
9508 `ls -dr ../tk[4-9]* 2>/dev/null` \
9510 `ls -dr ../../tk[4-9]* 2>/dev/null` \
9512 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
9513 if test -f "$i/${configdir}/tkConfig.sh" ; then
9514 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
9519 # check in a few common install locations
9520 if test x
"${ac_cv_c_tkconfig}" = x
; then
9521 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9522 if test -f "$i/tkConfig.sh" ; then
9523 ac_cv_c_tkconfig
=`(cd $i; pwd)`
9528 # check in a few other private locations
9529 if test x
"${ac_cv_c_tkconfig}" = x
; then
9532 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
9533 if test -f "$i/${configdir}/tkConfig.sh" ; then
9534 ac_cv_c_tkconfig
=`(cd $i/${configdir}; pwd)`
9542 if test x
"${ac_cv_c_tkconfig}" = x
; then
9543 TKCONFIG
="# no Tk configs found"
9544 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
9547 TKCONFIG
=${ac_cv_c_tkconfig}/tkConfig.sh
9548 echo "$ac_t""found $TKCONFIG" 1>&6
9554 # now look for Tcl library stuff
9565 TCL_DEPS
="${tcldir}${TCL_LIB_FILE}"
9567 # If $no_tk is nonempty, then we can't do Tk, and there is no
9568 # point to doing Tcl.
9569 if test -z "${no_tk}"; then
9571 if test -f "$TKCONFIG" ; then
9589 # Ok, lets find the tcl source trees so we can use the headers
9590 # Warning: transition of version 9 to 10 will break this algorithm
9591 # because 10 sorts before 9. We also look for just tcl. We have to
9592 # be careful that we don't match stuff like tclX by accident.
9593 # the alternative search directory is involked by --with-tclinclude
9597 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
9598 echo "configure:9599: checking for Tcl private headers. dir=${configdir}" >&5
9599 # Check whether --with-tclinclude or --without-tclinclude was given.
9600 if test "${with_tclinclude+set}" = set; then
9601 withval
="$with_tclinclude"
9602 with_tclinclude
=${withval}
9605 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
9606 echo $ac_n "(cached) $ac_c" 1>&6
9609 # first check to see if --with-tclinclude was specified
9610 if test x
"${with_tclinclude}" != x
; then
9611 if test -f ${with_tclinclude}/tclInt.h
; then
9612 ac_cv_c_tclh
=`(cd ${with_tclinclude}; pwd)`
9613 elif test -f ${with_tclinclude}/generic
/tclInt.h
; then
9614 ac_cv_c_tclh
=`(cd ${with_tclinclude}/generic; pwd)`
9616 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9620 # next check if it came with Tcl configuration file
9621 if test x
"${ac_cv_c_tclconfig}" = x
; then
9622 if test -f $ac_cv_c_tclconfig/..
/generic
/tclInt.h
; then
9623 ac_cv_c_tclh
=`(cd $ac_cv_c_tclconfig/..; pwd)`
9627 # next check in private source directory
9629 # since ls returns lowest version numbers first, reverse its output
9630 if test x
"${ac_cv_c_tclh}" = x
; then
9633 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
9634 ${srcdir}/..
/..
/tcl \
9635 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
9636 ${srcdir}/..
/..
/..
/tcl \
9637 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
9638 if test -f $i/generic
/tclInt.h
; then
9639 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9644 # finally check in a few common install locations
9646 # since ls returns lowest version numbers first, reverse its output
9647 if test x
"${ac_cv_c_tclh}" = x
; then
9649 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
9650 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
9651 /usr
/local
/src
/tcl \
9652 /usr
/local
/lib
/tcl \
9653 ${prefix}/include
; do
9654 if test -f $i/generic
/tclInt.h
; then
9655 ac_cv_c_tclh
=`(cd $i/generic; pwd)`
9660 # see if one is installed
9661 if test x
"${ac_cv_c_tclh}" = x
; then
9662 ac_safe
=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
9663 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
9664 echo "configure:9665: checking for tclInt.h" >&5
9665 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9666 echo $ac_n "(cached) $ac_c" 1>&6
9668 cat > conftest.
$ac_ext <<EOF
9669 #line 9670 "configure"
9670 #include "confdefs.h"
9673 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9674 { (eval echo configure
:9675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9675 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9676 if test -z "$ac_err"; then
9678 eval "ac_cv_header_$ac_safe=yes"
9681 echo "configure: failed program was:" >&5
9682 cat conftest.
$ac_ext >&5
9684 eval "ac_cv_header_$ac_safe=no"
9688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9689 echo "$ac_t""yes" 1>&6
9690 ac_cv_c_tclh
=installed
9692 echo "$ac_t""no" 1>&6
9700 if test x
"${ac_cv_c_tclh}" = x
; then
9701 TCLHDIR
="# no Tcl private headers found"
9702 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
9704 if test x
"${ac_cv_c_tclh}" != x
; then
9706 if test x
"${ac_cv_c_tclh}" = x
"installed" ; then
9707 echo "$ac_t""is installed" 1>&6
9710 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
9711 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
9712 TCLHDIR
="-I${ac_cv_c_tclh}"
9720 # Ok, lets find the tk source trees so we can use the headers
9721 # If the directory (presumably symlink) named "tk" exists, use that one
9722 # in preference to any others. Same logic is used when choosing library
9723 # and again with Tcl. The search order is the best place to look first, then in
9724 # decreasing significance. The loop breaks if the trigger file is found.
9725 # Note the gross little conversion here of srcdir by cd'ing to the found
9726 # directory. This converts the path from a relative to an absolute, so
9727 # recursive cache variables for the path will work right. We check all
9728 # the possible paths in one loop rather than many seperate loops to speed
9730 # the alternative search directory is involked by --with-tkinclude
9733 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
9734 echo "configure:9735: checking for Tk private headers" >&5
9735 # Check whether --with-tkinclude or --without-tkinclude was given.
9736 if test "${with_tkinclude+set}" = set; then
9737 withval
="$with_tkinclude"
9738 with_tkinclude
=${withval}
9741 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
9742 echo $ac_n "(cached) $ac_c" 1>&6
9745 # first check to see if --with-tkinclude was specified
9746 if test x
"${with_tkinclude}" != x
; then
9747 if test -f ${with_tkinclude}/tk.h
; then
9748 ac_cv_c_tkh
=`(cd ${with_tkinclude}; pwd)`
9749 elif test -f ${with_tkinclude}/generic
/tk.h
; then
9750 ac_cv_c_tkh
=`(cd ${with_tkinclude}/generic; pwd)`
9752 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
9756 # next check if it came with Tk configuration file
9757 if test x
"${ac_cv_c_tkconfig}" = x
; then
9758 if test -f $ac_cv_c_tkconfig/..
/generic
/tk.h
; then
9759 ac_cv_c_tkh
=`(cd $ac_cv_c_tkconfig/..; pwd)`
9763 # next check in private source directory
9765 # since ls returns lowest version numbers first, reverse its output
9766 if test x
"${ac_cv_c_tkh}" = x
; then
9769 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
9770 ${srcdir}/..
/..
/tk \
9771 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
9772 ${srcdir}/..
/..
/..
/tk \
9773 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
9774 if test -f $i/generic
/tk.h
; then
9775 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9780 # finally check in a few common install locations
9782 # since ls returns lowest version numbers first, reverse its output
9783 if test x
"${ac_cv_c_tkh}" = x
; then
9785 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
9786 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
9789 ${prefix}/include
; do
9790 if test -f $i/generic
/tk.h
; then
9791 ac_cv_c_tkh
=`(cd $i/generic; pwd)`
9796 # see if one is installed
9797 if test x
"${ac_cv_c_tkh}" = x
; then
9798 ac_safe
=`echo "tk.h" | sed 'y%./+-%__p_%'`
9799 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
9800 echo "configure:9801: checking for tk.h" >&5
9801 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9802 echo $ac_n "(cached) $ac_c" 1>&6
9804 cat > conftest.
$ac_ext <<EOF
9805 #line 9806 "configure"
9806 #include "confdefs.h"
9809 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9810 { (eval echo configure
:9811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9811 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9812 if test -z "$ac_err"; then
9814 eval "ac_cv_header_$ac_safe=yes"
9817 echo "configure: failed program was:" >&5
9818 cat conftest.
$ac_ext >&5
9820 eval "ac_cv_header_$ac_safe=no"
9824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9825 echo "$ac_t""yes" 1>&6
9826 ac_cv_c_tkh
=installed
9828 echo "$ac_t""no" 1>&6
9836 if test x
"${ac_cv_c_tkh}" != x
; then
9838 if test x
"${ac_cv_c_tkh}" = x
"installed" ; then
9839 echo "$ac_t""is installed" 1>&6
9842 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
9843 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
9844 TKHDIR
="-I${ac_cv_c_tkh}"
9847 TKHDIR
="# no Tk directory found"
9848 echo "configure: warning: Can't find Tk private headers" 1>&2
9855 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9856 echo "configure:9857: checking for Itcl private headers. srcdir=${srcdir}" >&5
9857 if test x
"${ac_cv_c_itclh}" = x
; then
9858 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itcl
; do
9859 if test -f $i/generic
/itcl.h
; then
9860 ac_cv_c_itclh
=`(cd $i/generic; pwd)`
9865 if test x
"${ac_cv_c_itclh}" = x
; then
9866 ITCLHDIR
="# no Itcl private headers found"
9867 { echo "configure: error: Can't find Itcl private headers" 1>&2; exit 1; }
9869 if test x
"${ac_cv_c_itclh}" != x
; then
9870 ITCLHDIR
="-I${ac_cv_c_itclh}"
9872 # should always be here
9873 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
9878 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
9879 echo "configure:9880: checking for Itk private headers. srcdir=${srcdir}" >&5
9880 if test x
"${ac_cv_c_itkh}" = x
; then
9881 for i
in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/..
/itcl
/itk
; do
9882 if test -f $i/generic
/itk.h
; then
9883 ac_cv_c_itkh
=`(cd $i/generic; pwd)`
9888 if test x
"${ac_cv_c_itkh}" = x
; then
9889 ITKHDIR
="# no Itk private headers found"
9890 { echo "configure: error: Can't find Itk private headers" 1>&2; exit 1; }
9892 if test x
"${ac_cv_c_itkh}" != x
; then
9893 ITKHDIR
="-I${ac_cv_c_itkh}"
9895 # should always be here
9896 # ITKLIB="../itcl/itk/unix/libitk.a"
9902 # now look for Tk library stuff
9913 TK_DEPS
="${tkdir}${TK_LIB_FILE}"
9915 # now look for Itcl library stuff
9919 # Ok, lets find the itcl configuration
9920 # First, look for one uninstalled.
9921 # the alternative search directory is invoked by --with-itclconfig
9924 if test x
"${no_itcl}" = x
; then
9925 # we reset no_itcl in case something fails here
9927 # Check whether --with-itclconfig or --without-itclconfig was given.
9928 if test "${with_itclconfig+set}" = set; then
9929 withval
="$with_itclconfig"
9930 with_itclconfig
=${withval}
9933 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
9934 echo "configure:9935: checking for Itcl configuration" >&5
9935 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
9936 echo $ac_n "(cached) $ac_c" 1>&6
9940 # First check to see if --with-itclconfig was specified.
9941 if test x
"${with_itclconfig}" != x
; then
9942 if test -f "${with_itclconfig}/itclConfig.sh" ; then
9943 ac_cv_c_itclconfig
=`(cd ${with_itclconfig}; pwd)`
9945 { echo "configure: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" 1>&2; exit 1; }
9949 # then check for a private Itcl library
9950 if test x
"${ac_cv_c_itclconfig}" = x
; then
9953 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
9955 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
9957 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
9958 if test -f "$i/itclConfig.sh" ; then
9959 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9964 # check in a few common install locations
9965 if test x
"${ac_cv_c_itclconfig}" = x
; then
9966 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
9967 if test -f "$i/itclConfig.sh" ; then
9968 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9973 # check in a few other private locations
9974 if test x
"${ac_cv_c_itclconfig}" = x
; then
9976 ${srcdir}/..
/itcl
/itcl \
9977 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
9978 if test -f "$i/itclConfig.sh" ; then
9979 ac_cv_c_itclconfig
=`(cd $i; pwd)`
9987 if test x
"${ac_cv_c_itclconfig}" = x
; then
9988 ITCLCONFIG
="# no Itcl configs found"
9989 echo "configure: warning: Can't find Itcl configuration definitions" 1>&2
9992 ITCLCONFIG
=${ac_cv_c_itclconfig}/itclConfig.sh
9993 echo "$ac_t""found $ITCLCONFIG" 1>&6
9997 if test -z "${no_itcl}"; then
9999 if test -f "$ITCLCONFIG" ; then
10014 ITCLLIB
="${ITCL_BUILD_LIB_SPEC}"
10015 ITCL_DEPS
="${ITCL_LIB_FULL_PATH}"
10019 # now look for Itk library stuff
10022 # Ok, lets find the itk configuration
10023 # First, look for one uninstalled.
10024 # the alternative search directory is invoked by --with-itkconfig
10027 if test x
"${no_itk}" = x
; then
10028 # we reset no_itk in case something fails here
10030 # Check whether --with-itkconfig or --without-itkconfig was given.
10031 if test "${with_itkconfig+set}" = set; then
10032 withval
="$with_itkconfig"
10033 with_itkconfig
=${withval}
10036 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
10037 echo "configure:10038: checking for Itk configuration" >&5
10038 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
10039 echo $ac_n "(cached) $ac_c" 1>&6
10043 # First check to see if --with-itkconfig was specified.
10044 if test x
"${with_itkconfig}" != x
; then
10045 if test -f "${with_itkconfig}/itkConfig.sh" ; then
10046 ac_cv_c_itkconfig
=`(cd ${with_itkconfig}; pwd)`
10048 { echo "configure: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" 1>&2; exit 1; }
10052 # then check for a private Itk library
10053 if test x
"${ac_cv_c_itkconfig}" = x
; then
10056 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
10058 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
10060 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
10061 if test -f "$i/itkConfig.sh" ; then
10062 ac_cv_c_itkconfig
=`(cd $i; pwd)`
10067 # check in a few common install locations
10068 if test x
"${ac_cv_c_itkconfig}" = x
; then
10069 for i
in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10070 if test -f "$i/itkConfig.sh" ; then
10071 ac_cv_c_itkconfig
=`(cd $i; pwd)`
10076 # check in a few other private locations
10077 if test x
"${ac_cv_c_itkconfig}" = x
; then
10079 ${srcdir}/..
/itcl
/itk \
10080 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
10081 if test -f "$i/itkConfig.sh" ; then
10082 ac_cv_c_itkconfig
=`(cd $i; pwd)`
10090 if test x
"${ac_cv_c_itkconfig}" = x
; then
10091 ITKCONFIG
="# no Itk configs found"
10092 echo "configure: warning: Can't find Itk configuration definitions" 1>&2
10095 ITKCONFIG
=${ac_cv_c_itkconfig}/itkConfig.sh
10096 echo "$ac_t""found $ITKCONFIG" 1>&6
10101 if test -z "${no_itcl}"; then
10103 if test -f "$ITKCONFIG" ; then
10118 ITKLIB
="${ITK_BUILD_LIB_SPEC}"
10119 ITK_DEPS
="${ITK_LIB_FULL_PATH}"
10122 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
10123 # Tcl/Tk 8.1 require -fwritable strings. I don't
10124 # know whether 8.2 will or not, but I bet it will.
10125 # I don't have to worry about 7.x since we don't support it.
10127 if test "$GCC" = "yes"; then
10128 if test "$TCL_VERSION" != "8.0" ; then
10129 GDBTK_CFLAGS
="-fwritable-strings"
10133 # Include some libraries that Tcl and Tk want.
10134 TCL_LIBS
='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
10135 # Yes, the ordering seems wrong here. But it isn't.
10136 # TK_LIBS is the list of libraries that need to be linked
10137 # after Tcl/Tk. Note that this isn't put into LIBS. If it
10138 # were in LIBS then any link tests after this point would
10139 # try to include things like `$(LIBGUI)', which wouldn't work.
10140 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
10142 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
10143 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
10144 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
10145 CONFIG_ALL
="${CONFIG_ALL} \$(SUBDIR_GDBTK_ALL)"
10146 CONFIG_CLEAN
="${CONFIG_CLEAN} \$(SUBDIR_GDBTK_CLEAN)"
10147 CONFIG_INSTALL
="${CONFIG_INSTALL} \$(SUBDIR_GDBTK_INSTALL)"
10148 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} \$(SUBDIR_GDBTK_UNINSTALL)"
10150 if test x
$gdb_cv_os_cygwin = xyes
; then
10151 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
10152 WIN32LDAPP
="-Wl,--subsystem,console"
10153 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
10158 configdirs
="${configdirs} gdbtk"
10174 # If we find X, set shell vars x_includes and x_libraries to the
10175 # paths, otherwise set no_x=yes.
10176 # Uses ac_ vars as temps to allow command line to override cache and checks.
10177 # --without-x overrides everything else, but does not touch the cache.
10178 echo $ac_n "checking for X""... $ac_c" 1>&6
10179 echo "configure:10180: checking for X" >&5
10181 # Check whether --with-x or --without-x was given.
10182 if test "${with_x+set}" = set; then
10187 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10188 if test "x$with_x" = xno
; then
10189 # The user explicitly disabled X.
10192 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
10193 # Both variables are already set.
10196 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10197 echo $ac_n "(cached) $ac_c" 1>&6
10199 # One or both of the vars are not set, and there is no cached value.
10200 ac_x_includes
=NO ac_x_libraries
=NO
10202 if mkdir conftestdir
; then
10204 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10205 cat > Imakefile
<<'EOF'
10207 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10209 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
10210 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10211 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10212 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10213 for ac_extension
in a so sl
; do
10214 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
10215 test -f $ac_im_libdir/libX11.
$ac_extension; then
10216 ac_im_usrlibdir
=$ac_im_libdir; break
10219 # Screen out bogus values from the imake configuration. They are
10220 # bogus both because they are the default anyway, and because
10221 # using them would break gcc on systems where it needs fixed includes.
10222 case "$ac_im_incroot" in
10224 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
10226 case "$ac_im_usrlibdir" in
10227 /usr
/lib |
/lib
) ;;
10228 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
10235 if test "$ac_x_includes" = NO
; then
10236 # Guess where to find include files, by looking for this one X11 .h file.
10237 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
10239 # First, try using that file with no special directory specified.
10240 cat > conftest.
$ac_ext <<EOF
10241 #line 10242 "configure"
10242 #include "confdefs.h"
10243 #include <$x_direct_test_include>
10245 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10246 { (eval echo configure
:10247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10247 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10248 if test -z "$ac_err"; then
10250 # We can compile using X headers with no special include directory.
10254 echo "configure: failed program was:" >&5
10255 cat conftest.
$ac_ext >&5
10257 # Look for the header file in a standard set of common directories.
10258 # Check X11 before X11Rn because it is often a symlink to the current release.
10261 /usr
/X11R
6/include \
10262 /usr
/X11R
5/include \
10263 /usr
/X11R
4/include \
10266 /usr
/include
/X11R6 \
10267 /usr
/include
/X11R5 \
10268 /usr
/include
/X11R4 \
10270 /usr
/local
/X11
/include \
10271 /usr
/local
/X11R
6/include \
10272 /usr
/local
/X11R
5/include \
10273 /usr
/local
/X11R
4/include \
10275 /usr
/local
/include
/X11 \
10276 /usr
/local
/include
/X11R6 \
10277 /usr
/local
/include
/X11R5 \
10278 /usr
/local
/include
/X11R4 \
10280 /usr
/X386
/include \
10281 /usr
/x386
/include \
10282 /usr
/XFree86
/include
/X11 \
10285 /usr
/local
/include \
10286 /usr
/unsupported
/include \
10287 /usr
/athena
/include \
10288 /usr
/local
/x11r
5/include \
10289 /usr
/lpp
/Xamples
/include \
10291 /usr
/openwin
/include \
10292 /usr
/openwin
/share
/include \
10295 if test -r "$ac_dir/$x_direct_test_include"; then
10296 ac_x_includes
=$ac_dir
10302 fi # $ac_x_includes = NO
10304 if test "$ac_x_libraries" = NO
; then
10305 # Check for the libraries.
10307 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
10308 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
10310 # See if we find them without any special options.
10311 # Don't add to $LIBS permanently.
10312 ac_save_LIBS
="$LIBS"
10313 LIBS
="-l$x_direct_test_library $LIBS"
10314 cat > conftest.
$ac_ext <<EOF
10315 #line 10316 "configure"
10316 #include "confdefs.h"
10319 ${x_direct_test_function}()
10322 if { (eval echo configure
:10323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10324 LIBS
="$ac_save_LIBS"
10325 # We can link X programs with no special library path.
10328 echo "configure: failed program was:" >&5
10329 cat conftest.
$ac_ext >&5
10331 LIBS
="$ac_save_LIBS"
10332 # First see if replacing the include by lib works.
10333 # Check X11 before X11Rn because it is often a symlink to the current release.
10334 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
10345 /usr
/local
/X11
/lib \
10346 /usr
/local
/X11R
6/lib \
10347 /usr
/local
/X11R
5/lib \
10348 /usr
/local
/X11R
4/lib \
10350 /usr
/local
/lib
/X11 \
10351 /usr
/local
/lib
/X11R6 \
10352 /usr
/local
/lib
/X11R5 \
10353 /usr
/local
/lib
/X11R4 \
10357 /usr
/XFree86
/lib
/X11 \
10361 /usr
/unsupported
/lib \
10363 /usr
/local
/x11r
5/lib \
10364 /usr
/lpp
/Xamples
/lib \
10368 /usr
/openwin
/share
/lib \
10371 for ac_extension
in a so sl
; do
10372 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
10373 ac_x_libraries
=$ac_dir
10380 fi # $ac_x_libraries = NO
10382 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
10383 # Didn't find X anywhere. Cache the known absence of X.
10384 ac_cv_have_x
="have_x=no"
10386 # Record where we found X for the cache.
10387 ac_cv_have_x
="have_x=yes \
10388 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10392 eval "$ac_cv_have_x"
10395 if test "$have_x" != yes; then
10396 echo "$ac_t""$have_x" 1>&6
10399 # If each of the values was on the command line, it overrides each guess.
10400 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
10401 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
10402 # Update the cache value to reflect the command line values.
10403 ac_cv_have_x
="have_x=yes \
10404 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10405 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10410 # Unlike the sim directory, whether a simulator is linked is controlled by
10411 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
10412 # This code just checks for a few cases where we'd like to ignore those
10413 # definitions, even when they're present in the '.mt' file. These cases
10414 # are when --disable-sim is specified, or if the simulator directory is
10415 # not part of the source tree.
10417 # Check whether --enable-sim or --disable-sim was given.
10418 if test "${enable_sim+set}" = set; then
10419 enableval
="$enable_sim"
10420 echo "enable_sim = $enable_sim";
10421 echo "enableval = ${enableval}";
10422 case "${enableval}" in
10423 yes) ignore_sim
=false
;;
10424 no
) ignore_sim
=true
;;
10425 *) ignore_sim
=false
;;
10432 if test ! -d "${srcdir}/../sim"; then
10436 if test "${ignore_sim}" = "true"; then
10438 IGNORE_SIM_OBS
="SIM_OBS="
10442 cat >> confdefs.h
<<\EOF
10461 # target_subdir is used by the testsuite to find the target libraries.
10463 if test "${host}" != "${target}"; then
10464 target_subdir
="${target_alias}/"
10469 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
10470 if test ! -f ${host_makefile_frag}; then
10471 # When building a native debuger the .mh file containing things
10472 # like NATDEPFILES is needed. Cross debuggers don't need .mh
10473 # since it no longer contains anything useful.
10474 if test "${target}" = "${host}"; then
10475 { echo "configure: error: "*** Gdb does not support native target
${host}"" 1>&2; exit 1; }
10477 host_makefile_frag
=/dev
/null
10480 frags
="$frags $host_makefile_frag"
10482 target_makefile_frag
=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
10483 if test ! -f ${target_makefile_frag}; then
10484 { echo "configure: error: "*** Gdb does not support target
${target}"" 1>&2; exit 1; }
10486 frags
="$frags $target_makefile_frag"
10493 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10494 ' ${host_makefile_frag}`
10496 targetfile
=`sed -n '
10497 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10498 ' ${target_makefile_frag}`
10500 if test "${target}" = "${host}"; then
10501 # We pick this up from the host configuration file (.mh) because we
10502 # do not have a native configuration Makefile fragment.
10503 nativefile
=`sed -n '
10504 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
10505 ' ${host_makefile_frag}`
10509 if test x
"${gdb_osabi}" != x
; then
10510 cat >> confdefs.h
<<EOF
10511 #define GDB_OSABI_DEFAULT $gdb_osabi
10516 # Enable multi-ice-gdb-server.
10517 # Check whether --enable-multi-ice or --disable-multi-ice was given.
10518 if test "${enable_multi_ice+set}" = set; then
10519 enableval
="$enable_multi_ice"
10523 *) { echo "configure: error: bad value $enableval for --enable-multi-ice" 1>&2; exit 1; } ;;
10527 if test "x$enable_multi_ice" = xyes
; then
10528 configdirs
="$configdirs multi-ice"
10531 # We only build gdbserver automatically if host and target are the same.
10532 if test "x$target" = "x$host"; then
10533 echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
10534 echo "configure:10535: checking whether gdbserver is supported on this host" >&5
10535 if test "x$build_gdbserver" = xyes
; then
10536 configdirs
="$configdirs gdbserver"
10537 echo "$ac_t""yes" 1>&6
10539 echo "$ac_t""no" 1>&6
10543 subdirs
="doc testsuite $configdirs"
10546 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
10547 # (NAT_FILE) is not set in config/*/*.m[ht] files, we link to an empty
10555 if test "${hostfile}" != ""; then
10557 GDB_XM_FILE
="config/${gdb_host_cpu}/${hostfile}"
10558 files
="${files} ${GDB_XM_FILE}"
10559 links
="${links} xm.h"
10560 cat >> confdefs.h
<<EOF
10561 #define GDB_XM_FILE ${GDB_XM_FILE}
10569 if test "${targetfile}" != ""; then
10571 GDB_TM_FILE
="config/${gdb_target_cpu}/${targetfile}"
10572 files
="${files} ${GDB_TM_FILE}"
10573 links
="${links} tm.h"
10574 cat >> confdefs.h
<<EOF
10575 #define GDB_TM_FILE ${GDB_TM_FILE}
10583 if test "${nativefile}" != ""; then
10585 GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}"
10586 files
="${files} ${GDB_NM_FILE}"
10587 links
="${links} nm.h"
10588 cat >> confdefs.h
<<EOF
10589 #define GDB_NM_FILE ${GDB_NM_FILE}
10597 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
10598 echo "configure:10599: checking for Cygwin environment" >&5
10599 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
10600 echo $ac_n "(cached) $ac_c" 1>&6
10602 cat > conftest.
$ac_ext <<EOF
10603 #line 10604 "configure"
10604 #include "confdefs.h"
10609 #define __CYGWIN__ __CYGWIN32__
10614 if { (eval echo configure
:10615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10618 echo "configure: failed program was:" >&5
10619 cat conftest.
$ac_ext >&5
10627 echo "$ac_t""$ac_cv_cygwin" 1>&6
10629 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
10630 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
10631 echo "configure:10632: checking for mingw32 environment" >&5
10632 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
10633 echo $ac_n "(cached) $ac_c" 1>&6
10635 cat > conftest.
$ac_ext <<EOF
10636 #line 10637 "configure"
10637 #include "confdefs.h"
10640 return __MINGW32__;
10643 if { (eval echo configure
:10644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10647 echo "configure: failed program was:" >&5
10648 cat conftest.
$ac_ext >&5
10656 echo "$ac_t""$ac_cv_mingw32" 1>&6
10658 test "$ac_cv_mingw32" = yes && MINGW32
=yes
10661 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
10662 echo "configure:10663: checking for executable suffix" >&5
10663 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
10664 echo $ac_n "(cached) $ac_c" 1>&6
10666 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
10670 echo 'int main () { return 0; }' > conftest.
$ac_ext
10672 if { (eval echo configure
:10673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
10673 for file in conftest.
*; do
10675 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
10676 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
10680 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
10683 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
10688 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
10689 echo "$ac_t""${ac_cv_exeext}" 1>&6
10694 cat >> confdefs.h
<<\EOF
10695 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
10701 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10702 if test "${with_libiconv_prefix+set}" = set; then
10703 withval
="$with_libiconv_prefix"
10705 for dir
in `echo "$withval" | tr : ' '`; do
10706 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
10707 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
10713 echo $ac_n "checking for iconv""... $ac_c" 1>&6
10714 echo "configure:10715: checking for iconv" >&5
10715 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
10716 echo $ac_n "(cached) $ac_c" 1>&6
10719 am_cv_func_iconv
="no, consider installing GNU libiconv"
10721 cat > conftest.
$ac_ext <<EOF
10722 #line 10723 "configure"
10723 #include "confdefs.h"
10724 #include <stdlib.h>
10727 iconv_t cd = iconv_open("","");
10728 iconv(cd,NULL,NULL,NULL,NULL);
10732 if { (eval echo configure
:10733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10734 am_cv_func_iconv
=yes
10736 echo "configure: failed program was:" >&5
10737 cat conftest.
$ac_ext >&5
10740 if test "$am_cv_func_iconv" != yes; then
10741 am_save_LIBS
="$LIBS"
10742 LIBS
="$LIBS -liconv"
10743 cat > conftest.
$ac_ext <<EOF
10744 #line 10745 "configure"
10745 #include "confdefs.h"
10746 #include <stdlib.h>
10749 iconv_t cd = iconv_open("","");
10750 iconv(cd,NULL,NULL,NULL,NULL);
10754 if { (eval echo configure
:10755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10756 am_cv_lib_iconv
=yes
10757 am_cv_func_iconv
=yes
10759 echo "configure: failed program was:" >&5
10760 cat conftest.
$ac_ext >&5
10763 LIBS
="$am_save_LIBS"
10768 echo "$ac_t""$am_cv_func_iconv" 1>&6
10769 if test "$am_cv_func_iconv" = yes; then
10770 cat >> confdefs.h
<<\EOF
10771 #define HAVE_ICONV 1
10774 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
10775 echo "configure:10776: checking for iconv declaration" >&5
10776 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
10777 echo $ac_n "(cached) $ac_c" 1>&6
10780 cat > conftest.
$ac_ext <<EOF
10781 #line 10782 "configure"
10782 #include "confdefs.h"
10784 #include <stdlib.h>
10790 #if defined(__STDC__) || defined(__cplusplus)
10791 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10800 if { (eval echo configure
:10801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10802 am_cv_proto_iconv_arg1
=""
10804 echo "configure: failed program was:" >&5
10805 cat conftest.
$ac_ext >&5
10807 am_cv_proto_iconv_arg1
="const"
10810 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);"
10813 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10814 echo "$ac_t""${ac_t:-
10815 }$am_cv_proto_iconv" 1>&6
10816 cat >> confdefs.h
<<EOF
10817 #define ICONV_CONST $am_cv_proto_iconv_arg1
10822 if test "$am_cv_lib_iconv" = yes; then
10829 cat > confcache
<<\EOF
10830 # This file is a shell script that caches the results of configure
10831 # tests run on this system so they can be shared between configure
10832 # scripts and configure runs. It is not useful on other systems.
10833 # If it contains results you don't want to keep, you may remove or edit it.
10835 # By default, configure uses ./config.cache as the cache file,
10836 # creating it if it does not exist already. You can give configure
10837 # the --cache-file=FILE option to use a different cache file; that is
10838 # what configure does when it calls configure scripts in
10839 # subdirectories, so they share the cache.
10840 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10841 # config.status only pays attention to the cache file if you give it the
10842 # --recheck option to rerun configure.
10845 # The following way of writing the cache mishandles newlines in values,
10846 # but we know of no workaround that is simple, portable, and efficient.
10847 # So, don't put newlines in cache variables' values.
10848 # Ultrix sh set writes to stderr and can't be redirected directly,
10849 # and sets the high bit in the cache file unless we assign to the vars.
10851 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10853 # `set' does not quote correctly, so add quotes (double-quote substitution
10854 # turns \\\\ into \\, and sed turns \\ into \).
10856 -e "s/'/'\\\\''/g" \
10857 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10860 # `set' quotes correctly as required by POSIX, so do not add quotes.
10861 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10864 if cmp -s $cache_file confcache
; then
10867 if test -w $cache_file; then
10868 echo "updating cache $cache_file"
10869 cat confcache
> $cache_file
10871 echo "not updating unwritable cache $cache_file"
10876 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10878 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10879 # Let make expand exec_prefix.
10880 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10882 # Any assignment to VPATH causes Sun make to only execute
10883 # the first set of double-colon rules, so remove it if not needed.
10884 # If there is a colon in the path, we need to keep it.
10885 if test "x$srcdir" = x.
; then
10886 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
10889 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10891 DEFS
=-DHAVE_CONFIG_H
10893 # Without the "./", some shells look in PATH for config.status.
10894 : ${CONFIG_STATUS=./config.status}
10896 echo creating
$CONFIG_STATUS
10897 rm -f $CONFIG_STATUS
10898 cat > $CONFIG_STATUS <<EOF
10900 # Generated automatically by configure.
10901 # Run this file to recreate the current configuration.
10902 # This directory was configured as follows,
10903 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10905 # $0 $ac_configure_args
10907 # Compiler output produced by configure, useful for debugging
10908 # configure, is in ./config.log if it exists.
10910 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10913 case "\$ac_option" in
10914 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10915 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10916 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10917 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10918 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10920 -help | --help | --hel | --he | --h)
10921 echo "\$ac_cs_usage"; exit 0 ;;
10922 *) echo "\$ac_cs_usage"; exit 1 ;;
10926 ac_given_srcdir=$srcdir
10927 ac_given_INSTALL="$INSTALL"
10929 trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10931 cat >> $CONFIG_STATUS <<EOF
10933 # Protect against being on the right side of a sed subst in config.status.
10934 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10935 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10939 s%@CFLAGS@%$CFLAGS%g
10940 s%@CPPFLAGS@%$CPPFLAGS%g
10941 s%@CXXFLAGS@%$CXXFLAGS%g
10942 s%@FFLAGS@%$FFLAGS%g
10944 s%@LDFLAGS@%$LDFLAGS%g
10946 s%@exec_prefix@%$exec_prefix%g
10947 s%@prefix@%$prefix%g
10948 s%@program_transform_name@%$program_transform_name%g
10949 s%@bindir@%$bindir%g
10950 s%@sbindir@%$sbindir%g
10951 s%@libexecdir@%$libexecdir%g
10952 s%@datadir@%$datadir%g
10953 s%@sysconfdir@%$sysconfdir%g
10954 s%@sharedstatedir@%$sharedstatedir%g
10955 s%@localstatedir@%$localstatedir%g
10956 s%@libdir@%$libdir%g
10957 s%@includedir@%$includedir%g
10958 s%@oldincludedir@%$oldincludedir%g
10959 s%@infodir@%$infodir%g
10960 s%@mandir@%$mandir%g
10961 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
10962 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
10967 s%@host_alias@%$host_alias%g
10968 s%@host_cpu@%$host_cpu%g
10969 s%@host_vendor@%$host_vendor%g
10970 s%@host_os@%$host_os%g
10971 s%@target@%$target%g
10972 s%@target_alias@%$target_alias%g
10973 s%@target_cpu@%$target_cpu%g
10974 s%@target_vendor@%$target_vendor%g
10975 s%@target_os@%$target_os%g
10977 s%@build_alias@%$build_alias%g
10978 s%@build_cpu@%$build_cpu%g
10979 s%@build_vendor@%$build_vendor%g
10980 s%@build_os@%$build_os%g
10981 s%@RANLIB@%$RANLIB%g
10982 s%@SET_MAKE@%$SET_MAKE%g
10983 s%@ALLOCA@%$ALLOCA%g
10984 s%@USE_NLS@%$USE_NLS%g
10985 s%@MSGFMT@%$MSGFMT%g
10986 s%@GMSGFMT@%$GMSGFMT%g
10987 s%@XGETTEXT@%$XGETTEXT%g
10988 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
10989 s%@CATALOGS@%$CATALOGS%g
10990 s%@CATOBJEXT@%$CATOBJEXT%g
10991 s%@DATADIRNAME@%$DATADIRNAME%g
10992 s%@GMOFILES@%$GMOFILES%g
10993 s%@INSTOBJEXT@%$INSTOBJEXT%g
10994 s%@INTLDEPS@%$INTLDEPS%g
10995 s%@INTLLIBS@%$INTLLIBS%g
10996 s%@INTLOBJS@%$INTLOBJS%g
10997 s%@POFILES@%$POFILES%g
10999 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
11001 s%@GT_YES@%$GT_YES%g
11002 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
11004 s%@subdirs@%$subdirs%g
11006 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11007 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11008 s%@INSTALL_DATA@%$INSTALL_DATA%g
11012 s%@DLLTOOL@%$DLLTOOL%g
11013 s%@WINDRES@%$WINDRES%g
11015 s%@CONFIG_LDFLAGS@%$CONFIG_LDFLAGS%g
11016 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
11017 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
11018 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
11019 s%@WERROR_CFLAGS@%$WERROR_CFLAGS%g
11020 s%@SER_HARDWIRE@%$SER_HARDWIRE%g
11021 s%@WIN32LIBS@%$WIN32LIBS%g
11022 s%@LIBGUI@%$LIBGUI%g
11023 s%@GUI_CFLAGS_X@%$GUI_CFLAGS_X%g
11024 s%@WIN32LDAPP@%$WIN32LDAPP%g
11025 s%@TCL_VERSION@%$TCL_VERSION%g
11026 s%@TCL_MAJOR_VERSION@%$TCL_MAJOR_VERSION%g
11027 s%@TCL_MINOR_VERSION@%$TCL_MINOR_VERSION%g
11028 s%@TCL_CC@%$TCL_CC%g
11029 s%@TCL_DEFS@%$TCL_DEFS%g
11030 s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
11031 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
11032 s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g
11033 s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g
11034 s%@TCL_DL_LIBS@%$TCL_DL_LIBS%g
11035 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
11036 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
11037 s%@TCL_CC_SEARCH_FLAGS@%$TCL_CC_SEARCH_FLAGS%g
11038 s%@TCL_COMPAT_OBJS@%$TCL_COMPAT_OBJS%g
11039 s%@TCL_RANLIB@%$TCL_RANLIB%g
11040 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
11041 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
11042 s%@TCL_LIB_VERSIONS_OK@%$TCL_LIB_VERSIONS_OK%g
11043 s%@TK_VERSION@%$TK_VERSION%g
11044 s%@TK_DEFS@%$TK_DEFS%g
11045 s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
11046 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
11047 s%@TK_XLIBSW@%$TK_XLIBSW%g
11048 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
11049 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
11050 s%@TCLHDIR@%$TCLHDIR%g
11051 s%@TKHDIR@%$TKHDIR%g
11052 s%@ITCLHDIR@%$ITCLHDIR%g
11053 s%@ITKHDIR@%$ITKHDIR%g
11054 s%@ITCL_VERSION@%$ITCL_VERSION%g
11055 s%@ITCL_DEFS@%$ITCL_DEFS%g
11056 s%@ITCL_BUILD_INCLUDES@%$ITCL_BUILD_INCLUDES%g
11057 s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g
11058 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
11059 s%@ITK_VERSION@%$ITK_VERSION%g
11060 s%@ITK_DEFS@%$ITK_DEFS%g
11061 s%@ITK_BUILD_INCLUDES@%$ITK_BUILD_INCLUDES%g
11062 s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g
11063 s%@ITK_LIB_SPEC@%$ITK_LIB_SPEC%g
11064 s%@X_CFLAGS@%$X_CFLAGS%g
11065 s%@X_LDFLAGS@%$X_LDFLAGS%g
11066 s%@X_LIBS@%$X_LIBS%g
11067 s%@TCL_DEPS@%$TCL_DEPS%g
11068 s%@TK_DEPS@%$TK_DEPS%g
11069 s%@ITCLLIB@%$ITCLLIB%g
11070 s%@ITCL_DEPS@%$ITCL_DEPS%g
11071 s%@ITKLIB@%$ITKLIB%g
11072 s%@ITK_DEPS@%$ITK_DEPS%g
11073 s%@GDBTKLIBS@%$GDBTKLIBS%g
11074 s%@GDBTK_CFLAGS@%$GDBTK_CFLAGS%g
11075 s%@GDBTK_SRC_DIR@%$GDBTK_SRC_DIR%g
11076 s%@IGNORE_SIM@%$IGNORE_SIM%g
11077 s%@IGNORE_SIM_OBS@%$IGNORE_SIM_OBS%g
11078 s%@ENABLE_CFLAGS@%$ENABLE_CFLAGS%g
11079 s%@PROFILE_CFLAGS@%$PROFILE_CFLAGS%g
11080 s%@CONFIG_OBS@%$CONFIG_OBS%g
11081 s%@CONFIG_DEPS@%$CONFIG_DEPS%g
11082 s%@CONFIG_SRCS@%$CONFIG_SRCS%g
11083 s%@CONFIG_ALL@%$CONFIG_ALL%g
11084 s%@CONFIG_CLEAN@%$CONFIG_CLEAN%g
11085 s%@CONFIG_INSTALL@%$CONFIG_INSTALL%g
11086 s%@CONFIG_UNINSTALL@%$CONFIG_UNINSTALL%g
11087 s%@target_subdir@%$target_subdir%g
11088 /@host_makefile_frag@/r $host_makefile_frag
11089 s%@host_makefile_frag@%%g
11090 /@target_makefile_frag@/r $target_makefile_frag
11091 s%@target_makefile_frag@%%g
11096 s%@EXEEXT@%$EXEEXT%g
11097 s%@LIBICONV@%$LIBICONV%g
11102 cat >> $CONFIG_STATUS <<\EOF
11104 # Split the substitutions into bite-sized pieces for seds with
11105 # small command number limits, like on Digital OSF/1 and HP-UX.
11106 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
11107 ac_file
=1 # Number of current file.
11108 ac_beg
=1 # First line for current file.
11109 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
11112 while $ac_more_lines; do
11113 if test $ac_beg -gt 1; then
11114 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
11116 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
11118 if test ! -s conftest.s
$ac_file; then
11119 ac_more_lines
=false
11120 rm -f conftest.s
$ac_file
11122 if test -z "$ac_sed_cmds"; then
11123 ac_sed_cmds
="sed -f conftest.s$ac_file"
11125 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
11127 ac_file
=`expr $ac_file + 1`
11129 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
11132 if test -z "$ac_sed_cmds"; then
11137 cat >> $CONFIG_STATUS <<EOF
11139 CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
11141 cat >> $CONFIG_STATUS <<\EOF
11142 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
11143 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11145 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11146 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11147 *) ac_file_in
="${ac_file}.in" ;;
11150 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11152 # Remove last slash and all that follows it. Not all systems have dirname.
11153 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11154 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
11155 # The file is in a subdirectory.
11156 test ! -d "$ac_dir" && mkdir
"$ac_dir"
11157 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
11158 # A "../" for each directory in $ac_dir_suffix.
11159 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11161 ac_dir_suffix
= ac_dots
=
11164 case "$ac_given_srcdir" in
11166 if test -z "$ac_dots"; then top_srcdir
=.
11167 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11168 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
11169 *) # Relative path.
11170 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11171 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
11174 case "$ac_given_INSTALL" in
11175 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
11176 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
11179 echo creating
"$ac_file"
11181 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11183 *Makefile
*) ac_comsub
="1i\\
11184 # $configure_input" ;;
11188 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11190 s%@configure_input@%$configure_input%g
11191 s%@srcdir@%$srcdir%g
11192 s%@top_srcdir@%$top_srcdir%g
11193 s%@INSTALL@%$INSTALL%g
11194 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
11198 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11199 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11201 # ac_d sets the value in "#define NAME VALUE" lines.
11202 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11203 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
11206 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11207 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11208 ac_uB
='\([ ]\)%\1#\2define\3'
11211 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11212 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11213 ac_eB
='$%\1#\2define\3'
11217 if test "${CONFIG_HEADERS+set}" != set; then
11219 cat >> $CONFIG_STATUS <<EOF
11220 CONFIG_HEADERS="config.h:config.in"
11222 cat >> $CONFIG_STATUS <<\EOF
11224 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
11225 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11227 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
11228 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
11229 *) ac_file_in
="${ac_file}.in" ;;
11232 echo creating
$ac_file
11234 rm -f conftest.frag conftest.
in conftest.out
11235 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11236 cat $ac_file_inputs > conftest.
in
11240 # Transform confdefs.h into a sed script conftest.vals that substitutes
11241 # the proper values into config.h.in to produce config.h. And first:
11242 # Protect against being on the right side of a sed subst in config.status.
11243 # Protect against being in an unquoted here document in config.status.
11244 rm -f conftest.vals
11245 cat > conftest.hdr
<<\EOF
11248 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11252 sed -n -f conftest.hdr confdefs.h > conftest.vals
11255 # This sed command replaces #undef with comments. This is necessary, for
11256 # example, in the case of _POSIX_SOURCE, which is predefined and required
11257 # on some systems where configure will not decide to define it.
11258 cat >> conftest.vals <<\EOF
11259 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11262 # Break up conftest.vals because some shells have a limit on
11263 # the size of here documents, and old seds have small limits too.
11265 rm -f conftest.tail
11268 ac_lines=`grep -c . conftest.vals
`
11269 # grep -c gives empty output for an empty file on some AIX systems.
11270 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11271 # Write a limited-size here document to conftest.frag.
11272 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11273 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11275 sed -f conftest.frag conftest.in > conftest.out
11277 mv conftest.out conftest.in
11278 ' >> $CONFIG_STATUS
11279 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11280 rm -f conftest.vals
11281 mv conftest.tail conftest.vals
11283 rm -f conftest.vals
11285 cat >> $CONFIG_STATUS <<\EOF
11286 rm -f conftest.frag conftest.h
11287 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11288 cat conftest.in >> conftest.h
11290 if cmp -s $ac_file conftest.h 2>/dev/null; then
11291 echo "$ac_file is unchanged"
11294 # Remove last slash and all that follows it. Not all systems have dirname.
11295 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
11296 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11297 # The file is in a subdirectory.
11298 test ! -d "$ac_dir" && mkdir "$ac_dir"
11301 mv conftest.h $ac_file
11307 cat >> $CONFIG_STATUS <<EOF
11308 ac_sources="$files"
11312 cat >> $CONFIG_STATUS <<\EOF
11313 srcdir=$ac_given_srcdir
11314 while test -n "$ac_sources"; do
11315 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
11316 set $ac_sources; ac_source=$1; shift; ac_sources=$*
11318 echo "linking $srcdir/$ac_source to $ac_dest"
11320 if test ! -r $srcdir/$ac_source; then
11321 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
11325 # Make relative symlinks.
11326 # Remove last slash and all that follows it. Not all systems have dirname.
11327 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
11328 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
11329 # The dest file is in a subdirectory.
11330 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
11331 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
11332 # A "../" for each directory in $ac_dest_dir_suffix.
11333 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
11335 ac_dest_dir_suffix= ac_dots=
11339 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
11340 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
11343 # Make a symlink if possible; otherwise try a hard link.
11344 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
11345 ln $srcdir/$ac_source $ac_dest; then :
11347 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
11351 cat >> $CONFIG_STATUS <<EOF
11353 gdb_host_cpu=$gdb_host_cpu
11354 gdb_target_cpu=$gdb_target_cpu
11355 nativefile=$nativefile
11358 cat >> $CONFIG_STATUS <<\EOF
11360 if test "${nativefile}" = ""; then
11362 sed -e '/^NATDEPFILES[ ]*=.*\\$/,/[^\\]$/s/^/# /' \
11363 -e '/^NATDEPFILES[ ]*=/s/^/# /' \
11364 | sed -e '/^\(NATDEPFILES[ ]*[+]=[ ]*\)/s//# \1/' \
11366 mv -f Makefile.tem Makefile
11369 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
11370 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
11371 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
11372 mv -f Makefile.tmp Makefile
11375 case x$CONFIG_HEADERS in
11376 xconfig.h:config.in)
11382 chmod +x $CONFIG_STATUS
11383 rm -fr confdefs* $ac_clean_files
11384 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
11386 if test "$no_recursion" != yes; then
11388 # Remove --cache-file and --srcdir arguments so they do not pile up.
11389 ac_sub_configure_args=
11391 for ac_arg in $ac_configure_args; do
11392 if test -n "$ac_prev"; then
11397 -cache-file | --cache-file | --cache-fil | --cache-fi \
11398 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11399 ac_prev=cache_file ;;
11400 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11401 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
11403 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11405 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11407 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
11411 for ac_config_dir in doc testsuite $configdirs; do
11413 # Do not complain, so a configure script can configure whichever
11414 # parts of a large source tree are present.
11415 if test ! -d $srcdir/$ac_config_dir; then
11419 echo configuring in $ac_config_dir
11424 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
11426 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
11434 # A "../" for each directory in /$ac_config_dir.
11435 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
11438 .) # No --srcdir option. We are building in place.
11439 ac_sub_srcdir=$srcdir ;;
11440 /*) # Absolute path.
11441 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
11442 *) # Relative path.
11443 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
11446 # Check for guested configure; otherwise get Cygnus style configure.
11447 if test -f $ac_sub_srcdir/configure; then
11448 ac_sub_configure=$ac_sub_srcdir/configure
11449 elif test -f $ac_sub_srcdir/configure.in; then
11450 ac_sub_configure=$ac_configure
11452 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
11456 # The recursion is here.
11457 if test -n "$ac_sub_configure"; then
11459 # Make the cache file name correct relative to the subdirectory.
11460 case "$cache_file" in
11461 /*) ac_sub_cache_file=$cache_file ;;
11462 *) # Relative path.
11463 ac_sub_cache_file="$ac_dots$cache_file" ;;
11465 case "$ac_given_INSTALL" in
11466 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11467 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11470 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
11471 # The eval makes quoting arguments work.
11472 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
11475 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }